/* Roster brand foundation. Tokens, type, grain, shapes, motion primitives.
   Fraunces (display, humanist serif with soft axis) + Inter (UI). */

/* Fraunces + Inter are linked from each page head (no @import: it chained the font CSS behind this file). */

/* metric-matched fallbacks: text takes the same space before and after the web fonts load (no layout shift) */
@font-face { font-family: "Fraunces Fallback"; font-style: normal; src: local("Georgia"), local("Times New Roman"), local("Times"); size-adjust: 84.8%; ascent-override: 115.6%; descent-override: 30.7%; line-gap-override: 0%; }
@font-face { font-family: "Fraunces Fallback"; font-style: italic; src: local("Georgia Italic"), local("Georgia-Italic"), local("Times New Roman Italic"), local("Times-Italic"); size-adjust: 76.15%; ascent-override: 128.7%; descent-override: 34.1%; line-gap-override: 0%; }
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Helvetica"); size-adjust: 107.07%; ascent-override: 90.6%; descent-override: 22.4%; line-gap-override: 0%; }

:root {
  color-scheme: light;
  /* surfaces */
  --paper: #F6F3EC;
  --paper-2: #EDE8DD;
  --cream: #FBF9F4;
  --ink: #141210;
  --ink-2: #332F2A;
  --mute: #6E675D;
  --line: rgba(20, 18, 16, .09);
  --line-2: rgba(20, 18, 16, .16);
  /* the brand gradient stops. Every person on Roster gets a blend of these. */
  --coral: #FF6A45;
  --apricot: #FFB45A;
  --rose: #F49AB8;
  --lilac: #B49CF2;
  --moss: #9ED37F;
  --sky: #7FBDF2;
  --plum: #3A1E5C;
  --ember: #E8502C;
  /* motion */
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: linear(0, 0.0047 0.4%, 0.0191 0.9%, 0.0784 1.9%, 0.1877 3.2%, 0.4296 5.9%, 0.5987 8%, 0.7357 10%, 0.8595 12.1%, 0.9598 14.4%, 1.0179 16.3%, 1.0581 18.5%, 1.0772 20.3%, 1.0895 22.3%, 1.0915 24.8%, 1.0809 28.3%, 1.0497 33.9%, 1.0202 40.3%, 1.0032 48.2%, 0.9955 58.6%, 0.9977 76.3%, 1);
  --ease-page: cubic-bezier(.89, .08, .36, .91);
  --dur-press: 100ms;
  --dur-reveal: 900ms;
  --rise: 16px;
  --font-display: "Fraunces", "Fraunces Fallback", Georgia, serif;
  --font-ui: "Inter", "Inter Fallback", ui-sans-serif, system-ui, sans-serif;
  /* R8 layout rhythm. Gaps are measured content to content (last line of one section to the first line of the next).
     --sec-gap: two ordinary sections. --sec-gap-tight: a section that belongs to the one before it (logo or proof strip,
     closing CTA card, stat row under its story). --sec-gap-hero: hero visual to the first section.
     --sec-pad is the half gap each section carries on its top and bottom edge, so any two sections add up to one gap. */
  --sec-gap: clamp(104px, 8vw + 56px, 176px);
  --sec-gap-tight: clamp(56px, 3vw + 40px, 88px);
  --sec-gap-hero: clamp(88px, 5vw + 64px, 136px);
  --sec-pad: calc(var(--sec-gap) / 2);
  --sec-pad-tight: calc(var(--sec-gap-tight) / 2);
  --hero-pb: calc(var(--sec-gap-hero) - var(--sec-pad)); /* hero bottom + the next section's half gap = --sec-gap-hero */
  /* page start: viewport top to the hero eyebrow chip, then chip to headline (same on every page) */
  --hero-top: clamp(120px, 3vw + 108px, 152px);
  --hero-eb-gap: clamp(2px, .4vw, 6px); /* the H1 line box already carries ~25px of air above the capitals */
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-ui); font-feature-settings: "cv11", "ss01", "cv02", "calt"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--apricot); color: var(--ink); }

