/* ==========================================================================
   LYNE — Design System
   Black & white. Sleek, modern, simple.
   ========================================================================== */

/* --------------------------------------------------------------- Tokens */
:root {
  --ink:      #000000;
  --paper:    #ffffff;

  --g-950:    #050505;
  --g-900:    #0a0a0a;
  --g-850:    #101010;
  --g-800:    #161616;
  --g-750:    #1d1d1d;
  --g-700:    #262626;
  --g-600:    #3d3d3d;
  --g-500:    #6e6e6e;
  --g-400:    #949494;
  --g-300:    #bdbdbd;
  --g-200:    #e2e2e2;
  --g-100:    #f2f2f2;

  /* semantic (dark base) */
  --bg:       var(--g-950);
  --fg:       var(--paper);
  --muted:    var(--g-400);
  --line:     rgba(255,255,255,.12);
  --line-strong: rgba(255,255,255,.28);
  --surface:  rgba(255,255,255,.035);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: 'Instrument Serif', 'Times New Roman', Times, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 1320px;
  --gutter: clamp(20px, 5vw, 64px);

  --ease: cubic-bezier(.22,1,.36,1);
  --ease-io: cubic-bezier(.65,.05,.36,1);
  --dur: .7s;

  --nav-h: 76px;
}

/* Light panels invert the semantic layer */
.panel--light {
  --bg:    var(--paper);
  --fg:    var(--ink);
  --muted: var(--g-500);
  --line:  rgba(0,0,0,.12);
  --line-strong: rgba(0,0,0,.3);
  --surface: rgba(0,0,0,.03);
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--g-950);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: 'ss01' 1, 'cv11' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,p,figure,blockquote { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--paper); color: var(--ink); }

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

/* --------------------------------------------------------------- Layout */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 900px; }

.panel {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: clamp(80px, 12vw, 168px);
}
.panel--flush { padding-block: 0; }
.panel--tight { padding-block: clamp(56px, 7vw, 92px); }

.grid { display: grid; gap: clamp(20px, 3vw, 40px); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* ----------------------------------------------------------- Typography */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.d-xxl { font-size: clamp(3.4rem, 13vw, 12rem); }
.d-xl  { font-size: clamp(2.8rem, 8vw, 6.5rem); }
.d-lg  { font-size: clamp(2.2rem, 5.4vw, 4.2rem); }
.d-md  { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

.h-sans {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: '';
  width: 26px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.eyebrow--plain::before { display: none; }

.lede {
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.body { color: var(--muted); max-width: 66ch; }
.mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .08em; }

.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* -------------------------------------------------------------- Buttons */
.btn {
  --btn-fg: var(--ink);
  --btn-bg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .86rem;
  font-weight: 500;
  letter-spacing: .01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), transform .5s var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: currentColor;
  transform: translateY(101%);
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { color: var(--btn-bg); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line-strong);
}
.btn--ghost:hover { color: var(--bg); }

.btn__arrow { transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link-u {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 3px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size .5s var(--ease), opacity .3s;
}
.link-u:hover { background-size: 0% 1px; }

/* ---------------------------------------------------------- Nav / Header */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background .5s var(--ease), border-color .5s var(--ease), transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(5,5,5,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255,255,255,.1);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* ------------------------------------------------------------ Wordmark */
.logo {
  display: block;
  height: var(--logo-h, 16px);
  width: auto;
  aspect-ratio: 200 / 48;
  color: inherit;
  overflow: visible;
}
/* stroke-drawn entrance, used on the preloader and the home hero */
.logo--draw path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: logoDraw 1.15s var(--ease) forwards;
}
.logo--draw path:nth-child(2) { animation-delay: .09s; }
.logo--draw path:nth-child(3) { animation-delay: .18s; }
.logo--draw path:nth-child(4) { animation-delay: .27s; }
@keyframes logoDraw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  .logo--draw path { stroke-dashoffset: 0; animation: none; }
}

.brand {
  --logo-h: 15px;
  display: inline-flex;
  align-items: center;
  color: #fff;
  transition: opacity .4s var(--ease);
}
.brand:hover { opacity: .62; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  padding: 10px 16px;
  font-size: .84rem;
  color: rgba(255,255,255,.68);
  border-radius: 999px;
  transition: color .35s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 6px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .45s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link:hover::after { transform: scaleX(1); }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { display: inline-flex; }
.nav__cta .btn { padding: 11px 22px; font-size: .8rem; }

.nav__burger {
  display: none;
  width: 46px; height: 46px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  position: relative;
  width: 18px; height: 1px;
  background: #fff;
  transition: background .3s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 1px;
  background: #fff;
  transition: transform .4s var(--ease);
}
.nav__burger span::before { top: -5px; }
.nav__burger span::after  { top: 5px; }
.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { transform: translateY(5px) rotate(45deg); }
.nav__burger.is-open span::after  { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
}

/* Mobile menu */
.menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--g-950);
  padding: calc(var(--nav-h) + 32px) var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  clip-path: inset(0 0 100% 0);
  transition: clip-path .8s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.menu__list { display: flex; flex-direction: column; gap: 6px; }
.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1.15;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: .12s; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: .18s; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: .24s; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: .30s; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: .36s; }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: .85rem;
  color: var(--g-400);
}

