/* 9VII — site styles */
:root {
  --bg: #F4F0E8;
  --ink: #191919;
  --ink-2: #33322F;
  --body: #262624;
  --muted: #5E5C57;
  --muted-dark: #A9A79F;
  --rule: #C9C8C1;
  --accent: #E44B32;
  --error: #A8321C;
  --field: #FBF9F4;
  --placeholder: #E9E4D9;
  --max: 1360px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --display: 'Space Grotesk', system-ui, sans-serif;
  --text: 'Inter', system-ui, sans-serif;
  --sec-y: clamp(80px, 13vh, 144px);
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img { display: block; max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--bg); }
h1, h2, h3, p, ul, ol, blockquote, figure { margin: 0; }
p { text-wrap: pretty; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--ink); color: var(--bg);
}
.skip-link:focus { top: 12px; color: var(--bg); }

/* ---------- Layout ---------- */
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--sec-y); padding-bottom: var(--sec-y); }
.rule-top { border-top: 1px solid var(--rule); }
.rule-y { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.dark { background: var(--ink); color: var(--bg); }
.dark a { color: inherit; }
.stack { display: flex; flex-direction: column; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px clamp(40px, 6vw, 96px); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 48px; }
.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: 13px; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.dark .eyebrow { color: var(--muted-dark); }

.display {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(52px, 10vw, 160px); line-height: .9; letter-spacing: -.05em;
}
.display > span:not(.dot) { display: block; }
.display--xl { font-size: clamp(54px, 10.5vw, 168px); }
.display--md { font-size: clamp(48px, 8vw, 128px); line-height: .92; }
.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.035em; text-wrap: balance;
}
.h2--xl { font-size: clamp(40px, 6.4vw, 96px); line-height: .96; letter-spacing: -.045em; }
.h3 { font-family: var(--display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.statement {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(26px, 3vw, 40px); line-height: 1.18; letter-spacing: -.025em;
}
.dot { color: var(--accent); }
.lede { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--ink-2); }
.body { font-size: 17px; line-height: 1.6; color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); }
.num { font-family: var(--display); font-size: 14px; font-weight: 500; color: var(--accent); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  font: inherit; font-size: 15px; font-weight: 500;
  border: 1px solid var(--ink); cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--bg); }
.dark .btn--solid { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.dark .btn--solid:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.dark .btn--line { border-color: var(--bg); color: var(--bg); }
.dark .btn--line:hover { background: var(--bg); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500;
  padding-bottom: 4px; border-bottom: 1px solid currentColor;
}
.arrow { display: inline-block; transition: transform .25s var(--ease); }
a:hover .arrow, button:hover .arrow { transform: translateX(4px); }
.back:hover .arrow { transform: translateX(-4px); }

/* ---------- Media ---------- */
.media { position: relative; overflow: hidden; background: var(--placeholder); }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media--4x3 { aspect-ratio: 4 / 3; }
.media--16x10 { aspect-ratio: 16 / 10; }
.media--21x9 { width: 100%; aspect-ratio: 21 / 9; min-height: 260px; }
.zoom img { transition: transform .8s var(--ease); }
a:hover .zoom img, .zoom:hover img { transform: scale(1.03); }

.interlude { position: relative; height: clamp(360px, 72vh, 760px); overflow: hidden; background: var(--placeholder); }
.interlude [data-parallax] { position: absolute; left: 0; right: 0; top: -8%; height: 116%; }
.interlude img { width: 100%; height: 100%; object-fit: cover; }

.caption { margin-top: 12px; font-size: 13px; color: var(--muted); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--rule); }
.site-header__bar { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header__logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); }
.nav a:not(.btn) {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--muted); transition: color .2s;
}
.nav a:not(.btn)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: transparent; transition: background .2s; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::before { background: var(--accent); }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; gap: 10px; }
.nav .btn[aria-current="page"] { background: var(--ink); color: var(--bg); }

