/* Self-hosted Latin subsets (SIL Open Font License), so no request leaves this site. */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-tight-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050607;
  --ink: #f2f0ea;
  --muted: #8e8d87;
  --line: rgba(242, 240, 234, 0.09);
  /* One ocean ramp, shared by the headline, the stack and the logo's water. */
  --foam: #b4ecdf;
  --aqua: #5fcac3;
  --sea: #2f9fae;
  --deep: #23708f;
  --accent: var(--aqua);
  --sans: 'Inter Tight', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; }

html { background: var(--bg); color-scheme: dark; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Atmosphere: a drifting point field, a green glow and fine grain. */
.field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.glow {
  position: fixed;
  inset: -25vh -15vw auto auto;
  width: 95vw;
  height: 120vh;
  pointer-events: none;
  background:
    radial-gradient(36% 32% at 66% 40%, rgba(95, 202, 195, 0.2), transparent 70%),
    radial-gradient(28% 28% at 80% 60%, rgba(35, 112, 143, 0.22), transparent 70%),
    radial-gradient(22% 22% at 56% 22%, rgba(180, 236, 223, 0.08), transparent 70%);
  filter: blur(24px);
  z-index: 0;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  z-index: 1;
}

.top, main, .bottom { position: relative; z-index: 2; max-width: 1240px; margin: 0 auto; padding: 0 32px; }

.top { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.02em; }
.wordmark svg { width: 26px; height: 29px; }
.top nav { display: flex; gap: 30px; font-size: 15px; color: var(--muted); }
.top nav a { transition: color 0.2s ease; }
.top nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 24px;
  min-height: calc(100vh - 88px);
  padding: 20px 0 100px;
}

h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(48px, 6.6vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  animation: rise 1.2s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--foam), var(--aqua) 40%, var(--sea) 72%, #3c8fb5);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin-top: 30px;
  max-width: 28em;
  color: var(--muted);
  font-size: 19px;
  animation: rise 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  margin-top: 40px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(242, 240, 234, 0.16);
  background: rgba(242, 240, 234, 0.03);
  backdrop-filter: blur(8px);
  font-weight: 600;
  font-size: 15px;
  transition: border-color 0.2s ease, background 0.2s ease;
  animation: rise 1.2s 0.3s cubic-bezier(0.2, 0.7, 0.1, 1) both;
}
.button:hover { border-color: rgba(95, 202, 195, 0.5); background: rgba(95, 202, 195, 0.07); }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* The stack: four isometric layers that breathe apart and back together. */
.stack { position: relative; height: 560px; perspective: 1600px; animation: rise 1.6s 0.2s cubic-bezier(0.2, 0.7, 0.1, 1) both; }

.plate {
  position: absolute;
  left: 50%;
  top: 56%;
  width: 320px;
  height: 320px;
  margin: -160px 0 0 -160px;
  border-radius: 36px;
  transform: rotateX(58deg) rotateZ(-42deg) translateZ(var(--z));
  border: 1px solid rgba(242, 240, 234, 0.14);
  background: linear-gradient(135deg, rgba(242, 240, 234, 0.06), rgba(242, 240, 234, 0.015));
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(6px);
  animation: breathe 7s ease-in-out infinite;
}

.plate span { position: absolute; z-index: 1; left: 30px; bottom: 26px; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; }

.p4 { --z: 0px; --gap: 0px; animation-delay: -0.6s; opacity: 0.6; }
.p4 span { color: rgba(242, 240, 234, 0.55); }
.p3 {
  --z: 58px; --gap: 12px; animation-delay: -0.4s; opacity: 0.85;
  border-color: rgba(47, 159, 174, 0.38);
  background: linear-gradient(135deg, rgba(47, 159, 174, 0.16), rgba(35, 112, 143, 0.04));
}
.p3 span { color: rgba(242, 240, 234, 0.7); }
.p2 {
  --z: 116px; --gap: 24px; animation-delay: -0.2s;
  border-color: rgba(120, 196, 226, 0.45);
  background: linear-gradient(135deg, rgba(120, 196, 226, 0.22), rgba(60, 143, 181, 0.05));
}
.p2 span { color: rgba(242, 240, 234, 0.85); }
.p1 {
  --z: 174px; --gap: 36px;
  border-color: rgba(180, 236, 223, 0.8);
  background:
    radial-gradient(90% 90% at 0% 0%, rgba(214, 248, 238, 0.7), transparent 55%),
    linear-gradient(135deg, #8fe0d2 0%, #5fcac3 30%, #2f9fae 62%, #23708f 100%);
  box-shadow: 0 50px 120px -20px rgba(64, 176, 188, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  overflow: hidden;
}
.p1 span { color: #04222a; }
/* A slow light sweep across the top layer. */
.p1::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.32) 50%, transparent 62%);
  background-size: 260% 100%;
  animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen {
  0% { background-position: 130% 0; }
  55%, 100% { background-position: -130% 0; }
}

@keyframes breathe {
  0%, 100% { transform: rotateX(58deg) rotateZ(-42deg) translateZ(var(--z)); }
  50% { transform: rotateX(58deg) rotateZ(-42deg) translateZ(calc(var(--z) + var(--gap))); }
}

/* Approach */
.label { font-size: 13px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }

.approach { padding: 80px 0 120px; border-top: 1px solid var(--line); }

.statement {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  max-width: 22ch;
  color: rgba(242, 240, 234, 0.9);
}
.statement span { color: var(--muted); }

/* Products */
.products { padding: 40px 0 120px; }
.row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: baseline;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row .name { font-family: var(--display); font-weight: 500; font-size: 36px; line-height: 1; letter-spacing: -0.035em; }
.row .kind { color: var(--muted); }
.row .go { font-weight: 600; font-size: 15px; color: var(--aqua); }
.row .go.soon { color: var(--muted); font-weight: 500; }
a.row { transition: padding 0.3s ease; }
a.row:hover { padding-left: 12px; }

/* Contact */
.contact { padding: 0 0 120px; }
.contact .label { margin-bottom: 14px; }
.email {
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid rgba(242, 240, 234, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.email:hover { color: var(--aqua); border-color: var(--aqua); }

.bottom { padding-bottom: 40px; color: var(--muted); font-size: 14px; }
.bottom::before { content: ''; display: block; border-top: 1px solid var(--line); margin-bottom: 28px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 8px; }
  .stack { height: 420px; order: -1; margin: 24px 0 -30px; }
  .plate { width: 220px; height: 220px; margin: -110px 0 0 -110px; border-radius: 26px; }
  .plate span { font-size: 17px; left: 22px; bottom: 18px; }
  .row { grid-template-columns: 1fr auto; }
  .row .kind { display: none; }
}

@media (max-width: 560px) {
  .top, main, .bottom { padding: 0 16px; }
  .bottom { padding-bottom: 32px; }
  .top nav { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .plate, h1, .lede, .button, .stack, .p1::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* 404 */
.not-found { min-height: 100vh; display: grid; place-content: center; justify-items: center; text-align: center; }
.not-found h1 { max-width: none; }
