/* =========================================================================
   HUKI — Landing - Built from Figma
   ========================================================================= */

/* --- Self-hosted fonts (Geist + Geist Mono) --- */

/* Geist — latin-ext */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Geist — latin */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/geist-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Geist Mono 600 — latin-ext */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/geist-mono-latin-ext-600-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Geist Mono 600 — latin */
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url("fonts/geist-mono-latin-600-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Inria Serif 400 — latin-ext */
@font-face {
  font-family: "Inria Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/inria-serif-latin-ext-400-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* Inria Serif 400 — latin */
@font-face {
  font-family: "Inria Serif";
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url("fonts/inria-serif-latin-400-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  /* --- Colour (Figma "colors/*" variables) --- */
  --brand:      #21F1A8;
  --dark:       #1D1E41;
  --secondary:  #FF9900;
  --white:      #ffffff;
  --gray:       #68758A;
  --border:     #e1e3e380;
  --line:       0.6px solid var(--border);
  --background: #fbf9f780;

  /* --- Accessible text variants (WCAG AA, >=4.5:1) for use on light/tint backgrounds ---
     The originals above stay unchanged for use as fills/backgrounds/decoration. --- */
  --brand-text:  #08865A;  /* --brand as body/label text on #fdfdfd (4.52:1) */

  /* --- Hover & active states (interactive tokens) --- */
  --brand-hover:  #0DDB93;
  --brand-active: #0BB97C;
  --dark-hover:   #303030;
  --dark-active:  #111111;
  --gray-text: var(--gray);  /* --gray as body/label text on #fdfdfd (4.66:1, was 2.57:1) */
  --secondary-text:var(--gray-text);  /* --secondary as body/label text on #fdfdfd (5.4:1) */

  /* --- One-off fills from the design (not variables in Figma) --- */
  --page:       #fdfdfd;  /* Landing background */
  --cta-ink:    #0b0b0c;  /* "Give it 30 minutes." */
  --cta-body:   #3a3a3d;  /* CTA paragraph */

  /* --- Type --- */
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --font-serif: "Inria Serif", Georgia, "Times New Roman", serif;

  /* --- Spacing scale observed in the file --- */
  --s1: 4px;   --s2: 8px;   --s4: 16px;  --s5: 20px;
  --s6: 24px;  --s8: 32px;  --s10: 40px; --s12: 48px;
  --s16: 64px; --s20: 80px; --s28: 112px; --s32: 128px; --s40: 160px; --s48: 224px;

  --container: 1200px;
  --gutter: 24px;

  /* --- Corner radius --- */
  --radius: 8px;
  --radius-inner: calc(var(--radius) - var(--s1));  /* image inside a .frame */
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

body {
  margin: 0;
  background: var(--page);
  color: var(--dark);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.556;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--secondary-text);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--dark); color: var(--white);
  padding: 12px 16px; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

/* ------------------------------------------------------------ container */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ------------------------------------------------------------ utilities */
.lb { display: inline; }               /* designer's intentional line breaks */
.rule { width: 100%; margin: 0; border: 0; border-top: var(--line); }
.stack { display: flex; flex-direction: column; gap: var(--s12); }
.stack--offset { padding-top: var(--s12); }
.frame {
  padding: var(--s2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
}
.media-bg { position: absolute; inset: 0; z-index: -1; }
.media-cover { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ------------------------------------------------------------- type ---- */
.h1 { font-weight: 400; font-size: 72px; line-height: 1.0; }
.h2 { font-weight: 900; font-size: 56px; line-height: 1.0; }
.h3 { font-weight: 700; font-size: 24px; line-height: 32px; }
.h4 { font-weight: 900; font-size: 100px; line-height: 100px; letter-spacing: -.038em; }
.h5 { font-weight: 800; font-size: 22px; line-height: 36px; }
.h6 { font-weight: 700; font-size: 24px; line-height: 28px; letter-spacing: -.0417em; }
.base  { font-weight: 400; font-size: 18px; line-height: 28px; }
.small { font-weight: 400; font-size: 14px; line-height: 22px; }
.small--tight { line-height: 20px; }
.base--bold { font-weight: 700; }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  line-height: 22px;
  letter-spacing: .032em;
}
.eyebrow--secondary { color: var(--secondary-text); }
.eyebrow--brand    { color: var(--brand-text); }


/* ----------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  line-height: 18px;
  padding: 12px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, opacity .18s ease;
  cursor: pointer;
}
.btn--brand        { background: var(--brand); color: var(--dark); }
.btn--brand:hover  { background: var(--brand-hover); }
.btn--brand:active { background: var(--brand-active); }
.btn--dark         { background: var(--dark); color: var(--white); }
.btn--dark:hover   { background: var(--dark-hover); }
.btn--dark:active  { background: var(--dark-active); }
.btn--outline              { border-color: var(--border); color: var(--dark); }
.btn--outline:hover        { background: rgba(0,0,0,.04); }
.btn--outline:active       { background: rgba(0,0,0,.08); }
.btn--outline-light        { border-color: var(--white); color: var(--white); }
.btn--outline-light:hover  { background: rgba(255,255,255,.14); }
.btn--outline-light:active { background: rgba(255,255,255,.22); }

/* text-only arrow button (qualifier + cards) */
.btn--text {
  padding: 0;
  border-radius: 0;
  font-weight: 400;
  font-size: 18px;
  line-height: 18px;
  color: var(--dark);
  /* Shrink to content width and pin left instead of stretching full-width
     and centering — matters wherever this sits in a stretch-aligned flex
     column (e.g. .qualifier__panel). Global fix, not a one-off override. */
  align-self: flex-start;
}
.btn--text-sm { font-size: 14px; line-height: 14px; }
.btn--text:hover .btn__arrow { transform: translateX(4px); }
.btn--text:active .btn__arrow { transform: translateX(4px) translateY(1px); }
.btn__arrow { transition: transform .18s ease; }

/* ============================================================== NAVBAR */
.navbar {
  /* Fixed (not sticky) on purpose: sticky still reserves its own height in
     flow, which pushed .hero down and left a solid strip above it. Fixed
     takes the bar out of flow so .hero fills the viewport from y:0 and the
     navbar floats over it. z-index:50 is unchanged/already correct — it's
     above .hero (position:relative, z-index:auto, so it always paints
     below any positioned element with a positive z-index) and below
     .mobile-cta (60) and .modal/.skip-link (100), which both need to sit
     above a fixed navbar when active. */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  box-shadow: 0 0 0 rgba(23,23,23,0);
  transition: box-shadow .25s ease, background-color .25s ease;
}
/* On scroll: frosted-glass background + elevation. Transparent at page load. */
.navbar--scrolled {
  background: rgba(253,253,253,.4);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  box-shadow: 0 4px 16px rgba(23,23,23,.08);
}
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.navbar__left { display: flex; align-items: center; gap: var(--s12); }
.navbar__logo img { width: 128px; height: 40px; }
.navbar__logo { display: inline-flex; transition: opacity .18s ease; }
.navbar__logo:hover { opacity: .8; }
.navbar__nav { display: flex; align-items: center; gap: var(--s8); }
/* Brand social links (LinkedIn, Dribbble, Behance) */
.navbar__social a { display: inline-flex; color: var(--dark); opacity: .75; transition: opacity .18s ease, color .18s ease; }
.navbar__social a:hover { opacity: 1; }
.navbar__social a[aria-label*="LinkedIn"]:hover { color: #0a66c2; }
.navbar__social a[aria-label*="Dribbble"]:hover { color: #ea4c89; }
.navbar__social a[aria-label*="Behance"]:hover  { color: #1769ff; }
.navbar__social svg { width: 18px; height: 18px; display: block; }

/* Nav CTA only appears once the hero has scrolled past — matches hukilp.html */
.navbar__cta {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s;
}
.navbar__cta.show {
  opacity: 1;
  transform: none;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s;
}

/* ========================================================= MOBILE STICKY CTA */
.mobile-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(253,253,253,.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .22s ease-out, visibility 0s .22s;
}
.mobile-cta.show { transform: none; visibility: visible; transition: transform .22s ease-out, visibility 0s; }
.mobile-cta .btn { width: 100%; }

/* ================================================================ HERO */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Scales with the viewport (monitor resolution) but is clamped between
     a usable floor and the Figma-designed ceiling. */
  height: 100vh;
  height: 100svh; /* avoids mobile browsers' address-bar chrome resizing this mid-scroll */
  min-height: 680px;
  max-height: 1024px;
  padding-block: var(--s6);
  overflow: hidden;
  isolation: isolate;
}
.hero__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(251,249,247,0.5) 18.5%, #fff 100%);
}
.hero__inner {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: var(--s16);
}
.hero__head {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: var(--s6);
  width: 100%; text-align: left;
}
.hero__title { font-family: var(--font-serif); letter-spacing: -0.02em; }
.hero__mark {
  border: 0.6px solid var(--dark);
  background: transparent;
  color: var(--dark);
  padding-inline: 0.12em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero__card {
  display: flex; align-items: center; gap: var(--s6);
  max-width: 451px; width: 100%;
  box-shadow:
    0 1px 2px rgba(75,86,107,.07),
    0 2px 4px rgba(75,86,107,.07),
    0 4px 8px rgba(75,86,107,.07),
    0 8px 16px rgba(75,86,107,.07),
    0 16px 32px rgba(75,86,107,.07),
    0 32px 64px rgba(75,86,107,.07);
}
.hero__avatar {
  width: 80px; height: auto;
  align-self: stretch;
  object-fit: cover;
  border-radius: var(--radius);
  flex-shrink: 0;
}
.hero__card-info {
  display: flex; flex-direction: column;
  min-width: 0;
}
.hero__bio { color: var(--gray-text); font-size: 14px; line-height: 18px; padding-bottom: var(--s6); }
.hero__actions {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: flex-start;
  gap: var(--s6);
}
.hero__actions .btn--text { align-self: center; }

/* ======================================================== NUMBERS (dark) */
.s-numbers__wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  isolation: isolate;
}
.s-numbers__inner {
  display: flex; flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  aspect-ratio: 16 / 9;
  padding: var(--s20) var(--s16);
}
.s-numbers__card { align-self: flex-end; max-width: 300px; border-radius: 12px; }
.s-numbers__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s12);
  width: 100%;
}
.s-numbers__item {
  display: flex; flex-direction: column;
  gap: var(--s4);
}
.s-numbers__value {
  font-family: var(--font);
  font-weight: 900;
  font-size: 82px;
  line-height: 1;
  color: var(--white);
  letter-spacing: -0.038em;
}
.s-numbers__label { color: var(--white); }


/* ========================================== WHERE EXPERIENCE COMES FROM */
.s-aboutwork { padding-block: var(--s12); }
.s-aboutwork .container { display: flex; flex-direction: column; gap: var(--s2); }
.aboutwork__head { display: flex; align-items: baseline; justify-content: space-between; }
.aboutwork__group {
  display: flex; flex-direction: column; gap: var(--s8);
  padding-block: var(--s6);
  opacity: 0.72;
}
.aboutwork__logos { display: flex; gap: var(--s8); align-items: center; }
.logocard { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-top: var(--line); padding-top: var(--s4); }
.logocard__body { padding-top: var(--s4); }
.logocard__mark { width: 152px; height: 40px; }
.logocard__meta { color: var(--gray); }

.aboutwork__trusted { display: flex; flex-direction: column; gap: var(--s4); padding-bottom: var(--s8); border-bottom: var(--line); }
.trustedlist {
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
  color: var(--gray);
  font-weight: 600;
}

/* =========================================================== QUALIFIER */
.s-qualifier { padding-block: var(--s32); }
.qualifier__panel {
  padding: 0;
  display: flex; gap: var(--s32);
  align-items: stretch;
}
.qualifier__left {
  flex: 1 1 50%; min-width: 0;
  min-height: 520px;
  display: flex; flex-direction: column; gap: var(--s6);
  justify-content: center;
}
.qualifier__right {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  flex: 1 1 50%; min-width: 0;
  min-height: 520px;
  display: flex; align-items: center; justify-content: center;
  border: var(--line);
  border-radius: var(--radius);
}
.qualifier__right .media-cover { object-position: right; }
.qualifier__right::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--dark), transparent);
  pointer-events: none;
}
.qualifier__right .btn { position: relative; z-index: 1; }
.qlist { display: flex; flex-direction: column; }
.qlist__item {
  display: flex; gap: var(--s6); align-items: center;
  padding-block: var(--s6);
  border-top: var(--line);
}
.qlist__item:last-child { border-bottom: var(--line); }
.qlist__icon {
  font-size: 18px; line-height: 1; flex: none;
}
.qlist__text { flex: 1 1 0; min-width: 0; }

