/* Layout: mobile-first. Home reads as a Z (name -> photo, metrics across, pull quote -> buttons); Projects and Research read as an F (title bar, metrics bar, jump bar, then left-anchored rows). White ground, navy ink, champagne gold details. */
:root {
  --bg: #f7f3ec;
  --surface: #fffdf9;
  --ink: #23140f;
  --ink-2: #5b4a44;
  --ink-3: #7d6b64;
  --rule: #e6dccd;
  --navy: #5e1712;
  --sapphire: #99261f;
  --gold: #8a6418;
  --gold-soft: #f3e6c8;
  --wash-a: #f6e3dc;
  --wash-b: #f6ead2;
  --red: #99261f;
  --wine: #2a0c09;
  --gold-hi: #e2bd6a;
  --shadow: 0 1px 2px rgba(42, 12, 9, .05), 0 10px 26px -14px rgba(42, 12, 9, .18);
  --shadow-lift: 0 2px 4px rgba(42, 12, 9, .06), 0 22px 44px -18px rgba(94, 23, 18, .32);
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: clamp(1.375rem, 1.1rem + 1.2vw, 1.875rem);
  --fs-hero: clamp(2.25rem, 1.4rem + 4vw, 4rem);
  --max: 72rem;
  --read: 40rem;
  --gut: max(20px, env(safe-area-inset-left, 0px));
  --gut-r: max(20px, env(safe-area-inset-right, 0px));
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip;
  font-family: var(--sans); font-size: var(--fs-md); line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03"; font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: rgba(247, 243, 236, .9); }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap { width: 100%; max-width: calc(var(--max) + 48px); margin-inline: auto; padding-left: var(--gut); padding-right: var(--gut-r); }

/* Header */
.site-head {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5;
  background: rgba(247, 243, 236, .86); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid rgba(230, 220, 205, .8);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 12px; }
.mark { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; font-size: var(--fs-sm); }
.mark b {
  display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; flex: none;
  background: linear-gradient(140deg, var(--navy), var(--sapphire)); color: #fff; font-size: 0.75rem; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 4px 10px -4px rgba(20,37,79,.5);
}
.mark-name { display: none; }
.mark-name span { color: var(--ink-3); font-weight: 400; }
.nav { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: var(--fs-sm); }
.nav a { color: var(--ink-2); padding: 7px 14px; border-radius: 999px; transition: color .2s, background .2s, box-shadow .2s; }
.nav a:hover { color: var(--navy); background: var(--wash-a); box-shadow: inset 0 0 0 1px rgba(153, 38, 31, .18); }
.nav a:focus-visible { outline: 2px solid var(--sapphire); outline-offset: 2px; }
.nav a[aria-current="page"] { color: #fff; background: var(--navy); font-weight: 500; }

/* Shared type */
.eyebrow, .kicker, .label, .company, .lbl {
  font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600;
}
.eyebrow { color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.eyebrow .sep { color: var(--rule); }
.nw { white-space: nowrap; }
.z1 .eyebrow { font-size: 0.6875rem; letter-spacing: 0.1em; gap: 4px 8px; flex-wrap: wrap; }
.z1 .eyebrow::before { width: 14px; }
h1 { font-size: var(--fs-hero); font-weight: 650; letter-spacing: -0.045em; line-height: 1; }
.soft { background: linear-gradient(100deg, var(--navy) 10%, var(--sapphire) 90%); -webkit-background-clip: text; background-clip: text; color: transparent; }
h2 { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; }
.kicker { color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 24px; height: 1px; background: var(--gold); }
.prose p { font-size: var(--fs-lg); line-height: 1.75; color: var(--ink-2); max-width: var(--read); }
.prose p + p { margin-top: 20px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose b, .pull b { color: var(--navy); font-weight: 650; font-variant-numeric: tabular-nums; }
.link { color: var(--navy); font-weight: 500; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; }
.link:hover { color: var(--sapphire); }

.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px;
  background: var(--navy); color: #fff; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--rule), 0 10px 24px -10px rgba(42, 12, 9, .7);
  transition: background .25s, gap .25s;
}
.btn i { font-style: normal; font-size: 1rem; letter-spacing: 0; }
.btn:hover { background: #7a1d17; gap: 14px; }
.btn-ghost { background: var(--surface); color: var(--navy); box-shadow: 0 0 0 1px var(--rule), 0 8px 20px -14px rgba(42, 12, 9, .5); }
.btn-ghost:hover { background: var(--gold-soft); }

/* Metrics bar (above the fold) */
.kpis { list-style: none; margin-block: 0; padding-top: 0; padding-bottom: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpis li {
  display: grid; align-content: start; gap: 2px; padding: 16px; min-width: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--shadow);
}
.m-n {
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums;
  background: linear-gradient(110deg, var(--navy) 20%, var(--sapphire)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.m-l { font-size: var(--fs-sm); font-weight: 600; color: var(--ink); }
.m-s { font-size: var(--fs-xs); color: var(--ink-3); line-height: 1.4; }

/* HOME: Z pattern */
.z1 { position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 40px 28px; }
.z1::before {
  content: ""; position: absolute; z-index: -1; top: -80px; left: 50%; width: 100vw; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(40rem 20rem at 15% 30%, var(--wash-a), transparent 70%), radial-gradient(28rem 16rem at 88% 12%, var(--wash-b), transparent 70%);
}
.z1-text { display: grid; gap: 14px; min-width: 0; }
.tagline { grid-column: 1 / -1; font-size: var(--fs-md); color: var(--ink-2); line-height: 1.55; max-width: 34rem; }
.z3 { display: grid; gap: 24px; padding-block: 32px 8px; }
.pull {
  font-size: clamp(1.125rem, 1.02rem + .5vw, 1.375rem); line-height: 1.6; letter-spacing: -0.015em; color: var(--ink);
  padding-left: 18px; border-left: 2px solid var(--gold); max-width: 44rem;
}
.z3-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.band { display: grid; gap: 16px; padding-block: 56px 0; }
.band-h { display: grid; gap: 6px; align-content: start; }
.band-h h2 { font-size: var(--fs-xl); }
.band-sub { font-size: var(--fs-sm); color: var(--ink-3); }
.band-body { min-width: 0; }
.creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.creds li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.creds .t { display: block; font-weight: 600; line-height: 1.35; }
.creds .s { display: block; color: var(--ink-2); font-size: var(--fs-sm); }
.badge {
  flex: none; display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--rule); color: var(--navy); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
}
.squares { display: grid; gap: 16px; padding-block: 56px 0; }
.square {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 26px; min-height: 280px;
  border-radius: 24px; border: 1px solid var(--rule); background: var(--surface); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.square::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(22rem 16rem at 100% 0%, var(--wash-a), transparent 70%), radial-gradient(18rem 12rem at 0% 100%, var(--wash-b), transparent 70%); }
.square:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.sq-t { font-size: var(--fs-xl); font-weight: 650; letter-spacing: -0.03em; line-height: 1.2; }
.sq-d { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }
.square .btn { margin-top: auto; align-self: flex-start; }
.square:hover .btn { background: var(--sapphire); gap: 14px; }

/* Portrait */
.portrait { position: relative; margin: 0; aspect-ratio: 4 / 5; width: 100%; isolation: isolate; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.halo {
  position: absolute; inset: -6% -8% 2%; z-index: -2; border-radius: 50%;
  background: conic-gradient(from var(--a), transparent 0 20%, var(--gold) 32%, transparent 45% 60%, var(--sapphire) 75%, transparent 88%);
  -webkit-mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px), #000 99%, transparent 100%);
          mask: radial-gradient(closest-side, transparent calc(100% - 1.5px), #000 calc(100% - 1px), #000 99%, transparent 100%);
}
.arch {
  position: absolute; inset: 14% 4% 0; z-index: -1; overflow: hidden; border-radius: 999px 999px 22px 22px;
  background: radial-gradient(80% 60% at 50% 30%, #fff 0%, transparent 70%), linear-gradient(170deg, #dfe6ff 0%, #eef1ff 45%, #f6efe2 100%);
  border: 1px solid rgba(153, 38, 31, .18);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.55), 0 30px 60px -30px rgba(42, 12, 9, .45);
}
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(42, 12, 9, .18) 1px, transparent 1.2px); background-size: 12px 12px; -webkit-mask: linear-gradient(180deg, #000, transparent 70%); mask: linear-gradient(180deg, #000, transparent 70%); }
.scan { position: absolute; left: 0; right: 0; top: 0; height: 28%; opacity: 0; background: linear-gradient(180deg, transparent, rgba(153, 38, 31, .08) 85%, rgba(153, 38, 31, .32) 99%, transparent); }
.frame { position: absolute; inset: 14% 4% 0; clip-path: inset(-40% 0 0 0 round 0 0 22px 22px); }
.person { position: absolute; left: 0; bottom: 0; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(42, 12, 9, .25)); }
.hud { position: absolute; width: 12px; height: 12px; border: 0 solid var(--gold); opacity: .85; }
.hud.tl { top: 6%; left: -2%; border-top-width: 1.5px; border-left-width: 1.5px; }
.hud.tr { top: 6%; right: -2%; border-top-width: 1.5px; border-right-width: 1.5px; }
.hud.bl { bottom: -3%; left: -2%; border-bottom-width: 1.5px; border-left-width: 1.5px; }
.hud.br { bottom: -3%; right: -2%; border-bottom-width: 1.5px; border-right-width: 1.5px; }
.glass {
  position: absolute; display: none; align-items: center; gap: 8px; white-space: nowrap; padding: 8px 13px; border-radius: 14px;
  font-size: 0.8125rem; color: var(--ink-2); background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  box-shadow: 0 1px 0 rgba(255,255,255,.8) inset, 0 14px 30px -14px rgba(42, 12, 9, .45);
}
.glass b { color: var(--navy); font-weight: 650; }
.glass i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.g1 { top: 34%; left: -22%; }
.g3 { bottom: 10%; right: -14%; color: var(--navy); font-weight: 600; }

/* F pattern pages */
.f1 { position: relative; isolation: isolate; display: grid; gap: 14px; padding-block: 32px 24px; }
.f1::before {
  content: ""; position: absolute; z-index: -1; top: -80px; left: 50%; width: 100vw; height: 460px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(40rem 20rem at 12% 30%, var(--wash-a), transparent 70%), radial-gradient(28rem 16rem at 90% 10%, var(--wash-b), transparent 70%);
}
.f1 h1 { font-size: clamp(2rem, 1.3rem + 3.6vw, 3.5rem); max-width: 48rem; }
.intro { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.65; max-width: var(--read); }
.jump { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding-block: 22px 0; }
.jump-l { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.jump-links { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-links a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--rule); background: var(--surface); font-size: var(--fs-sm); color: var(--ink-2); transition: border-color .2s, color .2s; }
.jump-links a:hover { color: var(--navy); border-color: var(--gold); }
.sec { padding-block: 56px 0; }
.sec-head { display: grid; gap: 8px; margin-bottom: 22px; }

/* Project tiles */
.projs { display: grid; gap: 20px; }
.proj {
  position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 20px; padding: 24px 20px;
  border-radius: 22px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); transition: box-shadow .4s;
}
.proj::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .7; background: radial-gradient(28rem 18rem at 100% 0%, var(--wash-a), transparent 68%), radial-gradient(18rem 12rem at 0% 0%, var(--wash-b), transparent 70%); }
.proj::after { content: ""; position: absolute; left: 20px; right: 20px; top: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--sapphire) 60%, transparent); transform-origin: left; transform: scaleX(.18); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.proj:hover { box-shadow: var(--shadow-lift); }
.proj.open::after { transform: scaleX(1); }
.proj-side { display: grid; gap: 10px; align-content: start; min-width: 0; }
.ptag { justify-self: start; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--rule); background: rgba(255,255,255,.85); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); }
.company { color: var(--gold); }
.label { color: var(--ink-3); margin-top: 4px; }
.metrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metric { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.9); border: 1px solid var(--rule); min-width: 0; }
.metric .n { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1.05; font-variant-numeric: tabular-nums; background: linear-gradient(110deg, var(--navy) 20%, var(--sapphire)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .l { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.4; }
.metric-text .l { color: var(--ink); font-weight: 500; }
.metric-text::before { content: ""; width: 16px; height: 2px; background: var(--gold); margin-bottom: 8px; }
.proj-main { min-width: 0; display: grid; align-content: start; }
.headline { font-size: clamp(1.375rem, 1.05rem + 1.4vw, 2rem); font-weight: 650; letter-spacing: -0.035em; line-height: 1.15; max-width: 38rem; }
.proj-sm .headline { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.5rem); }
.summary { margin-top: 12px; color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; max-width: var(--read); }
.toggle {
  justify-self: start; margin-top: 22px; display: inline-flex; align-items: center; gap: 14px; padding: 13px 22px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; background: var(--navy);
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--rule), 0 10px 24px -10px rgba(42, 12, 9, .7); transition: background .25s, color .25s, box-shadow .25s;
}
.toggle:hover { background: var(--sapphire); }
.toggle i { position: relative; width: 12px; height: 12px; }
.toggle i::before, .toggle i::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: currentColor; transition: transform .35s; }
.toggle i::after { transform: rotate(90deg); }
.proj.open .toggle { background: var(--gold-soft); color: var(--navy); box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--gold); }
.proj.open .toggle i::before { transform: rotate(45deg); }
.proj.open .toggle i::after { transform: rotate(135deg); }
.panel { margin-top: 22px; padding: 20px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); }
.more:not([hidden]) .panel { animation: open .45s cubic-bezier(.2,.7,.2,1); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } }
.approach { margin: 0 0 22px; color: var(--ink); font-size: var(--fs-md); line-height: 1.75; max-width: var(--read); }
.panel .label { margin: 0 0 10px; }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.results li { position: relative; padding: 12px 14px 12px 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--rule); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.5; }
.results li::before { content: ""; position: absolute; left: 15px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: radial-gradient(circle, var(--gold) 0 3px, var(--gold-soft) 3.5px); }
.results strong { color: var(--navy); font-weight: 650; }
.results .award { background: linear-gradient(100deg, var(--gold-soft), #fff 80%); border-color: #e6d5b6; color: var(--ink); font-weight: 500; }
.award-k { display: inline-block; margin-right: 10px; padding: 1px 8px; border-radius: 999px; background: var(--gold); color: #fff; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; vertical-align: 1px; }

/* Research rows */
.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.r { display: grid; gap: 10px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s; }
.r:hover { box-shadow: var(--shadow-lift); border-color: #d9c5b3; }
.r-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.r-date { font-size: var(--fs-sm); font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.r-tags { font-size: var(--fs-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.r-body { display: grid; gap: 8px; min-width: 0; }
.r-t { font-size: var(--fs-lg); font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.r-t a:hover { color: var(--sapphire); }
.r-i { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; max-width: var(--read); }
.r-link { justify-self: start; margin-top: 4px; display: inline-flex; gap: 8px; font-size: var(--fs-sm); font-weight: 600; color: var(--navy); background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat; }
.r-link i { font-style: normal; }
.r-link:hover { color: var(--sapphire); }
.more-link { margin-top: 22px; }
.ph .r-t, .ph .r-i, .ph .r-date { color: var(--ink-3); }
.tag { display: inline-block; margin-left: 10px; padding: 1px 8px; vertical-align: 3px; font-size: 0.625rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; color: var(--gold); border: 1px dashed var(--gold); border-radius: 999px; }

/* Footer */
.site-foot {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 88px; color: #f4f0e7;
  background: radial-gradient(40rem 18rem at 85% 0%, rgba(153, 38, 31, .55), transparent 70%), radial-gradient(30rem 16rem at 0% 100%, rgba(226, 189, 106, .22), transparent 70%), var(--wine);
}
.site-foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.foot { display: grid; gap: 28px; padding-block: 48px 28px; }
.foot-cta { display: grid; gap: 12px; }
.lbl { color: #d9bf93; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.site-foot .lbl { font-size: var(--fs-sm); line-height: 1.4; }
.email { color: #fff; font-weight: 600; font-size: var(--fs-sm); line-height: 1.4; user-select: all; overflow-wrap: anywhere; }
.email:hover { color: #f3e6c8; }
.copy { font: inherit; font-size: var(--fs-sm); line-height: 1.4; font-weight: 600; color: var(--navy); background: var(--surface); border: 0; border-radius: 999px; padding: 4px 14px; cursor: pointer; transition: background .2s; }
.copy:hover { background: var(--gold-soft); }
.copy[data-done] { background: #d9bf93; }
.social { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-sm); }
.social a { padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.06); color: #fff; transition: background .2s, border-color .2s; }
.social a:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); }
.social .resume { background: linear-gradient(120deg, #e2c896, #b9925a); border-color: transparent; color: var(--navy); font-weight: 600; }
.social .resume:hover { background: linear-gradient(120deg, #f0dcb6, #c9a26a); }
.social i { font-style: normal; }
.foot-sub { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: var(--fs-xs); color: #cdb9ae; }
.foot-sub a:hover { color: #fff; }

/* Hero roles */
.roles { display: flex; flex-wrap: wrap; gap: 8px; }
.roles span { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: var(--fs-sm); font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; }
.role-pm { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(42, 12, 9, .7); }
.role-rs { background: var(--surface); color: var(--navy); border: 1px solid var(--gold); }
.roles span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.loc { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); color: var(--ink-2); letter-spacing: -0.005em; }
.loc::before { content: ""; width: 10px; height: 10px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); border: 1.5px solid currentColor; box-sizing: border-box; }

/* About: three sides */
.sides { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sides li {
  position: relative; display: grid; gap: 4px; align-content: start; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--rule); box-shadow: var(--shadow);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s;
}
.sides li:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.sd-co { font-weight: 650; font-size: var(--fs-lg); letter-spacing: -0.02em; }
.sd-how { font-size: var(--fs-sm); color: var(--gold); font-weight: 500; }
.sd-n { margin-top: 14px; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 650; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; background: linear-gradient(110deg, var(--navy) 20%, var(--sapphire)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sd-d { font-size: var(--fs-sm); color: var(--ink-2); line-height: 1.6; }
.practice { margin-top: 16px; display: grid; gap: 14px; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--rule); }
.practice-lead { font-size: var(--fs-xs); letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; color: var(--ink-3); }
.practice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.practice-list li { padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--rule); font-size: var(--fs-sm); color: var(--ink-2); }
.practice-list b { color: var(--navy); font-weight: 650; }
.practice-note { color: var(--ink-2); font-size: var(--fs-md); line-height: 1.7; max-width: var(--read); }
.pull strong { color: var(--navy); font-weight: 600; }

@media (prefers-reduced-motion: no-preference) {
  .halo { animation: spin 18s linear infinite; }
  .scan { animation: scan 5.5s cubic-bezier(.4,0,.2,1) infinite 1s; }
  .glass { animation: float 6s ease-in-out infinite; }
  .g3 { animation-delay: -3s; }
  main > * { animation: rise .6s cubic-bezier(.2,.7,.2,1) both; }
  main > *:nth-child(2) { animation-delay: .05s; } main > *:nth-child(3) { animation-delay: .1s; } main > *:nth-child(n+4) { animation-delay: .15s; }
  @keyframes spin { to { --a: 360deg; } }
  @keyframes scan { 0% { transform: translateY(-100%); opacity: 0; } 15%, 70% { opacity: 1; } 100% { transform: translateY(380%); opacity: 0; } }
  @keyframes float { 50% { transform: translateY(-6px); } }
  @keyframes rise { from { opacity: .001; transform: translateY(6px); } }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .square, .proj::after { transition: none; } }

/* ≥ 480px */
@media (min-width: 480px) {
  .mark-name { display: inline; }
}
/* ≥ 760px */
@media (min-width: 760px) {
  :root { --gut: max(32px, env(safe-area-inset-left, 0px)); --gut-r: max(32px, env(safe-area-inset-right, 0px)); }
  .bar { padding-block: 16px; }
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .kpis li { padding: 20px 22px; }
  .m-s { font-size: var(--fs-sm); }
  .z1 { padding-block: 72px 40px; }
  .z1-text { gap: 22px; }
  .z1 .eyebrow { font-size: var(--fs-xs); letter-spacing: 0.16em; gap: 10px; }
  .z1 .eyebrow::before { width: 24px; }
  .tagline { grid-column: auto; font-size: var(--fs-lg); }
  .glass { display: inline-flex; }
  .hud { width: 16px; height: 16px; }
  .z3 { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; padding-block: 44px 8px; }
  .z3-cta { flex-direction: column; align-items: flex-end; }
  .band { grid-template-columns: 16rem minmax(0, 1fr); gap: 40px; padding-block: 80px 0; }
  .band-h { position: sticky; top: 96px; align-self: start; }
  .band-h h2 { font-size: 1.375rem; }
  .creds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .creds li { flex-direction: column; align-items: flex-start; padding: 22px; }
  .squares { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-block: 80px 0; }
  .square { aspect-ratio: 16 / 11; padding: 32px; max-width: 100%; }
  .f1 { padding-block: 48px 32px; }
  .intro { font-size: var(--fs-lg); }
  .sec { padding-block: 72px 0; }
  .proj { grid-template-columns: 15rem minmax(0, 1fr); gap: 36px; padding: 32px; border-radius: 26px; }
  .proj::after { left: 32px; right: 32px; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 24px; }
  .r { grid-template-columns: 11rem minmax(0, 1fr); gap: 28px; padding: 24px 28px; }
  .r-meta { flex-direction: column; gap: 6px; }
  .foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px 48px; padding-block: 64px 28px; }
  .foot-sub { grid-column: 1 / -1; }
  .sides { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .roles span { font-size: var(--fs-md); padding: 8px 16px; }
}
/* ≥ 1080px */
@media (min-width: 1080px) {
  .proj { grid-template-columns: 17rem minmax(0, 1fr); gap: 48px; padding: 40px; }
  .proj::after { left: 40px; right: 40px; }
}

/* Resume popup */
.cv {
  width: min(920px, calc(100vw - 24px)); height: min(88vh, 1100px); max-width: none; max-height: none; padding: 0;
  border: 0; border-radius: 20px; overflow: hidden; background: var(--surface); color: var(--ink);
  box-shadow: 0 30px 80px -20px rgba(42, 12, 9, .55);
}
.cv[open] { display: flex; flex-direction: column; }
.cv::backdrop { background: rgba(42, 12, 9, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.cv-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 20px; background: var(--wine); color: #fff; }
.cv-title { font-weight: 600; font-size: var(--fs-sm); }
.cv-title span { color: #cdb9ae; font-weight: 400; margin-left: 8px; }
.cv-actions { display: flex; gap: 8px; }
.cv-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; transition: background .2s; }
.cv-btn:hover { background: rgba(255,255,255,.18); }
.cv-btn[href] { background: linear-gradient(120deg, #e2c896, #b9925a); color: var(--navy); border-color: transparent; }
.cv-body { flex: 1; min-height: 0; background: var(--surface); display: grid; }
.cv-frame { width: 100%; height: 100%; border: 0; background: var(--surface); }
.cv-empty { align-self: center; justify-self: center; max-width: 28rem; padding: 24px; text-align: center; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .cv[open] { animation: cv-in .35s cubic-bezier(.2,.7,.2,1); }
  @keyframes cv-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}

/* Warm theme, shared with Product Thinking: hero band in deep wine with a starlight card */
.btn:not(.btn-ghost) { background: var(--red); }
.btn:not(.btn-ghost):hover { background: #7a1d17; }
.nav a[aria-current="page"] { background: var(--red); }
.mark b { background: linear-gradient(140deg, var(--navy), var(--red)); }
.role-pm { background: var(--red); }
.hero-band { position: relative; isolation: isolate; overflow: hidden; background: var(--wine); }
.hero-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(40rem 26rem at 50% 45%, rgba(153, 38, 31, .55), transparent 70%), radial-gradient(30rem 20rem at 0% 100%, rgba(226, 189, 106, .12), transparent 70%); }
.hero-band .z1, .hero-band .f1 { padding-block: 32px 40px; }
.hero-band .z1::before, .hero-band .f1::before { content: none; }
.hero-card { display: grid; gap: 14px; padding: 24px 22px; border-radius: 24px; color: var(--ink); background: radial-gradient(28rem 16rem at 100% 0%, #fbe9df, transparent 70%), radial-gradient(24rem 14rem at 0% 100%, #f6ead2, transparent 70%), #fbf8f2; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); min-width: 0; }
.hero-kick { color: var(--red); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.z1 h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.05; }
.z1 .soft, .f1 .soft { background: none; color: var(--red); }
.f1 h1 { font-size: clamp(1.75rem, 1.1rem + 2.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
.hero-band + .kpis { margin-top: 28px; }
@media (min-width: 768px) {
  .hero-card { padding: 40px 44px; }
  .hero-band .z1, .hero-band .f1 { padding-block: 56px 64px; }
}

/* Flowing stack hero (all three pages): identity on the left, highlights floating as 3D cards on the right.
   Cards start piled, fan out on load, tilt toward the pointer and drift apart on scroll. Static fan when motion is reduced. */
.fs-band { background: var(--wine); color: #f4f0e7; }
.fs-band::before { background: radial-gradient(40rem 26rem at 75% 40%, rgba(153, 38, 31, .6), transparent 70%), radial-gradient(26rem 18rem at 0% 100%, rgba(226, 189, 106, .12), transparent 70%); }
.fs { display: grid; gap: 8px; padding-block: 36px 28px; }
.fs-id { display: grid; gap: 14px; align-content: center; position: relative; z-index: 2; min-width: 0; }
.fs-kick { color: var(--gold-hi); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; }
.fs-id h1 { font-size: clamp(1.875rem, 1.3rem + 2.2vw, 2.75rem); letter-spacing: -0.035em; line-height: 1.06; color: #f4f0e7; }
.fs-id h1 .soft, .fs-id h1 span { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--gold-hi); }
.fs-id .intro, .fs-id .pt-lede { color: #dccdc3; line-height: 1.65; max-width: 34rem; }
.fs-id .loc { color: #dccdc3; }
.fs-id .role-rs { background: transparent; color: #f4f0e7; border-color: rgba(226, 189, 106, .6); }
.fs-id .roles span::before { background: var(--gold-hi); }
.fs-id .pt-cta { background: #f4f0e7; color: var(--wine); }
.fs-id .pt-cta:hover { background: var(--gold-hi); }
.fs-scene { position: relative; height: 270px; perspective: 1100px; }
.fs-rig { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)); transition: transform .6s var(--ease, ease); }
.fs-rig li { position: absolute; left: 50%; top: 50%; width: var(--cw); height: var(--chh); margin: calc(var(--chh) / -2) 0 0 calc(var(--cw) / -2); transform-style: preserve-3d;
  transform: translate3d(var(--x, 0px), calc(var(--y, 0px) + var(--dy, 0px)), var(--z, 0px)) rotate(var(--r, 0deg)); transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.fs-rig { --cw: 150px; --chh: 196px; }
.fs-card { display: grid; align-content: space-between; gap: 8px; width: 100%; height: 100%; padding: 12px; border-radius: 16px; color: var(--ink); background: #fbf8f2; overflow: hidden;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6), inset 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.fs-card:hover, .fs-card:focus-visible { transform: translateZ(50px) translateY(-8px); box-shadow: 0 40px 70px -24px rgba(0, 0, 0, .7), 0 0 0 2px var(--gold-hi); }
.fs-card:focus-visible { outline: none; }
.fs-card small { display: block; font-size: 0.625rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: currentColor; }
.fs-card strong { display: block; font-size: 0.875rem; line-height: 1.2; letter-spacing: -0.01em; margin-top: 4px; font-weight: 650; }
.fs-card b { display: block; font-size: 1.625rem; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.fs-card span { display: block; font-size: 0.75rem; line-height: 1.4; margin-top: 4px; }
.fs-c1 { background: #b23a31; color: #fff; }
.fs-c2 { background: #f1d9cf; }
.fs-c3 { background: #f3e6c8; }
.fs-c4 { background: #fbf8f2; }
.fs-c5 { background: #e2bd6a; }
/* Product Thinking: landscape slide previews instead of the playing-card shape used further down */
.fs-wide .fs-rig { --cw: 190px; --chh: 136px; }
.fs-slide { padding: 0; align-content: stretch; grid-template-rows: 1fr auto; gap: 0; background: #fbf8f2; }
.fs-slide img { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 0; }
.fs-slide .cap { padding: 7px 10px; font-size: 0.6875rem; font-weight: 600; line-height: 1.3; color: var(--ink); background: #fbf8f2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fs-slide .cap em { font-style: normal; color: var(--red); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; font-size: 0.5625rem; margin-right: 6px; }
.fs-proto { display: grid; align-content: space-between; padding: 12px; background: radial-gradient(14rem 8rem at 100% 0%, rgba(226, 189, 106, .35), transparent 70%), #5e1712; color: #f4f0e7; }
.fs-proto strong { font-size: 0.9375rem; }
.fs-proto span { color: #f3e6c8; }
.pt .fs-band + * { margin-top: 0; }
@media (min-width: 860px) {
  .fs { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; padding-block: 48px 56px; min-height: 440px; }
  .fs-scene { height: 420px; }
  .fs-rig { --cw: 200px; --chh: 260px; }
  .fs-wide .fs-rig { --cw: 280px; --chh: 196px; }
  .fs-card { padding: 16px; border-radius: 18px; }
  .fs-card strong { font-size: 1.0625rem; }
  .fs-card b { font-size: 2.125rem; }
  .fs-proto strong { font-size: 1.125rem; }
  .fs-slide .cap { font-size: 0.8125rem; padding: 9px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .fs-rig, .fs-rig li, .fs-card { transition: none; }
}
.fs-rig li:nth-child(1) { --x: -120px; --r: -8deg; --y: 20px; } .fs-rig li:nth-child(2) { --x: -60px; --r: -4deg; --y: 6px; } .fs-rig li:nth-child(3) { --x: 0px; }
.fs-rig li:nth-child(4) { --x: 60px; --r: 4deg; --y: 6px; } .fs-rig li:nth-child(5) { --x: 120px; --r: 8deg; --y: 20px; }
