/* ==========================================================================
   VYBE — Powering Every Event.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  src: url('/assets/fonts/space-grotesk-latin.woff2') format('woff2-variations'),
       url('/assets/fonts/space-grotesk-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --blue: #1769ff;
  --blue-deep: #0d55e0;
  --blue-soft: #8fb6ff;
  --black: #0a0a0a;
  --graphite: #1e2326;
  --slate: #6b7280;
  --white: #ffffff;
  --paper: #f4f5f7;
  --line: #e4e6ea;
  --line-dark: #262c30;
  --slate-on-paper: #5a616d; /* Slate darkened just enough for AA on --paper */
  --ink: var(--black);
  --muted: var(--slate);
  --max: 1200px;
  --gutter: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: 'Space Grotesk', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 2px; }
::selection { background: var(--blue); color: #fff; }

.container { width: min(calc(100% - var(--gutter)), var(--max)); margin-inline: auto; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }

h1, h2, h3, h4 { font-family: var(--font); margin: 0; }
h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 24px;
  border-radius: 6px;
  font: 600 15px/1 var(--font); letter-spacing: -.005em;
  text-decoration: none;
  transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.btn-arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn-arrow, .contact-email:hover .btn-arrow { transform: translate(2px, -2px); }
.btn[href^="#"]:hover .btn-arrow { transform: translateY(3px); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-deep); }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }
.btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.22); }
.btn-ghost:hover { border-color: rgba(255,255,255,.7); }
.btn-light { border: 1px solid var(--line); color: var(--ink); }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 50; height: 84px; background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .site-header > .container { display: flex; height: 100%; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; line-height: 1; }
.brand img { display: block; width: 36px; height: 36px; border-radius: 9px; object-fit: cover; }
.brand span { font-size: 21px; font-weight: 700; letter-spacing: .2em; }
.site-nav { display: flex; align-items: center; gap: 34px; }
.site-nav a { position: relative; text-decoration: none; color: #3d434a; font-size: 14px; font-weight: 500; transition: color .2s; }
.site-nav a:not(.nav-contact)::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.site-nav a:not(.nav-contact):hover::after { transform: scaleX(1); transform-origin: left; }
.site-nav a:hover { color: var(--blue); }
.nav-contact { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 1px solid #d6dae0; border-radius: 6px; transition: border-color .2s, color .2s, background-color .2s; }
.nav-contact:hover { border-color: var(--blue); }
.nav-toggle { display: none; }

/* Home: header sits on the dark stage */
.home .site-header { position: absolute; inset: 0 0 auto; background: transparent; border-bottom: 1px solid rgba(255,255,255,.08); color: #fff; }
.home .site-nav a { color: rgba(255,255,255,.72); }
.home .site-nav a:hover { color: #fff; }
.home .nav-contact { border-color: rgba(255,255,255,.22); color: #fff !important; }
.home .nav-contact:hover { border-color: var(--blue); background: var(--blue); }

/* ---------- Hero / stage ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--black); color: #fff;
  min-height: min(920px, 100svh);
  display: flex; align-items: center;
  padding: 132px 0 88px;
}
.hero-stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
/* Spotlight cones: thin, soft and directional — a lighting rig, not a blob. */
.beam { position: absolute; top: -10%; transform-origin: 50% 0; will-change: transform, opacity; }
.beam-main {
  left: 70%; width: 760px; height: 118%; margin-left: -380px;
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(23,105,255,.42) 0%, rgba(23,105,255,.16) 45%, rgba(23,105,255,0) 88%);
  filter: blur(14px);
}
.beam-left, .beam-right {
  width: 420px; height: 115%;
  clip-path: polygon(47% 0, 53% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 75%);
  filter: blur(10px);
}
.beam-left { left: 38%; transform: rotate(-24deg); }
.beam-right { left: 88%; transform: rotate(22deg); }
.stage-floor {
  position: absolute; left: 70%; bottom: 7%; width: 760px; height: 150px; margin-left: -380px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(23,105,255,.30) 0%, rgba(23,105,255,.08) 45%, rgba(23,105,255,0) 72%);
}
.hero::after { /* stage edge: one hairline the light falls onto */
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 50%, transparent);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 40px; }
.hero-copy { position: relative; z-index: 2; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.66); }
.hero-kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.2); }
.hero-title {
  /* "Every Event." is 5.28em wide; keep it under the copy column at every width. */
  font-size: clamp(56px, 7.6vw, 112px);
  line-height: .92; letter-spacing: -.055em; font-weight: 600;
  margin: 0 0 32px;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-title .line-inner { display: inline-block; white-space: nowrap; }
.hero-lede { max-width: 30em; margin: 0; font-size: 18px; line-height: 1.65; color: rgba(255,255,255,.7); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.hero-footnote { margin: 36px 0 0; font-size: 13px; color: rgba(255,255,255,.56); }

.js-intro .hero-copy > *, .js-intro .hero-actions .btn, .js-intro .phone-wrap, .js-intro .phone-shadow, .js-intro .hero-stage > * { opacity: 0; }
.js-intro .hero-title { opacity: 1; }
.js-intro [data-hero-line] { transform: translateY(105%); }
.js-intro .hero-actions { opacity: 1; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; perspective: 1600px; }
.phone-wrap { position: relative; will-change: transform; }
.phone {
  position: relative; width: 290px; aspect-ratio: 290 / 600;
  border-radius: 48px; padding: 10px;
  background: linear-gradient(145deg, #3a4148 0%, #1b1f23 38%, #0e1114 62%, #2b3137 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255,255,255,.14),
    inset 0 0 0 4px #0b0d10,
    0 2px 0 rgba(255,255,255,.04),
    0 50px 80px -30px rgba(0,0,0,.9),
    0 30px 120px -20px rgba(23,105,255,.28);
  transform: rotateY(-16deg) rotateX(6deg) rotateZ(3deg);
  transform-style: preserve-3d;
}
.phone-btn { position: absolute; width: 3px; border-radius: 2px; background: #2a3036; }
.phone-btn-a { left: -2px; top: 120px; height: 28px; }
.phone-btn-b { left: -2px; top: 164px; height: 52px; }
.phone-btn-c { right: -2px; top: 150px; height: 76px; }
.phone-screen {
  position: relative; height: 100%; border-radius: 38px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  background:
    radial-gradient(120% 60% at 50% 105%, rgba(23,105,255,.28) 0%, rgba(23,105,255,0) 60%),
    linear-gradient(170deg, #0b0f16 0%, #06080c 60%, #071021 100%);
}
.phone-island { position: absolute; top: 12px; left: 50%; width: 92px; height: 27px; margin-left: -46px; border-radius: 20px; background: #000; }
.phone-inner { margin: auto; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 20px; }
.phone-app-icon { display: block; width: 112px; height: 112px; border-radius: 26px; object-fit: cover; box-shadow: 0 18px 40px -10px rgba(23,105,255,.45); }
.phone-name { margin: 26px 0 0 .3em; font-size: 28px; font-weight: 700; letter-spacing: .3em; line-height: 1; }
.phone-tagline { margin-top: 14px; font-size: 12px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.55); }
.phone-glare {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 32%);
}
.phone-home-indicator { position: absolute; bottom: 10px; left: 50%; width: 108px; height: 4px; margin-left: -54px; border-radius: 4px; background: rgba(255,255,255,.7); }
.phone-shadow {
  position: absolute; left: 50%; bottom: -34px; width: 260px; height: 36px; margin-left: -130px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(0,0,0,.85), rgba(0,0,0,0) 70%);
  filter: blur(4px); z-index: -1;
}

/* ---------- About ---------- */
.about { padding: 140px 0 0; background: var(--white); scroll-margin-top: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
.about-title { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.045em; max-width: 10.5em; }
.about-body p { margin: 0; color: var(--slate); font-size: 17px; line-height: 1.7; max-width: 34em; }
.about-body .about-lead { color: var(--graphite); font-size: 21px; line-height: 1.5; letter-spacing: -.01em; margin-bottom: 20px; }
.rule { height: 1px; border: 0; margin: 120px 0 0; background: var(--line); transform-origin: left; }

/* ---------- Features: the ledger ---------- */
.features { padding: 112px 0 140px; background: var(--white); }
.features-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; margin-bottom: 80px; }
.features-head p { margin: 0; font-size: 17px; line-height: 1.7; color: var(--slate); max-width: 26em; }

.ledger { --spine: 120px; }
.ledger-heads, .ledger-body { display: grid; grid-template-columns: minmax(0, 1fr) var(--spine) minmax(0, 1fr); }
.ledger-heads { align-items: center; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.ledger-head { display: flex; align-items: center; gap: 14px; }
.ledger-head-talent { justify-content: flex-end; text-align: right; flex-direction: row-reverse; }
.ledger-head h3 { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.03em; }
.ledger-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); color: var(--blue); flex: none; }
.ledger-icon svg { width: 22px; height: 22px; }
.ledger-mark { display: grid; place-items: center; }
.ledger-switch { display: none; }
@keyframes ledger-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ledger-mark img { width: 52px; height: 52px; border-radius: 13px; object-fit: cover; }

/* Both lists share the body's five row tracks (subgrid), so a talent row and its
   agency counterpart always have the same height and meet the spine together. */
.ledger-body { position: relative; grid-template-rows: repeat(5, auto); }
.ledger-spine { grid-column: 2; grid-row: 1 / -1; justify-self: center; width: 1px; height: 100%; background: var(--line); position: relative; }
.ledger-spine span { position: absolute; inset: 0; background: rgba(23,105,255,.42); transform-origin: top; transform: scaleY(0); }
html:not(.js) .ledger-spine span, .reduced .ledger-spine span { transform: scaleY(1); }
.ledger-list { list-style: none; margin: 0; padding: 0; grid-row: 1 / -1; }
@supports (grid-template-rows: subgrid) {
  .ledger-list { display: grid; grid-template-rows: subgrid; }
  .ledger-item { display: flex; flex-direction: column; justify-content: center; }
}
.ledger-talent { grid-column: 1; }
.ledger-agency { grid-column: 3; }
.ledger-item { position: relative; padding: 30px 0; border-bottom: 1px solid var(--line); min-height: 118px; transition: color .3s var(--ease); }
.ledger-talent .ledger-item { text-align: right; padding-right: 8px; }
.ledger-agency .ledger-item { padding-left: 8px; }
.ledger-item h4 { font-size: 20px; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; margin-bottom: 8px; transition: color .3s var(--ease); }
.ledger-item p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.6; text-wrap: pretty; }
.ledger-talent .ledger-item p { margin-left: auto; max-width: 30em; }
/* connector tick + node on the spine */
.ledger-item::after {
  content: ''; position: absolute; top: 50%; width: calc(var(--spine) / 2 - 8px); height: 1px;
  background: var(--blue); transform: scaleX(0); transition: transform .45s var(--ease);
}
.ledger-talent .ledger-item::after { left: 100%; transform-origin: left; }
.ledger-agency .ledger-item::after { right: 100%; transform-origin: right; }
.ledger-item::before {
  content: ''; position: absolute; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%;
  background: var(--white); border: 1px solid #d3d7dd; transition: background-color .3s, border-color .3s;
}
.ledger-talent .ledger-item::before { left: calc(100% + var(--spine) / 2 - 3.5px); }
.ledger-agency .ledger-item::before { display: none; }
.ledger-item.is-linked h4 { color: var(--blue); }
.ledger-item.is-linked::after { transform: scaleX(1); }
.ledger-talent .ledger-item.is-linked::before { background: var(--blue); border-color: var(--blue); }

/* ---------- How it works ---------- */
.flow { position: relative; padding: 112px 0 120px; background: var(--black); color: #fff; overflow: hidden; }
.flow-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; margin-bottom: 72px; }
.flow-head h2 { font-size: clamp(40px, 5.4vw, 80px); line-height: .98; letter-spacing: -.045em; }
.flow-head p { margin: 0; color: rgba(255,255,255,.6); font-size: 17px; line-height: 1.7; max-width: 24em; }
.flow-track { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.flow-line { position: absolute; left: 0; right: 0; top: 68px; height: 1px; background: var(--line-dark); }
.flow-line span { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(0); }
html:not(.js) .flow-line span, .reduced .flow-line span { transform: scaleX(1); }
.flow-step { position: relative; padding-top: 0; }
.flow-num { display: block; height: 24px; font-size: 15px; line-height: 24px; font-weight: 500; color: rgba(255,255,255,.56); font-variant-numeric: tabular-nums; transition: color .4s var(--ease); }
.flow-node {
  position: absolute; top: 62px; left: 0; width: 13px; height: 13px; border-radius: 50%;
  background: var(--black); border: 1px solid #3a4248; transition: background-color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.flow-step h3 { margin-top: 74px; font-size: clamp(30px, 3vw, 44px); letter-spacing: -.04em; line-height: 1; }
.flow-step p { margin: 16px 0 0; color: rgba(255,255,255,.6); font-size: 16px; line-height: 1.65; max-width: 22em; }
.flow-step.is-active .flow-node, html:not(.js) .flow-node, .reduced .flow-node { background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(23,105,255,.18); }
.flow-step.is-active .flow-num, html:not(.js) .flow-num, .reduced .flow-num { color: var(--blue-soft); }

/* ---------- Contact ---------- */
.contact { padding: 120px 0; background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: end; }
.contact h2 { font-size: clamp(34px, 4vw, 56px); }
.contact-grid p { margin: 18px 0 0; color: var(--slate-on-paper); font-size: 17px; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-email {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: clamp(22px, 2.3vw, 32px); font-weight: 600; letter-spacing: -.025em; line-height: 1.2;
  text-decoration: none; color: var(--ink);
  padding-bottom: 8px; border-bottom: 2px solid var(--ink);
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.contact-email:hover { color: var(--blue); border-color: var(--blue); }
.contact-phone { font-size: 17px; color: var(--graphite); text-decoration: none; }
.contact-phone:hover { color: var(--blue); }

/* ---------- Company information ---------- */
.company { padding: 120px 0; background: var(--white); border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.company-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 72px; align-items: start; }
.company h2 { font-size: clamp(34px, 4vw, 56px); }
.company .section-kicker { color: var(--blue-deep); }
.company-lead { margin: 22px 0 0; color: var(--graphite); font-size: 18px; line-height: 1.6; max-width: 30em; }
.company-lead strong { color: var(--ink); font-weight: 600; }
.company-facts { margin: 0; border-top: 1px solid var(--ink); }
.company-facts > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.company-facts dt { color: var(--slate-on-paper); font-size: 14px; line-height: 1.5; padding-top: 2px; }
.company-facts dd { margin: 0; color: var(--ink); font-size: 17px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.company-facts a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.company-facts a:hover { color: var(--blue); border-color: var(--blue); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #fff; padding: 72px 0 32px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; padding-bottom: 56px; align-items: flex-start; }
.footer .brand { color: #fff; }
.footer-brand p { margin: 18px 0 0; color: rgba(255,255,255,.5); font-size: 14px; }
.footer-info { display: flex; gap: 88px; }
.footer-title { font-size: 13px; font-weight: 500; letter-spacing: 0; color: rgba(255,255,255,.56); margin: 0 0 18px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer a { text-decoration: none; color: rgba(255,255,255,.82); font-size: 15px; transition: color .2s; }
.footer a:hover { color: var(--blue-soft); }
.footer .brand:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-top: 26px; border-top: 1px solid var(--line-dark); color: rgba(255,255,255,.8); font-size: 13px; }
.footer-legal { display: flex; flex-direction: column; gap: 4px; }
.footer-owner { white-space: nowrap; color: #fff; font-weight: 600; } /* keep the business name on one line */
.footer-reg { white-space: nowrap; }
@media (min-width: 901px) { .footer-bottom > span:last-child { flex-shrink: 0; } } /* keep the right-hand footer text on one line */

/* ---------- Secondary pages ---------- */
.section-kicker { margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--blue); }
.inner-page { background: #fff; }
.page-banner { padding: 72px 0 52px; background: var(--paper); border-bottom: 1px solid var(--line); }
.page-banner h1 { color: var(--ink); font-size: clamp(36px, 4.4vw, 56px); line-height: 1.02; letter-spacing: -.045em; font-weight: 600; margin: 0 0 14px; }
.page-banner p { color: var(--slate-on-paper); margin: 0; font-size: 15px; }
.page-banner .section-kicker { color: var(--blue-deep); margin-bottom: 14px; }
/* Banner shares the document column so the title and body text align. */
.page-banner .container { max-width: 760px; }
.document-content { max-width: 760px; padding-top: 56px; padding-bottom: 96px; font-size: 16px; line-height: 1.75; color: #4b525a; }
.document-content h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.02em; margin: 40px 0 12px; color: var(--ink); }
.document-content h2:first-child { margin-top: 0; }
.document-content p { margin: 0 0 16px; }
.document-content ul { margin-top: 0; padding-left: 22px; }
.document-content li { margin: 6px 0; }
.document-content a { color: var(--blue-deep); }
.support-box { padding: 32px; border: 1px solid var(--line); border-radius: 8px; margin-top: 28px; }
.support-box p { margin: 8px 0; }
.inner-page .footer { padding: 32px 0; }
.inner-page .footer-bottom a { font-size: 13px; color: rgba(255,255,255,.7); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .phone { width: 250px; border-radius: 42px; }
  .phone-screen { border-radius: 33px; }
  .phone-app-icon { width: 96px; height: 96px; border-radius: 22px; }
  .ledger { --spine: 88px; }
}

@media (max-width: 900px) {
  :root { --gutter: 56px; }
  .hero { min-height: 0; padding: 136px 0 72px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 72px; }
  .hero-title { font-size: clamp(56px, 12vw, 104px); }
  .hero-visual { padding-bottom: 20px; }
  .beam-main, .stage-floor { left: 50%; }
  .beam-main { top: 30%; height: 80%; }
  .stage-floor { bottom: 2%; }
  .beam-left { left: 8%; top: 25%; }
  .beam-right { left: 80%; top: 25%; }

  .about { padding-top: 104px; }
  .about-grid, .features-head, .flow-head, .contact-grid, .company-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rule { margin-top: 88px; }
  .features { padding: 88px 0 104px; }
  .features-head { margin-bottom: 56px; }
  .flow { padding: 104px 0 112px; }
  .flow-head { margin-bottom: 64px; }
  .flow-track { gap: 28px; }
  .contact { padding: 88px 0; }
  .company { padding: 88px 0; }
  .contact-actions { margin-top: 12px; }
}

/* Mobile navigation (home only — inner pages keep their two links inline).
   The collapsible menu needs JS, so it is gated on .has-js (set in <head>);
   without JS the header keeps two inline links instead. */
@media (max-width: 760px) {
  .has-js .home .nav-toggle {
    display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -10px;
    background: transparent; border: 0; color: #fff; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 22px; height: 1.5px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ''; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -7px; }
  .nav-toggle-bars::after { top: 7px; }
  .has-js .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .has-js .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  .has-js .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  .has-js .home .site-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px calc(var(--gutter) / 2) 24px;
    background: var(--black); border-bottom: 1px solid var(--line-dark);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .has-js .home .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s; }
  .has-js .home .site-nav a { padding: 16px 0; font-size: 20px; color: #fff; border-bottom: 1px solid var(--line-dark); }
  .has-js .home .site-nav a::after { display: none; }
  .has-js .home .site-nav .nav-contact { height: auto; margin-top: 20px; justify-content: center; padding: 16px; border: 0; background: var(--blue); border-radius: 6px; font-size: 16px; }
  .has-js .home .site-header.menu-open { background: var(--black); }
  /* Dim the page behind the open menu; clicking it closes the menu. */
  .has-js .nav-backdrop {
    position: fixed; inset: 0; z-index: 40;
    background: rgba(10,10,10,.6);
    opacity: 0; visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s linear .3s;
  }
  .has-js .nav-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .3s var(--ease), visibility 0s; }
  /* Lock background scroll while the menu is open */
  html.menu-locked, html.menu-locked body { overflow: hidden; }
  html.menu-locked { scrollbar-gutter: stable; } /* no sideways jump where scrollbars take space */
  html:not(.has-js) .home .site-nav { gap: 20px; }
  html:not(.has-js) .home .site-nav a[href="#about"],
  html:not(.has-js) .home .site-nav a[href="#how-it-works"],
  html:not(.has-js) .home .site-nav a[href="#company"] { display: none; }
}

@media (max-width: 640px) {
  :root { --gutter: 40px; }
  h2 { font-size: clamp(30px, 8vw, 40px); }
  .site-header { height: 72px; }
  .brand img { width: 32px; height: 32px; border-radius: 8px; }
  .brand span { font-size: 19px; }
  .site-nav { gap: 18px; }
  .site-nav a { font-size: 13px; }
  .nav-contact { height: 36px; padding: 0 12px; }

  .hero { padding: 112px 0 56px; }
  .hero-kicker { margin-bottom: 22px; font-size: 13px; }
  .hero-title { font-size: clamp(50px, 15.4vw, 72px); margin-bottom: 24px; }
  .hero-lede { font-size: 16px; }
  .hero-actions { margin-top: 32px; gap: 10px; }
  .hero-actions .btn { flex: 1 1 0; min-width: 0; padding: 0 14px; }
  .hero-footnote { margin-top: 24px; }
  .hero-grid { gap: 46px; }
  .phone { width: 231px; border-radius: 38px; padding: 8px; transform: rotateY(-10deg) rotateX(4deg) rotateZ(2deg); }
  .phone-screen { border-radius: 31px; }
  .phone-island { width: 72px; height: 22px; margin-left: -36px; top: 10px; }
  .phone-app-icon { width: 90px; height: 90px; border-radius: 21px; }
  .phone-name { font-size: 22px; margin-top: 20px; }
  .phone-tagline { font-size: 11px; }
  .phone-home-indicator { width: 84px; margin-left: -42px; }
  .phone-btn-a { top: 92px; } .phone-btn-b { top: 128px; height: 40px; } .phone-btn-c { top: 116px; height: 58px; }
  .beam-main { width: 520px; margin-left: -260px; }
  .stage-floor { width: 480px; margin-left: -240px; height: 110px; }

  .about { padding-top: 80px; }
  .about-grid { gap: 18px; }
  .about-title { font-size: clamp(38px, 11vw, 52px); }
  .about-body .about-lead { font-size: 19px; }
  .about-body p { font-size: 16px; }
  .rule { margin-top: 62px; }

  .features { padding: 72px 0 88px; }
  .features-head { margin-bottom: 40px; }
  .features-head p { font-size: 16px; }
  /* Ledger: one compact list at a time, chosen with the switch (JS),
     or both lists stacked under their own headings (no JS). */
  .ledger-heads { display: none; }
  .ledger-body { display: block; }
  .ledger-spine { display: none; }
  .ledger-list { position: relative; display: block; }
  .ledger-item { display: block; }
  .ledger-talent .ledger-item, .ledger-agency .ledger-item { text-align: left; padding: 15px 0 15px 20px; min-height: 0; }
  .ledger-talent .ledger-item p { margin-left: 0; }
  .ledger-item::after { display: none; }
  .ledger-item::before, .ledger-agency .ledger-item::before {
    display: block; left: 0 !important; top: 23px; margin-top: 0;
    width: 7px; height: 7px; border: 0; background: var(--blue);
  }
  .ledger-item:last-child { border-bottom: 0; }
  .ledger-item h4 { font-size: 17px; line-height: 1.3; margin-bottom: 3px; }
  .ledger-item p { font-size: 14.5px; line-height: 1.5; }

  .has-js .ledger-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    padding: 4px; margin-bottom: 8px;
    background: var(--paper); border-radius: 8px;
  }
  .ledger-switch button {
    min-height: 44px; padding: 0 12px; border: 0; border-radius: 6px;
    background: transparent; color: var(--slate-on-paper);
    font: 600 15px/1 var(--font); letter-spacing: -.01em; cursor: pointer;
    transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  }
  .ledger-switch button[aria-pressed="true"] { background: var(--white); color: var(--blue-deep); box-shadow: 0 1px 2px rgba(10,10,10,.08), 0 0 0 1px rgba(23,105,255,.3); }
  .ledger-switch button:focus-visible { outline-offset: 2px; }
  .has-js [data-ledger-view="talent"] .ledger-agency,
  .has-js [data-ledger-view="agency"] .ledger-talent { display: none; }
  .has-js .ledger-list.is-entering { animation: ledger-in .35s var(--ease); }

  html:not(.has-js) .ledger-list + .ledger-list { margin-top: 48px; }
  html:not(.has-js) .ledger-list::before {
    display: block; padding-bottom: 14px; border-bottom: 1px solid var(--ink);
    font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--ink);
  }
  html:not(.has-js) .ledger-talent::before { content: 'For Talents'; }
  html:not(.has-js) .ledger-agency::before { content: 'For Agencies'; }

  .flow { padding: 88px 0 96px; }
  .flow-head h2 { font-size: clamp(38px, 11vw, 52px); }
  .flow-head p { font-size: 16px; }
  .flow-head { margin-bottom: 48px; }
  .flow-track { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-left: 40px; }
  .flow-line { left: 6px; right: auto; top: 6px; bottom: 6px; width: 1px; height: auto; }
  .flow-line span { transform-origin: top; transform: scaleY(0); }
  html:not(.js) .flow-line span, .reduced .flow-line span { transform: scaleY(1); }
  .flow-node { top: 3px; left: -40px; }
  .flow-num { margin-bottom: 12px; }
  .flow-step h3 { margin-top: 0; font-size: 32px; }
  .flow-step p { font-size: 16px; }

  .contact { padding: 72px 0; }
  .company { padding: 72px 0; }
  .company-lead { font-size: 16px; }
  .company-facts > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 14px 0; }
  .company-facts dd { font-size: 16px; }
  .contact-grid p { font-size: 16px; }
  .contact-email { font-size: clamp(20px, 6.2vw, 26px); }

  .footer { padding: 56px 0 28px; }
  .footer-top { flex-direction: column; gap: 40px; padding-bottom: 40px; }
  .footer-info { gap: 48px; width: 100%; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
  .inner-page .footer-bottom { gap: 10px; }

  .page-banner { padding: 48px 0 40px; }
  .document-content { padding-top: 32px; padding-bottom: 72px; }
  .support-box { padding: 24px 20px; }
}

@media (max-width: 380px) {
  .hero-actions .btn { font-size: 14px; gap: 8px; }
  .footer-info { gap: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