/* ==================================================== HOW EMBEDDING WORKS */
.s-mechanism { padding-top: var(--s2); padding-bottom: var(--s48); }
.mlist { display: flex; flex-direction: column; }
.mlist__item {
  display: flex; align-items: flex-start;
  padding-block: var(--s8);
  border-top: var(--line);
}
.mlist__title { flex: 1 1 0; min-width: 0; padding-right: var(--s6); }
.mlist__body  { flex: 1 1 0; min-width: 0; }

/* ========================================================= FIRST 30 DAYS */
.s-first30 { border-top: var(--line); }
.first30__inner {
  display: flex;
  align-items: stretch;
  padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
}

.first30__timeline {
  flex: 0 0 auto;
  width: 424px;
  padding-block: 128px;
  margin-right: 128px;
}

.timeline { display: flex; flex-direction: column; gap: var(--s6); }
.timeline__item {
  position: relative;
  padding-left: 34px;
  padding-bottom: var(--s2);
  display: flex; flex-direction: column; gap: var(--s2);
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 4px; top: 9px;
  width: 9px; height: 9px;
  border: 2px solid var(--brand);
  border-radius: 50%;
}
.timeline__line {
  position: absolute; left: 8px; top: 28.5px; bottom: 13.5px;
  width: 1px; background: var(--border);
}

