:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #d2d2d7;
  --accent: #8a5a2b;
  --nav-bg: rgba(255, 255, 255, 0.72);
  --plank: #1d1d1f;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 13vw, 168px);
  --wide: 1080px;
  --narrow: 760px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --bg-alt: #161617;
    --ink: #f5f5f7;
    --muted: #a1a1a6;
    --line: #38383b;
    --accent: #d9ab72;
    --nav-bg: rgba(0, 0, 0, 0.68);
    --plank: #f5f5f7;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 52px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
}
.skip:focus { top: 8px; }

/* Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--wide);
  height: 52px;
  margin: 0 auto;
  padding: 0 var(--gutter);
  font-size: 14px;
}
.brand {
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
}
.nav-links .lang {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

/* Hero */
.hero {
  --floor: clamp(150px, 30vh, 320px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: calc(100svh - 52px);
  padding: clamp(64px, 12vh, 140px) var(--gutter) calc(var(--floor) + 24px);
  overflow: hidden;
  text-align: center;
}
.hero-copy { position: relative; z-index: 1; max-width: 880px; }
.eyebrow {
  color: var(--accent);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 {
  margin-top: 12px;
  font-size: clamp(44px, 8.2vw, 92px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  max-width: 620px;
  margin: 26px auto 0;
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.38;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 26px;
  margin-top: 32px;
}
.button {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
.button:hover { opacity: 0.86; transform: scale(1.02); }
.text-link {
  color: var(--accent);
  font-weight: 500;
  text-decoration: none;
}
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link span { display: inline-block; transition: transform 0.25s var(--ease); }
.text-link:hover span { transform: translateX(3px); }

/* The hero's plank floor, receding to a horizon */
.floor {
  position: absolute;
  inset: auto 0 0;
  height: var(--floor);
  color: var(--plank);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 55%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0, rgba(0, 0, 0, 0.55) 55%, #000 100%);
}
.floor svg {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.24;
}
@media (prefers-color-scheme: dark) { .floor svg { opacity: 0.32; } }

/* Layout */
.section { padding: var(--section) var(--gutter); }
.section.alt { background: var(--bg-alt); }
.narrow { max-width: var(--narrow); margin: 0 auto; }
.label {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
}
h2 {
  font-size: clamp(32px, 4.4vw, 50px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

/* Portrait and partners */
.about {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 7vw, 88px);
  max-width: var(--wide);
  margin: 0 auto;
}
.portrait {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--bg-alt);
}
.ways { margin-top: 32px; border-top: 1px solid var(--line); }
.ways li { padding: 18px 0; border-bottom: 1px solid var(--line); }
.ways h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.ways p { margin-top: 3px; color: var(--muted); }
@media (max-width: 820px) {
  .about { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .portrait { max-width: 300px; }
}

/* Track record */
.proof { max-width: var(--wide); margin: 0 auto; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 32px;
  margin: 18px 0 0;
}
.stat dt {
  font-size: clamp(40px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.stat dd {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.4;
  text-wrap: pretty;
}
.names { margin-top: clamp(40px, 6vw, 64px); border-top: 1px solid var(--line); }
.names li {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 2px 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}
.names span { color: var(--muted); font-weight: 400; }
@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat dt { font-size: clamp(26px, 8.5vw, 52px); }
}
@media (max-width: 640px) { .names li { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .stats { column-gap: 20px; } }

/* Contact and footer */
.contact { text-align: center; }
.contact .button { margin-top: 28px; }
.contact .now {
  max-width: 520px;
  margin: 32px auto 0;
  color: var(--muted);
  font-size: 15px;
  text-wrap: balance;
}
.footer {
  padding: 22px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 13px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  max-width: var(--wide);
  margin: 0 auto;
}

/* Scroll reveal, applied only when JavaScript can undo it */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.js .reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .button, .text-link span { transition: none; }
}
