/* SIDExSIDE Media Development
   Visual system: see DESIGN.md. Palette and type come from the brand kit.
   The cyan->purple gradient has exactly one job: the seam where two sides meet. */

:root {
  --bg: #090B11;
  --panel: #10131C;
  --ink: #FFFFFF;
  --ink-muted: #A5ACB8;   /* body copy: 8.61:1 on --bg */
  --cyan: #00E5FF;        /* 12.79:1 */
  --purple: #7A5CFF;      /* 4.50:1, accents and large display only, never body */
  --rule: #232838;
  --seam: linear-gradient(90deg, var(--cyan), var(--purple));

  --display: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --step-0: 1rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.5rem + 2.2vw, 3rem);
  --step-4: clamp(2.6rem, 1.6rem + 4vw, 4.75rem);

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --shell: 1200px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1); /* ease-out-expo */

  --z-sticky: 100;
  --z-nav: 200;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-muted);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65; /* light-on-dark needs the extra */
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.03em; /* floor is -0.04em */
  text-wrap: balance;
  margin: 0;
}

p { text-wrap: pretty; margin: 0; }
img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--cyan); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 2px;
}

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--gutter); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -100%; left: var(--gutter); z-index: var(--z-nav);
  background: var(--panel); color: var(--ink); padding: 0.75rem 1rem;
  border: 1px solid var(--rule); text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---- The seam: the one place the gradient lives ------------------------- */

.seam {
  border: 0;
  margin: 0;
  align-self: stretch;
  background: var(--seam);
}
.seam-v { width: 2px; min-height: 100%; }
.seam-h { height: 2px; width: 100%; }

/* ---- Data labels: mono earns its place by labelling real data ---------- */

.data {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---- Header ------------------------------------------------------------ */

/* Solid, not translucent. Flat panels and sharp rules; no glass. */
.site-header {
  position: sticky; top: 0; z-index: var(--z-sticky);
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}

.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 68px;
}

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
/* The mark is 950x703 (1.351:1). Never force it square. */
.brand-mark { width: 41px; height: 30px; flex: none; }
.brand-name {
  font-family: var(--display); font-weight: 700; font-size: 1rem;
  letter-spacing: 0.02em; display: block;
}
.brand-sub {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-muted); display: block;
}

.site-nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); }
.site-nav a {
  color: var(--ink-muted); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s var(--ease);
}
.site-nav a:hover { color: var(--ink); }

/* ---- Hero: two sides, a seam between them ------------------------------ */

.hero { padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) 2px minmax(0, 0.85fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}

.hero h1 { font-size: var(--step-4); font-weight: 700; }
.hero h1 .x { color: var(--cyan); font-weight: 500; }

.hero-lede {
  margin-top: 1.5rem;
  font-size: var(--step-1);
  max-width: 46ch; /* inside the 65-75ch cap; lede runs short on purpose */
  color: var(--ink-muted);
}

.hero-status { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.hero-status .dot { color: var(--cyan); }

.hero-mark { width: min(100%, 340px); margin-inline: auto; }

/* ---- Sections ---------------------------------------------------------- */

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); border-top: 1px solid var(--rule); }
.section h2 { font-size: var(--step-3); font-weight: 600; }
.section-intro { margin-top: 1rem; max-width: 62ch; }

/* ---- Roster: billing, not a card grid ---------------------------------- */

/* Reads as a fight card, but the divider joins instead of opposing.
   Built to hold at n=1, because the roster genuinely is one creator. */
.billing {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
.billing-side { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
.billing-side.is-company { text-align: right; color: var(--ink); font-size: var(--step-2); }
.billing-side.is-talent { text-align: left; color: var(--ink); font-size: var(--step-2); }
.billing-side small {
  display: block; margin-top: 0.35rem;
  font-family: var(--mono); font-size: 0.65rem; font-weight: 400;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-muted);
}
.billing-x { width: clamp(44px, 7vw, 68px); }

.roster-entry {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.roster-stage {
  position: relative;
  border: 1px solid var(--rule);
  background: #000;
}
.roster-stage img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; display: block; }
.roster-stage .seam-h { position: absolute; inset: auto 0 0 0; }

.roster-body h3 { font-size: var(--step-2); font-weight: 600; }
.roster-body p { margin-top: 1rem; max-width: 60ch; }

.handles { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: 0; }
.handles li { border-top: 1px solid var(--rule); }
.handles li:last-child { border-bottom: 1px solid var(--rule); }
.handles a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.7rem 0; text-decoration: none; color: var(--ink);
  transition: color 0.2s var(--ease);
}
.handles a:hover { color: var(--cyan); }
.handles .platform { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.handles .handle { font-family: var(--mono); font-size: 0.85rem; }

/* ---- Practice: a definition list with rules, not identical cards ------- */

.practice { margin-top: clamp(2rem, 4vw, 3rem); }
.practice > div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(0.5rem, 3vw, 2.5rem);
  padding-block: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--rule);
}
.practice > div:last-child { border-bottom: 1px solid var(--rule); }
.practice dt {
  font-family: var(--display); font-weight: 600; color: var(--ink);
  font-size: var(--step-1); letter-spacing: -0.01em;
}
.practice dd { margin: 0; max-width: 62ch; }