/* Scroll progress */
.progress {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: #fff;
  mix-blend-mode: difference;
}

/* ------------------------------------------------------------ Preloader */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  background: var(--g-950);
  transition: clip-path 1s var(--ease), opacity .4s ease .6s;
  clip-path: inset(0 0 0 0);
}
.loader.is-done { clip-path: inset(0 0 100% 0); pointer-events: none; }
.loader__mark { --logo-h: clamp(38px, 9.5vw, 72px); color: #fff; }
.loader__bar {
  position: absolute;
  bottom: 12%;
  left: 50%;
  transform: translateX(-50%);
  width: min(240px, 50vw);
  height: 1px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
}
.loader__bar i {
  display: block;
  height: 100%;
  width: 100%;
  background: #fff;
  transform: scaleX(0);
  transform-origin: 0 50%;
  animation: loadBar 1.1s var(--ease) forwards .1s;
}
@keyframes loadBar { to { transform: scaleX(1); } }

/* ------------------------------------------------------- Reveal engine */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity .9s var(--ease) var(--reveal-delay, 0s),
    transform .9s var(--ease) var(--reveal-delay, 0s),
    clip-path 1s var(--ease) var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="fade"]  { transform: none; }
[data-reveal="left"]  { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="clip"]  { opacity: 1; transform: none; }
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* A wipe overlay rather than clip-path on the target: an element clipped to
   zero height reports no intersection, so IntersectionObserver would never
   fire and the reveal would never run. */
[data-reveal="clip"] { position: relative; }
[data-reveal="clip"]::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: var(--bg);
  transform: scaleY(1);
  transform-origin: 50% 100%;
  transition: transform 1.05s var(--ease) var(--reveal-delay, 0s);
  pointer-events: none;
}
[data-reveal="clip"].is-in::before { transform: scaleY(0); }