.first30__photo {
  flex: 1 0 0;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 128px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 128px 80px;
  overflow: hidden;
}
.first30__photo img { position: absolute; inset: 0; }
.first30__caption {
  position: relative; z-index: 1;
  background: var(--white);
  border-radius: var(--radius);
  padding: var(--s6);
  font-style: italic;
}

/* Anchor targets: offset by navbar height so the fixed bar never covers headings.
   Desktop navbar is single-row (80px min-height); at ≤900px it wraps to two
   rows (~116px, overridden below). Add 16px breathing space above the heading. */
#engagements,
#about,
#cta { scroll-margin-top: 96px; }

/* =========================================================== ENGAGEMENTS */
.s-engagements {
  background: var(--background);
  padding-top: var(--s28);
  padding-bottom: var(--s40);
}
.engagements__header { display: flex; flex-direction: column; gap: var(--s6); }
.engagements__grid { display: flex; align-items: stretch; }
.engcol {
  flex: 1 1 0; min-width: 0;
  padding-right: var(--s12);
  padding-block: var(--s8);
  display: flex; flex-direction: column; gap: var(--s4);
}
.engcol__head { display: flex; flex-direction: column; gap: var(--s1); }
.engcol__title { min-height: var(--s16); }  /* two lines of .h3, keeps the four bodies aligned */
.engcol__body { font-size: 14px; line-height: 24px; }

