/* Cool Site Bro — homepage (Hero C · Kinetic).
   Built from the Claude Design file "Cool Site Bro Hero C - Kinetic.dc.html".
   Design-system tokens live in ./tokens and load first via index.html. */

/* Type scale: everything below is in rem, so text follows the root size, which eases up with the viewport. */
html { font-size: clamp(15px, 13.5px + 0.2vw, 17px); }
html, body { margin: 0; padding: 0; height: 100%; overflow: hidden; background: var(--csb-white); color: var(--csb-black); font-family: var(--font-sans); text-wrap: pretty; }
a { color: var(--csb-black); text-decoration: none; }
a:hover { color: var(--csb-black); }
::selection { background: var(--csb-black); color: var(--csb-white); }

:root { --csb-track-head: 0.01em; --csb-track-body: 0.01em; }

@keyframes csb-ticker { 0%, 20% { transform: translateY(0); } 25%, 45% { transform: translateY(-20%); } 50%, 70% { transform: translateY(-40%); } 75%, 95% { transform: translateY(-60%); } 100% { transform: translateY(-80%); } }
@keyframes csb-in { from { opacity: 0; transform: translate3d(0, 12px, 0); } to { opacity: 1; transform: none; } }
@keyframes csb-word-in-out {
  0%   { transform: rotateX(-92deg) translateY(-0.15em); opacity: 0; }
  28%  { transform: rotateX(0deg) translateY(0); opacity: 1; }
  72%  { transform: rotateX(0deg) translateY(0); opacity: 1; }
  100% { transform: rotateX(92deg) translateY(0.15em); opacity: 0; }
}
@keyframes csb-word-hold-out {
  0%   { transform: rotateX(0deg) translateY(0); opacity: 1; }
  55%  { transform: rotateX(0deg) translateY(0); opacity: 1; }
  100% { transform: rotateX(92deg) translateY(0.15em); opacity: 0; }
}
@keyframes csb-word-in-stay {
  0%   { transform: rotateX(-92deg) translateY(-0.15em); opacity: 0; }
  45%  { transform: rotateX(0deg) translateY(0); opacity: 1; }
  100% { transform: rotateX(0deg) translateY(0); opacity: 1; }
}
@keyframes csb-intro-fadeout {
  0%   { opacity: 1; visibility: visible; }
  99%  { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}
@keyframes csb-intro-bar { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

/* ---------- Shared type ---------- */
.csb-mono { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500; }
.csb-display { font-family: var(--font-display); font-weight: 900; line-height: 0.92; letter-spacing: -0.04em; text-transform: uppercase; margin: 0; }
.csb-heading { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; margin: 0; }
.csb-body { font-family: var(--font-sans); font-weight: 400; line-height: 1.45; margin: 0; color: var(--csb-gray-600); }
.csb-arrow { font-family: var(--font-display); font-weight: 900; }

section[data-screen-label] :is(h1, h2, .csb-display) { letter-spacing: var(--csb-track-head, 0.01em) !important; }
section[data-screen-label] :is(h3, p, .csb-heading, label, li) { letter-spacing: var(--csb-track-body, 0.01em) !important; }
section[data-screen-label="Slide 2"] :is(h1, h2, .csb-display) { letter-spacing: calc(var(--csb-track-head, 0.01em) + 0.02em) !important; }
section[data-screen-label="Slide 2"] :is(h3, p, .csb-heading, label, li, span:not(.csb-mono)) { letter-spacing: calc(var(--csb-track-body, 0.01em) + 0.02em) !important; }

/* ---------- Buttons ---------- */
.csb-btn { display: inline-flex; align-items: center; background: var(--csb-black); color: var(--csb-white); cursor: pointer; text-transform: uppercase; }
.csb-btn:hover { color: var(--csb-white); }

/* ---------- Frame ---------- */
.csb-stage { position: fixed; inset: 0; overflow: hidden; background: var(--csb-white); }

/* Intro (off by default, matching the design; see SHOW_INTRO in js/site.js) */
.csb-intro { display: none; position: fixed; inset: 0; z-index: 9999; background: var(--csb-black); align-items: center; justify-content: center; overflow: hidden; perspective: 1400px; cursor: pointer; animation: csb-intro-fadeout 700ms cubic-bezier(0.2,0,0,1) 3000ms forwards; }
.csb-intro.is-on { display: flex; }
.csb-intro-skip { position: absolute; top: clamp(20px, 3vh, 32px); right: clamp(20px, 3vw, 36px); color: var(--csb-gray-500); transition: color 140ms; }
.csb-intro-skip:hover { color: var(--csb-white); }
.csb-intro-words { position: relative; width: 100%; height: 1em; font-family: var(--font-display); font-weight: 900; font-size: clamp(4.5rem, 22vw, 17.5rem); line-height: 1; letter-spacing: -0.04em; color: var(--csb-white); text-transform: uppercase; text-align: center; transform-style: preserve-3d; }
.csb-intro-words > div { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; backface-visibility: hidden; }
.csb-intro-words > div:nth-child(1) { animation: csb-word-hold-out 1000ms cubic-bezier(0.2,0,0,1) 0ms both; }
.csb-intro-words > div:nth-child(2) { animation: csb-word-in-out 1400ms cubic-bezier(0.2,0,0,1) 700ms both; }
.csb-intro-words > div:nth-child(3) { animation: csb-word-in-stay 1300ms cubic-bezier(0.2,0,0,1) 1700ms both; }
.csb-intro-bar { position: absolute; inset: auto 0 0 0; height: 4px; background: var(--csb-white); transform-origin: left center; animation: csb-intro-bar 3000ms cubic-bezier(0.2,0,0,1) 0ms both; }

/* Header */
.csb-header { position: fixed; top: 0; left: 0; right: 0; height: 72px; padding: 0 40px; display: flex; align-items: center; justify-content: space-between; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--csb-black); z-index: 100; }
.csb-home { display: flex; align-items: center; cursor: pointer; text-decoration: none; border: none; }
.csb-home svg { color: var(--csb-black); flex: 0 0 auto; }
.csb-nav { display: flex; align-items: center; gap: 32px; }
.csb-nav-link { color: var(--csb-gray-600); cursor: pointer; }
.csb-nav-cta { gap: 8px; height: 40px; padding: 0 18px; font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.2em; font-weight: 500; }

/* Horizontal track */
.csb-track { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; display: flex; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; -ms-overflow-style: none; }
.csb-track::-webkit-scrollbar { display: none; }

.csb-panel { width: 100vw; height: 100vh; flex: none; scroll-snap-align: start; position: relative; padding: clamp(84px, 14vh, 108px) clamp(24px, 4vw, 64px) clamp(76px, 12vh, 92px); box-sizing: border-box; overflow: hidden; }

/* ---------- Panel 1 · Hero ---------- */
.csb-p1 { display: flex; flex-direction: column; justify-content: center; gap: clamp(16px, 3.5vh, 56px); }
.csb-hero-h1 { font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-weight: 900; text-transform: uppercase; line-height: 0.92; margin: 0 0 0 -0.04em; letter-spacing: -0.03em; animation: csb-in 700ms cubic-bezier(0.2,0,0,1) both; font-size: clamp(2.75rem, min(9vw, 12vh), 11.25rem); }
.csb-ticker { display: block; height: 0.92em; overflow: hidden; color: var(--csb-signal); }
.csb-ticker > span { display: flex; flex-direction: column; animation: csb-ticker 10s cubic-bezier(0.2,0,0,1) infinite; }
.csb-ticker > span > span { height: 0.92em; }
.csb-p1-foot { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(16px, 2.4vh, 28px); padding-top: clamp(16px, 2.4vh, 28px); border-top: 1px solid var(--csb-black); }
.csb-p1-lede { font-size: clamp(1rem, 2.2vh, 1.4375rem); line-height: 1.45; max-width: 44ch; color: var(--csb-gray-700); font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; margin: 0; }
.csb-hero-cta { gap: 12px; height: clamp(44px, 6.5vh, 56px); padding: 0 clamp(18px, 2vw, 28px); font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; font-size: clamp(0.625rem, 1.2vh, 0.75rem); letter-spacing: 0.2em; font-weight: 500; transition: background 140ms cubic-bezier(0.2,0,0,1); }
.csb-hero-cta:hover { background: var(--csb-signal); }
.csb-hero-cta .csb-arrow { font-size: 1.125rem; }

/* ---------- Panel 2 · Qualifier ---------- */
.csb-p2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3.6vw, 56px); min-height: 0; }
.csb-p3-left { position: relative; z-index: 1; display: flex; flex-direction: column; gap: clamp(12px, 2vh, 24px); min-height: 0; }
.csb-p2-title { font-size: clamp(1.9375rem, min(5.4vw, 9.4vh), 4.6875rem); margin-top: 0; }
.csb-p2-intro { font-size: clamp(0.875rem, 1.6vh, 0.9375rem); max-width: 46ch; margin-top: clamp(8px, 1.8vh, 16px); color: var(--csb-gray-700); }
.csb-checks { flex: 1; display: flex; flex-direction: column; justify-content: flex-start; gap: 0; border-top: 1px solid var(--csb-black); min-height: 0; overflow-y: auto; margin: 0; padding: 0; list-style: none; }
.csb-check-row { display: flex; flex-direction: column; border-bottom: 1px solid var(--csb-gray-200); flex: 0 0 auto; }
.csb-check { display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); padding: clamp(8px, 1.4vh, 16px) 4px; cursor: pointer; transition: background 140ms; }
.csb-check-n { color: var(--csb-gray-400); width: 24px; }
.csb-check-box { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 auto; background: var(--csb-white); border: 1.5px solid var(--csb-black); color: var(--csb-white); transition: background 140ms cubic-bezier(0.2,0,0,1); }
.csb-check-box svg { display: none; }
.csb-check-label { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1875rem, 1.9vw, 1.8125rem); line-height: 1.05; text-transform: uppercase; color: var(--csb-black); text-decoration: none; text-decoration-color: var(--csb-black); text-decoration-thickness: 3px; transition: color 220ms cubic-bezier(0.2,0,0,1), text-decoration-color 220ms; flex: 1; }
.csb-check[aria-checked="true"] .csb-check-box { background: var(--csb-black); }
.csb-check[aria-checked="true"] .csb-check-box svg { display: block; }
.csb-check[aria-checked="true"] .csb-check-label { color: var(--csb-gray-400); text-decoration: line-through; }

