/* ---------- Fonts (self-hosted, woff2 only) ---------- */
@font-face {
  font-family: "Roboto Condensed";
  src: url("/fonts/RobotoCondensed-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Switzer";
  src: url("/fonts/Switzer-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #191919; /* matches the edges of the hero image */
  --chalk: #efefed;
  --snow: #f9f9f9;
  --green: #238850;
  --green-hover: #1d7443;

  --font-display: "Roboto Condensed", "Arial Narrow", sans-serif;
  --font-body: "Switzer", ui-sans-serif, system-ui, sans-serif;
  --font-ui: "Geist", ui-sans-serif, system-ui, sans-serif;

  --edge: clamp(20px, 2.78vw, 40px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--chalk); outline-offset: 4px; border-radius: 4px; }

/* ---------- Hero (one full screen) ---------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  padding: clamp(56px, min(9.44vw, 9svh), 136px) clamp(20px, 5.97vw, 86px) clamp(32px, min(4.3vw, 5svh), 62px);
  text-align: center;
  background: var(--ink);
}

.hero__bg, .hero__bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero__bg img { object-fit: cover; object-position: 50% 62%; }

/* Portrait screens: size the image by width so the seat doesn't overfill the
   screen. The image edges are the same colour as the hero, so it blends in. */
@media (max-aspect-ratio: 1/1) {
  .hero__bg img {
    inset: auto;
    left: 50%;
    top: 47%;
    width: 205vw;
    height: auto;
    max-width: none;
    transform: translate(-50%, -50%);
    -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
            mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  }
}
.hero__headline, .hero__bottom { position: relative; z-index: 1; }

/* Soft light that follows the cursor across the cloth (drifts on its own on touch). */
.hero__light {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle 28vmax at var(--lx, 50%) var(--ly, 58%), rgba(239, 239, 237, 0.07), rgba(239, 239, 237, 0) 70%),
    radial-gradient(circle 70vmax at var(--lx, 50%) var(--ly, 58%), rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.32));
}
@media (hover: none), (pointer: coarse) {
  .hero__light { animation: drift 14s ease-in-out infinite alternate; }
}
@property --lx { syntax: "<percentage>"; inherits: true; initial-value: 50%; }
@property --ly { syntax: "<percentage>"; inherits: true; initial-value: 58%; }
@keyframes drift {
  0%   { --lx: 38%; --ly: 54%; }
  50%  { --lx: 58%; --ly: 62%; }
  100% { --lx: 46%; --ly: 56%; }
}

.hero__headline {
  margin: 0;
  max-width: 1032px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: min(11.11vw, 12.5svh, 160px);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--chalk);
  text-wrap: balance;
}
.hero__headline .line { display: block; }

.hero__bottom {
  grid-row: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, min(2.85vw, 3.6svh), 41px);
  width: 100%;
}
.hero__wordmark { width: min(542px, 72vw); height: auto; }
.hero__text {
  margin: 0;
  max-width: 938px;
  font-size: clamp(16px, 1.53vw, 22px);
  line-height: 1.45;
  font-weight: 400;
  text-wrap: pretty;
}
.hero__text strong { font-weight: 700; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--green);
  color: var(--chalk);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.2s var(--ease-out);
}
.button:hover { background: var(--green-hover); }
.button:active { transform: scale(0.97); }

/* ---------- Footer ---------- */
.footer {
  background: var(--green);
  color: var(--snow);
  padding: 48px var(--edge) var(--edge);
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 40px;
}
.footer__copy {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.005em;
}
.footer__links a { text-decoration: none; }
.footer__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__logo { width: 100%; height: auto; margin-top: clamp(96px, 14.2vw, 205px); }

@media (max-width: 640px) {
  .footer__bar { flex-direction: column-reverse; align-items: flex-start; }
  .footer__links { font-size: 16px; gap: 12px 24px; }
}

/* ---------- Intro ---------- */
.curtain { display: none; }

html.intro body { overflow: hidden; }
html.intro .curtain {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: flex-end;
  padding: var(--edge);
  background: var(--green);
  cursor: pointer;
  animation: curtain-out 0.9s var(--ease-inout) 1.05s both;
  will-change: transform;
}
html.intro .curtain__logo {
  width: 100%;
  height: auto;
  animation: logo-in 0.7s var(--ease-out) 0.1s both;
}

html.intro .hero__bg     { animation: bg-in 1.6s var(--ease-out) 1.2s both; }
html.intro .hero__headline .line { animation: rise 0.9s var(--ease-out) both; }
html.intro .hero__headline .line:nth-child(1) { animation-delay: 1.45s; }
html.intro .hero__headline .line:nth-child(2) { animation-delay: 1.55s; }
html.intro .hero__bottom { animation: fade-up 0.8s var(--ease-out) 1.75s both; }

/* Skipped (click, scroll, key): everything finishes quickly. */
html.intro.skip .curtain { animation-duration: 0.45s; animation-delay: 0s; }
html.intro.skip .curtain__logo { animation-duration: 0.01s; animation-delay: 0s; }
html.intro.skip .hero__bg,
html.intro.skip .hero__headline .line,
html.intro.skip .hero__bottom { animation-duration: 0.5s; animation-delay: 0.1s; }

@keyframes logo-in {
  from { clip-path: inset(100% 0 0 0); transform: translateY(12%); }
  to   { clip-path: inset(0 0 0 0);    transform: none; }
}
@keyframes curtain-out {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bg-in {
  from { opacity: 0; transform: scale(1.06); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.25em); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .curtain { display: none !important; }
}

/* ---------- Legal pages ---------- */
.legal {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 112px) var(--edge) clamp(64px, 10vw, 140px);
  font-size: 17px;
  line-height: 1.6;
}
.legal__back {
  display: inline-block;
  margin-bottom: 48px;
  font-family: var(--font-ui);
  font-weight: 500;
  text-decoration: none;
}
.legal__back:hover { text-decoration: underline; text-underline-offset: 4px; }
.legal h1 {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 96px);
  line-height: 0.85;
  letter-spacing: -0.03em;
}
.legal h2 { margin: 40px 0 8px; font-size: 19px; line-height: 1.35; }
.legal p, .legal ul { margin: 0 0 16px; }
.legal ul { padding-left: 1.2em; }
.legal address { font-style: normal; }
