/* =============================================================================
 * Vipul Sharma — main.css
 * Design language: Apple. Pure CSS3, no framework, no preprocessor.
 *
 * Contents
 *   1. Tokens (light / dark / forced)
 *   2. Reset & base
 *   3. Typography scale
 *   4. Layout primitives
 *   5. Navigation
 *   6. Hero
 *   7. Stat band
 *   8. Bands & sections
 *   9. Cards / proof / scope
 *  10. Timeline
 *  11. Chips / tech / education
 *  12. FAQ
 *  13. Contact & footer
 *  14. Motion
 *  15. Responsive
 *  16. Print & forced-colors
 * ========================================================================== */

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Apple system palette — light */
  --ink:            #1d1d1f;
  --ink-2:          #6e6e73;
  --ink-3:          #86868b;
  --bg:             #ffffff;
  --bg-2:           #f5f5f7;
  --bg-3:           #fafafc;
  --surface:        #ffffff;
  --hairline:       rgba(0, 0, 0, .10);
  --hairline-soft:  rgba(0, 0, 0, .055);
  --accent:         #0071e3;
  --accent-hover:   #0077ed;
  --accent-quiet:   #06c;
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, .04), 0 4px 12px rgba(0, 0, 0, .045);
  --shadow-md:      0 2px 6px rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .07);
  --nav-bg:         rgba(255, 255, 255, .72);
  --nav-border:     rgba(0, 0, 0, .09);
  /* The mobile menu panel is opaque, not frosted. A nested backdrop-filter
     inside the already-filtered nav does not sample the page behind it, so a
     translucent panel just lets the hero bleed through. Apple's own mobile
     global nav is solid for the same reason. */
  --nav-panel:      #ffffff;
  --selection:      rgba(0, 113, 227, .22);

  /* Geometry — Apple's radii and rhythm */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 28px;
  --r-pill: 980px;

  --nav-h: 48px;
  --gutter: 22px;
  --w-page: 1440px;
  --w-content: 1120px;
  --w-narrow: 780px;

  --band-y: clamp(72px, 9vw, 132px);

  /* Motion */
  --ease: cubic-bezier(.28, .11, .32, 1);      /* Apple's standard curve */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .4s;

  /* Apple's SF stack. SF Pro is present on Apple platforms; everything else
     falls through to the platform UI face. Zero font requests by design —
     it is the single biggest LCP win available to a site like this. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
          "Helvetica Neue", "Segoe UI Variable Display", "Segoe UI", Roboto,
          Inter, Arial, sans-serif;
  --font-num: -apple-system, BlinkMacSystemFont, "SF Pro Display",
              "Segoe UI Variable Display", "Segoe UI", Roboto, Arial, sans-serif;

  color-scheme: light dark;
}

/* Dark — Apple uses true black for the page and #1d1d1f for elevation. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink:            #f5f5f7;
    --ink-2:          #a1a1a6;
    --ink-3:          #86868b;
    --bg:             #000000;
    --bg-2:           #101012;
    --bg-3:           #0a0a0b;
    --surface:        #1d1d1f;
    --hairline:       rgba(255, 255, 255, .14);
    --hairline-soft:  rgba(255, 255, 255, .075);
    --accent:         #2997ff;
    --accent-hover:   #4aa8ff;
    --accent-quiet:   #2997ff;
    --shadow-sm:      0 1px 2px rgba(0, 0, 0, .5);
    --shadow-md:      0 2px 8px rgba(0, 0, 0, .55), 0 16px 40px rgba(0, 0, 0, .4);
    --nav-bg:         rgba(22, 22, 23, .72);
    --nav-border:     rgba(255, 255, 255, .14);
    --nav-panel:      #161617;
    --selection:      rgba(41, 151, 255, .3);
  }
}

/* Explicit dark, chosen in the nav toggle — must win in both directions. */
:root[data-theme="dark"] {
  --ink:            #f5f5f7;
  --ink-2:          #a1a1a6;
  --ink-3:          #86868b;
  --bg:             #000000;
  --bg-2:           #101012;
  --bg-3:           #0a0a0b;
  --surface:        #1d1d1f;
  --hairline:       rgba(255, 255, 255, .14);
  --hairline-soft:  rgba(255, 255, 255, .075);
  --accent:         #2997ff;
  --accent-hover:   #4aa8ff;
  --accent-quiet:   #2997ff;
  --shadow-sm:      0 1px 2px rgba(0, 0, 0, .5);
  --shadow-md:      0 2px 8px rgba(0, 0, 0, .55), 0 16px 40px rgba(0, 0, 0, .4);
  --nav-bg:         rgba(22, 22, 23, .72);
  --nav-border:     rgba(255, 255, 255, .14);
  --nav-panel:      #161617;
  --selection:      rgba(41, 151, 255, .3);
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  /* `clip`, not `hidden`: hidden on html/body promotes the element to a
     scroll container, which moves scrolling off the viewport and breaks
     position:sticky on the nav. clip contains the overflow without that. */
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--selection); }

