:root {
  --bg: #FFFFFF;
  --fg: #0B0B0B;
  --muted: #6A6A66;
  --line: #E7E7E4;
  --soft: #F2F2F0;
  --inv-line: #555552;
  --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --pad: 80px;
  --gap: 24px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0B0B0B;
  --fg: #F4F4F2;
  --muted: #9C9C98;
  --line: #2A2A2A;
  --soft: #171717;
  --inv-line: #BDBDB8;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background .4s ease, color .4s ease;
  overflow-x: hidden;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; transition: opacity .2s ease; }
a:hover { opacity: .65; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--fg); color: var(--bg); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

.wrap { padding-left: var(--pad); padding-right: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.rail { grid-column: span 3; }
.span-content { grid-column: 4 / span 9; }
.rail-offset { padding-top: 26px; }
.rail-stack { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }

.label { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; }
.link { font-weight: 500; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.h2 { font-weight: 300; font-size: clamp(40px, 5.6vw, 80px); line-height: 1; letter-spacing: -.045em; }
.h2 .serif { font-size: 1.15em; letter-spacing: -.02em; }
.h3 { font-weight: 300; font-size: clamp(34px, 4.2vw, 60px); line-height: 1; letter-spacing: -.04em; }

.section { padding-top: 176px; padding-bottom: 176px; }
.section-tight { padding-bottom: 176px; row-gap: 64px; }

/* header */
.header {
  height: 104px; align-items: center; position: sticky; top: 0; z-index: 20;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: height .3s ease, border-color .3s ease, background .4s ease;
}
.header.is-scrolled { height: 72px; margin-bottom: 32px; border-bottom-color: var(--line); }
main section[id], #top { scroll-margin-top: 72px; }
.logo { grid-column: span 3; font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.nav { grid-column: span 5; display: flex; gap: 36px; font-size: 15px; color: var(--muted); }
.nav a { position: relative; padding: 12px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.nav a:hover { opacity: 1; color: var(--fg); }
.nav a.is-active { color: var(--fg); }
.nav a.is-active::after { transform: scaleX(1); }
.header-tools { grid-column: span 4; display: flex; justify-content: flex-end; align-items: center; gap: 16px; font-size: 14px; }
.status { display: flex; align-items: center; gap: 8px; color: var(--muted); margin-right: 4px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); animation: pulse 2.4s ease-in-out infinite; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; display: grid; place-items: center; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-toggle { display: none; background: var(--fg); color: var(--bg); border: none; }
.mobile-menu { position: fixed; inset: 72px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 24px; z-index: 19; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a { font-weight: 300; font-size: 32px; letter-spacing: -.03em; padding: 12px 0; border-top: 1px solid var(--line); }

/* hero */
.hero { padding-top: 104px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 104px; }
.hero-title { font-weight: 300; font-size: clamp(56px, 10.4vw, 150px); line-height: .96; letter-spacing: -.055em; display: flex; flex-direction: column; }
.hero-title .indent { padding-left: 14.5%; }
.hero-accent { align-self: flex-end; font-size: 1.17em; letter-spacing: -.025em; line-height: 1.02; }
.hero-bottom { align-items: end; }
.hero-meta { grid-column: span 3; display: flex; flex-direction: column; gap: 14px; }
.hero-text { grid-column: 4 / span 4; display: flex; flex-direction: column; gap: 36px; }
.lead { font-size: 20px; line-height: 1.6; }
.cta-row { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.btn-primary { height: 60px; padding: 0 12px 0 30px; background: var(--fg); color: var(--bg); border-radius: 999px; display: inline-flex; align-items: center; gap: 20px; font-weight: 500; font-size: 16px; }
.btn-primary:hover { opacity: .85; }
.btn-dot { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); color: var(--fg); display: grid; place-items: center; transition: transform .3s ease; }
.btn-primary:hover .btn-dot { transform: rotate(45deg); }
.portrait { grid-column: 10 / span 3; display: flex; flex-direction: column; gap: 12px; }
.portrait figcaption { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.portrait figcaption .serif { font-size: 17px; }
.ph { width: 100%; height: 100%; background: var(--soft); display: grid; place-items: center; font-size: 13px; color: var(--muted); text-align: center; padding: 16px; }
.ph-portrait { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center 20%; background: var(--soft); filter: grayscale(1); }

/* marquee */
.marquee { border-top: 1px solid var(--fg); border-bottom: 1px solid var(--fg); overflow: hidden; padding: 26px 0; }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 40s linear infinite; }
.marquee-track span { display: flex; align-items: center; gap: 56px; white-space: nowrap; font-weight: 300; font-size: 44px; letter-spacing: -.03em; line-height: 1.2; }
.marquee-track span::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--fg); }

/* principle & facts */
.section .rail.label, .section-tight > .rail.label { padding-top: 18px; }
.principle { grid-column: 4 / span 8; font-size: clamp(34px, 4.4vw, 64px); line-height: 1.15; letter-spacing: -.01em; }
.facts { grid-column: 4 / span 9; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gap); }
.facts > div { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { font-weight: 300; font-size: clamp(24px, 3.3vw, 48px); line-height: 1.05; letter-spacing: -.04em; }

.list-col { display: flex; flex-direction: column; }
.list-col .label { margin-bottom: 20px; }
.col-a { grid-column: 4 / span 4; }
.col-b { grid-column: 9 / span 4; }
.rows li { padding: 22px 0; border-top: 1px solid var(--line); font-size: 19px; line-height: 1.5; }

/* cases */
.cases { display: flex; flex-direction: column; gap: 96px; }
.cases-head { align-items: end; border-top: 1px solid var(--fg); padding-top: 28px; }
.cases-head .rail { display: flex; flex-direction: column; gap: 10px; }
.cases-head .note { letter-spacing: 0; text-transform: none; font-size: 15px; }
.case { row-gap: 40px; }
.case-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.case-title { display: flex; align-items: flex-end; gap: 40px; }
.case-title > div { display: flex; flex-direction: column; gap: 14px; padding-bottom: 6px; }
.case-num { font-weight: 300; font-size: clamp(110px, 14vw, 200px); line-height: .8; letter-spacing: -.06em; color: var(--bg); -webkit-text-stroke: 2px var(--fg); paint-order: stroke fill; }
.pill { flex-shrink: 0; height: 40px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; display: inline-flex; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pill-link { border-color: var(--fg); color: var(--fg); font-size: 14px; font-weight: 500; }
.case-media { grid-column: 1 / span 8; grid-row: 2; aspect-ratio: 16 / 9; overflow: hidden; align-self: start; }
.case-media { background: var(--soft); }
.case-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.case:hover .case-media img { transform: scale(1.02); }
.case-body { grid-column: 9 / span 4; grid-row: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 100%; }
.case-flip .case-media { grid-column: 5 / span 8; }
.case-flip .case-body { grid-column: 1 / span 4; }
.case-steps { display: flex; flex-direction: column; gap: 28px; }
.case-steps > div, .case-result { display: flex; flex-direction: column; gap: 8px; }
.case-steps .label, .case-result .label { font-size: 12px; }
.case-steps p { font-size: 18px; }
.case-result { border-top: 1px solid var(--fg); padding-top: 20px; }
.case-result p { font-size: 38px; line-height: 1.15; }

/* experience */
.exp { border-bottom: 1px solid var(--line); }
.exp li { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); column-gap: var(--gap); padding: 36px 0; border-top: 1px solid var(--line); align-items: baseline; }
.exp-period { grid-column: span 2; font-size: 15px; color: var(--muted); }
.exp-role { grid-column: span 4; font-weight: 300; font-size: 34px; letter-spacing: -.03em; line-height: 1.1; }
.exp-meta { grid-column: span 3; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.exp-meta b { font-weight: 500; font-size: 16px; }
.hover-shift { transition: padding .35s ease; }
.hover-shift:hover { padding-left: 16px; opacity: 1; }

/* approach */
.approach { background: var(--fg); color: var(--bg); padding: 160px 0; }
.approach .label { color: inherit; opacity: .6; }
.approach-head { align-items: end; margin-bottom: 104px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.steps li { display: flex; flex-direction: column; gap: 28px; }
.step-line { display: flex; align-items: center; gap: 16px; }
.step-line i { width: 13px; height: 13px; border-radius: 50%; border: 1px solid var(--bg); flex-shrink: 0; }
.step-line b { flex-grow: 1; height: 1px; background: var(--inv-line); }
.steps h3 { font-weight: 300; font-size: 44px; letter-spacing: -.035em; line-height: 1; }
.steps p { opacity: .72; max-width: 260px; }
.deliverables { margin-top: 104px; padding-top: 48px; border-top: 1px solid var(--inv-line); }
.deliverables-title { font-size: 34px; line-height: 1.1; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chips li { height: 48px; padding: 0 22px; border: 1px solid var(--inv-line); border-radius: 999px; display: inline-flex; align-items: center; font-size: 16px; }

/* skills */
#skills { row-gap: 72px; padding-bottom: 0; }
.skills-line { font-weight: 300; font-size: clamp(30px, 3.75vw, 54px); line-height: 1.22; letter-spacing: -.035em; }
.skills-line i { font-family: var(--serif); color: var(--muted); }
.tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--gap); }
.tools > div { border-top: 1px solid var(--line); padding: 20px 0 0; display: flex; flex-direction: column; gap: 10px; }
.tools .label { font-size: 12px; }
.tools p { font-size: 18px; }

/* quotes */
.section-tight[aria-labelledby="quotes-label"] { padding-top: 176px; padding-bottom: 0; }
.quote-nav { display: flex; align-items: center; gap: 12px; }
.quote-nav[hidden] { display: none; }
.round-btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: transparent; font-size: 18px; }
.round-btn.strong { border-color: var(--fg); }
.quote { min-height: 300px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.quote p { font-size: clamp(30px, 3.9vw, 56px); line-height: 1.18; transition: opacity .3s ease; }
.quote footer { display: flex; align-items: center; gap: 16px; font-size: 16px; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--soft); flex-shrink: 0; overflow: hidden; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* contacts */
.contacts { padding-top: 200px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 96px; }
.contacts-title { font-weight: 300; font-size: clamp(72px, 13.9vw, 200px); line-height: .9; letter-spacing: -.06em; display: flex; flex-direction: column; }
.contacts-title .serif { align-self: flex-end; font-size: 1.12em; letter-spacing: -.025em; }
.contacts .rail { font-size: 16px; line-height: 1.6; }
.contact-list { display: flex; flex-direction: column; }
.contact-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 30px 0; border-top: 1px solid var(--line); font-weight: 300; font-size: 44px; letter-spacing: -.035em; }
.contact-row.first { border-top-color: var(--fg); }
.contact-row.last { border-bottom: 1px solid var(--line); }
.contact-row .muted { font-size: 18px; letter-spacing: 0; font-weight: 400; }
.copy-btn { height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 15px; letter-spacing: 0; font-weight: 400; }
.footer { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); padding-top: 32px; border-top: 1px solid var(--line); }

@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track, .pulse { animation: none; }
  * { transition: none !important; }
}

/* tablet */
@media (max-width: 1100px) {
  :root { --pad: 40px; }
  .nav { gap: 24px; }
  .status { display: none; }
}

/* mobile */
@media (max-width: 900px) {
  :root { --pad: 20px; --gap: 16px; }
  body { font-size: 16px; }
  .grid { display: flex; flex-direction: column; }
  .grid.hero-bottom, .grid.cases-head, .grid.approach-head, .grid.deliverables { align-items: stretch; }
  .rail, .span-content { grid-column: auto; }
  .rail-offset, .section .rail.label, .section-tight > .rail.label { padding-top: 0; }
  .section { padding-top: 104px; padding-bottom: 104px; gap: 24px; }
  .section-tight { padding-bottom: 104px; gap: 24px; }

  .header, .header.is-scrolled { height: 72px; margin-bottom: 0; flex-direction: row; justify-content: space-between; }
  .nav { display: none; }
  .header-tools { gap: 6px; }
  .menu-toggle { display: grid; }

  .hero { padding-top: 48px; padding-bottom: 64px; gap: 36px; }
  .hero-title .indent { padding-left: 40px; }
  .hero-bottom { gap: 36px; }
  .hero-meta { flex-direction: row; flex-wrap: wrap; gap: 6px 16px; font-size: 11px; order: 3; }
  .hero-meta span:last-child { display: none; }
  .portrait { order: 1; }
  .hero-text { order: 2; gap: 24px; }
  .lead { font-size: 17px; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn-primary { justify-content: space-between; padding-left: 26px; padding-right: 10px; }
  .cta-row .link { height: 56px; border: 1px solid var(--line); border-radius: 999px; display: grid; place-items: center; text-decoration: none; }
  .ph-portrait { aspect-ratio: 4 / 5; }

  .marquee { padding: 16px 0; }
  .marquee-track, .marquee-track span { gap: 28px; }
  .marquee-track span { font-size: 26px; }
  .marquee-track span::after { width: 7px; height: 7px; }

  .facts { grid-template-columns: 1fr; gap: 0; width: 100%; }
  .facts > div { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 14px 0; gap: 16px; }
  .facts dd { font-size: 24px; text-align: right; }

  .rows li { padding: 16px 0; font-size: 17px; }
  .list-col .label { margin-bottom: 12px; }

  .cases { gap: 64px; }
  .cases-head { gap: 16px; padding-top: 20px; }
  .case { gap: 20px; }
  .case-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .case-title { flex-direction: column; align-items: flex-start; gap: 16px; }
  .case-head .pill { align-self: flex-start; }
  .case-media { order: 2; align-self: stretch; width: 100%; }
  .case-body { order: 3; gap: 20px; }
  .case-steps { gap: 20px; }
  .case-steps p { font-size: 16px; }
  .case-result p { font-size: 30px; }

  .exp li { display: flex; flex-direction: column; gap: 8px; padding: 24px 0; }
  .exp-role { font-size: 28px; }
  .hover-shift:hover { padding-left: 0; }

  .approach { padding: 96px 0; }
  .approach-head { margin-bottom: 56px; gap: 16px; }
  .steps { display: flex; flex-direction: column; border-left: 1px solid var(--inv-line); margin-left: 6px; }
  .steps li { position: relative; gap: 8px; padding: 0 0 36px 26px; }
  .step-line { position: absolute; left: -7px; top: 10px; }
  .step-line i { background: var(--fg); }
  .step-line b { display: none; }
  .steps h3 { font-size: 32px; }
  .deliverables { margin-top: 20px; padding-top: 28px; gap: 16px; }
  .deliverables-title { font-size: 28px; }
  .chips { gap: 8px; }
  .chips li { height: 40px; padding: 0 16px; font-size: 14px; }

  #skills { gap: 32px; }
  .tools { grid-template-columns: 1fr; }
  .tools > div { padding: 14px 0; }

  .section-tight[aria-labelledby="quotes-label"] { padding-top: 96px; }
  .section-tight[aria-labelledby="quotes-label"] .rail-stack { display: contents; }
  .quote { order: 2; min-height: 240px; gap: 24px; }
  .quote-nav { order: 3; }

  .contacts { padding-top: 120px; padding-bottom: 32px; gap: 56px; }
  .contacts .grid { gap: 20px; }
  .contact-row { font-size: 30px; padding: 22px 0; flex-wrap: wrap; }
  .copy-btn { font-size: 13px; }
  .footer { font-size: 12px; padding-top: 20px; }
  .hide-sm { display: none; }
}
