/* Halden & Pike — shared design system */
:root {
  --ink: #0A0E13;
  --ink-2: #10161E;
  --ink-3: #18212C;
  --paper: #EDF0EE;
  --paper-2: #E1E5E2;
  --flare: #FF5B1F;
  --cyan: #46E0D2;
  --amber: #FFB020;
  --crit: #FF3D5A;
  --ok: #3DDC84;
  --line-d: rgba(255,255,255,.12);
  --line-l: rgba(10,14,19,.12);
  --mute-d: rgba(237,240,238,.62);
  --mute-l: rgba(10,14,19,.6);
  --serif: 'Fraunces', 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex 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; }
input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--flare); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
sub { font-size: .68em; line-height: 0; }

.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: 9px; height: 9px; background: var(--flare); clip-path: polygon(25% 0,75% 0,100% 50%,75% 100%,25% 100%,0 50%); }
.h-xl, .h-l, .h-m { font-weight: 600; letter-spacing: -.035em; margin: 0; line-height: .92; font-stretch: 85%; }
.h-xl { font-size: clamp(46px, 8.6vw, 148px); }
.h-l { font-size: clamp(38px, 6vw, 100px); }
.h-m { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.08; letter-spacing: -.02em; }
.h-xl em, .h-l em, .h-m em { font-family: var(--serif); font-style: italic; font-weight: 300; letter-spacing: -.02em; font-stretch: normal; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; max-width: 34em; color: var(--mute-d); }
.light .lead { color: var(--mute-l); }
.line { display: block; overflow: hidden; padding-bottom: .07em; margin-bottom: -.07em; }
.line > span { display: inline-block; will-change: transform; }
.hl { color: var(--flare); }
.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px; height: 54px; padding: 0 26px;
  border-radius: 999px; background: var(--flare); color: #fff;
  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 { color: var(--ink); }
.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(--cyan); }
.btn.ghost:hover { color: var(--ink); }
.light .btn:not(.ghost) { background: var(--ink); color: var(--paper); }
.light .btn:not(.ghost)::before { background: var(--flare); }
.light .btn:not(.ghost):hover { color: #fff; }

/* ---------- loader + hexagon 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(--flare); aspect-ratio: 1; margin: -.5px; }
.squares i:nth-child(3n) { background: #F04E14; }
.squares i:nth-child(7n) { background: #FF6B33; }
.squares.is-done { visibility: hidden; }
.loader-word { position: fixed; inset: 0; z-index: 101; display: grid; place-items: center; color: #fff; pointer-events: none; }
.loader-word > div { text-align: center; }
.loader-word svg { width: 74px; height: 74px; margin: 0 auto 18px; }
.loader-word svg path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: hexdraw 1.3s .1s var(--ease) forwards; }
@keyframes hexdraw { to { stroke-dashoffset: 0; } }
.loader-word span { display: inline-block; overflow: hidden; font-size: clamp(54px, 11vw, 176px); font-weight: 700; letter-spacing: -.05em; line-height: .9; font-stretch: 80%; }
.loader-word span:nth-child(3) b { font-family: var(--serif); font-style: italic; font-weight: 300; }
.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; }
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: .055;
  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: #fff; 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(--flare); border-color: var(--flare); 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(--flare); }
@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: 700; font-size: 20px; letter-spacing: -.03em; font-stretch: 85%; }
.logo-mark { width: 30px; height: 30px; }
.logo em { font-family: var(--serif); font-weight: 300; font-size: 22px; }
.nav { display: flex; gap: 4px; 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; min-height: 44px; }
.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(42px, 11vw, 80px); font-weight: 600; letter-spacing: -.04em; line-height: 1.06; font-stretch: 85%; }
.menu nav a em { font-family: var(--serif); font-weight: 300; }
.menu p { position: relative; font-family: var(--mono); font-size: 12px; color: var(--mute-d); margin: 30px 0 0; }

@media (max-width: 960px) {
  .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-flare { background: var(--flare); color: #fff; border: 0; }
.marquee-track { display: inline-flex; animation: mq 40s linear infinite; }
.marquee span { font-size: clamp(26px, 3.6vw, 52px); font-weight: 600; letter-spacing: -.03em; padding: 0 28px; display: inline-flex; align-items: center; gap: 56px; font-stretch: 85%; }
.marquee span::after { content: '⬡'; font-size: .55em; }
.marquee span:nth-child(even) { font-family: var(--serif); font-style: italic; font-weight: 300; }
@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: .3; }
.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(--flare); }
.ftr-big { font-size: clamp(64px, 17vw, 300px); font-weight: 700; letter-spacing: -.06em; line-height: .8; margin: 80px 0 0 -.04em; white-space: nowrap; color: var(--paper); font-stretch: 75%; }
.ftr-big em { font-family: var(--serif); font-weight: 300; color: var(--flare); font-stretch: normal; }
.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; }
}
