/* Tolv — base: tokens, reset, type, nav, menu, hero, buttons, reveals, footer */

:root {
  --velvet: #0C1714;        /* the watch-box lining */
  --velvet-2: #10201A;
  --velvet-3: #172B23;
  --rule: #26392F;
  --silver: #ECE7DB;        /* text on dark */
  --silver-2: #BCC4B6;
  --gilt: #D2AD62;
  --gilt-2: #EACF92;
  --salmon: #E8A58B;
  --ruby: #CC2D44;
  --blued: #86A0F4;
  --paper: #E8E3D7;         /* German silver */
  --paper-2: #DCD6C8;
  --ink: #141A16;
  --ink-2: #4A5249;
  --gilt-ink: #765619;      /* gilt that survives on paper */
  --night: #0D1530;
  --night-2: #16204A;
  --blush: #F2DFD4;
  --blush-ink: #2B1D17;
  --copper: #9A4526;

  --f-display: 'Brygada 1918', Georgia, 'Times New Roman', serif;
  --f-cap: 'Castoro Titling', 'Brygada 1918', Georgia, serif;
  --f-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'Fragment Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --gut: clamp(20px, 4.4vw, 64px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--velvet); color: var(--silver);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--gilt); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gilt); color: var(--velvet); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gilt); color: var(--velvet); padding: 10px 16px; border-radius: 100px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
section[id] { scroll-margin-top: 72px; }

/* ---------- type ---------- */
.h2 {
  font: 600 clamp(2.3rem, 5.2vw, 4.4rem)/1.02 var(--f-display);
  letter-spacing: -0.018em; text-wrap: balance;
}
.h2 em { font-weight: 500; color: var(--gilt); }
.lead { font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.65; color: var(--silver-2); max-width: 56ch; text-wrap: pretty; }
.sec-num { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.sec-num b { font: 400 1.05rem/1 var(--f-cap); color: var(--gilt); letter-spacing: .08em; min-width: 2.2em; height: 2.2em; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 100px; padding: 0 .55em; }
.sec-num span { font: 500 .74rem/1 var(--f-body); letter-spacing: .24em; text-transform: uppercase; color: var(--silver-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .7em;
  padding: 1.02em 1.6em; border-radius: 100px; border: 1px solid currentColor;
  font: 600 .78rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; text-decoration: none;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn svg { width: 17px; height: 17px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.98); }
.btn-light { color: var(--silver); background: rgba(12, 23, 20, .28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-light:hover { background: var(--silver); color: var(--velvet); border-color: var(--silver); }
.btn-light:hover svg { transform: translateY(3px); }
.btn-gilt { background: var(--gilt); border-color: var(--gilt); color: var(--velvet); }
.btn-gilt:hover { background: var(--gilt-2); border-color: var(--gilt-2); }
.btn-ink { color: var(--blush-ink); }
.btn-ink:hover { background: var(--blush-ink); color: var(--blush); }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; transition: border-color .3s, background .3s, color .3s; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--gilt); color: var(--gilt); }
.icon-btn[aria-pressed="true"] { background: var(--gilt); border-color: var(--gilt); color: var(--velvet); }
.text-btn { display: inline-flex; align-items: center; gap: 6px; font: 600 .74rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--gilt); padding: 6px 0; border-bottom: 1px solid transparent; }
.text-btn svg { width: 15px; height: 15px; }
.text-btn:hover { border-bottom-color: currentColor; }

/* ---------- nav (hidden on the hero) ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gut);
  background: rgba(12, 23, 20, .82); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgba(210, 173, 98, .14);
  opacity: 0; transform: translateY(-14px); pointer-events: none;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.nav.show { opacity: 1; transform: none; pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex: none; }
.brand .mark { width: 28px; height: 28px; color: var(--gilt); }
.brand span { font: 400 1.18rem/1 var(--f-cap); letter-spacing: .34em; margin-right: -.34em; }
.nav-links { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.nav-links a { font: 500 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--silver-2); padding: 8px 0; position: relative; transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gilt); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav-links a:hover, .nav-links a.on { color: var(--silver); }
.nav-links a.on::after, .nav-links a:hover::after { transform: scaleX(1); }
.nav-links a.nav-cta { color: var(--velvet); background: var(--gilt); padding: 11px 18px; border-radius: 100px; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover { background: var(--gilt-2); color: var(--velvet); }
.burger { display: none; width: 44px; height: 44px; place-items: center; color: var(--silver); margin-right: -8px; }
.burger svg { width: 26px; height: 26px; }

/* ---------- full-screen menu ---------- */
.menu { position: fixed; inset: 0; z-index: 100; height: 100dvh; background: var(--velvet); display: flex; flex-direction: column; padding: 0 var(--gut) max(28px, env(safe-area-inset-bottom)); overflow-y: auto; }
.menu::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 60% at 100% 0%, rgba(210, 173, 98, .09), transparent 60%); }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--nav-h); flex: none; position: relative; }
.menu-close { width: 44px; height: 44px; display: grid; place-items: center; margin-right: -8px; }
.menu-close svg { width: 26px; height: 26px; }
.menu-links { margin: auto 0; padding: 24px 0; position: relative; }
.menu-links li { opacity: 0; transform: translateY(14px); }
.menu.open .menu-links li { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--i) * 45ms + 60ms); }
.menu-links a { display: flex; align-items: baseline; gap: 18px; padding: 11px 0; text-decoration: none; font: 600 clamp(1.9rem, 8vw, 2.6rem)/1.1 var(--f-display); border-bottom: 1px solid var(--rule); }
.menu-links a span { font: 400 .8rem/1 var(--f-cap); color: var(--gilt); min-width: 3.2em; letter-spacing: .08em; }
.menu-foot { font: 500 .72rem/1.4 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--silver-2); position: relative; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; background: #1a1612; isolation: isolate; }
.hero-media { position: absolute; inset: -6% 0 0; will-change: transform; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; transform: scale(1.06); animation: heroIn 2.6s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.14); filter: brightness(.55); } to { transform: scale(1.06); filter: none; } }
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 14, 12, .84) 0%, rgba(8, 14, 12, .5) 34%, rgba(8, 14, 12, 0) 62%),
    linear-gradient(0deg, rgba(8, 14, 12, .7) 0%, rgba(8, 14, 12, 0) 38%),
    radial-gradient(120% 90% at 70% 45%, transparent 55%, rgba(8, 14, 12, .45) 100%);
}
.hero-copy { position: absolute; left: var(--gut); right: var(--gut); bottom: clamp(56px, 11vh, 120px); max-width: 1000px; }
.hero-eyebrow { display: flex; align-items: center; gap: 12px; font: 400 .82rem/1 var(--f-cap); letter-spacing: .3em; color: var(--gilt-2); margin-bottom: 26px; opacity: 0; animation: fadeUp 1s .5s var(--ease) both; }
.hero-eyebrow .mark { width: 24px; height: 24px; color: var(--gilt); }
.hero-title { font: 600 clamp(2.85rem, 8.2vw, 7.4rem)/.95 var(--f-display); letter-spacing: -.028em; color: var(--silver); margin-bottom: 38px; }
.hero-title em { font-weight: 500; color: var(--salmon); letter-spacing: -.02em; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; white-space: nowrap; }
.hero-title .ln > span { display: inline-block; transform: translateY(105%); animation: rise 1.25s var(--ease) both; }
.hero-title .ln:nth-child(1) > span { animation-delay: .35s; }
.hero-title .ln:nth-child(2) > span { animation-delay: .5s; }
.hero-cta { opacity: 0; animation: fadeUp 1s .95s var(--ease) both; }
.hero.shown .hero-title .ln > span, .hero.shown .hero-eyebrow, .hero.shown .hero-cta { animation: none; opacity: 1; transform: none; }
@keyframes rise { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- reveals (progressive: visible without JS) ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
/* iris: the photo opens like an aperture. The clip lives on the CHILD img; the parent is observed. */
.js .iris img { clip-path: circle(0% at 50% 50%); transition: clip-path 1.5s var(--ease) .1s, transform 1.8s var(--ease); transform: scale(1.12); }
.js .iris.in img { clip-path: circle(75% at 50% 50%); transform: none; }

/* ---------- footer ---------- */
.foot { background: #08110E; border-top: 1px solid var(--rule); padding: 72px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px 60px; }
.foot-brand .mark { width: 40px; height: 40px; color: var(--gilt); margin-bottom: 18px; }
.foot-name { font: 400 1.6rem/1 var(--f-cap); letter-spacing: .38em; margin-bottom: 10px; }
.foot-line { color: var(--silver-2); font-size: .92rem; }
.foot-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 10px 48px; align-content: start; }
.foot-nav a { text-decoration: none; color: var(--silver-2); font-size: .95rem; }
.foot-nav a:hover { color: var(--gilt); }
.foot-note { grid-column: 1 / -1; font-size: .84rem; line-height: 1.7; color: var(--silver-2); max-width: 92ch; padding-top: 28px; border-top: 1px solid var(--rule); }
.foot-meta { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; font: 500 .72rem/1 var(--f-body); letter-spacing: .18em; text-transform: uppercase; color: var(--silver-2); }
.foot-meta a { text-decoration: none; }
.foot-meta a:hover { color: var(--gilt); }

/* ---------- mobile bar (hidden until past the hero) ---------- */
.mbar { display: none; }

@media (max-width: 1080px) {
  .nav-links { gap: 16px; }
  .nav-links a { letter-spacing: .1em; font-size: .72rem; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .mbar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 60;
    height: 54px; border-radius: 100px; background: var(--gilt); color: var(--velvet); text-decoration: none;
    font: 600 .8rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase;
    box-shadow: 0 14px 40px -12px rgba(0, 0, 0, .6);
    transform: translateY(160%); transition: transform .5s var(--ease);
  }
  .mbar svg { width: 17px; height: 17px; }
  .mbar.show { transform: none; }
}
@media (max-width: 700px) {
  :root { --nav-h: 62px; }
  body { font-size: 16px; }
  .hero { height: calc(100svh + 44px); }
  .hero-img { object-position: 71% 50%; }
  .hero-shade {
    background:
      linear-gradient(0deg, rgba(8, 14, 12, .9) 0%, rgba(8, 14, 12, .55) 38%, rgba(8, 14, 12, .1) 70%),
      linear-gradient(90deg, rgba(8, 14, 12, .35), transparent 70%);
  }
  .hero-copy { bottom: calc(52px + 44px); }
  .hero-eyebrow { font-size: .68rem; letter-spacing: .22em; margin-bottom: 20px; }
  .hero-title { margin-bottom: 30px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-meta { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .iris img { opacity: 1; transform: none; clip-path: none; }
  .hero-title .ln > span, .hero-eyebrow, .hero-cta { opacity: 1; transform: none; }
  .hero-img { transform: none; }
}
