/* ConReel — marketing site.
   One bold element (the reel in the hero); everything else stays quiet.
   Palette is rooted in video production: chroma-key green on a cool studio grey. */

:root {
  --paper: #ffffff;
  --mist: #eef1ef;
  --line: #d8dfdb;
  --ink: #121a16;
  --graphite: #56615b;
  --key: #2be39a;
  --key-deep: #037a61;
  --film: #0c2a23;
  --sprocket: #1d4339;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius-s: 6px;
  --radius-m: 12px;

  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

:focus-visible { outline: 3px solid var(--key); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Type ------------------------------------------------------------------ */

.display {
  font-weight: 800;
  font-variation-settings: "wdth" 72;
  line-height: 0.92;
  letter-spacing: -0.012em;
  margin: 0;
}

h1.display { font-size: clamp(46px, 5.8vw, 88px); max-width: 13ch; }
h2.display { font-size: clamp(38px, 5.4vw, 68px); max-width: 22ch; text-wrap: balance; }

h3 {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 8px;
}

.lead { font-size: clamp(19px, 1.6vw, 22px); color: var(--graphite); max-width: 58ch; margin: 24px 0 0; }
.note { font-size: 15px; color: var(--graphite); }

/* Buttons --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 0;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: #24302a; }
.btn-quiet { background: transparent; color: var(--ink); text-decoration: underline; text-underline-offset: 5px; padding-inline: 4px; }

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

.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 22px; font-variation-settings: "wdth" 80; }
.brand img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; margin-left: auto; font-size: 16px; }
.site-nav a { text-decoration: none; color: var(--graphite); }
.site-nav a:hover { color: var(--ink); }
.site-header .btn { min-height: 40px; font-size: 15px; padding: 0 18px; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .site-header .btn { margin-left: auto; }
}

/* Hero ------------------------------------------------------------------ */

.hero { padding: clamp(56px, 9vw, 120px) 0 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 36px; }

/* The reel: an example job travelling down the production line. */
.reel-wrap { margin-top: clamp(56px, 7vw, 88px); }
.reel-caption { display: flex; justify-content: space-between; gap: 16px; font-size: 15px; color: var(--graphite); margin-bottom: 12px; }

.reel {
  --frame-w: 248px;
  position: relative;
  background: var(--film);
  padding: 34px 0;
  --edge: max(var(--gutter), calc((100% - var(--wrap)) / 2));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--edge);
  scrollbar-width: none;
}
.reel::-webkit-scrollbar { display: none; }

/* Sprocket holes along both edges of the strip. */
.reel::before,
.reel::after {
  content: "";
  position: absolute;
  left: 0;
  width: max(100%, calc(var(--frame-w) * 8 + 200px));
  height: 12px;
  background: repeating-linear-gradient(90deg, var(--sprocket) 0 14px, transparent 14px 30px);
  border-radius: 3px;
}
.reel::before { top: 11px; }
.reel::after { bottom: 11px; }

.reel-track { display: flex; gap: 14px; margin: 0; padding: 0 var(--edge); width: max-content; list-style: none; }

.frame {
  position: relative;
  flex: 0 0 var(--frame-w);
  height: 184px;
  background: var(--paper);
  border-radius: var(--radius-s);
  padding: 14px;
  scroll-snap-align: start;
  overflow: hidden;
  font-size: 14px;
  line-height: 1.4;
  opacity: 0.38;
  transition: opacity 280ms ease;
}
.frame.is-done { opacity: 1; }
.frame-stage { font-weight: 700; font-size: 13px; color: var(--graphite); display: flex; justify-content: space-between; margin-bottom: 8px; }
.frame-stage .tick { width: 18px; height: 18px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; }
.frame.is-done .tick { background: var(--key); }
.frame .tick::after { content: ""; width: 4px; height: 8px; margin-top: -2px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.frame.is-done .tick::after { opacity: 1; }

.frame-photo { position: absolute; inset: 40px 0 0; }
.frame-photo img { width: 100%; height: 100%; object-fit: cover; }

.topic-field { border: 1px solid var(--line); border-radius: var(--radius-s); padding: 8px 10px; font-weight: 600; font-size: 15px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; margin-top: 8px; color: var(--graphite); font-size: 13px; }
.kv b { color: var(--ink); font-weight: 600; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; font-size: 13px; }
.checklist li { display: flex; justify-content: space-between; gap: 8px; border-bottom: 1px solid var(--mist); padding-bottom: 4px; }
.checklist span { color: var(--graphite); }

.script-lines p { margin: 0 0 6px; font-size: 13px; }
.script-lines p:first-child { font-weight: 600; }
.script-lines .dim { color: var(--graphite); }

.wave { display: flex; align-items: center; gap: 2px; height: 64px; margin: 6px 0; }
.wave i { flex: 1; background: var(--ink); border-radius: 2px; }

.trim { position: absolute; left: 0; right: 0; bottom: 0; height: 26px; background: rgba(18, 26, 22, 0.78); color: var(--paper); font-size: 12px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; }
.trim::before { content: ""; position: absolute; left: 22%; right: 34%; top: 0; height: 3px; background: var(--key); }

.tag-price { position: absolute; top: 10px; right: 10px; background: var(--key); color: var(--ink); font-weight: 800; font-size: 18px; padding: 4px 10px; border-radius: 4px; font-variation-settings: "wdth" 80; }
.tag-spec { position: absolute; left: 10px; bottom: 10px; background: var(--paper); color: var(--ink); font-size: 12px; padding: 5px 9px; border-radius: 4px; }
.tag-spec b { display: block; font-size: 16px; }

.render-bar { height: 6px; border-radius: 3px; background: var(--mist); margin: 10px 0 6px; overflow: hidden; }
.render-bar i { display: block; height: 100%; width: 100%; background: var(--ink); }

.slot { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.slot img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.slot-when { margin-top: 10px; padding: 8px 10px; background: var(--mist); border-radius: var(--radius-s); font-weight: 600; font-size: 14px; }

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

.section { padding: clamp(80px, 11vw, 140px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 20px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .lead { margin: 0; }

/* Facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: clamp(56px, 7vw, 88px); }
.fact { padding: 28px 24px 28px 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact strong { display: block; font-size: clamp(34px, 3.6vw, 48px); font-weight: 800; font-variation-settings: "wdth" 72; line-height: 1; }
.fact span { display: block; margin-top: 8px; font-size: 15px; color: var(--graphite); max-width: 22ch; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { padding-left: 0; border-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* Steps — a real sequence, so it is numbered. */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 48px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; padding: 28px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-weight: 800; font-size: 34px; line-height: 1; font-variation-settings: "wdth" 72; color: var(--key-deep); }
.steps p { margin: 0; color: var(--graphite); }

/* Product views */
.views { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; }
.view { background: var(--mist); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); }
.view-wide { grid-column: 1 / -1; }
.view h3 { margin-bottom: 4px; }
.view > p { margin: 0 0 20px; color: var(--graphite); font-size: 16px; }
.ui { background: var(--paper); border-radius: var(--radius-s); border: 1px solid var(--line); font-size: 14px; overflow: hidden; }
@media (max-width: 900px) { .views { grid-template-columns: 1fr; } }

.queue-row { display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--mist); }
.queue-row:last-child { border-bottom: 0; }
.queue-row .lang { color: var(--graphite); font-size: 13px; }
.chip { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--mist); color: var(--graphite); white-space: nowrap; }
.chip-live { background: var(--key); color: var(--ink); }
.chip-wait { background: var(--ink); color: var(--paper); }
@media (max-width: 520px) { .queue-row { grid-template-columns: 1fr auto; } .queue-row .lang { display: none; } }

.editor { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.editor-preview { position: relative; aspect-ratio: 16 / 9; background: var(--ink); }
.editor-preview img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.editor-preview .tag-price { top: 14px; right: 14px; }
.editor-side { padding: 16px; display: grid; gap: 10px; align-content: start; }
.editor-side .btn { justify-self: start; min-height: 40px; font-size: 15px; }
.swap { display: flex; gap: 8px; }
.swap img { width: 33%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; border: 2px solid transparent; }
.swap img:first-child { border-color: var(--key); }
.tracks { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 12px 16px 16px; display: grid; gap: 6px; }
.track { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: center; font-size: 12px; color: var(--graphite); }
.lane { position: relative; height: 18px; background: var(--mist); border-radius: 3px; }
.lane i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--ink); }
.lane.voice i { background: #9aa7a0; }
.lane.gfx i { background: var(--key); }
.playhead { position: absolute; top: -4px; bottom: -4px; left: 38%; width: 2px; background: #d6453d; }
@media (max-width: 640px) { .editor { grid-template-columns: 1fr; } }

.settings { display: grid; }
.settings div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-bottom: 1px solid var(--mist); }
.settings div:last-child { border-bottom: 0; }
.settings span { color: var(--graphite); }
.settings b { font-weight: 600; text-align: right; }

/* Languages */
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; background: var(--mist); border-radius: 999px; margin-bottom: 28px; }
.lang-switch button { font: inherit; font-size: 15px; font-weight: 600; border: 0; background: transparent; color: var(--graphite); min-height: 40px; min-width: 56px; border-radius: 999px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.sample { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.thumb { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-m); overflow: hidden; background: var(--ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-title {
  position: absolute; left: 5%; bottom: 7%; max-width: 70%;
  font-weight: 900; font-variation-settings: "wdth" 66; line-height: 0.95;
  font-size: clamp(26px, 3.6vw, 46px); color: var(--paper);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
}
.thumb-title mark { background: var(--key); color: var(--ink); padding: 0 0.12em; }
.sample-meta { min-width: 0; }
.sample-meta h3 { font-size: 26px; overflow-wrap: anywhere; }
.sample-meta blockquote { margin: 20px 0 0; padding-left: 18px; border-left: 3px solid var(--key); font-size: 19px; }
.sample-meta .note { margin-top: 14px; }
/* Japanese has no spaces: let lines break between characters, but keep punctuation rules (line-break: strict). */
[lang="ja"] { font-family: "Archivo", "Noto Sans JP", sans-serif; line-break: strict; overflow-wrap: anywhere; }
@media (max-width: 860px) { .sample { grid-template-columns: 1fr; } }

/* Control */
.control { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 40px 48px; }
.control p { margin: 0; color: var(--graphite); }

/* Contact */
.contact { background: var(--ink); color: var(--paper); }
.contact .lead { color: #b9c4be; }
.contact .btn-primary { background: var(--key); color: var(--ink); margin-top: 36px; }
.contact .btn-primary:hover { background: #5bf0b6; }
.contact-hint { margin: 28px 0 0; color: #b9c4be; font-size: 16px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 15px; color: var(--graphite); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.site-footer nav { display: flex; gap: 24px; margin-left: auto; }

/* Legal pages */
.legal { padding: clamp(48px, 8vw, 96px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); }
.legal h2 { font-size: 22px; margin: 40px 0 8px; }
.legal p, .legal li { color: #2c3631; }



/* Hero player ------------------------------------------------------------ */

.hero-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

.player { margin: 0; }
.player .note { margin-top: 12px; }
.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--ink);
  container-type: inline-size;
  box-shadow: 0 30px 60px -30px rgba(18, 26, 22, 0.45);
}
.screen video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Overlays mirror the graphics a ConReel video carries; sized in container units so they scale with the player. */
.ov { position: absolute; opacity: 0; transform: translateY(8px); transition: opacity 260ms ease, transform 320ms cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.ov.is-on { opacity: 1; transform: none; }

.ov-hook { left: 5%; bottom: 12%; max-width: 70%; font-weight: 900; font-variation-settings: "wdth" 66; font-size: 7.6cqi; line-height: 0.95; color: var(--paper); text-shadow: 0 2px 22px rgba(0, 0, 0, 0.6); }
.ov-hook mark { background: var(--key); color: var(--ink); padding: 0 0.12em; }

.ov-rank { left: 4%; top: 6%; display: flex; align-items: center; gap: 2cqi; background: var(--paper); color: var(--ink); padding: 1.2cqi 2.4cqi 1.2cqi 1.2cqi; border-radius: 1.2cqi; font-weight: 700; font-size: 2.6cqi; }
.ov-rank b { display: grid; place-items: center; min-width: 6.4cqi; height: 6.4cqi; background: var(--ink); color: var(--paper); border-radius: 0.8cqi; font-size: 3.6cqi; font-weight: 900; font-variation-settings: "wdth" 72; }

.ov-price { right: 4%; top: 6%; background: var(--key); color: var(--ink); font-weight: 900; font-variation-settings: "wdth" 76; font-size: 5.4cqi; padding: 0.6cqi 2cqi; border-radius: 1cqi; }

.ov-spec { left: 4%; bottom: 10%; background: rgba(255, 255, 255, 0.94); color: var(--graphite); font-size: 2.2cqi; padding: 1.4cqi 2.2cqi; border-radius: 1cqi; }
.ov-spec b { display: block; color: var(--ink); font-size: 4.6cqi; font-weight: 800; font-variation-settings: "wdth" 76; line-height: 1.05; }

.ov-bars { left: 50%; bottom: 8%; width: 58%; transform: translate(-50%, 8px); background: rgba(255, 255, 255, 0.95); border-radius: 1.2cqi; padding: 1.8cqi 2.4cqi; display: grid; gap: 1cqi; font-size: 2.1cqi; color: var(--graphite); }
.ov-bars.is-on { transform: translate(-50%, 0); }
.ov-bars > span { font-weight: 700; color: var(--ink); }
.bar { display: grid; grid-template-columns: 1fr 16cqi; align-items: center; gap: 1.6cqi; }
.bar i { display: block; height: 2.2cqi; border-radius: 1cqi; background: #b8c2bd; width: 0; transition: width 900ms cubic-bezier(.2, .8, .2, 1) 150ms; }
.bar.is-pick i { background: var(--key); }
.ov-bars.is-on .bar i { width: var(--w); }
.bar em { font-style: normal; }

.ov-stamp { left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-6deg) scale(1.25); border: 0.7cqi solid var(--key); color: var(--paper); background: rgba(18, 26, 22, 0.55); font-weight: 900; font-variation-settings: "wdth" 70; font-size: 6.4cqi; padding: 0.8cqi 3cqi; border-radius: 1.2cqi; transition: opacity 200ms ease, transform 380ms cubic-bezier(.3, 1.6, .5, 1); }
.ov-stamp.is-on { transform: translate(-50%, -50%) rotate(-6deg) scale(1); }

.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, 0.18); }
.player-progress i { display: block; height: 100%; width: 0; background: var(--key); }

/* Reel: frames light up in turn while the strip is on screen ---------------- */

.frame.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--key); }
.wave i { transform-origin: center; }
.frame.is-active .wave i { animation: talk 900ms ease-in-out infinite alternate; }
.frame.is-active .wave i:nth-child(3n) { animation-delay: -300ms; }
.frame.is-active .wave i:nth-child(3n + 1) { animation-delay: -600ms; }
@keyframes talk { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.render-bar i { width: 0; }
.frame.is-active .render-bar i { animation: fill 1.4s cubic-bezier(.4, 0, .2, 1) forwards; }
.frame.is-done:not(.is-active) .render-bar i { width: 100%; }
@keyframes fill { to { width: 100%; } }

.frame .tag-price, .frame .tag-spec { opacity: 0; transform: scale(0.9); transition: opacity 250ms ease, transform 300ms cubic-bezier(.3, 1.5, .5, 1); }
.frame.is-active .tag-price, .frame.is-done .tag-price { opacity: 1; transform: none; }
.frame.is-active .tag-spec, .frame.is-done .tag-spec { opacity: 1; transform: none; transition-delay: 250ms; }

/* Product views ---------------------------------------------------------- */

.chip { transition: background-color 300ms ease, color 300ms ease; }
.chip[data-stage="3"] { background: var(--key); color: var(--ink); }
.chip[data-stage="4"] { background: var(--ink); color: var(--paper); }
.playhead { animation: scrub 9s linear infinite; }
@keyframes scrub { from { left: 0; } to { left: 100%; } }
.editor-preview .tag-price { animation: pop 9s ease infinite; }
@keyframes pop { 0%, 38% { opacity: 0; transform: scale(0.9); } 42%, 54% { opacity: 1; transform: none; } 58%, 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame { opacity: 1; transition: none; }
  .frame .tag-price, .frame .tag-spec { opacity: 1; transform: none; }
  .render-bar i { width: 100%; }
  .ov { transition: none; }
  .playhead, .editor-preview .tag-price, .frame.is-active .wave i { animation: none; }
  .editor-preview .tag-price { opacity: 1; }
}

/* Overnight queue -------------------------------------------------------- */

.control-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
@media (max-width: 900px) { .control-grid { grid-template-columns: 1fr; } }
.control-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 24px; }
.control-list li { padding-top: 20px; border-top: 1px solid var(--line); }
.control-list h3 { font-size: 19px; margin-bottom: 4px; }
.control-list p { margin: 0; color: var(--graphite); font-size: 17px; }

.night { background: var(--ink); color: var(--paper); border-radius: var(--radius-m); padding: clamp(20px, 3vw, 32px); position: sticky; top: 24px; }
.night-head { display: flex; justify-content: space-between; align-items: baseline; color: #b9c4be; font-size: 15px; }
.night-clock { font-size: clamp(44px, 5vw, 64px); font-weight: 800; font-variation-settings: "wdth" 70; color: var(--paper); line-height: 1; }
.night-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 2px; }
.night-list li { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 0; border-bottom: 1px solid #26312b; font-size: 16px; }
.night-list li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.night-list em { flex: none; font-style: normal; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #26312b; color: #b9c4be; transition: background-color 300ms ease, color 300ms ease; }
.night-list li.is-making em { background: transparent; color: var(--key); box-shadow: inset 0 0 0 1.5px var(--key); }
.night-list li.is-ready em { background: var(--key); color: var(--ink); }
.night-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 24px; font-weight: 700; font-size: 18px; opacity: 0; transform: translateY(8px); transition: opacity 400ms ease, transform 400ms ease; }
.night-foot.is-on { opacity: 1; transform: none; }
.night-foot .btn { background: var(--key); color: var(--ink); min-height: 40px; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .night-foot { opacity: 1; transform: none; transition: none; }
}

/* Contact: a strip of finished videos keeps moving behind the call to action. */
.contact { position: relative; overflow: hidden; background: var(--film); padding-bottom: 0; }
.contact .wrap { position: relative; z-index: 1; }
.contact-mark { position: absolute; right: -6%; top: 8%; width: min(46vw, 560px); opacity: 0.16; pointer-events: none; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 36px; }
.contact-actions .btn-primary { margin-top: 0; }
.contact-actions a.plain { color: #cfe0d8; text-underline-offset: 5px; }
.marquee { margin-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 18px; width: max-content; animation: drift 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes drift { to { transform: translateX(-50%); } }
.vcard { width: 300px; flex: none; }
.vcard .thumb { border-radius: 10px; }
.vcard .thumb-title { font-size: 21px; max-width: 88%; }
.vcard .thumb-title[lang="ja"] { font-size: 18px; }
.vcard-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 14px; color: #b9c4be; }
.vcard-meta b { color: var(--paper); font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

.made-with { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 600; }
.made-with i { width: 8px; height: 8px; border-radius: 50%; background: var(--key); }

/* Dark stage: header + hero share the brand's deep green ------------------ */

.site-header.on-dark { background: var(--film); border-bottom-color: #1b3a32; color: var(--paper); }
.site-header.on-dark .site-nav a { color: #b9d3c8; }
.site-header.on-dark .site-nav a:hover { color: var(--paper); }
.brand-light { gap: 10px; color: var(--paper); font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 100; letter-spacing: -0.01em; }
.brand-light img { height: 38px; width: 38px; }
.brand-light b { color: var(--key); font-weight: 800; }
.btn-key { background: var(--key); color: var(--ink); }
.btn-key:hover { background: #5bf0b6; }

.hero { background: var(--film); color: var(--paper); padding-bottom: clamp(56px, 7vw, 96px); position: relative; overflow: hidden; }
/* A faint film-perforation edge along the bottom of the stage ties it to the reel below. */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 14px; height: 10px; background: repeating-linear-gradient(90deg, #17392f 0 14px, transparent 14px 30px); }
.hero .display { color: var(--paper); }
.hero .lead { color: #b9d3c8; }
.hero-sub { margin: 18px 0 0; color: #8fb3a5; font-size: 15px; }

.topic-bar {
  display: flex; align-items: center; gap: 12px; margin-top: 32px; max-width: 560px;
  padding: 8px 8px 8px 12px; border-radius: 999px; background: var(--paper); color: var(--ink);
  text-decoration: none; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}
.topic-lang { flex: none; font-size: 12px; font-weight: 700; background: var(--mist); color: var(--graphite); border-radius: 999px; padding: 5px 9px; }
.topic-text { flex: 1; min-width: 0; font-size: 17px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.caret { display: inline-block; width: 2px; height: 1.1em; margin-left: 2px; vertical-align: -0.15em; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.topic-go { flex: none; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 11px 18px; font-size: 15px; font-weight: 600; }
.topic-bar:hover .topic-go { background: #24302a; }
@media (max-width: 520px) { .topic-go { padding: 10px 12px; font-size: 14px; } .topic-text { font-size: 15px; } }

/* Bench: the finished video in the middle, the work that made it around it. */
.bench { position: relative; padding: 64px 0 124px; }
.bench .player { position: relative; z-index: 1; }
.bench .screen { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); outline: 1px solid #1f4339; }
.chip-card {
  position: absolute; z-index: 2; background: var(--paper); color: var(--ink); border-radius: 12px;
  padding: 12px 14px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6); font-size: 13px;
  opacity: 0; transform: translateY(12px); animation: rise 600ms cubic-bezier(.2, .8, .2, 1) forwards;
}
@keyframes rise { to { opacity: 1; transform: none; } }
.card-label { display: block; font-weight: 700; font-size: 12px; color: var(--graphite); margin-bottom: 6px; }
.card-sub { display: block; margin-top: 6px; color: var(--graphite); font-size: 12px; }
.card-voice { right: 20%; top: 0; width: 210px; animation-delay: 600ms; }
.wave-mini { height: 34px; margin: 0; }
.wave-mini i { animation: talk 900ms ease-in-out infinite alternate; }
.wave-mini i:nth-child(3n) { animation-delay: -300ms; }
.wave-mini i:nth-child(3n + 1) { animation-delay: -600ms; }
.card-thumb { left: -20px; bottom: 0; width: 196px; animation-delay: 900ms; }
.mini-thumb { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--ink); }
.mini-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-thumb b { position: absolute; left: 8px; bottom: 6px; color: var(--paper); font-weight: 900; font-variation-settings: "wdth" 66; font-size: 19px; line-height: 0.95; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }
.mini-thumb mark { background: var(--key); color: var(--ink); padding: 0 3px; }
.card-slot { right: 4%; bottom: 40px; display: flex; align-items: center; gap: 10px; animation-delay: 1200ms; }
.card-slot .card-label { margin-bottom: 2px; }
.card-slot b { font-size: 15px; }
.slot-dot { width: 12px; height: 12px; border-radius: 50%; background: #c9d2cd; transition: background-color 300ms ease; }
.card-slot.is-done .slot-dot { background: var(--key); box-shadow: 0 0 0 4px rgba(43, 227, 154, 0.25); }
@media (max-width: 1100px) { .card-thumb { left: 0; } }
@media (max-width: 640px) { .bench { padding: 24px 0 84px; } .card-voice, .card-thumb { display: none; } .card-slot { right: 12px; bottom: 16px; } }

.hero .facts { border-color: #1f4339; }
.hero .fact + .fact { border-left-color: #1f4339; }
.hero .fact span { color: #8fb3a5; }
@media (max-width: 860px) { .hero .fact:nth-child(n + 3) { border-top-color: #1f4339; } }

@media (prefers-reduced-motion: reduce) {
  .chip-card { animation: none; opacity: 1; transform: none; }
  .caret, .wave-mini i { animation: none; }
}