.menu-btn {
  display: none; appearance: none; background: transparent;
  border: 1px solid var(--ink); color: var(--ink);
  min-height: 44px; padding: 0 16px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.mobile-menu {
  display: none;
  height: calc(100vh - 73px); height: calc(100dvh - 73px); overflow: auto;
  border-top: 1px solid var(--rule);
  padding: 24px var(--gutter) 40px;
  flex-direction: column; justify-content: space-between; gap: 40px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--rule);
  font-family: var(--display); font-size: 36px; font-weight: 600; letter-spacing: -.03em;
}
.mobile-menu nav a::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.mobile-menu nav a[aria-current="page"]::after { background: var(--accent); }
.mobile-menu p { font-family: var(--display); font-size: 15px; color: var(--muted); }

@media (max-width: 859px) {
  .site-header .nav { display: none; }
  .menu-btn { display: flex; align-items: center; }
  .site-header.is-open .mobile-menu { display: flex; }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--rule); }
.site-footer__inner { padding-top: clamp(64px, 10vh, 112px); padding-bottom: 32px; display: flex; flex-direction: column; gap: clamp(56px, 9vh, 96px); }
.site-footer__top { display: flex; flex-wrap: wrap; gap: 48px 64px; }
.site-footer__tag { flex: 2 1 420px; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4.4vw, 60px); line-height: 1; letter-spacing: -.04em; }
.site-footer nav { flex: 1 1 160px; display: flex; flex-direction: column; gap: 12px; }
.site-footer nav .eyebrow { margin-bottom: 6px; }
.site-footer nav .eyebrow::before { display: none; }
.site-footer nav a {
  align-self: flex-start; font-size: 15px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .3s;
}
.site-footer nav a:hover { background-size: 100% 1px; }
.site-footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--rule); }
.site-footer__bottom img { height: 28px; width: auto; }

/* ---------- Components ---------- */
.notice {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 20px; border: 1px dashed var(--ink);
  font-size: 14px; line-height: 1.5;
}
.notice::before { content: ""; flex: none; margin-top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.notice strong { font-weight: 600; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--ink); font-size: 13px; font-weight: 500; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.step { display: flex; flex-direction: column; gap: 20px; }
.bar { height: 2px; background: var(--ink); }

.principles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); border-top: 1px solid var(--rule); }
.principles > div { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 32px 0; border-bottom: 1px solid var(--rule); }
.principles h3 { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; }