/* Line-by-line heading reveal (built by JS) */
/* padding+negative margin gives descenders room without breaking the mask */
.rl { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.rl > span {
  display: block;
  transform: translateY(110%);
  transition: transform 1s var(--ease) var(--line-delay, 0s);
}
.is-in .rl > span, .rl.is-in > span { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .rl > span, .loader__mark span {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    animation: none !important;
    transition: none !important;
  }
  .loader { display: none; }
}

/* ----------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-block: calc(var(--nav-h) + 40px) clamp(36px, 6vw, 64px);
  overflow: hidden;
  background: var(--g-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero__grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.055) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 20%, transparent 78%);
}
.hero__glow {
  position: absolute;
  left: 50%; top: 42%;
  width: min(1100px, 120vw);
  aspect-ratio: 1;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, rgba(255,255,255,.03) 38%, transparent 66%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; }
.hero__logo {
  --logo-h: clamp(54px, 14.5vw, 158px);
  margin-bottom: clamp(24px, 3.4vw, 40px);
  color: #fff;
}
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 60px);
  padding-top: clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
}
.hero__claim {
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  line-height: 1.4;
  max-width: 30ch;
  letter-spacing: -.01em;
}
.hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag {
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
a.tag:hover, .tag:hover { color: var(--bg); background: var(--fg); border-color: var(--fg); }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--g-500);
  z-index: 2;
}
.scroll-cue i {
  display: block;
  width: 1px; height: 46px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
}
@keyframes cue {
  0%   { transform: scaleY(0); transform-origin: 0 0; }
  45%  { transform: scaleY(1); transform-origin: 0 0; }
  55%  { transform: scaleY(1); transform-origin: 0 100%; }
  100% { transform: scaleY(0); transform-origin: 0 100%; }
}

/* Page hero (inner pages) */
.phero {
  position: relative;
  padding-block: calc(var(--nav-h) + clamp(70px, 11vw, 150px)) clamp(50px, 7vw, 96px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.phero > .wrap { position: relative; z-index: 1; }
.lockup {
  --logo-h: clamp(22px, 3.2vw, 38px);
  display: grid;
  justify-items: start;
  gap: clamp(12px, 1.8vw, 22px);
  font-weight: 400;
}
.lockup__div { line-height: .92; }
.phero__row {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
}
@media (max-width: 900px) { .phero__row { grid-template-columns: 1fr; } }
.phero__art {
  position: absolute;
  z-index: 0;
  right: calc(var(--gutter) * -.35);
  top: 50%;
  /* `translate`, not `transform` — [data-parallax] owns transform */
  translate: 0 -50%;
  width: min(440px, 38vw);
  opacity: .1;
  pointer-events: none;
}
@media (max-width: 900px) { .phero__art { opacity: .07; } }

/* -------------------------------------------------------------- Marquee */
.marquee {
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: clamp(16px, 2.4vw, 26px);
  border-block: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  user-select: none;
}
.marquee__track {
  display: flex;
  flex: 0 0 auto;
  gap: clamp(28px, 4vw, 56px);
  padding-right: clamp(28px, 4vw, 56px);
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3.2rem);
  line-height: 1;
  white-space: nowrap;
  letter-spacing: -.01em;
}
.marquee__item i {
  display: inline-block;
  width: 9px; height: 9px;
  background: currentColor;
  border-radius: 50%;
  opacity: .5;
}
.marquee--slow .marquee__track { animation-duration: 52s; }
.marquee--rev .marquee__track { animation-direction: reverse; }
.marquee--outline .marquee__item {
  color: transparent;
  -webkit-text-stroke: 1px currentColor;
}

/* ------------------------------------------------------- Section header */
.shead {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 26px);
  margin-bottom: clamp(40px, 6vw, 76px);
}
.shead--split {
  grid-template-columns: 1.1fr .9fr;
  align-items: end;
  gap: clamp(24px, 5vw, 72px);
}
@media (max-width: 860px) { .shead--split { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------- Statement */
.statement {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: -.02em;
  max-width: 20ch;
}
.statement em {
  font-style: italic;
  color: var(--muted);
}

/* ------------------------------------------------------- Division cards */
.divisions { display: grid; gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.division {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr minmax(220px, .8fr) 64px;
  align-items: center;
  gap: clamp(16px, 3vw, 40px);
  padding: clamp(28px, 4.6vw, 56px) 0;
  background: var(--bg);
  overflow: hidden;
  transition: color .5s var(--ease);
}
.division::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .7s var(--ease);
  z-index: 0;
}
.division:hover::before { transform: translateY(0); }
.division:hover { color: var(--bg); }
.division > * { position: relative; z-index: 1; }
.division__no {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .18em;
  opacity: .55;
  padding-left: var(--gutter);
}
.division__name {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.division__desc { font-size: .95rem; opacity: .7; line-height: 1.5; }
/* Preview anchored inside its own row — a cursor-following one drifts across
   row boundaries and reads as unattached. */
.division__thumb {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: clamp(132px, 12.5vw, 178px);
  aspect-ratio: 4 / 3;
  border-radius: 3px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  clip-path: inset(0 0 100% 0);
  transform: translate(calc(-50% + var(--px, 0px)), -50%) scale(.94);
  transition:
    opacity .45s var(--ease),
    clip-path .75s var(--ease),
    transform .8s var(--ease);
}
.division:hover .division__thumb {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  transform: translate(calc(-50% + var(--px, 0px)), -50%) scale(1);
}
.division__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.16);
  transition: transform 1.1s var(--ease);
}
.division:hover .division__thumb img { transform: scale(1); }
@media (max-width: 1000px), (pointer: coarse) { .division__thumb { display: none; } }

.division__go {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 1px solid currentColor;
  border-radius: 50%;
  margin-right: var(--gutter);
  transition: transform .5s var(--ease);
}
.division:hover .division__go { transform: rotate(45deg); }
@media (max-width: 860px) {
  .division {
    grid-template-columns: 1fr auto;
    grid-template-areas: 'no go' 'name name' 'desc desc';
    padding-inline: var(--gutter);
    gap: 12px;
  }
  .division__no { grid-area: no; padding-left: 0; }
  .division__name { grid-area: name; }
  .division__desc { grid-area: desc; }
  .division__go { grid-area: go; margin-right: 0; width: 40px; height: 40px; }
}

/* ------------------------------------------------------------ Feature cards */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color .5s var(--ease), transform .6s var(--ease), background .5s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.card__ico {
  width: 52px; height: 52px;
  color: var(--fg);
  opacity: .9;
}
.card__ico svg { width: 100%; height: 100%; }
.card__title {
  font-size: 1.18rem;
  font-weight: 500;
  letter-spacing: -.02em;
}
.card__text { font-size: .93rem; line-height: 1.6; color: var(--muted); }
.card__list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.card__list li {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}
.card__no {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--muted);
  opacity: .6;
}

/* Visual service card (image/illustration on top) */
.vcard {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
  transition: border-color .5s var(--ease), transform .6s var(--ease);
}
.vcard:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.vcard__media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.015));
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.panel--light .vcard__media { background: linear-gradient(150deg, rgba(0,0,0,.07), rgba(0,0,0,.015)); }
.vcard__media > svg { width: 62%; height: auto; opacity: .85; transition: transform .8s var(--ease); }
.vcard:hover .vcard__media > svg { transform: scale(1.06); }
.vcard__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  transition: transform .9s var(--ease);
}
.vcard:hover .vcard__media img { transform: scale(1.05); }
.vcard__body { padding: clamp(20px, 2.4vw, 30px); display: flex; flex-direction: column; gap: 10px; }
.vcard__k {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.vcard__t { font-size: 1.12rem; font-weight: 500; letter-spacing: -.02em; }
.vcard__p { font-size: .92rem; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------------------- Lists */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 76px 1fr 1.1fr;
  gap: clamp(16px, 3vw, 40px);
  align-items: start;
  padding-block: clamp(24px, 3.2vw, 40px);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 760px) {
  .row { grid-template-columns: 56px 1fr; }
  .row__p { grid-column: 2 / -1; }
}
.row__n {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--muted);
  padding-top: .4em;
}
.row__t {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.2;
}
.row__p { color: var(--muted); font-size: .95rem; line-height: 1.65; }

