@font-face {
  font-family: "Satoshi";
  src: url("/assets/fonts/satoshi/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --ground: #f3f3f0;
  --paper: #ffffff;
  --ink: #111214;
  --muted: #5d6066;
  --brand: #003d74;
  --line: rgba(17, 18, 20, 0.1);
  --sans: "Satoshi", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --edge: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { background: var(--ground); }
/* big screens: the whole page grows in steps instead of floating small in the middle */
@media (min-width: 1680px) { html { zoom: 1.15; } }
@media (min-width: 1920px) { html { zoom: 1.3; } }
@media (min-width: 2240px) { html { zoom: 1.5; } }
@media (min-width: 2560px) { html { zoom: 1.75; } }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--muted); }

/* nav */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--edge);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand-mark { width: auto; height: 30px; aspect-ratio: 268 / 294; fill: var(--brand); }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-login { padding-left: 28px; border-left: 1px solid var(--line); }
.nav.on-dark .nav-login { border-left-color: rgba(255, 255, 255, 0.18); }
/* over the dark sections the nav turns light */
.nav { transition: color 0.3s, background 0.3s, box-shadow 0.3s; }
.nav.scrolled { background: var(--ground); box-shadow: 0 1px 0 var(--line); }
.nav.scrolled.on-dark { background: #141518; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08); }
.nav-links a, .brand-mark { transition: color 0.3s, fill 0.3s; }
.nav.on-dark { color: #f2f2ee; }
.nav.on-dark .nav-links { color: #a7aab0; }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav.on-dark .brand-mark { fill: #8fb3e0; }
.nav.on-dark .btn { background: #f2f2ee; color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--brand); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14px; }

/* hero: the promise, then the opening film (film.css) where one garment goes through four studios */
.hero { padding: 104px var(--edge) 80px; }
.hero-copy { display: grid; justify-items: center; text-align: center; margin-bottom: clamp(28px, 3vw, 40px); }
.hero .eyebrow { margin: 0; color: var(--brand); }
.hero h1 {
  margin: 18px 0 0;
  font-size: clamp(36px, 4.2vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  max-width: 22ch;
}
.hero .lede { margin: 16px 0 0; max-width: 60ch; font-size: 18px; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.hero-link { font-weight: 600; font-size: 15px; color: var(--muted); transition: color 0.2s; }
.hero-link:hover { color: var(--ink); }

/* entrance, once on load */
.hero-copy > * { transition: opacity 0.8s, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.hero-copy > :nth-child(2) { transition-delay: 0.06s; }
.hero-copy > :nth-child(3) { transition-delay: 0.12s; }
.hero-copy > :nth-child(4) { transition-delay: 0.18s; }
.is-loading .hero-copy > * { opacity: 0; transform: translateY(16px); }
.film { transition: opacity 0.9s 0.25s, transform 0.9s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1); }
.is-loading .film { opacity: 0; transform: translateY(24px); }

/* phone */
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .hero { padding-top: 100px; }
  .hero-actions { flex-direction: column; gap: 14px; }
}

/* reduced motion: no entrance */
@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .film { transition: none; }
}
