/* Kelly Digital Solutions — site styles
   Colors and type live in :root. Change them here and the whole site follows. */

@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo.woff2') format('woff2');
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #050B16;
  --bg-2: #08111F;
  --bg-3: #070F1D;
  --surface: #0B1526;
  --surface-2: #0F1C32;
  --line: rgba(233, 238, 247, .10);
  --line-2: rgba(233, 238, 247, .16);
  --text: #E9EEF7;
  --text-2: #B3BFD3;
  --text-3: #A9B6CB;
  --dim: #8C9BB3;
  --blue: #2B6BEB;
  --blue-hover: #255FD9; /* darker on hover so white labels keep AA contrast (#4C82F0 was 3.6:1) */
  --blue-bright: #4C82F0;
  --blue-text: #7AA8FF;
  --cream: #EDF0DF;
  --ink: #0A1424;
  --silver: #C9CED6;
  --todo: #F2C46D;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --max: 1280px;
  --font: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  caret-color: var(--blue-text);
  accent-color: var(--blue);
  scrollbar-color: #24344F var(--bg);
}
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
p { margin: 0; text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--blue); color: #fff; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 999px;
  transition: top .3s var(--ease);
}
.skip:focus { top: 16px; }

.wrap { max-width: var(--max); margin: 0 auto; }
.section { padding: clamp(80px, 11vw, 136px) 24px; }
.alt { background: var(--bg-2); }

/* ---------- Type ---------- */
.display {
  font-stretch: 70%; font-weight: 800; line-height: .9; text-transform: uppercase;
  text-wrap: balance; letter-spacing: -.005em;
}
.h1 { font-size: clamp(56px, 8.6vw, 136px); line-height: .88; }
.h2 { font-size: clamp(44px, 6.4vw, 96px); max-width: 12em; }
.h2-wide { max-width: 13em; }
.lead { font-size: clamp(18px, 1.6vw, 22px); color: var(--text-2); max-width: 33em; }
.muted { color: var(--text-3); }
.small { font-size: 14px; color: var(--dim); }
/* Small metadata label (a place, a card type). Not used as a kicker above section headings. */
.meta { display: block; font-size: 14px; color: var(--dim); }
.cream .meta { color: #3A4658; }
.todo {
  color: var(--todo); font-size: 14px; border: 1px dashed rgba(242, 196, 109, .5);
  padding: 6px 10px; border-radius: 8px; display: inline-block;
}

/* ---------- Double-bezel cards ---------- */
.shell {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  padding: 8px; border-radius: 32px;
}
.core {
  background: var(--surface); border-radius: 24px; height: 100%;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .08);
}
.lift { transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .lift:hover { transform: translateY(-4px); } }

/* ---------- Buttons ---------- */
/* Press feedback is fast (160ms); hover color is a gentle 250ms. */
.btn {
  display: inline-flex; align-items: center; gap: 16px; padding: 7px 7px 7px 26px;
  border-radius: 999px; font-weight: 600; font-size: 16px; line-height: 1; cursor: pointer; border: 0;
  transition: transform .16s var(--ease-out), background-color .25s ease, box-shadow .25s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px -14px rgba(43, 107, 235, .9); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px rgba(233, 238, 247, .24); }