img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

strong, b { font-weight: 600; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 50%;
  z-index: 200;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transform: translate(-50%, -160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); text-decoration: none; }

/* ── 3. Typography scale ───────────────────────────────────────────────── */

.eyebrow {
  color: var(--accent-quiet);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .004em;
  margin-bottom: .5em;
}

.display {
  font-size: clamp(32px, 4.6vw, 56px);
  font-weight: 600;
  line-height: 1.07143;
  letter-spacing: -.015em;
  text-wrap: balance;
}

.lede {
  margin-top: .8em;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4762;
  letter-spacing: .011em;
}

.prose { margin-top: 1.6em; max-width: 62ch; }
.prose p {
  color: var(--ink-2);
  font-size: clamp(17px, 1.55vw, 21px);
  line-height: 1.5238;
  letter-spacing: .011em;
}
.prose p + p { margin-top: 1em; }
.prose strong { color: var(--ink); }

.dot { color: var(--ink-3); padding: 0 .35em; }

/* ── 4. Layout primitives ──────────────────────────────────────────────── */

.wrap {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: var(--w-narrow); }

.band { padding-block: var(--band-y); background: var(--bg); }
.band--alt { background: var(--bg-2); }
.band__head { margin-bottom: clamp(36px, 4.5vw, 64px); }

/* ── 5. Navigation ─────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.nav[data-stuck="true"] { border-bottom-color: var(--nav-border); }

.nav__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--nav-h);
  max-width: var(--w-page);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.nav__mark {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.nav__mark:hover { text-decoration: none; opacity: .75; }

.nav__menu {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
}
.nav__menu a {
  color: var(--ink);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -.01em;
  opacity: .85;
  transition: opacity .2s var(--ease);
}
.nav__menu a:hover { opacity: 1; text-decoration: none; }
.nav__menu a[aria-current="true"] { font-weight: 600; opacity: 1; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background .2s var(--ease);
}
.theme-toggle:hover { background: var(--hairline-soft); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.theme-toggle .tt-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-sun,
:root[data-theme="dark"] .theme-toggle .tt-rays { display: none; }
:root[data-theme="dark"] .theme-toggle .tt-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .tt-sun,
  :root:not([data-theme="light"]) .theme-toggle .tt-rays { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .tt-moon { display: block; }
}

/* Language picker — a <details> disclosure, so it opens, closes and is
   keyboard-operable with no JavaScript at all. */
.lang { position: relative; flex: none; }

.lang__btn {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -.01em;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  transition: background .2s var(--ease);
}
.lang__btn::-webkit-details-marker { display: none; }
.lang__btn:hover { background: var(--hairline-soft); }
.lang[open] .lang__btn { background: var(--hairline-soft); }
.lang__btn svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}
.lang__current { font-variant-numeric: tabular-nums; }

.lang__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 120;
  width: 244px;
  max-height: min(66vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  background: var(--nav-panel);
  box-shadow: var(--shadow-md);
  animation: lang-in .22s var(--ease-out);
}
@keyframes lang-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to   { opacity: 1; transform: none; }
}

