/* Homepage concept 3: "The living record".
   The page speaks the film's language: midnight and the moving ultra-gradient, two-tone headlines
   (teal over white), the tri-colour bars, and the knowledge map itself, live, telling the four steps as you scroll.
   Loaded after site.css on index-concept-3.html only; header, footer, buttons and the Croozn band stay as the brand has them. */

:root {
  --c3-bg: #0B0A2B;
  --c3-mid: #110F3D;
  --c3-panel: rgba(255,255,255,.045);
  --c3-line: rgba(255,255,255,.13);
  --c3-teal: #3AD7B1;
  --c3-teal-soft: #7BEBD0;
  --c3-cyan: #34C6F4;
  --c3-violet: #644EEE;
  --c3-orange: #F68623;
  --c3-red: #FF5C7A;
  --c3-text: #D3D2EA;
  --c3-muted: #A9A8C8;
}

body { background: var(--c3-bg); }
.c3 { color: var(--c3-text); }
.c3 h1, .c3 h2, .c3 h3 { color: #FFFFFF; text-wrap: balance; }

/* two-tone headline, as the film sets them: teal over white */
.c3-tt { font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.c3-tt > span { display: block; }
.c3-tt > span:first-child { color: var(--c3-teal); }
.c3-tt > span + span { color: #FFFFFF; }
.c3-xl { font-size: clamp(2.6rem, 6vw, 5.5rem); }

/* the tri-colour bars from the film's transitions */
.c3-bars { display: grid; gap: 6px; width: 160px; margin-bottom: 28px; }
.c3-bars i { display: block; height: 8px; transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease); }
.c3-bars i:nth-child(1) { background: var(--c3-violet); width: 72%; }
.c3-bars i:nth-child(2) { background: var(--c3-teal); width: 100%; transition-delay: .08s; }
.c3-bars i:nth-child(3) { background: var(--c3-orange); width: 46%; transition-delay: .16s; }
.c3-bars.is-in i { transform: none; }

/* one sweep of the bars as the page opens */
.c3-wipe { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.c3-wipe i { position: absolute; left: 0; width: 100%; height: 34%; transform: translateX(-101%); animation: c3Wipe .95s cubic-bezier(.7,0,.3,1) forwards; }
.c3-wipe i:nth-child(1) { top: 0; background: var(--c3-violet); }
.c3-wipe i:nth-child(2) { top: 33%; background: var(--c3-teal); animation-delay: .07s; }
.c3-wipe i:nth-child(3) { top: 66%; background: var(--c3-orange); animation-delay: .14s; }
@keyframes c3Wipe { 0% { transform: translateX(-101%); } 45% { transform: translateX(0); } 100% { transform: translateX(101%); } }

.c3-btn svg { width: 18px; height: 18px; }
.c3-hero .btn-ghost, .c3-end .btn-ghost, .c3-film .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.c3-hero .btn-ghost:hover, .c3-end .btn-ghost:hover, .c3-film .btn-ghost:hover { border-color: #FFFFFF; background: rgba(255,255,255,.12); }
.c3-btn small { font-size: .875rem; font-weight: 600; opacity: .7; }
.c3-btn.btn-primary[data-play-film]::after { content: none; }

/* ---------- hero ---------- */
.c3-hero { position: relative; min-height: max(680px, 100svh); display: flex; flex-direction: column; justify-content: center; background: var(--c3-mid); overflow: hidden; overflow: clip; isolation: isolate; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.c3-hero .ultra { opacity: .7; }
.c3-graph { position: absolute; inset: 0; }
.c3-graph canvas { display: block; width: 100%; height: 100%; }
.c3-graph-hero { z-index: 2; }
.c3-hero::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(90deg, rgba(17,15,61,.82) 0%, rgba(17,15,61,.45) 42%, rgba(17,15,61,0) 66%); }
.c3-hero-in { position: relative; z-index: 3; width: 100%; padding-top: 150px; padding-bottom: 120px; display: flex; flex-direction: column; align-items: flex-start; gap: 26px; }
.c3-kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FFFFFF; }
.c3-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c3-teal); box-shadow: 0 0 0 4px rgba(58,215,177,.25); }
.c3-hero h1 { font-size: clamp(3rem, 7.2vw, 7rem); line-height: .98; letter-spacing: -0.045em; max-width: 12ch; }
.c3-sub { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); line-height: 1.45; color: #E4E3F5; max-width: 30ch; }
.c3-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.c3-hero-foot { position: absolute; z-index: 3; left: 0; right: 0; bottom: 24px; display: flex; justify-content: space-between; gap: 16px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.55); }

