/* Streamers Era — shared site styles. Page markup carries its own inline layout (from the design canvas);
   this file adds the base, the hero glow and the responsive overrides. */
:root {
  --vw: 100vw; --hvw: 50vw;   /* nav.js overwrites with the real viewport width (minus a classic scrollbar) */
  --accent: #fa2a2e; --accent-rgb: 250, 42, 46;
  /* derived from the accent; build.py rewrites all of these from the admin panel's colour */
  --accent-hi: #fc8183; --accent-lo: #8c171a; --accent-shade-1: #af1d20; --accent-shade-2: #7a1517; --accent-shade-3: #430b0c;
  /* the greys the canvas uses, named. New rules take these; the inline styles the canvas emits still carry hex. */
  --bg: #0b0b0f;
  --ink: #f2f1ec; --ink-bright: #ffffff; --ink-soft: #d3d2da; --ink-muted: #b4b3bc; --ink-faint: #8a8993;
  --surface-raised: rgba(255, 255, 255, 0.04); --surface-edge: rgba(255, 255, 255, 0.08);
  --panel: #13131a; --tint: #101016; --line: #1c1c25; --line-strong: #23232e; --edge: #34343f;
  --font-display: 'Bricolage Grotesque', 'Manrope', sans-serif; --font-body: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: #0b0b0f; color: #f2f1ec; font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: #f2f1ec; text-decoration: none; }
a:hover { color: #ffffff; }
h1, h2, h3 { font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; letter-spacing: -0.03em; font-weight: 700; }
input, select, textarea, button { font-family: inherit; }
input::placeholder, textarea::placeholder { color: #6f6e78; }
img, svg { max-width: 100%; }

.page { width: 100%; max-width: 1440px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; }
section, header, footer, nav { box-sizing: border-box; }
h1, h2, h3 { overflow-wrap: break-word; }

/* ---------- resizable navbar ---------- */
.nav-wrap { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: #0b0b0f; border-bottom: 1px solid #1c1c25; transition: background .3s, border-color .3s; }
.nav-wrap.is-scrolled { background: transparent; border-bottom-color: transparent; }
html { overflow-x: hidden; overflow-x: clip; }   /* hidden = fallback for browsers without clip (Safari < 16) */   /* transformed letters/cards must never widen the layout viewport on phones */
body { padding-top: 80px; overflow-x: clip; }
.nav {
  position: relative; box-sizing: border-box; margin: 0 auto; width: 100%; max-width: 1440px; height: 80px;
  padding: 0 80px; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: 1px solid transparent; border-radius: 0;
  transition: width .5s cubic-bezier(.2, .8, .2, 1), padding .5s cubic-bezier(.2, .8, .2, 1), transform .5s cubic-bezier(.2, .8, .2, 1),
              border-radius .5s cubic-bezier(.2, .8, .2, 1), background .3s, box-shadow .3s, border-color .3s;
}
.nav-logo { white-space: nowrap; display: inline-flex; align-items: center; }
.nav-links { position: relative; flex: 1; display: flex; justify-content: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; color: #c9c8d1; white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: #f2f1ec; }
.nav-links a.is-active { color: var(--accent); }
.nav-links a.is-active::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.nav-menu a.is-active { color: var(--accent); }
.nav-pill { position: absolute; top: 0; height: 100%; width: 0; border-radius: 999px; background: #1c1c25; opacity: 0; transition: left .25s cubic-bezier(.2, .8, .2, 1), width .25s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.nav-cta { display: inline-flex; align-items: center; height: 44px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: #0b0b0f; font-weight: 600; font-size: 15px; white-space: nowrap; transition: transform .2s; }
.nav-cta:hover { color: #0b0b0f; transform: translateY(-2px); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: #f2f1ec; cursor: pointer; }
.nav-toggle .i-close, .is-open .nav-toggle .i-menu { display: none; }
.is-open .nav-toggle .i-close { display: block; }
.nav-menu { display: none; }

/* scrolled: float as a blurred pill */
.is-scrolled .nav {
  width: 64%; min-width: 880px; height: 60px; padding: 0 8px 0 20px; transform: translateY(20px); border-radius: 999px;
  background: rgba(11, 11, 15, 0.8); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-color: #23232e; box-shadow: 0 16px 68px rgba(0, 0, 0, 0.45), 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}
.is-scrolled .nav-cta { height: 40px; padding: 0 18px; }

@media (max-width: 1024px), (hover: none) and (pointer: coarse) {
  .nav { padding: 0 20px; height: 64px; }
  .nav-logo .wordmark { font-size: 30px; }
  body { padding-top: 64px; }
  .nav-links, .nav > .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .is-scrolled .nav { width: calc(100% - 32px); min-width: 0; height: 56px; padding: 0 8px 0 16px; transform: translateY(12px); border-radius: 12px; }
  .nav-menu {
    position: absolute; left: 16px; right: 16px; top: calc(100% + 8px); z-index: 50; display: flex; flex-direction: column; gap: 6px;
    padding: 16px; border-radius: 16px; background: #0f0f15; border: 1px solid #23232e; box-shadow: 0 16px 68px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .2s, transform .2s;
  }
  .is-scrolled .nav-menu { top: calc(100% + 20px); }
  .is-open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
  .nav-menu a { padding: 12px 14px; border-radius: 10px; font-size: 16px; font-weight: 500; color: #d3d2da; }
  .nav-menu a:hover, .nav-menu a.is-active { background: #1c1c25; color: #f2f1ec; }
  .nav-menu .nav-cta { margin-top: 8px; justify-content: center; color: #0b0b0f; }
}

/* hero (home page): dark, with the accent wave laid across the whole section behind the text, like the reference */
#top {
  position: relative; overflow: hidden; z-index: 2;
  /* full-bleed: break out of the 1440px container, keep the text aligned with the sections below */
  flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw));
  padding-left: max(80px, calc(var(--hvw) - 640px)) !important; padding-right: max(80px, calc(var(--hvw) - 640px)) !important;
}
#top > * { position: relative; z-index: 1; }
#top > #aero-bg { position: absolute; z-index: 0; }
#top::after { z-index: 1; }
#top::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  /* oversized so the image's own frame edges (where the wave is cut flat) fall outside the section */
  display: none;
}
#top::after {  /* soft dark scrim under the text column so copy and buttons read over the accent */
  content: ""; position: absolute; z-index: 0; pointer-events: none; inset: 0;
  background: radial-gradient(ellipse 58% 78% at 24% 52%, rgba(11, 11, 15, 0.92) 0%, rgba(11, 11, 15, 0.7) 45%, rgba(11, 11, 15, 0) 100%);
  /* the scrim must be gone before the hero's bottom edge, or it prints a line where it gets clipped */
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 90%);
  mask-image: linear-gradient(to bottom, #000 55%, rgba(0, 0, 0, 0) 90%);
}
#top h1 { text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4); }
#top p { color: #e9e8f0 !important; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5); }
#top > div:last-child span { color: #c9c8d1; }

/* wordmark */
.wordmark { font-family: 'Cookie', cursive; font-weight: 400; font-size: 34px; line-height: 1; letter-spacing: 0; text-transform: none; }
.wordmark .era { color: var(--accent); }

/* card / link hover */
a[style*="border-radius: 20px"]:hover, a[style*="border-radius: 16px"]:hover { border-color: #34343f !important; }
a[style*="background: var(--accent)"]:hover { filter: brightness(1.08); color: #0b0b0f; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  [style*="grid-template-columns: repeat(4"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  [style*="grid-template-columns: repeat(3"] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  h1 { font-size: 64px !important; }
  h2 { font-size: 40px !important; }
  header, section, footer { padding-left: 40px !important; padding-right: 40px !important; }
  #top { padding-left: 40px !important; padding-right: 40px !important; }
}

@media (max-width: 760px) {
  [style*="grid-template-columns"] { grid-template-columns: minmax(0, 1fr) !important; }
  [style*="justify-content: space-between"] { flex-wrap: wrap; }
  header, section, footer { padding-left: 20px !important; padding-right: 20px !important; }
  #top { padding-left: 20px !important; padding-right: 20px !important; }
  header, section { padding-top: 64px !important; padding-bottom: 64px !important; }
  h1 { font-size: 42px !important; }
  h2 { font-size: 32px !important; }
  h3 { font-size: 20px !important; }
}

/* shiny sweep (from the shiny-button component) on the Let's connect buttons: shape and colour stay as they are */
.shiny { position: relative; overflow: hidden; }
.shiny::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-160%) skewX(-20deg);
  animation: shine 3s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes shine {
  0% { transform: translateX(-160%) skewX(-20deg); }
  55%, 100% { transform: translateX(320%) skewX(-20deg); }
}
@media (prefers-reduced-motion: reduce) { .shiny::after { animation: none; } }

/* same 3D treatment as the glass button: bevel, lift, press tilt */
.shiny {
  transition: transform .4s cubic-bezier(.25, 1, .5, 1), box-shadow .4s cubic-bezier(.25, 1, .5, 1);
  box-shadow: inset 0 .125em .125em rgba(255, 255, 255, 0.45), inset 0 -.125em .125em rgba(0, 0, 0, 0.18),
              0 .25em .125em -.125em rgba(0, 0, 0, 0.35), 0 .5em .9em -.5em rgba(0, 0, 0, 0.6);
  text-shadow: 0 .06em .04em rgba(0, 0, 0, 0.12);
}
.shiny:hover {
  transform: scale(.975);
  box-shadow: inset 0 .125em .125em rgba(255, 255, 255, 0.55), inset 0 -.125em .125em rgba(0, 0, 0, 0.2),
              0 .15em .05em -.1em rgba(0, 0, 0, 0.35), 0 .4em .8em -.4em rgba(0, 0, 0, 0.6);
}
.shiny:active {
  transform: perspective(500px) rotateX(22deg) scale(.975);
  box-shadow: inset 0 .125em .125em rgba(255, 255, 255, 0.3), inset 0 .25em .3em rgba(0, 0, 0, 0.2),
              0 .1em .1em -.1em rgba(0, 0, 0, 0.35);
}
.nav-cta.shiny:hover { transform: scale(.975); }

/* anti-metal button: dot-arrow slab that expands on hover to a row of arrows (on the Let's connect buttons) */
.shiny { padding-left: 6px !important; }
.am-slab {
  position: absolute; z-index: 2; top: 6px; bottom: 6px; left: 6px; width: 44px; box-sizing: border-box;
  display: flex; align-items: center; gap: 18px; padding-left: 15px; overflow: hidden; border-radius: 999px; background: #0b0b0f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -2px 4px rgba(0, 0, 0, 0.4);
  transition: width .22s cubic-bezier(.65, 0, .35, 1);
}
.am-slab svg { flex-shrink: 0; overflow: visible; }
.am-text { position: relative; z-index: 1; margin-left: 52px; }
.shiny:hover .am-slab { width: calc(100% - 12px); }
.shiny::after { z-index: 3; }
.nav-cta.shiny { padding-left: 5px !important; }
.nav-cta .am-slab { top: 5px; bottom: 5px; left: 5px; width: 34px; padding-left: 10px; gap: 14px; }
.nav-cta .am-text { margin-left: 41px; }
.bd-dot { transform-box: fill-box; transform-origin: center; animation: bd-dot-wave 1.4s ease-in-out infinite; }
@keyframes bd-dot-wave {
  0%, 70%, 100% { opacity: 0.25; transform: scale(0.85); }
  35% { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .bd-dot { animation: none; opacity: 1; } }

/* tickers: brands scroll left, socials scroll right */
.tickers { flex-shrink: 0; width: var(--vw); margin: 100px 0 -112px calc(50% - var(--hvw)); padding: 28px 0; display: flex; flex-direction: column; gap: 44px; overflow: hidden; }
.ticker {
  overflow: hidden; width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 5%, #000 95%, transparent);
}
.tk-track { display: flex; width: max-content; animation: tk-scroll 40s linear infinite; will-change: transform; }
.tk-right .tk-track { animation-direction: reverse; }
.tk-item { display: inline-flex; align-items: center; gap: 12px; margin-right: 56px; white-space: nowrap; font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: #f2f1ec; }
.tk-item img { width: 28px; height: 28px; object-fit: contain; border-radius: 6px; }
.tk-item { text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7); }
.tk-right .tk-item { font-family: 'Manrope', sans-serif; font-weight: 600; font-size: 17px; color: #d3d2da; }
@keyframes tk-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-track { animation: none; } }

/* services (home): the dark accent-glow illustration as a full-bleed background, melting in from the hero above */
#services {
  flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw)); position: relative;
  padding-left: max(80px, calc(var(--hvw) - 640px)) !important; padding-right: max(80px, calc(var(--hvw) - 640px)) !important;
  background: transparent; border-bottom: 0 !important; z-index: 1;
}
#services > * { position: relative; z-index: 1; }
#top { border-bottom: 0 !important; }
@media (max-width: 1100px) { #services { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 760px) { #services { padding-left: 20px !important; padding-right: 20px !important; } }

/* ---------- responsive: hero / tickers / services overlap ---------- */
@media (max-width: 1100px) {
  .tickers { margin-top: 64px; gap: 28px; }
  .tk-item { font-size: 18px; margin-right: 40px; }
  .tk-right .tk-item { font-size: 15px; }
}
@media (max-width: 760px) {
  #top { padding-top: 72px !important; }
  #top h1 { font-size: 40px !important; }
  #top p { font-size: 17px !important; }
  #top > div[style*="gap: 14px"] { flex-wrap: wrap; }
  .tickers { margin: 48px 0 -64px calc(50% - var(--hvw)); gap: 20px; }
  .tk-item { font-size: 16px; margin-right: 28px; gap: 8px; }
  .tk-item img { width: 22px; height: 22px; }
  .tk-right .tk-item { font-size: 14px; }
  #services { padding-bottom: 100px !important; }
  .glass-button-text, .shiny { height: 50px; font-size: 16px; }
}

/* ---------- AeroShards field behind the hero (home) ---------- */
#aero-bg, #aero-contact { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
#aero-bg .aero-shards, #aero-contact .aero-shards { position: absolute; inset: 0; }
#aero-bg::after {  /* the field settles onto the page colour at the hero's bottom edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 180px; pointer-events: none;
  background: linear-gradient(to top, var(--bg), rgba(11, 11, 15, 0));
}
#aero-bg.aero-failed, #aero-contact.aero-failed {  /* no WebGPU (Safari, Firefox): a still accent light instead of the shards */
  background: radial-gradient(60% 50% at 78% 30%, rgba(var(--accent-rgb), 0.35), rgba(var(--accent-rgb), 0) 70%), var(--bg);
}

/* ---------- page finish: film grain + vignette ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px; mix-blend-mode: overlay;
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background: radial-gradient(ellipse 80% 70% at 50% 45%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.38) 100%);
}

/* ---------- contact: full-bleed, with the second (smaller) shard field on the right ---------- */
#contact {
  position: relative; flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw));
  padding-left: max(80px, calc(var(--hvw) - 640px)) !important; padding-right: max(80px, calc(var(--hvw) - 640px)) !important;
  border-bottom: 0 !important;
}
#contact > * { position: relative; z-index: 1; }
#contact > #aero-contact { position: absolute; z-index: 0; }
#aero-contact::before, #aero-contact::after { content: ""; position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; z-index: 1; }
#aero-contact::before { top: 0; background: linear-gradient(to bottom, #0b0b0f, rgba(11, 11, 15, 0)); }
#aero-contact::after { bottom: 0; background: linear-gradient(to top, #0b0b0f, rgba(11, 11, 15, 0)); }
#contact form { background: rgba(19, 19, 26, 0.9) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 1100px) { #contact { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 760px) { #contact { padding-left: 20px !important; padding-right: 20px !important; } }