/* ---- Apply ------------------------------------------------------------- */

.apply-inner { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); max-width: 62ch; }
.mailto {
  font-family: var(--display); font-weight: 600; letter-spacing: -0.02em;
  font-size: var(--step-2); color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.75rem; width: fit-content;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid transparent;
  background-image: var(--seam);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 2px;
  transition: color 0.2s var(--ease);
}
.mailto:hover { color: var(--cyan); }

/* ---- Footer ------------------------------------------------------------ */

.site-footer { border-top: 1px solid var(--rule); padding-block: 2.5rem 3rem; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; justify-content: space-between; align-items: flex-start; }
.lineage { max-width: 40ch; }
.lineage strong { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-links a { color: var(--ink-muted); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }
.colophon { margin-top: 2rem; font-size: 0.78rem; color: var(--ink-muted); }

/* ---- Legal documents --------------------------------------------------- */
/* Plain, readable HTML. Platform reviewers and crawlers must reach these
   without JS and without a login wall. */

.doc { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem); }
.doc-head { padding-bottom: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--rule); }

/* App identity lockup: the same mark and name a user sees on the OAuth consent
   screen, so the page and the consent screen visibly match. */
.app-id { display: flex; align-items: center; gap: clamp(0.9rem, 2.5vw, 1.5rem); }
.app-id-mark { width: clamp(60px, 9vw, 88px); height: auto; flex: none; }
.doc-head h1 { font-size: var(--step-3); font-weight: 600; }
.doc-head .updated { margin-top: 0.9rem; }
.doc-lede { margin-top: 1.25rem; max-width: 68ch; font-size: var(--step-1); }

.doc-body { max-width: 72ch; }
.doc-body section { padding-top: clamp(2rem, 4vw, 2.75rem); }
.doc-body h2 { font-size: var(--step-2); font-weight: 600; }
.doc-body h3 { font-size: var(--step-1); font-weight: 600; margin-top: 1.75rem; }
.doc-body p, .doc-body ul, .doc-body ol { margin-top: 1rem; }
.doc-body ul, .doc-body ol { padding-left: 1.25rem; }
.doc-body li { margin-top: 0.5rem; }
.doc-body li::marker { color: var(--purple); } /* large-enough glyph; decorative */

.callout {
  margin-top: 1.5rem;
  padding: 1.15rem 1.25rem;
  background: var(--panel);
  border: 1px solid var(--rule);
}
.callout strong { color: var(--ink); }

.doc-toc { margin-top: 1.75rem; padding: 0; list-style: none; display: grid; gap: 0; }
.doc-toc li { border-top: 1px solid var(--rule); }
.doc-toc li:last-child { border-bottom: 1px solid var(--rule); }
.doc-toc a {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.85rem 0; text-decoration: none; color: var(--ink);
}
.doc-toc a:hover { color: var(--cyan); }
.doc-toc .what { font-size: 0.85rem; color: var(--ink-muted); font-family: var(--body); text-align: right; }

.doc-nav { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--rule); }
.doc-nav a { color: var(--ink-muted); }

/* ---- Motion: two sides converge on the seam. Once, on load. ------------ */
/* Content is visible by default; animation only enhances it, so a crawler
   or a background tab never gets a blank page. */

@media (prefers-reduced-motion: no-preference) {
  .converge-left { animation: slide-from-left 0.9s var(--ease) both; }
  .converge-right { animation: slide-from-right 0.9s var(--ease) both; }
  .hero .seam-v { animation: seam-open 1.1s var(--ease) both; transform-origin: center; }
}

@keyframes slide-from-left {
  from { opacity: 0; transform: translate3d(-1.5rem, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes slide-from-right {
  from { opacity: 0; transform: translate3d(1.5rem, 0, 0); }
  to { opacity: 1; transform: none; }
}
@keyframes seam-open {
  from { transform: scaleY(0); }
  to { transform: scaleY(1); }
}

/* ---- Responsive -------------------------------------------------------- */

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .seam-v { display: none; }
  .hero-mark { max-width: 220px; margin-inline: 0; }
  .roster-entry { grid-template-columns: 1fr; }
  .practice > div { grid-template-columns: 1fr; gap: 0.5rem; }
  .billing { grid-template-columns: 1fr auto 1fr; gap: 0.75rem; }
  .billing-side.is-company, .billing-side.is-talent { font-size: 1.15rem; }
}

@media (max-width: 560px) {
  .site-nav { gap: 1rem; }
  .site-nav a { font-size: 0.82rem; }
  .brand-sub { display: none; }
}