.btn-ghost:hover { background: rgba(233, 238, 247, .06); box-shadow: inset 0 0 0 1px rgba(233, 238, 247, .36); }
.btn .ico {
  width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .16);
  display: grid; place-items: center; transition: transform .35s var(--ease-out); flex: none;
}
.btn .ico svg { transition: transform .35s var(--ease-out); }
.btn-ghost .ico { background: rgba(233, 238, 247, .10); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover .ico { transform: scale(1.06); }
  .btn:hover .ico svg { transform: translate(1.5px, -1.5px); }
  .btn-ghost:hover .ico svg { transform: translateY(2px); }
}
.btn-sm { padding: 5px 5px 5px 20px; font-size: 15px; }
.btn-sm .ico { width: 36px; height: 36px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Nav ---------- */
.navbar {
  position: sticky; top: 16px; z-index: 50; display: flex; justify-content: center;
  padding: 16px 16px 0; pointer-events: none;
}
.nav {
  pointer-events: auto; display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 18px; border-radius: 999px; max-width: 100%;
  background: rgba(11, 21, 38, .72); border: 1px solid rgba(233, 238, 247, .12);
  backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .5s var(--ease), box-shadow .5s var(--ease);
}
.scrolled .nav { background: rgba(8, 17, 31, .9); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .7); }
/* Headroom: the bar slides away while you scroll down and comes back as soon as you scroll up. */
.navbar { transition: transform .45s var(--ease); }
.nav-hidden .navbar { transform: translateY(calc(-100% - 24px)); }
.brand { display: flex; align-items: center; gap: 10px; margin-right: 10px; }
.wordmark { font-stretch: 118%; font-weight: 560; letter-spacing: .16em; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.wordmark small { display: block; font-size: 1em; color: var(--dim); font-weight: 380; }
.footer .wordmark { font-size: 13px; }
/* Hero mark: the two arcs sweep into place around the centre while the K settles. */
.c1, .c2, .k1 { transform-box: view-box; transform-origin: 50px 50px; }
.c1, .c2 { animation: sweep 1.2s var(--ease) backwards; }
@keyframes sweep { from { transform: rotate(-70deg); opacity: 0; } }
.navlinks { display: flex; gap: 2px; }
.navlink {
  font-size: 15px; color: #9AA8BF; padding: 10px 14px; border-radius: 999px;
  transition: color .25s ease, background-color .25s ease;
}
.navlink:hover, .navlink[aria-current="page"] { color: var(--text); background: rgba(233, 238, 247, .06); }
.menu-btn {
  display: none; width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(233, 238, 247, .08); place-items: center; transition: transform .16s var(--ease-out);
}
.menu-btn:active { transform: scale(.94); }
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--text); transition: transform .4s var(--ease); }
.menu-btn span + span { margin-top: 5px; }
.menu-open .menu-btn span:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.sheet {
  position: fixed; inset: 0; z-index: 40; background: rgba(5, 11, 22, .94);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  display: flex; flex-direction: column; justify-content: center; padding: 120px 32px 48px; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s;
}
/* Opens at a measured pace, closes fast. */
.menu-open .sheet { opacity: 1; visibility: visible; transition: opacity .4s var(--ease), visibility 0s; }
.sheet a:not(.btn) {
  font-size: 48px; font-stretch: 70%; font-weight: 800; text-transform: uppercase; line-height: 1.15;
  transform: translateY(16px); opacity: 0; transition: transform .2s ease, opacity .2s ease;
}
.menu-open .sheet a:not(.btn) { transform: none; opacity: 1; transition: transform .6s var(--ease), opacity .6s var(--ease); }
.menu-open .sheet a:nth-child(2) { transition-delay: .04s; }
.menu-open .sheet a:nth-child(3) { transition-delay: .08s; }
.menu-open .sheet a:nth-child(4) { transition-delay: .12s; }
.sheet .btn { align-self: flex-start; margin-top: 28px; }

@media (max-width: 880px) {
  .navlinks, .nav > .btn { display: none; }
  .menu-btn { display: grid; }
  .nav { width: 100%; justify-content: space-between; }
}
@media (min-width: 881px) { .sheet { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; margin-top: -78px; padding: 168px 24px 104px;
  background:
    radial-gradient(60% 55% at 78% 38%, rgba(43, 107, 235, .30), transparent 70%),
    radial-gradient(40% 40% at 8% 90%, rgba(43, 107, 235, .12), transparent 70%);
}
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
.hero-grid { display: flex; flex-wrap: wrap; gap: 56px 40px; align-items: center; }
.hero-copy { flex: 1.35 1 520px; min-width: 0; }

.hero-copy .lead { margin-top: 28px; }
/* The name lands first; the tagline fades in under it a beat later. */
.tagline { margin-top: 18px; font-size: clamp(24px, 2.7vw, 38px); font-stretch: 78%; font-weight: 700; line-height: 1.05; text-transform: uppercase; color: var(--blue-text); }
.js.motion .tagline { animation: tagline 1.1s var(--ease-out) .75s backwards; }
@keyframes tagline { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; align-items: center; }
.hero-mark { flex: 1 1 320px; min-width: 0; display: flex; justify-content: center; }
/* The mark floats in the hero's own space: no card, no border. */
.hero-mark .shell { width: min(100%, 520px); background: none; border: 0; padding: 0; border-radius: 0; }
.hero-mark .core { aspect-ratio: 1; display: grid; place-items: center; position: relative; background: none; box-shadow: none; border-radius: 0; }
/* Light falls from the top-right corner bracket, matching the hero glow. */
.hero-mark .core::before { content: none; }
.hero-mark svg { width: 70%; height: auto; overflow: visible; position: relative; }
.k1 { animation: k1 1s var(--ease) .15s backwards; }
@keyframes k1 { from { transform: scale(.88); opacity: 0; } }
.rise { animation: rise 1s var(--ease) backwards; }
.rise.d1 { animation-delay: .1s; }
.hero .rise.d1 { animation-delay: .9s; }
.rise.d2 { animation-delay: .2s; }
.hero .rise.d2 { animation-delay: 1s; }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } }

/* ---------- Services ticker ---------- */
.ticker {
  position: relative; overflow: hidden; padding: clamp(22px, 3vw, 34px) 0;
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg-3), var(--bg) 60%, var(--bg-3));
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.track {
  display: flex; width: max-content; animation: slide 60s linear infinite;
  font-size: clamp(44px, 6.4vw, 92px); font-stretch: 62%; font-weight: 800; line-height: 1; letter-spacing: -.01em;
  text-transform: uppercase; white-space: nowrap;
}
.track > div { display: flex; align-items: center; gap: clamp(28px, 3.4vw, 52px); padding-right: clamp(28px, 3.4vw, 52px); }
.track .ghost { color: transparent; -webkit-text-stroke: 1.2px rgba(233, 238, 247, .42); }
.track .arcs { width: .42em; height: .42em; flex: none; fill: none; stroke: var(--blue-bright); stroke-width: 11; stroke-linecap: round; animation: spin 7s linear infinite; }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
/* Pause control for the ticker (WCAG 2.2.2): it runs nonstop until someone presses this. */
.ticker-wrap { position: relative; }
.ticker-toggle {
  position: absolute; right: 16px; top: 50%; translate: 0 -50%; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--line); background: rgba(5, 11, 22, .72); color: var(--text-2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: color .2s ease, border-color .2s ease, transform .16s var(--ease-out);
}
.ticker-toggle:hover { color: var(--text); border-color: rgba(233, 238, 247, .3); }
.ticker-toggle:active { transform: scale(.94); }
.ticker-toggle .i-play, .ticker-wrap.paused .ticker-toggle .i-pause { display: none; }
.ticker-wrap.paused .ticker-toggle .i-play { display: block; }
.ticker-wrap.paused .track, .ticker-wrap.paused .arcs { animation-play-state: paused; }



