/* ============================================================
   Base theme — typography, tokens, header, footer, cursor,
   preloader, grain, utilities.
   ============================================================ */

@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-1.woff2) format("woff2-variations");
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-2.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Archivo Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url(../fonts/archivo-3.woff2) format("woff2-variations");
  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 {
  --ink: #141414;
  --ink-2: #1b1b1b;
  --ink-3: #232323;
  --paper: #fff;
  --accent: #e22356;
  --muted: #ffffff8f;
  --faint: #ffffff73;
  --line: #ffffff1f;
  --font: "Archivo Variable", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: var(--font);
  --gutter: clamp(16px, 4vw, 72px);
  --radius-pill: 999px;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --fs-mega: clamp(3.4rem, 11.2vw, 13.5rem);
  --fs-display: clamp(2.8rem, 8.4vw, 9.5rem);
  --fs-h2: clamp(2.2rem, 5.2vw, 5.4rem);
  --fs-h3: clamp(1.5rem, 2.6vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 1.45vw, 1.35rem);
  --fs-body: 1rem;
  --fs-label: .72rem;
  color-scheme: dark;
}

.theme-light {
  --ink: #fff;
  --ink-2: #f3f3f3;
  --ink-3: #e8e8e8;
  --paper: #141414;
  --muted: #14141499;
  --faint: #14141499;
  --line: #14141424;
  background: var(--ink);
  color: var(--paper);
  color-scheme: light;
}

*, :before, :after { box-sizing: border-box }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100% }
html.lenis, html.lenis body { height: auto }
.lenis.lenis-smooth { scroll-behavior: auto !important }
.lenis.lenis-stopped { overflow: hidden }

body {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--fs-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizelegibility;
  margin: 0;
  font-stretch: 100%;
  line-height: 1.5;
  overflow-x: clip;
}

img, video, iframe { max-width: 100%; display: block }
img, video { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none }
a { color: inherit; text-decoration: none }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: 0 0;
  border: 0;
  padding: 0;
  /* form controls don't inherit these from the UA sheet */
  text-transform: inherit;
  letter-spacing: inherit;
  text-align: inherit;
}
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0 }
ul, ol { padding: 0; list-style: none }
::selection { background: var(--accent); color: var(--paper) }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px }

/* ---------- Type helpers ---------- */
.display {
  letter-spacing: -.045em;
  text-transform: uppercase;
  font-weight: 800;
  font-stretch: 100%;
  line-height: .86;
}
.label {
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  font-stretch: 125%;
}
.mono {
  font-family: var(--font);
  letter-spacing: .16em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  font-size: .66rem;
  font-weight: 500;
  font-stretch: 125%;
}
.accent { color: var(--accent) }
.muted { color: var(--muted) }

.dot {
  color: var(--accent);
  font-family: var(--font);
  letter-spacing: 0;
  flex: none;
  font-size: 3em;
  font-weight: 700;
  line-height: 0;
  display: inline-block;
  transform: translateY(.2em);
}
.dot:before { content: "*" }
.dot--round {
  background: var(--accent);
  border-radius: 50%;
  width: 7px;
  height: 7px;
  transform: none;
}
.dot--round:before { content: none }

/* ---------- Layout ---------- */
.wrap { padding-inline: var(--gutter) }
.section { padding-block: clamp(96px, 16vw, 220px) }
.section-head {
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: clamp(40px, 6vw, 88px);
  display: flex;
}
.section-title {
  font-size: var(--fs-h2);
  letter-spacing: -.04em;
  font-weight: 700;
  line-height: .95;
}
.section-title sup {
  font-family: var(--mono);
  letter-spacing: 0;
  vertical-align: top;
  color: var(--accent);
  margin-left: .2em;
  font-size: .26em;
  font-weight: 400;
  position: relative;
  top: .35em;
}
.sr-only {
  clip: rect(0 0 0 0);
  white-space: nowrap;
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}
@media (width <= 600px) {
  .section-head { flex-direction: column; align-items: flex-start }
}

/* ---------- Button ---------- */
.btn {
  border: 1px solid var(--line);
  height: 52px;
  font-size: var(--fs-label);
  letter-spacing: .2em;
  text-transform: uppercase;
  isolation: isolate;
  transition: border-color .5s var(--ease-out), color .5s var(--ease-out);
  align-items: center;
  gap: 14px;
  padding-inline: 24px;
  font-weight: 500;
  font-stretch: 125%;
  display: inline-flex;
  position: relative;
  overflow: hidden;
}
.btn:before {
  content: "";
  background: var(--accent);
  transform-origin: bottom;
  transition: transform .6s var(--ease-out);
  z-index: -1;
  position: absolute;
  inset: 0;
  transform: scaleY(0);
}
.btn:hover { border-color: var(--accent) }
.btn:hover:before { transform: scaleY(1) }
.btn .arrow { transition: transform .6s var(--ease-out) }
.btn:hover .arrow { transform: translate(4px) }

