:root {
  --bg: #f6f5f1;
  --bg-alt: #eeece6;
  --surface: #ffffff;
  --border: #dedbd2;
  --text: #16181c;
  --muted: #5d6270;
  --accent: #c95a24;
  --accent-soft: #f6e4d9;
  --contact-bg: #16181c;
  --contact-ink: #f6f5f1;
  --contact-line: rgb(246 245 241 / .3);
  --on-accent: #ffffff;
  --shadow: 0 1px 2px rgb(22 24 28 / .05), 0 10px 30px -18px rgb(22 24 28 / .25);
  --radius: 14px;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216;
    --bg-alt: #141920;
    --surface: #1a2029;
    --border: #2a323d;
    --text: #eceef1;
    --muted: #949bab;
    --accent: #f08a4b;
    --accent-soft: #33221a;
    --contact-bg: #1a2029;
    --contact-ink: #eceef1;
    --contact-line: #3a4452;
    --on-accent: #14100d;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 14px 36px -18px rgb(0 0 0 / .7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--text);
  font: 400 1rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { padding: 0; list-style: none; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}
.top-in { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { font: 600 .95rem var(--mono); text-decoration: none; letter-spacing: -.01em; }
.brand span { color: var(--accent); }
nav { display: flex; align-items: center; gap: 22px; }
.nav-link { font-size: .92rem; color: var(--muted); text-decoration: none; transition: color .15s; }
.nav-link:hover { color: var(--text); }
.lang { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang a {
  font: 600 .72rem var(--mono); letter-spacing: .04em; color: var(--muted); text-decoration: none;
  min-width: 34px; height: 28px; display: grid; place-items: center; border-radius: 999px; transition: color .15s, background .15s;
}
.lang a:hover { color: var(--text); }
.lang a[aria-current] { background: var(--text); color: var(--bg); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 600; font-size: .95rem; text-decoration: none;
  border: 1px solid var(--accent); transition: transform .15s, filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface); filter: none; }
.btn-sm { height: 36px; padding: 0 16px; font-size: .88rem; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }

/* Hero */
.hero { padding: clamp(56px, 10vw, 112px) 0 clamp(48px, 8vw, 88px); }
.hero-in { display: grid; grid-template-columns: 1fr auto; gap: clamp(32px, 6vw, 80px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .8rem var(--mono); color: var(--muted);
  padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
}
h1 {
  margin-top: 22px; max-width: 16ch;
  font-size: clamp(2.3rem, 5.6vw, 4.2rem); line-height: 1.04; letter-spacing: -.035em; font-weight: 700;
  text-wrap: balance;
}
h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 22px; max-width: 54ch; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); }
.cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

.portrait { position: relative; width: 240px; align-self: start; margin-top: 46px; }
.portrait img {
  width: 240px; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
  box-shadow: var(--shadow); background: var(--bg-alt);
}
.portrait figcaption { margin-top: 18px; font-size: .78rem; text-align: center; }

/* Sections */
.section { padding: clamp(64px, 10vw, 112px) 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin-bottom: 40px; }
.kicker { font-size: .78rem; color: var(--accent); font-weight: 600; letter-spacing: .04em; }
h2 { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.12; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.section-head > p:last-child:not(.kicker) { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
h3 { font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }

.grid { display: grid; gap: 16px; }
.areas { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; display: grid; gap: 10px; align-content: start;
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card p { color: var(--muted); font-size: .93rem; }
.tag {
  justify-self: start; font-size: .72rem; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); padding: 3px 8px; border-radius: 6px;
}

.projects { grid-template-columns: repeat(2, 1fr); }
.feature-project {
  display: grid; grid-template-columns: 1fr auto; gap: clamp(24px, 4vw, 48px); align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: clamp(22px, 3.5vw, 36px); box-shadow: var(--shadow); margin-bottom: 16px;
}
.fp-text { display: grid; gap: 10px; align-content: start; }
.fp-text h3 { font-size: 1.6rem; }
.fp-text > p:not(.stack) { color: var(--muted); }
.fp-text .stack { font-size: .8rem; margin-top: 6px; }
.fp-media { display: flex; gap: 14px; align-items: stretch; }
.fp-video, .fp-flyer img {
  display: block; height: 400px; width: auto; border-radius: 12px; background: #0b0d1a;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 14px 30px -16px rgb(0 0 0 / .5);
}
.fp-video { aspect-ratio: 9 / 16; }
.fp-shot {
  display: block; height: 400px; width: auto; aspect-ratio: 300 / 628; border-radius: 12px; background: #242424;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 14px 30px -16px rgb(0 0 0 / .5);
}
.fp-reverse .fp-media { order: -1; }
.fp-wide { grid-template-columns: .8fr 1.2fr; }
.fp-shots { position: relative; padding: 0 0 34px 34px; }
.fp-desk { display: block; width: 100%; height: auto; border-radius: 10px; background: #0b0e13;
  box-shadow: 0 1px 2px rgb(0 0 0 / .2), 0 14px 30px -16px rgb(0 0 0 / .5); }
.fp-phone { position: absolute; left: 0; bottom: 0; width: 30%; height: auto; border-radius: 10px;
  border: 3px solid var(--surface); box-shadow: 0 12px 28px -10px rgb(0 0 0 / .55); background: #0b0e13; }
.fp-note { font-size: .8rem; color: var(--muted); font-style: italic; }
.fp-reverse { grid-template-columns: auto 1fr; }
.fp-flyer img { aspect-ratio: 4 / 5; transition: transform .2s; }
.fp-flyer:hover img { transform: translateY(-2px); }
.project {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: grid; gap: 10px; align-content: start; box-shadow: var(--shadow);
}
.project-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.project h3 { font-size: 1.35rem; }
.project p { color: var(--muted); }
.project .stack { font-size: .8rem; margin-top: 6px; }
.badge {
  font: 600 .72rem var(--mono); color: var(--muted);
  border: 1px dashed var(--border); padding: 3px 10px; border-radius: 999px;
}
.feats { display: grid; gap: 6px; margin-top: 4px; }
.feats li { position: relative; padding-left: 18px; font-size: .92rem; }
.feats li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.project-links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 4px; }
.badge-live { color: #2fa66a; border: 1px solid color-mix(in srgb, #2fa66a 45%, transparent); }
.project-more { background: transparent; border-style: dashed; box-shadow: none; }
.link { font-weight: 600; color: var(--accent); text-decoration: none; margin-top: 4px; }
.link:hover { text-decoration: underline; }

.two-col { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.two-col .section-head { margin-bottom: 0; position: sticky; top: 100px; }
.principles { display: grid; gap: 4px; }
.principles li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 22px 0; border-top: 1px solid var(--border); }
.principles li:last-child { border-bottom: 1px solid var(--border); }
.num { color: var(--accent); font-weight: 700; font-size: .9rem; padding-top: 2px; }
.principles p { color: var(--muted); margin-top: 4px; font-size: .95rem; }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: grid; gap: 4px; padding: 0 0 26px 34px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 1px; top: 5px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg-alt); border: 2px solid var(--muted);
}
.timeline li.current::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl-years { font-size: .76rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.timeline li.current .tl-years { color: var(--accent); }
.timeline h3 { font-size: 1.02rem; }
.tl-org { font-size: .9rem; font-weight: 500; }
.timeline p:not(.tl-org) { color: var(--muted); font-size: .92rem; margin-top: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  font-size: .85rem; padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
}

.contact-in {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--contact-bg); color: var(--contact-ink); border: 1px solid var(--border);
  border-radius: 24px; padding: clamp(32px, 6vw, 64px);
}
.contact-in p:not(.kicker) { margin-top: 10px; opacity: .75; font-size: 1.05rem; }
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.contact-actions { align-items: center; }
.social { display: flex; gap: 8px; }
.social a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px;
  color: var(--muted); border: 1px solid var(--border); transition: color .15s, border-color .15s, transform .15s;
}
.social a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.contact .social a { color: var(--contact-ink); border-color: var(--contact-line); }
.contact .social a:hover { color: var(--accent); border-color: var(--accent); }

.foot { padding: 28px 0 40px; }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: .85rem; color: var(--muted); }
.foot .social a { width: 36px; height: 36px; }
.foot .social svg { width: 16px; height: 16px; }