/* ================================================================= ABOUT */
.s-about { padding-block: var(--s16); background: var(--white); border-bottom: var(--line); }
.about__grid { display: flex; align-items: flex-start; padding-top: var(--s12); gap: var(--s12); }
.about__title { color: var(--gray); opacity: 0.45; flex: 0 0 252px; }
.about__center { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s8); }
.about__card { display: flex; flex-direction: column; }
.about__portrait-img { width: 100%; height: 312px; object-fit: cover; border-radius: var(--radius); }
.about__card-info {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s2);
}
.about__info-label { font-size: 14px; font-weight: 700; color: var(--gray); }
.about__info-sep { color: var(--gray); }
.about__info-meta { font-size: 14px; color: var(--gray); }
.about__statement { color: var(--dark); }
.about__body {
  display: flex; flex-direction: column; gap: var(--s4);
}
.about__pull {
  flex: 0 0 251px;
  color: var(--gray);
}

/* ========================================================= CASE STUDY */
.s-casestudy { padding-bottom: var(--s32); }
.cards { display: flex; align-items: stretch; }
.cards.frame { padding: 0; }
.card {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; gap: var(--s2);
  padding: var(--s8);
}
.card + .card { border-left: var(--line); }
.card__img { width: 100%; height: 300px; background: var(--background); object-fit: cover; border-radius: var(--radius-inner); }
.card__head { display: flex; flex-direction: column; padding: var(--s4) var(--s4) 0; }
.card__body { display: flex; flex-direction: column; gap: var(--s2); flex: 1 1 auto; padding: 0 var(--s4); }
.card__foot {
  margin-top: auto;
  padding: var(--s4) var(--s4) 0;
  border-top: var(--line);
}