/* ---------- type ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -.025em; line-height: .98; font-variation-settings: "opsz" 144, "SOFT" 50; }
.display em, .display i { font-style: italic; font-weight: 400; }
.display .soft { font-weight: 300; }
/* R8 eyebrows. Section label: sentence case, Inter 500, muted, no dot. Hero label (the eyebrow right above the h1):
   a small capsule with a hairline ring in the brand gradient over a soft translucent fill. The ring is a masked
   pseudo-element, so the fill can stay translucent on light and dark pages. Dark pages set --eb-fg / --eb-fill / --eb-ring. */
.eyebrow { font-family: var(--font-ui); font-size: 14px; font-weight: 500; letter-spacing: -.003em; line-height: 1.3; text-transform: none; color: var(--mute); }
.eyebrow > .pip, .eyebrow > .tl-pip, .eyebrow > .hc-pip { display: none !important; }
.eyebrow:has(+ h1), .eyebrow.eb-chip {
  --eb-fg: var(--ink-2);
  --eb-fill: rgba(255, 253, 249, .62);
  --eb-ring: linear-gradient(100deg, rgba(232, 80, 44, .5), rgba(255, 138, 102, .42) 30%, rgba(224, 115, 155, .42) 62%, rgba(156, 123, 224, .55));
  --eb-glow: 0 1px 1px rgba(20, 18, 16, .03), 0 10px 26px -16px rgba(232, 80, 44, .35);
  position: relative; display: inline-flex; align-items: center; gap: 8px; width: fit-content; max-width: 100%; margin: 0; vertical-align: top;
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: -.005em; line-height: 1.2; text-transform: none; white-space: normal; text-wrap: balance;
  color: var(--eb-fg); background: var(--eb-fill); box-shadow: var(--eb-glow);
}
.eyebrow:has(+ h1)::before, .eyebrow.eb-chip::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--eb-ring);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.eyebrow:has(+ h1) + h1 { margin-top: var(--hero-eb-gap); }
/* dark pages (ugc, ai-labs) declare color-scheme: dark on :root, so the chip follows it without a page class */
@supports (color: light-dark(#000, #fff)) {
  .eyebrow:has(+ h1), .eyebrow.eb-chip {
    --eb-fg: light-dark(var(--ink-2), rgba(246, 243, 236, .9));
    --eb-fill: light-dark(rgba(255, 253, 249, .62), rgba(246, 243, 236, .055));
    --eb-ring: linear-gradient(100deg, light-dark(rgba(232, 80, 44, .5), rgba(255, 180, 90, .6)), light-dark(rgba(255, 138, 102, .42), rgba(255, 138, 102, .5)) 30%, light-dark(rgba(224, 115, 155, .42), rgba(244, 154, 184, .5)) 62%, light-dark(rgba(156, 123, 224, .55), rgba(180, 156, 242, .62)));
    --eb-glow: 0 1px 1px light-dark(rgba(20, 18, 16, .03), rgba(0, 0, 0, .2)), 0 10px 26px -16px light-dark(rgba(232, 80, 44, .35), rgba(255, 138, 102, .4));
  }
}
@media (max-width: 639px) { .eyebrow:has(+ h1), .eyebrow.eb-chip { font-size: 13px; padding: 6px 12px; } }

/* R8 brand word: when the accent word of a headline is "Roster" it keeps the gradient but stays roman
   (the italic is for ordinary words). Roman letters have no italic overhang, so the clip padding shrinks. */
.display em.em-brand, .display i.em-brand, h1 em.em-brand, h2 em.em-brand { font-style: normal; padding-left: 0; padding-right: .03em; margin-left: 0; margin-right: -.03em; }
.lede { font-size: clamp(17px, 1.35vw, 21px); line-height: 1.5; color: var(--ink-2); }
.tnum { font-variant-numeric: tabular-nums; }

/* ---------- grain ---------- */
.grain:not(.absolute):not(.fixed):not(.curtain) { position: relative; }
.grain::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: multiply; opacity: var(--grain, .12);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 220px 220px; }
.grain-page::before { content: ""; position: fixed; inset: -50%; z-index: 70; pointer-events: none; opacity: .045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain-move 7s steps(9) infinite; }
@keyframes grain-move { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-1%,-2%)} 80%{transform:translate(3%,1%)} 100%{transform:translate(-2%,3%)} }