.lang__head {
  padding: 4px 10px 8px;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: -.01em;
  transition: background .15s var(--ease);
}
.lang__list a:hover { background: var(--hairline-soft); text-decoration: none; }
.lang__list a[aria-current="true"] { font-weight: 600; }
/* Checkmark on the language currently in effect. */
.lang__list a[aria-current="true"]::after {
  content: "";
  flex: none;
  width: 11px;
  height: 6px;
  margin-right: 2px;
  border-left: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg) translateY(-2px);
}
.lang__tag {
  flex: none;
  color: var(--ink-3);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.lang__sep {
  margin: 6px 10px;
  border-top: 1px solid var(--hairline-soft);
}

.lang__note {
  padding: 8px 10px 4px;
  color: var(--ink-3);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-word;
}

.lang__native {
  display: block;
  padding: 9px 10px 7px;
  margin-top: 4px;
  border-top: 1px solid var(--hairline-soft);
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.35;
}
.lang__native:hover { text-decoration: none; color: var(--ink); }
.lang__nativehint { display: block; margin-top: 2px; color: var(--accent); }

.nav__burger { display: none; }

.nav__progress {
  position: absolute;
  inset-inline-start: 0;
  bottom: -1px;
  height: 2px;
  width: 0;
  background: var(--accent);
  transition: width .1s linear;
}

/* ── 6. Hero ───────────────────────────────────────────────────────────── */

.hero {
  padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 84px);
  background:
    radial-gradient(120% 90% at 82% 0%, color-mix(in srgb, var(--accent) 11%, transparent) 0%, transparent 62%),
    var(--bg);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
}

.hero__name {
  font-size: clamp(44px, 8.2vw, 92px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -.025em;
}

.hero__role {
  margin-top: .55em;
  max-width: 32ch;
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.21;
  letter-spacing: -.014em;
  text-wrap: balance;
}

.hero__pitch {
  margin-top: 1em;
  max-width: 40ch;
  color: var(--ink-2);
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4762;
  letter-spacing: .011em;
}

.hero__meta {
  margin-top: 1.1em;
  color: var(--ink-3);
  font-size: 15px;
  letter-spacing: -.01em;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.9em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease),
              color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--ghost { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: #fff; }

.hero__portrait {
  position: relative;
  width: clamp(200px, 30vw, 380px);
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: var(--shadow-md);
}
.hero__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
}

/* ── 7. Stat band ──────────────────────────────────────────────────────── */

.stats {
  padding-block: clamp(36px, 4.5vw, 60px);
  background: var(--bg-2);
  border-block: 1px solid var(--hairline-soft);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(22px, 3vw, 40px);
}
.stat { text-align: center; }
.stat__value {
  font-family: var(--font-num);
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  order: 2;
  margin-top: .5em;
  color: var(--ink-3);
  font-size: clamp(12px, 1.1vw, 14px);
  letter-spacing: .01em;
}
.stat { display: flex; flex-direction: column; }
.stat__value { order: 1; }

/* ── 8. Cards / proof / scope ──────────────────────────────────────────── */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(16px, 1.8vw, 24px);
}

.card {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card--wide { grid-column: 1 / -1; }

.card__title {
  font-size: clamp(21px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.card__body {
  margin-top: .7em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.012em;
}
.card__body strong { color: var(--ink); }

.proof {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 2.4vw, 36px);
  margin-top: auto;
  padding-top: 1.6em;
}
.proof:empty { display: none; }
.proof__item { display: flex; flex-direction: column; gap: 2px; }
.proof__n {
  font-family: var(--font-num);
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.018em;
  font-variant-numeric: tabular-nums;
  color: var(--accent-quiet);
}
.proof__l {
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0;
  max-width: 20ch;
}

.scope {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: clamp(28px, 3.4vw, 52px);
}
.scope__col { border-top: 1px solid var(--hairline); padding-top: 20px; }
.scope__h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: .9em;
}
.scope__p, .ticks li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.012em;
}
.scope__p strong, .ticks strong { color: var(--ink); }

.ticks li { position: relative; padding-left: 20px; }
.ticks li + li { margin-top: .55em; }
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: .52em;
  width: 9px;
  height: 5px;
  border-left: 1.6px solid var(--accent);
  border-bottom: 1.6px solid var(--accent);
  transform: rotate(-45deg);
}