/* =================================================================== FAQ */
.s-faq { padding-top: var(--s32); padding-bottom: var(--s48); }
.faq { display: flex; flex-direction: column; }
.faq__row { border-top: var(--line); }
.faq__row:last-child { border-bottom: var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
  padding-block: var(--s6);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__icon {
  position: relative;
  flex: none;
  width: 16px; height: 16px;
}
.faq__icon::before,
.faq__icon::after {
  content: ""; position: absolute; background: var(--gray);
}
.faq__icon::before { left: 0; top: 7px; width: 16px; height: 2px; }
.faq__icon::after  { left: 7px; top: 0; width: 2px; height: 16px; transition: transform .18s ease; }
.faq__row[open] .faq__icon::after { transform: scaleY(0); }
.faq__a { padding-bottom: var(--s6); max-width: 800px; }

/* ============================================================= PORTFOLIO */
.s-portfolio { padding-block: var(--s32); }

/* -- shipped cards (portfolio) -- */
.shipped-list { display: flex; flex-direction: column; }
.shipped-card {
  display: grid;
  grid-template-columns: 3fr 3fr 6fr;
  gap: var(--s12);
  padding-block: var(--s12);
  border-top: var(--line);
  align-items: stretch;
}
.shipped-card__meta {
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.shipped-card__img {
  height: 208px;
  border-radius: var(--radius);
  overflow: hidden;
}
.shipped-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--s6);
}
.shipped-card__body .base { color: var(--secondary-text); }
.shipped-card__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s6);
  margin-top: auto;
}

/* ================================================================== CTA */
.s-cta { background: var(--brand); }
.s-cta .container {
  display: flex; flex-direction: column; gap: var(--s12);
  padding-top: var(--s32); padding-bottom: var(--s8);
}
.cta__grid { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s12); }
.cta__left { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: var(--s8); }
.cta__panel {
  width: 452px; max-width: 100%; flex: none;
  display: flex; flex-direction: column; justify-content: center; gap: var(--s6);
}
.cta__head { display: flex; align-items: center; gap: var(--s4); }
.cta__icon { width: 72px; height: 72px; flex: none; }
.cta__lead { color: var(--cta-ink); font-size: 32px; line-height: 40px; }
.cta__body { color: var(--cta-body); }
.cta__actions { display: flex; gap: var(--s6); flex-wrap: wrap; }
.cta__copy { padding-top: var(--s12); }