/* ---------------------------------------------------------------- Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: var(--bg);
  padding: clamp(24px, 3.4vw, 42px);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.6vw, 4rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.stat__l {
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------- Gallery */
.gal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(10px, 1.4vw, 18px);
}
@media (max-width: 860px) { .gal { grid-template-columns: repeat(2, 1fr); } }
.gal__i {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 3px;
  overflow: hidden;
  background: linear-gradient(155deg, rgba(255,255,255,.08), rgba(255,255,255,.015));
  display: grid;
  place-items: center;
  min-height: 140px;
}
.panel--light .gal__i { background: linear-gradient(155deg, rgba(0,0,0,.06), rgba(0,0,0,.015)); }
.gal__i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.gal__i span {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 1;
}
.gal__i--w2 { grid-column: span 2; }
.gal__i--w3 { grid-column: span 3; }
.gal__i--w4 { grid-column: span 4; }
.gal__i--t  { aspect-ratio: 3/4; }
.gal__i--s  { aspect-ratio: 1; }
.gal__i--l  { aspect-ratio: 16/9; }
@media (max-width: 860px) {
  .gal__i--w3, .gal__i--w4 { grid-column: span 2; }
  .gal__i--w2 { grid-column: span 1; }
}

/* ------------------------------------------------------------ Terminal */
.term {
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  overflow: hidden;
  background: #070707;
  color: #e8e8e8;
  box-shadow: 0 40px 90px -50px rgba(0,0,0,.9);
}
.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.term__dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.22); }
.term__name {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
}
.term__body {
  padding: clamp(18px, 2.4vw, 30px);
  font-family: var(--font-mono);
  font-size: clamp(.74rem, 1.05vw, .85rem);
  line-height: 1.9;
  /* sized for the full script so the card does not grow while typing */
  min-height: clamp(360px, 33vw, 470px);
  white-space: pre-wrap;
}
.term__body .c-dim { color: rgba(255,255,255,.38); }
.term__body .c-key { color: #fff; font-weight: 600; }
.term__caret {
  display: inline-block;
  width: 8px; height: 1.05em;
  background: #fff;
  vertical-align: -.18em;
  animation: blink 1.05s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* --------------------------------------------------------------- Aside */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.split--wide { grid-template-columns: .9fr 1.1fr; }
@media (max-width: 900px) { .split--wide { grid-template-columns: 1fr; } }

.frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: linear-gradient(160deg, rgba(255,255,255,.075), rgba(255,255,255,.01));
  aspect-ratio: 4/5;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.panel--light .frame { background: linear-gradient(160deg, rgba(0,0,0,.06), rgba(0,0,0,.01)); }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.frame svg { width: 66%; opacity: .8; }
.frame__cap {
  position: absolute;
  left: 0; bottom: 0;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* --------------------------------------------------------------- Quote */
.quote {
  display: grid;
  gap: 22px;
  max-width: 30ch;
}
.quote__t {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.quote__a { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }

/* ------------------------------------------------------------ CTA band */
.cta {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 10vw, 8rem);
  line-height: .95;
  letter-spacing: -.03em;
}
.cta__row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: clamp(26px, 4vw, 42px);
}

/* -------------------------------------------------------------- Footer */
.foot {
  background: var(--g-950);
  color: var(--paper);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-block: clamp(52px, 7vw, 92px) 28px;
}
.foot__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(26px, 4vw, 56px);
  padding-bottom: clamp(36px, 5vw, 60px);
}
@media (max-width: 900px) { .foot__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot__top { grid-template-columns: 1fr; } }
.foot__h {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--g-500);
  margin-bottom: 16px;
}
.foot__list { display: flex; flex-direction: column; gap: 10px; font-size: .92rem; color: var(--g-300); }
.foot__list a:hover { color: #fff; }
.foot__brand { --logo-h: clamp(26px, 4.4vw, 42px); color: #fff; }
.foot__bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--g-500);
}

/* ------------------------------------------------------------- Ticket */
.ticket-layout {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 980px) { .ticket-layout { grid-template-columns: 1fr; } }

