/* Vanta — landing page (v2) */
@font-face { font-family: 'Inter Tight'; font-weight: 100 900; font-display: swap; src: url('../vanta/assets/fonts/inter-tight-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-display: swap; src: url('../vanta/assets/fonts/instrument-serif-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-display: swap; src: url('../vanta/assets/fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2'); }

:root {
  --paper: #ebe8e1;
  --paper-deep: #dcd7cc;
  --ink: #0f0f0d;
  --ink-soft: #3b3a35;
  --muted: #6f6c65;
  --accent: #ff4a1c;
  --rule: rgba(15, 15, 13, .16);
  --g: clamp(16px, 2.4vw, 40px);
  --sans: 'Inter Tight', 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h2, h3, .close__line, .hero__lead { text-wrap: balance; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
code { font: .82em var(--mono); background: var(--paper-deep); padding: 1px 5px; border-radius: 3px; white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip { position: absolute; left: var(--g); top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 500 15px/1 var(--sans); white-space: nowrap; transition: background-color .25s, color .25s, border-color .25s; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn--ink:hover { background: var(--accent); color: var(--ink); }
.btn--line { border: 1px solid var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.link { display: inline-block; font-weight: 500; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.link:hover { color: var(--accent); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 32px; height: 64px; padding: 0 var(--g); background: var(--paper); border-bottom: 1px solid transparent; transition: border-color .3s; }
.nav.is-scrolled { border-color: var(--rule); }
.nav__logo { font-weight: 700; font-size: 20px; letter-spacing: -.04em; }
.nav__links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-soft); }
.nav__links a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 6px; }

/* Hero — the wordmark carries the template's own photography */
.hero { padding: 8px var(--g) clamp(48px, 7vw, 104px); }
.word { margin: 0; line-height: .78; font-weight: 800; font-size: calc((100vw - 2 * var(--g)) / 2.53); letter-spacing: -.045em; text-indent: -.03em; }
.word__fill {
  display: block;
  padding-bottom: .02em;
  color: var(--ink);
  background: var(--ink) center 45% / cover no-repeat;
  background-image: var(--fill, url('img/fill-0.jpg'));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .word__fill { -webkit-text-fill-color: currentColor; background: none; }
}
.hero__row { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; align-items: end; gap: 32px; margin-top: clamp(16px, 2vw, 28px); }
.hero__lead { font-family: var(--serif); font-size: clamp(28px, 3.3vw, 52px); line-height: 1.06; letter-spacing: -.01em; max-width: 18em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 var(--g); margin-top: clamp(40px, 6vw, 88px); }
.facts div { padding-top: 14px; border-top: 2px solid var(--ink); }
.facts dt { font-weight: 600; font-size: 15px; }
.facts dd { color: var(--ink-soft); font-size: 15px; margin-top: 4px; max-width: 26ch; }

/* Section heads */
.head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px var(--g); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.head h2, .inside__intro h2 { font-weight: 600; font-size: clamp(40px, 5.4vw, 84px); line-height: .95; letter-spacing: -.045em; }
.head p { color: var(--ink-soft); max-width: 46ch; justify-self: end; }
.head--light p { color: #b9b5ab; }

/* Pages gallery — hierarchy by size, not by badges */
.pages { padding: clamp(72px, 9vw, 140px) var(--g); background: var(--paper-deep); }
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(14px, 1.6vw, 24px); }
.shot { display: block; }
.shot--hero { grid-column: span 2; grid-row: span 2; }
.shot--wide { grid-column: span 2; }
.shot__img { display: block; overflow: hidden; border-radius: 6px; background: var(--ink); box-shadow: 0 1px 0 rgba(15, 15, 13, .2); }
.shot__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; transition: transform .9s var(--ease); }
.shot--hero .shot__img img { aspect-ratio: auto; height: 100%; object-position: left top; }
.shot--hero .shot__img { height: calc(100% - 72px); }
.shot:hover .shot__img img, .shot:focus-visible .shot__img img { transform: scale(1.03); }
.shot__cap { display: block; padding-top: 12px; }
.shot__cap strong { display: block; font-weight: 600; font-size: 18px; letter-spacing: -.02em; }
.shot__cap span { display: block; color: var(--muted); font-size: 14px; line-height: 1.4; margin-top: 2px; }
.shot--hero .shot__cap strong { font-size: 24px; }
.shot:hover .shot__cap strong { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* What's inside — a spec sheet */
.inside { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--g); padding: clamp(72px, 9vw, 140px) var(--g); }
.inside__intro { position: sticky; top: 96px; align-self: start; }
.inside__intro p { color: var(--ink-soft); margin: 20px 0 24px; max-width: 34ch; }
.spec { display: grid; gap: clamp(40px, 5vw, 64px); }
.spec__group h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3vw, 44px); line-height: 1; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.spec dl div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.spec dt { font-weight: 600; }
.spec dd { color: var(--ink-soft); }

/* Phones — the one dark section */
.phones { padding: clamp(72px, 9vw, 140px) var(--g); background: var(--ink); color: var(--paper); }
.phones__row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); align-items: start; }
.phones__row img { width: 100%; border-radius: clamp(14px, 1.6vw, 24px); border: clamp(4px, .5vw, 7px) solid #2a2925; }
.phones__row img:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }

/* Closing */
.close { padding: clamp(80px, 11vw, 170px) var(--g); text-align: center; }
.close__line { font-family: var(--serif); font-size: clamp(40px, 6.4vw, 104px); line-height: 1; letter-spacing: -.015em; max-width: 14em; margin: 0 auto clamp(28px, 3vw, 44px); }
.close .hero__actions { justify-content: center; }

.foot { display: flex; justify-content: space-between; gap: 12px; padding: 22px var(--g); border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }

/* Responsive */
@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shot--hero { grid-row: auto; }
  .shot--hero .shot__img { height: auto; }
  .shot--hero .shot__img img { aspect-ratio: 16 / 10; height: auto; }
  .facts { grid-template-columns: repeat(2, 1fr); gap: 24px var(--g); }
  .inside { grid-template-columns: 1fr; }
  .inside__intro { position: static; }
}
@media (max-width: 760px) {
  .nav__links { display: none; }
  .nav .btn { margin-left: auto; }
  .hero__row { grid-template-columns: 1fr; }
  .head { grid-template-columns: 1fr; }
  .head p { justify-self: start; }
  .gallery { grid-template-columns: 1fr; }
  .shot--hero, .shot--wide { grid-column: auto; }
  .spec dl div { grid-template-columns: 1fr; }
  .phones__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--g) * -1); padding: 0 var(--g) 8px; }
  .phones__row img { flex: 0 0 62%; scroll-snap-align: center; }
  .phones__row img:nth-child(even) { margin-top: 0; }
  .foot { flex-direction: column; }
}
@media (max-width: 420px) {
  .facts dd { font-size: 14px; }
  .hero__actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .shot__img img { transition: none; }
}
