:root {
  --black: #0a0a0a;
  --white: #f5f5f5;
  --gray: #8a8a8a;
  --line: #262626;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);       /* smooth out */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1); /* bouncy */
  --swipe: cubic-bezier(0.77, 0, 0.18, 1);     /* in-out for wipes */
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: "Outfit", system-ui, sans-serif;
  font-weight: 200;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* ---------- intro curtain: white swipes up ---------- */
.curtain {
  position: fixed; inset: 0; z-index: 100; background: var(--white);
  pointer-events: none;
  animation: curtain 1.1s var(--swipe) 0.15s forwards;
}
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }
.curtain { clip-path: inset(0 0 0 0); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 20;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px clamp(24px, 5vw, 64px);
  mix-blend-mode: difference;
  opacity: 0; animation: fadeIn 0.8s var(--ease) 2.4s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
.nav-logo { height: 18px; width: auto; display: block; color: #fff; transition: transform 0.6s var(--spring); }
.nav a:hover .nav-logo { transform: scale(1.08); }

/* pill with swipe fill */
.pill {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-block; padding: 10px 22px; border: 1px solid #fff; border-radius: 999px;
  font-size: 13px; font-weight: 300; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
  transition: color 0.5s var(--swipe), transform 0.5s var(--spring);
}
.pill::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: translateY(101%); border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transition: transform 0.6s var(--swipe), border-radius 0.6s var(--swipe);
}
.pill:hover { color: #000; transform: scale(1.04); }
.pill:hover::before { transform: translateY(0); border-radius: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 120px 24px; text-align: center;
}
.hero h1 { margin: 0; }
.letters { width: min(78vw, 680px); height: auto; display: block; overflow: visible; }
.letters path {
  fill: var(--white); fill-opacity: 0;
  stroke: var(--white); stroke-width: 0.7;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation:
    draw 1.3s var(--ease) forwards,
    fill 0.7s var(--ease) forwards;
  animation-delay: calc(0.75s + var(--i) * 0.065s), calc(1.75s + var(--i) * 0.05s);
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fill { to { fill-opacity: 1; stroke-opacity: 0; } }

/* masked line reveal */
.mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; }
.mask > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--spring); transition-delay: var(--d, 0s); }
.mask.in > span, .tagline .mask > span { transform: none; }
.tagline .mask > span { transform: translateY(110%); animation: rise 1.1s var(--spring) 2.5s forwards; }
@keyframes rise { to { transform: none; } }

.tagline {
  margin: 44px 0 0;
  font-size: clamp(13px, 1.4vw, 17px); font-weight: 300;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--gray);
}

.scroll-line {
  position: absolute; bottom: 0; left: 50%; width: 1px; height: 72px; overflow: hidden;
  background: var(--line); opacity: 0; animation: fadeIn 1s var(--ease) 3s forwards;
}
.scroll-line span { position: absolute; inset: 0; background: var(--white); animation: drip 2.2s var(--swipe) infinite; }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- content blocks ---------- */
.block {
  max-width: 1120px; margin: 0 auto;
  padding: clamp(90px, 13vw, 170px) clamp(24px, 5vw, 64px);
}
.rule { height: 1px; background: var(--line); margin-bottom: clamp(60px, 8vw, 110px); transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--swipe); }
.rule.in { transform: none; }

.statement {
  margin: 0; max-width: 900px;
  font-size: clamp(26px, 3.7vw, 48px); line-height: 1.28; letter-spacing: -0.01em;
}
.statement .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.statement .w > span { display: inline-block; transform: translateY(105%) rotate(4deg); transform-origin: left bottom; transition: transform 1s var(--spring); transition-delay: calc(var(--wi) * 22ms); }
.statement.in .w > span { transform: none; }

.label { margin: 0 0 28px; font-size: 12px; font-weight: 300; letter-spacing: 0.28em; text-transform: uppercase; color: var(--gray); }

/* ---------- contact ---------- */
.mail {
  position: relative; display: inline-block; overflow: hidden; isolation: isolate;
  font-size: clamp(28px, 6.0vw, 84px); letter-spacing: -0.02em; line-height: 1.15;
  padding: 0.05em 0.18em; margin-left: -0.18em;
  opacity: 0; transform: translateY(30px); transition: opacity 1s var(--ease), transform 1.1s var(--spring);
}
.mail.in { opacity: 1; transform: none; }
.mail::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--white);
  transform: scaleX(0); transform-origin: right; transition: transform 0.65s var(--swipe);
}
.mail span { transition: color 0.65s var(--swipe); }
.mail:hover::before { transform: none; transform-origin: left; }
.mail:hover span { color: var(--black); }

.footer {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 30px clamp(24px, 5vw, 64px); border-top: 1px solid var(--line);
  font-size: 13px; font-weight: 300; color: #666; letter-spacing: 0.04em;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
}