/* labels the map hangs on its nodes */
.c3-tag { position: absolute; left: 0; top: 0; z-index: 3; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(11,10,43,.82); border: 1px solid var(--tc, var(--c3-red)); color: #FFFFFF; font-size: .8125rem; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .45s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.c3-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tc, var(--c3-red)); }
.c3-tag.on { opacity: 1; }
.c3-tag.red { --tc: var(--c3-red); }
.c3-tag.teal { --tc: var(--c3-teal); }
.c3-tag.orange { --tc: var(--c3-orange); }

/* ---------- film ---------- */
.c3-film { padding-block: clamp(96px, 10vw, 160px) clamp(64px, 7vw, 112px); }
.c3-film-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 64px; margin-bottom: clamp(36px, 4vw, 56px); }
.c3-film-head h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.c3-film-head p { max-width: 36ch; font-size: 1.1875rem; }
.c3 .film-media { border-radius: 14px; border: 1px solid var(--c3-line); box-shadow: 0 40px 120px -40px rgba(100,78,238,.55); }
.c3 .film-transcript p { color: var(--c3-text); }
.c3 .film-transcript summary { color: #7FDDF9; }
@media (max-width: 640px) {
  .c3 .film-end .btn-ghost { color: #FFFFFF; border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.04); }
  .c3 .film-replay { color: var(--c3-text); }
}

/* ---------- the question ---------- */
.c3-question { padding-block: clamp(96px, 10vw, 160px); background: linear-gradient(180deg, var(--c3-bg), var(--c3-mid) 40%, var(--c3-bg)); }
.c3-lead { font-size: clamp(1.1875rem, 1.8vw, 1.5rem); color: var(--c3-muted); max-width: 40ch; margin-bottom: 20px; }
.c3-scene { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(40px, 5vw, 72px); }
.c3-panel { display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 3vw, 36px); border-radius: 14px; background: var(--c3-panel); border: 1px solid var(--c3-line); min-width: 0; }
.c3-label { font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c3-muted); }
.c3-sources { list-style: none; display: grid; gap: 10px; }
.c3-sources li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; border-radius: 10px; border: 1px solid var(--c3-line); background: rgba(255,255,255,.03); font-weight: 500; color: #FFFFFF; opacity: 0; transform: translateY(10px); transition: opacity .5s, transform .5s var(--ease), border-color .5s, box-shadow .5s, background-color .5s; }
.c3-sources b { font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 700; color: var(--c3-teal-soft); font-variant-numeric: tabular-nums; transition: color .5s; }
.c3-sources li:nth-child(2) { transition-delay: .12s; }
.c3-sources li:nth-child(3) { transition-delay: .24s; }
.is-in .c3-sources li { opacity: 1; transform: none; }
.is-in .c3-sources li.is-off { border-color: var(--c3-orange); background: rgba(246,134,35,.1); box-shadow: 0 0 0 4px rgba(246,134,35,.14); transition-delay: .24s, .24s, 1.1s, 1.1s, 1.1s; }
.is-in .c3-sources li.is-off b { color: #FFB377; transition-delay: 1.1s; }
.c3-note { font-size: 1rem; color: var(--c3-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.c3-flag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(246,134,35,.7); color: #FFB377; font-size: .8125rem; font-weight: 700; }
.c3-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c3-orange); }
.c3-crew { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; max-width: 420px; }
.c3-crew li, .c3-crowd li { aspect-ratio: 1; border-radius: 10px; background: rgba(255,255,255,.07) center/52% no-repeat; border: 1px solid var(--c3-line); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='%23A9A8C8'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z' fill='%23A9A8C8'/%3E%3C/svg%3E"); transition: background-color .5s, border-color .5s, box-shadow .5s; }
.c3-crew li.t { border-color: rgba(58,215,177,.6); background-color: rgba(58,215,177,.16); }
.is-in .c3-crew li.o { border-color: var(--c3-orange); background-color: rgba(246,134,35,.2); box-shadow: 0 0 0 4px rgba(246,134,35,.16); transition-delay: 1.3s; }
.c3-zero { display: flex; align-items: baseline; gap: 12px; font-size: 1.0625rem; color: var(--c3-text); }
.c3-zero b { font-size: clamp(2.6rem, 4vw, 3.5rem); line-height: 1; font-weight: 700; color: var(--c3-red); }
.c3-illus { position: absolute; right: 0; bottom: -30px; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.c3-halves { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 28px); margin-top: clamp(64px, 7vw, 104px); }
.c3-half { position: relative; display: flex; flex-direction: column; gap: 12px; padding: clamp(28px, 3vw, 40px); border-radius: 14px; text-decoration: none; color: var(--c3-text); background: linear-gradient(135deg, rgba(52,198,244,.18), rgba(100,78,238,.16) 60%, rgba(17,15,61,.2)); border: 1px solid rgba(127,221,249,.28); transition: transform .35s var(--ease), border-color .35s; }
.c3-half.warm { background: linear-gradient(135deg, rgba(246,134,35,.2), rgba(214,40,77,.16) 60%, rgba(17,15,61,.2)); border-color: rgba(255,179,119,.32); }
.c3-half:hover { transform: translateY(-4px); text-decoration: none; border-color: #FFFFFF; }
.c3-half-k { font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #7FDDF9; }
.c3-half.warm .c3-half-k { color: #FFB377; }
.c3-half-t { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; color: #FFFFFF; }
.c3-half-p { font-size: 1.0625rem; max-width: 46ch; }
.c3-half .arrow { color: #FFFFFF; margin-top: 8px; }

/* ---------- the story: the map tells the four steps ---------- */
.c3-story { position: relative; padding-top: clamp(96px, 10vw, 160px); padding-bottom: clamp(72px, 8vw, 120px); background: radial-gradient(60% 50% at 75% 40%, rgba(100,78,238,.18), transparent 70%), var(--c3-bg); }
.c3-story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.c3-stage { order: 2; position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; }
.c3-stage .c3-graph { position: relative; inset: auto; width: 100%; height: min(78vh, 720px); }
.c3-chapters { order: 1; }
.c3-ch { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; gap: 20px; padding-block: 40px; opacity: .32; transition: opacity .5s; }
.c3-ch.on { opacity: 1; }
.c3-ch h3 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
.c3-ch p { font-size: 1.1875rem; max-width: 44ch; }
.c3-step { display: inline-flex; align-items: center; gap: 12px; font-size: .875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #FFB377; }
.c3-step b { display: inline-grid; place-items: center; min-width: 40px; height: 28px; padding: 0 8px; border-radius: 999px; background: var(--c3-teal); color: var(--c3-mid); letter-spacing: 0; }
.c3 .c3-signed { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 600; color: #FFFFFF; }
.c3-signed::before { content: ""; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--c3-teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 6.5' fill='none' stroke='%23110F3D' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.c3-decide { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: clamp(40px, 5vw, 72px); padding: clamp(28px, 3.4vw, 44px); border-radius: 14px; background: linear-gradient(120deg, rgba(52,198,244,.14), rgba(100,78,238,.16) 55%, rgba(214,40,77,.14)); border: 1px solid var(--c3-line); }
.c3-decide p { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; color: #FFFFFF; max-width: 30ch; }
.c3-decide p span { color: var(--c3-teal); }
@media (max-width: 900px) {
  .c3-story-grid { grid-template-columns: 1fr; gap: 0; }
  .c3-stage { order: 0; top: 0; height: 46vh; z-index: 2; background: linear-gradient(180deg, var(--c3-bg) 80%, rgba(11,10,43,0)); }
  .c3-stage .c3-graph { height: 100%; }
  .c3-chapters { order: 1; }
  .c3-ch { min-height: 62vh; }
  .c3-tag { font-size: .75rem; padding: 5px 10px; }
}

/* ---------- on the record ---------- */
.c3-record { padding-block: clamp(96px, 10vw, 160px); background: linear-gradient(180deg, var(--c3-bg), var(--c3-mid)); }
.c3-record-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.c3-record-copy { display: flex; flex-direction: column; gap: 24px; }
.c3-record-copy > p { font-size: 1.1875rem; max-width: 40ch; }
.c3-big { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.c3-big b { font-size: clamp(4rem, 9vw, 8rem); line-height: .95; font-weight: 700; letter-spacing: -0.05em; color: #FFFFFF; font-variant-numeric: tabular-nums; }
.c3-big span { color: var(--c3-muted); font-size: 1.0625rem; }
.c3-crowd-wrap { position: relative; }
.c3-crowd { list-style: none; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; }
.c3-crowd li { border-radius: 8px; }
.c3-crowd li.lit { border-color: rgba(58,215,177,.9); background-color: var(--c3-teal); box-shadow: 0 0 18px rgba(58,215,177,.45); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='%23110F3D'/%3E%3Cpath d='M4 21c0-4.4 3.6-7 8-7s8 2.6 8 7z' fill='%23110F3D'/%3E%3C/svg%3E"); }
.c3-chip { position: absolute; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; background: rgba(11,10,43,.9); border: 1px solid rgba(255,255,255,.2); font-size: .75rem; color: var(--c3-muted); box-shadow: 0 20px 40px -16px rgba(0,0,0,.7); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .5s var(--ease); }
.c3-chip b { font-size: .9375rem; color: #FFFFFF; }
.c3-chip.c1 { left: 8%; top: 6%; transition-delay: 1.2s; }
.c3-chip.c2 { left: 48%; top: 34%; transition-delay: 1.6s; }
.c3-chip.c3x { left: 18%; top: 70%; transition-delay: 2s; }
.is-in .c3-chip { opacity: 1; transform: none; }
.c3-stats { margin-top: clamp(64px, 7vw, 104px); }
.c3 .c3-stats .stat b { color: #FFFFFF; }
.c3 .c3-stats .stat span { color: var(--c3-muted); }
@media (max-width: 900px) { .c3-record-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .c3-crowd { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; } .c3-chip { font-size: .6875rem; padding: 8px 10px; } .c3-chip b { font-size: .8125rem; } }

/* ---------- proof stays light, as it was ---------- */
.c3-proof { background: var(--bg); color: var(--text); padding-block: var(--sec); margin: clamp(8px, 1.3vw, 20px); border-radius: var(--r-xl); }
.c3-proof h2 { color: var(--ink); }
.c3 .croozn-band { margin-top: 0; }

/* ---------- the end card ---------- */
.c3-end { position: relative; overflow: hidden; overflow: clip; isolation: isolate; background: var(--c3-mid); margin-inline: clamp(8px, 1.3vw, 20px); margin-top: clamp(8px, 1.3vw, 20px); border-radius: var(--r-xl); }
.c3-end .ultra::after { content: ""; position: absolute; inset: 0; z-index: 2; background: radial-gradient(70% 80% at 50% 45%, rgba(17,15,61,.7), rgba(17,15,61,.25) 70%); }
.c3-end-in { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 26px; padding-block: clamp(104px, 11vw, 176px) clamp(56px, 6vw, 88px); }
.c3-end-mark { width: 64px; height: auto; filter: drop-shadow(0 12px 30px rgba(214,40,77,.45)); }
.c3-end h2 { font-size: clamp(2.8rem, 7vw, 6.5rem); }
.c3-end-in > p { font-size: clamp(1.1875rem, 1.8vw, 1.4375rem); max-width: 40ch; color: #E4E3F5; }
.c3-end .c3-actions { justify-content: center; }
.c3-ns { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px 56px; width: 100%; margin-top: clamp(48px, 6vw, 88px); padding-top: 32px; border-top: 1px solid rgba(255,255,255,.16); text-align: left; }
.c3-ns span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #FFB377; margin-bottom: 10px; }
.c3-ns p { font-size: 1.125rem; line-height: 1.5; color: #FFFFFF; font-weight: 500; }

@media (max-width: 640px) {
  .c3-hero::after { background: linear-gradient(0deg, rgba(17,15,61,.92) 0%, rgba(17,15,61,.55) 60%, rgba(17,15,61,.3) 100%); }
  .c3-hero-in { padding-top: 128px; padding-bottom: 88px; }
  .c3-hero-foot span + span { display: none; }
  .c3-actions .btn { flex: 1 1 100%; }
  .c3-crew { gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .c3-wipe { display: none; }
  .c3-bars i, .c3-sources li, .c3-chip { transform: none; opacity: 1; transition: none; }
  .c3-ch { opacity: 1; }
}