.kv__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.kv__row dt { color: var(--ink-2); font-size: 15px; letter-spacing: -.01em; }
.kv__row dd {
  font-family: var(--font-num);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
}

/* ── 10. Timeline ──────────────────────────────────────────────────────── */

.timeline { position: relative; }
.job { position: relative; padding: 0 0 clamp(34px, 4vw, 52px) 30px; }
.job::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}
.job::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 22px;
  bottom: 0;
  width: 1px;
  background: var(--hairline);
}
.job:last-child::after { display: none; }

.job__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
}
.job__co {
  font-size: clamp(21px, 2.1vw, 27px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.018em;
}
.job__when {
  color: var(--ink-3);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.job__where { margin-top: 2px; color: var(--ink-3); font-size: 14px; }

.job__roles { margin-top: 14px; }
.job__roles li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--hairline-soft);
}
.job__role { font-size: 16px; font-weight: 500; letter-spacing: -.012em; }
.job__span {
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.job__scope {
  margin-top: 16px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -.012em;
}
.job__scope strong { color: var(--ink); }
.job__scopelab {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--hairline-soft);
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  vertical-align: 1px;
}

.job__points { margin-top: 14px; }
.job__points li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5625;
  letter-spacing: -.012em;
}
.job__points li + li { margin-top: .7em; }
.job__points li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: .62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink-3);
}
.job__points strong { color: var(--ink); }

/* ── 11. Chips / tech / education ──────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 9px 16px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 15px;
  letter-spacing: -.012em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.chips li:hover { border-color: var(--accent); color: var(--accent); }
.chips--sm li { padding: 6px 13px; font-size: 14px; }
.chips:empty { display: none; }

.tech {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(28px, 3.2vw, 48px);
  margin-top: clamp(44px, 5vw, 72px);
}
.tech__group { border-top: 1px solid var(--hairline); padding-top: 20px; }
.tech__h {
  margin-bottom: 1em;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.tech__group .chips + .chips { margin-top: 10px; }

.edu { margin-top: clamp(40px, 4.5vw, 64px); border-top: 1px solid var(--hairline); padding-top: 20px; }
.edu__line { color: var(--ink-2); font-size: 16px; letter-spacing: -.012em; }
.edu__line strong { color: var(--ink); }

/* ── 12. FAQ ───────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--hairline); }

.qa { border-bottom: 1px solid var(--hairline); }

.qa__q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 2px;
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -.014em;
  transition: color .2s var(--ease);
}
.qa__q::-webkit-details-marker { display: none; }
.qa__q:hover { color: var(--accent); }

.qa__q::after {
  content: "";
  flex: none;
  width: 13px;
  height: 13px;
  margin-top: .38em;
  border-right: 1.8px solid var(--accent);
  border-bottom: 1.8px solid var(--accent);
  transform: rotate(45deg);
  transition: transform .3s var(--ease);
}
.qa[open] > .qa__q::after { transform: rotate(225deg); }

.qa__a { padding: 0 2px 24px; max-width: 68ch; }
.qa__a p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5882;
  letter-spacing: -.011em;
}

/* Native, dependency-free open/close animation. */
@supports (interpolate-size: allow-keywords) {
  .qa {
    interpolate-size: allow-keywords;
    transition: none;
  }
  .qa::details-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    transition: height .38s var(--ease), opacity .3s var(--ease), content-visibility .38s allow-discrete;
  }
  .qa[open]::details-content { height: auto; opacity: 1; }
}

/* ── 13. Contact & footer ──────────────────────────────────────────────── */

.band--contact {
  background:
    radial-gradient(90% 120% at 50% 0%, color-mix(in srgb, var(--accent) 10%, transparent) 0%, transparent 60%),
    var(--bg);
}
.contact { text-align: center; }
.contact .lede { margin-inline: auto; }