/* ---------- Services: tabs beside a cinematic stage (3D visual on top, the selected service below) ---------- */
.svc-section .wrap { max-width: 1440px; }   /* wider than the page column, so the stage has room to breathe */
.svc { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 5.5vw, 88px); align-items: flex-start; }
.svc-side { flex: 1 1 300px; max-width: 400px; min-width: 0; display: flex; flex-direction: column; }
.tablist { display: flex; flex-direction: column; gap: 10px; }
/* The section heading sits under the tabs as a quieter label for the whole list. */
.svc-h { margin-top: 52px; padding: 0 20px; font-size: clamp(28px, 2.5vw, 38px); line-height: .95; color: var(--text-2); text-wrap: balance; }
.tab {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; width: 100%; text-align: left;
  padding: 14px 20px 16px; border-radius: 20px; border: 1px solid transparent; background: transparent; color: #9AA8BF; cursor: pointer;
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .16s var(--ease-out);
}
.tab:hover { color: var(--text); }
.tab:active { transform: scale(.985); }
.tab[aria-selected="true"] { background: var(--surface-2); color: var(--text); border-color: rgba(233, 238, 247, .14); }
.tab b { font-size: 26px; font-stretch: 80%; font-weight: 700; line-height: 1.1; }
.tab small { font-size: 13px; opacity: .8; }
.stage { flex: 2.4 1 560px; min-width: 0; border-radius: 40px; }
.stage .core {
  border-radius: 32px; overflow: hidden; position: relative; display: flex; flex-direction: column;
  background:
    radial-gradient(60% 50% at 70% 18%, rgba(76, 130, 240, .42), transparent 70%),
    radial-gradient(40% 40% at 18% 40%, rgba(237, 240, 223, .08), transparent 70%),
    linear-gradient(170deg, #0D2A5C, var(--surface) 58%);
}
.stage-visual { position: relative; flex: none; height: clamp(240px, min(30vw, 36vh), 400px); }
.sprockets { position: absolute; top: 0; bottom: 0; width: 8px; background: repeating-linear-gradient(180deg, rgba(237, 240, 223, .22) 0 12px, transparent 12px 26px); }
.sprockets.l { left: 14px; } .sprockets.r { right: 14px; }
.wipe-line { position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; pointer-events: none; opacity: 0; background: linear-gradient(transparent, #CFE0FF 30%, #CFE0FF 70%, transparent); box-shadow: 0 0 22px 6px rgba(76, 130, 240, .55); }
.panels { position: relative; padding: 16px clamp(28px, 4vw, 60px) clamp(28px, 3.6vw, 52px); }
.panel h3 { font-size: clamp(30px, 3.4vw, 46px); font-stretch: 75%; font-weight: 800; line-height: 1; text-transform: uppercase; text-wrap: balance; }
.panel > p { margin-top: 20px; max-width: 36em; color: var(--text-2); font-size: 18px; }
.ticks { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 32px; }
.ticks li { padding-top: 12px; border-top: 1px solid rgba(233, 238, 247, .12); }
.panel .fit { margin-top: 24px; color: var(--blue-text); font-size: 15px; }
.panel .more { margin-top: 20px; display: inline-flex; gap: 8px; align-items: center; color: var(--text); border-bottom: 1px solid var(--blue); padding-bottom: 2px; }
/* Without JS every panel shows, stacked. With JS only the selected one shows. */
.no-js .panel + .panel { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.js .panels { display: grid; }
.js .panels > .panel { grid-area: 1 / 1; }
.js .panel[hidden] { display: block; visibility: hidden; }
/* Tabs get switched often, so the panel change is a short crossfade, not an entrance. */
.js .panel:not([hidden]) { animation: fade .22s var(--ease-out); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- Work (stacking cards) ---------- */
.work-bg { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%); padding-bottom: 160px; }
.stack { margin-top: 72px; display: flex; flex-direction: column; gap: 32px; }
.case { position: sticky; border-radius: 40px; }
.case:nth-child(1) { top: 110px; } .case:nth-child(2) { top: 130px; } .case:nth-child(3) { top: 150px; }
.case .core { border-radius: 32px; display: flex; flex-wrap: wrap; min-height: 480px; overflow: hidden; }
.case-copy { flex: 1 1 340px; min-width: 0; padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.case-copy h3 { font-size: clamp(40px, 5vw, 72px); font-stretch: 70%; font-weight: 800; line-height: .92; text-transform: uppercase; }
.case-copy .role { margin-top: auto; }
.case-shot { flex: 1.2 1 360px; min-width: 0; padding: clamp(16px, 3vw, 40px); display: grid; place-items: center; }
.browser { width: 100%; border-radius: 16px; background: var(--bg); border: 1px solid rgba(233, 238, 247, .14); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.browser .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.browser .bar span { width: 9px; height: 9px; border-radius: 50%; background: #2A3A57; }
.browser .screen { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
.case-copy .meta { margin-bottom: -4px; }
.case-copy .meta, .case-copy .role { color: var(--text-3); } /* the blue card gradients need the lighter gray for AA */
.browser .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* ---------- Process ---------- */
.steps { list-style: none; margin: 72px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); border-top: 1px solid rgba(233, 238, 247, .14); }
.steps li { padding: 28px 28px 8px 0; }
.steps .n { font-size: 56px; font-stretch: 62%; font-weight: 800; color: var(--blue); line-height: 1; }
.steps h3 { margin: 14px 0 8px; font-size: 28px; font-stretch: 80%; font-weight: 700; }

/* ---------- Film (cream) ---------- */
.cream { background: var(--cream); color: var(--ink); color-scheme: light; }
.cream .lead { color: #2B3748; }
.film-h2 { font-size: clamp(44px, 6vw, 88px); }
.lead-sm { margin-top: 28px; font-size: 19px; }
.cream .more { display: inline-flex; gap: 8px; color: var(--ink); border-bottom: 1px solid var(--blue); padding-bottom: 2px; }
.film-more { margin-top: 32px; }
.cream :focus-visible { outline-color: var(--blue); }
.film-grid { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: center; }
.film-grid > * { flex: 1 1 380px; min-width: 0; }
.film-steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 14px; font-size: 17px; }
.film-steps li { display: flex; gap: 14px; align-items: baseline; }
.film-steps b { font-weight: 800; color: #043C7F; font-stretch: 70%; font-size: 26px; width: 22px; flex: none; }
.price-shell { padding: 8px; border-radius: 36px; background: rgba(10, 20, 36, .06); border: 1px solid rgba(10, 20, 36, .12); }
.price-card { background: var(--ink); color: var(--cream); border-radius: 28px; padding: 18px 28px 30px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .10); font-variant-numeric: tabular-nums; color-scheme: dark; }
.price-card .perf { opacity: .9; height: 8px; background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 20px); margin-bottom: 10px; }
.prices { width: 100%; border-collapse: collapse; }
.prices caption { text-align: left; padding: 12px 0 6px; font-size: 14px; color: #9AA8BF; }
.prices th { text-align: left; padding: 10px 0; font-size: 13px; font-weight: 500; color: #9AA8BF; }
.prices td { padding: 14px 0; border-top: 1px solid rgba(237, 240, 223, .14); }
.prices td:nth-child(2) { color: #9AA8BF; }
.prices th:last-child, .prices td:last-child { text-align: right; }
.prices td:last-child { font-size: 36px; font-stretch: 70%; font-weight: 800; line-height: 1; }
.price-note { margin: 14px 0 22px; font-size: 14px; color: #9AA8BF; }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 72px; }
.bento > .wide { grid-column: span 2; }
.bento-3 { margin-top: 64px; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > .wide { grid-column: auto; } }
.bento .core { padding: clamp(24px, 3vw, 40px); min-height: 232px; display: flex; flex-direction: column; justify-content: flex-end; }
.bento h3 { margin-bottom: 12px; font-size: 32px; font-stretch: 78%; font-weight: 800; line-height: 1; text-transform: uppercase; }
.bento .wide h3 { font-size: clamp(30px, 3.4vw, 46px); font-stretch: 75%; }
.bento p { color: var(--text-3); max-width: 34em; }
.bento .glow { background: linear-gradient(160deg, #0F2A57, var(--surface) 70%); }
.bento .glow-low { background: linear-gradient(340deg, #0D2347, var(--surface) 65%); }
.bento .glow p { color: var(--text-2); }

/* ---------- About ---------- */
.about { display: flex; flex-wrap: wrap; gap: 48px 72px; }
.about > :first-child { flex: 1 1 340px; min-width: 0; }
.about > :last-child { flex: 1.3 1 420px; min-width: 0; font-size: 20px; color: var(--text-2); display: flex; flex-direction: column; gap: 22px; }
.about .h2 { font-size: clamp(44px, 5.4vw, 80px); }
.about a.inline { color: var(--text); border-bottom: 1px solid var(--blue); padding-bottom: 1px; transition: color .2s ease; }
.about a.inline:hover { color: var(--blue-text); }

/* ---------- FAQ ---------- */
.faqs { max-width: 1000px; margin: 0 auto; }
.faqs .h2 { font-size: clamp(44px, 5.4vw, 80px); margin-bottom: 56px; max-width: none; }
.faq { border-top: 1px solid var(--line); }
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-size: 22px; font-stretch: 85%; font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 28px; font-weight: 400; color: var(--blue-text); transition: transform .3s var(--ease-out); flex: none; }
.faq summary { transition: color .25s ease; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--blue-text); } }
/* Smooth open/close where supported (Chrome 131+); elsewhere it opens instantly. */
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq::details-content { block-size: 0; overflow: hidden; transition: block-size .3s var(--ease-out), content-visibility .3s allow-discrete; }
  .faq[open]::details-content { block-size: auto; }
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 0 28px; max-width: 44em; color: var(--text-3); }
.cream .faq { border-color: rgba(10, 20, 36, .14); }
.cream .faq p { color: #2B3748; }
.cream .faq summary::after { color: var(--blue); }

/* ---------- Contact ---------- */
.contact { background: radial-gradient(60% 60% at 20% 20%, rgba(43, 107, 235, .22), transparent 70%), var(--bg-2); }
.contact-grid { display: flex; flex-wrap: wrap; gap: 56px 64px; align-items: flex-start; }
.contact-grid > :first-child { flex: 1 1 360px; min-width: 0; }
.contact-grid .h2 { font-size: clamp(48px, 6.6vw, 104px); line-height: .88; }
.reach { margin-top: 36px; font-size: 19px; line-height: 1.9; }
.reach a { border-bottom: 1px solid transparent; transition: border-color .25s ease; }
.reach .strong { font-weight: 700; }
.reach .small { font-size: 17px; }
.reach a:hover { border-color: var(--blue-text); }
.form-shell { flex: 1.2 1 420px; min-width: 0; border-radius: 36px; }
.form { border-radius: 28px; padding: clamp(22px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; flex: 1 1 240px; min-width: 0; }
.field.full { flex-basis: 100%; }
.field label { font-size: 14px; color: var(--text-3); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 16px; padding: 15px 16px; background: var(--bg); color: var(--text);
  border: 1px solid rgba(233, 238, 247, .22); border-radius: 14px; min-height: 50px; width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease; appearance: none; -webkit-appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237AA8FF' stroke-width='1.5'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 120px; }
/* Film form: reel counts by size, with the running estimate under them. */
.reels { border: 0; margin: 0; padding: 0; }
.reels legend { padding: 0; margin-bottom: 8px; font-size: 14px; color: var(--text-3); }
.reel-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.reel-n { display: flex; flex-direction: column; gap: 6px; }
.reel-n label { font-size: 13px; color: var(--text-3); white-space: nowrap; }
.reel-n input { text-align: center; font-variant-numeric: tabular-nums; }
.estimate { margin-top: 12px; font-size: 15px; color: var(--blue-text); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .reel-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--blue-text); outline: none; box-shadow: 0 0 0 3px rgba(122, 168, 255, .22); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #F08A8A; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; }
.form-status { font-size: 15px; color: var(--text-2); }
.form-status.ok { color: #8FE3B0; }
.form-status.err { color: #F4A3A3; }
.form.sent > .field, .form.sent .btn { display: none; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 24px 56px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 32px 56px; justify-content: space-between; align-items: center; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; color: #9AA8BF; }
.footer nav a:hover { color: var(--text); }

/* ---------- Sub-page hero ---------- */
.subhero { margin-top: -78px; padding: 176px 24px 88px; background: radial-gradient(55% 60% at 80% 30%, rgba(43, 107, 235, .26), transparent 70%); }
.subhero .h1 { font-size: clamp(52px, 7.6vw, 120px); max-width: 11em; }
.subhero .lead { margin-top: 32px; }
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 64px; }
.cards3 .core { padding: 32px; }
.cards3 h3 { font-size: 30px; font-stretch: 78%; font-weight: 800; text-transform: uppercase; line-height: 1; margin: 18px 0 12px; }
.cards3 p { color: var(--text-3); }
.cards3 .n { font-size: 48px; font-stretch: 62%; font-weight: 800; color: var(--blue); line-height: 1; }
.center-msg { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 160px 24px 96px; margin-top: -78px; }
.center-msg .h1 { font-size: clamp(52px, 8vw, 120px); }
.center-msg .lead { margin: 28px auto 0; }
.center-msg .ctas { justify-content: center; }

/* ---------- Scroll reveal (only when JS is on and motion is allowed) ---------- */
.js.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js.motion [data-reveal].in { opacity: 1; transform: none; }
.js.motion .lift.settled { transition: transform .5s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .js.motion .lift.settled:hover { transform: translateY(-4px); } }

/* Reduced motion: nothing travels, scales or loops. Short fades stay so state changes are still visible. */
@media (prefers-reduced-motion: reduce) {
  .k1, .c1, .c2, .track, .track .arcs { animation: none !important; }
  .ticker-toggle { display: none; }
  .rise { animation-name: fade-only; animation-duration: .4s; }
  .js .panel:not([hidden]) { animation: fade-only .15s ease; }
  .lift:hover, .btn:active, .btn:hover .ico, .btn:hover .ico svg, .tab:active, .menu-btn:active { transform: none !important; }
  .sheet a:not(.btn) { transform: none !important; }
  .faq::details-content { transition: none !important; }
}
@keyframes fade-only { from { opacity: 0; } }
@media (max-width: 640px) {
  .case { position: relative; top: auto !important; }
  .btn { white-space: normal; }
}
@media print {
  .navbar, .ticker-wrap, .stage-visual, .footer nav { display: none; }
  body { background: #fff; color: #000; }
}

/* Late adjustments */
.ticks-film { margin-top: 36px; }
.bento > :nth-child(2), .cards3 > :nth-child(2) { --i: 1; }
.bento > :nth-child(3), .cards3 > :nth-child(3) { --i: 2; }
.bento > :nth-child(4) { --i: 3; }
.cream .ticks li { border-top-color: rgba(10, 20, 36, .16); }
@media (max-width: 640px) { .hero-mark .shell { width: min(100%, 280px); } .hero { padding-bottom: 72px; } }

/* ---------- 3D layer (assets/js/3d). Each canvas fades in over markup that already works without it. ---------- */
.three-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease-out); }
.is-3d > .three-canvas { opacity: 1; }
.hero-mark .core > svg { transition: opacity .5s var(--ease-out); }
.hero-mark .core.is-3d > svg { opacity: 0; }
/* Film reel band: takes no space unless the 3D layer is running. */
.film-3d { display: none; position: relative; height: clamp(200px, 25vw, 330px); margin: -24px calc(50% - 50vw) 40px; }
.has-3d .film-3d { display: block; }
.subhero .film-3d { margin: 48px calc(50% - 50vw) -24px; }
/* Contact: point field behind the form, faded out at the section edges. */
.contact[data-3d], .hero[data-3d] { position: relative; overflow: hidden; }
.contact > .wrap, .hero > .wrap { position: relative; z-index: 1; }
.hero > .three-canvas { -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.contact > .three-canvas { -webkit-mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(transparent, #000 18%, #000 82%, transparent); }
.film-3d > .three-canvas { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }

/* Services scroll mode (set by site.js on wide screens with motion allowed): the tabs and stage pin,
   and the selected service advances as you scroll through the runway, like a reel. */
@media (min-width: 1000px) {
  .svc-scroll .svc-runway { height: calc(6 * 35vh + 100vh); }
  .svc-scroll .svc { position: sticky; top: 104px; }
  /* Pinned, the stage fills the screen below the nav; the 3D visual takes whatever the copy leaves. */
  .svc-scroll .stage .core { height: calc(100vh - 136px); height: calc(100svh - 136px); }
  .svc-scroll .stage-visual { flex: 1 1 auto; height: auto; min-height: 180px; }
  .svc-scroll .tab[aria-selected="true"]::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 8px; height: 2px; border-radius: 2px;
    background: var(--blue-bright); transform-origin: left; transform: scaleX(var(--seg, 0));
  }
}
@media (max-width: 999px) {
  .svc-h { order: -1; margin: 0 0 24px; padding: 0; font-size: clamp(36px, 9vw, 52px); color: var(--text); }
  .svc-side { flex-basis: 100%; max-width: none; }
  /* Phones and tablets: all six services visible at once, as a 2x3 grid of buttons. */
  .tablist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tab { width: auto; padding: 12px 14px; border-color: var(--line); justify-content: center; }
  .tab b { font-size: 17px; line-height: 1.1; }
  .tab small { display: none; }
  .stage { flex-basis: 100%; }
}
/* Short laptop screens: tighten the pinned service list so the heading under it still fits. */
@media (min-width: 1000px) and (max-height: 820px) {
  .svc-scroll .tablist { gap: 2px; }
  .svc-scroll .tab { padding: 9px 20px 11px; }
  .svc-scroll .tab b { font-size: 23px; }
  .svc-scroll .svc-h { margin-top: 24px; font-size: 26px; }
}