/* Privacy disclosure (expandable) */
.privacy { padding-top: var(--s6); }
.cta__footer { padding-top: var(--s6); }
.privacy--inline { display: inline; padding-top: 0; }
.privacy--inline .privacy__toggle { display: inline; }
.privacy--inline .privacy__body { display: block; }
.privacy__toggle { cursor: pointer; opacity: .72; transition: opacity .15s; }
.privacy__toggle:hover { opacity: .8; }
.privacy__body { padding-top: var(--s4); max-width: none; opacity: .7; line-height: 1.6; }
.privacy__body ul { padding-left: 1.2em; margin: var(--s2) 0; }
.privacy__body li { margin-bottom: var(--s1); }


/* =========================================================================
   RESPONSIVE
   The Figma file has one desktop frame only, so every breakpoint below is
   an implementation decision — review and adjust.
   ========================================================================= */

@media (max-width: 1024px) {
  .h2 { font-size: 44px; }
  .h4 { font-size: 68px; line-height: 70px; }

  .lb { display: none; }

  .hero { padding-block: var(--s20); }
  .hero__inner { gap: var(--s10); }

  .first30__inner { flex-direction: column; padding-left: 0; }
  .first30__timeline { width: auto; margin-right: 0; padding: var(--s16) var(--gutter); }
  .first30__photo { min-height: 360px; padding: var(--s8) var(--gutter); }

  .engagements__grid { flex-wrap: wrap; }
  .engcol { flex: 1 1 45%; }
  .engcol__title { min-height: 0; }

  .about__grid { flex-direction: column; }
  .about__title { flex: none; }
  .about__pull { flex: none; }

  .cards { flex-direction: column; }
  .card + .card { border-left: none; border-top: var(--line); }

  .shipped-card { grid-template-columns: 1fr; gap: var(--s6); }

  .cta__grid { flex-direction: column; }
  .cta__panel { width: 100%; }
}

