:root {
  --bg: #fff;
  --fg: #0b0b0b;
  --muted: #666;
  --line: #d2d2d2;
  --line-strong: #111;
  --max: 1180px;
  --gutter: clamp(18px, 3vw, 34px);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: Arial, Helvetica, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--fg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-style: solid; }
::selection { background: #000; color: #fff; }
strong { font-weight: 700; }
:focus-visible { outline: 2px solid #000; outline-offset: 3px; }

.shell {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 9px 12px;
  background: #000;
  color: #fff;
}
.skip:focus { left: 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--line-strong); background: #fff; }
.nav { min-height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { white-space: nowrap; font-size: 13px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand-dot { display: inline-block; margin-inline: .15em; font-size: .8em; }
.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.nav-links a,
.hero-links a,
.footer-links a { display: inline-flex; min-height: 24px; align-items: center; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }
.lang { border: 1px solid #000; padding: 2px 5px; }

/* Shared small type */
.kicker,
.eyebrow,
.tagline,
.work-id,
.section-no,
.status,
.footer-meta,
.step-id {
  font-family: var(--mono);
  font-size: 9px;
  line-height: 1.4;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.tagline { margin-top: 6px; color: #555; }

/* Hero */
.hero { border-bottom: 1px solid var(--line-strong); }
.hero-inner { padding-block: 0; }
.hero .shell { overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(250px, .58fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: end;
}
.hero-copy { min-width: 0; padding-block: 62px 48px; }
.hero h1 {
  max-width: 720px;
  margin: 16px 0 24px;
  font-size: clamp(38px, 4.3vw, 58px);
  font-weight: 700;
  line-height: 1.01;
  letter-spacing: -.045em;
}
.hero-bottom { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.hero .lead { max-width: 640px; margin: 0; font-size: 18px; line-height: 1.42; letter-spacing: -.015em; }
.hero-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 16px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.hero-links a { border-bottom: 1px solid #000; padding-bottom: 2px; text-decoration: none; }
.hero-portrait {
  width: calc(100% + var(--gutter));
  min-height: 340px;
  margin: 0 calc(var(--gutter) * -1) 0 0;
  align-self: end;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  overflow: visible;
  background: transparent;
}
.hero-portrait picture { display: flex; width: 100%; height: 100%; align-items: flex-end; justify-content: flex-end; }
.hero-portrait img {
  display: block;
  width: auto;
  height: 340px;
  max-width: 340px;
  object-fit: contain;
  object-position: 100% 100%;
  background: transparent;
  filter: grayscale(100%) contrast(1.02) brightness(1.01);
}

/* Sections */
.section { border-bottom: 1px solid var(--line-strong); padding: 64px 0; }
.section-top { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; margin-bottom: 34px; align-items: start; }
.section-top h2 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
}
.section-no { padding-top: 5px; color: #333; }

/* Work */
.work-list { border-top: 1px solid var(--line-strong); }
.flagship { padding: 0; }
.flagship-head {
  display: grid;
  grid-template-columns: 110px minmax(220px, .65fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-strong);
}
.flagship-head h3 { margin: 0; font-size: clamp(30px, 3.5vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.flagship-deck { max-width: 600px; margin: 0; font-size: 18px; line-height: 1.35; letter-spacing: -.015em; }
.flagship-row {
  display: grid;
  grid-template-columns: 110px 170px minmax(0, 1fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.flagship-row h4 { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.25; }
.flagship-row p { max-width: 720px; margin: 0; font-size: 15px; line-height: 1.55; }
.flagship-row p + p { margin-top: 10px; }
.privacy-row { margin: 0; padding-inline: 0; border-bottom: 1px solid var(--line); background: transparent; color: inherit; }
.privacy-row .work-id,
.privacy-row strong { color: inherit; }
.flagship-quote {
  max-width: 720px !important;
  padding-left: 16px;
  border-left: 2px solid #000;
  font-size: 19px !important;
  font-weight: 700;
  line-height: 1.35 !important;
  letter-spacing: -.02em;
}
.flagship-foot { display: grid; grid-template-columns: 110px 1fr; gap: 22px; padding: 19px 0 28px; border-bottom: 1px solid var(--line-strong); }
.flagship-foot p { max-width: 720px; margin: 0; font-size: 15px; }
.case-row {
  display: grid;
  grid-template-columns: 110px minmax(210px, .55fr) minmax(0, 1.25fr);
  gap: 22px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.case-row h3 { margin: 0 0 7px; font-size: 21px; font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
.case-copy { display: grid; gap: 8px; max-width: 740px; }
.case-copy p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.use { color: #555; }
.source-strip {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0 0;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .07em;
  text-transform: uppercase;
}

/* Method */
.method { border-top: 1px solid var(--line-strong); }
.step { display: grid; grid-template-columns: 110px 210px minmax(0, 1fr); gap: 22px; min-height: 0; padding: 18px 0; border-bottom: 1px solid var(--line); }
.step-id { margin: 0; color: #333; }
.step h3 { margin: 0; font-size: 17px; line-height: 1.2; }
.step p { max-width: 720px; margin: 0; font-size: 14.5px; }
.method-note { max-width: 720px; margin: 18px 0 0 304px; font-size: 15px; font-weight: 700; line-height: 1.45; }

/* Essay sections */
.split { display: grid; grid-template-columns: 130px minmax(260px, .7fr) minmax(0, 1.15fr); gap: 24px; align-items: start; }
.split > div:first-child { grid-column: 1 / 3; display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; align-items: start; }
.split .eyebrow { padding-top: 5px; color: #333; }
.split h2 { max-width: 620px; margin: 0; font-size: clamp(28px, 3.2vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; }
.prose { grid-column: 3; max-width: 700px; }
.prose p { margin: 0 0 13px; font-size: 15.5px; }
.prose .intro { font-size: 18px; line-height: 1.4; letter-spacing: -.012em; }
.cap-line {
  margin: 18px 0 !important;
  padding: 10px 0;
  border-block: 1px solid var(--line);
  color: #333;
  font-family: var(--mono);
  font-size: 9px !important;
  line-height: 1.6 !important;
  letter-spacing: .075em;
  text-transform: uppercase;
}

/* CSTM */
.cstm-section { padding: 54px 0; border-bottom: 1px solid var(--line-strong); background: #fff; color: #000; }
.cstm-grid { display: grid; grid-template-columns: 130px minmax(220px, .65fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.cstm-name { margin: 0; font-size: 36px; font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.cstm-copy { max-width: 620px; }
.cstm-copy p { margin: 0 0 14px; font-size: 15px; }
.cstm-copy a {
  display: inline-block;
  padding: 0 0 2px;
  border-bottom: 1px solid #000;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
}
.cstm-tag { margin: 14px 0; color: #444; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }

/* Contact */
.contact { padding: 62px 0; border-bottom: 1px solid var(--line-strong); }
.contact-grid { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; }
.contact h2 { max-width: 760px; margin: 0 0 28px; font-size: clamp(30px, 3.7vw, 48px); font-weight: 700; line-height: 1.04; letter-spacing: -.04em; }
.contact-copy { max-width: 700px; font-size: 15.5px; }
.contact-copy p { margin: 0 0 13px; }
.email {
  display: inline-block;
  margin-top: 14px;
  border-bottom: 1px solid #000;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.025em;
  text-decoration: none;
}
.email:hover { background: #000; color: #fff; }

/* Footer */
footer { padding: 16px 0 26px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: flex-start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.footer-links a { border-bottom: 1px solid #000; text-decoration: none; }

/* Legal / privacy */
.legal-page { padding-top: 72px; }
.legal-layout { display: grid; grid-template-columns: minmax(220px, .55fr) minmax(0, 1.2fr); gap: clamp(48px, 8vw, 120px); align-items: start; }
.legal-title { position: sticky; top: 32px; }
.legal-title h1 { max-width: 480px; margin: 12px 0 14px; font-size: clamp(30px, 3.5vw, 46px); line-height: 1.02; letter-spacing: -.04em; }
.legal-title > p { max-width: 360px; margin: 0; color: var(--muted); font-size: 14px; }
.legal-copy { max-width: 760px; }
.legal-copy > p { margin: 0 0 14px; font-size: 15px; line-height: 1.6; }
.legal-copy h2 { margin: 34px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 18px; line-height: 1.25; letter-spacing: -.015em; }
.legal-copy ul { margin: 0 0 16px 19px; padding: 0; }
.legal-copy li { margin: 0 0 6px; font-size: 15px; line-height: 1.55; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(230px, .56fr); gap: 18px; }
  .hero-portrait { min-height: 315px; }
  .hero-portrait img { height: 315px; max-width: 315px; }
}

@media (max-width: 900px) {
  .flagship-head { grid-template-columns: 90px minmax(0, .8fr) minmax(0, 1fr); }
  .flagship-row,
  .case-row,
  .step { grid-template-columns: 90px 165px minmax(0, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split > div:first-child { grid-column: auto; grid-template-columns: 110px 1fr; }
  .prose { grid-column: auto; padding-left: 134px; }
  .method-note { margin-left: 299px; }
  .cstm-grid { grid-template-columns: 110px 220px 1fr; }
}

@media (max-width: 760px) {
  .legal-page { padding-top: 42px; }
  .legal-layout { display: block; }
  .legal-title { position: static; margin-bottom: 38px; }
  .legal-title h1 { font-size: 34px; }
  .legal-copy h2 { margin-top: 28px; }
}

@media (max-width: 680px) {
  body { font-size: 15px; }
  .nav { display: block; padding-block: 13px; }
  .brand { display: block; margin-bottom: 10px; }
  .nav-links { justify-content: flex-start; gap: 8px 12px; font-size: 10px; }
  .kicker,
  .eyebrow,
  .tagline,
  .work-id,
  .section-no,
  .status,
  .footer-meta,
  .step-id { font-size: 10px; }

  .hero-grid { display: flex; flex-direction: column; gap: 0; }
  .hero-copy { padding-block: 42px 18px; }
  .hero h1 { margin: 12px 0 18px; font-size: 36px; line-height: 1.04; }
  .hero .lead { font-size: 16.5px; line-height: 1.44; }
  .hero-portrait { width: 100%; height: 200px; min-height: 0; margin-right: 0; justify-content: center; overflow: hidden; border-top: 0; }
  .hero-portrait img { height: 200px; max-width: 240px; object-position: 50% 100%; }

  .section { padding: 44px 0; }
  .section-top { display: block; margin-bottom: 24px; }
  .section-no { margin-bottom: 10px; }
  .section-top h2 { font-size: 29px; }

  .flagship-head,
  .flagship-row,
  .case-row,
  .step { display: block; }
  .flagship-head { padding: 20px 0; }
  .flagship-head h3 { margin: 8px 0 14px; font-size: 32px; }
  .flagship-deck { font-size: 17px; }
  .flagship-row { padding: 17px 0; }
  .flagship-row h4 { margin: 7px 0 9px; }
  .flagship-quote { padding-left: 12px; font-size: 17px !important; }
  .flagship-foot { display: block; padding: 16px 0 22px; }
  .flagship-foot .work-id { margin-bottom: 8px; }
  .case-row h3,
  .step h3 { margin: 7px 0 9px; }
  .case-copy { margin-top: 12px; }
  .source-strip { display: block; }
  .source-strip a { display: block; margin-top: 8px; }

  .split { display: block; }
  .split > div:first-child { display: block; }
  .split .eyebrow { margin-bottom: 10px; }
  .split h2 { margin-bottom: 20px; font-size: 29px; }
  .prose { padding-left: 0; }
  .prose .intro { font-size: 17px; }
  .method-note { margin: 16px 0 0; }

  .cstm-section { padding: 42px 0; }
  .cstm-grid { display: block; }
  .cstm-name { margin: 10px 0 18px; font-size: 31px; }
  .cstm-copy p { font-size: 15px; }

  .contact { padding: 46px 0; }
  .contact-grid { display: block; }
  .contact-grid > .section-no { margin-bottom: 10px; }
  .contact h2 { margin-bottom: 22px; font-size: 31px; }
  .email { font-size: 21px; overflow-wrap: anywhere; }

  .footer-grid { display: block; }
  .footer-links { margin-top: 14px; }
}

@media (max-width: 390px) {
  .hero-portrait { height: 185px; }
  .hero-portrait img { height: 185px; max-width: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