/* ---------- Reveal / masks ---------- */
.line-mask {
  margin-bottom: -.16em;
  padding-bottom: .16em;
  display: block;
  overflow: hidden;
}
.line-mask > * { display: inline-block }

html.js [data-reveal] { opacity: 0; transform: translateY(28px) }
html.js [data-reveal].is-in {
  opacity: 1;
  transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: var(--d, 0s);
  transform: none;
}
[data-fit] { white-space: nowrap; padding-right: .08em; display: inline-block !important }

.u-link {
  transition: background-size .6s var(--ease-out);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
}
.u-link:hover { background-size: 100% 1px }

/* ---------- Grain ---------- */
.grain {
  pointer-events: none;
  z-index: 120;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  width: 200%;
  height: 200%;
  animation: 1.2s steps(6, end) infinite grain;
  position: fixed;
  inset: -50%;
}
@keyframes grain {
  0%   { transform: translate(0) }
  20%  { transform: translate(-3%, 2%) }
  40%  { transform: translate(2%, -4%) }
  60%  { transform: translate(-4%, -1%) }
  80%  { transform: translate(3%, 3%) }
  to   { transform: translate(0) }
}

/* ---------- Page transitions ---------- */
@view-transition { navigation: auto }
::view-transition-old(root) { animation: vt-out .7s var(--ease-in-out) both }
::view-transition-new(root) { animation: vt-in .9s var(--ease-out) both }
@keyframes vt-out { to { opacity: 0; transform: translateY(-6vh) scale(.98) } }
@keyframes vt-in { 0% { clip-path: inset(100% 0 0) } to { clip-path: inset(0) } }
::view-transition-group(*) { animation-duration: .9s; animation-timing-function: var(--ease-in-out) }

.arrow-icon { vertical-align: -.125em; flex: none; width: 1em; height: 1em; display: inline-block }

/* ============================================================
   Header
   ============================================================ */
.header {
  z-index: 100;
  background: var(--ink);
  height: 80px;
  transition: transform .7s var(--ease-out), height .6s var(--ease-out), background-color .5s var(--ease-out), border-color .4s;
  border-bottom: 1px solid #0000;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  display: grid;
  position: fixed;
  inset: 0 0 auto;
}
.header.is-transparent { background-color: #0000; border-color: #0000 }
.header.is-scrolled { border-color: var(--line); height: 64px }
.header.is-hidden { transform: translateY(-100%) }

.logo { justify-self: start; align-items: center; display: inline-flex }
.logo__mark { letter-spacing: -.06em; font-size: 1.6rem; font-weight: 800; line-height: 1 }
.logo__mark i {
  transition: color .4s var(--ease-out);
  margin-inline: .04em;
  font-style: normal;
  font-weight: 300;
  display: inline-block;
}
.logo:hover .logo__mark i { color: var(--accent) }
.logo__name {
  color: var(--muted);
  white-space: nowrap;
  max-width: 22em;
  transition: max-width .7s var(--ease-out), margin .7s var(--ease-out), opacity .4s var(--ease-out);
  margin-left: 16px;
  overflow: hidden;
}
.header.is-scrolled .logo__name { opacity: 0; max-width: 0; margin-left: 0 }

.header__meta { color: var(--muted); align-items: center; gap: 12px; display: flex }
.pulse { animation: pulse 2s var(--ease-out) infinite }
@keyframes pulse { 0%, to { opacity: 1 } 50% { opacity: .25 } }

.nav { justify-self: end; gap: clamp(20px, 2.6vw, 44px); display: flex }
.nav__link { align-items: flex-start; gap: 6px; font-size: .95rem; font-weight: 500; display: inline-flex }
.nav__index { color: var(--faint); font-size: .6rem; transition: color .4s }
.nav__link.is-active .nav__index, .nav__link:hover .nav__index { color: var(--paper) }
.nav__roll { line-height: 1.2; display: inline-block; position: relative; overflow: hidden }
.nav__roll > span { transition: transform .6s var(--ease-out); display: inline-block }
.nav__roll:after {
  content: attr(data-text);
  transition: transform .6s var(--ease-out);
  position: absolute;
  top: 100%;
  left: 0;
}
.nav__link:hover .nav__roll > span, .nav__link:hover .nav__roll:after { transform: translateY(-100%) }
.nav__link.is-active .nav__roll { text-decoration: line-through 1px }

.burger { justify-self: end; width: 44px; height: 44px; display: none; position: relative }
.burger span {
  height: 1.5px;
  transition: transform .6s var(--ease-out);
  background: currentColor;
  position: absolute;
  left: 8px;
  right: 8px;
}
.burger span:first-child { top: 17px }
.burger span:last-child { top: 25px }
.burger[aria-expanded=true] span:first-child { transform: translateY(4px) rotate(45deg) }
.burger[aria-expanded=true] span:last-child { transform: translateY(-4px) rotate(-45deg) }

.menu {
  z-index: 99;
  background: var(--ink);
  clip-path: inset(0 0 100%);
  transition: clip-path .8s var(--ease-in-out);
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 32px;
  display: flex;
  position: fixed;
  inset: 0;
}
.menu.is-open { clip-path: inset(0) }
.menu__nav { border-top: 1px solid var(--line); flex-direction: column; display: flex }
.menu__link {
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
  gap: 12px;
  padding-block: clamp(14px, 3vw, 22px) clamp(12px, 2.6vw, 20px);
  font-size: clamp(2.4rem, 11.5vw, 6rem);
  display: flex;
}
.menu__link .mono { letter-spacing: 0; margin-top: .6em; font-size: .75rem }
.menu__foot {
  color: var(--muted);
  text-transform: uppercase;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-top: 40px;
  display: flex;
}
/* Seven nav items plus the full name don't fit between the 900px burger
   breakpoint and roughly 1200px — drop the name first. */
@media (width <= 1200px) {
  .logo__name { display: none }
}
@media (width <= 900px) {
  .header { grid-template-columns: 1fr auto; height: 72px }
  .header__spacer, .header__meta, .nav { display: none }
  .burger { display: block }
}

/* ============================================================
   Footer
   ============================================================ */
.footer { border-top: 1px solid var(--line); position: relative; overflow: hidden }
.cta { padding-block: clamp(96px, 14vw, 200px) clamp(64px, 8vw, 120px) }
.cta__kicker { align-items: center; gap: 12px; margin-bottom: 32px; display: flex }
.cta__title {
  font-size: var(--fs-display);
  text-transform: none;
  letter-spacing: -.05em;
  line-height: .92;
}
.cta__row {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 72px);
  display: flex;
}
.footer__legal { gap: 20px; display: inline-flex }
.cta__actions { flex-wrap: wrap; align-items: center; gap: 20px 36px; display: flex }
.cta__email { letter-spacing: -.02em; font-size: clamp(1.1rem, 1.6vw, 1.5rem); font-weight: 600 }
.cta__copy { max-width: 440px; font-size: var(--fs-lead); line-height: 1.45 }
.footer__base {
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
  background: var(--ink);
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 20px;
  display: flex;
  position: relative;
}

