@font-face { font-family: "Clash Grotesk"; src: url("/fonts/clash-grotesk-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Clash Grotesk"; src: url("/fonts/clash-grotesk-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #161c1a;
  --surface: #1f2725;
  --ink: #e3e2da;
  --muted: #a3a9a1;
  --accent: #9fc7b8;
  --accent-ink: #161c1a;
  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 2vw, 3rem);
  --margin: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 "Clash Grotesk", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, p, dl, dd { margin: 0; }
h1, h2 { font-weight: 400; letter-spacing: -0.03em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--step-head); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.skip { position: absolute; left: var(--margin); top: -80px; z-index: 10; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); }
.skip:focus { top: var(--margin); }

.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 0; background: var(--accent); color: var(--accent-ink); font: 500 1rem/1 "Clash Grotesk", system-ui, sans-serif; text-decoration: none; cursor: pointer; transition: background-color 0.2s, transform 0.2s var(--ease); }
.btn:hover { background: var(--ink); }
.btn:active { transform: translateY(2px); }

/* The split: the falls stay put, the facts scroll. */
.split { display: grid; grid-template-columns: 47fr 53fr; }
.frame { position: sticky; top: 0; height: 100svh; padding: var(--margin) 0 var(--margin) var(--margin); }
.frame img { position: absolute; top: var(--margin); left: var(--margin); width: calc(100% - var(--margin)); height: calc(100% - 2 * var(--margin)); object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 0.9s var(--ease), transform 1.8s var(--ease); }
.frame img.on { opacity: 1; transform: none; }
.column { position: relative; min-width: 0; }

.nav { position: absolute; inset: 0 0 auto 0; z-index: 3; padding: var(--margin) var(--margin) 0 48px; }
.nav nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px 28px; font-size: 1rem; }
.nav a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; transition: color 0.2s; }
.nav a:not(.btn):hover { color: var(--accent); }

.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; padding: 120px var(--margin) 40px 48px; }
.hero h1 { position: relative; z-index: 2; align-self: flex-end; margin-bottom: 40px; font-size: 10.4vw; letter-spacing: -0.04em; line-height: 0.95; white-space: nowrap; transform-origin: right bottom; }
.hero__lead { max-width: 26ch; font-size: var(--step-lead); line-height: 1.3; }

.block { display: flex; flex-direction: column; justify-content: center; min-height: 100svh; padding: 100px var(--margin) 100px clamp(48px, 6vw, 112px); }
.block > * { max-width: 620px; }
.block h2 { margin-bottom: 36px; }
.block .lead { margin-bottom: 28px; font-size: var(--step-lead); line-height: 1.3; }
.block p + p:not(.copy) { margin-top: 1em; }
.block .lead + p { margin-top: 0; }
.inline { display: none; }

.work { display: grid; gap: 26px; }
.work dt { margin-bottom: 4px; font-weight: 500; }

.rows { width: 100%; padding: 12px 28px; background: var(--surface); }
.rows div { display: flex; justify-content: space-between; gap: 32px; padding: 14px 0; }
.rows dt { flex: none; color: var(--muted); }
.rows dd { text-align: right; overflow-wrap: anywhere; text-wrap: balance; }
.copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 44px; margin-top: 24px; }

.contact { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; gap: 72px; min-height: 86svh; padding: 72px var(--margin) 28px; background: var(--ink); color: var(--bg); }
.contact :focus-visible { outline-color: var(--bg); }
.contact__top { display: grid; grid-template-columns: 47fr 53fr; align-items: end; }
.contact__top p { max-width: 30ch; padding-left: clamp(28px, 6vw, 92px); font-size: var(--step-lead); line-height: 1.3; }
.contact__email { font-size: 7.9vw; line-height: 1; letter-spacing: -0.04em; text-decoration: none; transition: color 0.25s, transform 0.4s var(--ease); }
.contact__email:hover { color: #2f6655; transform: translateX(6px); }
.foot { display: grid; grid-template-columns: 47fr 53fr; align-items: end; }
.foot address { font-style: normal; }
.foot__legal { padding-left: clamp(28px, 6vw, 92px); }
.foot__legal a { display: inline-block; padding: 4px 0; }
.foot__legal a + a { margin-left: 12px; }
.foot__legal br ~ a { margin-left: 0; padding: 0; }

/* Privacy, terms and 404 */
.doc { max-width: 720px; margin: 0 auto; padding: 56px var(--margin) 120px; }
.doc h1 { margin: 72px 0 16px; font-size: var(--step-head); }
.doc h2 { margin: 44px 0 12px; font-size: var(--step-lead); letter-spacing: -0.01em; line-height: 1.2; }
.doc p + p { margin-top: 1em; }
.doc ul { margin: 0 0 1em; padding-left: 1.2em; }
.doc .home { font-size: var(--step-lead); text-decoration: none; }
.doc .date { margin-bottom: 36px; color: var(--muted); }
.doc .btn { margin-top: 28px; }

/* Entrances: only with script, so nothing stays hidden without it. */
.js .rise { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rise.in { opacity: 1; transform: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero h1 { animation: settle linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    @keyframes settle { to { scale: 0.94; } }
  }
}

@media (max-width: 800px) {
  .split { display: block; }
  .frame { position: relative; height: 56svh; padding: 0; }
  .frame img { inset: 12px; width: calc(100% - 24px); height: calc(100% - 12px); }
  .frame img:not(:first-child) { display: none; }
  .frame img:first-child { opacity: 1; transform: none; }
  .column { position: static; }
  .nav { padding: 20px 28px 0; }
  .nav nav { justify-content: flex-end; }
  .nav a:not(.btn) { display: none; }
  .hero { min-height: 0; padding: 0 var(--margin) 40px; }
  .hero h1 { align-self: flex-start; margin: -3vw 0 24px; font-size: 21vw; white-space: normal; line-height: 0.88; }
  .block { min-height: 0; padding: 72px var(--margin); }
  .block h2 { margin-bottom: 28px; }
  .block > .inline { display: block; width: 100%; max-width: none; margin-top: 48px; aspect-ratio: 4 / 5; object-fit: cover; }
  .rows { padding: 10px 20px; }
  .rows div { flex-direction: column; gap: 2px; }
  .rows dd { text-align: left; }
  .contact { min-height: 80svh; gap: 56px; }
  .contact__top, .foot { grid-template-columns: 1fr; gap: 24px; }
  .contact__top p, .foot__legal { padding-left: 0; }
  .contact__email { font-size: 9.4vw; }
}

@media (min-width: 520px) and (max-width: 800px) {
  .block > * { max-width: none; }
  .block > .inline { aspect-ratio: 3 / 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
}