.tform {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.tform__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px clamp(20px, 2.6vw, 32px);
  border-bottom: 1px dashed var(--line-strong);
}
.tform__id { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .16em; color: var(--muted); }
.tform__body { padding: clamp(22px, 3vw, 36px); display: grid; gap: 22px; }

.field { display: grid; gap: 8px; }
.field > label {
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .95rem;
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.field textarea { resize: vertical; min-height: 140px; line-height: 1.6; }
.field select { appearance: none; background-image: none; cursor: pointer; }
.field input::placeholder, .field textarea::placeholder { color: var(--g-600); }
.panel--light .field input::placeholder, .panel--light .field textarea::placeholder { color: var(--g-400); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--fg);
  background: rgba(255,255,255,.04);
}
.panel--light .field input:focus, .panel--light .field textarea:focus, .panel--light .field select:focus { background: rgba(0,0,0,.03); }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: #fff; }
.field__err {
  display: none;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .75;
}
.field.has-error .field__err { display: block; }
.field__hint { font-size: .78rem; color: var(--muted); }

.fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fieldset__legend {
  padding: 0 0 8px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}

.seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 8px; }
@media (max-width: 460px) { .seg { grid-template-columns: 1fr; } }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label {
  display: grid;
  gap: 3px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  cursor: pointer;
  transition: border-color .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.seg label b { font-size: .92rem; font-weight: 500; letter-spacing: -.01em; }
.seg label span { font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg input:checked + label {
  background: var(--fg);
  color: var(--bg);
  border-color: var(--fg);
}
.seg input:checked + label span { color: inherit; opacity: .7; }
.seg input:focus-visible + label { outline: 2px solid var(--fg); outline-offset: 3px; }

.tform__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 2.6vw, 32px);
  border-top: 1px dashed var(--line-strong);
}

/* Perforation edge */
.perf {
  position: relative;
  height: 18px;
  background:
    radial-gradient(circle at 9px 50%, var(--bg) 6px, transparent 6.5px) repeat-x;
  background-size: 18px 18px;
}

/* Ticket receipt */
.receipt {
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: var(--bg);
  padding: clamp(24px, 3vw, 36px);
  display: none;
  gap: 18px;
}
.receipt.is-visible { display: grid; animation: pop .7s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.receipt__id {
  font-family: var(--font-mono);
  font-size: clamp(1.1rem, 2.6vw, 1.6rem);
  letter-spacing: .12em;
  word-break: break-all;
}
.receipt__meta { display: grid; gap: 10px; font-size: .88rem; }
.receipt__meta div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.receipt__meta dt, .receipt__meta span:first-child { color: var(--muted); font-family: var(--font-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; }
.receipt__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.receipt__note { font-size: .82rem; color: var(--muted); line-height: 1.6; }

/* Side rail */
.rail { display: grid; gap: 14px; position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 980px) { .rail { position: static; } }
.rail__card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(20px, 2.4vw, 28px);
  background: var(--surface);
  display: grid;
  gap: 12px;
}
.rail__k { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.rail__v { font-size: 1.02rem; letter-spacing: -.01em; word-break: break-word; }

/* Ticket tracker */
.tracker { display: flex; flex-wrap: wrap; gap: 10px; }
.tracker input { flex: 1 1 220px; }
.track-list { display: grid; gap: 10px; margin-top: 18px; }
.track-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: .88rem;
}
.track-item b { font-family: var(--font-mono); letter-spacing: .1em; font-weight: 500; }
.chip {
  font-family: var(--font-mono);
  font-size: .6rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
}
.chip--open { background: var(--fg); color: var(--bg); border-color: var(--fg); }

/* FAQ / accordion */
.acc { border-top: 1px solid var(--line); }
.acc__i { border-bottom: 1px solid var(--line); }
.acc__b {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(20px, 2.6vw, 30px) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 500;
  letter-spacing: -.02em;
}
.acc__b i {
  position: relative;
  flex: 0 0 auto;
  width: 16px; height: 16px;
}
.acc__b i::before, .acc__b i::after {
  content: '';
  position: absolute;
  background: currentColor;
  transition: transform .5s var(--ease), opacity .4s;
}
.acc__b i::before { top: 50%; left: 0; width: 16px; height: 1px; transform: translateY(-50%); }
.acc__b i::after  { left: 50%; top: 0; height: 16px; width: 1px; transform: translateX(-50%); }
.acc__i.is-open .acc__b i::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.acc__p {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .6s var(--ease);
}
.acc__i.is-open .acc__p { grid-template-rows: 1fr; }
.acc__p > div { overflow: hidden; }
.acc__p p { color: var(--muted); font-size: .95rem; line-height: 1.7; max-width: 70ch; padding-bottom: clamp(20px, 2.4vw, 28px); }

/* ------------------------------------------------------------- Utility */
.stack { display: grid; gap: clamp(14px, 2vw, 24px); }
.stack--sm { gap: 10px; }
.flow { display: flex; flex-wrap: wrap; gap: 12px; }
.center { text-align: center; justify-items: center; }
.center .lede, .center .body { margin-inline: auto; }
.mt-l { margin-top: clamp(34px, 5vw, 60px); }
.mt-m { margin-top: clamp(20px, 3vw, 34px); }
.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.noise::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Custom cursor (pointer devices only) */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 150;
  width: 26px; height: 26px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 50%;
  pointer-events: none;
  mix-blend-mode: difference;
  transform: translate(-50%,-50%);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), opacity .3s;
  opacity: 0;
}
.cursor.is-on { opacity: 1; }
.cursor.is-hot { width: 56px; height: 56px; background: rgba(255,255,255,.85); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ==========================================================================
   Ticket issue — 3D spiral stage
   Shown once a ticket is raised: a helix of tape spins up and the ticket
   unspools out of it into the middle of the coil.
   ========================================================================== */
.issue {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility 0s linear .5s;
}
.issue.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .5s var(--ease), visibility 0s;
}