/* ---------- shapes: the brand vocabulary ---------- */
.shape-arch { border-radius: 999px 999px 24px 24px; }
.shape-arch-lg { border-radius: 999px 999px 32px 32px; }
.shape-pill { border-radius: 999px; }
.shape-leaf { border-radius: 70% 0 70% 0 / 70% 0 70% 0; }
.shape-seat { border-radius: 24px 24px 999px 999px; }
.shape-blob { border-radius: 58% 42% 55% 45% / 48% 58% 42% 52%; }
.shape-tv { border-radius: 36% / 28%; }

/* gradient surface: a canvas (webgl) sits inside, css fallback behind it */
.gsurf:not(.absolute):not(.fixed):not(.curtain) { position: relative; }
.gsurf { overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--g0, var(--coral)), var(--g1, var(--apricot)) 45%, var(--g2, var(--lilac))); }
.gsurf > canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.gsurf::after { z-index: 2; }

/* ---------- buttons (immobile on hover: colour only; press scale) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; border-radius: 999px; font-weight: 500; font-size: 15px; line-height: 1; padding: 15px 22px; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap;
  transition: background-color .3s var(--ease-spring), color .3s var(--ease-spring), border-color .3s var(--ease-spring), opacity .3s, transform var(--dur-press) ease-out; }
.btn:active { transform: scale(.97); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2A2622; }
.btn-paper { background: var(--cream); color: var(--ink); border-color: var(--line-2); }
.btn-paper:hover { background: #fff; border-color: rgba(20,18,16,.3); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(20,18,16,.06); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #F3EFE6; }
.btn .arr { width: 1em; height: 1em; transition: transform .45s var(--ease-spring); }
.btn:hover .arr { transform: translateX(.2em); }
.btn-lg { padding: 18px 26px; font-size: 16px; }
.btn-sm { padding: 10px 14px; font-size: 13.5px; }

/* hyperlinks (every non-button text link): a faint underline at rest; on hover a full line draws in from the
   left and retracts to the right on leave. --ul-img lets a link wear its destination page's colors
   (transition.js sets them, see transition.css). Lists of links (footer, menus) use .ulink-quiet: line on hover only. */
.dotlink, .u-draw {
  --ul-rest: color-mix(in srgb, currentColor 30%, transparent);
  position: relative; text-decoration: none; color: inherit;
  background-image: var(--ul-img, linear-gradient(currentColor, currentColor)), linear-gradient(var(--ul-rest), var(--ul-rest));
  background-repeat: no-repeat; background-size: 0% 1px, 100% 1px; background-position: right 0 bottom 0, left 0 bottom 0;
  padding-bottom: 2px; transition: background-size .5s var(--ease-out, cubic-bezier(.16,1,.3,1));
}
.dotlink { display: inline-flex; align-items: center; gap: .4em; max-width: max-content; justify-self: start; } /* never stretched by a grid/flex parent: the line stays under the words */
.dotlink:hover, .dotlink:focus-visible, .u-draw:hover, .u-draw:focus-visible { background-size: 100% 1px, 100% 1px; background-position: left 0 bottom 0, left 0 bottom 0; }
.dotlink[aria-current], .u-draw[aria-current] { background-size: 100% 1px, 100% 1px; }
.ulink-quiet .dotlink, .ulink-quiet .u-draw, .dotlink.ulink-quiet { --ul-rest: transparent; }
@media (prefers-reduced-motion: reduce) { .dotlink, .u-draw { transition: none; } }

