/* vamsitalasila.com — Emerald & Gold design system
   Tokens first; components only ever read tokens. */

:root {
  /* brand constants */
  --emerald: #0B6E55;
  --emerald-bright: #2BD9A5;
  --gold: #D4A93A;
  --gold-deep: #7A5C0E;
  --ivory: #F7F4EC;
  --ink: #0B1320;
  --rahu: #3A7BFF;

  /* light theme (default) */
  --bg: #F7F4EC;
  --surface: #FFFDF8;
  --surface-2: #EFEAE0;
  --text: #1C2433;
  --text-2: #4E5767;
  --text-3: #6B7382;
  --rule: #DCD5C6;
  --accent: #0B6E55;
  --accent-hover: #095A46;
  --accent-ink: #FFFFFF;
  --accent-soft: #DCEEE7;
  --link: #0B6E55;
  --gold-text: #7A5C0E;
  --focus: #0B6E55;
  --shadow: 0 1px 2px rgba(11, 19, 32, .06), 0 8px 24px rgba(11, 19, 32, .06);

  /* the dark "control room" bands keep one look in both themes */
  --band-bg: #0B1320;
  --band-surface: #111C2E;
  --band-text: #E9EDF2;
  --band-text-2: #A9B2C0;
  --band-rule: #22324A;
  --band-accent: #2BD9A5;

  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Geist", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --r-1: 6px; --r-2: 10px; --r-3: 16px;
  --wrap: 1200px;
  --measure: 66ch;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0B1320;
    --surface: #111B2B;
    --surface-2: #16233A;
    --text: #E6EAF0;
    --text-2: #A7B0BE;
    --text-3: #8791A1;
    --rule: #22314A;
    --accent: #2BD9A5;
    --accent-hover: #5BE6BC;
    --accent-ink: #06231B;
    --accent-soft: #10302A;
    --link: #2BD9A5;
    --gold-text: #D4A93A;
    --focus: #2BD9A5;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1320;
  --surface: #111B2B;
  --surface-2: #16233A;
  --text: #E6EAF0;
  --text-2: #A7B0BE;
  --text-3: #8791A1;
  --rule: #22314A;
  --accent: #2BD9A5;
  --accent-hover: #5BE6BC;
  --accent-ink: #06231B;
  --accent-soft: #10302A;
  --link: #2BD9A5;
  --gold-text: #D4A93A;
  --focus: #2BD9A5;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.35);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 500; line-height: 1.12; letter-spacing: -0.015em; text-wrap: balance; margin: 0; color: inherit; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 500; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.55rem); }
h4 { font-size: 1.12rem; font-family: var(--f-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
.prose p + p, .prose p + ul, .prose ul + p { margin-top: 1em; }
.prose { max-width: var(--measure); }
.prose ul { padding-left: 1.2em; margin: 0; }
.prose li + li { margin-top: .4em; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); color: var(--text-2); line-height: 1.55; max-width: 60ch; }
.eyebrow {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px; font-weight: 500;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.small { font-size: .88rem; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-tight { padding-block: clamp(40px, 5vw, 64px); }
.section-head { display: grid; gap: var(--s-4); margin-bottom: clamp(28px, 4vw, 48px); max-width: 760px; }
.section-head.split { max-width: none; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .section-head.split { grid-template-columns: 1.1fr .9fr; gap: var(--s-7); } }
.rule-top { border-top: 1px solid var(--rule); }

/* ---------- skip link, header, nav ---------- */
.skip { position: absolute; left: 12px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: var(--r-1); z-index: 100; text-decoration: none; }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 10px); }

.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav { display: flex; align-items: center; gap: var(--s-5); height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); margin-right: auto; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--f-display); font-size: 1.22rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1; }
.brand-role { display: block; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: var(--r-1); color: var(--text-2); text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--rule); background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 980px) {
  .nav-links, .nav .btn-nav { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; left: 0; right: 0; top: calc(env(safe-area-inset-top, 0px) + var(--header-h));
    background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px 16px 20px;
    box-shadow: var(--shadow);
  }
  .nav-links.open a { padding: 14px 8px; font-size: 1.08rem; border-bottom: 1px solid var(--rule); border-radius: 0; }
  .nav-links.open a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-links .mobile-cta { display: block; margin-top: 16px; }
}
.nav-links .mobile-cta { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; font-weight: 600; font-size: .98rem;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: var(--f-body);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-gold { background: var(--gold); color: #1A1406; }
.btn-gold:hover { background: #E2BA52; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-nav { padding: 10px 18px; font-size: .92rem; }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover { transform: none; } }

/* ---------- dark control-room band ---------- */
.band {
  background: var(--band-bg); color: var(--band-text);
  --text: var(--band-text); --text-2: var(--band-text-2); --text-3: #8791A1;
  --rule: var(--band-rule); --accent: var(--band-accent); --accent-ink: #06231B; --accent-hover: #5BE6BC;
  --link: var(--band-accent); --surface: var(--band-surface); --surface-2: #16233A; --focus: #2BD9A5;
  --gold-text: #D4A93A;
  color-scheme: dark;
}
.band .btn-ghost { color: var(--band-text); border-color: #33445F; }
.band .btn-ghost:hover { color: var(--band-accent); border-color: var(--band-accent); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 64px); align-items: end; padding-block: clamp(48px, 7vw, 88px) 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.25fr .75fr; } }
.hero h1 { margin-top: 20px; }
.hero h1 em { font-style: italic; color: var(--band-accent); font-weight: 400; }
.hero .lede { margin-top: 22px; color: var(--band-text-2); }
.focus-line { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.focus-line span {
  font-family: var(--f-mono); font-size: .76rem; letter-spacing: .06em; padding: 6px 11px;
  border: 1px solid #2A3B57; border-radius: 999px; color: #C9D1DD; background: rgba(255,255,255,.02);
}
.focus-line span.q { border-color: rgba(212,169,58,.55); color: var(--gold); }
.hero .btn-row { margin-top: 30px; }
.hero-portrait { position: relative; align-self: end; justify-self: center; width: min(100%, 420px); }
.hero-portrait img { width: 100%; border-radius: 200px 200px 0 0; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 18%; filter: saturate(1.02); }
.hero-portrait::before {
  content: ""; position: absolute; inset: -14px -14px 0 -14px; border-radius: 214px 214px 0 0;
  border: 1px solid rgba(212,169,58,.55); border-bottom: 0; pointer-events: none;
}
.portrait-tag {
  position: absolute; left: -12px; bottom: 28px; background: rgba(11,19,32,.86); border: 1px solid #2A3B57;
  padding: 12px 14px; border-radius: 12px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  max-width: 240px;
}
.portrait-tag .mono { color: var(--gold); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.portrait-tag p { font-size: .88rem; color: #E9EDF2; margin-top: 4px; line-height: 1.35; }
@media (max-width: 899px) { .hero-portrait { width: min(100%, 360px); } .portrait-tag { left: 8px; } }

/* living architecture canvas */
.arch-wrap { position: relative; margin-top: 0; border-top: 1px solid var(--band-rule); }
.arch-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-block: 18px 6px; }
.arch-head .mono { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--band-text-2); }
.arch-head .legend { display: flex; gap: 16px; flex-wrap: wrap; }
.arch-head .legend span { display: inline-flex; align-items: center; gap: 7px; }
.arch-head .legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.arch-canvas-box { position: relative; height: clamp(230px, 26vw, 300px); }
#arch { width: 100%; height: 100%; display: block; }
.arch-tip {
  position: absolute; pointer-events: none; background: #0F1A2B; border: 1px solid #2E4262; color: #E9EDF2;
  font-size: .8rem; padding: 7px 10px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -130%);
}
.arch-toggle { font-family: var(--f-mono); font-size: .72rem; background: transparent; color: var(--band-text-2); border: 1px solid #2A3B57; border-radius: 999px; padding: 5px 11px; cursor: pointer; }
.arch-toggle:hover { color: var(--band-accent); border-color: var(--band-accent); }

/* ---------- proof strip ---------- */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
@media (min-width: 760px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.proof div { padding: 22px 20px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.proof strong { display: block; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.05; letter-spacing: -.02em; color: var(--text); font-variant-numeric: tabular-nums; }
.proof span { display: block; margin-top: 8px; font-size: .88rem; color: var(--text-2); line-height: 1.35; }
.proof .gold strong { color: var(--gold-text); }

/* ---------- belief quote ---------- */
.belief { display: grid; gap: var(--s-6); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .belief { grid-template-columns: .38fr 1fr; gap: var(--s-8); } }
.belief blockquote { margin: 0; font-family: var(--f-display); font-size: clamp(1.45rem, 2.5vw, 2.05rem); line-height: 1.3; font-weight: 400; letter-spacing: -.01em; }
.belief blockquote strong { font-weight: 500; color: var(--accent); }
.belief cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--f-mono); font-size: .8rem; color: var(--text-3); letter-spacing: .06em; }

/* ---------- moat diagram (HTML) ---------- */
.moat { display: grid; gap: 14px; }
.moat-top, .moat-base { border-radius: var(--r-2); padding: 18px 22px; text-align: center; }
.moat-top { background: var(--accent-soft); border: 1.5px solid var(--accent); font-family: var(--f-display); font-size: clamp(1.15rem, 2vw, 1.45rem); }
.moat-top small { display: block; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.moat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; position: relative; }
@media (min-width: 640px) { .moat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .moat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.moat-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 20px 22px; display: grid; gap: 6px; align-content: start; }
.moat-card h3 { font-size: 1.22rem; display: flex; align-items: center; gap: 10px; }
.moat-card h3 svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.moat-card p { color: var(--text-2); font-size: .95rem; }
.moat-card .proofline { font-family: var(--f-mono); font-size: .78rem; color: var(--gold-text); margin-top: 6px; letter-spacing: .02em; }
.moat-base { background: var(--surface-2); border: 1px dashed var(--rule); }
.moat-base strong { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; }
.moat-base span { display: block; color: var(--text-2); font-size: .92rem; margin-top: 4px; }

/* ---------- cards & grids ---------- */
.grid { display: grid; gap: 18px; }
.g-2 { grid-template-columns: 1fr; }
.g-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.svc-card {
  display: grid; grid-template-rows: auto auto 1fr auto; gap: 10px; padding: 24px; border-radius: var(--r-2);
  background: var(--surface); border: 1px solid var(--rule); text-decoration: none; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.svc-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
@media (prefers-reduced-motion: reduce) { .svc-card, .svc-card:hover { transition: none; transform: none; } }
.svc-card .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.svc-card .ico svg { width: 22px; height: 22px; }
.svc-card h3 { font-size: 1.28rem; }
.svc-card p { color: var(--text-2); font-size: .96rem; }
.svc-card .more { font-size: .88rem; font-weight: 600; color: var(--link); }
.svc-card .tag-new { justify-self: start; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); border: 1px solid currentColor; border-radius: 999px; padding: 2px 8px; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.steps li { position: relative; padding: 22px 20px 22px 0; border-top: 2px solid var(--rule); counter-increment: step; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: .8rem; color: var(--gold-text); display: block; margin-bottom: 12px; }
.steps li::after { content: ""; position: absolute; top: -2px; left: 0; width: 44px; height: 2px; background: var(--accent); }
.steps h3 { font-size: 1.2rem; margin-bottom: 6px; }
.steps p { color: var(--text-2); font-size: .94rem; }
@media (max-width: 899px) { .steps li { padding-right: 0; } }

/* work cards */
.work-card { display: grid; gap: 14px; padding: 26px; border-radius: var(--r-3); background: var(--surface); border: 1px solid var(--rule); color: var(--text); text-decoration: none; align-content: start; }
.work-card:hover { border-color: var(--accent); text-decoration: none; }
.work-card .big { font-family: var(--f-display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 500; line-height: 1; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.work-card .big small { font-size: .38em; font-family: var(--f-mono); color: var(--text-2); letter-spacing: .06em; display: block; margin-top: 8px; font-weight: 400; }
.work-card h3 { font-size: 1.3rem; }
.work-card p { color: var(--text-2); font-size: .96rem; }

/* horizons */
.horizons { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .horizons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.horizon { border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr auto; background: var(--surface); }
.horizon.now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.horizon header { padding: 20px 22px 0; }
.horizon .years { font-family: var(--f-mono); font-size: .8rem; color: var(--text-3); letter-spacing: .06em; }
.horizon.now .years { color: var(--accent); }
.horizon h3 { margin-top: 6px; font-size: 1.35rem; }
.horizon ul { list-style: none; margin: 0; padding: 14px 22px 20px; display: grid; gap: 8px; }
.horizon li { padding-left: 18px; position: relative; color: var(--text-2); font-size: .95rem; }
.horizon li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.horizon footer { background: var(--surface-2); padding: 14px 22px; border-top: 1px solid var(--rule); font-size: .88rem; }
.horizon footer b { display: block; font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 4px; }

/* bridge path */
.bridge { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .bridge { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bridge li { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 20px; position: relative; }
.bridge .when { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); }
.bridge h3 { font-size: 1.18rem; margin: 8px 0 6px; }
.bridge p { font-size: .93rem; color: var(--text-2); }

/* industries */
.ind-cols { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .ind-cols { grid-template-columns: 1fr 1fr; } }
.ind-col { border-radius: var(--r-3); padding: 26px; border: 1px solid var(--rule); background: var(--surface); }
.ind-col h3 { font-size: 1.3rem; display: flex; align-items: center; gap: 10px; }
.ind-col h3 .dot { width: 10px; height: 10px; border-radius: 50%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { border: 1px solid var(--rule); background: var(--bg); border-radius: 999px; padding: 7px 14px; font-size: .92rem; color: var(--text); text-decoration: none; }
a.chip:hover { border-color: var(--accent); color: var(--accent); }

/* recognition */
.recog { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.recog li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.recog .yr { font-family: var(--f-mono); color: var(--gold-text); font-size: .9rem; }
.recog b { font-weight: 600; }
.recog span.src { display: block; color: var(--text-2); font-size: .9rem; }

/* insight list */
.essays { list-style: none; margin: 0; padding: 0; display: grid; }
.essays li { border-top: 1px solid var(--rule); }
.essays li:last-child { border-bottom: 1px solid var(--rule); }
.essays a, .essays .row { display: grid; grid-template-columns: 1fr auto; gap: 20px; padding: 20px 0; align-items: baseline; text-decoration: none; color: var(--text); }
.essays a:hover h3 { color: var(--accent); }
.essays h3 { font-size: 1.2rem; }
.essays .meta { font-family: var(--f-mono); font-size: .76rem; color: var(--text-3); white-space: nowrap; }
.essays .soon { color: var(--gold-text); }

/* cta band */
.cta-band { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px) { .cta-band { grid-template-columns: 1.3fr .7fr; } }
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.cta-band .lede { color: var(--band-text-2); margin-top: 14px; }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--rule); }
.page-hero-grid { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .page-hero-grid.has-img { grid-template-columns: 1.3fr .7fr; } }
.page-hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); margin-top: 18px; }
.page-hero .lede { margin-top: 18px; }
.page-hero figure { margin: 0; justify-self: center; width: min(100%, 340px); }
.page-hero figure img { border-radius: var(--r-3); aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 15%; }
.page-hero figcaption { font-family: var(--f-mono); font-size: .72rem; color: var(--text-3); margin-top: 8px; letter-spacing: .04em; }

/* in-page subnav */
.subnav { position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); }
.subnav-inner { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a { flex: none; font-size: .86rem; color: var(--text-2); text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); white-space: nowrap; }
.subnav a:hover { color: var(--accent); border-color: var(--accent); }

/* service detail */
.svc-detail { display: grid; gap: 28px; grid-template-columns: 1fr; padding-block: clamp(44px, 6vw, 72px); border-bottom: 1px solid var(--rule); }
@media (min-width: 980px) { .svc-detail { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.svc-detail .num { font-family: var(--f-mono); font-size: .8rem; color: var(--gold-text); letter-spacing: .08em; }
.svc-detail h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin-top: 10px; }
.problem { margin-top: 18px; font-family: var(--f-display); font-style: italic; font-size: 1.2rem; color: var(--text-2); border-left: 2px solid var(--gold); padding-left: 16px; }
.kv { display: grid; gap: 18px; }
.kv h4 { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; margin-bottom: 8px; }
.kv ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
.kv .proof-box { background: var(--accent-soft); border-radius: var(--r-2); padding: 16px 18px; }
.kv .proof-box p { font-size: .98rem; }
details.faq { border-top: 1px solid var(--rule); }
details.faq:last-of-type { border-bottom: 1px solid var(--rule); }
details.faq summary { cursor: pointer; list-style: none; padding: 16px 36px 16px 0; font-weight: 600; position: relative; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 1.4rem; color: var(--accent); font-weight: 400; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 0 18px; color: var(--text-2); max-width: var(--measure); }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r-2); background: var(--surface); }
table.t { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
table.t th, table.t td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.t th { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); font-weight: 500; background: var(--surface-2); }
table.t tr:last-child td { border-bottom: 0; }
table.t td:first-child { font-weight: 600; }

/* case studies */
.case { padding-block: clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--rule); display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .case { grid-template-columns: .8fr 1.2fr; gap: 60px; } }
.case-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 980px) { .case-aside { position: sticky; top: calc(var(--header-h) + 70px); } }
.case-aside h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.case-stats { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1px; background: var(--rule); border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; }
.case-stats div { background: var(--surface); padding: 14px 16px; }
.case-stats strong { display: block; font-family: var(--f-display); font-size: 1.5rem; font-weight: 500; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.case-stats span { font-size: .82rem; color: var(--text-2); }
.case-body { display: grid; gap: 22px; }
.case-body h3 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); font-weight: 500; margin-bottom: 8px; }
.case-body p { max-width: var(--measure); }
.lesson { background: var(--surface-2); border-radius: var(--r-2); padding: 16px 18px; }

/* diagrams (svg) */
.diagram { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: clamp(14px, 2vw, 24px); overflow-x: auto; }
.diagram svg { width: 100%; height: auto; min-width: 560px; display: block; }
.diagram figcaption { font-size: .88rem; color: var(--text-2); margin-top: 12px; max-width: var(--measure); }
.d-box { fill: var(--surface); stroke: var(--rule); stroke-width: 1.25; }
.d-box.acc { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.d-box.gold { fill: none; stroke: var(--gold); stroke-width: 1.5; }
.d-line { stroke: var(--text-3); stroke-width: 1.25; fill: none; }
.d-t { fill: var(--text); font-family: var(--f-body); font-size: 14px; }
.d-t.b { font-weight: 600; }
.d-t.s { fill: var(--text-2); font-size: 12.5px; }
.d-t.m { font-family: var(--f-mono); font-size: 11.5px; fill: var(--gold-text); letter-spacing: .04em; }
.d-arrow { fill: var(--text-3); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 88px; top: 6px; bottom: 6px; width: 2px; background: var(--rule); }
.timeline li { display: grid; grid-template-columns: 88px 1fr; gap: 28px; padding: 0 0 28px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 83px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.timeline li.key::after { background: var(--gold); border-color: var(--gold); }
.timeline .when { font-family: var(--f-mono); font-size: .82rem; color: var(--text-2); padding-top: 3px; }
.timeline h3 { font-size: 1.18rem; }
.timeline p { color: var(--text-2); font-size: .95rem; margin-top: 4px; max-width: 60ch; }
@media (max-width: 560px) {
  .timeline::before { left: 5px; }
  .timeline li { grid-template-columns: 1fr; gap: 4px; padding-left: 28px; }
  .timeline li::after { left: 0; }
}

/* press kit */
.shots { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0,1fr)); }
@media (min-width: 760px) { .shots { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.shots figure { margin: 0; }
.shots img { border-radius: var(--r-2); aspect-ratio: 4/5; object-fit: cover; object-position: 50% 15%; }
.shots figcaption { display: flex; justify-content: space-between; gap: 8px; font-size: .82rem; color: var(--text-2); margin-top: 8px; }
.bio { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); padding: 20px 22px; }
.bio-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.bio-head h3 { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 500; }
.copy-btn { font-size: .8rem; font-weight: 600; background: transparent; border: 1px solid var(--rule); color: var(--text); padding: 6px 12px; border-radius: 999px; cursor: pointer; font-family: var(--f-body); }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }
.bio p { color: var(--text); font-size: .98rem; }
.facts { display: grid; grid-template-columns: 1fr; border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; }
.facts div { display: grid; grid-template-columns: 170px 1fr; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--surface); font-size: .95rem; }
.facts div:last-child { border-bottom: 0; }
.facts dt { font-family: var(--f-mono); font-size: .76rem; color: var(--text-3); padding-top: 3px; }
.facts dd { margin: 0; }
@media (max-width: 560px) { .facts div { grid-template-columns: 1fr; gap: 2px; } }

