/* ============================================================
   Emo-FilM — can a machine read how a film feels?
   Varied two-column site (zigzag), bold section numbers. GitHub-Pages ready.
   ============================================================ */

:root{
  --paper:#ffffff; --tint:#eef4f6; --ink:#16242b;
  --blue:#1c7293; --blue2:#5b8aa3; --navy:#123a49; --navy2:#0d2b36;
  --gold:#c9a227; --gold-deep:#9a7d1e; --grey:#6a6f73; --line:#e3e8ea;
  --maxw:1200px;
  --pad:clamp(20px,5vw,48px);
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  font-size:clamp(16px,1.05vw+12px,18.5px);line-height:1.6;letter-spacing:.004em;
  -webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
h1,h2{line-height:1.07;letter-spacing:-.018em;font-weight:850;margin:0}
a{color:inherit}
img{max-width:100%}
.mono{font-family:ui-monospace,"SF Mono",Menlo,Consolas,monospace}

/* ---------- sections (no dividers; alternating grounds) ---------- */
.block{position:relative;padding:clamp(52px,8vh,92px) 0;overflow:clip}
.block.tint{background:var(--tint)}
.block.dark{background:linear-gradient(160deg,#16485b 0%,var(--navy) 55%,var(--navy2) 100%);color:#fff}
.wrap{width:100%;max-width:var(--maxw);margin:0 auto;padding:0 var(--pad)}

/* film-strip divider (film theme) — frames the content like a reel */
.filmstrip{height:22px;background-color:#0d2c38;background-repeat:repeat-x;background-position:center;
  background-image:url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='34'%20height='22'%3E%3Crect%20x='9'%20y='6'%20width='16'%20height='10'%20rx='3'%20fill='%231f5266'/%3E%3C/svg%3E")}

/* big section-number header (visual anchor) */
.shead{display:flex;align-items:baseline;gap:14px;margin-bottom:4px}
.snum{font-family:ui-monospace,Menlo,monospace;font-size:clamp(30px,4.4vw,52px);font-weight:850;
  line-height:.9;color:var(--gold);letter-spacing:-.02em}
.slabel{font-family:ui-monospace,Menlo,monospace;font-size:clamp(11px,1.3vw,13px);letter-spacing:.18em;
  text-transform:uppercase;color:var(--blue);font-weight:700}
.block.dark .slabel{color:#9fd0e0}

/* two columns: words + picture. zigzag via .rev */
.split{display:grid;grid-template-columns:1fr;gap:clamp(24px,3.5vw,54px);align-items:center}
@media(min-width:980px){
  .split{grid-template-columns:minmax(0,.86fr) minmax(0,1.14fr)}
  .split.rev{grid-template-columns:minmax(0,1.14fr) minmax(0,.86fr)}
  .split.rev .col-text{order:2}
  .split.rev figure,.split.rev .figstack{order:1}
}
.col-text{min-width:0}
h2{font-size:clamp(25px,3.2vw,39px);margin:12px 0 0;text-wrap:balance}
.rule{height:3px;width:52px;background:var(--gold);margin:16px 0 18px;border:0;border-radius:2px}
.lead{font-size:clamp(16.5px,1.45vw,20px);line-height:1.5;margin:0;color:var(--ink)}
.block.dark .lead{color:#e7f0f3}
.lead .em{color:var(--blue);font-weight:700}
.block.dark .lead .em{color:#86d6ec}
.note{margin:16px 0 0;color:var(--grey);font-size:clamp(13px,1.1vw,15px);line-height:1.55}
.block.dark .note{color:#9fc0cd}
.note .k{font-family:ui-monospace,Menlo,monospace;color:var(--gold-deep);font-weight:700;white-space:nowrap}
.block.dark .note .k{color:var(--gold)}

/* ---------- figures ---------- */
figure{margin:0;min-width:0;background:var(--paper);border:1px solid var(--line);border-radius:16px;
  padding:13px 13px 7px;box-shadow:0 16px 40px rgba(18,58,73,.13)}
.block.dark figure{border-color:rgba(255,255,255,.12);box-shadow:0 22px 50px rgba(0,0,0,.34)}
.flabel{font-family:ui-monospace,Menlo,monospace;font-size:10.5px;letter-spacing:.12em;
  text-transform:uppercase;color:var(--grey);display:flex;justify-content:space-between;
  align-items:center;gap:12px;margin:0 4px 9px}
.flabel .zoom{color:var(--blue);font-weight:700;white-space:nowrap}
figure button.imglink{display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in;border-radius:9px;overflow:hidden}
figure img{display:block;width:100%;height:auto;border-radius:9px}
figcaption{color:var(--grey);font-size:clamp(12px,1.05vw,13.5px);line-height:1.5;margin:11px 5px 4px}

/* two figures stacked (decoder result + the ROI region) */
.figstack{display:flex;flex-direction:column;gap:16px;align-items:center;min-width:0;width:100%}
.figstack figure{width:100%}
.figstack figure.roi{max-width:430px}

/* full-width feature banner figure (e.g. the wide decoder result) */
.banner{margin-top:clamp(26px,4vh,42px);width:100%}
.split.top{align-items:start}

/* ============================== HERO (text left, codes right) ============================== */
.hero{position:relative;overflow:hidden;background:var(--navy);color:#fff;
  min-height:clamp(520px,82vh,780px);display:flex;flex-direction:column;justify-content:center;
  padding:clamp(64px,9vh,108px) 0}
.hero .motif{position:absolute;inset:0;width:100%;height:100%;opacity:.5;pointer-events:none}
.hero .wrap{position:relative;display:grid;grid-template-columns:1fr;gap:clamp(34px,4vw,56px);align-items:center}
@media(min-width:940px){.hero .wrap{grid-template-columns:minmax(0,1.05fr) minmax(0,.72fr)}}
.eyebrow{font-family:ui-monospace,Menlo,monospace;font-size:clamp(11px,1.3vw,13px);
  letter-spacing:.2em;text-transform:uppercase;color:#9fd0e0;font-weight:700}
.hero h1{font-size:clamp(33px,5.4vw,57px);margin:16px 0 0;text-wrap:balance;font-weight:850}
.hero .lead{margin:18px 0 0;color:#dbe7ec;max-width:40ch}
.hero .lead b{color:var(--gold);font-weight:700}
.who{margin:24px 0 0;font-family:ui-monospace,Menlo,monospace;font-size:clamp(11.5px,1.1vw,13px);
  letter-spacing:.03em;color:#bcd6df;line-height:1.7}
.who b{color:#fff;font-weight:700}

.cta{display:inline-flex;align-items:center;gap:10px;margin-top:24px;background:var(--gold);
  color:#1a1500;font-weight:700;text-decoration:none;padding:14px 22px;border-radius:11px;
  font-size:clamp(14px,1.2vw,16px);transition:transform .2s ease,box-shadow .2s ease}
.cta svg{width:18px;height:18px}
.cta:hover{transform:translateY(-2px);box-shadow:0 10px 26px rgba(201,162,39,.4)}
.cta:focus-visible{outline:3px solid #fff;outline-offset:3px}

/* QR codes pinned right, spaced apart */
.hero-codes{justify-self:start}
@media(min-width:940px){.hero-codes{justify-self:end}}
.qr-lead{display:block;font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.18em;
  text-transform:uppercase;color:#9fd0e0;margin-bottom:16px}
.qr-row{display:flex;gap:clamp(28px,4vw,52px);flex-wrap:wrap}
.qr-tile{background:#fff;border-radius:14px;padding:12px 12px 9px;width:136px;box-shadow:0 12px 30px rgba(0,0,0,.32)}
.qr-tile img{display:block;width:112px;height:112px;border-radius:5px}
.qr-tile figcaption{margin:10px 0 2px;color:var(--navy);font-family:ui-monospace,Menlo,monospace;
  font-size:11px;letter-spacing:.05em;text-align:center}

.scrollcue{position:absolute;left:50%;bottom:clamp(16px,2.6vh,30px);transform:translateX(-50%);z-index:3;
  display:inline-flex;align-items:center;gap:10px;color:#9fd0e0;
  font-family:ui-monospace,Menlo,monospace;font-size:12px;letter-spacing:.12em;text-transform:uppercase}
.scrollcue .m{width:21px;height:32px;border:2px solid #9fd0e0;border-radius:12px;position:relative}
.scrollcue .m::after{content:"";position:absolute;left:50%;top:6px;width:3px;height:7px;border-radius:2px;
  background:#9fd0e0;transform:translateX(-50%);animation:cue 1.5s ease-in-out infinite}
@keyframes cue{0%{opacity:0;transform:translate(-50%,0)}40%{opacity:1}100%{opacity:0;transform:translate(-50%,12px)}}

/* hero motion */
.signal{will-change:transform}
.signal.s1{animation:sigscroll 7s linear infinite}
.signal.s2{animation:sigscroll 11s linear infinite}
@keyframes sigscroll{from{transform:translateX(0)}to{transform:translateX(-660px)}}

/* ============================== SETUP — horizontal 3-step flow ============================== */
.intro-center{max-width:64ch}
.flow3{display:grid;grid-template-columns:1fr;gap:14px;margin-top:clamp(26px,4vh,38px)}
@media(min-width:820px){.flow3{grid-template-columns:repeat(3,1fr);gap:0}}
.fcard{position:relative;background:var(--paper);border:1px solid var(--line);border-radius:16px;
  padding:22px 22px 24px;box-shadow:0 12px 30px rgba(18,58,73,.09)}
@media(min-width:820px){
  .fcard{border-radius:0}.fcard:first-child{border-radius:16px 0 0 16px}.fcard:last-child{border-radius:0 16px 16px 0}
  .fcard+.fcard{border-left:0}
}
.fcard.ref{border-color:var(--gold);box-shadow:0 14px 32px rgba(201,162,39,.2);z-index:1}
.fcard .tag{font-family:ui-monospace,Menlo,monospace;font-size:12px;letter-spacing:.14em;color:var(--blue);font-weight:700}
.fcard.ref .tag{color:var(--gold-deep)}
.fcard .ct{display:block;margin-top:10px;font-size:clamp(17px,1.6vw,21px);font-weight:850;line-height:1.15}
.fcard .cd{display:block;margin-top:7px;color:var(--grey);font-size:14.5px;line-height:1.45}
.fcard .arrow{display:none}
@media(min-width:820px){
  .fcard .arrow{display:grid;place-items:center;position:absolute;right:-17px;top:50%;transform:translateY(-50%);
    width:34px;height:34px;border-radius:50%;background:var(--gold);color:#1a1500;font-weight:800;z-index:2;
    box-shadow:0 4px 12px rgba(18,58,73,.2)}
  .fcard:last-child .arrow{display:none}
}

/* ============================== CONVERGENCE wall ============================== */
.conv{background:var(--paper);border:1px solid var(--line);border-radius:16px;padding:20px 16px;
  box-shadow:0 16px 40px rgba(18,58,73,.13)}
.conv svg{display:block;width:100%;height:auto}

/* ============================== DATA stat strip ============================== */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:12px;margin-top:clamp(24px,4vh,34px)}
@media(min-width:560px){.stats{grid-template-columns:repeat(3,1fr)}}
@media(min-width:880px){.stats{grid-template-columns:repeat(5,1fr)}}
.stat{background:var(--paper);border:1px solid var(--line);border-radius:14px;padding:18px 12px;
  text-align:center;box-shadow:0 8px 22px rgba(18,58,73,.07)}
.stat .v{font-size:clamp(26px,3.4vw,40px);font-weight:850;color:var(--navy);line-height:1;letter-spacing:-.02em}
.stat .l{display:block;margin-top:8px;font-size:11.5px;color:var(--grey);font-family:ui-monospace,Menlo,monospace;
  letter-spacing:.04em;text-transform:uppercase;line-height:1.35}
.data-note a,.lead a{color:var(--blue);font-weight:700;text-decoration:none;border-bottom:1px solid rgba(28,114,147,.35)}

/* ============================== CLOSE ============================== */
.close .lead{max-width:62ch}
.block.close{padding-block:clamp(46px,6vh,74px)}
.close-grid{display:grid;grid-template-columns:1fr;gap:clamp(28px,4vw,40px);align-items:center}
@media(min-width:760px){.close-grid{grid-template-columns:minmax(0,1fr) auto;gap:clamp(34px,4vw,58px);max-width:1040px}}
.close-text{min-width:0}
.close-qr{display:flex;flex-direction:column;align-items:center;justify-self:start}
@media(min-width:760px){.close-qr{justify-self:end}}
.signoff{margin:26px 0 0;font-family:ui-monospace,Menlo,monospace;font-size:12.5px;color:#9fd0e0;
  letter-spacing:.03em;line-height:1.7}
.signoff .ty{color:#fff;font-weight:700}

/* ============================== FOOTER (refs · contact · copyright) ============================== */
.footer{background:var(--navy2);color:#9fc0cd;padding:clamp(34px,5vh,54px) 0}
.footer .wrap{max-width:var(--maxw)}
.reflabel{display:block;font-family:ui-monospace,Menlo,monospace;font-size:11px;letter-spacing:.18em;
  text-transform:uppercase;color:#7fb0c2;font-weight:700;margin-bottom:12px}
.foot-refs p{margin:0 0 9px;font-size:clamp(12.5px,1.1vw,14px);line-height:1.6;color:#c4d8df;max-width:90ch}
.foot-refs a{color:#9fd0e0;text-decoration:none;border-bottom:1px solid rgba(159,208,224,.35)}
.foot-meta{display:flex;justify-content:space-between;gap:12px 28px;flex-wrap:wrap;margin-top:22px;
  padding-top:18px;border-top:1px solid rgba(255,255,255,.12);
  font-family:ui-monospace,Menlo,monospace;font-size:12px;letter-spacing:.03em;color:#9fc0cd}
.foot-meta a{color:#9fd0e0;text-decoration:none}
.foot-meta a:hover{text-decoration:underline}

/* ============================== LIGHTBOX ============================== */
.lb{position:fixed;inset:0;z-index:100;background:rgba(8,22,28,.94);display:none;align-items:center;
  justify-content:center;padding:20px;cursor:zoom-out}
.lb.open{display:flex}
.lb img{max-width:96vw;max-height:92vh;border-radius:10px;box-shadow:0 20px 60px rgba(0,0,0,.5)}
.lb .close{position:absolute;top:16px;right:20px;color:#fff;font-size:30px;font-family:Menlo,monospace;
  line-height:1;background:none;border:0;cursor:pointer}

/* ============================== MOTION (opt-out) ============================== */
.reveal{opacity:0;transform:translateY(20px);transition:opacity .6s ease,transform .6s ease}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .reveal{opacity:1!important;transform:none!important;transition:none!important}
  .signal{animation:none!important}
  .scrollcue .m::after{animation:none}
  .cta{transition:none}
}