/* ---------- reveal primitives ---------- */
[data-reveal] { opacity: 0; transform: translateY(var(--rise)); filter: blur(4px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out), filter var(--dur-reveal) var(--ease-out); transition-delay: var(--d, 0ms); will-change: opacity, transform, filter; }
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="wipe"] { opacity: 1; filter: none; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="wipe"].in { clip-path: inset(0 0 0 0); }
[data-reveal="wipe"] > img, [data-reveal="wipe"] > picture > img, [data-reveal="wipe"] > .media { transform: scale(1.08); transition: transform 1.2s var(--ease-out); transition-delay: var(--d, 0ms); }
[data-reveal="wipe"].in > img, [data-reveal="wipe"].in > picture > img, [data-reveal="wipe"].in > .media { transform: scale(1); }

/* masked line rise for display headlines (wrap each line in .ln > span) */
.ln { display: block; overflow: hidden; padding: .04em .06em .2em; margin: -.04em -.06em -.2em; }
.ln > span { display: inline-block; transform: translateY(110%) rotate(1.5deg); transform-origin: left bottom; transition: transform 1.1s var(--ease-out); transition-delay: var(--d, 0ms); }
.in .ln > span, .ready .ln > span { transform: none; }

/* ---------- cards ---------- */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; }
.hover-card { transition: transform .5s var(--ease-spring), box-shadow .5s var(--ease-spring); }
/* R8: lift, image zoom and press only when the whole card is a link or button; a card that only contains a
   link (pricing plans, challenge cases) stays still */
@media (hover:hover) and (pointer:fine) {
  :is(a, button).hover-card:hover { box-shadow: 0 30px 60px -36px rgba(20,18,16,.35); }
  .hover-card .media { transition: transform .9s var(--ease-out); }
  :is(a, button).hover-card:hover .media { transform: scale(1.04); }
}
:is(a, button).hover-card:active { transform: scale(.99); }

/* ---------- fields ---------- */
.field { width: 100%; background: #fff; border: 1px solid var(--line-2); border-radius: 16px; padding: 16px 18px; font: inherit; font-size: 16px; color: var(--ink); outline: none; box-shadow: 0 0 0 0 rgba(20,18,16,0); transition: box-shadow .4s var(--ease-spring), border-color .3s; }
.field:focus { border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,18,16,.08); }
.field::placeholder { color: #A39C91; }

/* ---------- avatars: every person has a colour ---------- */
.av { display: inline-grid; place-items: center; border-radius: 999px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; flex: none; position: relative; overflow: hidden; isolation: isolate; background: linear-gradient(135deg, var(--a0, var(--apricot)), var(--a1, var(--rose)) 55%, var(--a2, var(--lilac))); }
.av::after { content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.1' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }
.av > span { position: relative; z-index: 1; }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee var(--speed, 80s) linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- misc ---------- */
.hairline { height: 1px; background: var(--line); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.noscrollbar::-webkit-scrollbar { display: none; } .noscrollbar { scrollbar-width: none; }

@media (prefers-reduced-motion: reduce) {
  /* opacity only: what fades (opacity, colors) keeps a short fade, anything that moves or resizes
     (transform, translate, scale, width, height, grid rows, clip-path, filter) changes at once */
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .2s !important;
    transition-property: opacity, color, background-color, border-color, outline-color, fill, stroke, text-decoration-color, box-shadow, visibility !important; }
  [data-reveal], .ln > span { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .grain-page::before { animation: none; }
}
@media (max-width: 639px) { :root { --hero-eb-gap: 10px; } } /* phones: smaller line box above the caps, so the chip needs a little more room */
