/* ==========================================================
   Rain Event Consulting
   Editorial system: white space, condensed display type (Anton),
   Inter for text, one blue accent, one orange sticker.
   ========================================================== */

/* Self-hosted fonts (SIL Open Font License) */
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/dm-serif-display-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('../fonts/dm-serif-display-400-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-600.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/inter-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --ink:      #111111;
  --body:     #3A3A3A;
  --muted:    #747474;
  --line:     #E3E3E3;
  --paper:    #FFFFFF;
  --soft:     #F5F5F2;
  --blue:     #1F4FE0;
  --blue-dk:  #1338B8;
  --orange:   #F59B00;
  --error:    #B3261E;

  --display:  'DM Serif Display', Georgia, 'Times New Roman', serif;
  --text:     'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --max:      1320px;
  --gutter:   clamp(20px, 4vw, 56px);
  --section:  clamp(80px, 10vw, 150px);
  --radius:   10px;
  --ease:     cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--body); font: 400 16px/1.6 var(--text); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html, body { overflow-x: clip; }
img, video { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: var(--blue); color: #fff; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 200; }
.skip:focus { left: 16px; }
.icon { width: 1em; height: 1em; flex: none; display: inline-block; vertical-align: -0.15em; }

/* ---------- Type ---------- */
h1, h2, h3, .display, .mega {
  font-family: var(--display); font-weight: 400; color: var(--ink);
  text-transform: uppercase; letter-spacing: -.005em; line-height: .92;
  margin: 0 0 .4em; text-wrap: balance;
}
h1 { font-size: clamp(44px, 9vw, 150px); }
h2 { font-size: clamp(44px, 6.4vw, 104px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1; letter-spacing: 0; }
.mega { font-size: clamp(64px, 11vw, 190px); line-height: .88; }
h1 em, h2 em, h3 em, .mega em, .display em { font-style: normal; color: var(--blue); }
p { margin: 0 0 1.1em; }
.lead { font-size: clamp(19px, 1.7vw, 24px); line-height: 1.45; color: var(--ink); font-weight: 500; letter-spacing: -.01em; }
.small { font-size: 13px; line-height: 1.5; color: var(--body); }

.eyebrow, .kicker {
  display: block; margin: 0 0 18px;
  font: 600 11px/1.3 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--ink);
}
.eyebrow-light { color: rgba(255, 255, 255, .8); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.center { text-align: center; }
.section { padding: var(--section) 0; position: relative; }
.section-alt { background: var(--soft); }
.section-head { max-width: 1000px; margin: 0 0 56px; }
.section-head.center, .center .section-head { margin-left: auto; margin-right: auto; }
.section-head .lead { margin-top: 12px; max-width: 720px; }
.section-head h2 { margin-bottom: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 56px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split > * { min-width: 0; }
.split-top { align-items: start; }
.split-media img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; }
.split h2 { font-size: clamp(40px, 5vw, 80px); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  padding: 17px 28px; border-radius: 100px; border: 1px solid var(--ink);
  text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s;
}
.btn .icon { width: 16px; height: 16px; }
.btn-dark, .btn-light { background: var(--ink); color: #fff; }
.btn-dark:hover, .btn-light:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-ghost, .btn-outline-light { background: transparent; color: var(--ink); }
.btn-ghost:hover, .btn-outline-light:hover { background: var(--ink); color: #fff; }
.btn-sm { padding: 12px 20px; font-size: 12px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn-row.center { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.link-arrow span { display: inline-flex; transition: transform .25s var(--ease); }
.link-arrow .icon { width: 15px; height: 15px; }
.link-arrow:hover { color: var(--blue); border-color: var(--blue); }
.link-arrow:hover span { transform: translateX(4px); }

/* ---------- Sticker badge ---------- */
.badge { position: relative; display: inline-grid; place-items: center; width: 132px; height: 132px; border-radius: 50%; background: var(--orange); color: var(--ink); text-decoration: none; flex: none; transition: transform .35s var(--ease); }
.badge:hover { transform: scale(1.06); color: var(--ink); }
.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 22s linear infinite; }
.badge-ring text { font: 700 10.5px var(--text); letter-spacing: .14em; fill: var(--ink); text-transform: uppercase; }
.badge-core { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); }
.badge-core svg { width: 20px; height: 24px; }
.badge-sm { width: 96px; height: 96px; }
.badge-sm .badge-core { width: 34px; height: 34px; }
.badge-sm .badge-core svg { width: 14px; height: 17px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Header ---------- */
main { padding-top: 76px; }

/* ---------- Home: hero ---------- */
.home-hero { padding: clamp(32px, 5vw, 72px) 0 clamp(64px, 8vw, 120px); }
.hh-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); grid-template-areas: "intro title" "media title" "media sub"; column-gap: clamp(28px, 4vw, 64px); row-gap: 24px; align-items: start; }
.hh-intro { grid-area: intro; max-width: 260px; font-size: 15px; line-height: 1.45; color: var(--ink); font-weight: 500; margin: 0; }
.hh-title { grid-area: title; margin: 0; align-self: end; font-size: clamp(52px, 7.6vw, 124px); }
.hh-media { grid-area: media; position: relative; align-self: start; }
.hh-media video, .hh-media .hh-poster { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; background: #ddd; }
.hh-media .badge { position: absolute; right: -40px; bottom: 36px; }
.hh-sub { grid-area: sub; max-width: 440px; justify-self: start; font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 500; margin: 0; }
.hh-services { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hh-services li { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }
.video-toggle { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(17, 17, 17, .72); color: #fff; display: grid; place-items: center; cursor: pointer; }
.video-toggle .icon { width: 16px; height: 16px; }
.video-toggle .vt-play, .video-toggle.is-paused .vt-pause { display: none; }
.video-toggle.is-paused .vt-play { display: inline-flex; }

/* ---------- Home: about ---------- */
.home-about { padding: 0 0 var(--section); }
.ha-grid { display: grid; grid-template-columns: 1.15fr 1fr .55fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.ha-statement { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; color: var(--ink); font-weight: 500; letter-spacing: -.015em; margin: 0; }
.ha-main img { width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }
.ha-side { align-self: start; display: grid; gap: 16px; }
.ha-side img { width: 100%; aspect-ratio: 1 / 1.1; object-fit: cover; }
.ha-side p { margin: 0; }

/* ---------- Service rows ---------- */
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-row { position: relative; border-bottom: 1px solid var(--line); }
.svc-head { display: grid; grid-template-columns: 64px 1fr auto; align-items: start; gap: 12px; padding: 22px 0 18px; text-decoration: none; color: var(--ink); }
.svc-num { font: 600 11px/1 var(--text); letter-spacing: .08em; padding-top: 10px; }
.svc-title { font-family: var(--display); text-transform: uppercase; font-size: clamp(40px, 6vw, 92px); line-height: .95; transition: color .3s; }
.svc-go { align-self: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease); }
.svc-go .icon { width: 18px; height: 18px; }
.svc-head:hover .svc-title { color: var(--blue); }
.svc-head:hover .svc-go { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }
.svc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.svc-body > div { overflow: hidden; }
.svc-inner { display: grid; grid-template-columns: 64px minmax(0, 1fr) 300px; gap: 12px 40px; padding-bottom: 32px; align-items: start; }
.svc-inner p { grid-column: 2; max-width: 560px; margin: 0; color: var(--ink); font-size: 15px; }
.svc-inner img { grid-column: 3; grid-row: 1 / span 2; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.svc-row.is-open .svc-body, .svc-row:hover .svc-body, .svc-row:focus-within .svc-body { grid-template-rows: 1fr; }

/* ---------- Selected work ---------- */
.work-head { display: grid; grid-template-columns: 1fr minmax(0, 420px); gap: 40px; align-items: end; margin-bottom: 56px; }
.work-head h2 { margin: 0; }
.work-head p { margin: 0; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.work-card { display: flex; flex-direction: column; gap: 16px; }
.work-card:nth-child(2) { margin-top: 96px; }
.work-card:nth-child(3) { margin-top: 32px; }
.work-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-card:nth-child(2) img { aspect-ratio: 3 / 4; }
.work-tag { margin: 0; font: 600 11px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.work-card h3 { margin: 0; font-size: clamp(26px, 2.4vw, 34px); }
.work-client { font-size: 13px; color: var(--muted); margin: 0; }
.work-detail { margin: 0; display: grid; gap: 4px; }
.work-detail dt { font: 600 11px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); margin-top: 10px; }
.work-detail dt:first-child { margin-top: 0; }
.work-detail dd { margin: 0; font-size: 14.5px; line-height: 1.55; }

/* ---------- Why Rain (staggered) ---------- */
.why-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); align-items: end; }
.why-grid h2 { margin: 0; font-size: clamp(48px, 6vw, 96px); align-self: start; }
.why-item { border-left: 1px solid var(--line); padding: 0 0 0 20px; }
.why-item:nth-child(2) { margin-bottom: 0; }
.why-item:nth-child(3) { margin-bottom: 72px; }
.why-item:nth-child(4) { margin-bottom: 144px; }
.why-item h3 { font-size: clamp(30px, 3vw, 46px); margin-bottom: 12px; }
.why-item p { font-size: 14px; margin: 0; max-width: 260px; }
.why-note { margin: 48px 0 0 auto; max-width: 420px; color: var(--ink); font-weight: 500; }

/* ---------- Show-up (quote style) ---------- */
.showup-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.showup-grid h2 { margin: 0; }
.showup-copy { align-self: end; }
.showup-copy .lead { margin-bottom: 24px; }
.trio-words { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.trio-words li { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 9px 14px; border-radius: 100px; background: var(--ink); color: #fff; }
.trio-words li:nth-child(2) { background: var(--blue); }
.trio-words li:nth-child(3) { background: var(--orange); color: var(--ink); }

/* ---------- Inner page hero ---------- */
.hero { position: relative; }
.hero-page { display: flex; flex-direction: column; padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-page .hero-inner { order: 1; }
.hero-page .hero-glass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: 24px 48px; align-items: end; }
.hero-page h1 { margin: 0; }
.hero-page .hero-lede { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--ink); font-weight: 500; }
.hero-page .hero-bg {
  order: 2; width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  margin: clamp(36px, 5vw, 64px) auto 0; height: clamp(240px, 38vw, 540px);
  background-size: cover; background-position: center;
}
.hero-short .hero-bg { height: clamp(200px, 28vw, 400px); }
.hero-page .hero-glass > :only-child { grid-column: 1 / -1; }
.hero-xl { font-size: inherit; }

/* ---------- Intro (inner) ---------- */
.intro .lead { font-size: clamp(22px, 2.3vw, 32px); line-height: 1.3; }
.intro .center, .intro.center { text-align: left; }
.intro .container.center { text-align: left; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.jump a { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 11px 16px; border: 1px solid var(--line); border-radius: 100px; }
.jump a:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- What we do: service blocks ---------- */
.svc-block { padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); }
.svc-block-head { display: grid; grid-template-columns: 64px 1fr; gap: 12px; margin-bottom: clamp(28px, 3vw, 44px); }
.svc-block-head h2 { margin: 0; font-size: clamp(44px, 6.4vw, 104px); }
.svc-block-grid { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px clamp(24px, 3vw, 48px); align-items: start; }
.svc-block-grid > .copy { grid-column: 2; }
.svc-block-grid > .check-list { grid-column: 3; }
.svc-block-grid > img { grid-column: 4; width: 100%; aspect-ratio: 4 / 3.2; object-fit: cover; }
.svc-block .lead { font-size: 20px; margin-bottom: 14px; }

.check-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.check-list li { display: flex; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink); }
.check-list li .icon { width: 14px; height: 14px; color: var(--blue); stroke-width: 3; transform: translateY(2px); }

/* ---------- Dark band ---------- */
.band-dark { background: var(--ink); color: rgba(255, 255, 255, .78); }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lead { color: #fff; }
.band-dark h2 em { color: var(--orange); }
.stack-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .18); }
.stack-list li { padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, .18); font-size: 15.5px; }
.stack-list strong { display: block; font: 400 26px/1 var(--display); text-transform: uppercase; color: #fff; margin-bottom: 8px; }

.pill-list { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; padding: 11px 16px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); }

/* ---------- Process ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(20px, 2.5vw, 36px); counter-reset: step; }
.process-3 { grid-template-columns: repeat(3, 1fr); }
.process-step { border-top: 1px solid var(--ink); padding-top: 20px; }
.process-num { display: block; font: 400 44px/1 var(--display); color: var(--blue); margin-bottom: 18px; }
.process-step h3 { font-size: 26px; margin-bottom: 10px; }
.process-step p { font-size: 14.5px; margin: 0; }

/* ---------- Who we are ---------- */
.mv-grid { gap: clamp(28px, 4vw, 56px); }
.mv-card { display: flex; flex-direction: column; gap: 20px; }
.mv-img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.mv-text { font-size: clamp(19px, 1.7vw, 23px); line-height: 1.45; color: var(--ink); font-weight: 500; margin: 0; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(32px, 5vw, 80px); border-top: 1px solid var(--line); }
.value { padding: 32px 0; border-bottom: 1px solid var(--line); }
.value h3 { font-size: clamp(28px, 2.6vw, 40px); margin-bottom: 12px; }
.value p { margin: 0; max-width: 520px; }
.value-num { display: block; font: 600 11px/1 var(--text); letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.band-image { background: var(--ink); color: rgba(255, 255, 255, .8); overflow: hidden; }
.band-image-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .28; }
.band-image .container { position: relative; }
.band-image h2, .band-image h3 { color: #fff; }
.band-image .lead { color: #fff; }
.principles { border-top: 1px solid rgba(255, 255, 255, .2); }
.principle { padding-top: 24px; }
.principle h3 { font-size: 30px; }
.principle p { margin: 0; }
.promise { text-align: center; }
.promise .container { position: relative; }
.promise img { margin: 0 auto 18px; width: 48px; height: auto; }
.promise .eyebrow { text-align: center; }
.promise blockquote { margin: 0 auto; max-width: 980px; font: 400 clamp(34px, 4.4vw, 68px)/1 var(--display); text-transform: uppercase; color: var(--ink); }
.promise-quote { display: none; }
.founder { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.founder-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.founder h2 { margin-bottom: 6px; }
.founder-role { font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 28px; }

/* ---------- Contact & forms ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact-grid > * { min-width: 0; }
.contact-form-wrap h2 { font-size: clamp(40px, 4.6vw, 72px); margin-bottom: 12px; }
.form-intro { margin-bottom: 28px; max-width: 560px; }
.contact-form { display: grid; gap: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font: 600 11px/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 0; margin-bottom: 6px; }
.field label span, .field legend span { color: var(--blue); }
.field .opt { color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .contact-form-wrap select, .apply-form select, .field select {
  width: 100%; font: 400 16px/1.5 var(--text); color: var(--ink);
  background: var(--paper); border: 1px solid #D4D4D4; border-radius: var(--radius); padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus, .field textarea:focus, .contact-form-wrap select:focus, .apply-form select:focus, .field select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(17, 17, 17, .08); }
.field [aria-invalid="true"] { border-color: var(--error); background: #FDF5F4; }
.field-error { font-size: 13px; color: var(--error); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span { display: inline-block; padding: 10px 16px; border-radius: 100px; border: 1px solid #D4D4D4; background: var(--paper); font-size: 14px; color: var(--ink); font-weight: 500; transition: background .2s, color .2s, border-color .2s; text-transform: none; letter-spacing: 0; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.form-legal { font-size: 13px; color: var(--muted); margin: 0; }
.contact-form .btn { justify-self: start; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-alert { padding: 14px 18px; border-radius: var(--radius); background: #FDF5F4; color: #8C1D18; border: 1px solid #F2C9C5; margin-bottom: 20px; }
.form-success { padding: 24px 0; }
.form-success img { width: 48px; margin-bottom: 20px; }
.form-success h2 { font-size: clamp(40px, 4.6vw, 64px); }

.contact-aside { display: grid; gap: 16px; }
.aside-card { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.aside-card h3 { font-size: 28px; margin-bottom: 10px; }
.aside-card p:last-child { margin-bottom: 0; }
.aside-dark { background: var(--ink); border-color: var(--ink); color: rgba(255, 255, 255, .8); }
.aside-dark h3 { color: #fff; }
.aside-dark .btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.aside-dark .btn-light:hover { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.aside-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--soft); color: var(--ink); margin-bottom: 16px; }
.aside-icon .icon { width: 18px; height: 18px; }
.aside-dark .aside-icon { background: rgba(255, 255, 255, .12); color: #fff; }
.aside-link { font-weight: 600; word-break: break-all; }

.apply-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; }
.apply-tabs button { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 13px 20px; border-radius: 100px; border: 1px solid #D4D4D4; background: var(--paper); font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.apply-tabs button .icon { width: 15px; height: 15px; }
.apply-tabs button:hover { border-color: var(--ink); }
.apply-tabs button[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-tabs { justify-content: flex-start; }

.file-drop, .contact-form .file-drop { position: relative; display: grid; justify-items: center; gap: 6px; padding: 26px 20px 28px; margin: 0; border: 1px dashed #BDBDBD; border-radius: var(--radius); background: var(--soft); text-align: center; cursor: pointer; transition: border-color .2s, background .2s; text-transform: none; letter-spacing: 0; }
.file-drop:hover, .file-drop:focus-within { border-color: var(--ink); background: var(--paper); }
.file-drop.has-file { border-style: solid; border-color: var(--blue); }
.file-drop.is-invalid { border-color: var(--error); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-drop-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); color: var(--ink); }
.file-drop-icon .icon { width: 18px; height: 18px; }
.contact-form .file-drop-text { font: 600 14px/1.4 var(--text); color: var(--ink); word-break: break-all; text-transform: none; letter-spacing: 0; }
.contact-form .file-drop-hint { font: 400 12.5px/1.4 var(--text); color: var(--muted); text-transform: none; letter-spacing: 0; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font: 400 clamp(22px, 2vw, 30px)/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue); }
.faq-icon { position: relative; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); }
.faq-icon::before, .faq-icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .3s var(--ease); }
.faq-icon::after { transform: rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: rotate(0deg); }
.faq-answer { padding: 0 0 26px; max-width: 760px; }
.faq-answer p { margin: 0; }

/* ---------- Schedule ---------- */
.schedule-booking { border: 0; border-radius: 0; padding: 0; background: transparent; }
.cal-inline-container { width: 100%; min-height: 640px; overflow: auto; scrollbar-width: none; }
.cal-inline-container::-webkit-scrollbar { display: none; }
.schedule-help { font-size: 13px; color: var(--muted); margin: 18px 0 0; text-align: center; }
.agenda-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.5vw, 36px); }
.agenda-item .aside-icon { display: none; }

/* ---------- Insights: journey ---------- */
.journey-section .split { grid-template-columns: .85fr 1.15fr; }
.journey { padding: clamp(8px, 2vw, 24px); }
.journey-ring { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; }
.journey-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring-track { fill: none; stroke: var(--line); stroke-width: 1.2; }
.ring-flow { fill: none; stroke: rgba(17, 17, 17, .25); stroke-width: .4; stroke-dasharray: 1 3; animation: ringflow 8s linear infinite; }
.ring-progress { fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 251.33; stroke-dashoffset: calc(251.33px * (1 - var(--p, 0))); transition: stroke-dashoffset .7s var(--ease); }
.ring-loop { fill: none; stroke: var(--orange); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 27.93 251.33; stroke-dashoffset: -223.4; opacity: 0; transition: opacity .5s var(--ease); }
.journey-ring.is-looping .ring-loop { opacity: 1; }
@keyframes ringflow { to { stroke-dashoffset: -32; } }
.journey-ring .journey-track { position: absolute; inset: 0; }
.journey-step { position: absolute; transform: translate(-50%, -13px); display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 4px; margin: 0; border: 0; background: none; cursor: pointer; font: 600 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); z-index: 2; }
.journey-step.is-active { transform: translate(-50%, -17px); }
.journey-dot { width: 16px; height: 16px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); transition: all .35s var(--ease); }
.journey-name { padding: 6px 10px; border-radius: 100px; white-space: nowrap; background: var(--paper); border: 1px solid var(--line); transition: background .3s, color .3s; }
.journey-step:hover .journey-dot { transform: scale(1.15); border-color: var(--blue); }
.journey-step.is-visited .journey-dot { background: var(--ink); }
.journey-step.is-active .journey-dot { width: 24px; height: 24px; background: var(--blue); border-color: var(--blue); box-shadow: 0 0 0 6px rgba(31, 79, 224, .14); }
.journey-step.is-active .journey-name { background: var(--ink); color: #fff; border-color: var(--ink); }
.journey-panel { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56%; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10%; background: var(--ink); color: rgba(255, 255, 255, .82); }
.journey-panel h3 { color: #fff; font-size: clamp(22px, 2.2vw, 30px); margin-bottom: 8px; }
.journey-panel p { font-size: 13.5px; line-height: 1.5; margin: 0; }
.journey-kicker { font: 600 11px/1 var(--text) !important; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 12px !important; }
.journey-panel.is-swapping > * { animation: fadeUp .45s var(--ease); }
.journey-hint { font-size: 13px; color: var(--muted); margin: 18px 0 0; text-align: center; }
.journey-arrows { position: absolute; inset: 0; pointer-events: none; }
.journey-arrow { position: absolute; transform: translate(-50%, -50%) rotate(var(--r)); color: rgba(17, 17, 17, .4); line-height: 0; z-index: 1; }
.journey-arrow .icon { width: 12px; height: 12px; stroke-width: 3; }
.journey-arrow.is-loop { color: var(--orange); opacity: 0; transition: opacity .5s var(--ease); }
.journey-ring.is-looping .journey-arrow.is-loop { opacity: 1; }
.journey-loop { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 100px; border: 0; cursor: pointer; pointer-events: none; font: 600 11px/1 var(--text); letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: var(--ink); opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: opacity .35s var(--ease), transform .45s cubic-bezier(.34, 1.56, .64, 1); }
.journey-loop .icon { width: 13px; height: 13px; }
.journey-ring.is-looping .journey-loop { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }

/* ---------- Insights: topic dialog ---------- */
.topic-dialog { padding: 0; border: 0; background: transparent; width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: visible; }
.topic-dialog::backdrop { background: rgba(17, 17, 17, .6); }
.topic-dialog[open] { animation: fadeUp .35s var(--ease); }
.topic-panel { position: relative; max-height: calc(100vh - 32px); overflow-y: auto; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--paper); }
.topic-panel h2 { font-size: clamp(36px, 4vw, 56px); }
.topic-close { position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper); cursor: pointer; }
.topic-close span { position: absolute; left: 11px; right: 11px; top: 19px; height: 1.5px; background: var(--ink); transform: rotate(45deg); }
.topic-close span + span { transform: rotate(-45deg); }
.topic-success { padding: 16px 0 4px; }
.topic-success img { width: 48px; margin-bottom: 16px; }
.topic-form .form-alert { margin: 0; }

/* ---------- Careers ---------- */
.careers-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
.careers-grid > * { min-width: 0; }
.no-roles, .role-card { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); }
.no-roles h3 { margin-bottom: 10px; }
.no-roles p:last-child, .role-card p:last-of-type { margin-bottom: 0; }
.role-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.apply-panel { max-width: 900px; }
.apply-panel h3 { font-size: clamp(32px, 3vw, 48px); }
.apply-step { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.apply-step:first-of-type { border-top: 0; padding-top: 8px; }
.apply-step h4 { display: flex; align-items: center; gap: 14px; margin: 0 0 6px; font: 400 26px/1 var(--display); text-transform: uppercase; color: var(--ink); }
.apply-num { display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 12px/1 var(--text); }
.apply-intro { margin: 0 0 4px 44px; font-size: 14px; color: var(--muted); }
.apply-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; margin: 16px 0 20px; }
.apply-fields > .field { grid-column: 1 / -1; margin: 0; }
.apply-fields > .field-half { grid-column: auto; }
.apply-fields [hidden] { display: none !important; }
.apply-form .field-ack .ack { display: flex; gap: 12px; align-items: flex-start; font: 400 15px/1.55 var(--text); color: var(--ink); cursor: pointer; margin: 0; text-transform: none; letter-spacing: 0; }
.field-ack input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.apply-next { display: flex; gap: 16px; align-items: flex-start; margin: 8px 0 24px; padding: 20px 22px; border-radius: var(--radius); background: var(--soft); }
.apply-next .aside-icon { margin: 0; flex: none; background: var(--paper); }
.apply-next strong { display: block; color: var(--ink); margin-bottom: 4px; }
.apply-next p { margin: 0; font-size: 14.5px; }
.apply-next p[hidden] { display: none; }

/* ---------- Legal & 404 ---------- */
.legal-hero { padding: clamp(56px, 8vw, 110px) 0 24px; }
.legal-hero h1 { font-size: clamp(56px, 8vw, 120px); }
.legal-date { color: var(--muted); font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; }
.legal { padding-top: 32px; }
.prose h2 { font-size: clamp(28px, 3vw, 40px); margin-top: 1.6em; }
.prose h3 { font-size: 22px; margin-top: 1.4em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose .caps { text-transform: uppercase; font-size: 14px; }
.notfound { min-height: 70vh; display: flex; align-items: center; }
.notfound img { width: 48px; margin: 0 auto 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .7); padding: clamp(64px, 7vw, 96px) 0 0; font-size: 14.5px; }
.site-footer a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(32px, 4vw, 64px); }
.footer-brand img { height: 40px; width: auto; margin-bottom: 20px; }
.footer-brand p { max-width: 320px; }
.footer-h { font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin: 0 0 18px; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-linkedin { display: inline-flex; margin-top: 4px; }
.footer-linkedin svg { width: 20px; height: 20px; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: clamp(48px, 6vw, 72px); padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; }
.footer-base p { margin: 0; }
.footer-legal { display: flex; gap: 24px; }
.btn-on-dark { background: #fff; color: var(--ink); border-color: #fff; }
.btn-on-dark:hover { background: var(--orange); border-color: var(--orange); color: var(--ink) !important; }
@media (max-width: 1080px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Motion ---------- */
html:not(.no-js) .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
html:not(.no-js) .reveal.is-visible { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html:not(.no-js) .reveal { opacity: 1; transform: none; transition: none; }
  .badge-ring, .ring-flow { animation: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .ha-grid { grid-template-columns: 1fr 1fr; }
  .ha-side { grid-column: 1 / -1; grid-template-columns: 1fr 1fr; align-items: center; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .why-grid h2 { grid-column: 1 / -1; margin-bottom: 32px; }
  .process { grid-template-columns: repeat(3, 1fr); }
  .agenda-grid { grid-template-columns: 1fr 1fr; }
  .svc-block-grid { grid-template-columns: 1fr 1fr; }
  .svc-block-grid > .copy { grid-column: 1 / -1; }
  .svc-block-grid > .check-list { grid-column: 1; }
  .svc-block-grid > img { grid-column: 2; }
  .svc-block-head { grid-template-columns: 1fr; }
  .journey-section .split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav-open { overflow: hidden; }

  .hh-grid { grid-template-columns: 1fr; grid-template-areas: "title" "sub" "media" "intro"; }
  .hh-media .badge { right: 12px; bottom: -40px; }
  .hh-intro { max-width: none; margin-top: 40px; }
  .ha-grid { grid-template-columns: 1fr; }
  .ha-side { grid-template-columns: 1fr 1fr; }
  .svc-head { grid-template-columns: 40px 1fr auto; }
  .svc-inner { grid-template-columns: 40px 1fr; }
  .svc-inner img { grid-column: 2; grid-row: auto; transform: none; max-width: 360px; }
  .svc-body { grid-template-rows: 1fr; }
  .work-head { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card:nth-child(n) { margin-top: 0; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(n) { margin-bottom: 0; padding-bottom: 8px; }
  .showup-grid, .split, .grid-2, .grid-3, .contact-grid, .careers-grid, .founder, .values { grid-template-columns: 1fr; }
  .hero-page .hero-glass { grid-template-columns: 1fr; }
  .process, .process-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .field-row, .apply-fields, .agenda-grid { grid-template-columns: 1fr; }
  .apply-fields > .field-half { grid-column: 1 / -1; }
  .apply-intro { margin-left: 0; }
  .apply-next { flex-direction: column; }
  .process, .process-3 { grid-template-columns: 1fr; }
  .svc-block-grid { grid-template-columns: 1fr; }
  .svc-block-grid > .check-list, .svc-block-grid > img { grid-column: 1; }
  .ha-side { grid-template-columns: 1fr; }
  .badge { width: 108px; height: 108px; }
  .apply-tabs button { flex: 1; justify-content: center; }
}

/* ---------- CTA band ---------- */
.cta-band { border-top: 1px solid var(--line); }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: end; }
.cta-inner h2 { margin: 0; }
.cta-side p { color: var(--ink); font-weight: 500; max-width: 480px; }
.cta-side .btn-row { margin-top: 20px; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }
.intro .container.narrow { max-width: var(--max); }
.intro .container.narrow > * { max-width: 920px; }

/* ==========================================================
   Balance pass + bold color sections
   ========================================================== */
:root { --section: clamp(72px, 8vw, 120px); }
h1 { font-size: clamp(44px, 7vw, 112px); }
h2 { font-size: clamp(38px, 5vw, 76px); }
.split h2 { font-size: clamp(36px, 4.2vw, 64px); }
.hh-title { font-size: clamp(48px, 7vw, 112px); }
.svc-title { font-size: clamp(30px, 4.2vw, 60px); }
.svc-block-head h2 { font-size: clamp(38px, 5vw, 76px); }
.promise blockquote { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.02; }
.cta-inner h2 { font-size: clamp(40px, 5vw, 76px); }

/* Hero: balanced two columns */
.home-hero { padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.hh-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "title media" "sub media" "intro media"; column-gap: clamp(32px, 5vw, 80px); row-gap: 20px; align-items: start; }
.hh-title { align-self: end; }
.hh-media { align-self: stretch; }
.hh-media video { height: 100%; aspect-ratio: auto; min-height: 420px; }
.hh-media .badge { right: auto; left: -48px; bottom: 32px; }
.hh-intro { align-self: end; max-width: 340px; color: var(--muted); }

/* About: two even columns */
.ha-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "statement main" "side main"; align-items: start; row-gap: 32px; }
.ha-statement { grid-area: statement; }
.ha-main { grid-area: main; }
.ha-main img { aspect-ratio: 4 / 3.4; }
.ha-side { grid-area: side; }
.ha-side img { display: none; }
.ha-side .small { font-size: 15px; max-width: 420px; }

/* Even grids, no stagger */
.work-card:nth-child(n) { margin-top: 0; }
.work-card:nth-child(n) img { aspect-ratio: 4 / 3; }
.why-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; row-gap: 48px; }
.why-grid h2 { grid-column: 1 / -1; font-size: clamp(38px, 5vw, 76px); margin: 0; }
.why-item:nth-child(n) { margin-bottom: 0; }
.why-item h3 { font-size: clamp(28px, 2.6vw, 40px); }
.why-item p { max-width: none; }
.why-note { margin: 48px 0 0; max-width: 640px; }
.work-head { margin-bottom: 48px; }

/* Color sections */
.bg-soft { background: var(--soft); }
.bg-ink, .band-dark, .band-image { background: #111111; }
.bg-blue { background: var(--blue); }
.bg-orange { background: var(--orange); }
.bg-ink, .band-dark, .band-image, .bg-blue {
  --ink: #FFFFFF; --body: rgba(255, 255, 255, .8); --muted: rgba(255, 255, 255, .62); --line: rgba(255, 255, 255, .22);
  color: var(--body);
}
.bg-orange { --body: #1A1A1A; --muted: rgba(17, 17, 17, .72); --line: rgba(17, 17, 17, .22); color: var(--body); }
.bg-ink h1, .bg-ink h2, .bg-ink h3, .bg-blue h1, .bg-blue h2, .bg-blue h3, .band-dark h2, .band-dark h3, .band-image h2, .band-image h3 { color: #fff; }
.bg-ink em, .band-dark em, .band-image em { color: var(--orange) !important; }
.bg-blue em { color: #FFD08A !important; }
.bg-orange h1 em, .bg-orange h2 em, .bg-orange h3 em { color: inherit; }
.bg-blue a:hover, .bg-ink a:hover, .band-dark a:hover { color: #FFD08A; }
.bg-ink .btn-dark, .bg-blue .btn-dark, .band-dark .btn-dark { background: #fff; color: #111; border-color: #fff; }
.bg-ink .btn-dark:hover, .bg-blue .btn-dark:hover { background: var(--orange); border-color: var(--orange); color: #111; }
.bg-ink .btn-ghost, .bg-blue .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .7); }
.bg-ink .btn-ghost:hover, .bg-blue .btn-ghost:hover { background: #fff; color: #111; }
.bg-orange .btn-ghost { border-color: #111; }
.bg-ink .svc-head:hover .svc-title { color: var(--orange); }
.bg-ink .svc-head:hover .svc-go { background: var(--orange); border-color: var(--orange); color: #111; }
.bg-blue .pill-list li, .bg-blue .jump a { border-color: rgba(255, 255, 255, .5); }
.bg-blue .split-media img, .bg-ink .svc-inner img { box-shadow: none; }
.bg-blue .eyebrow, .bg-ink .eyebrow, .bg-blue .kicker, .bg-ink .kicker { color: #fff; }
.cta-band { border-top: 0; }
.cta-band .cta-side p { color: #111; }
.promise.bg-blue blockquote { color: #fff; }
.home-services .work-head p { color: var(--body); }
@media (max-width: 860px) {
  .hh-grid { grid-template-columns: 1fr; grid-template-areas: "title" "sub" "media" "intro"; }
  .hh-media video { min-height: 0; aspect-ratio: 4 / 3; }
  .hh-media .badge { left: auto; right: 12px; bottom: -40px; }
  .ha-grid { grid-template-columns: 1fr; grid-template-areas: "statement" "main" "side"; }
  .why-grid { grid-template-columns: 1fr; }
}
.site-footer .btn-on-dark { color: #111; }
.site-footer .btn-on-dark:hover { color: #111; }
.promise img { display: none; }


/* ==========================================================
   Serif pass: logo-matched serif for headings and highlights
   ========================================================== */
h1, h2, h3, .display, .mega, .svc-title, .stack-list strong, .faq-item summary, .apply-step h4, .promise blockquote, .footer-talk span {
  font-family: var(--display); text-transform: none; letter-spacing: -.012em; font-weight: 400;
}
h1 { font-size: clamp(44px, 6.2vw, 96px); line-height: 1.02; }
h2 { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.04; }
h3 { font-size: clamp(22px, 2vw, 28px); line-height: 1.12; }
.split h2, .svc-block-head h2, .why-grid h2, .cta-inner h2 { font-size: clamp(36px, 4.4vw, 64px); }
h1 em, h2 em, h3 em, .mega em, .display em { font-style: italic; }
.svc-title { font-size: clamp(30px, 3.8vw, 54px); line-height: 1.05; }
.process-num { font-family: var(--display); font-size: 40px; }
.stack-list strong { font-size: 24px; }
.faq-item summary { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.2; }
.apply-step h4 { font-size: 24px; }
.promise blockquote { font-size: clamp(28px, 3.2vw, 46px); line-height: 1.18; font-style: italic; }
/* Highlight text in serif */
.ha-statement, .intro .lead, .mv-text, .showup-copy .lead, .why-note, .cta-side p, .work-head p, .hero-page .hero-lede {
  font-family: var(--display); font-weight: 400; letter-spacing: 0;
}
.ha-statement { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.28; }
.intro .lead { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.28; }
.mv-text, .showup-copy .lead { font-size: clamp(22px, 2vw, 28px); line-height: 1.32; }
.why-note, .cta-side p, .work-head p { font-size: 20px; line-height: 1.4; }
.hero-page .hero-lede { font-size: 20px; line-height: 1.4; }

/* Header: logo */
main { padding-top: 84px; }

/* Home: transparent header over the video */
.page-home main { padding-top: 0; }

/* Home: full-bleed video hero */
.home-hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; padding: 140px 0 clamp(64px, 9vw, 120px); color: #fff; overflow: hidden; background: #0B0F24; }
.home-hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 10, 24, .55) 0%, rgba(8, 10, 24, .25) 40%, rgba(8, 10, 24, .78) 100%); }
.hh-content { position: relative; z-index: 1; }
.home-hero h1 { color: #fff; font-size: clamp(52px, 8vw, 128px); line-height: .98; max-width: 1000px; margin-bottom: 28px; }
.home-hero h1 em { color: #fff; }
.hh-lede { max-width: 560px; font-size: 17px; line-height: 1.55; color: rgba(255, 255, 255, .88); margin: 0 0 28px; }
.home-hero .hh-services li { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.home-hero .video-toggle { left: auto; right: var(--gutter); bottom: 28px; z-index: 2; }
.hh-badge { position: absolute; right: clamp(24px, 6vw, 96px); bottom: clamp(96px, 12vw, 160px); z-index: 2; }
.home-about { padding-top: var(--section); }
@media (max-width: 860px) {
  main { padding-top: 72px; }
  .home-hero { min-height: 88svh; padding-top: 120px; }
  .hh-badge { width: 96px; height: 96px; right: 16px; bottom: auto; top: 96px; }
  .hh-badge .badge-core { width: 34px; height: 34px; }
}
.badge-core { background: #111; color: #fff; }
.badge-core svg { width: 20px; height: 20px; }

/* ---------- Round icon accents ---------- */
.badge-core { background: var(--blue); width: 52px; height: 52px; }
.badge-core img { width: 30px; height: 30px; }
.badge-sm .badge-core img, .hh-badge .badge-core img { width: 26px; height: 26px; }
.why-section, .cta-band, .home-services, .promise { overflow: hidden; }
.why-section > .container, .cta-band > .container, .home-services > .container, .promise > .container { position: relative; z-index: 1; }
.why-section::after, .cta-band::after, .home-services::after {
  content: ''; position: absolute; pointer-events: none; aspect-ratio: 1;
  background: url('../img/brand/rain-icon-white.png') center / contain no-repeat;
}
.why-section::after { width: min(52vw, 680px); right: -10vw; top: 50%; transform: translateY(-50%); opacity: .12; }
.cta-band::after { width: min(40vw, 520px); right: -6vw; bottom: -30%; opacity: .28; }
.home-services::after { width: min(36vw, 460px); left: -12vw; top: 60px; opacity: .06; }
.promise img { display: block; width: 72px; height: auto; margin: 0 auto 24px; filter: brightness(0) invert(1); }
.form-success img, .topic-success img, .notfound img { width: 56px; height: auto; }
.footer-brand::after { content: ''; display: none; }
@media (max-width: 860px) {
  .why-section::after { width: 90vw; right: -40vw; opacity: .08; }
  .cta-band::after { width: 70vw; right: -25vw; bottom: -20%; }
  .home-services::after { display: none; }
}
.ha-side::before { content: ''; display: block; width: 56px; height: 56px; background: url('../img/brand/rain-icon.png') center / contain no-repeat; margin-bottom: 4px; }

/* ---------- Journey ring: mobile layout (panel moves below the ring) ---------- */
@media (max-width: 640px) {
  .journey { padding: 8px 0 0; }
  .journey-ring { aspect-ratio: auto; max-width: 420px; display: flex; flex-direction: column; }
  .journey-ring::before { content: ''; display: block; width: 100%; aspect-ratio: 1; }
  .journey-svg, .journey-ring .journey-track, .journey-arrows { position: absolute; left: 0; right: 0; top: 0; bottom: auto; height: auto; aspect-ratio: 1; }
  .journey-step { font-size: 10px; letter-spacing: .04em; transform: translate(-50%, -11px); }
  .journey-step.is-active { transform: translate(-50%, -14px); }
  .journey-name { padding: 5px 8px; }
  .journey-dot { width: 13px; height: 13px; }
  .journey-step.is-active .journey-dot { width: 19px; height: 19px; }
  .journey-loop { font-size: 9.5px; padding: 5px 9px; }
  .journey-ring .journey-panel { position: relative; left: auto; top: auto; transform: none; width: 100%; aspect-ratio: auto; border-radius: var(--radius); padding: 28px 24px; margin-top: 28px; }
}

/* Home: hidden until the hero sticker passes under the header; the menu starts at the right edge */
.holo-stage { position: relative; width: 150px; height: 150px; transform-style: preserve-3d; animation: holo-float 4.5s ease-in-out infinite; }
.holo-glow {
  position: absolute; inset: 6px; border-radius: 50%;
  background: radial-gradient(circle, rgba(143, 192, 255, .34) 0%, rgba(61, 123, 255, .14) 45%, rgba(61, 123, 255, 0) 70%);
  filter: blur(4px); transition: transform .4s ease, opacity .4s ease;
}
.holo-obj { position: absolute; inset: 30px; transform-style: preserve-3d; animation: holo-spin 9s linear infinite; }
.holo-layer {
  position: absolute; inset: 0; transform: translateZ(var(--z));
  -webkit-mask: url('../img/brand/rain-icon-white.png') center / contain no-repeat;
          mask: url('../img/brand/rain-icon-white.png') center / contain no-repeat;
  background:
    repeating-linear-gradient(0deg, rgba(6, 14, 48, 0) 0 2px, rgba(6, 14, 48, .38) 2px 3px),
    linear-gradient(180deg, #F2F8FF 0%, var(--holo) 50%, var(--holo-deep) 100%);
  background-size: 100% 100%, 100% 100%;
  animation: holo-flicker 6s steps(1, end) infinite, holo-scan 2.4s linear infinite;
}
.holo-layer.is-edge { opacity: .35; }
.holo-layer.is-core { opacity: 1; }
.holo-layer:not(.is-core):not(.is-edge) { opacity: .6; }
.holo-ring { position: absolute; inset: 0; border-radius: 50%; transform-style: preserve-3d; }
.holo-ring-a { transform: rotateX(66deg); }
.holo-ring-a svg { width: 100%; height: 100%; overflow: visible; animation: spin 14s linear infinite; }
.holo-ring-a text { font: 700 9px var(--text); letter-spacing: .14em; fill: var(--holo); }
.holo-ring-b {
  inset: 14px; border: 1px solid rgba(143, 192, 255, .5);
  box-shadow: 0 0 12px rgba(143, 192, 255, .45), inset 0 0 10px rgba(143, 192, 255, .3);
  transform: rotateX(72deg) translateZ(-34px);
}
.holo-stage::after {
  content: ''; position: absolute; inset: 18px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(180deg, rgba(143, 192, 255, 0) 44%, rgba(200, 225, 255, .12) 50%, rgba(143, 192, 255, 0) 56%);
  background-size: 100% 260%; mix-blend-mode: screen; animation: holo-sweep 3.6s ease-in-out infinite;
}
.holo-beam {
  width: 128px; height: 52px; margin-top: -30px; pointer-events: none;
  background: linear-gradient(0deg, rgba(143, 192, 255, .5) 0%, rgba(143, 192, 255, .12) 60%, rgba(143, 192, 255, 0) 100%);
  clip-path: polygon(0 0, 100% 0, 60% 100%, 40% 100%);
  animation: holo-flicker 6s steps(1, end) infinite;
}
.holo-base {
  width: 70px; height: 14px; border-radius: 50%; margin-top: -4px;
  background: radial-gradient(ellipse at center, #E4F0FF 0%, var(--holo-deep) 45%, rgba(61, 123, 255, 0) 75%);
  box-shadow: 0 0 22px rgba(61, 123, 255, .75);
}
.holo-label {
  margin-top: 12px; padding: 9px 16px; border-radius: 100px; white-space: nowrap;
  font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase;
  color: #E4F0FF; text-shadow: 0 0 8px rgba(143, 192, 255, .8);
  border: 1px solid rgba(143, 192, 255, .55); background: rgba(6, 10, 28, .55);
  transition: background .3s ease, border-color .3s ease, color .3s ease;
}
.holo:hover .holo-label, .holo:focus-visible .holo-label { background: rgba(61, 123, 255, .35); border-color: var(--holo); color: #fff; }
.holo:hover .holo-glow { transform: scale(1.15); }
.holo:focus-visible { outline: none; }
@keyframes holo-spin { to { transform: rotateY(360deg); } }
@keyframes holo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes holo-scan { to { background-position: 0 6px, 0 0; } }
@keyframes holo-sweep { 0% { background-position: 0 100%; } 100% { background-position: 0 0; } }
@keyframes holo-flicker {
  0% { filter: brightness(1); } 41% { filter: brightness(1.6); } 42% { filter: brightness(.55); }
  43% { filter: brightness(1); } 77% { filter: brightness(.7); } 78% { filter: brightness(1); }
}
@media (max-width: 860px) {
  .holo.hh-badge { width: 180px; height: auto; top: 80px; right: 12px; transform: scale(.58); transform-origin: top right; }
}
@media (prefers-reduced-motion: reduce) {
  .holo-stage, .holo-obj, .holo-layer, .holo-ring-a svg, .holo-stage::after, .holo-beam { animation: none; }
  .holo-obj { transform: rotateY(-24deg); }
}

/* ---------- Backstage: "Run of Show" mini game (hidden page) ---------- */
.game-section { padding-top: clamp(56px, 7vw, 96px); }
.game-head { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 32px; align-items: end; margin-bottom: 32px; }
.game-head h1 { margin: 8px 0 0; font-size: clamp(48px, 7vw, 96px); line-height: 1; }
.game-intro { color: #BDBDBD; margin: 0; }
.game-wrap { position: relative; aspect-ratio: 400 / 224; width: 100%; background: #0B0F24; border: 1px solid #2E2E2E; overflow: hidden; user-select: none; -webkit-user-select: none; }
.game-wrap canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.game-ov { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(8, 10, 24, .72); color: #fff; }
.game-ov[hidden] { display: none; }
.game-ov-win { background: rgba(8, 10, 24, .55); }
.game-ov h2 { color: #fff; margin: 0; font-size: clamp(30px, 5.4vw, 72px); line-height: 1; }
.game-ov h2 em { color: var(--orange); }
.game-kicker { margin: 0; font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #FFD08A; }
.game-ov-copy { margin: 0; color: rgba(255, 255, 255, .85); font-size: clamp(13px, 1.5vw, 17px); }
.game-ov-small { margin: 0; color: rgba(255, 255, 255, .6); font-size: 13px; }
.game-ov-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.game-btn { display: inline-flex; align-items: center; justify-content: center; height: 46px; padding: 0 24px; border-radius: 100px; border: 1px solid var(--orange); background: var(--orange); color: #111; font: 600 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease; }
.game-btn:hover { background: #FFB21F; border-color: #FFB21F; color: #111; }
.game-btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.game-btn-ghost:hover { background: #fff; border-color: #fff; color: #111; }
.game-toggles { position: absolute; right: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.game-mute { padding: 6px 10px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(8, 10, 24, .6); color: #fff; font: 600 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; }
.game-pad { display: none; }
.game-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 0; margin: 20px 0 0; color: #BDBDBD; font-size: 14px; }
.game-key { display: inline-block; min-width: 28px; padding: 4px 8px; margin-right: 6px; border: 1px solid #3A3A3A; border-radius: 6px; color: #fff; font: 600 12px/1.2 var(--text); text-align: center; }
.game-cast { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 40px 0 0; }
.game-cast > div { border-top: 1px solid #2E2E2E; padding-top: 16px; }
.game-cast dt { font-family: var(--display); font-size: 24px; color: #fff; margin-bottom: 6px; }
.game-cast dd { margin: 0; color: #BDBDBD; font-size: 15px; }
@media (max-width: 860px) {
  .game-head { grid-template-columns: 1fr; gap: 16px; }
  .game-cast { grid-template-columns: 1fr 1fr; }
}
@media (pointer: coarse) {
  .game-pad { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; touch-action: none; }
  .game-pad-dir { display: flex; gap: 12px; }
  .game-pad button { width: 72px; height: 72px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: #1C1C1C; color: #fff; font: 600 20px/1 var(--text); touch-action: none; -webkit-tap-highlight-color: transparent; }
  .game-pad .game-pad-jump { width: 92px; height: 92px; background: var(--orange); border-color: var(--orange); color: #111; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
  .game-pad button.is-on { transform: scale(.94); filter: brightness(1.2); }
  .game-legend { display: none; }
}
@media (max-width: 640px) {
  .game-section > .container { padding-left: 12px; padding-right: 12px; }
  .game-ov { gap: 8px; padding: 12px; }
  .game-ov-copy, .game-ov-small { display: none; }
  .game-ov-win .game-ov-copy { display: block; font-size: 12px; }
  .game-btn { height: 38px; padding: 0 16px; font-size: 11px; }
  .game-cast { grid-template-columns: 1fr; }
}

.game-pick { display: flex; gap: 10px; }
.game-pick button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 12px 8px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 12px; background: rgba(87, 87, 87, 0.795); color: rgba(255, 255, 255, .75); font: 600 10px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.game-pick button:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.game-pick button[aria-pressed="true"] { border-color: var(--orange); background: rgba(87, 87, 87, 0.795); color: #fff; }
.game-pick canvas { width: 42px; height: 54px; image-rendering: pixelated; }
@media (max-width: 640px) {
  .game-ov[data-ov="title"] h2, .game-ov[data-ov="title"] .game-kicker { display: none; }
  .game-pick button { padding: 6px 8px 5px; gap: 4px; }
  .game-pick canvas { width: 28px; height: 36px; }
  .game-toggles { right: 6px; bottom: 6px; }
  .game-mute { padding: 4px 7px; font-size: 9px; }
}

.game-keygrid { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; width: min(100%, 760px); text-align: left; }
.game-keygrid li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(87, 87, 87, 0.795); }
.game-keygrid canvas { flex: none; height: 30px; width: auto; image-rendering: pixelated; }
.game-keygrid strong { display: block; font: 600 12px/1.2 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.game-keygrid span { display: block; margin-top: 3px; font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .72); }
@media (max-width: 860px) { .game-keygrid span { font-size: 11px; } .game-keygrid li { padding: 8px; gap: 8px; } .game-keygrid canvas { height: 22px; } }
@media (max-width: 640px) {
  .game-ov-key .game-kicker { display: none; }
  .game-keygrid { gap: 6px; }
  .game-keygrid span { display: none; }
  .game-keygrid strong { font-size: 9px; letter-spacing: .04em; }
  .game-keygrid li { padding: 5px 6px; gap: 6px; border-radius: 8px; }
  .game-keygrid canvas { height: 16px; }
}

/* Home: tiny pixel planner that runs along the bottom of the screen */
.pixel-runner { position: fixed; left: 0; bottom: 14px; z-index: 60; display: block; width: 42px; height: 54px; cursor: pointer; will-change: transform; filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .18)); }
.pixel-runner canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
@media (max-width: 640px) { .pixel-runner { width: 32px; height: 41px; bottom: 10px; } }

.pixel-runner canvas { transform-origin: center; }
.pixel-runner-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 7px 12px; border-radius: 100px; background: #fff; color: #111;
  font: 600 11px/1 var(--text); letter-spacing: .08em; text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); transition: opacity .3s ease, transform .3s ease;
}
.pixel-runner-bubble::after { content: ''; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: #fff; }
.pixel-runner.is-waiting .pixel-runner-bubble { opacity: 1; transform: translate(-50%, 0); transition-delay: .4s; }
.pixel-runner:hover .pixel-runner-bubble { background: var(--orange); }
.pixel-runner:hover .pixel-runner-bubble::after { border-top-color: var(--orange); }
@media (max-width: 640px) { .pixel-runner-bubble { left: auto; right: -6px; transform: translate(0, 6px); } .pixel-runner.is-waiting .pixel-runner-bubble { transform: none; } .pixel-runner-bubble::after { left: auto; right: 16px; } }

/* Backstage: CRT channel-change intro */
.crt { position: fixed; inset: 0; z-index: 9999; background: #000; overflow: hidden; pointer-events: none; animation: crt-failsafe 0s linear 3s forwards; }
.crt-noise { position: absolute; inset: 0; width: 100%; height: 100%; }
.crt::before { content: ''; position: absolute; inset: 0; z-index: 1; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .28) 0 1px, rgba(0, 0, 0, 0) 1px 3px); }
.crt::after { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: 3.5% / 5%; box-shadow: inset 0 0 0 2px #000, inset 0 0 90px 30px rgba(0, 0, 0, .85); background: radial-gradient(ellipse at center, rgba(255, 255, 255, .06) 0%, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .55) 100%); }
.crt-osd { position: absolute; z-index: 3; top: 11%; right: 9%; height: clamp(40px, 9vh, 96px); width: auto; image-rendering: pixelated; image-rendering: crisp-edges; visibility: hidden; filter: drop-shadow(0 0 4px rgba(150, 200, 255, .95)) drop-shadow(0 0 16px rgba(77, 139, 255, .8)); }
@keyframes crt-failsafe { to { opacity: 0; visibility: hidden; } }
.crt-settle #main, .crt-settle .site-header { animation: crt-settle .55s steps(7) both; }
@keyframes crt-settle {
  0% { transform: translateY(-4%) skewX(-3deg); filter: brightness(1.9) contrast(1.5) saturate(1.8); }
  18% { transform: translateY(3%) skewX(2deg); filter: brightness(1.5) contrast(1.3); }
  36% { transform: translateX(-1.5%); filter: brightness(1.3) saturate(1.4); }
  55% { transform: translateY(-.6%); filter: brightness(1.15); }
  75% { transform: none; filter: brightness(1.05); }
  100% { transform: none; filter: none; }
}
@media (prefers-reduced-motion: reduce) { .crt { display: none; } .crt-settle #main, .crt-settle .site-header { animation: none; } }

/* Home hero: standard accent button (replaces the hologram) */
.btn-accent { background: var(--orange); border-color: var(--orange); color: #111; }
.btn-accent:hover { background: #FFB21F; border-color: #FFB21F; color: #111; }
.home-hero .hh-actions { margin-top: 4px; }
.home-hero .hh-badge { position: static; width: auto; height: auto; transform: none; }
/* Hero button sits on the right, level with the bottom of the intro text */
@media (min-width: 861px) {
  .home-hero .hh-content { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: end; }
  .home-hero .hh-content h1 { grid-column: 1 / -1; }
  .home-hero .hh-lede { grid-column: 1; margin-bottom: 0; }
  .home-hero .hh-actions { grid-column: 2; margin: 0; justify-self: end; }
}

/* Home: "The work, in brief" carousel */
.work-carousel { --gap: clamp(20px, 2.6vw, 40px); }
.work-track {
  display: flex; gap: var(--gap); overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  overscroll-behavior-x: contain; scrollbar-width: none; padding-bottom: 4px;
}
.work-track::-webkit-scrollbar { display: none; }
.work-track:focus-visible { outline: 2px solid var(--blue); outline-offset: 6px; }
.work-track > .work-card { flex: 0 0 calc((100% - 2 * var(--gap)) / 3); scroll-snap-align: start; margin-top: 0; }
.work-card.is-placeholder .work-ph { aspect-ratio: 4 / 3; background: var(--soft, #F5F5F2); border: 1px dashed #D5D5D0; display: grid; place-items: center; }
.work-card.is-placeholder .work-ph img { width: 56px; height: 56px; aspect-ratio: auto; opacity: .35; }
.work-card.is-placeholder .work-tag { color: var(--muted); }
.work-card.is-placeholder h3, .work-card.is-placeholder .work-detail dd, .work-card.is-placeholder .work-detail dt { color: #A3A3A3; }
.work-controls { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line, #E3E3E3); }
.work-count { margin: 0; font: 600 12px/1 var(--text); letter-spacing: .12em; color: var(--muted); }
.work-count span { color: var(--ink); }
.work-arrows { display: flex; gap: 10px; }
.work-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .2s ease, color .2s ease, opacity .2s ease; }
.work-arrow .icon, .work-arrow svg { width: 18px; height: 18px; }
.work-arrow[data-prev] svg { transform: rotate(180deg); }
.work-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; }
.work-arrow:disabled { opacity: .3; cursor: default; }
@media (max-width: 1024px) { .work-track > .work-card { flex-basis: calc((100% - var(--gap)) / 2); } }
@media (max-width: 640px) { .work-track > .work-card { flex-basis: 84%; } .work-arrow { width: 46px; height: 46px; } }

/* What We Do: who we partner with / industries */
.serve-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); margin-top: 40px; }
.serve-col { border-top: 1px solid var(--line); padding-top: 24px; }
.serve-col h3 { margin: 0; font-size: clamp(24px, 2.4vw, 32px); }
@media (max-width: 860px) { .serve-grid { grid-template-columns: 1fr; } }

/* Home hero height: full screen on typical widescreen windows, but never taller than a 16:9 frame,
   so tall or square browser windows don't get a hero that fills the whole screen */
@media (min-width: 861px) {
  .home-hero { min-height: min(100svh, max(560px, 56.25vw)); }
}

/* Home hero: framed as a rounded card on load, opening to full width as you scroll (driven by --hero-p in main.js) */
.home-hero { --hero-p: 0; --hero-inset: 14px; --hero-round: 28px;
  clip-path: inset(calc((1 - var(--hero-p)) * var(--hero-inset)) round calc((1 - var(--hero-p)) * var(--hero-round))); }
@media (max-width: 860px) { .home-hero { --hero-inset: 8px; --hero-round: 20px; } }

/* ==========================================================================
   Navigation (Craft-style): a centered white pill with soft shadow.
   Phones: the pill opens into a card with rounded menu rows.
   ========================================================================== */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; padding: 16px var(--gutter) 0; pointer-events: none; }
.header-inner {
  pointer-events: auto; position: relative; margin: 0 auto; width: 100%; max-width: 1040px;
  display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 9px 0 22px;
  background: rgba(255, 255, 255, .97); border-radius: 100px;
  box-shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 10px 30px rgba(17, 17, 17, .10);
  transition: box-shadow .3s ease;
}
.site-header.is-scrolled .header-inner { box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
.nav-bar { display: flex; align-items: center; justify-content: space-between; flex: none; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 32px; width: auto; display: block; }
.nav-toggle { display: none; }
.site-nav { flex: 1; display: flex; align-items: center; gap: 12px; }
.nav-links { list-style: none; margin: 0 auto; padding: 0; display: flex; align-items: center; gap: 4px; }
.nav-row { display: flex; align-items: center; }
.nav-links a { display: inline-block; text-decoration: none; color: var(--ink); font: 500 15.5px/1 var(--text); letter-spacing: 0; text-transform: none; padding: 11px 13px; border-radius: 100px; transition: background .2s ease, color .2s ease; }
.nav-links a:hover { background: var(--soft, #F5F5F2); }
.nav-links a[aria-current="page"] { color: var(--blue); }
.nav-go { display: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-secondary { text-decoration: none; color: var(--ink); font: 500 15.5px/1 var(--text); padding: 11px 12px; border-radius: 100px; }
.nav-secondary:hover { background: var(--soft, #F5F5F2); color: var(--ink); }
.nav-cta { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 100px; background: var(--ink); color: #fff; text-decoration: none; font: 600 15.5px/1 var(--text); white-space: nowrap; transition: background .2s ease, color .2s ease; }
.nav-cta:hover { background: var(--orange); color: #111; }
main { padding-top: 104px; }
.page-home main { padding-top: 0; }

/* Phones and small tablets: the pill becomes an expanding card */
@media (max-width: 960px) {
  .site-header { padding: 10px 12px 0; }
  .header-inner {
    display: block; height: auto; max-width: 560px; padding: 0; border-radius: 28px;
    background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    transition: border-radius .3s ease, box-shadow .3s ease;
  }
  .nav-bar { height: 60px; padding: 0 8px 0 20px; }
  .brand img { height: 28px; }
  .nav-toggle { display: block; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
  .nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s ease, top .3s ease, opacity .2s ease; }
  .nav-toggle span:first-child { top: 17px; }
  .nav-toggle span:last-child { top: 25px; }
  .nav-open .nav-toggle span:first-child { top: 21px; }
  .nav-open .nav-toggle span:last-child { top: 21px; opacity: 0; }

  .site-nav { display: none; flex-direction: column; align-items: stretch; gap: 10px; padding: 4px 14px 18px; max-height: calc(100svh - 90px); overflow-y: auto; }
  .nav-open .site-nav { display: flex; animation: nav-card-in .3s cubic-bezier(.22, 1, .36, 1) both; }
  @keyframes nav-card-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
  .nav-links { margin: 0; flex-direction: column; align-items: stretch; gap: 10px; }
  .nav-links > li { border-radius: 18px; background: rgba(17, 17, 17, .045); }
  .nav-row { justify-content: space-between; }
  .nav-row > a { flex: 1; padding: 18px 18px; border-radius: 18px; font-size: 17px; font-weight: 500; }
  .nav-row > a:hover { background: transparent; }
  .nav-go { display: grid; place-items: center; width: 48px; height: 48px; margin-right: 6px; color: var(--ink); }
  .nav-go .icon { width: 20px; height: 20px; }
  .nav-actions { flex-direction: column; align-items: stretch; gap: 6px; margin-top: 4px; }
  .nav-cta { order: 1; height: 56px; border-radius: 16px; font-size: 17px; }
  .nav-secondary { order: 2; text-align: center; padding: 14px; font-size: 17px; }
  main { padding-top: 84px; }
}

/* Nav refinements: links right-aligned, frosted glass, lower on the home page until you scroll, yellow CTA */
.site-header { transition: padding .45s cubic-bezier(.22, 1, .36, 1); }
.page-home .site-header:not(.is-scrolled) { padding-top: 46px; }
.nav-links { margin: 0 0 0 auto; }
.header-inner {
  background: rgba(255, 255, 255, .85); border: 1px solid rgba(255, 255, 255, 0);
  -webkit-backdrop-filter: blur(5px) saturate(6); backdrop-filter: blur(5px) saturate(6);
  box-shadow: 0 1px 2px rgba(17, 17, 17, .05), 0 12px 34px rgba(17, 17, 17, .12), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.nav-links a:hover, .nav-secondary:hover { background: rgba(255, 255, 255, .55); }
.brand img { filter: drop-shadow(0 2px 3px rgba(17, 17, 17, .18)); }
.nav-cta { background: var(--orange); color: #111; box-shadow: 0 3px 10px rgba(17, 17, 17, .16); transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
.nav-cta:hover { background: var(--blue); color: #fff; box-shadow: 0 4px 14px rgba(31, 79, 224, .35); }
@media (max-width: 960px) {
  .page-home .site-header:not(.is-scrolled) { padding-top: 34px; }
  .header-inner { background: rgba(255, 255, 255, .8); }
  .nav-links > li { background: rgba(17, 17, 17, .05); }
  .nav-links { margin: 0; }
}

/* Mobile: hero runs edge to edge (no rounded frame), nav sits at its normal height, pill fully rounded */
@media (max-width: 960px) {
  .home-hero { clip-path: none; }
  .page-home .site-header:not(.is-scrolled) { padding-top: 10px; }
  .header-inner { border-radius: 100px; }
  .nav-open .header-inner { border-radius: 28px; }
}

/* Home about: "Events, handled." heading on top, no icon (restored) */
.ha-grid { grid-template-areas: "head main" "statement main" "side main"; }
.ha-head { grid-area: head; }
.ha-head h2 { margin: 0; }
.ha-head .kicker { margin-bottom: 14px; }
.ha-side::before { content: none; display: none; }
.ha-statement { font-size: clamp(21px, 2vw, 28px); }
.ha-side .link-arrow { justify-self: start; }
@media (max-width: 860px) { .ha-grid { grid-template-areas: "head" "statement" "main" "side"; } }

/* ---------- Home services: hover list with a fixed preview panel (desktop), tap to expand (phones) ---------- */
.sx { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.sx-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.sx-item { border-bottom: 1px solid rgba(255, 255, 255, .14); }
.sx-link { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 26px 0; text-decoration: none; color: #fff; }
.sx-num { font: 600 13px/1 var(--text); letter-spacing: .08em; color: var(--orange); }
.sx-title { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.05; letter-spacing: -.012em; color: #fff; transition: color .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.sx-go { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); display: grid; place-items: center; color: #fff; opacity: 0; transform: translateX(-8px); transition: opacity .3s ease, transform .3s ease, background .25s ease, border-color .25s ease; }
.sx-go .icon { width: 18px; height: 18px; }
.sx-item.is-active .sx-title { color: var(--orange); font-style: italic; transform: translateX(8px); }
.sx-item.is-active .sx-go { opacity: 1; transform: none; }
.sx-link:hover .sx-go { background: var(--orange); border-color: var(--orange); color: #111; }
.sx-mobile { display: none; }
.sx-preview { position: sticky; top: 120px; display: grid; }
.sx-slide { grid-area: 1 / 1; margin: 0; opacity: 0; transform: scale(.985); transition: opacity .45s ease, transform .6s cubic-bezier(.22, 1, .36, 1); pointer-events: none; }
.sx-slide.is-active { opacity: 1; transform: none; }
.sx-slide img { display: block; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 4px; }
.sx-slide figcaption { margin-top: 18px; color: rgba(255, 255, 255, .78); font-size: 16px; line-height: 1.55; max-width: 460px; }
.sx-all { margin-top: 40px; color: #fff; border-color: rgba(255, 255, 255, .6); }
.sx-all:hover { color: var(--orange); border-color: var(--orange); }
@media (max-width: 960px) {
  .sx { grid-template-columns: 1fr; }
  .sx-preview { display: none; }
  .sx-link { grid-template-columns: 40px minmax(0, 1fr) auto; padding: 22px 0; }
  .sx-go { opacity: 1; transform: none; width: 40px; height: 40px; }
  .sx-go .icon { transition: transform .3s ease; transform: rotate(90deg); }
  .sx-item.is-active .sx-title { transform: none; }
  .sx-item.is-open .sx-go .icon { transform: rotate(-90deg); }
  .sx-item.is-open .sx-mobile { display: grid; gap: 16px; padding: 0 0 26px 52px; }
  .sx-mobile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 4px; }
  .sx-mobile p { margin: 0; color: rgba(255, 255, 255, .8); font-size: 15px; }
  .sx-mobile .link-arrow { justify-self: start; color: #fff; border-color: rgba(255, 255, 255, .6); }
}
@media (max-width: 640px) { .sx-item.is-open .sx-mobile { padding-left: 0; } }

/* ---------- Home: "The work, in brief" one-story-at-a-time carousel ---------- */
.ws { --ws-dur: 5s; }
.ws-stage { display: grid; }
.ws-slide { grid-area: 1 / 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center;
  opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility .6s; }
.ws-slide.is-active { opacity: 1; visibility: visible; }
.ws-media { margin: 0; overflow: hidden; border-radius: 4px; }
.ws-media img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transform: scale(1.04); transition: transform 6s ease-out; }
.ws-slide.is-active .ws-media img { transform: scale(1); }
.ws-copy { display: flex; flex-direction: column; gap: 16px; }
.ws-copy > * { opacity: 0; transform: translateY(12px); transition: opacity .5s ease, transform .6s cubic-bezier(.22, 1, .36, 1); }
.ws-slide.is-active .ws-copy > * { opacity: 1; transform: none; }
.ws-slide.is-active .ws-copy > :nth-child(2) { transition-delay: .06s; }
.ws-slide.is-active .ws-copy > :nth-child(3) { transition-delay: .12s; }
.ws-slide.is-active .ws-copy > :nth-child(4) { transition-delay: .18s; }
.ws-copy h3 { margin: 0; font-size: clamp(30px, 3.2vw, 46px); line-height: 1.08; }
.ws-copy .work-detail dd { font-size: 15.5px; }
.ws-controls { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 24px; margin-top: 40px; }
.ws-bars { display: flex; gap: 8px; }
.ws-bar { flex: 1; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.ws-bar span { position: relative; display: block; width: 100%; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ws-bar span::after { content: ''; position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.ws-bar.is-done span::after { transform: scaleX(1); }
.ws-bar.is-active span::after { animation: ws-fill var(--ws-dur) linear forwards; }
.ws.is-paused .ws-bar.is-active span::after { animation-play-state: paused; }
.ws.is-static .ws-bar.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes ws-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ws-count { margin: 0; font: 600 12px/1 var(--text); letter-spacing: .12em; color: var(--muted); }
.ws-count span { color: var(--ink); }
.ws [data-ws-prev] svg { transform: rotate(180deg); }
.ws-slide { align-content: center; }
@media (max-width: 860px) {
  .ws-slide { grid-template-columns: 1fr; align-items: start; align-content: start; gap: 22px; }
  .ws-controls { grid-template-columns: minmax(0, 1fr) auto; }
  .ws-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .ws-media img, .ws-copy > * { transition: none; transform: none; } }

/* "The work, in brief": intro line sits under the heading */
.work-head-stack { grid-template-columns: 1fr; gap: 18px; align-items: start; }
.work-head-stack p { max-width: 560px; }

/* Who We Are: expertise. Intro on the left, four specialties on the right */
.xp-layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(40px, 7vw, 120px); align-items: start; }

.xp-intro h2 { margin: 10px 0 24px; font-size: clamp(40px, 5vw, 72px); line-height: 1.02; }
.xp-intro .lead { margin: 0 0 16px; }
.xp-intro p:last-child { margin: 0; color: var(--body); }
.xp-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.xp-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.xp-num { font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1; color: var(--blue); padding-top: 6px; }
.xp-row h3 { margin: 0 0 10px; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.xp-row p { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--body); }
@media (max-width: 860px) {
  .xp-layout { grid-template-columns: 1fr; }

  .xp-row { grid-template-columns: 48px minmax(0, 1fr); }
}

/* Closing CTA as a rounded orange card on white, keeping the Rain icon motif */
.cta-band { background: #fff; overflow: visible; }
.cta-band::after { content: none; display: none; }
.cta-card { position: relative; overflow: hidden; border-radius: 32px; padding: clamp(44px, 6vw, 96px) clamp(28px, 5vw, 80px); }
.cta-card::after { content: ''; position: absolute; pointer-events: none; aspect-ratio: 1; width: min(40vw, 520px); right: -6vw; bottom: -30%; opacity: .28; background: url('../img/brand/rain-icon-white.png') center / contain no-repeat; }
.cta-card .cta-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; }
.cta-card .btn-row { flex-wrap: wrap; }
.cta-card .cta-inner h2 { font-size: clamp(34px, 4.6vw, 68px); line-height: 1.02; }
@media (max-width: 860px) {
  .cta-card { border-radius: 24px; }
  .cta-card .cta-inner { grid-template-columns: 1fr; }
  .cta-card::after { width: 70vw; right: -25vw; bottom: -20%; }
}

/* What We Do: "Built for the moments that matter". Photo on the left, heading, copy and the event statement stacked on the right */
.moments-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.moments-media { margin: 0; overflow: hidden; min-height: 100%; }
.moments-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.moments-copy { display: flex; flex-direction: column; justify-content: center; }
.moments-copy h2 { margin: 0 0 24px; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; }
.moments-lede { margin: 0; max-width: 620px; font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, .88); }
.moments-list { margin: clamp(32px, 4vw, 48px) 0 0; padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid rgba(255, 255, 255, .28); font-family: var(--display); font-size: clamp(24px, 2.3vw, 34px); line-height: 1.24; letter-spacing: -.005em; color: #fff; }
.moments-list span:nth-child(even) { font-style: italic; color: rgba(255, 255, 255, .62); }
.moments-close { margin: clamp(28px, 3vw, 40px) 0 0; font: 600 13px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
@media (max-width: 860px) {
  .moments-grid { grid-template-columns: 1fr; }
  .moments-media { aspect-ratio: 4 / 3; min-height: 0; }
}

/* Footer: brand + contact on the left, Quick Links and Legal on the far right */
.footer-grid { grid-template-columns: minmax(0, 1fr) auto auto; gap: 40px clamp(48px, 7vw, 120px); }
.footer-brand .footer-tag { margin: 0 0 18px; color: #fff; }
.footer-brand p { margin: 0 0 12px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer-actions { display: flex; align-items: center; gap: 16px; margin-top: 4px; }
.footer-actions .footer-linkedin { margin-top: 0; }
.site-footer .footer-call { display: inline-flex; align-items: center; padding: 0 0 4px; border-bottom: 1px solid #fff; color: #fff; font: 600 13px/1 var(--text); white-space: nowrap; transition: color .2s ease, border-color .2s ease; }
.site-footer .footer-call:hover { color: var(--orange); border-color: var(--orange); }


/* Journey ring: labels sit outside the circle as plain text (no pill). --lx / --ly are the outward direction for each stage */
.journey-ring .journey-step { transform: translate(-50%, -50%); display: block; padding: 0; gap: 0; }
.journey-ring .journey-step.is-active { transform: translate(-50%, -50%); }
.journey-ring .journey-dot { display: block; }
.journey-ring .journey-name { position: absolute; left: calc(50% + var(--lx) * 24px); top: calc(50% + var(--ly) * 24px); transform: translate(calc(-50% + var(--lx) * 50%), calc(-50% + var(--ly) * 50%)); padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink); transition: color .3s; }
.journey-ring .journey-step:hover .journey-name { color: var(--blue); }
.journey-ring .journey-step.is-active .journey-name { background: none; color: var(--blue); border: 0; }
.journey-ring { max-width: min(520px, calc(100% - 140px)); }
@media (max-width: 640px) {
  .journey { padding-inline: 0; }
  .journey-ring { max-width: min(420px, calc(100% - 132px)); }
  .journey-ring .journey-name { left: calc(50% + var(--lx) * 16px); top: calc(50% + var(--ly) * 16px); }
  .journey-ring .journey-panel { width: calc(100% + 132px); margin-left: -66px; }
}
@media (min-width: 641px) {
  .journey-ring .journey-panel { width: 64%; padding: 7%; }
  .journey-ring .journey-panel h3 { font-size: clamp(20px, 1.9vw, 28px); }
  .journey-ring .journey-panel p { font-size: 13px; }
}
@media (min-width: 641px) and (max-width: 1200px) {
  .journey-ring .journey-panel { padding: 6%; }
  .journey-ring .journey-panel p { font-size: 12.5px; }
}

/* ==========================================================================
   Backstage game: retro NES treatment.
   Desktop: the game plays on an old CRT television.
   Mobile (860px and below): a handheld console with a working d-pad and buttons.
   ========================================================================== */
@font-face { font-family: 'Press Start 2P'; src: url('../fonts/press-start-2p-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
.page-backstage { --pixel: 'Press Start 2P', ui-monospace, monospace; }
.game-section.retro { background-color: #0B0B18; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 16px 16px; color: #C9C9E0; padding-bottom: clamp(64px, 8vw, 112px); }
.retro .game-head { margin-bottom: clamp(32px, 4vw, 52px); }
.retro-kicker { margin: 0; font: 400 11px/1.6 var(--pixel); letter-spacing: .06em; text-transform: uppercase; color: #FFD08A; }
.retro-blink { display: inline-block; margin-right: 6px; color: #F59B00; animation: retro-blink 1s steps(1) infinite; }
@keyframes retro-blink { 50% { opacity: 0; } }
.retro h1 { margin: 18px 0 0; font: 400 clamp(26px, 4.6vw, 60px)/1.25 var(--pixel); letter-spacing: 0; color: #fff; text-shadow: 4px 4px 0 #1F4FE0; }
.retro h1 em { font-style: normal; color: #F59B00; }
.retro .game-intro { color: #B9B9D3; font-size: 15px; line-height: 1.7; }

/* in-game overlays, pixel style */
.retro .game-ov h2 { font: 400 clamp(16px, 2.8vw, 34px)/1.35 var(--pixel); text-shadow: 3px 3px 0 #1F4FE0; }
.retro .game-ov h2 em { font-style: normal; color: #F59B00; }
.retro .game-kicker { font: 400 9px/1.6 var(--pixel); letter-spacing: .04em; }
.retro .game-ov-copy, .retro .game-ov-small { font-family: var(--pixel); font-size: clamp(8px, 1vw, 11px); line-height: 1.8; }
.retro .game-btn { height: 42px; padding: 0 20px; border-radius: 0; border: 0; font: 400 10px/1 var(--pixel); letter-spacing: .04em; box-shadow: 0 4px 0 #9A5E00; transition: transform .08s steps(1), box-shadow .08s steps(1); }
.retro .game-btn:hover { background: #FFB21F; }
.retro .game-btn:active { transform: translateY(4px); box-shadow: 0 0 0 #9A5E00; }
.retro .game-btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px #fff, 0 4px 0 #555; }
.retro .game-btn-ghost:hover { background: #fff; color: #111; }
.retro .game-pick button { border-radius: 0; border-width: 2px; font: 400 8px/1 var(--pixel); }
.retro .game-keygrid li { border-radius: 0; border-width: 2px; }
.retro .game-keygrid strong { font: 400 9px/1.4 var(--pixel); letter-spacing: 0; }
.retro .game-mute { border-radius: 0; border-width: 2px; font: 400 8px/1 var(--pixel); letter-spacing: 0; padding: 6px 8px; }

/* legend + cast */
.retro .game-legend { justify-content: center; margin-top: 36px; color: #B9B9D3; font: 400 9px/1 var(--pixel); text-transform: uppercase; }
.retro .game-legend li { display: flex; align-items: center; }
.retro .game-key { border-radius: 4px; border: 2px solid #3A3A5C; background: #1B1B30; color: #fff; font: 400 9px/1.4 var(--pixel); padding: 6px 8px; box-shadow: 0 3px 0 #000; }
.retro .game-cast > div { border-top: 2px dashed #2D2D4D; }
.retro .game-cast dt { font: 400 12px/1.5 var(--pixel); color: #FFD08A; margin-bottom: 10px; }
.retro .game-cast dd { color: #B9B9D3; }

/* ---------- desktop: CRT television ---------- */
.device { position: relative; max-width: 1040px; margin: 0 auto; }
.device-top { position: relative; padding: 3.4% 4.2% 2%; border-radius: 30px 30px 12px 12px; background: linear-gradient(180deg, #47474B 0%, #333336 40%, #29292C 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .10), inset 0 -4px 0 rgba(0, 0, 0, .35), 0 40px 80px rgba(0, 0, 0, .6); }
.device-screen { position: relative; padding: 1.6%; border-radius: 5% / 8%; background: #0E0E0F; box-shadow: inset 0 0 0 3px #1A1A1B, inset 0 8px 24px rgba(0, 0, 0, .95), 0 2px 0 rgba(255, 255, 255, .07), 0 -2px 0 rgba(0, 0, 0, .5); }
.device-screen .game-wrap { border: 0; border-radius: 3.2% / 5.8%; }
.screen-fx { position: absolute; inset: 1.6%; z-index: 5; pointer-events: none; border-radius: 3.2% / 5.8%; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .2) 0 1px, rgba(0, 0, 0, 0) 1px 3px), radial-gradient(ellipse at 50% 50%, rgba(0, 0, 0, 0) 58%, rgba(0, 0, 0, .55) 100%), linear-gradient(128deg, rgba(255, 255, 255, .13) 0%, rgba(255, 255, 255, 0) 32%); box-shadow: inset 0 0 50px rgba(0, 0, 0, .55); }
.tv-badge { margin: 1.4% 0 0 1%; font: 400 10px/1 var(--pixel); letter-spacing: .2em; color: #8C8C92; }
.tv-base { display: flex; align-items: center; gap: 3%; margin: 0 1.4%; padding: 1.4% 3.2% 1.8%; border-radius: 0 0 22px 22px; background: linear-gradient(180deg, #2B2B2E, #1E1E20); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .45), 0 24px 40px rgba(0, 0, 0, .5); }
.tv-grille { flex: 1; height: 34px; background: radial-gradient(circle, #0E0E0F 1.4px, transparent 1.8px) 0 0 / 7px 7px; }
.tv-panel { flex: 0 0 26%; height: 30px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 0 12px; border-radius: 4px; background: #252528; box-shadow: inset 0 1px 4px rgba(0, 0, 0, .85), 0 1px 0 rgba(255, 255, 255, .05); }
.tv-led { width: 6px; height: 6px; border-radius: 50%; background: #3A3A3C; }
.tv-led-on { background: #5CFF7A; box-shadow: 0 0 6px #5CFF7A, 0 0 12px rgba(92, 255, 122, .6); }
.tv-power { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #5A5A5E, #19191A); box-shadow: 0 1px 0 rgba(255, 255, 255, .1), 0 0 0 2px #1A1A1B; }
.pad { display: none; }

@media (prefers-reduced-motion: reduce) { .retro-blink { animation: none; } }
@media (max-width: 860px) {
  .retro .game-legend { display: none; }
  .retro .game-btn { height: 30px; padding: 0 14px; font-size: 8px; box-shadow: 0 3px 0 #9A5E00; }
}

/* Backstage: dark page all the way to the top, and a 4:3 picture */
body.page-backstage { background-color: #0B0B18; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 16px 16px; }
.game-section.retro { background: transparent; }
.retro .game-wrap { aspect-ratio: 4 / 3; }
.device { max-width: 860px; }
@media (max-width: 860px) { .device { max-width: 420px; } }
/* Backstage on phones: the "know your run of show" legend as tidy icon-over-label tiles */
@media (max-width: 640px) {
  .retro .game-ov-key { gap: 10px; padding: 10px; }
  .retro .game-keygrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; width: 100%; }
  .retro .game-keygrid li { flex-direction: column; justify-content: center; gap: 5px; min-width: 0; padding: 7px 4px 6px; text-align: center; }
  .retro .game-keygrid li > div { min-width: 0; }
  .retro .game-keygrid canvas { height: 16px; }
  .retro .game-keygrid strong { font-size: 6px; line-height: 1.5; letter-spacing: 0; overflow-wrap: anywhere; }
}

/* Backstage: RAIN badge letters in red, green, blue, yellow */
.rgby i { font-style: normal; }
.rgby i:nth-child(1) { color: #E8453C; }
.rgby i:nth-child(2) { color: #34A853; }
.rgby i:nth-child(3) { color: #3B7BFF; }
.rgby i:nth-child(4) { color: #F5B800; }

/* ---------- Backstage mobile: Rob's handheld drawing, with the game and controls mapped onto it ---------- */
.gb-label, .gb-power, .gb-badge { display: none; }
@media (max-width: 860px) {
  .device { position: relative; width: min(100%, 400px); max-width: none; aspect-ratio: 592 / 1000; margin: 0 auto 64px; padding: 0; border-radius: 0; background: url('../img/backstage/handheld.png') center / 100% 100% no-repeat; box-shadow: none; filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .6)); }
  .device::before { content: none; }
  .device-top, .pad, .gb-controls, .gb-ab, .gb-bottom, .pad-ss, .pad-btn { display: contents; }
  .tv-badge, .tv-base, .game-toggles, .gb-label, .gb-power, .gb-badge, .pad-btn span { display: none; }

  /* screen: the black window in the drawing */
  .device-screen { position: absolute; left: 15.03%; top: 6.8%; width: 69.43%; height: 36.5%; padding: 0; border-radius: 2.4% / 2.7%; overflow: hidden; background: #000; box-shadow: none; }
  .device-screen .game-wrap { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 0; }
  .screen-fx { inset: 0; border-radius: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 1px, rgba(0, 0, 0, 0) 1px 3px); box-shadow: inset 0 0 18px rgba(0, 0, 0, .5); }

  /* invisible touch areas sitting exactly on the drawn controls */
  .pad-dpad { position: absolute; left: 6.08%; top: 54.4%; width: 38.18%; height: 22.5%; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); filter: none; touch-action: none; }
  .dp, .ab, .ss, .gb-speaker { padding: 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; touch-action: none; -webkit-tap-highlight-color: transparent; transition: background .06s; }
  .dp::after, .dp-mid::after { content: none !important; }
  .dp-up { grid-area: 1 / 2; border-radius: 10px 10px 0 0; }
  .dp-left { grid-area: 2 / 1; border-radius: 10px 0 0 10px; }
  .dp-mid { grid-area: 2 / 2; }
  .dp-right { grid-area: 2 / 3; border-radius: 0 10px 10px 0; }
  .dp-down { grid-area: 3 / 2; border-radius: 0 0 10px 10px; }
  .dp.is-on { background: rgba(0, 0, 0, .28); }
  .ab { position: absolute; width: 15.2%; height: 9%; border-radius: 50%; transform: none; }
  .gb-ab .pad-btn:first-child .ab { left: 58.61%; top: 64.1%; }
  .gb-ab .pad-btn:last-child .ab { left: 76.86%; top: 59.5%; }
  .ab.is-on { background: rgba(0, 0, 0, .28); transform: none; box-shadow: none; }
  .ss { position: absolute; width: 15.2%; height: 6.6%; top: 79.6%; border-radius: 12px; transform: none; }
  .pad-ss .pad-btn:first-child .ss { left: 32.77%; }
  .pad-ss .pad-btn:last-child .ss { left: 51.01%; }
  .ss.is-on { background: rgba(0, 0, 0, .2); transform: none; box-shadow: none; }
  .gb-speaker { position: absolute; left: 72.6%; top: 82.2%; width: 19.6%; height: 11.4%; border-radius: 50%; transform: none; }
  .gb-speaker.is-on { background: rgba(0, 0, 0, .18); transform: none; }
  .pad-hint { position: absolute; left: 0; right: 0; top: calc(100% + 14px); margin: 0; text-align: center; font: 600 11px/1.45 var(--text); color: #B9B9D3; }
}

/* Backstage: TV logo, lighter rendering for smoother play, and bigger touch targets on the handheld */
.tv-badge img { display: block; height: 20px; width: auto; }
.page-backstage .header-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(255, 255, 255, .97); }
.game-wrap canvas { transform: translateZ(0); }
@media (max-width: 860px) {
  .device { filter: none; isolation: isolate; }
  .device::before { content: ''; position: absolute; inset: 2% 3% 1%; z-index: -1; border-radius: 40px; background: none; opacity: 1;  -webkit-mask-image: none; mask-image: none; }
  .gb-speaker { display: none; }
  .ab { width: 19.26%; height: 11.4%; border-radius: 50%; }
  .gb-ab .pad-btn:first-child .ab { left: 56.59%; top: 62.65%; }
  .gb-ab .pad-btn:last-child .ab { left: 74.83%; top: 58.05%; }
  .ab.is-on { background: radial-gradient(circle, rgba(0, 0, 0, .28) 0 39%, rgba(0, 0, 0, 0) 40%); }
}

/* ==========================================================================
   Backstage: the nav becomes a Windows 95 style toolbar. Square corners, gray bevels,
   navy highlight, underlined first letters, and a pixel Rain logo.
   ========================================================================== */
.page-backstage { --w95-face: #C0C0C0; --w95-light: #FFFFFF; --w95-mid: #DFDFDF; --w95-shadow: #808080; --w95-dark: #0A0A0A; --w95-hi: #000080; --w95-font: Tahoma, 'MS Sans Serif', 'Microsoft Sans Serif', Geneva, Verdana, sans-serif; }
.page-backstage main { padding-top: 48px; }
.page-backstage .site-header { padding: 0; }
.page-backstage .header-inner { max-width: none; height: 48px; padding: 0 8px 0 10px; gap: 8px; border: 0; border-radius: 0; background: var(--w95-face); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: inset 0 1px 0 var(--w95-light), inset 0 -1px 0 var(--w95-shadow), 0 1px 0 var(--w95-dark); font-family: var(--w95-font); transition: none; }
.page-backstage .site-header.is-scrolled .header-inner { box-shadow: inset 0 1px 0 var(--w95-light), inset 0 -1px 0 var(--w95-shadow), 0 1px 0 var(--w95-dark); }
.page-backstage .brand { padding: 2px 4px; }
.page-backstage .brand img { height: 36px; width: auto; image-rendering: pixelated; image-rendering: crisp-edges; filter: none; }
.page-backstage .site-nav { align-self: stretch; margin: 8px 0; padding-left: 8px; border-left: 1px solid var(--w95-shadow); box-shadow: inset 1px 0 0 var(--w95-light); }
.page-backstage .nav-links { gap: 2px; }
.page-backstage .nav-links a, .page-backstage .nav-secondary { padding: 7px 10px; border-radius: 0; background: none; color: #000; font: 400 14px/1 var(--w95-font); letter-spacing: 0; transition: none; }
.page-backstage .nav-links a::first-letter, .page-backstage .nav-secondary::first-letter { text-decoration: underline; text-underline-offset: 2px; }
.page-backstage .nav-links a:hover, .page-backstage .nav-secondary:hover { background: var(--w95-hi); color: #fff; }
.page-backstage .nav-links a[aria-current="page"] { color: #000; box-shadow: inset 1px 1px 0 var(--w95-shadow), inset -1px -1px 0 var(--w95-light); }
.page-backstage .nav-cta { height: 32px; padding: 0 16px; border: 1px solid var(--w95-dark); border-radius: 0; background: var(--w95-face); color: #000; font: 700 14px/1 var(--w95-font); box-shadow: inset -1px -1px 0 var(--w95-dark), inset 1px 1px 0 var(--w95-light), inset -2px -2px 0 var(--w95-shadow), inset 2px 2px 0 var(--w95-mid); transition: none; }
.page-backstage .nav-cta:hover { background: var(--w95-face); color: #000; box-shadow: inset -1px -1px 0 var(--w95-dark), inset 1px 1px 0 var(--w95-light), inset -2px -2px 0 var(--w95-shadow), inset 2px 2px 0 var(--w95-mid); outline: 1px dotted #000; outline-offset: -5px; }
.page-backstage .nav-cta:active { box-shadow: inset 1px 1px 0 var(--w95-dark), inset -1px -1px 0 var(--w95-light), inset 2px 2px 0 var(--w95-shadow), inset -2px -2px 0 var(--w95-mid); padding-top: 2px; padding-left: 18px; padding-right: 14px; }
@media (max-width: 960px) {
  .page-backstage main { padding-top: 48px; }
  .page-backstage .site-header, .page-backstage.page-home .site-header:not(.is-scrolled) { padding: 0; }
  .page-backstage .header-inner, .page-backstage .nav-open .header-inner { height: auto; max-width: none; padding: 0; border-radius: 0; background: var(--w95-face); }
  .page-backstage .nav-bar { height: 48px; padding: 0 8px 0 10px; }
  .page-backstage .brand img { height: 30px; }
  .page-backstage .nav-toggle { width: 38px; height: 32px; border-radius: 0; background: var(--w95-face); box-shadow: inset -1px -1px 0 var(--w95-dark), inset 1px 1px 0 var(--w95-light), inset -2px -2px 0 var(--w95-shadow), inset 2px 2px 0 var(--w95-mid); }
  .page-backstage .nav-toggle span { left: 11px; right: 11px; border-radius: 0; background: #000; }
  .page-backstage .nav-toggle span:first-child { top: 11px; }
  .page-backstage .nav-toggle span:last-child { top: 19px; }
  .page-backstage .nav-open .nav-toggle span:first-child, .page-backstage .nav-open .nav-toggle span:last-child { top: 15px; }
  .page-backstage .site-nav { margin: 0; padding: 4px 6px 8px; gap: 6px; border: 0; border-top: 1px solid var(--w95-shadow); box-shadow: inset 0 1px 0 var(--w95-light); animation: none !important; }
  .page-backstage .nav-links { gap: 0; }
  .page-backstage .nav-links > li { border-radius: 0; background: none; }
  .page-backstage .nav-row > a { padding: 12px 10px; border-radius: 0; font-size: 15px; }
  .page-backstage .nav-row:hover { background: var(--w95-hi); }
  .page-backstage .nav-row:hover > a, .page-backstage .nav-row:hover .nav-go { color: #fff; background: none; }
  .page-backstage .nav-go { width: 36px; height: 36px; margin-right: 0; color: #000; }
  .page-backstage .nav-actions { gap: 6px; margin-top: 6px; }
  .page-backstage .nav-cta { height: 40px; font-size: 15px; }
  .page-backstage .nav-secondary { padding: 12px 10px; text-align: left; font-size: 15px; }
}

/* Rain mark used in place of list numbers, colored per section */
.rain-mark { display: inline-block; width: 22px; height: 22px; padding: 0; background: currentColor; -webkit-mask: url('../img/brand/rain-icon-white.png') center / contain no-repeat; mask: url('../img/brand/rain-icon-white.png') center / contain no-repeat; font-size: 0; }
.sx-num.rain-mark { color: var(--orange); width: 20px; height: 20px; }
.xp-num.rain-mark { color: var(--blue); width: 30px; height: 30px; padding: 0; margin-top: 4px; }
.svc-block-head { grid-template-columns: 1fr; }
@media (min-width: 1081px) {
  .svc-block-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.1fr); }
  .svc-block-grid > .copy { grid-column: 1; }
  .svc-block-grid > .check-list { grid-column: 2; }
  .svc-block-grid > img { grid-column: 3; }
}

/* Every content image gets the same 4px corners (the backstage game page keeps its own look) */
body:not(.page-backstage) main img:not([src*="brand/"]) { border-radius: 4px; }
body:not(.page-backstage) .hero-page .hero-bg { border-radius: 4px; }

/* Same soft shadow on content images and page headers (not the backstage page).
   Images inside clipped frames get the shadow on the frame so it isn't cut off. */
body:not(.page-backstage) main img:not([src*="brand/"]),
body:not(.page-backstage) .hero-page .hero-bg { box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
body:not(.page-backstage) .ws-media,
body:not(.page-backstage) .moments-media { border-radius: 4px; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
body:not(.page-backstage) .ws-media img:not([src*="brand/"]),
body:not(.page-backstage) .moments-media img:not([src*="brand/"]) { box-shadow: none; }
.cta-card { box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }

/* Backstage: stop long presses from selecting text, showing the copy/save callout, or zooming while playing */
.page-backstage .device, .page-backstage .device * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.page-backstage .device { touch-action: manipulation; }
.page-backstage .device img, .page-backstage .device canvas { -webkit-user-drag: none; }

/* ==========================================================================
   Bandwidth calculator
   ========================================================================== */
.bw-intro { padding-bottom: 0; }
.bw-back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font: 600 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.bw-back .icon { width: 14px; height: 14px; transform: rotate(180deg); }
.bw-back:hover { color: var(--blue); }
.bw-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; }
.bw-head h1 { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: 1; }
.bw-head .lead { margin: 0; }
.bw-section { padding-top: clamp(40px, 5vw, 64px); }
.bw-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.bw-inputs { display: grid; gap: 16px; }
.bw-card { margin: 0; min-width: 0; padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.bw-card.is-on { border-color: var(--blue); box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .08); }
.bw-card-head { display: flex; align-items: flex-start; gap: 14px; padding: 0; width: 100%; float: left; }
.bw-card-head + * { clear: both; }
.bw-card-head strong { display: block; font: 400 24px/1.15 var(--display); color: var(--ink); }
.bw-card-head small { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.bw-switch { position: relative; flex: none; width: 44px; height: 26px; margin-top: 2px; cursor: pointer; }
.bw-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.bw-switch span { position: absolute; inset: 0; border-radius: 100px; background: #D5D7DE; transition: background .2s ease; }
.bw-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease; }
.bw-switch input:checked + span { background: var(--blue); }
.bw-switch input:checked + span::after { transform: translateX(18px); }
.bw-switch input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bw-body { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; padding-top: 20px; margin-top: 18px; border-top: 1px solid var(--line); }
.bw-card:not(.is-on) .bw-body { display: none; }
.bw-field { display: grid; gap: 6px; min-width: 0; }
.bw-wide { grid-column: 1 / -1; }
.bw-field label, .bw-label { font: 600 13px/1.3 var(--text); color: var(--ink); }
.bw-field input[type="number"], .bw-field select { width: 100%; height: 46px; padding: 0 14px; border: 1px solid #D4D4D4; border-radius: 4px; background: #fff; font: 500 16px/1 var(--text); color: var(--ink); }
.bw-field input[type="number"]:focus, .bw-field select:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: var(--blue); }
.bw-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bw-seg label { position: relative; cursor: pointer; }
.bw-seg input { position: absolute; opacity: 0; }
.bw-seg span { display: block; height: 100%; padding: 12px 14px; border: 1px solid #D4D4D4; border-radius: 4px; font: 400 12.5px/1.4 var(--text); color: var(--muted); transition: border-color .15s ease, background .15s ease; }
.bw-seg span strong { display: block; margin-bottom: 2px; font: 600 14px/1.3 var(--text); color: var(--ink); }
.bw-seg input:checked + span { border-color: var(--blue); background: rgba(31, 79, 224, .06); box-shadow: inset 0 0 0 1px var(--blue); }
.bw-seg input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.bw-checks { gap: 10px; }
.bw-checks label { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.bw-checks input { width: 18px; height: 18px; accent-color: var(--blue); }
.bw-buffer { border-style: dashed; }
.bw-note { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.bw-results { position: sticky; top: 120px; padding: clamp(24px, 3vw, 36px); border-radius: 4px; background: var(--ink); color: rgba(255, 255, 255, .8); box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
.bw-results-kicker { margin: 0 0 16px; font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #FFD08A; }
.bw-totals { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-bottom: 22px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.bw-num { font: 400 clamp(44px, 4.6vw, 64px)/1 var(--display); color: #fff; font-variant-numeric: tabular-nums; }
.bw-unit { margin-left: 6px; font: 600 14px/1 var(--text); color: rgba(255, 255, 255, .7); }
.bw-dir { display: block; margin-top: 8px; font: 600 12px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.bw-split { padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.bw-split-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; }
.bw-split-row strong { color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.bw-split-note { margin: 6px 0 0; font-size: 12px; color: rgba(255, 255, 255, .55); }
.bw-table { width: 100%; margin: 14px 0 18px; border-collapse: collapse; font-size: 14px; }
.bw-table th, .bw-table td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: right; font-variant-numeric: tabular-nums; }
.bw-table thead th { font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.bw-table th[scope="row"], .bw-table thead th:first-child { text-align: left; font-weight: 500; color: #fff; }
.bw-table td { padding-left: 12px; white-space: nowrap; }
.bw-empty { text-align: left !important; color: rgba(255, 255, 255, .6); }
.bw-copy { width: 100%; height: 46px; border: 1px solid rgba(255, 255, 255, .5); border-radius: 100px; background: transparent; color: #fff; font: 600 13px/1 var(--text); letter-spacing: .06em; cursor: pointer; transition: background .2s ease, color .2s ease; }
.bw-copy:hover { background: #fff; color: var(--ink); }
.bw-copied { margin: 10px 0 0; font-size: 13px; color: #FFD08A; text-align: center; }
.bw-cta { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .16); }
.bw-cta p { margin: 0 0 16px; font-size: 15px; }
.bw-cta p strong { color: #fff; }
.bw-cta .btn-dark { background: var(--orange); border-color: var(--orange); color: #111; }
.bw-cta .btn-dark:hover { background: #fff; border-color: #fff; color: #111; }
.bw-cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .5); }
.bw-cta .btn-ghost:hover { background: #fff; color: #111; }
.bw-how { margin-top: clamp(32px, 4vw, 56px); padding: 22px 24px; border: 1px solid var(--line); border-radius: 4px; }
.bw-how summary { cursor: pointer; font: 400 22px/1.2 var(--display); color: var(--ink); }
.bw-how ul { margin: 16px 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.bw-how p { margin: 0; font-size: 14px; color: var(--muted); }
@media (max-width: 960px) {
  .bw-head, .bw-grid { grid-template-columns: 1fr; }
  .bw-results { position: static; }
}
@media (max-width: 560px) {
  .bw-body { grid-template-columns: 1fr; }
  .bw-seg { grid-template-columns: 1fr; }
  .bw-card { padding: 18px; }
}

/* Insights & Tools: tool card */
.tools-section .tool-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: 4px; background: var(--ink); color: rgba(255, 255, 255, .8); text-decoration: none; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
.tool-card h3 { margin: 10px 0 12px; color: #fff; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; }
.tool-card h3 em { color: var(--orange); }
.tool-card p { margin: 0; font-size: 16px; }
.tool-card .tool-kicker { font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #FFD08A; }
.tool-card .tool-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tool-card .tool-stats div { padding: 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 4px; }
.tool-card .tool-stats strong { display: block; font: 400 34px/1 var(--display); color: #fff; }
.tool-card .tool-stats span { display: block; margin-top: 6px; font: 600 11px/1 var(--text); letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.tool-card .tool-go { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font: 600 13px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tool-card .tool-go .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.tool-card:hover .tool-go .icon { transform: translateX(4px); }
@media (max-width: 860px) { .tools-section .tool-card { grid-template-columns: 1fr; } }
.bw-tag { display: inline-block; margin-left: 8px; padding: 2px 6px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 3px; font: 600 9.5px/1.3 var(--text); letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .65); vertical-align: 1px; }
.bw-bar { display: none; }
@media (max-width: 960px) {
  .bw-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 100px; background: var(--ink); color: rgba(255, 255, 255, .75); font-size: 13px; text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
  .bw-bar strong { color: #fff; font-size: 15px; }
  .bw-bar-go { margin-left: auto; color: var(--orange); font-weight: 600; }
  .bw-results { scroll-margin-top: 90px; }
}
@media (max-width: 960px) { .bw-bar span { white-space: nowrap; } }

/* Bandwidth calculator v2: steps, four-option picker, actions, and a blue results panel */
.bw-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; margin: clamp(28px, 3vw, 40px) 0 0; padding: 0; }
.bw-steps li { display: flex; align-items: center; gap: 10px; font: 600 14px/1.3 var(--text); color: var(--ink); }
.bw-steps li span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; }
.bw-seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 760px) { .bw-seg-4 { grid-template-columns: 1fr 1fr; } }
.bw-note.bw-wide { margin: 0; }
.bw-actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.bw-reset { height: 46px; padding: 0 18px; border: 0; border-radius: 100px; background: transparent; color: rgba(255, 255, 255, .8); font: 600 13px/1 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.bw-reset:hover { color: #fff; }
.bw-results { background: var(--blue); color: rgba(255, 255, 255, .86); }
.bw-results .bw-dir { color: #FFD08A; }
.bw-totals, .bw-split, .bw-cta { border-color: rgba(255, 255, 255, .24); }
.bw-table th, .bw-table td { border-bottom-color: rgba(255, 255, 255, .18); }
.bw-table thead th, .bw-split-note, .bw-unit { color: rgba(255, 255, 255, .72); }
.bw-tag { border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .85); }
.bw-results .bw-copy:hover { color: var(--blue); }
.bw-cta .btn-dark:hover { color: var(--blue); }
.bw-cta .btn-ghost:hover { color: var(--blue); }
@media (max-width: 960px) { .bw-bar { background: var(--blue); } .bw-bar-go { color: #FFD08A; } }

/* Bandwidth calculator v3: same look as the careers applications */
.bw-form { gap: 0; min-width: 0; }
.bw-step h4 { gap: 14px; }
.bw-step h4 .bw-switch { margin-top: 0; }
.bw-step .apply-intro { margin-left: 58px; }
.bw-headroom .apply-intro { margin-left: 0; }
.bw-step:not(.is-on) .bw-fields { display: none; }
.bw-step:not(.is-on) h4 { color: var(--muted); }
.bw-fields { margin-bottom: 24px; }
.bw-form .field select { height: 54px; }
@media (max-width: 640px) { .bw-step .apply-intro { margin-left: 0; } }
.bw-form .chip span { color: var(--ink); }
.bw-form .chip input:checked + span { color: #fff; }

/* Bandwidth calculator: send-your-plan popup */
.bw-dialog .topic-panel h2 { font-size: clamp(32px, 3.6vw, 48px); }
.bw-plan-preview { margin: 4px 0 20px; border: 1px solid var(--line); border-radius: var(--radius); }
.bw-plan-preview summary { cursor: pointer; padding: 12px 16px; font-size: 14px; font-weight: 600; }
.bw-plan-preview pre { margin: 0; padding: 0 16px 16px; max-height: 220px; overflow: auto; font-size: 12px; line-height: 1.55; white-space: pre-wrap; color: var(--ink); }
.bw-dialog [aria-invalid="true"] { border-color: #c0392b; }

/* Bandwidth calculator: safety buffer slider */
.bw-slider label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bw-slider output { font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--blue); }
.bw-slider input[type="range"] { width: 100%; height: 28px; margin: 6px 0 0; padding: 0; border: 0; background: transparent; accent-color: var(--blue); cursor: pointer; }
.bw-ticks { display: flex; justify-content: space-between; padding: 0 2px; font-size: 12px; color: var(--muted, #6b6b6b); }

/* Bandwidth calculator: single total */
.bw-totals.bw-totals-one { grid-template-columns: 1fr; }
.bw-order { margin-top: 6px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .16); font-weight: 600; }
.bw-order strong { font-size: 18px; color: var(--orange); }
.bw-note { grid-column: 1 / -1; margin: 0; padding: 12px 16px; border-left: 3px solid var(--blue); background: rgba(0, 35, 149, .05); font-size: 14px; }

/* Insights: tool card image */
.tool-card .tool-media { align-self: stretch; }
.tool-card .tool-media img { display: block; width: 100%; height: 100%; min-height: 260px; object-fit: cover; border-radius: 4px; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
@media (max-width: 860px) { .tool-card .tool-media img { height: auto; min-height: 0; aspect-ratio: 3 / 2; } }

/* ===== Speaker clock (controls) ===== */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-400.woff2') format('woff2'); font-display: swap; }
.sc-section { padding-top: 0; }
.sc-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.sc-main { position: sticky; top: 120px; }
.sc-preview { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 16 / 9; padding: 24px; border-radius: 4px; background: #000; color: #fff; text-align: center; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); overflow: hidden; }
.sc-preview-label { position: absolute; left: 18px; top: 14px; margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sc-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: #2ecc71; }
.sc-preview.lost .sc-dot { background: #FF3B30; }
.sc-digits { font: 400 clamp(64px, 11vw, 168px)/.9 'Anton', sans-serif; font-variant-numeric: tabular-nums; color: #fff; transition: color .3s; }
.sc-preview.is-warn .sc-digits { color: var(--orange); }
.sc-preview.is-over .sc-digits { color: #FF3B30; }
.sc-preview.paused .sc-digits { opacity: .6; }
.sc-state { margin: 10px 0 0; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }
.sc-msg { margin: 14px 0 0; max-width: 100%; padding: 8px 16px; border-radius: 8px; background: #fff; color: #000; font-weight: 700; font-size: clamp(16px, 1.8vw, 22px); line-height: 1.2; overflow-wrap: anywhere; }
.sc-msg.flash { animation: scflash 1s steps(1) infinite; }
@keyframes scflash { 50% { background: var(--orange); } }
.sc-transport { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sc-transport .sc-go { min-width: 140px; }
.sc-nudge { padding: 0 18px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--text); cursor: pointer; }
.sc-nudge:hover, .sc-chip:hover { border-color: var(--ink); }
.sc-keys { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.sc-keys kbd { padding: 2px 6px; border: 1px solid var(--line); border-radius: 4px; font: 600 12px/1 var(--text); }
.sc-code-card { margin-top: 28px; padding: 26px; border-radius: 4px; background: var(--blue); color: rgba(255, 255, 255, .85); box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); }
.sc-kicker { margin: 0; font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #FFD08A; }
.sc-code { margin: 12px 0 8px; font: 400 clamp(44px, 5vw, 64px)/1 'Anton', sans-serif; letter-spacing: .18em; color: #fff; user-select: all; }
.sc-code-help { margin: 0; font-size: 15px; }
.sc-code-help strong { color: #fff; }
.sc-code-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.sc-code-card .btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; }
.sc-code-card .btn-ghost:hover { background: #fff; color: var(--ink); }
.sc-btn-blue { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.sc-btn-blue:hover { background: #fff; border-color: #fff; color: var(--ink); }
.sc-note { margin: 12px 0 0; font-size: 13px; color: #fff; }
.sc-link { display: inline-block; margin-top: 14px; padding: 0; border: 0; background: none; color: rgba(255, 255, 255, .75); font: 500 13px/1.4 var(--text); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: left; }
.sc-link:hover { color: #fff; }
.sc-form .sc-panel h4 { margin-bottom: 6px; }
.sc-form .apply-intro { margin-left: 0; }
.sc-time-fields { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.sc-set .btn { height: 54px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.sc-chip { padding: 10px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink); font: 500 14px/1.2 var(--text); cursor: pointer; }
.sc-chip:active, .sc-nudge:active { background: var(--ink); color: #fff; }
.sc-msg-field { margin-top: 4px; }
.sc-msg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.sc-msg-actions .chip { margin-right: auto; }
.sc-form .chip span { color: var(--ink); }
.sc-form .chip input:checked + span { color: #fff; }
@media (max-width: 900px) {
  .sc-grid { grid-template-columns: 1fr; }
  .sc-main { position: static; }
  .sc-time-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sc-set { grid-column: 1 / -1; }
  .sc-set .btn { width: 100%; }
}
.sc-section { padding-top: clamp(16px, 3vw, 40px); }
.sc-time-fields .field { grid-column: auto; }
.tools-section .tool-card + .tool-card { margin-top: 24px; }
.tool-clock { display: grid; place-items: center; align-content: center; gap: 8px; min-height: 260px; height: 100%; border-radius: 4px; background: #000; border: 1px solid rgba(255, 255, 255, .12); }
.tool-clock span { font: 400 clamp(72px, 9vw, 132px)/.9 'Anton', sans-serif; color: var(--orange); font-variant-numeric: tabular-nums; }
.tool-clock em { padding: 6px 14px; border-radius: 6px; background: #fff; color: #000; font: 700 15px/1.2 var(--text); font-style: normal; }
@media (max-width: 900px) { .sc-keys { display: none; } }

/* ===== Nav dropdown (Resources) ===== */
.has-menu { position: relative; }
.nav-menu-btn { display: inline-flex; align-items: center; gap: 5px; padding: 11px 13px; border: 0; border-radius: 100px; background: none; color: var(--ink); font: 500 15.5px/1 var(--text); cursor: pointer; transition: background .2s ease, color .2s ease; }
.nav-menu-btn .icon { width: 16px; height: 16px; transition: transform .2s ease; }
.nav-menu-btn:hover { background: rgba(255, 255, 255, .55); }
.nav-menu-btn.is-current { color: var(--blue); }
.has-menu.open .nav-menu-btn .icon { transform: rotate(180deg); }
.nav-sub { list-style: none; margin: 0; padding: 0; }
.nav-sub a { display: block; text-decoration: none; color: var(--ink); white-space: nowrap; }
.nav-sub a[aria-current="page"] { color: var(--blue); }
@media (min-width: 961px) {
  .nav-sub { position: absolute; top: calc(100% + 12px); left: 50%; z-index: 60; min-width: 240px; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 18px 44px rgba(17, 17, 17, .18); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity .18s ease, transform .18s ease, visibility .18s; }
  .nav-sub::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
  .has-menu:hover .nav-sub, .has-menu.open .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .nav-menu-btn .icon { transform: rotate(180deg); }
  .nav-sub a { padding: 12px 14px; border-radius: 10px; font: 500 15px/1.2 var(--text); }
  .nav-sub a:hover { background: #F2F4FA; }
}
@media (max-width: 960px) {
  .nav-menu-btn { width: 100%; justify-content: space-between; padding: 18px 21px 18px 18px; border-radius: 18px; font-size: 17px; }
  .nav-menu-btn:hover { background: transparent; }
  .nav-menu-btn .icon { width: 20px; height: 20px; }
  .nav-sub { display: none; padding: 0 8px 10px; }
  .has-menu.open .nav-sub { display: block; }
  .nav-sub a { padding: 14px 12px; border-radius: 12px; font: 500 16px/1.2 var(--text); }
  .nav-sub a:hover { background: rgba(17, 17, 17, .05); }
}
/* Backstage (Win95 toolbar) */
.page-backstage .nav-menu-btn { padding: 7px 10px; border-radius: 0; background: none; color: #000; font: 400 14px/1 var(--w95-font); transition: none; }
.page-backstage .nav-menu-btn:hover, .page-backstage .has-menu.open .nav-menu-btn { background: var(--w95-hi); color: #fff; }
.page-backstage .nav-sub { border-radius: 0; padding: 2px; background: var(--w95-face); box-shadow: inset -1px -1px 0 var(--w95-dark), inset 1px 1px 0 var(--w95-light), inset -2px -2px 0 var(--w95-shadow), inset 2px 2px 0 var(--w95-mid); transition: none; }
.page-backstage .nav-sub a { border-radius: 0; color: #000; font: 400 14px/1 var(--w95-font); }
.page-backstage .nav-sub a:hover { background: var(--w95-hi); color: #fff; }
@media (min-width: 961px) { .page-backstage .nav-sub { top: 100%; transform: translate(-50%, 0); } .page-backstage .nav-sub::before { display: none; } }
.tool-prompter { display: flex; flex-direction: column; justify-content: center; gap: 10px; min-height: 260px; height: 100%; padding: 24px 28px; border-radius: 4px; background: #000; border: 1px solid rgba(255, 255, 255, .12); overflow: hidden; }
.tool-prompter p { margin: 0; color: rgba(255, 255, 255, .35); font: 700 clamp(20px, 2.2vw, 30px)/1.25 var(--text); }
.tool-prompter p.on { position: relative; padding-left: 22px; color: #fff; }
.tool-prompter p.on::before { content: ''; position: absolute; left: 0; top: 50%; border: 7px solid transparent; border-left: 11px solid var(--orange); transform: translateY(-50%); }
.nav-sub a .icon { width: 13px; height: 13px; margin-left: 6px; vertical-align: -1px; opacity: .45; }

/* Insights & Tools: three tool tiles in a row */
.tools-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tool-tile { display: flex; flex-direction: column; overflow: hidden; border-radius: 4px; background: var(--ink); color: rgba(255, 255, 255, .8); text-decoration: none; box-shadow: 0 1px 2px rgba(17, 17, 17, .08), 0 14px 40px rgba(17, 17, 17, .14); transition: transform .25s ease, box-shadow .25s ease; }
.tool-tile:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(17, 17, 17, .1), 0 22px 50px rgba(17, 17, 17, .2); }
.tool-tile .tile-media { aspect-ratio: 16 / 10; overflow: hidden; }
.tool-tile .tile-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tool-tile .tile-media.tool-clock, .tool-tile .tile-media.tool-prompter { min-height: 0; height: auto; border: 0; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tool-tile .tool-clock span { font-size: clamp(56px, 6vw, 92px); }
.tool-tile .tool-clock em { font-size: 13px; }
.tool-tile .tool-prompter { padding: 18px 22px; gap: 8px; }
.tool-tile .tool-prompter p { font-size: clamp(16px, 1.5vw, 21px); }
.tool-tile .tile-body { display: flex; flex-direction: column; flex: 1; padding: 24px 24px 26px; }
.tool-tile h3 { margin: 10px 0 10px; color: #fff; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; }
.tool-tile h3 em { color: var(--orange); }
.tool-tile .tile-body > p:not(.tool-kicker) { margin: 0; font-size: 15px; line-height: 1.55; }
.tool-tile .tool-kicker { margin: 0; font: 600 11px/1 var(--text); letter-spacing: .14em; text-transform: uppercase; color: #FFD08A; }
.tool-tile .tool-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 20px; font: 600 12px/1 var(--text); letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.tool-tile .tool-go .icon { width: 15px; height: 15px; transition: transform .2s ease; }
.tool-tile:hover .tool-go .icon { transform: translateX(3px); }
@media (max-width: 960px) { .tools-grid { grid-template-columns: 1fr; max-width: 520px; } }

/* Insights & Tools: light planning card, two dark show tools */
.tools-show { padding-top: 0; }
.tools-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-tile-light { background: var(--soft); color: var(--body); box-shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 14px 40px rgba(17, 17, 17, .08); }
.tool-tile-light h3 { color: var(--ink); }
.tool-tile-light h3 em { color: var(--blue); }
.tool-tile-light .tool-kicker { color: var(--blue); }
.tool-tile-light .tool-go { color: var(--ink); }
.tool-tile-wide { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.tool-tile-wide .tile-media { aspect-ratio: auto; min-height: 280px; }
.tool-tile-wide .tile-body { justify-content: center; padding: clamp(28px, 4vw, 52px); }
.tool-tile-wide h3 { font-size: clamp(28px, 3vw, 42px); }
.tool-tile-wide .tool-go { margin-top: 0; }
@media (max-width: 960px) {
  .tools-grid-2 { grid-template-columns: 1fr; }
  .tool-tile-wide { grid-template-columns: 1fr; max-width: 520px; }
  .tool-tile-wide .tile-media { min-height: 0; aspect-ratio: 16 / 10; }
}
.tools-grid-2 .tool-tile .tile-media { aspect-ratio: 2 / 1; }
.tools-grid-2 .tool-clock span { font-size: clamp(64px, 7vw, 108px); }
.tools-grid-2 .tool-prompter { padding: 20px 32px; }
.tools-grid-2 .tool-prompter p { font-size: clamp(16px, 1.7vw, 24px); }
@media (max-width: 960px) { .tools-grid-2 .tool-tile .tile-media { aspect-ratio: 16 / 9; } }
.tools-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-grid-3 .tool-clock span { font-size: clamp(56px, 5.5vw, 88px); }
.tool-rundown { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 16px 20px; background: #000; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tool-rundown p { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0; padding: 7px 10px; border-left: 3px solid transparent; border-radius: 3px; color: rgba(255, 255, 255, .7); font: 700 clamp(13px, 1.1vw, 15px)/1.3 var(--text); }
.tool-rundown p span { width: 34px; color: rgba(255, 255, 255, .4); font-weight: 500; font-variant-numeric: tabular-nums; }
.tool-rundown p.done { opacity: .4; }
.tool-rundown p.on { border-left-color: #2ECC71; background: rgba(46, 204, 113, .12); color: #fff; }
.tool-rundown p em { flex-basis: 100%; margin-left: 46px; padding: 2px 7px; width: fit-content; border-radius: 4px; background: rgba(46, 204, 113, .18); color: #2ECC71; font-size: 11px; font-style: normal; }
@media (max-width: 1100px) { .tools-grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 960px) { .tools-grid-3 { grid-template-columns: 1fr; } }

/* Tool cards: keep text colors steady on hover */
.tool-tile:hover { color: rgba(255, 255, 255, .8); }
.tool-tile-light:hover { color: var(--body); }

/* Speaker timer card: white digits and the presenter's progress bar (10-minute timer, 7:42 left) */
.tool-tile .tool-clock { position: relative; }
.tool-tile .tool-clock span { color: #fff; margin-bottom: 18px; }
.mini-bar { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 10px; border-radius: 10px; overflow: hidden; background: #222; }
.mini-bar i { position: absolute; top: 0; bottom: 0; }
.mini-bar .g { left: 0; width: 50%; background: #2ECC71; }
.mini-bar .y { left: 50%; width: 30%; background: #F5C400; }
.mini-bar .o { left: 80%; width: 20%; background: #F59B00; }
.mini-bar .rest { position: absolute; top: 0; bottom: 0; left: 22.8%; right: 0; background: rgba(0, 0, 0, .62); }
.mini-bar .mark { position: absolute; top: 0; bottom: 0; left: 22.8%; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff; box-shadow: 0 0 0 2px #000; }

/* Insights & Tools: disclaimer and feedback under the show tools */
.tools-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.tools-disclaimer { flex: 1 1 520px; margin: 0; max-width: 760px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.tools-disclaimer strong { color: var(--ink); font-weight: 600; }
.tools-disclaimer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.tools-foot .btn { flex: none; }
#feedback-dialog select { width: 100%; }
/* Four show tools: three per row */
.tools-grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tools-grid-4 .tool-clock span { font-size: clamp(56px, 5.5vw, 88px); }
.tool-countdown { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: radial-gradient(120% 120% at 20% 0%, #2a4fd8 0%, #12235f 45%, #070b1c 100%); border-bottom: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.tool-tile .tile-media.tool-countdown img { position: absolute; top: 7%; left: 50%; width: 28px; height: 28px; object-fit: contain; transform: translateX(-50%); opacity: .9; }
.tool-countdown p { margin: 0; color: #fff; font: 400 clamp(14px, 1.4vw, 20px)/1.2 'Bebas Neue', 'Anton', sans-serif; letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.tool-countdown span { color: #fff; font: 400 clamp(48px, 5vw, 80px)/1 'Anton', sans-serif; letter-spacing: .01em; }
@media (max-width: 960px) { .tools-grid-4 { grid-template-columns: 1fr; } }

/* RFP builder tile: a mini document */
.tool-rfp { display: grid; place-items: center; background: #ECEBE6; padding: 22px; }
.rfp-sheet { width: min(78%, 380px); padding: 22px 24px 20px; background: #fff; box-shadow: 0 1px 2px rgba(17, 17, 17, .06), 0 12px 30px rgba(17, 17, 17, .1); transform: rotate(-2deg); text-align: left; }
.rfp-sheet p { margin: 0; }
.rfp-sheet .k { font: 700 9px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.rfp-sheet .t { font: 400 clamp(20px, 2vw, 26px)/1.05 var(--display); color: var(--ink); }
.rfp-sheet .v { font: 500 11px/1.3 var(--text); color: #5C5B56; margin: 4px 0 12px; }
.rfp-sheet .m { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 2px solid var(--ink); }
.rfp-sheet .m span { border-top: 1px solid #E3E2DC; padding-top: 5px; font: 600 10px/1.2 var(--text); color: var(--ink); }
.rfp-sheet .m b { display: block; font-size: 7.5px; letter-spacing: .12em; text-transform: uppercase; color: #5C5B56; margin-bottom: 2px; }
.rfp-sheet i { display: block; height: 6px; margin-top: 7px; border-radius: 3px; background: #E9E8E3; }
.rfp-sheet i.s { width: 62%; }

/* Live reactions tile: emoji rising over a blue wave */
.tool-reactions { position: relative; overflow: hidden; background: linear-gradient(180deg, #0B1D55 0%, #0A1740 55%, #071030 100%); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.tool-reactions .wave { position: absolute; left: -20%; right: -20%; top: 50%; height: 80%; border-radius: 0%; background: linear-gradient(90deg, #1F6FE0, #2E9BF0 45%, #1F4FE0); transform: rotate(0deg); filter: blur(36px); opacity: .30; }
.tool-reactions .wave.w2 { top: 0%; height: 100%; background: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .55) 50%, rgba(255, 255, 255, .0)); filter: blur(6px); opacity: .0; }
.tool-tile .tile-media.tool-reactions img { position: absolute; width: 11%; height: auto; max-width: 52px; object-fit: contain; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
.tool-tile .tile-media.tool-reactions img.s { width: 8%; opacity: .75; }

/* Backstage: heading across the full width, smaller and centered */
.game-head > h1:only-child { grid-column: 1 / -1; text-align: center; }
.retro .game-head > h1:only-child { font-size: clamp(20px, 3vw, 38px); text-wrap: balance; }
/* Backstage on phones: keep the title screen's intro and the planner prompt readable on the small screen */
@media (max-width: 640px) {
  .retro .game-ov[data-ov="title"], .retro .game-ov[data-ov="pick"] { gap: 7px; padding: 10px 12px; }
  .retro .game-ov[data-ov="title"] h2 { display: block; font-size: 15px; }
  .retro .game-ov[data-ov="title"] .game-ov-copy, .retro .game-ov[data-ov="pick"] .game-ov-copy { display: block; font-size: 7.5px; line-height: 1.75; max-width: 34em; }
  .retro .game-ov[data-ov="pick"] .game-ov-small { display: none; }
}
