:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --surface: #ffffff;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --fg: #09090b;
  --fg-2: #3f3f46;
  --muted: #71717a;
  --pill-bg: #f2f4f7;
  --pill-fg: #344054;
  --btn-primary-bg: #09090b;
  --btn-primary-fg: #ffffff;
  --btn-secondary-bg: #ffffff;
  --btn-secondary-fg: #344054;
  --btn-secondary-border: #d0d5dd;
  --cta-bg: #09090b;
  --cta-border: transparent;
  --fade: #fafafa;
  --green: #17b26a;
  --radius-card: 20px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #09090b;
  --bg-subtle: #111113;
  --surface: #18181b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --fg: #fafafa;
  --fg-2: #d4d4d8;
  --muted: #a1a1aa;
  --pill-bg: #27272a;
  --pill-fg: #e4e4e7;
  --btn-primary-bg: #fafafa;
  --btn-primary-fg: #09090b;
  --btn-secondary-bg: #09090b;
  --btn-secondary-fg: #e4e4e7;
  --btn-secondary-border: #3f3f46;
  --cta-bg: #111113;
  --cta-border: #27272a;
  --fade: #111113;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }

.container { width: 100%; max-width: 1264px; margin: 0 auto; padding: 0 24px; }
/* white intro screen that fades away slowly once the page has loaded */
.loader { position: fixed; inset: 0; z-index: 1000; background: #ffffff; transform: translateY(0); pointer-events: none; transition: transform 1.1s cubic-bezier(0.76, 0, 0.24, 1); animation: loader-failsafe 0.01s linear 6s forwards; }
.loader.is-done { transform: translateY(-100%); }
@keyframes loader-failsafe { to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .loader { transition: opacity 0.3s ease; } .loader.is-done { transform: none; opacity: 0; } }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--fg); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 6px; }