.issue__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 45%, rgba(24,24,24,.92), rgba(2,2,2,.96));
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  cursor: pointer;
}

.issue__scene {
  --k: 1;       /* one knob scales the whole vortex per breakpoint */
  position: relative;
  width: min(400px, 86vw);
  perspective: 1500px;
  perspective-origin: 50% 46%;
  transform-style: preserve-3d;
}
@media (max-width: 1100px) { .issue__scene { --k: .62; } }
@media (max-width: 620px)  { .issue__scene { --k: .40; } }

/* ------------------------------------------------------------- The vortex */
.coil {
  position: absolute;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}
/* scoped to .is-open so the sequence replays every time a ticket is issued */
.issue.is-open .coil {
  animation:
    coilIn 1.6s var(--ease) both,
    coilSpin 22s linear 1.6s infinite;
}
/* Each band is placed by coordinate, so it stays parallel to the screen and
   never turns edge-on. The coil spins in-plane (rotateZ), which keeps every
   band tangent to the spiral as it turns. */
.coil i {
  position: absolute;
  left: 0; top: 0;
  width: 84px;
  height: 4px;
  margin: -2px 0 0 -42px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, #fff 22%, #fff 78%, transparent);
  opacity: var(--o, .4);
}

@keyframes coilIn {
  0%   { transform: scale(.08) rotateZ(-420deg); opacity: 0; }
  40%  { opacity: 1; }
  100% { transform: scale(1) rotateZ(0deg); opacity: 1; }
}
@keyframes coilSpin {
  from { transform: scale(1) rotateZ(0deg); }
  to   { transform: scale(1) rotateZ(360deg); }
}

/* ------------------------------------------------------------ The ticket */
.tilt {
  position: relative;
  transform-style: preserve-3d;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.tkt {
  position: relative;
  transform-style: preserve-3d;
  background: linear-gradient(168deg, #191919 0%, #101010 55%, #070707 100%);
  color: #f4f4f4;
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255,255,255,.14) inset,
    0 50px 100px -30px rgba(0,0,0,.95),
    0 0 0 1px rgba(255,255,255,.2);
  opacity: 0;
}
.issue.is-open .tkt {
  animation:
    unspool 1.25s cubic-bezier(.16,1,.3,1) .3s both,
    tktFloat 9s ease-in-out 1.6s infinite;
}
/* the curled tail of tape still hanging off the top of the ticket */
.tkt::before {
  content: '';
  position: absolute;
  left: 12%; right: 12%;
  top: -9px;
  height: 10px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, rgba(255,255,255,.28), transparent);
  transform: translateZ(-6px);
}

@keyframes unspool {
  0% {
    transform: translateY(150px) translateZ(-460px) rotateX(-108deg) rotateZ(-16deg) scale(.55);
    opacity: 0;
  }
  35%  { opacity: 1; }
  100% {
    transform: translateY(0) translateZ(0) rotateX(0deg) rotateZ(0deg) scale(1);
    opacity: 1;
  }
}
@keyframes tktFloat {
  0%, 100% { transform: rotateX(2.5deg) rotateY(-3deg) translateZ(0); }
  50%      { transform: rotateX(-2.5deg) rotateY(3deg) translateZ(14px); }
}