.contact__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, max-content));
  justify-content: center;
  gap: clamp(20px, 3vw, 44px);
  margin-top: clamp(32px, 4vw, 52px);
}
.contact__list li { display: flex; flex-direction: column; gap: 3px; }
.contact__link {
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 500;
  letter-spacing: -.014em;
  word-break: break-word;
}
.contact__lab {
  order: -1;
  color: var(--ink-3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.contact__loc { margin-top: clamp(28px, 3.5vw, 44px); color: var(--ink-3); font-size: 14px; }

.foot {
  padding-block: 36px;
  background: var(--bg-2);
  border-top: 1px solid var(--hairline-soft);
}
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}
.foot__copy, .foot__translate {
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: -.008em;
}
.foot__translate { flex-basis: 100%; order: 3; max-width: 62ch; }
.foot__translate strong { color: var(--ink-2); }
.foot__nav { display: flex; gap: 20px; }
.foot__nav a { color: var(--ink-3); font-size: 12px; }
.foot__nav a:hover { color: var(--accent); }

/* ── 14. Motion ────────────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; will-change: auto; }
/* Never hide content when JS is off or motion is reduced. */
.no-js .reveal, .no-reveal .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ── 15. Responsive — Apple's breakpoints: 1068 / 834 / 734 ────────────── */

@media (max-width: 1068px) {
  :root { --gutter: 20px; }
  .hero__grid { gap: clamp(24px, 4vw, 48px); }
}

@media (max-width: 833px) {
  .nav__menu { gap: 14px; }
  .nav__menu a { font-size: 11.5px; }
}

@media (max-width: 734px) {
  :root { --gutter: 18px; --nav-h: 46px; }

  body { font-size: 16px; }

  /* Nav collapses to a disclosure panel. */
  .nav__inner { justify-content: space-between; }
  .nav__burger {
    display: grid;
    place-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    order: 3;
  }
  .nav__burger span {
    display: block;
    width: 17px;
    height: 1.5px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }
  .nav__burger[aria-expanded="true"] span:first-child { transform: translateY(3.2px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-3.2px) rotate(-45deg); }

  .nav__menu {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
    max-height: 0;
    padding-inline: var(--gutter);
    overflow: hidden;
    background: var(--nav-panel);
    border-bottom: 1px solid transparent;
    transition: max-height .4s var(--ease), border-color .4s var(--ease),
                box-shadow .4s var(--ease);
    box-shadow: none;
  }
  .nav__menu[data-open="true"] {
    max-height: calc(100dvh - var(--nav-h));
    border-bottom-color: var(--nav-border);
    box-shadow: var(--shadow-md);
  }
  .nav__menu li { border-bottom: 1px solid var(--hairline-soft); }
  .nav__menu li:last-child { border-bottom: 0; }
  .nav__menu a { display: block; padding: 15px 2px; font-size: 17px; }

  .theme-toggle { order: 2; }

  /* The picker sits left of the appearance toggle, and its panel becomes a
     near-full-width sheet pinned to the viewport rather than the button. */
  .lang { order: 1; }
  .lang__panel {
    position: fixed;
    top: calc(var(--nav-h) + 6px);
    right: var(--gutter);
    left: var(--gutter);
    width: auto;
    max-height: calc(100dvh - var(--nav-h) - 24px);
  }
  .lang__list a { padding: 11px 12px; font-size: 15px; }

  .hero { padding-block: 36px 44px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__portrait { order: -1; width: min(200px, 52vw); border-radius: var(--r-lg); }
  .hero__role, .hero__pitch { max-width: none; }
  .hero__cta .btn { flex: 1 1 auto; }

  .stats__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .stat { text-align: left; }

  .cards { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }

  .job { padding-left: 24px; }
  .job__when { width: 100%; }

  .contact__list { grid-template-columns: 1fr; text-align: left; justify-items: start; }
  .contact { text-align: left; }
  .contact .lede { margin-inline: 0; }
}

/* ── 16. Print & forced-colors ─────────────────────────────────────────── */

@media print {
  .nav, .hero__cta, .theme-toggle, .foot__nav, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .band, .band--alt, .stats, .band--contact { background: #fff !important; padding-block: 16pt; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .job, .qa { break-inside: avoid; }
  .qa__a { display: block !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  a { color: #000; text-decoration: underline; }
}

@media (forced-colors: active) {
  .card, .chips li, .scope__col, .tech__group { border: 1px solid CanvasText; }
  .btn--primary { border-color: CanvasText; }
  .reveal { opacity: 1; transform: none; }
}