/* type */
.overline { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.h1 { font-size: clamp(32px, 4.4vw, 48px); line-height: 1.17; font-weight: 600; letter-spacing: -0.025em; }
.h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }
.h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.22; font-weight: 600; letter-spacing: -0.02em; }
.h5 { font-size: 18px; line-height: 1.4; font-weight: 600; letter-spacing: -0.005em; }
.lead { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 640px; margin-top: 16px; }
.muted { color: var(--muted); font-size: 14px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.num { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-size: 32px; line-height: 1; color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; flex: none; }
.dot--amber { background: #f79009; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; white-space: nowrap; transition: background-color 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.1s ease; }
.btn:active { transform: translateY(1px); }
.btn--md { font-size: 14px; padding: 10px 16px; }
.btn--lg { font-size: 16px; padding: 10px 18px; min-height: 44px; }
.btn--xl { font-size: 16px; padding: 12px 20px; min-height: 48px; }
.btn--primary { background: var(--btn-primary-bg); color: var(--btn-primary-fg); border-color: var(--btn-primary-bg); }
.btn--primary:hover { opacity: 0.88; }
.btn--secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-fg); border-color: var(--btn-secondary-border); box-shadow: var(--shadow-xs); }
.btn--secondary:hover { border-color: var(--fg); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }
.btn[disabled]:hover { border-color: var(--btn-secondary-border); }
.btn--light { background: #ffffff; color: #09090b; }
.btn--light:hover { opacity: 0.9; }
.btn--ghost { background: transparent; color: #fafafa; border-color: #3f3f46; }
.btn--ghost:hover { border-color: #a1a1aa; }

/* nav */
#smooth-content { padding-top: 65px; }
html.has-smoother { scroll-behavior: auto; }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; text-decoration: none; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { font-size: 15px; font-weight: 500; color: var(--fg-2); text-decoration: none; }
.nav__links a:hover { color: var(--fg); }
.nav__actions { display: flex; align-items: center; gap: 12px; }

.theme { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--pill-bg); border: 1px solid var(--border); }
:root:not([data-theme="dark"]) .theme { background: #f4f4f5; }
.theme__btn { width: 32px; height: 28px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme__btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme__btn[aria-pressed="true"] { background: var(--surface); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
:root[data-theme="dark"] .theme__btn[aria-pressed="true"] { background: #27272a; }

/* hero */
.hero { padding: 64px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.hero__title { font-size: clamp(40px, 4.6vw, 64px); line-height: 1.2; font-weight: 600; letter-spacing: -0.035em; margin: 24px 0; }
.hero__lead { font-size: 20px; line-height: 30px; color: var(--fg-2); max-width: 886px; margin-bottom: 12px; }

/* screens scroller */
.screens { background: var(--bg-subtle); padding: 96px 0; }
.screens__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 32px; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 60s) linear infinite; will-change: transform; }
.shot { width: min(560px, 80vw); margin-right: 24px; flex: none; }
.shot__media { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; }
.shot img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.shot__cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 4px 0; font-weight: 500; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .marquee { overflow-x: auto; } }

/* selected work */
.work { padding: 112px 0; }
.section-head { margin-bottom: 64px; max-width: 720px; }
.section-head--row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; max-width: none; }
.case { display: grid; grid-template-columns: 704fr 448fr; gap: 64px; align-items: center; margin-bottom: 64px; }
.case:last-child { margin-bottom: 0; }
.case__media { display: block; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 16 / 10; }
.case__media img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s ease; }
a.case__media:hover img { transform: scale(1.02); }
.case__body { display: flex; flex-direction: column; gap: 24px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li, .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; padding: 2px 10px; border-radius: 999px; background: var(--pill-bg); color: var(--pill-fg); }
.tags .tag--soon { background: #fffaeb; color: #b54708; }
:root[data-theme="dark"] .tags .tag--soon { background: #2e1f05; color: #fdb022; }
.case__desc { font-size: 18px; line-height: 28px; color: var(--muted); }
.stats { display: flex; gap: 24px; padding-top: 24px; border-top: 1px solid var(--border); }
.stats div { flex: 1; }
.stats dt { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.stats dd { font-size: 14px; color: var(--muted); margin-top: 4px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions--center { justify-content: center; }

/* process */
.process { background: var(--bg-subtle); padding: 112px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.step__head { display: flex; justify-content: space-between; align-items: center; }
.pill { font-size: 12px; padding: 2px 8px; }
.steps p { font-size: 15px; line-height: 22px; color: var(--muted); }

/* about */
.about { padding: 112px 0; }
.about__grid { display: grid; grid-template-columns: 493fr 643fr; gap: 80px; align-items: start; }
.about__photo { width: 100%; height: auto; border-radius: 24px; position: sticky; top: 112px; }
html.has-smoother .about__photo { position: relative; top: 0; }
.about__story { display: flex; flex-direction: column; gap: 32px; }
.about__story .overline { margin-bottom: -16px; }
.accent { color: var(--muted); }
.bio { display: flex; flex-direction: column; gap: 16px; font-size: 18px; line-height: 28px; color: var(--fg-2); }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; border-top: 1px solid var(--border); }
.facts div { padding: 16px 0; border-bottom: 1px solid var(--border); }
.facts dt { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: 16px; font-weight: 500; margin-top: 4px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: -16px; }
.principles li { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--bg-subtle); border: 1px solid var(--border); }
.principles .num { font-size: 24px; }
.principles strong { font-size: 15px; line-height: 22px; }
.principles p { font-size: 14px; line-height: 20px; color: var(--muted); }

/* cta */
.cta { background: var(--cta-bg); color: #fafafa; padding: 144px 0 112px; border-top: 1px solid var(--cta-border); border-bottom: 1px solid var(--cta-border); position: relative; overflow: hidden; }
:root[data-theme="dark"] .cta::before { content: ""; position: absolute; inset: -40% 10% auto; height: 80%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.06), transparent); pointer-events: none; }
.cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 32px; position: relative; }
.pill--glass { background: #18181b; color: #d4d4d8; border: 1px solid #27272a; padding: 6px 14px; font-size: 14px; }
:root[data-theme="dark"] .pill--glass { background: #1f1f23; }
.cta__title { font-size: clamp(48px, 6vw, 80px); line-height: 1.05; font-weight: 600; letter-spacing: -0.035em; }
.cta__title em { font-family: "Instrument Serif", Georgia, serif; font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: #a1a1aa; font-size: 1.15em; }
.cta__lead { font-size: 20px; line-height: 30px; color: #a1a1aa; max-width: 560px; }

/* footer */
.footer { background: #09090b; color: #a1a1aa; padding: 64px 0 40px; border-top: 1px solid #27272a; }
.footer__links { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__links nav, .footer__social { display: flex; gap: 32px; }
.footer a { text-decoration: none; font-size: 15px; }
.footer__social a { color: #fafafa; }
.footer a:hover { color: #fafafa; text-decoration: underline; text-underline-offset: 3px; }
.footer__art { width: 100%; height: auto; border-radius: 8px; margin: 48px 0; }
.footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 14px; }
.footer__name { font-size: 24px; font-weight: 600; color: #fafafa; letter-spacing: -0.02em; }

/* responsive */
@media (max-width: 960px) {
  .case, .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__photo { position: static; max-width: 420px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .principles { grid-template-columns: 1fr; }
  .section-head--row, .screens__head { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 640px) {
  .nav__links { display: none; }
  .nav__actions .btn { padding: 8px 12px; }
  .hero { padding: 48px 0; } .work, .process, .about { padding: 72px 0; }
  .screens { padding: 72px 0; }
  .cta { padding: 96px 0 72px; }
  .steps, .facts { grid-template-columns: 1fr; }
  
}