@media (max-width: 900px) {
  .navbar__inner { flex-wrap: wrap; padding-block: var(--s4); row-gap: var(--s2); }
  .navbar__left { flex: 1 1 100%; flex-direction: column; align-items: flex-start; gap: var(--s2); }
  .navbar__nav {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .navbar__nav::-webkit-scrollbar { display: none; }
  .navbar__right { flex: 1 1 100%; }
  .navbar__right .btn { width: 100%; }

  /* .navbar is fixed and stacks to ~108px tall at this width. .hero still
     uses align-items:flex-end (it's a bottom-anchored, overflow:hidden box)
     so on narrow viewports the wrapped title overflows upward and hides
     behind/under the blurred navbar — increasing padding-top alone can't
     fix that, since a bottom-anchored overflowing item ignores top padding.
     Anchor to the top instead so padding-top actually clears the navbar. */
  .hero { align-items: flex-start; padding-block: var(--s32); }

  #engagements,
  #about,
  #cta { scroll-margin-top: 124px; }
}

@media (max-width: 768px) {
  :root { --gutter: 20px; }

  .h1 { font-size: 40px; line-height: 1.15; }
  .h2 { font-size: 34px; line-height: .95; }
  .h3 { font-size: 24px; line-height: 30px; }
  .h4 { font-size: 46px; line-height: 50px; }
  .h5 { font-size: 22px; line-height: 36px; }

  .s-aboutwork, .s-portfolio { padding-block: var(--s20); }
  .s-qualifier, .s-about, .s-casestudy, .s-faq { padding-block: var(--s10); }
  .s-mechanism { padding-block: var(--s10); }
  .stack--offset { padding-top: var(--s6); }
  .s-engagements { padding-top: var(--s16); padding-bottom: var(--s20); }
  .s-cta .container { padding-top: var(--s20); padding-bottom: var(--s8); }

  .aboutwork__logos { flex-direction: column; align-items: stretch; gap: var(--s6); }
  .trustedlist { justify-content: flex-start; gap: var(--s4) var(--s6); }

  .qualifier__panel { padding: var(--s6); flex-direction: column; }
  .qualifier__right { min-height: var(--s48); }
  .qlist__item { align-items: flex-start; gap: var(--s4); }

  .mlist__item { flex-direction: column; gap: var(--s4); padding-block: var(--s6); }
  .mlist__title { padding-right: 0; }

  .engcol { flex: 1 1 100%; padding-right: 0; padding-block: var(--s6); }

  .s-numbers__inner { padding: var(--s12) var(--s8); }
  .s-numbers__list { gap: var(--s4); }
  .s-numbers__value { font-size: 56px; }

  .faq__q { line-height: 26px; align-items: flex-start; }

  .mobile-cta { display: flex; }
  body { padding-bottom: 76px; }

  /* The sticky #mobile-cta bar covers this need on mobile, so the header's
     own CTA stays hidden here regardless of scroll/hero state. */
  .navbar__cta { display: none; }
}


/* ============================================================= MODAL */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(23, 23, 23, .55);
  opacity: 0;
  transition: opacity .2s ease;
}
.modal.is-open .modal__overlay { opacity: 1; }
.modal__dialog {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: var(--page);
  border-radius: var(--radius);
  padding: var(--s12);
  box-shadow: 0 24px 64px rgba(11, 11, 12, .24);
  transform: translateY(12px) scale(.98);
  opacity: 0;
  transition: transform .22s ease, opacity .22s ease;
}
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: var(--s6);
  right: var(--s6);
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  border-radius: var(--radius);
  font-size: 24px;
  line-height: 1;
  color: var(--dark);
  cursor: pointer;
}
.modal__close:hover { background: rgba(23, 23, 23, .06); }
.modal__title { margin-bottom: var(--s2); padding-right: var(--s10); }
.modal__intro { margin-bottom: var(--s6); }
.modal__form { display: flex; flex-direction: column; gap: var(--s2); }
.modal__label {
  font-size: 14px;
  font-weight: 600;
  margin-top: var(--s4);
}
.modal__label:first-child { margin-top: 0; }
.modal__input {
  width: 100%;
  font-family: var(--font);
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--dark);
}
.modal__textarea { resize: vertical; min-height: 96px; font-family: var(--font); }
.modal__turnstile { margin-top: var(--s4); }
.modal__submit { margin-top: var(--s6); }
.modal__submit[disabled] { opacity: .6; cursor: default; }
.modal__status {
  font-size: 14px;
  margin: var(--s2) 0 0;
  min-height: 1.2em;
}
.modal__status[data-state="error"] { color: var(--secondary-text); }
.modal__status[data-state="success"] { color: var(--brand-text); }
.modal__dialog--wide { max-width: 680px; max-height: min(720px, 85vh); overflow-y: auto; }

/* --- Experience timeline (inside modal) --- */
.exp__grid {
  display: grid;
  grid-template-columns: 120px 1fr;
}
.exp__row { display: contents; }
.exp__year {
  font-weight: 500;
  color: var(--gray-text);
  padding: var(--s6) 0;
  border-top: var(--line);
}
.exp__content {
  padding: var(--s6) 0;
  border-top: var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s1);
}
.exp__role { font-weight: 600; }
.exp__company { color: var(--gray-text); }
.exp__tags { display: flex; flex-wrap: wrap; gap: var(--s1); margin-top: var(--s1); }
.exp__tag {
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: var(--gray);
  background: var(--background);
  padding: 2px 8px;
  border-radius: 4px;
}

@media (max-width: 420px) {
  .h4 { font-size: 38px; line-height: 42px; }
  .hero__actions .btn,
  .cta__actions .btn { width: 100%; }

  .s-numbers__inner { padding: var(--s8) var(--s6); gap: var(--s12); }
  .s-numbers__list { grid-template-columns: 1fr; gap: var(--s8); }
  .s-numbers__value { font-size: 56px; }
  .s-numbers__card { align-self: flex-start; }

  .modal__dialog { padding: var(--s6); }
  .exp__grid { grid-template-columns: 1fr; }
  .exp__year { padding-bottom: 0; }
  .exp__content { border-top: none; padding-top: var(--s1); }
}