/* Responsive */
@media (max-width: 960px) {
  .projects { grid-template-columns: 1fr; }
  .feature-project { grid-template-columns: 1fr; }
  .fp-reverse .fp-media { order: 0; }
  .fp-wide { grid-template-columns: 1fr; }
  .fp-media { justify-content: center; }
  .areas { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .two-col .section-head { position: static; }
}
@media (max-width: 720px) {
  .nav-link { display: none; }
  .hero { padding-top: 40px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .project, .card { padding: 22px; }
  .principles li { grid-template-columns: 36px 1fr; padding: 18px 0; }
  .hero-in { grid-template-columns: 1fr; }
  .portrait { order: -1; width: 132px; margin-top: 0; }
  .portrait img { width: 132px; }
  .portrait figcaption { display: none; }
  .projects, .areas { grid-template-columns: 1fr; }
  .fp-media { gap: 10px; }
  .fp-video, .fp-flyer img { height: auto; width: 100%; }
  .fp-video { flex: 9; min-width: 0; }
  .fp-flyer { flex: 12.8; min-width: 0; }
  .fp-shot { height: auto; width: 100%; flex: 1; min-width: 0; }
  .contact-in { border-radius: 18px; }
  .contact-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .contact-actions .social { justify-content: center; }
  .foot-in { flex-direction: column-reverse; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
