/* Fonts — Outfit (display) + Plus Jakarta Sans (text), self-hosted. Both OFL. */
@font-face { font-family: 'Outfit'; font-weight: 400 700; font-display: swap; src: url(../fonts/outfit-latin.woff2) format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 700; font-display: swap; src: url(../fonts/jakarta-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 400 700; font-display: swap; src: url(../fonts/jakarta-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ── Tokens. Light by default; dark follows the visitor's device setting. ── */
:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --surface: #F5F7FF;
  --surface-2: #EEF1FB;
  --ink: #15161C;
  --text: #41455C;
  --muted: #5A5F78;
  --faint: #7C8199;
  --line: #E6E8F2;
  --accent: #3B4FD8;
  --accent-hover: #2B3AA8;
  --on-accent: #FFFFFF;
  --frame: rgba(21, 22, 28, 0.08);
  --band: #15161C;          /* the dark contact band */
  --band-text: #C9CCDE;
  --band-line: #33364A;
  --gutter: clamp(16px, 5.5vw, 80px);
  --max: 1200px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F1016;
    --surface: #181A24;
    --surface-2: #1F2230;
    --ink: #F1F2F7;
    --text: #B9BDD0;
    --muted: #9A9FB6;
    --faint: #7F849C;
    --line: #262938;
    --accent: #8B99FF;
    --accent-hover: #B0BAFF;
    --on-accent: #0F1016;
    --frame: rgba(255, 255, 255, 0.08);
    --band: #181A24;
    --band-text: #B9BDD0;
    --band-line: #2C2F40;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 'Plus Jakarta Sans', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: 'Outfit', system-ui, sans-serif; margin: 0; color: var(--ink); }
p { margin: 0; color: var(--text); }
strong { color: var(--ink); }

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; color: var(--faint); }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ── Header ── */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand-name { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 32px); font-size: 15px; font-weight: 500; }
.site-nav .cta { color: var(--accent); font-weight: 600; }
.brand-name { white-space: nowrap; }
@media (max-width: 420px) { .brand-name { font-size: 18px; } .site-nav { gap: 14px; font-size: 14px; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 8px; font-size: 16px; font-weight: 600; border: 1.5px solid var(--line); color: var(--ink); background: transparent; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Hero ── */
.hero { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.03; font-weight: 700; letter-spacing: -1.6px; }
.hero .lede { font-size: 19px; }
.hero .note { color: var(--muted); font-size: 16px; }
.portrait { margin: 0; }
.portrait img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 56% 28%; border-radius: 16px; }
.portrait figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .portrait { max-width: 420px; }
  .portrait img { aspect-ratio: 4 / 3; }
}

/* ── Numbers ── */
.numbers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.numbers b { display: block; font: 600 32px/1 'Outfit', sans-serif; color: var(--accent); margin-bottom: 8px; }
.numbers span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ── Sections ── */
.section { padding-top: clamp(56px, 7vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(30px, 3.2vw, 40px); font-weight: 600; letter-spacing: -0.8px; }
.section-head span { color: var(--muted); font-size: 15px; }

/* ── Work grid: every card opens a project page on this site ── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
.card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card .thumb { aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--frame); }
.card .thumb img, .card .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .thumb img, .card:hover .thumb video { transform: scale(1.02); }
.card .meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.card h3 { font-size: 22px; font-weight: 600; }
.card .tag { font-size: 14px; color: var(--muted); white-space: nowrap; }
.card p { font-size: 15px; }
.card .go { font-size: 15px; font-weight: 600; color: var(--accent); }
.card:hover h3 { color: var(--accent); }
.card .still { display: none; }
@media (prefers-reduced-motion: reduce) {
  .card .thumb video { display: none; }
  .card .still { display: block; }
  .card:hover .thumb img { transform: none; }
}
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.also { margin-top: 36px; padding: 22px 24px; border-radius: 12px; background: var(--surface); color: var(--text); font-size: 16px; }
.also a { color: var(--accent); font-weight: 600; }

/* ── How I work ── */
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 36px 40px; border-radius: 16px; background: var(--surface); }
.how h3 { font-size: 20px; font-weight: 600; color: var(--accent); margin-bottom: 10px; }
.how p { font-size: 16px; }
@media (max-width: 860px) { .how { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; } }

/* ── About ── */
.about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 64px; }
.about h2 { font-size: 34px; font-weight: 600; margin-bottom: 4px; }
.rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rows > div:last-child { border-bottom: 0; }
.rows b { font-weight: 600; color: var(--ink); }
.rows span { font-size: 15px; color: var(--muted); text-align: right; }
.edu { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; font-size: 16px; color: var(--text); }
@media (max-width: 860px) { .about { grid-template-columns: minmax(0, 1fr); } }

/* ── Contact band ── */
.hire { margin: clamp(56px, 7vw, 96px) 0 40px; padding: clamp(28px, 4vw, 48px); border-radius: 16px; background: var(--band); color: #fff;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 32px 56px; align-items: center; }
.hire h2 { font-size: clamp(30px, 3.4vw, 42px); line-height: 1.1; font-weight: 600; letter-spacing: -1px; color: #fff; }
.hire p { color: var(--band-text); }
.hire .btn { border-color: var(--band-line); color: #fff; }
.hire .btn:hover { border-color: #fff; color: #fff; }
.hire .btn.white { background: #fff; border-color: #fff; color: #15161C; }
.hire .btn.primary { background: #3B4FD8; border-color: #3B4FD8; color: #fff; }
.hire .rows > div { border-color: var(--band-line); }
.hire .rows span { color: #9BA0BA; text-align: left; }
.hire .rows b { color: #fff; text-align: right; }
@media (max-width: 860px) { .hire { grid-template-columns: minmax(0, 1fr); } }

.site-footer { padding: 24px 0 48px; color: var(--faint); font-size: 14px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ── Project pages: a short written intro, then the slides ── */
.project-head { padding: clamp(28px, 4vw, 48px) 0 8px; }
.back { display: flex; width: fit-content; gap: 6px; font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 28px; }
.project-head h1 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; font-weight: 700; letter-spacing: -1.5px; max-width: 22ch; margin-top: 10px; }
.project-head .lede { font-size: 19px; max-width: 64ch; margin-top: 18px; }
.project-head .decision { max-width: 64ch; margin-top: 14px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding: 22px 0; margin-top: 28px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts span { display: block; color: var(--text); font-size: 15px; }
.facts .eyebrow { margin-bottom: 4px; }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.project-head .btn-row { margin-top: 24px; }

.slides { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 28px); padding-top: clamp(28px, 4vw, 48px); }
.slides img, .slides video { width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--frame); background: var(--surface); }
.slides figure { margin: 0; }
.slides figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }
.slides .onair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.slides .onair figcaption { grid-column: 1 / -1; margin-top: 0; }
@media (max-width: 760px) { .slides .onair { grid-template-columns: minmax(0, 1fr); } }

.project-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