.tkt__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.tkt__brand { --logo-h: 13px; display: block; color: #fff; }
.tkt__status {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  background: #fff;
  color: #060606;
}

.tkt__body { padding: 24px 22px 20px; }
.tkt__k {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.tkt__id {
  font-family: var(--font-mono);
  font-size: clamp(1.15rem, 4.6vw, 1.6rem);
  font-weight: 500;
  letter-spacing: .1em;
  margin-top: 6px;
  word-break: break-all;
}
.tkt__rows { margin-top: 20px; display: grid; gap: 9px; }
.tkt__rows div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px dotted rgba(255,255,255,.22);
  font-size: .88rem;
}
.tkt__rows span:first-child {
  font-family: var(--font-mono);
  font-size: .58rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
}
.tkt__rows span:last-child { text-align: right; font-weight: 500; }

/* Perforated tear line + punched edges */
.tkt__perf {
  position: relative;
  height: 22px;
  border-top: 1px dashed rgba(255,255,255,.34);
  margin-top: 4px;
}
.tkt__perf::before, .tkt__perf::after {
  content: '';
  position: absolute;
  top: -11px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #0a0a0a;
}
.tkt__perf::before { left: -11px; }
.tkt__perf::after  { right: -11px; }

.tkt__stub { padding: 0 22px 22px; }
.bars {
  display: flex;
  align-items: stretch;
  height: 46px;
  color: #fff;
  overflow: hidden;
}
.bars i { background: currentColor; flex: 0 0 auto; }
.bars b { flex: 0 0 auto; }
.tkt__note {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: .56rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-align: center;
}

/* ------------------------------------------------------------- Controls */
.issue__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 26px;
  opacity: 0;
}
.issue.is-open .issue__actions { animation: fadeUp .8s var(--ease) 1.35s both; }
.issue__actions .btn { padding: 13px 22px; font-size: .82rem; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.issue__close {
  position: absolute;
  top: clamp(16px, 3vw, 30px);
  right: clamp(16px, 3vw, 30px);
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background .4s var(--ease), color .4s var(--ease), transform .4s var(--ease);
}
.issue__close:hover { background: #fff; color: #000; transform: rotate(90deg); }

@media (prefers-reduced-motion: reduce) {
  .issue.is-open .coil { animation: none; }
  .issue.is-open .tkt,
  .issue.is-open .issue__actions { animation: none; }
  .tkt, .issue__actions { opacity: 1; transform: none; }
  .issue__bg { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ==========================================================================
   Premium layer — page transitions, media reveals, magnetics
   ========================================================================== */

/* ------------------------------------------------------- Page transition */
.pt {
  position: fixed;
  inset: 0;
  z-index: 190;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.pt span {
  position: absolute;
  inset: 0;
  background: var(--g-950);
  transform: scaleY(0);
  transform-origin: 50% 100%;
}
.pt.is-leaving { pointer-events: auto; }
.pt.is-leaving span {
  animation: ptIn .62s cubic-bezier(.7,0,.3,1) forwards;
}
.pt.is-entering span {
  transform-origin: 50% 0;
  animation: ptOut .72s cubic-bezier(.7,0,.3,1) forwards;
}
@keyframes ptIn  { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ptOut { from { transform: scaleY(1); } to { transform: scaleY(0); } }

/* ------------------------------------------------ Media wipe + inner zoom */
[data-reveal="clip"] img,
[data-reveal="clip"] .vcard__media img {
  transform: scale(1.18);
  transition: transform 1.5s var(--ease) var(--reveal-delay, 0s);
}
[data-reveal="clip"].is-in img { transform: scale(1); }

/* Photographs sit under a scrim so overlaid captions stay legible */
.gal__i::after,
.frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.78), rgba(0,0,0,.12) 46%, transparent);
  opacity: 0;
  transition: opacity .6s var(--ease);
  pointer-events: none;
}
.gal__i:has(img)::after,
.frame:has(img)::after { opacity: 1; }

.gal__i { transition: border-color .6s var(--ease); }
.gal__i:hover { border-color: var(--line-strong); }
.gal__i img { transition: transform 1.1s var(--ease), filter .6s var(--ease); }
.gal__i:hover img { transform: scale(1.06); }
.gal__i span {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 2;
  color: rgba(255,255,255,.82);
  transform: translateY(6px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.gal__i:has(img) span { opacity: 1; transform: none; }
.gal__i:hover span { color: #fff; }

/* the placeholder SVG only shows while there is no photograph */
.vcard__media:has(img) > svg,
.frame:has(img) > svg { display: none; }

/* inner parallax — the photo drifts inside its frame */
[data-img-parallax] { overflow: hidden; }
[data-img-parallax] img { height: 118%; top: -9%; will-change: transform; }

/* --------------------------------------------------------- Vignette lift */
.panel:not(.panel--light)::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 90% 70% at 50% 50%, transparent 58%, rgba(0,0,0,.38));
}
/* keep content above the vignette so nothing gets dimmed at the edges */
.panel > .wrap, .panel > .divisions { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .pt span { animation: none !important; transform: scaleY(0) !important; }
  [data-reveal="clip"] img { transform: none !important; }
}

/* ==========================================================================
   Home intro — choreographed opening sequence
   Nothing in the hero animates until <body> gets .is-ready (set when the
   preloader curtain lifts), so the sequence never plays behind the curtain.
   ========================================================================== */

.loader__num {
  position: absolute;
  bottom: calc(12% + 22px);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .3em;
  color: rgba(255,255,255,.45);
}

/* --------------------------------------------------------- Hero backdrop */
.hero__grid {
  opacity: 0;
  transform: translate3d(calc(var(--mx, 0) * -26px), calc(var(--my, 0) * -20px), 0);
  transition: transform 1.2s var(--ease);
}
.is-ready .hero__grid { animation: gridIn 2s var(--ease) .05s forwards; }
@keyframes gridIn { to { opacity: 1; } }

.hero__glow {
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
}
.is-ready .hero__glow { animation: glowIn 2.6s var(--ease) .1s forwards; }
@keyframes glowIn {
  to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* a slow beam that rakes across the grid */
.hero__sweep {
  position: absolute;
  left: 50%; top: 50%;
  width: 190vmax; height: 190vmax;
  transform: translate(-50%, -50%);
  background: conic-gradient(from 0deg,
    transparent 0deg, rgba(255,255,255,.055) 18deg, transparent 44deg,
    transparent 180deg, rgba(255,255,255,.035) 200deg, transparent 226deg);
  mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 62%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 8%, transparent 62%);
  opacity: 0;
}
.is-ready .hero__sweep {
  animation: sweepIn 2.4s var(--ease) .3s forwards, sweepSpin 34s linear 1s infinite;
}
@keyframes sweepIn { to { opacity: 1; } }
@keyframes sweepSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* one horizon line that draws across the hero */
.hero__scan {
  position: absolute;
  left: 0; right: 0;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.42) 22%, rgba(255,255,255,.42) 78%, transparent);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.is-ready .hero__scan { animation: scanIn 1.5s cubic-bezier(.7,0,.2,1) .18s forwards; }
@keyframes scanIn {
  0%   { transform: scaleX(0); opacity: 1; }
  62%  { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: 0; }
}

/* ------------------------------------------------------------ Hero mark */
.hero__mark {
  position: relative;
  display: block;
  transform: translate3d(calc(var(--mx, 0) * 12px), calc(var(--my, 0) * 9px), 0);
  transition: transform 1.4s var(--ease);
}
.hero__mark .logo { position: relative; }

/* blurred duplicate that blooms once the strokes finish drawing.
   Selector must out-specify `.hero__mark .logo`, or it stays in flow. */
.hero__mark .logo--bloom {
  position: absolute;
  left: 0;
  top: 0;
  filter: blur(16px);
  opacity: 0;
  pointer-events: none;
}
.is-ready .logo--bloom { animation: bloom 2.4s var(--ease) 1.15s forwards; }
@keyframes bloom {
  0%   { opacity: 0; }
  28%  { opacity: .85; }
  100% { opacity: .22; }
}

/* the hero wordmark draws letter by letter, gated on .is-ready */
.logo--hero path {
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
}
.is-ready .logo--hero path { animation: logoDraw 1.05s cubic-bezier(.6,0,.25,1) .3s forwards; }
.is-ready .logo--hero path:nth-child(2) { animation-delay: .42s; }
.is-ready .logo--hero path:nth-child(3) { animation-delay: .54s; }
.is-ready .logo--hero path:nth-child(4) { animation-delay: .66s; }

/* ------------------------------------------------------- Hero copy stagger */
.hero__eyebrow,
.hero__claim,
.hero__tags .tag,
.hero .scroll-cue {
  opacity: 0;
  transform: translateY(18px);
}
.is-ready .hero__eyebrow { animation: heroUp .9s var(--ease) .12s forwards; }
.is-ready .hero__claim   { animation: heroUp 1s var(--ease) 1.25s forwards; }
.is-ready .hero__tags .tag { animation: heroUp .8s var(--ease) 1.45s forwards; }
.is-ready .hero__tags .tag:nth-child(2) { animation-delay: 1.53s; }
.is-ready .hero__tags .tag:nth-child(3) { animation-delay: 1.61s; }
.is-ready .hero .scroll-cue { animation: heroUp .9s var(--ease) 1.85s forwards; }
@keyframes heroUp { to { opacity: 1; transform: none; } }

/* the rule above the hero meta wipes in */
.hero__meta { border-top-color: transparent; position: relative; }
.hero__meta::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--line-strong);
  transform: scaleX(0);
  transform-origin: 0 50%;
}
.is-ready .hero__meta::before { animation: ruleIn 1.4s cubic-bezier(.7,0,.2,1) 1.05s forwards; }
@keyframes ruleIn { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .hero__grid, .hero__glow, .hero__sweep, .hero__eyebrow, .hero__claim,
  .hero__tags .tag, .hero .scroll-cue, .logo--bloom {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .hero__glow { transform: translate(-50%, -50%) !important; }
  .hero__scan { display: none; }
  .logo--hero path { stroke-dashoffset: 0; animation: none !important; }
  .hero__meta { border-top-color: var(--line); }
  .hero__meta::before { display: none; }
}