.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); border-top: 1px solid var(--ink); border-left: 1px solid var(--rule); }
.cells > div { display: flex; flex-direction: column; gap: 56px; padding: 28px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.cells h3 { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; margin-bottom: 12px; }
.cells p { font-size: 15px; line-height: 1.6; color: var(--muted); }

.card-cta {
  display: flex; flex-direction: column; gap: 28px; padding: 32px;
  border: 1px solid var(--ink); transition: background .3s, color .3s;
}
.card-cta:hover { background: var(--ink); color: var(--bg); }
.card-cta__meta { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; font-weight: 500; letter-spacing: .04em; }
.card-cta__meta span:first-child { display: flex; align-items: center; gap: 8px; }
.card-cta__meta span:first-child::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.card-cta__text { font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.25; letter-spacing: -.02em; }

.wordmark-row { padding-top: clamp(40px, 7vh, 80px); padding-bottom: clamp(40px, 7vh, 80px); }
.wordmark-row img { width: min(100%, 680px); height: auto; }

.hero-dot {
  position: absolute; left: clamp(-28px, -2vw, -12px); bottom: clamp(-28px, -2vw, -12px);
  width: clamp(56px, 7vw, 104px); height: clamp(56px, 7vw, 104px);
  border-radius: 50%; background: var(--accent); pointer-events: none;
}

/* Approach articles */
.principle { padding-bottom: clamp(72px, 12vh, 128px); }
.principle__row { display: flex; flex-wrap: wrap; gap: 32px clamp(40px, 6vw, 96px); padding-top: clamp(32px, 5vh, 56px); }
.principle__num { flex: 1 1 300px; font-family: var(--display); font-weight: 600; font-size: clamp(120px, 18vw, 280px); line-height: .78; letter-spacing: -.06em; }
.principle__body { flex: 1.3 1 420px; display: flex; flex-direction: column; gap: 24px; }
.principle__body h2 { font-family: var(--display); font-weight: 600; font-size: clamp(32px, 3.8vw, 52px); line-height: 1; letter-spacing: -.035em; }
.principle__body p { max-width: 560px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.65; color: var(--ink-2); }
.ticks { list-style: none; padding: 0; margin-top: 16px; max-width: 560px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }
.ticks li { padding: 14px 0; border-bottom: 1px solid var(--rule); }

/* Numbered standard list */
.standard { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.standard li { display: flex; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.standard .num { flex: 0 0 40px; padding-top: 5px; }
.standard li > span:last-child { font-family: var(--display); font-size: clamp(20px, 2vw, 26px); font-weight: 500; letter-spacing: -.02em; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px; }

/* Notes */
.note-row {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 32px;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
  transition: padding .3s var(--ease);
}
.note-row:hover { padding-left: 12px; color: var(--ink); }
.note-row__cat { flex: 0 0 140px; font-size: 13px; font-weight: 500; color: var(--muted); }
.note-row__title { flex: 1 1 360px; font-family: var(--display); font-weight: 500; font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.025em; line-height: 1.15; }
.note-row__status { display: flex; align-items: center; gap: 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.note-row__status .arrow { color: var(--ink); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; font-weight: 500; color: var(--muted); }
.tag { padding: 3px 8px; border: 1px solid var(--ink); color: var(--ink); }

.related { display: flex; flex-direction: column; gap: 40px; padding: 28px; border: 1px solid var(--rule); transition: border-color .25s; }
.related:hover { border-color: var(--ink); color: var(--ink); }

/* Article */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress div { height: 100%; background: var(--accent); transform-origin: left center; transform: scaleX(0); }
.toc { position: sticky; top: 104px; display: flex; flex-direction: column; gap: 4px; }
.toc a { padding: 8px 0; font-size: 15px; color: var(--ink-2); }
.toc .eyebrow { padding-bottom: 12px; border-bottom: 1px solid var(--ink); margin-bottom: 8px; }
.toc .eyebrow::before { display: none; }
.prose { flex: 1 1 520px; max-width: 680px; font-size: 18px; line-height: 1.75; color: var(--body); }
.prose h2 { margin: 48px 0 20px; scroll-margin-top: 96px; font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -.025em; color: var(--ink); }
.prose h2:first-child { margin-top: 0; }
.prose p { margin-bottom: 20px; }
.prose blockquote { margin: 40px 0; padding-left: 28px; border-left: 2px solid var(--accent); font-family: var(--display); font-weight: 500; font-size: clamp(24px, 2.4vw, 30px); line-height: 1.25; letter-spacing: -.02em; color: var(--ink); }

/* Legal */
.legal { flex: 1.6 1 520px; max-width: 720px; font-size: 17px; line-height: 1.7; color: var(--body); }
.legal h2 { margin: 0 0 12px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; color: var(--ink); }
.legal p { margin-bottom: 40px; }

/* Form */
.form { display: flex; flex-direction: column; gap: 28px; padding-top: 8px; }
.form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 28px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; }
.field__opt { font-weight: 400; color: var(--muted); }
.field input::placeholder { color: #A9A79F; }
.field input, .field select, .field textarea {
  width: 100%; height: 52px; padding: 0 16px;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--field); border: 1px solid var(--rule); border-radius: 0;
  transition: border-color .2s;
}
.field textarea { height: auto; min-height: 160px; padding: 14px 16px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { font-size: 13px; color: var(--error); }
.field__error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .7; cursor: wait; }
.sent { display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 1px solid var(--ink); }
.sent::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.sent button { align-self: flex-start; appearance: none; background: transparent; border: 0; border-bottom: 1px solid var(--ink); padding: 0 0 4px; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; }

/* ---------- Reveal (only when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.js [data-reveal="line"] { opacity: 1; transform: scaleX(0); transform-origin: left center; }
.js [data-reveal="mask"] { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.2s cubic-bezier(.7, 0, .2, 1); }
.js [data-reveal].is-in { opacity: 1; transform: none; clip-path: inset(0 0 0 0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; clip-path: none; }
}