/* ============================================================
   Custom cursor
   ============================================================ */
.cursor { z-index: 150; pointer-events: none; display: none; position: fixed; top: 0; left: 0 }
html.has-cursor .cursor { display: block }
html.has-cursor [data-cursor=view], html.has-cursor [data-cursor=view] * { cursor: none }
.cursor__dot { display: none }
.cursor__ring {
  will-change: transform;
  width: 120px;
  height: 120px;
  margin: -60px 0 0 -60px;
  position: absolute;
  top: 0;
  left: 0;
}
.cursor__bubble {
  background: var(--accent);
  transition: transform .6s var(--ease-out);
  border-radius: 50%;
  place-items: center;
  display: grid;
  position: absolute;
  inset: 20px;
  transform: scale(0);
}
.cursor.is-view .cursor__bubble { transform: scale(1) }
.cursor__label {
  color: #fff;
  opacity: 0;
  white-space: nowrap;
  font-size: .6rem;
  font-weight: 700;
  transition: opacity .3s;
  position: relative;
}
.cursor__orbit {
  opacity: 0;
  width: 100%;
  height: 100%;
  transition: opacity .4s var(--ease-out), transform .6s var(--ease-out);
  position: absolute;
  inset: 0;
  overflow: visible;
  transform: scale(.6);
}
.cursor__orbit-text {
  fill: #fff;
  font-family: var(--font);
  letter-spacing: .12em;
  text-transform: uppercase;
  paint-order: stroke;
  stroke: #00000059;
  stroke-width: 2px;
  font-size: 8.5px;
  font-weight: 600;
  font-stretch: 125%;
}
.cursor__orbit text { transform-origin: 60px 60px; animation: 9s linear infinite cursor-orbit }
@keyframes cursor-orbit { to { transform: rotate(360deg) } }
.cursor.is-view.has-name .cursor__orbit { opacity: 1; transition-delay: .1s; transform: scale(1) }
.cursor.is-view .cursor__label { opacity: 1; transition-delay: .15s }

/* ============================================================
   Preloader
   ============================================================ */
.preloader {
  z-index: 200;
  background: var(--ink);
  padding: var(--gutter);
  grid-template-rows: auto 1fr auto;
  display: grid;
  position: fixed;
  inset: 0;
}
html:not(.js) .preloader { display: none }
.preloader__top { color: var(--muted); text-transform: uppercase; justify-content: space-between; display: flex }
.preloader__count { font-size: var(--fs-mega); align-self: end; line-height: .8 }
.preloader__bar { background: var(--line); height: 1px; margin-top: 24px; overflow: hidden }
.preloader__bar span { background: var(--accent); transform-origin: 0; height: 100%; display: block; transform: scaleX(0) }
