/* Sunil Vallath — dark editorial luxury-tech */
:root {
  --bg: #0a0a0b;
  --paper: #111114;
  --paper-2: #16161a;
  --elevated: #1c1c21;
  --ink: #f4f0e8;
  --ink-soft: #d4cfc4;
  --muted: #8a857c;
  --faint: #5c5852;
  --line: rgba(244, 240, 232, 0.08);
  --line-strong: rgba(244, 240, 232, 0.14);
  --gold: #c9a96e;
  --gold-soft: rgba(201, 169, 110, 0.14);
  --gold-glow: rgba(201, 169, 110, 0.28);
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 2px;
  --shell: min(100% - 2.5rem, 1180px);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.25rem);
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--gold);
  color: var(--bg);
}

a { color: inherit; text-decoration: none; }
button, a, summary { -webkit-tap-highlight-color: transparent; }

a:focus-visible,
summary:focus-visible,
button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: var(--radius);
}

img, video { max-width: 100%; display: block; height: auto; }
picture { display: block; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 300;
  top: -100px;
  left: 1rem;
  background: var(--gold);
  color: var(--bg);
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.875rem;
}
.skip-link:focus { top: 1rem; }

/* Progress */
.progress-rail {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 100;
  background: transparent;
  pointer-events: none;
}
.progress-rail__bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, transparent, var(--gold));
  box-shadow: 0 0 12px var(--gold-glow);
  transition: width 0.08s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(10, 10, 11, 0.88);
}

.header-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}
.brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.brand__name {
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.nav a {
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--gold) !important;
  padding: 0.45rem 0.85rem;
  border: 1px solid rgba(201, 169, 110, 0.35);
  border-radius: 999px;
}
.nav__cta:hover {
  background: var(--gold-soft);
  border-color: var(--gold);
}

/* Labels & display */
.label {
  margin: 0 0 1rem;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}
.label__sep { opacity: 0.5; margin-inline: 0.35rem; }

.display {
  font-family: var(--display);
  font-size: clamp(2.75rem, 6vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn--gold {
  background: var(--gold);
  color: #141210;
}
.btn--gold:hover {
  background: #d4b67e;
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--ink);
  border-color: rgba(244, 240, 232, 0.28);
  background: rgba(244, 240, 232, 0.03);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.text-link:hover {
  border-bottom-color: rgba(201, 169, 110, 0.5);
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.reveal--delay { transition-delay: 0.12s; }
.reveal.is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ========== HERO ========== */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: clip;
  background:
    radial-gradient(ellipse 70% 50% at 85% 20%, rgba(201, 169, 110, 0.07), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(201, 169, 110, 0.04), transparent 50%),
    var(--bg);
}
.hero__grain {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
}

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.85rem, 6.2vw, 5.25rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  margin: 0 0 1.5rem;
}
.hero__title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}

.hero__lede {
  margin: 0 0 2rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero__scroll {
  margin-top: 0.25rem;
}

.hero__portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 380px);
}
.portrait-frame {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  filter: contrast(1.04) saturate(0.92);
}
.portrait-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(10, 10, 11, 0.55) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(10, 10, 11, 0.35) 100%);
  pointer-events: none;
}
.portrait-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.85rem;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.portrait-caption .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.7;
}

