/* Corvane — shared design system */
:root {
  --ink: #0A0C11;
  --ink-2: #12151D;
  --ink-3: #1B1F2A;
  --paper: #F3F1EB;
  --paper-2: #E8E5DC;
  --volt: #D2FF3D;
  --cobalt: #4F5DFF;
  --coral: #FF6A47;
  --sky: #7CC8FF;
  --line-d: rgba(255,255,255,.12);
  --line-l: rgba(10,12,17,.12);
  --mute-d: rgba(243,241,235,.62);
  --mute-l: rgba(10,12,17,.6);
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --ease: cubic-bezier(.16,1,.3,1);
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
video { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--volt); color: var(--ink); }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.light { background: var(--paper); color: var(--ink); }

/* ---------- type ---------- */
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 8px; height: 8px; background: var(--volt); border-radius: 2px; transform: rotate(45deg); }
.light .eyebrow::before { background: var(--cobalt); }
.h-xl, .h-l, .h-m { font-weight: 500; letter-spacing: -.035em; margin: 0; line-height: .92; }
.h-xl { font-size: clamp(48px, 9vw, 150px); }
.h-l { font-size: clamp(40px, 6.4vw, 104px); }
.h-m { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.05; letter-spacing: -.02em; }
.h-xl em, .h-l em, .h-m em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.lead { font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; max-width: 34em; color: var(--mute-d); }
.light .lead { color: var(--mute-l); }
.line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.line > span { display: inline-block; will-change: transform; }
.hl { color: var(--volt); }
.light .hl { color: var(--cobalt); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--volt); color: var(--ink);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em; position: relative; overflow: hidden; isolation: isolate;
  transition: color .4s var(--ease);
}
.btn::before { content: ''; position: absolute; inset: 0; background: var(--paper); transform: translateY(101%); border-radius: inherit; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::before { transform: none; }
.btn svg { width: 16px; height: 16px; stroke-width: 1.8; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn.ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1px currentColor; }
.btn.ghost::before { background: var(--volt); }
.btn.ghost:hover { color: var(--ink); }
.light .btn { background: var(--ink); color: var(--paper); }
.light .btn::before { background: var(--cobalt); }

/* ---------- loader + square grid transition ---------- */
.squares { position: fixed; inset: 0; z-index: 100; display: grid; grid-template-columns: repeat(var(--cols, 12), 1fr); pointer-events: none; }
.squares i { background: var(--volt); aspect-ratio: 1; margin: -.5px; }
.squares i:nth-child(3n) { background: #C3F030; }
.squares.is-done { visibility: hidden; }
.loader-word { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; color: var(--ink); pointer-events: none; }
.loader-word > div { text-align: center; }
.loader-word span { display: inline-block; overflow: hidden; font-size: clamp(56px, 12vw, 190px); font-weight: 600; letter-spacing: -.05em; line-height: .9; }
.loader-word span:nth-child(2) b { font-family: var(--serif); font-style: italic; font-weight: 400; }
.loader-word b { display: inline-block; font-weight: inherit; }
.loader-word small { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-top: 18px; }
.loader-word .loader-for { display: inline-block; margin: 26px 0 0; padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 500; letter-spacing: .01em; }
html.no-js .squares, html.no-js .loader-word, html.rm .loader-word { display: none; }

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

/* ---------- cursor ---------- */
.cursor, .cursor-dot { position: fixed; left: 0; top: 0; z-index: 95; pointer-events: none; opacity: 0; transition: opacity .3s; }
body.has-cursor .cursor, body.has-cursor .cursor-dot { opacity: 1; }
.cursor { width: 40px; height: 40px; margin: -20px 0 0 -20px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; mix-blend-mode: difference;
  display: grid; place-items: center; transition: width .4s var(--ease), height .4s var(--ease), margin .4s var(--ease), background .3s, opacity .3s; }
.cursor span { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor.is-link { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: rgba(255,255,255,.12); }
.cursor.is-label { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--volt); border-color: var(--volt); mix-blend-mode: normal; }
.cursor.is-label span { opacity: 1; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--volt); }
@media (hover: none) { .cursor, .cursor-dot { display: none; } }

/* ---------- header ---------- */
.hdr { position: fixed; z-index: 60; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gut); mix-blend-mode: difference; color: #fff; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 21px; letter-spacing: -.04em; }
.logo-mark { width: 28px; height: 28px; }
.logo em { font-family: var(--serif); font-weight: 400; font-size: 23px; }
.nav { display: flex; gap: 6px; font-size: 14px; }
.nav a { padding: 8px 14px; border-radius: 999px; position: relative; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hdr-cta { display: flex; gap: 10px; align-items: center; }
.hdr-cta .pill { font-size: 14px; padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(255,255,255,.55); transition: background .3s, color .3s; }
.hdr-cta .pill:hover { background: #fff; color: #000; }
.menu-btn { display: none; align-items: center; gap: 10px; font-size: 14px; }
.menu-btn i { width: 22px; height: 8px; position: relative; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.menu-btn i::before { top: 0; } .menu-btn i::after { bottom: 0; }
body.menu-open .menu-btn i::before { transform: translateY(3.25px) rotate(45deg); }
body.menu-open .menu-btn i::after { transform: translateY(-3.25px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 55; background: var(--ink); display: flex; flex-direction: column; justify-content: flex-end;
  padding: 100px var(--gut) 40px; clip-path: circle(0% at calc(100% - 40px) 34px); transition: clip-path .9s var(--ease); visibility: hidden; }
body.menu-open .menu { clip-path: circle(150% at calc(100% - 40px) 34px); visibility: visible; }
.menu video { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .35; }
.menu nav { position: relative; display: flex; flex-direction: column; }
.menu nav a { font-size: clamp(44px, 12vw, 80px); font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.menu nav a em { font-family: var(--serif); font-weight: 400; }
.menu p { position: relative; font-family: var(--mono); font-size: 12px; color: var(--mute-d); margin: 30px 0 0; }

@media (max-width: 900px) {
  .nav, .hdr-cta .pill { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ---------- media utilities ---------- */
.media { position: relative; overflow: hidden; margin: 0; background: var(--ink-3); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
html.no-js .clip, html.rm .clip { clip-path: none !important; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line-d); padding: 22px 0; white-space: nowrap; }
.marquee.on-volt { background: var(--volt); color: var(--ink); border: 0; }
.marquee-track { display: inline-flex; animation: mq 38s linear infinite; }
.marquee span { font-size: clamp(26px, 3.6vw, 52px); font-weight: 500; letter-spacing: -.03em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; }
.marquee span::after { content: '✳'; font-size: .6em; }
.marquee span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 400; }
@keyframes mq { to { transform: translateX(-50%); } }
html.rm .marquee-track { animation: none; }

/* ---------- footer ---------- */
.ftr { position: relative; overflow: hidden; background: var(--ink); padding: clamp(80px, 12vw, 160px) 0 28px; }
.ftr-bg { position: absolute; inset: 0; opacity: .32; }
.ftr-bg video { width: 100%; height: 100%; }
.ftr-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, transparent 40%, var(--ink) 100%); }
.ftr .wrap { position: relative; }
.ftr-cta { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr; align-items: end; }
.ftr-cta p { color: var(--mute-d); max-width: 30em; margin: 0 0 26px; }
.ftr-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: 90px; padding-top: 34px; border-top: 1px solid var(--line-d); font-size: 14px; }
.ftr-cols h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute-d); font-weight: 400; margin: 0 0 14px; }
.ftr-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr-cols a:hover { color: var(--volt); }
.ftr-big { font-size: clamp(80px, 23vw, 380px); font-weight: 600; letter-spacing: -.07em; line-height: .8; margin: 80px 0 0 -.04em; white-space: nowrap; color: var(--paper); }
.ftr-big em { font-family: var(--serif); font-weight: 400; color: var(--volt); }
.ftr-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; color: var(--mute-d); margin-top: 28px; letter-spacing: .04em; }
@media (max-width: 900px) {
  .ftr-cta { grid-template-columns: 1fr; }
  .ftr-cols { grid-template-columns: 1fr 1fr; }
}

.demo-tag { position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(10,12,17,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  color: var(--paper); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-d); transition: opacity .4s, transform .4s; white-space: nowrap; }
.demo-tag b { color: var(--volt); font-weight: 500; }
.demo-tag.is-off { opacity: 0; transform: translate(-50%, 20px); pointer-events: none; }
