/* =========================================================
   Illumina Studio — Nura Moosavi
   One stylesheet for the whole site.
   Breakpoints match the old Framer site:
     Desktop ≥ 1200px · Tablet 810–1199px · Phone < 810px
   ========================================================= */

/* ---------- Fonts (self-hosted) ---------- */
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("../fonts/satoshi-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Design tokens ---------- */
:root {
  --black: #000;
  --card: #141414;
  --tile: #121212;
  --navy: #0f151f;
  --text: #d1dae0;          /* Grey Bold */
  --text-muted: #b3c2cb;    /* Grey */
  --text-strong: #e6e6e6;
  --white: #fff;
  --highlight: #ffaa00;
  --border: rgba(255, 255, 255, 0.2);
  --container: 1080px;
  --gutter: 32px;
  --font: "Satoshi", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ui: "Hanken Grotesk", "Satoshi", system-ui, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 20px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--highlight); outline-offset: 3px; border-radius: 6px; }
.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; }

/* Film-grain overlay, fixed over the whole page */
.noise {
  position: fixed; inset: 0; z-index: 100; pointer-events: none;
  background: url("../img/noise.png") repeat;
  background-size: 128px;
  opacity: 0.075;
}

/* Soft animated glow behind the hero (replaces Framer's "Gradient Blur") */
.glow-bg {
  position: fixed; left: 50%; top: 50%; z-index: 0; pointer-events: none;
  width: 85vw; max-width: 1224px; height: 480px;
  transform: translate(-50%, -50%);
  filter: blur(80px);
  background: #141414;
  overflow: hidden;
}
.glow-bg span {
  position: absolute; border-radius: 50%; mix-blend-mode: screen; opacity: 0.85;
  animation: drift 18s ease-in-out infinite alternate;
}
.glow-bg span:nth-child(1) { width: 55%; height: 120%; left: 8%;  top: -10%; background: radial-gradient(circle, #5b3d9e 0%, rgba(91,61,158,0) 70%); }
.glow-bg span:nth-child(2) { width: 45%; height: 110%; left: 48%; top: 0;    background: radial-gradient(circle, #1f5f6e 0%, rgba(31,95,110,0) 70%); animation-duration: 22s; animation-delay: -6s; }
.glow-bg span:nth-child(3) { width: 35%; height: 90%;  left: 30%; top: 20%;  background: radial-gradient(circle, #2b3d8f 0%, rgba(43,61,143,0) 70%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(6%, 8%) scale(1.08); }
  100% { transform: translate(-6%, -4%) scale(0.95); }
}

.page { position: relative; z-index: 1; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type scale ---------- */
.t-h1 { font-size: 60px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; color: var(--text); }
.t-h2 { font-size: 38px; line-height: 1.2; letter-spacing: -0.7px; color: var(--text); }
.t-h3 { font-size: 30px; line-height: 1.4; letter-spacing: -0.5px; color: var(--text-strong); }
.t-lead { font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; color: var(--text-muted); }
.t-body { font-size: 20px; line-height: 1.4; color: var(--text); }
.t-small { font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; color: var(--text-muted); }
.hl { color: var(--highlight); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-ui); font-size: 16px; line-height: 24px; letter-spacing: -0.16px;
  color: var(--white); background: var(--navy);
  border-radius: 37px; padding: 12px 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), inset 0 -1px 0 rgba(47,43,67,0.1), 0 1px 3px rgba(47,43,67,0.1);
  transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
  white-space: nowrap;
}
.btn:hover { background: #18202e; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 4px 16px rgba(0,0,0,0.35); }
.btn--sm { padding: 4px 14px; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }

/* Industry tags on case-study cards */
.tags { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-family: var(--font-ui); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted);
       padding: 5px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); }

/* "Work with me" — running light around the stroke */
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-run {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px; border-radius: 999px;
  font-family: var(--font); font-weight: 500; font-size: 16px; line-height: 1.2; color: var(--white);
  background: #000;
  -webkit-mask-image: -webkit-radial-gradient(white, black); /* keeps corners round in Safari */
}
.btn-run::before {               /* the moving light */
  content: ""; position: absolute; inset: -60%; z-index: -2;
  background: conic-gradient(from var(--angle), transparent 0deg, transparent 250deg, rgba(125,203,255,.0) 270deg, #b5e1ff 320deg, #7dcbff 340deg, transparent 360deg);
  animation: run 3.2s linear infinite;
}
.btn-run::after {                /* the black fill inside the stroke */
  content: ""; position: absolute; inset: 2px; z-index: -1; border-radius: inherit; background: #000;
}
@keyframes run { to { --angle: 360deg; } }

/* ---------- Navigation ---------- */
.nav { position: relative; z-index: 20; }
.nav__inner { display: flex; align-items: center; justify-content: space-between; padding: 30px var(--gutter); max-width: var(--container); margin: 0 auto; }
.nav__logo { display: block; width: 42px; height: 41px; position: relative; }
.nav__logo img { position: absolute; left: -3px; top: -24px; width: 92px; height: 90px; max-width: none; object-fit: contain; }
.nav__links { display: flex; align-items: center; gap: 10px; }
.nav__links a:not(.btn) { font-weight: 500; font-size: 16px; line-height: 1; letter-spacing: -0.3px; color: var(--text); padding: 12px; transition: color .2s; }
.nav__links a:not(.btn):hover { color: var(--white); }
.nav__toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .3s, background .3s; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -7px; } .nav__toggle span::after { top: 7px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: 64px var(--gutter) 48px; text-align: center; }
.hero__inner { max-width: 1016px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 41px; }
.hero__wordmark { width: 249px; height: auto; }
.hero__title { max-width: 600px; }
.hero__text { max-width: 500px; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: -9px; }

/* ---------- Tools row ---------- */
.tools { padding: 40px 0; }
.tools__viewport {
  max-width: 1016px; margin: 0 auto; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 75%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 25%, #000 75%, transparent 100%);
  padding: 40px 0 16px;
}
.tools__track { display: flex; gap: 64px; width: max-content; will-change: transform; }
/* moved by main.js: constant drift, eases to half speed on hover (no jumps) */
.tool { position: relative; flex: 0 0 auto; }
.tool__tile { width: 86px; height: 86px; border-radius: 32px; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.tool__tile img { width: 48px; height: 48px; object-fit: contain; }
.tool__label {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px);
  background: var(--text); color: var(--navy); font-family: var(--font-ui); font-weight: 500; font-size: 14px; letter-spacing: -0.2px;
  padding: 4px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.tool:hover .tool__label { opacity: 1; transform: translate(-50%, 0); }

/* Phone: a swipeable, endless row instead of the auto ticker */
.tools__swipe { display: none; }

/* ---------- About ---------- */
.about { padding: 80px 20px 98px; overflow: hidden; }
.about__inner { max-width: 960px; margin: 0 auto; display: flex; align-items: center; }
.about__media { flex: 1 1 0; display: flex; justify-content: center; }
.about__photo { width: 341px; height: 322px; object-fit: cover; object-position: center 58%; border-radius: 20px; }
.about__text { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 15px; }
.about__text > * { width: 402px; max-width: 100%; }
.lead-in { font-weight: 500; color: var(--white); }

/* Go-to tools grid (inside About) */
.gotools { margin-top: 13px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.gotools__label { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.gotools__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gotool { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,0.035); border: 1px solid rgba(255,255,255,0.09); transition: border-color .2s, background .2s; }
.gotool:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); }
.gotool__icon { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--tile); display: flex; align-items: center; justify-content: center; }
.gotool__icon img { width: 24px; height: 24px; object-fit: contain; border-radius: 6px; }
.gotool__name { display: block; font-size: 15px; line-height: 1.2; font-weight: 500; color: var(--text-strong); }
.gotool__use { display: block; font-size: 13px; line-height: 1.3; color: var(--text-muted); margin-top: 2px; }

/* ---------- Case study cards (sticky stack) ---------- */
.cases { display: flex; flex-direction: column; align-items: center; gap: 48px; padding: 0 var(--gutter); }
.case {
  position: sticky; width: 100%; max-width: 1016px;
  transform-origin: 50% 0; will-change: transform;
}
.case:nth-child(1) { top: 100px; } .case:nth-child(2) { top: 130px; }
.case:nth-child(3) { top: 160px; } .case:nth-child(4) { top: 190px; }
.case__card {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--card); border-radius: 32px;
  min-height: 500px; padding: 60px 40px;
  display: flex; gap: 80px; align-items: stretch;
}
.case__glow { position: absolute; z-index: -1; width: 590px; height: 590px; right: -1px; top: -45px; border-radius: 50%; filter: blur(100px); opacity: .15; }
.case__content { flex: 1 1 0; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.case__headings { display: flex; flex-direction: column; gap: 10px; }
.case__desc { max-width: 428px; }
.case__side { flex: 1 1 0; display: flex; flex-direction: column; gap: 24px; }
.case__img { width: 100%; aspect-ratio: 1.747; object-fit: cover; border-radius: 8px; }
.case__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.metric { font-weight: 500; font-size: 42px; line-height: 1.2; letter-spacing: -1px; color: var(--text); margin-bottom: 9px; }
.case .btn { align-self: flex-start; }

/* ---------- Pills statement ---------- */
.statement { position: relative; padding: 96px 24px 80px; }
.statement__rows { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.statement__row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.statement__row .a { color: var(--white); font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; }
.statement__row .b { color: var(--text-muted); font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; }
.pill {
  display: inline-block; padding: 6px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(10,10,10,.6);
  font-size: 20px; line-height: 30px;
  background-image: linear-gradient(100deg, #adb1b8 30%, #ffffff 50%, #adb1b8 70%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 4s ease-in-out infinite;
}
.pill-wrap { display: inline-flex; border-radius: 999px; border: 1px solid var(--border); background: #0a0a0a; }
.pill-wrap .pill { border: 0; background-color: transparent; }
.statement__row:nth-child(2) .pill { animation-delay: .4s; }
.statement__row:nth-child(3) .pill { animation-delay: .8s; }
.statement__row:nth-child(4) .pill { animation-delay: 1.2s; }
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }

/* ---------- Testimonials ---------- */
.testimonials { position: relative; padding: 60px var(--gutter) 120px; overflow: hidden; }
.rings { position: absolute; left: 50%; top: 50%; width: 1100px; height: 1100px; transform: translate(-50%, -50%); pointer-events: none; z-index: 0; }
.rings circle { fill: none; stroke: rgba(255,255,255,0.06); stroke-width: 1; transform-origin: 550px 550px; animation: ring 8s ease-in-out infinite; }
.rings circle:nth-child(2) { animation-delay: -2s; } .rings circle:nth-child(3) { animation-delay: -4s; } .rings circle:nth-child(4) { animation-delay: -6s; }
@keyframes ring { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.03); } }
.testimonials__grid { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; text-align: center; }
.quote { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.quote__logo { height: 102px; display: flex; align-items: center; justify-content: center; }
.quote__logo img { max-height: 100%; width: auto; }
.quote__logo--castleford img { width: 184px; }
.quote__logo--pf img { width: 150px; }
.quote__logo--nz img { width: 110px; }
.quote p { max-width: 240px; }

/* ---------- Section headings + lists ---------- */
.section { padding: 96px 0; }
.section__head { margin-bottom: 32px; }
.skills { display: flex; flex-wrap: wrap; gap: 12px; max-width: 748px; }
.skill { font-weight: 500; font-size: 16px; line-height: 1.4; letter-spacing: -0.3px; color: var(--text); background: var(--navy); border: 1px solid var(--border); border-radius: 8px; padding: 8px 12px; }

.exp { margin-top: 48px; }
.exp__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 var(--gutter); margin: 0 calc(-1 * var(--gutter)); }
.exp__row + .exp__divider { margin-top: 16px; }
.exp__divider { height: 1px; background: var(--border); margin: 16px calc(-1 * var(--gutter)); }
.exp__role { font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; color: var(--text-muted); }
.exp__co { font-size: 18px; line-height: 1.4; letter-spacing: -0.3px; color: var(--text-muted); text-align: right; }

/* FAQ accordion */
.faq { max-width: 1016px; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; text-align: left; padding: 32px 0; font-size: 24px; line-height: 1.4; letter-spacing: -0.5px; color: var(--text-muted); transition: color .2s; }
.faq__q:hover { color: var(--text); }
.faq__chev { flex: 0 0 auto; width: 24px; height: 24px; transition: transform .3s ease; }
.faq__item.is-open .faq__chev { transform: rotate(90deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { font-size: 20px; line-height: 1.4; color: var(--text); padding-right: 48px; }
.faq__a p + p { margin-top: 18px; }
.faq__a p:last-child { padding-bottom: 32px; }

/* ---------- Contact ---------- */
.contact { padding: 64px var(--gutter) 48px; }
.contact__card { max-width: 1016px; margin: 0 auto; border: 1px solid var(--border); border-radius: 32px; padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.contact__title {
  font-size: 48px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; max-width: 700px;
  background-image: linear-gradient(90deg, #6e7681 0%, #d1dae0 25%, #ffffff 45%, #d1dae0 60%, #3a3f46 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s ease-in-out infinite alternate;
}
.contact__lines { max-width: 800px; padding: 20px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.contact__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.contact__links a { color: var(--highlight); font-weight: 500; transition: opacity .2s; }
.contact__links a:hover { opacity: .8; }
@media (min-width: 900px) { .contact__links { flex-wrap: nowrap; white-space: nowrap; } }

/* ---------- Footer ---------- */
.footer { padding: 40px var(--gutter) 48px; }
.footer__inner { max-width: 1024px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.footer small, .footer a { font-weight: 500; font-size: 14px; line-height: 1.2; letter-spacing: -0.2px; color: var(--text-strong); }
.footer__logo img { width: 66px; height: auto; }
.footer__links { display: flex; justify-content: flex-end; gap: 32px; }
.footer__links a:hover { color: var(--white); }

/* ---------- Work page ---------- */
.work-head { padding: 64px var(--gutter) 64px; text-align: center; }

/* ---------- Case study page ---------- */
.cs-hero { padding: 40px var(--gutter) 0; }
.cs-hero__text { max-width: 720px; margin: 0 auto; }
.cs-title { font-size: 48px; line-height: 1.2; font-weight: 500; letter-spacing: -0.03em; color: var(--text-strong); max-width: 660px; }
.cs-intro { margin-top: 36px; white-space: pre-line; }
.cs-img { width: 100%; border-radius: 24px; object-fit: cover; }
.cs-img--hero { max-width: 1000px; aspect-ratio: 1000 / 530; margin: 72px auto 0; }
.cs-img--wide { aspect-ratio: 1016 / 538; }
.cs-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 1016px; margin: 0 auto; }
.cs-pair img { aspect-ratio: 493 / 537; }
.cs-wrap { max-width: 1016px; margin: 0 auto; padding: 0 var(--gutter); box-sizing: content-box; }
.cs-intro-row { max-width: 736px; margin: 98px auto 72px; display: flex; gap: 30px; }
.cs-meta { flex: 0 0 235px; display: flex; flex-direction: column; gap: 24px; }
.cs-meta dt { font-family: var(--font-ui); font-weight: 700; font-size: 18px; line-height: 1.4; color: var(--text-strong); }
.cs-meta dd { margin: 6px 0 0; font-size: 20px; line-height: 1.4; color: var(--text); }
.cs-col { flex: 1 1 0; }
.cs-block { max-width: 736px; margin: 0 auto; padding: 98px 0 72px; }
.cs-block h2, .cs-col h2 { margin-bottom: 16px; }
.cs-block p + p, .cs-col p + p { margin-top: 18px; }
.cs-next { text-align: center; padding: 96px var(--gutter) 24px; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; padding: 64px var(--gutter); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* =========================================================
   Tablet 810–1199px
   ========================================================= */
@media (max-width: 1199.98px) {
  .t-h1 { font-size: 52px; }
  .case__card { gap: 40px; padding: 48px 32px; }
  .about__inner { gap: 40px; }
  .about__photo { width: 300px; height: 300px; }
  .cs-pair, .cs-img--wide { max-width: 100%; }
  .cs-intro-row, .cs-block { padding-left: 0; padding-right: 0; }
}

/* =========================================================
   Phone < 810px
   ========================================================= */
@media (max-width: 809.98px) {
  :root { --gutter: 20px; }
  body { font-size: 18px; }
  .t-h1 { font-size: 40px; letter-spacing: -1.2px; }
  .t-h2 { font-size: 32px; }
  .t-h3 { font-size: 24px; }
  .t-lead { font-size: 20px; }
  .t-body { font-size: 18px; }
  .t-small { font-size: 16px; }

  /* nav becomes a menu */
  .nav__inner { padding: 32px var(--gutter) 20px; }
  .nav__toggle { display: inline-flex; }
  .nav__links {
    position: absolute; left: 12px; right: 12px; top: 88px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px; border-radius: 20px; background: rgba(15,21,31,.96); border: 1px solid var(--border);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    opacity: 0; transform: translateY(-8px); pointer-events: none; transition: opacity .25s, transform .25s;
  }
  .nav.is-open .nav__links { opacity: 1; transform: none; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 14px 12px; font-size: 18px; }
  .nav__links .btn { margin-top: 6px; padding: 12px 20px; }

  .hero { padding: 40px var(--gutter) 40px; }
  .hero__inner { gap: 28px; }
  .hero__ctas { margin-top: 12px; }
  .hero__wordmark { display: none; }
  .glow-bg { height: 360px; width: 120vw; }

  /* tools: swipe row */
  .tools { padding: 32px 0 48px; }
  .tools__viewport { display: none; }
  .tools__swipe {
    display: flex; gap: 32px; padding: 8px 24px; overflow-x: auto;
    scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
  }
  .tools__swipe::-webkit-scrollbar { display: none; }
  .tools__swipe .tool__tile { width: 40px; height: 40px; border-radius: 12px; background: transparent; }
  .tools__swipe .tool__tile img { width: 40px; height: 40px; border-radius: 10px; }
  .tools__swipe .tool__label { display: none; }

  .about { padding: 64px var(--gutter) 104px; }
  .about__inner { flex-direction: column; gap: 32px; }
  .about__media { width: 100%; flex: none; }
  .about__photo { width: 100%; max-width: 340px; height: auto; aspect-ratio: 1 / 1; }
  .about__text { align-items: stretch; }
  .about__text > * { width: auto; }

  .cases { gap: 40px; padding: 0 16px; }
  .case:nth-child(1) { top: 40px; } .case:nth-child(2) { top: 50px; }
  .case:nth-child(3) { top: 60px; } .case:nth-child(4) { top: 70px; }
  .case__card { flex-direction: column; gap: 24px; padding: 32px 24px; min-height: 0; border-radius: 24px; }
  .case__content { display: contents; }
  .case__headings { order: 1; }
  .case .btn { order: 2; }
  .case__side { order: 3; }
  .case__glow { width: 360px; height: 360px; top: auto; bottom: -80px; }
  .metric { font-size: 34px; }

  .statement { padding: 112px 16px 96px; }
  .statement__row { gap: 6px; }
  .statement__row .a, .statement__row .b { font-size: 17px; }
  .pill { font-size: 15px; line-height: 24px; padding: 3px 12px; }
  .cs-next .btn { white-space: normal; text-align: center; line-height: 1.4; padding: 12px 22px; }

  .testimonials { padding: 56px var(--gutter) 104px; }
  .testimonials__grid { grid-template-columns: 1fr; gap: 56px; }
  .quote p { max-width: 320px; }
  .rings { width: 700px; height: 700px; }

  .section { padding: 88px 0; text-align: center; }
  .skills { justify-content: center; margin: 0 auto; }
  .exp__row { flex-direction: column; gap: 6px; text-align: center; }
  .exp__co { text-align: center; }
  .exp__role { font-size: 20px; }
  .faq { text-align: left; }
  .faq__q { font-size: 19px; padding: 24px 0; }
  .faq__a p { font-size: 17px; padding-right: 0; }
  .faq__a p:last-child { padding-bottom: 24px; }
  .section--faq { text-align: left; }

  .contact__card { padding: 40px 20px; border-radius: 24px; }
  .contact__title { font-size: 34px; }
  .contact__lines { padding: 20px 0; font-size: 17px; }

  .footer__inner { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .footer__logo { order: -1; }

  .cs-title { font-size: 34px; }
  .cs-intro { margin-top: 20px; }
  .cs-img--hero { margin-top: 40px; border-radius: 16px; }
  .cs-img { border-radius: 16px; }
  .cs-intro-row { flex-direction: column; margin: 56px auto 40px; gap: 36px; }
  .cs-meta { flex: none; flex-direction: row; flex-wrap: wrap; gap: 20px 32px; }
  .cs-pair { grid-template-columns: 1fr; gap: 20px; }
  .cs-block { padding: 56px 0 40px; }
  .work-head { padding: 40px var(--gutter); }
}