.hero__proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: clamp(3rem, 7vw, 5rem);
  background: var(--line);
  border: 1px solid var(--line);
}
.proof {
  background: var(--paper);
  padding: 1.5rem 1.35rem 1.4rem;
}
.proof__value {
  display: block;
  font-family: var(--display);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 0.65rem;
}
.proof p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.proof p span {
  display: block;
  margin-top: 0.2rem;
  color: var(--faint);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

/* ========== WORK ========== */
.work {
  padding: clamp(4rem, 9vw, 7rem) 0 0;
  border-top: 1px solid var(--line);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
}
.section-head__meta {
  margin: 0;
  text-align: right;
  font-size: 0.8125rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

.chapter-rail {
  display: none;
}

@media (min-width: 1100px) {
  .chapter-rail {
    display: flex;
    position: sticky;
    top: calc(var(--header-h) + 1rem);
    z-index: 20;
    gap: 0.35rem;
    margin: -1rem 0 2.5rem;
    padding: 0.5rem;
    width: fit-content;
    background: rgba(17, 17, 20, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid var(--line);
    border-radius: 999px;
  }
  .chapter-rail a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
    transition: color 0.2s, background 0.2s;
  }
  .chapter-rail a span { color: var(--gold); opacity: 0.55; }
  .chapter-rail a:hover,
  .chapter-rail a.is-active {
    color: var(--ink);
    background: var(--gold-soft);
  }
  .chapter-rail a.is-active span { opacity: 1; }
}

.chapter {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.chapter--alt {
  background: linear-gradient(180deg, rgba(17, 17, 20, 0.55), transparent 40%);
}
.chapter__inner { position: relative; }

.chapter__index {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.chapter__num {
  font-family: var(--display);
  font-size: clamp(3.5rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 0.85;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(201, 169, 110, 0.45);
}
.chapter__role {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}
.chapter__role em {
  font-style: normal;
  display: block;
  margin-top: 0.35rem;
  color: var(--faint);
}

.chapter__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: 2rem;
}
.chapter__layout--flip .chapter__visual { order: 2; }
.chapter__layout--flip .chapter__copy { order: 1; }

.chapter__visual {
  position: relative;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
}
.chapter__visual img {
  width: 100%;
  transition: transform 0.8s var(--ease);
}
.chapter__visual:hover img {
  transform: scale(1.02);
}
.chapter__visual--sonic {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  background: #0d0d10;
  padding: 2rem;
}
.chapter__visual--sonic img {
  width: min(100%, 420px);
}
.image-credit {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(10, 10, 11, 0.7);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--line);
}
.chapter__visual--photo figcaption,
.chapter__visual figcaption {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.chapter__visual figcaption span { color: var(--gold); }

.chapter__visual--scope {
  display: flex;
  align-items: stretch;
  min-height: 320px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(201, 169, 110, 0.08), transparent 50%),
    var(--paper);
}
.scope-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem;
  width: 100%;
}
.scope-panel__count {
  font-family: var(--display);
  font-size: 5rem;
  line-height: 0.9;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.scope-panel > p {
  margin: 0 0 1.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.scope-panel ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}
.scope-panel li {
  font-size: 1rem;
  color: var(--ink-soft);
  padding-left: 1rem;
  border-left: 1px solid rgba(201, 169, 110, 0.4);
}

.chapter__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.5rem;
}
.chapter__symbol {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 8px;
  object-fit: cover;
}
.chapter__copy h3 {
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 500;
  margin-bottom: 0.35rem;
}
.chapter__subtitle {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.chapter__copy > p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 48ch;
}
.employment {
  margin: -0.15rem 0 0.85rem !important;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--faint) !important;
}
.patent-note {
  margin: 1rem 0 0 !important;
  font-size: 0.875rem;
  color: var(--muted) !important;
  font-style: italic;
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.5rem !important;
}
.tags li {
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.result-card {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
  background: var(--gold-soft);
  border: 1px solid rgba(201, 169, 110, 0.22);
}
.result-card strong {
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold);
  white-space: nowrap;
}
.result-card span {
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.result-stack {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  margin-top: 1.25rem;
}
.link-row a {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 0.15rem;
  transition: color 0.2s, border-color 0.2s;
}
.link-row a:hover {
  color: var(--gold);
  border-bottom-color: rgba(201, 169, 110, 0.5);
}

.photo-link {
  display: block;
  overflow: hidden;
}
.photo-link img {
  transition: transform 0.7s var(--ease);
}
.photo-link:hover img { transform: scale(1.03); }

/* Case study accordion */
.case {
  margin: 0.5rem 0 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.case summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.35rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.case summary::-webkit-details-marker { display: none; }
.case summary:hover {
  background: rgba(244, 240, 232, 0.03);
  color: var(--ink);
}
.case__open { display: none; }
.case[open] .case__closed { display: none; }
.case[open] .case__open { display: inline; }
.case__icon {
  width: 1.5rem;
  height: 1.5rem;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.case__icon::before,
.case__icon::after {
  content: "";
  position: absolute;
  background: var(--gold);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.case__icon::before {
  width: 10px;
  height: 1px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.case__icon::after {
  width: 1px;
  height: 10px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.case[open] .case__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.case__body {
  border-top: 1px solid var(--line);
  padding: 0;
  overflow: hidden;
}
.case[open] .case__body {
  animation: caseIn 0.45s var(--ease-out);
}
@keyframes caseIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

.case__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.case__block {
  padding: 1.75rem 1.5rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.case__block:nth-child(2n) { border-right: none; }
.case__block--wide {
  grid-column: 1 / -1;
  border-right: none;
}
.case__block--outcomes {
  grid-column: 1 / -1;
  border-right: none;
  background: linear-gradient(135deg, rgba(201, 169, 110, 0.07), transparent 60%);
}
.case__block h4 {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 500;
  margin-bottom: 0.65rem;
  color: var(--ink);
}
.case__kicker {
  margin: -0.35rem 0 0.85rem !important;
  font-size: 0.75rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold) !important;
}
.case__block p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.7;
}
.case__block p:last-child { margin-bottom: 0; }
.case__block strong { color: var(--ink); font-weight: 500; }

.scope-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin: 1rem 0 0;
}
.scope-list > div {
  background: var(--bg);
  padding: 1.15rem 1.25rem;
}
.scope-list dt {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.scope-list dd {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* Media blocks */
.media-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.media-block__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.media-block__head h4 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 500;
}
.media-block__note {
  margin: 0;
  max-width: 28ch;
  font-size: 0.875rem;
  color: var(--muted);
  text-align: right;
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.demo {
  margin: 0;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}
.demo__screen {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: #0d0d10;
  overflow: hidden;
}
.demo__screen--portrait {
  /* keep same frame as siblings for row alignment */
  aspect-ratio: 16 / 10;
}
.demo__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 0;
  pointer-events: none;
  background: #0d0d10;
}
.demo__screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center;
  display: block;
  z-index: 1;
  background: #0d0d10;
}
.demo__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 1.1rem;
  border: 1px solid rgba(244, 240, 232, 0.28);
  border-radius: 999px;
  background: rgba(10, 10, 11, 0.82);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.demo__play:hover {
  background: rgba(201, 169, 110, 0.28);
  border-color: var(--gold);
}
.demo figcaption {
  padding: 1rem 1.1rem 1.15rem;
  flex: 1 1 auto;
}
.demo__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}
.demo__meta h5 {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0;
}
.demo__meta span {
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.demo figcaption p {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-grid figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
}
.gallery-grid figcaption {
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.25rem;
}
.gallery-grid figcaption strong {
  font-size: 0.875rem;
  font-weight: 500;
}
.gallery-grid figcaption span {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ========== ABOUT ========== */
.about {
  padding: clamp(4.5rem, 9vw, 7.5rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(201, 169, 110, 0.05), transparent 50%),
    var(--bg);
}
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  margin-bottom: 3.5rem;
}
.about__intro .display { margin-bottom: 1.75rem; }
.about__intro p {
  margin: 0 0 1.15rem;
  color: var(--ink-soft);
  max-width: 42ch;
  line-height: 1.7;
}

.timeline {
  list-style: none;
  border-top: 1px solid var(--line);
}
.timeline li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.timeline strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 0.2rem;
}
.timeline span {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.timeline p {
  margin: 0.55rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 42ch;
}
.timeline time {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
  padding-top: 0.2rem;
}
.earlier {
  margin: 1.25rem 0 0;
  font-size: 0.8125rem;
  color: var(--faint);
  line-height: 1.55;
}

.education {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
}
.education p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.55;
}
.education strong {
  color: var(--ink);
  font-weight: 500;
}

/* ========== CONTACT ========== */
.contact {
  padding: clamp(4.5rem, 10vw, 8rem) 0;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 60% at 50% 100%, rgba(201, 169, 110, 0.1), transparent 55%),
    var(--paper);
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: end;
}
.contact__aside p {
  margin: 0 0 1.5rem;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.7;
}
.contact__email {
  display: inline-block;
  margin-bottom: 1.75rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold);
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
  transition: border-color 0.2s;
}
.contact__email:hover {
  border-bottom-color: var(--gold);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.5rem;
  background: var(--bg);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  font-size: 0.8125rem;
  color: var(--muted);
}
.footer__inner p { margin: 0; }

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .hero__portrait {
    justify-self: start;
    width: min(100%, 320px);
  }
  .hero__title { max-width: none; }
  .hero__proof { grid-template-columns: 1fr 1fr; }
  .chapter__layout,
  .chapter__layout--flip {
    grid-template-columns: 1fr;
  }
  .chapter__layout--flip .chapter__visual,
  .chapter__layout--flip .chapter__copy { order: unset; }
  .case__grid { grid-template-columns: 1fr; }
  .case__block { border-right: none; }
  .scope-list { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
  .demo__screen, .demo__screen--portrait { aspect-ratio: 16 / 10; }
  .gallery-grid { grid-template-columns: 1fr; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .section-head__meta { text-align: left; }
  .media-block__note { text-align: left; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 1.5rem, 1180px); --header-h: 3.75rem; }
  .nav { gap: 1rem; }
  .brand__name { display: none; }
  .hero__proof { grid-template-columns: 1fr; }
  .education { grid-template-columns: 1fr; }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .result-card {
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (max-width: 420px) {
  .nav a:not(.nav__cta) { display: none; }
}