.csb-p3-right { position: relative; z-index: 1; display: flex; flex-direction: column; background: transparent; border: none; padding: clamp(18px, 3vh, 36px); min-height: 0; }
.csb-mood { flex: 1; overflow: hidden; padding: clamp(20px, 3vh, 36px) 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(18px, 2.6vh, 28px); min-height: 0; }
.csb-mood-face { flex: 1 1 clamp(200px, 46vh, 520px); max-height: 520px; min-height: 80px; width: 100%; position: relative; }
.csb-mood-face svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; color: var(--csb-black); }
.csb-mood-text { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1875rem, 3.1vh, 2.125rem); line-height: 0.95; letter-spacing: -0.03em; min-height: 1.9em; flex: 0 0 auto; display: flex; align-items: flex-start; justify-content: center; text-transform: uppercase; text-align: center; max-width: 24ch; }
.csb-p2-bar { padding-top: clamp(12px, 2vh, 20px); border-top: 1px solid var(--csb-black); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.csb-reset { border: none; background: none; padding: 0; color: var(--csb-gray-500); cursor: pointer; }
.csb-p2-cta { gap: 10px; height: clamp(36px, 5.5vh, 44px); padding: 0 clamp(14px, 2vw, 20px); transition: background 220ms; }
.csb-p2-cta .csb-arrow { font-size: 1rem; }

/* ---------- Panel 3 · About ---------- */
.csb-p3 { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; min-height: 0; }
.csb-p4-img { position: absolute; z-index: 0; top: clamp(84px, 14vh, 108px); bottom: clamp(76px, 12vh, 92px); left: clamp(24px, 4vw, 64px); height: calc(100% - clamp(84px, 14vh, 108px) - clamp(76px, 12vh, 92px)); aspect-ratio: 2 / 3; max-width: calc((100vw - 2 * clamp(24px, 4vw, 64px)) * 0.52 - clamp(24px, 3vw, 56px)); object-fit: cover; object-position: center bottom; display: block; }
.csb-p4-left { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: flex-end; min-height: 0; gap: clamp(12px, 2.4vh, 28px); padding-bottom: clamp(24px, 10vh, 140px); }
.csb-p4-head { display: grid; grid-template-columns: 52% minmax(0, 1fr); align-items: end; font-size: clamp(2rem, min(5.5vw, 9.4vh), 4.875rem); }
.csb-p4-title { display: flex; flex-direction: row; align-items: flex-end; gap: 0.3em; }
.csb-p4-title h2 { font-size: 1em; margin-top: 0; white-space: nowrap; }
.csb-p4-title img { display: block; height: 1em; width: auto; flex: none; }
.csb-p4-copy { margin-left: 52%; max-width: 40em; text-align: left; align-items: flex-start; display: flex; flex-direction: column; gap: clamp(10px, 1.8vh, 18px); min-height: 0; overflow-y: auto; }
.csb-p4-copy p { font-size: clamp(0.8125rem, 1.8vh, 1.0625rem); color: var(--csb-black); line-height: 1.35; margin: 0; text-wrap: pretty; }
.csb-p4-sign { color: var(--csb-gray-600); padding-top: clamp(8px, 1.4vh, 14px); border-top: 1px solid var(--csb-black); }

/* ---------- Panel 4 · Process ---------- */
.csb-p4 { display: flex; flex-direction: column; gap: clamp(16px, 2.6vh, 28px); }
.csb-p5-header { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: clamp(16px, 2.4vw, 36px); }
.csb-p5-title { font-size: clamp(1.625rem, min(3.9vw, 6.4vh), 3.375rem); margin-top: 0; }
.csb-p5-cards { position: relative; z-index: 1; flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; min-height: 0; align-items: center; }
/* Each card is exactly as wide as its square video: heading, tag and copy wrap at the video's edge. */
/* Video size: as wide as a column, unless the screen is too short for the copy underneath. */
.csb-p4 { --csb-media: min(52vh, calc((100vw - 2 * clamp(24px, 4vw, 64px) - 40px) / 3)); }
.csb-card { display: grid; grid-template-columns: var(--csb-media); justify-content: center; grid-template-rows: auto var(--csb-media) auto; background: var(--csb-white); position: relative; transition: transform 220ms cubic-bezier(0.2,0,0,1), box-shadow 220ms; overflow: hidden; min-height: min-content; }
.csb-card-head { padding: 0 0 clamp(8px, 1.2vh, 14px); display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.csb-card-head h3 { font-size: clamp(0.8125rem, min(1.5vw, 2.6vh), 1.1875rem); margin-top: 4px; text-transform: uppercase; font-family: Helvetica, "Helvetica Neue", Arial, sans-serif; }
.csb-card-tag { color: var(--csb-black); }
/* Videos are square: keep the box square (as tall as the row allows) so nothing is cropped. */
.csb-card-media { position: relative; background: var(--csb-black); overflow: hidden; min-height: 0; height: var(--csb-media); }
.csb-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.csb-card-foot { padding: clamp(10px, 1.4vh, 16px) 0 0; }
.csb-p5-body { font-size: clamp(0.8125rem, min(1.1vw, 1.9vh), 1rem); line-height: 1.3; margin: 0; text-wrap: pretty; color: var(--csb-black); font-weight: 500; }

/* ---------- Panel 5 · Send brief ---------- */
.csb-p5 { color: var(--csb-black); background-color: var(--csb-white); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: clamp(16px, 3vh, 32px); }
.csb-p6-logo { width: 1012px; max-width: 100%; flex: none; aspect-ratio: 3328 / 657; background: var(--csb-black); -webkit-mask: url('../assets/img/logo-lockup.svg') center / contain no-repeat; mask: url('../assets/img/logo-lockup.svg') center / contain no-repeat; height: 158px; }
.csb-cal { flex: 1 1 auto; min-height: 0; width: min(100%, 1100px); border: 1px solid var(--csb-black); background: var(--csb-white); }
.csb-cal-inner { width: 100%; height: 100%; overflow: scroll; }
.csb-contact { flex: none; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.csb-contact-label { font-family: var(--font-sans); font-weight: 500; font-size: clamp(0.625rem, 1.3vh, 0.75rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--csb-gray-600); }
.csb-contact-email { font-family: var(--font-sans); font-weight: 700; font-size: clamp(1rem, 2.4vh, 1.5rem); letter-spacing: -0.01em; color: var(--csb-black); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color 140ms cubic-bezier(0.2,0,0,1); }
.csb-contact-email:hover { color: var(--csb-signal); }
.csb-social { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(20px, 3vw, 48px); }
.csb-social a { font-family: var(--font-sans); font-weight: 500; font-size: clamp(0.75rem, 1.5vh, 0.875rem); letter-spacing: 0.2em; text-transform: uppercase; color: var(--csb-black); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.csb-social a:hover { text-decoration-thickness: 2px; }

.csb-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  .csb-ticker > span, .csb-hero-h1 { animation: none; }
  .csb-track { scroll-behavior: auto; }
}

/* ---------- Tablet & below (< 960px) ---------- */
@media (max-width: 960px) {
  .csb-track { flex-direction: column !important; overflow-x: hidden !important; overflow-y: auto !important; scroll-snap-type: y proximity !important; }
  [data-screen-label] { width: 100% !important; }

  .csb-header { padding: 0 20px !important; height: 60px !important; }
  .csb-nav { gap: 12px !important; }
  .csb-nav-link { display: none !important; }
  .csb-nav-cta { height: 36px !important; padding: 0 14px !important; font-size: 0.625rem !important; }

  [data-screen-label] { padding: 68px 20px 60px !important; grid-template-columns: 1fr !important; gap: 16px !important; overflow-y: auto !important; }

  section[data-screen-label="Slide 1"] { min-height: 100vh !important; min-height: 100dvh !important; height: auto !important; }

  section[data-screen-label="Slide 4"] { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
  .csb-p5-cards { flex: none !important; grid-auto-rows: max-content !important; grid-template-columns: 1fr !important; overflow-y: auto !important; overflow-x: hidden !important; }
  .csb-p5-cards { row-gap: 40px !important; }
  .csb-p5-cards > div { min-height: max-content !important; grid-template-columns: 1fr !important; grid-template-rows: auto auto auto !important; }
  /* Stacked: whole square video, as wide as the column (capped so it never fills more than ~70% of the screen height). */
  .csb-card-media { width: min(100%, 70vh); height: auto; aspect-ratio: 1 / 1; max-height: none; justify-self: start; }

  section[data-screen-label="Slide 2"] { height: auto !important; min-height: 100vh !important; overflow: visible !important; }
  .csb-mood { flex: 0 0 auto !important; overflow: visible !important; }
  .csb-mood-face { flex: 0 0 auto !important; height: clamp(200px, 40vh, 360px) !important; }

  .csb-p4-left { padding-left: 0 !important; padding-top: 0 !important; padding-bottom: 0 !important; }
  .csb-p4-head { grid-template-columns: 1fr !important; }
  .csb-p4-head > div[aria-hidden] { display: none !important; }
  .csb-p4-copy { margin-left: 0 !important; }
  .csb-p4-img { position: relative !important; inset: auto !important; width: 100% !important; max-width: none !important; height: 56vh !important; aspect-ratio: auto !important; margin-bottom: 24px; }
  section[data-screen-label="Slide 3"] { height: auto !important; min-height: 100vh !important; overflow: visible !important; }

  .csb-p5-header { flex-direction: column; align-items: flex-start !important; }

  .csb-hero-h1 { font-size: clamp(3.5rem, 10vw, 6.5rem) !important; }
  .csb-p5-body { font-size: 1.1875rem !important; }

  section[data-screen-label="Slide 5"] { height: auto !important; min-height: 100dvh !important; overflow: visible !important; justify-content: flex-start !important; gap: 28px !important; padding-top: 96px !important; padding-bottom: 96px !important; }
  .csb-p6-logo { width: 100% !important; }
  .csb-cal { flex: none !important; width: 100% !important; height: 700px !important; }

  /* Qualifier: heading, face + verdict, checklist, reset/CTA bar. Face ~30% of screen. */
  .csb-p3-left, .csb-p3-right { display: contents !important; }
  .csb-p3-left > div:first-child { order: 1; }
  .csb-mood { order: 2; padding: 0 !important; }
  .csb-checks { order: 3; }
  .csb-p2-bar { order: 4; }
  .csb-mood-face { height: 30vh !important; height: 30svh !important; min-height: 0 !important; max-height: none !important; }

  /* About: whole monument image, about 60% of the screen height. */
  .csb-p4-img { width: 100% !important; height: 60vh !important; height: 60svh !important; aspect-ratio: auto !important; object-fit: contain; object-position: left bottom; }


  /* Send brief: email and social links above the calendar. */
  .csb-p6-logo { order: 1; }
  .csb-contact { order: 2; }
  .csb-social { order: 3; }
  .csb-cal { order: 4; }
}

/* ---------- Mobile only (< 640px) ---------- */
@media (max-width: 640px) {
  [data-screen-label] { padding: 62px 14px 56px !important; }
  .csb-hero-h1 { font-size: clamp(2.25rem, 11vw, 3.75rem) !important; }
  .csb-p5-body { font-size: 1.0625rem !important; }
  section[data-screen-label="Slide 5"] { padding-top: 84px !important; padding-bottom: 84px !important; gap: 24px !important; }
  .csb-cal { height: 620px !important; }
}