/* contact field: tilted so the vortex runs on a slant across the section */
#aero-contact .aero-shards { inset: -40% -12%; transform: rotate(-27deg); transform-origin: 50% 50%; }  /* stream rises bottom-left -> top-right */
@media (max-width: 1100px) {
  /* that oversized, rotated canvas is what gives the desktop its diagonal; on a narrow screen it magnifies
     every shard until they crowd the copy, so the field sits square and quieter behind the text instead */
  #aero-contact .aero-shards { inset: 0; transform: none; opacity: 0.6; }
}
@media (max-width: 760px) {
  #aero-contact .aero-shards { opacity: 0.45; }
  #aero-bg .aero-shards { opacity: 0.8; }
}

/* full-width dividers: above the contact section and above the footer */
#faq { border-bottom: 0 !important; }
#contact { border-top: 1px solid #1c1c25; }
#footer {
  flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw)); border-top: 1px solid #1c1c25;
  padding-left: max(80px, calc(var(--hvw) - 640px)) !important; padding-right: max(80px, calc(var(--hvw) - 640px)) !important;
}
@media (max-width: 1100px) { #footer { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 760px) { #footer { padding-left: 20px !important; padding-right: 20px !important; } }

/* careers (home): full-bleed band, content aligned with the container */
#careers {
  flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw));
  padding-left: max(80px, calc(var(--hvw) - 640px)) !important; padding-right: max(80px, calc(var(--hvw) - 640px)) !important;
}
@media (max-width: 1100px) { #careers { padding-left: 40px !important; padding-right: 40px !important; } }
@media (max-width: 760px) { #careers { padding-left: 20px !important; padding-right: 20px !important; } }

/* service cards: the card's own icon repeated large and faint in the corner */
#services article { position: relative; overflow: hidden; contain: paint; }
#services article > * { position: relative; z-index: 1; }
#services article > .card-mark {
  position: absolute; z-index: 0; right: -18px; bottom: -14px; width: 190px; height: 190px; opacity: 0.55; pointer-events: none;
  transform: perspective(700px) rotateX(22deg) rotateY(-18deg) rotate(-8deg); transform-style: preserve-3d;
  /* a solid body: a deep extrusion in darkening accent, then a soft dark contact shadow that gives it weight */
  filter: drop-shadow(2px 2px 0 var(--accent-shade-1)) drop-shadow(2px 2px 0 var(--accent-shade-2)) drop-shadow(2px 2px 0 var(--accent-shade-3)) drop-shadow(0 18px 12px rgba(0, 0, 0, 0.7));
  will-change: transform;
  transition: opacity .35s, transform .35s;
}
#services article > .card-mark img { width: 100%; height: 100%; object-fit: contain; }
#services article > .card-mark:has(img) { filter: drop-shadow(0 22px 14px rgba(0, 0, 0, 0.7)); opacity: 0.9; }
.card-mark svg { width: 100%; height: 100%; }
#services article:hover .card-mark { opacity: 0.8; transform: perspective(700px) translate(var(--px), var(--py)) rotateX(calc(22deg + var(--rx))) rotateY(calc(-18deg + var(--ry))) rotate(-8deg); transition: opacity .35s, transform .12s linear; }

/* ---------- card effects ---------- */
/* service cards: 3D tilt toward the cursor, accent spotlight under it, glowing border */
#services article { --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px; transition: border-color .3s; }
#services article:hover { border-color: rgba(var(--accent-rgb), 0.6) !important; }  /* accent border only; the icon tile and watermark do the lighting */
/* icon tile and arrow react too */
#services article > span[style*="background: #1c1c25"] { transition: background .3s, transform .3s, box-shadow .3s; }
#services article:hover > span[style*="background: #1c1c25"] { background: rgba(var(--accent-rgb), 0.16) !important; transform: perspective(300px) translate(calc(var(--px) * -0.25), calc(var(--py) * -0.25)) rotateX(var(--rx)) rotateY(var(--ry)); box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.35); }
#services article a[href$=".html"] svg { transition: transform .25s; }
#services article:hover a[href$=".html"] svg { transform: translateX(4px); }

/* scroll reveal: cards fade and rise in, staggered per column */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease var(--d, 0ms), transform .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- FAQ accordion ---------- */
.faq-item { border-top: 1px solid #23232e; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; margin: 0;
  background: none; border: 0; color: #f2f1ec; font: inherit; text-align: left; cursor: pointer;
  font-family: 'Bricolage Grotesque', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; transition: color .25s;
}
.faq-q svg { flex-shrink: 0; color: #8a8993; transition: transform .35s cubic-bezier(.2, .8, .2, 1), color .25s; }
.faq-q:hover, .faq-item.is-open .faq-q { color: var(--accent); }
.faq-item.is-open .faq-q svg { transform: rotate(180deg); color: var(--accent); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s cubic-bezier(.2, .8, .2, 1); }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0 0 24px; max-width: 760px; font-size: 16px; line-height: 1.6; color: #b4b3bc; opacity: 0; transform: translateY(-6px); transition: opacity .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-item.is-open .faq-a p { opacity: 1; transform: none; transition-delay: .08s; }
@media (max-width: 760px) { .faq-q { font-size: 18px; padding: 18px 0; } }
@media (prefers-reduced-motion: reduce) { .faq-a, .faq-a p, .faq-q svg { transition: none; } }


/* ---------- work zone: services + portfolio as one section on the wallpaper backdrop ---------- */
.work-zone {
  position: relative; flex-shrink: 0; width: var(--vw); margin-left: calc(50% - var(--hvw));
  background: #0b0b0f;  /* no overflow clipping here: it would break the sticky card stack inside */
}

.work-zone::before, .work-zone::after { content: ""; position: absolute; left: 0; right: 0; height: 160px; pointer-events: none; z-index: 0; }
.work-zone::before { top: 0; background: linear-gradient(to bottom, #0b0b0f, rgba(11, 11, 15, 0)); }
.work-zone::after { bottom: 0; background: linear-gradient(to top, #0b0b0f, rgba(11, 11, 15, 0)); }
.work-zone > * { position: relative; z-index: 1; }
.work-zone #services { width: auto; margin-left: 0; background: transparent; }
.work-zone #services { padding-bottom: 40px !important; }


/* split headlines (motion.js): words stay unbreakable, characters transform in 3D */
h2 .w { display: inline-block; white-space: nowrap; }
h2 .ch { display: inline-block; will-change: transform; backface-visibility: hidden; }
section h2, footer h2, #services .deck-intro, #portfolio > div:first-child p, #careers > div:first-child p, #contact > div > p { perspective: 600px; }
p .w { display: inline-block; white-space: nowrap; }
p .ch { display: inline-block; will-change: transform; }

/* Lenis smooth scroll: it drives the scroll, so native smooth-scroll stays off while it runs */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- services: pinned deck (heading left, cards land on top of each other in a slot on the right) ---------- */
#services .deck { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; min-height: calc(100vh - 160px); min-height: calc(100dvh - 160px); }
#services .deck-head { position: relative; display: flex; flex-direction: column; gap: 20px; }
#services .deck-head > * { position: relative; z-index: 1; }
/* the curl is drawn twice: one full copy behind the heading, one copy in front showing only the strokes that travel
   rightwards (dashes computed in motion.js) - so the line weaves over and under the letters like a tendril */
#services .deck-squiggle { position: absolute; left: -30px; top: -132px; width: 420px; height: 240px; color: var(--accent); opacity: 0.85; pointer-events: none; }
#services .deck-squiggle.is-back { z-index: 0; }
#services .deck-squiggle.is-front { z-index: 2; }
@media (max-width: 1100px) { #services .deck-squiggle { display: none; } }
#services .deck-intro { margin: 0; max-width: 440px; font-size: 17px; line-height: 1.6; color: #b4b3bc; }
#services .deck-slot { position: relative; width: min(460px, 100%); height: 560px; margin-left: auto; }
#services .deck-slot article {
  position: absolute; inset: 0; width: 100%; height: 100%; box-sizing: border-box; z-index: var(--z, 1);
  transform-origin: 50% 0; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.04);
  will-change: transform;
}
#services .deck-slot article .card-overlay { position: absolute; inset: 0; z-index: 3; background: #0b0b0f; opacity: 0; pointer-events: none; border-radius: inherit; }
@media (max-width: 1100px) {
  #services .deck { grid-template-columns: 1fr; gap: 32px; min-height: 0; }
  #services .deck-slot { height: auto; margin-left: 0; display: flex; flex-direction: column; gap: 20px; }
  #services .deck-slot article { position: relative; inset: auto; height: auto; transform: none !important; }
  #services .deck-slot article .card-overlay { display: none; }
}

/* On a phone the home page ran to thirteen screens, a third of it role cards. Two are enough to show there is
   hiring going on; the rest are one tap away behind "Browse all open roles". The careers page keeps every card. */
@media (max-width: 760px) {
  #careers article:nth-of-type(n+3) { display: none !important; }   /* the canvas sets display inline */
}

/* career role cards: same hover language as the service cards (accent border, lifted tag, arrow nudge) */
#careers article, body.careers-page article { transition: border-color .3s, transform .3s; }
#careers article:hover, body.careers-page article:hover { border-color: rgba(var(--accent-rgb), 0.6) !important; transform: translateY(-4px); }
#careers article span[style*="border-radius: 999px"], body.careers-page article span[style*="border-radius: 999px"] { transition: background .3s, color .3s, border-color .3s; }
#careers article:hover span[style*="border-radius: 999px"], body.careers-page article:hover span[style*="border-radius: 999px"] { background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.5) !important; color: var(--accent); }
#careers article a[href^="mailto"] { transition: background .25s, color .25s, border-color .25s, transform .25s; }
#careers article:hover a[href^="mailto"] { background: var(--accent); color: #0b0b0f; border-color: var(--accent) !important; }
/* same on the full careers page */
section article[style*="border: 1px solid #23232e"] { transition: border-color .3s, transform .3s; }
section article[style*="border: 1px solid #23232e"]:hover { border-color: rgba(var(--accent-rgb), 0.6) !important; transform: translateY(-4px); }

/* contact form fields */
#contact input:focus, #contact select:focus, #contact textarea:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.7) !important; box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
#contact select { appearance: none; -webkit-appearance: none; padding-right: 40px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8993' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
#contact select:invalid, #contact select option[value=""] { color: #6f6e78; }
#contact button[type="submit"]:hover { filter: brightness(1.08); }
@media (max-width: 760px) { #contact form { padding: 24px !important; } }

/* custom dropdowns (contact form) */
.dd-native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.dd { position: relative; }
.dd-btn { box-sizing: border-box; width: 100%; height: 48px; padding: 0 40px 0 16px; border-radius: 12px; border: 1px solid #34343f; background: #0b0b0f; color: #6f6e78; font: inherit; font-size: 16px; text-align: left; cursor: pointer; display: flex; align-items: center; transition: border-color .18s, box-shadow .18s; }
.dd-btn::after { content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a8993' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat center; transition: transform .2s; }
.dd.has-value .dd-btn { color: #f2f1ec; }
.dd-codes { width: max-content; }
.dd-codes .dd-btn { width: auto; padding: 0 30px 0 12px; gap: 8px; }
.dd-codes .dd-label { display: flex; align-items: center; gap: 8px; }
.field-error { grid-column: 1 / -1; margin: 0; font-size: 13px; color: #ff6b6b; }
#contact input.is-invalid { border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15); }
.dd-codes .dd-btn::after { right: 10px; }
.dd-btn:focus-visible, .dd.is-open .dd-btn { outline: none; border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12); }
.dd.is-open .dd-btn::after { transform: rotate(180deg); }
.dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-panel { position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; min-width: 100%; box-sizing: border-box; padding: 8px; border-radius: 16px; background: #0f0f14; border: 1px solid #26262f; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4); opacity: 0; transform: translateY(-6px) scale(0.98); transform-origin: top; pointer-events: none; transition: opacity .16s ease, transform .18s cubic-bezier(.2, .8, .2, 1); }
.dd.is-open .dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.dd-codes .dd-panel { width: 320px; }
.dd-search { box-sizing: border-box; width: 100%; height: 44px; margin-bottom: 6px; padding: 0 14px; border-radius: 12px; border: 1px solid #26262f; background: #0b0b0f; color: #f2f1ec; font: inherit; font-size: 15px; }
.dd-search:focus { outline: none; border-color: rgba(var(--accent-rgb), 0.6); }
.dd-search::placeholder { color: #6f6e78; }
.dd-list { max-height: 300px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.dd-list::-webkit-scrollbar { display: none; }
.dd-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.dd-ico { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent); display: inline-flex; }
.dd-ico svg { width: 100%; height: 100%; }
.dd-item { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 10px; color: #e6e5ee; font-size: 15px; cursor: pointer; white-space: nowrap; transition: background .12s; }
.dd-item:hover, .dd-item:focus { background: rgba(255, 255, 255, 0.07); outline: none; }
.dd-item.is-selected { color: var(--accent); }
.dd-code { color: #8a8993; font-size: 14px; }
@media (max-width: 760px) { .dd-codes .dd-panel { width: min(320px, calc(var(--vw) - 48px)); } }

/* contact form unrolls like a scroll as it enters (roller + shade built in motion.js) */
.unroll { position: relative; }
.unroll-roller { position: absolute; left: -10px; right: -10px; top: 0; height: 34px; border-radius: 17px; pointer-events: none; opacity: 0; transform: translateY(-50%);
  background: linear-gradient(180deg, #2c2c37 0%, #4a4a58 22%, #1d1d26 55%, #33333f 80%, #14141b 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.unroll-roller::before, .unroll-roller::after { content: ""; position: absolute; top: 3px; bottom: 3px; width: 14px; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #55556a, #1b1b23 70%); }
.unroll-roller::before { left: -2px; } .unroll-roller::after { right: -2px; }
.unroll-shade { position: absolute; left: 0; right: 0; top: 0; height: 70px; pointer-events: none; opacity: 0; transform: translateY(-100%); border-radius: 0 0 24px 24px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 100%); }

/* footer links with icons */
#footer .f-link { display: inline-flex; align-items: center; gap: 12px; width: max-content; font-size: 15px; color: var(--ink-soft); text-decoration: none; transition: color .2s, transform .28s cubic-bezier(.2, .8, .2, 1); }
#footer .f-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink-muted); background: var(--surface-raised); border: 1px solid var(--surface-edge); transition: color .2s, background .2s, border-color .2s, box-shadow .25s, transform .28s cubic-bezier(.2, .8, .2, 1); }
#footer .f-ico svg { width: 15px; height: 15px; }
#footer .f-link:hover { color: var(--ink-bright); transform: translateX(4px); }
#footer .f-link:hover .f-ico { color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 16px rgba(var(--accent-rgb), 0.25), inset 0 1px 0 var(--surface-edge); transform: rotate(-8deg) scale(1.1); }

/* navbar: services dropdown (hover / keyboard focus) */
.nav-item { position: relative; display: flex; }
.nav-item > a { display: inline-flex; align-items: center; gap: 6px; }
.n-chev { transition: transform .25s; }
.nav-item:hover .n-chev, .nav-item:focus-within .n-chev { transform: rotate(180deg); }
.nav-drop { position: absolute; top: calc(100% + 10px); left: 50%; width: 280px; box-sizing: border-box; padding: 8px; border-radius: 16px;
  background: rgba(13, 13, 18, 0.96); border: 1px solid #26262f; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 2px 8px rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  opacity: 0; transform: translate(-50%, -6px) scale(0.98); transform-origin: top center; pointer-events: none; transition: opacity .16s ease, transform .2s cubic-bezier(.2, .8, .2, 1); }
.nav-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }   /* hover bridge between the link and the panel */
.nav-item:hover .nav-drop, .nav-item:focus-within .nav-drop { opacity: 1; transform: translate(-50%, 0) scale(1); pointer-events: auto; }
.nav-links .nav-drop a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #e6e5ee; font-size: 15px; font-weight: 500; transition: background .12s, color .12s, transform .2s; }
.nav-links .nav-drop a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; transform: translateX(3px); }
.nav-links .nav-drop a.is-active { color: var(--accent); }
.nav-links .nav-drop a.is-active::after { content: none; }
.n-ico { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; color: #b4b3bc; background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.08); transition: color .2s, background .2s, border-color .2s, box-shadow .25s, transform .25s; }
.n-ico svg { width: 15px; height: 15px; }
.nav-drop a:hover .n-ico, .nav-drop a.is-active .n-ico { color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border-color: rgba(var(--accent-rgb), 0.5); box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.22); }
.nav-drop a:hover .n-ico { transform: rotate(-8deg) scale(1.08); }
/* mobile sheet: the six services listed under "Services" */
.nav-sub { display: flex; flex-direction: column; gap: 2px; padding: 0 0 8px 12px; }
.nav-sub a { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #c9c8d1; padding: 8px 0; }
.nav-sub a.is-active { color: var(--accent); }

/* phone row keeps code + number side by side on phones (the generic one-column grid rule must not apply) */
@media (max-width: 760px) { #contact .phone-row { grid-template-columns: auto minmax(0, 1fr) !important; } }

/* brand mark (assets/logo.png) beside the wordmark */
.brand-mark { flex: 0 0 auto; width: 34px; height: 34px; margin-right: 10px; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(var(--accent-rgb), 0.45)); transition: transform .3s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.nav-logo:hover .brand-mark { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 0 16px rgba(var(--accent-rgb), 0.7)); }
.is-scrolled .brand-mark { width: 28px; height: 28px; }
#footer .brand-mark { width: 38px; height: 38px; }
@media (max-width: 1024px), (hover: none) and (pointer: coarse) { .brand-mark { width: 30px; height: 30px; margin-right: 8px; } }

/* ---------- form sending state, and the careers application dialog ---------- */
/* both forms post to the Discord bot (bot/src/api.js) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }   /* honeypot */

.form-note { margin: 0; font-size: 14px; line-height: 1.5; }
.form-note.is-bad { color: #ff6b6b; }
.is-invalid { border-color: #ff6b6b !important; box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.15); }
button[type="submit"]:disabled { opacity: 0.6; cursor: progress; }

.form-done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px 8px; text-align: center; }
.form-done .tick {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%;
  color: var(--accent); background: rgba(var(--accent-rgb), 0.12); border: 1px solid rgba(var(--accent-rgb), 0.5);
  box-shadow: 0 0 28px rgba(var(--accent-rgb), 0.22);
}
.form-done h3 { margin: 4px 0 0; font-size: 22px; }
.form-done p { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.6; color: #b4b3bc; }

.apply-dialog { width: min(560px, calc(var(--vw) - 32px)); padding: 0; border: 0; background: transparent; color: #f2f1ec; }
.apply-dialog::backdrop { background: rgba(5, 5, 8, 0.72); backdrop-filter: blur(4px); }
.apply-form {
  position: relative; box-sizing: border-box; display: flex; flex-direction: column; gap: 16px;
  max-height: 86vh; max-height: 86dvh; overflow-y: auto; padding: 32px; border-radius: 24px;
  background: #13131a; border: 1px solid #23232e; box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6);
  font-family: 'Manrope', system-ui, sans-serif;
}
.apply-x {
  position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid #23232e; background: #0b0b0f; color: #b4b3bc; font-size: 20px; line-height: 1; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.apply-x:hover { color: var(--accent); border-color: rgba(var(--accent-rgb), 0.5); }
.apply-title { margin: 0; font-family: 'Bricolage Grotesque', 'Manrope', sans-serif; font-size: 26px; letter-spacing: -0.03em; }
.apply-role { margin: -8px 0 0; font-size: 15px; font-weight: 600; color: var(--accent); }
.apply-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; color: #d3d2da; }
.apply-form input, .apply-form textarea {
  box-sizing: border-box; width: 100%; padding: 0 16px; height: 48px; border-radius: 12px; border: 1px solid #34343f;
  background: #0b0b0f; color: #f2f1ec; font-family: inherit; font-size: 16px; font-weight: 400;
}
.apply-form textarea { height: auto; padding: 14px 16px; line-height: 1.5; resize: vertical; }
.apply-form input:focus, .apply-form textarea:focus {
  outline: none; border-color: rgba(var(--accent-rgb), 0.7); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.12);
}
.af-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.apply-send {
  margin-top: 4px; height: 52px; border: 0; border-radius: 999px; background: var(--accent); color: #0b0b0f;
  font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer; transition: filter .2s;
}
.apply-send:hover { filter: brightness(1.08); }
@media (max-width: 560px) { .af-row { grid-template-columns: minmax(0, 1fr); } .apply-form { padding: 24px; gap: 14px; } }

/* ---------- about page (written by make_about_page.py) ----------
   Unlike the canvas pages this one is class-based: every colour and font goes through a token, there are no
   tracked-capital labels, and nothing animates but opacity and transform. */
.ab { box-sizing: border-box; padding: 96px 80px; display: flex; flex-direction: column; gap: 40px; border-bottom: 1px solid var(--line); font-family: var(--font-body); }
.ab a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.ab-hero { padding-top: 88px; padding-bottom: 80px; gap: 24px; }
.ab-h1 { margin: 0; max-width: 900px; min-width: 0; overflow-wrap: break-word; font-family: var(--font-display); font-size: 80px; line-height: 1; font-weight: 800; color: var(--ink); }
.ab-tagline { margin: 0; font-size: 24px; line-height: 1.4; font-weight: 500; color: var(--accent); }
.ab-lede { margin: 0; max-width: 640px; font-size: 18px; line-height: 1.6; color: var(--ink-muted); }

.ab-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ab-btn { display: inline-flex; align-items: center; height: 56px; padding: 0 28px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--bg); font-size: 17px; font-weight: 600; white-space: nowrap; transition: transform .2s ease, opacity .2s ease; }
.ab-btn:hover { color: var(--bg); transform: translateY(-2px); }
.ab-btn.is-quiet { background: transparent; border-color: var(--edge); color: var(--ink); }
.ab-btn.is-quiet:hover { color: var(--ink); opacity: 0.85; }
@media (prefers-reduced-motion: reduce) { .ab-btn { transition: none; } .ab-btn:hover { transform: none; } }

.ab-h2 { margin: 0; min-width: 0; overflow-wrap: break-word; font-family: var(--font-display); font-size: 48px; line-height: 1.05; font-weight: 800; color: var(--ink); }
.ab-h3 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.2; font-weight: 700; color: var(--ink); }
.ab-p { margin: 0; max-width: 62ch; font-size: 18px; line-height: 1.65; color: var(--ink-muted); }
.ab-copy { display: flex; flex-direction: column; gap: 20px; }
.ab-copy > .ab-p:first-child { color: var(--ink-soft); }
.ab-split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }

/* where we came from: five stops, the last one being the agency */
.ab-path { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.ab-step { display: flex; flex-direction: column; gap: 12px; padding-top: 20px; border-top: 1px solid var(--edge); }
.ab-step-n { font-size: 14px; color: var(--ink-faint); }
.ab-step-t { font-family: var(--font-display); font-size: 22px; line-height: 1.2; font-weight: 700; color: var(--ink-soft); }
.ab-step.is-now { border-top-color: var(--accent); }
.ab-step.is-now .ab-step-n { color: var(--accent); }
.ab-step.is-now .ab-step-t { color: var(--ink); }

/* what we do: name, one line, what is in it */
.ab-rows { display: flex; flex-direction: column; }
.ab-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; align-items: start; padding: 32px 0; border-top: 1px solid var(--line-strong); }
.ab-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.ab-link { align-self: flex-start; font-size: 16px; font-weight: 600; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; transition: opacity .2s ease; }
.ab-link:hover { color: var(--accent); opacity: 0.8; }

.ab-tint { background: var(--tint); }
.ab-statement { margin: 0; max-width: 900px; font-family: var(--font-display); font-size: 44px; line-height: 1.15; font-weight: 700; color: var(--ink); }
.ab-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }

.ab-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.ab-point { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line-strong); }

.ab-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.ab-tags li { padding: 12px 20px; border-radius: 999px; border: 1px solid var(--edge); font-size: 16px; color: var(--ink-soft); }

.ab-close { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; border-bottom: 0; }
.ab-close > div:first-child { display: flex; flex-direction: column; gap: 16px; max-width: 720px; }

@media (max-width: 1100px) {
  .ab-split { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .ab-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 40px; }
  .ab-row .ab-list { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px 28px; }
  .ab-path { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .ab-statement { font-size: 34px; }
}
@media (max-width: 760px) {
  .ab { gap: 28px; }
  .ab-row, .ab-cols, .ab-points, .ab-path { grid-template-columns: minmax(0, 1fr); }
  .ab-row { gap: 12px; padding: 24px 0; }
  .ab-row .ab-list { flex-direction: column; gap: 8px; margin-top: 4px; }
  .ab-path { row-gap: 0; }
  .ab-step { flex-direction: row; align-items: baseline; gap: 16px; padding: 16px 0; }
  .ab-step-t { font-size: 19px; }
  .ab-point { padding: 20px 0; }
  .ab-statement { font-size: 26px; }
  .ab-tagline { font-size: 20px; }
  .ab-p, .ab-lede { font-size: 16px; }
  .ab-btn { height: 52px; padding: 0 24px; font-size: 16px; }
  .ab-close { flex-direction: column; align-items: flex-start; }
}