/* ---------- contact ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .contact-grid { grid-template-columns: 1.25fr .75fr; gap: 44px; } }
.form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: clamp(20px, 3vw, 32px); display: grid; gap: 18px; }
.form .row2 { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: .88rem; font-weight: 600; }
.field .hint { font-size: .8rem; color: var(--text-3); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--r-1); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
.field .err { color: #B3261E; font-size: .82rem; display: none; }
:root[data-theme="dark"] .field .err { color: #FF8A80; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .field .err { color: #FF8A80; } }
.field.invalid .err { display: block; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #B3261E; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: .9rem; color: var(--text-2); }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.form-status { border-radius: var(--r-2); padding: 18px; background: var(--accent-soft); display: grid; gap: 12px; }
.form-status pre { white-space: pre-wrap; font-family: var(--f-mono); font-size: .82rem; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-1); padding: 12px; margin: 0; max-height: 260px; overflow: auto; }
.side-card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-3); padding: 22px; display: grid; gap: 12px; }
.side-card h3 { font-size: 1.25rem; }
.side-card p { color: var(--text-2); font-size: .95rem; }
.addr { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.addr code { font-family: var(--f-mono); font-size: .92rem; background: var(--surface-2); padding: 6px 10px; border-radius: var(--r-1); user-select: all; word-break: break-all; }
#calendly-inline { min-height: 640px; border-radius: var(--r-2); overflow: hidden; border: 1px solid var(--rule); }

/* ---------- footer ---------- */
.site-footer { background: var(--band-bg); color: var(--band-text-2); padding-block: 56px 40px; font-size: .92rem; }
.site-footer a { color: #D9DFE7; text-decoration: none; }
.site-footer a:hover { color: var(--band-accent); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.foot-grid h4 { color: #E9EDF2; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; margin-bottom: 14px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-brand p { margin-top: 14px; max-width: 42ch; }
.foot-line { font-family: var(--f-display); font-style: italic; color: #E9EDF2; font-size: 1.1rem; margin-top: 16px; }
.foot-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--band-rule); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; }
.site-footer .brand-name { color: #F2F4F7; }

/* ---------- concierge ---------- */
.cz-launch {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 60;
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 999px;
  background: #0B1320; color: #F2F4F7; border: 1px solid #2E4262; cursor: pointer; font: 600 .95rem var(--f-body);
  box-shadow: 0 10px 30px rgba(11,19,32,.35);
}
.cz-launch img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.cz-launch .pulse { width: 8px; height: 8px; border-radius: 50%; background: #2BD9A5; box-shadow: 0 0 0 0 rgba(43,217,165,.6); animation: cz-pulse 2.4s infinite; }
@keyframes cz-pulse { 0% { box-shadow: 0 0 0 0 rgba(43,217,165,.55); } 70% { box-shadow: 0 0 0 10px rgba(43,217,165,0); } 100% { box-shadow: 0 0 0 0 rgba(43,217,165,0); } }
@media (prefers-reduced-motion: reduce) { .cz-launch .pulse { animation: none; } }
@media (max-width: 520px) { .cz-launch .lbl-long { display: none; } }
.cz {
  position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); z-index: 70;
  width: min(420px, calc(100vw - 32px)); height: min(640px, calc(100dvh - 110px));
  background: var(--surface); color: var(--text); border: 1px solid var(--rule); border-radius: 18px;
  box-shadow: 0 24px 60px rgba(11,19,32,.35); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
}
.cz-head { background: #0B1320; color: #E9EDF2; padding: 14px 14px 14px 16px; display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; }
.cz-head img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.cz-head b { display: block; font-size: .98rem; }
.cz-head small { display: block; color: #A9B2C0; font-size: .76rem; line-height: 1.35; }
.cz-head button { background: transparent; border: 1px solid #2E4262; color: #E9EDF2; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.cz-log { overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.cz-msg { max-width: 88%; padding: 11px 14px; border-radius: 14px; font-size: .93rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.cz-msg.bot { background: var(--surface); border: 1px solid var(--rule); border-top-left-radius: 4px; align-self: flex-start; }
.cz-msg.me { background: var(--accent); color: var(--accent-ink); border-top-right-radius: 4px; align-self: flex-end; }
.cz-msg a { color: var(--link); font-weight: 600; }
.cz-msg.me a { color: inherit; }
.cz-msg.think { color: var(--text-3); font-style: italic; }
.cz-src { display: block; margin-top: 8px; font-size: .78rem; }
.cz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cz-chips button { font: 500 .82rem var(--f-body); border: 1px solid var(--rule); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 11px; cursor: pointer; text-align: left; }
.cz-chips button:hover { border-color: var(--accent); color: var(--accent); }
.cz-foot { border-top: 1px solid var(--rule); padding: 10px 12px 12px; display: grid; gap: 8px; background: var(--surface); }
.cz-form { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.cz-form input { font: inherit; font-size: .95rem; padding: 11px 13px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg); color: var(--text); min-width: 0; }
.cz-form button { border-radius: 999px; border: 0; padding: 0 16px; font-weight: 600; cursor: pointer; background: var(--accent); color: var(--accent-ink); font-family: var(--f-body); }
.cz-form button.stop { background: var(--surface-2); color: var(--text); border: 1px solid var(--rule); }
.cz-note { font-size: .72rem; color: var(--text-3); line-height: 1.4; }

/* reveal (visible at rest; only nudges) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: rise .7s cubic-bezier(.2,.7,.2,1) both; }
  .reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
  @keyframes rise { from { transform: translateY(10px); } to { transform: none; } }
}

/* client marks */
.marks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 34px; align-items: baseline; }
.marks li { font-family: var(--f-display); font-size: clamp(1.1rem, 1.8vw, 1.4rem); color: var(--text-2); letter-spacing: -.01em; }
/* moments gallery */
.moments { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .moments { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.moments figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.moments .m-wide { grid-column: span 2; }
.moments img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moments figure:not(.m-wide) img { aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface-2); }
.moments figcaption { padding: 12px 14px; font-size: .86rem; color: var(--text-2); line-height: 1.4; }
.moments .credit { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--text-3); margin-top: 4px; }
.recog li { grid-template-columns: 76px minmax(0, 1fr); }

/* Award and event images used in place of secondary portraits */
.page-hero figure.fig-doc img, figure.fig-doc img { aspect-ratio: auto; height: auto; object-fit: contain; object-position: center; background: var(--surface-2); border: 1px solid var(--rule); border-radius: var(--r-3); }
figure.fig-doc figcaption .credit { display: block; font-family: var(--f-mono); font-size: .7rem; color: var(--text-3); margin-top: 4px; }
.award-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 22px; }
.award-strip a { display: block; border: 1px solid var(--rule); border-radius: var(--r-2); overflow: hidden; background: var(--surface-2); transition: transform .2s ease, border-color .2s ease; }
.award-strip a:hover { transform: translateY(-2px); border-color: var(--gold); }
.award-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%; display: block; }
@media (prefers-reduced-motion: reduce) { .award-strip a { transition: none; } .award-strip a:hover { transform: none; } }
figure.fig-doc figcaption { margin-top: 10px; font-family: var(--f-mono); font-size: .74rem; color: var(--text-3); line-height: 1.5; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.case-links a { font-family: var(--f-mono); font-size: .76rem; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; color: var(--accent); text-decoration: none; }
.case-links a:hover { border-color: var(--gold); color: var(--text); }
