/* ATOMA explainer site.
   System (from the A-Link brand board):
   - type: Plus Jakarta Sans. H1 clamp 44-84, H2 clamp 34-58, eyebrow 13 tracked caps, body 18/1.6.
   - field: Clean White #F7FAFD and white surfaces; one Deep Navy section (trust); Soft Sky for the film.
   - accent: Health Blue for actions and highlights, Fresh Aqua only for "connected" lines and dots.
   - rhythm: 1200 max width, sections 120px apart (72 on phones), cards radius 24. */

:root {
  --bg: #F7FAFD;
  --surface: #FFFFFF;
  --navy: #0F2D5B;
  --ink: #0F2D5B;
  --text: #33496B;
  --muted: #617792;
  --line: #E2EAF4;
  --blue: #2878F0;
  --blue-dark: #175EBD;
  --health: #3B82F6;
  --aqua: #14D1C8;
  --teal: #087F80;
  --sky: #E8F4FF;
  --mint: #E3F8F4;
  --warn-bg: #FFF4E8;
  --warn: #8A5A1F;
  --radius: 24px;
  --shadow: 0 24px 60px -32px rgba(15, 45, 91, .35);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 18px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--health); outline-offset: 3px; border-radius: 8px; }

svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.kicker {
  display: flex; align-items: center; gap: 12px;
  font: 700 13px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 20px;
}
.kicker::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--aqua); }
.center .kicker { justify-content: center; }

.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { font: 800 clamp(34px, 4.4vw, 56px)/1.06 "Plus Jakarta Sans", sans-serif; letter-spacing: -.03em; }
.sec-head p:not(.kicker) { margin-top: 20px; font-size: 19px; color: var(--text); }
section { padding: 120px 0; position: relative; }
@media (max-width: 760px) { section { padding: 72px 0; } .sec-head { margin-bottom: 36px; } }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 27px; border: 1px solid transparent;
  font: 700 16px/1 "Plus Jakarta Sans", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn.primary { background: var(--navy); color: #fff; box-shadow: 0 14px 30px -16px rgba(15, 45, 91, .7); }
.btn.primary:hover { background: #163C75; transform: translateY(-1px); }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #C9D8EA; transform: translateY(-1px); }
.btn.sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn .dur { font-weight: 600; opacity: .7; }
.soon-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px;
  background: var(--sky); color: var(--blue-dark); font: 700 13px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .02em; white-space: nowrap;
}
.soon-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(20, 209, 200, .2); }

/* header */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(247, 250, 253, .82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: auto; }
.brand span { font: 600 21px/1 "Plus Jakarta Sans", sans-serif; letter-spacing: .32em; color: var(--navy); }
.links { display: flex; gap: 28px; margin-left: auto; }
.links a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.links a:hover { color: var(--ink); }
@media (max-width: 960px) { .links { display: none; } .site-head .soon-pill { margin-left: auto; } }

/* hero */
.hero { padding: 64px 0 96px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 209, 200, .12), transparent); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -300px; top: -260px; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 246, .10), transparent); pointer-events: none; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; position: relative; z-index: 1; }
.hero-copy h1 { font: 800 clamp(44px, 6.2vw, 84px)/1.02 "Plus Jakarta Sans", sans-serif; letter-spacing: -.035em; }
.hero-copy h1 .hl { color: var(--blue); }
.lede { margin-top: 26px; font-size: 20px; line-height: 1.6; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.prelaunch { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: 15px; color: var(--muted); font-weight: 500; }
.prelaunch i { width: 8px; height: 8px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(20, 209, 200, .18); }
.hero-visual { position: relative; height: 700px; }
.hero-phone { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.piece {
  position: absolute; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center;
  padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-size: 14px; line-height: 1.25; white-space: nowrap;
}
.piece .pi { grid-row: span 2; width: 42px; height: 42px; border-radius: 13px; background: var(--sky); color: var(--blue); display: grid; place-items: center; }
.piece b { color: var(--ink); font-size: 15px; }
.piece small { color: var(--muted); font-size: 13px; }
.hero-visual { --pw: 320px; --lap: 18px; }
.piece::after { content: ""; position: absolute; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 4px rgba(20, 209, 200, .2); }
.pz1, .pz3 { right: calc(50% + var(--pw) / 2 - var(--lap)); }
.pz2, .pz4 { left: calc(50% + var(--pw) / 2 - var(--lap)); }
.pz1::after, .pz3::after { right: -5px; }
.pz2::after, .pz4::after { left: -5px; }
.pz1 { top: 14%; }
.pz2 { top: 30%; }
.pz2 .pi { background: var(--mint); color: var(--teal); }
.pz3 { bottom: 24%; }
.pz4 { bottom: 9%; }
@media (min-width: 961px) and (max-width: 1180px) { .piece small { display: none; } .piece { padding: 10px 14px 10px 10px; } }
.pz4 .pi { background: #F1EDFF; color: #6C55E0; }
@media (max-width: 960px) {
  .hero { padding: 40px 0 72px; }
  .hero-in { grid-template-columns: 1fr; }
  .hero-visual { height: 600px; }
}
@media (max-width: 520px) {
  .hero-visual { height: 610px; margin: 0 -16px; }
  .piece small { display: none; }
  .piece .pi { grid-row: auto; }
  .piece { padding: 8px 12px 8px 8px; font-size: 12px; }
  .piece .pi { width: 34px; height: 34px; border-radius: 10px; }
  .piece b { font-size: 13px; }
  .piece small { font-size: 11.5px; }
  .pz1, .pz3 { left: 6px; right: auto; } .pz2, .pz4 { right: 6px; left: auto; }
  .pz1, .pz2 { top: 4px; } .pz3, .pz4 { bottom: 4px; }
  .piece::after { display: none; }
}

/* phone fitting: JS sets --s and the box size */
.phone-fit { position: relative; }
.phone-fit .phone { position: absolute; left: 0; top: 0; transform-origin: 0 0; transform: scale(var(--s, .8)); }

/* problem */
.problem { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.scatter { position: relative; height: 460px; max-width: 1000px; margin: 0 auto; }
.sc { position: absolute; left: 50%; top: 50%; background: #FFFFFE; border-radius: 10px; box-shadow: 0 20px 50px -26px rgba(15, 45, 91, .45), 0 1px 3px rgba(15, 45, 91, .08); padding: 16px 18px; font-family: "Inter", sans-serif; color: #2A3445; will-change: transform; }
.sc b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.sc small { display: block; font-size: 12px; color: #6B7586; margin-top: 2px; }
.sc i { display: block; height: 7px; border-radius: 4px; background: #E3E7EC; margin-top: 10px; }
.sc i:nth-child(odd) { width: 70%; }
.paper-lab { width: 200px; height: 250px; }
.paper-rx { width: 170px; height: 210px; background: #FFFDF6; }
.paper-rx b { font-size: 26px; }
.paper-slip { width: 220px; background: #FFF8DC; color: #3A3320; }
.paper-slip b { color: #8A6A10; letter-spacing: .14em; font-size: 12px; }
.paper-slip small { font-size: 17px; font-weight: 700; color: #3A3320; margin-top: 8px; }
.paper-card { width: 190px; border-radius: 16px; }
.paper-card b { letter-spacing: 0; font-size: 15px; color: var(--ink); }
.gather { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; opacity: 0; }
.gather img { width: 120px; margin: 0 auto 18px; }
.gather span { display: block; font: 800 clamp(22px, 3vw, 32px)/1.2 "Plus Jakarta Sans", sans-serif; color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 640px) {
  .scatter { height: 420px; }
  .paper-lab { width: 150px; height: 190px; } .paper-rx { width: 130px; height: 160px; } .paper-slip { width: 170px; } .paper-card { width: 150px; }
  .gather span { white-space: normal; }
}

/* how */
.loop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.loop li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 30px; }
.loop li:not(:last-child)::after { content: ""; position: absolute; right: -21px; top: 54px; width: 22px; height: 2px; background: repeating-linear-gradient(90deg, var(--aqua) 0 4px, transparent 4px 8px); }
.loop .n { position: absolute; right: 24px; top: 26px; font: 700 13px/1 "Plus Jakarta Sans"; color: #A6B5C8; letter-spacing: .1em; }
.loop .li-ic { width: 52px; height: 52px; border-radius: 16px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 22px; }
.loop .li-ic svg.i { width: 26px; height: 26px; }
.loop h3 { font: 800 22px/1.2 "Plus Jakarta Sans"; letter-spacing: -.01em; margin-bottom: 10px; }
.loop p { font-size: 16px; color: var(--text); }
@media (max-width: 960px) { .loop { grid-template-columns: 1fr 1fr; } .loop li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .loop { grid-template-columns: 1fr; } .loop li::after { display: none; } }

/* demo */
.demo { background: linear-gradient(180deg, var(--bg), #EEF5FD); padding-top: 40px; }
.demo-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.demo-stage { position: relative; display: flex; flex-direction: column; align-items: center; }
.demo-hint { margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.demo-hint::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: rgba(40, 120, 240, .25); box-shadow: 0 0 0 4px rgba(40, 120, 240, .15); }
.demo-side h2 { font: 800 clamp(32px, 3.8vw, 48px)/1.08 "Plus Jakarta Sans"; letter-spacing: -.03em; }
.demo-note { margin-top: 14px; color: var(--muted); font-size: 16px; }
.steps-list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps-list button {
  width: 100%; display: flex; gap: 16px; align-items: flex-start; text-align: left; padding: 16px 18px; border-radius: 18px;
  background: transparent; border: 1px solid transparent; cursor: pointer; font: inherit; color: var(--text); transition: background-color .25s, border-color .25s;
}
.steps-list button:hover { background: rgba(255, 255, 255, .7); }
.steps-list button[aria-selected="true"] { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); }
.steps-list .sn { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #E6EEF8; color: var(--muted); font: 700 14px/1 "Plus Jakarta Sans"; transition: background-color .25s, color .25s; }
.steps-list button[aria-selected="true"] .sn { background: var(--blue); color: #fff; }
.steps-list button.done .sn { background: var(--mint); color: var(--teal); }
.steps-list b { display: block; color: var(--ink); font-size: 17px; }
.steps-list small { display: block; font-size: 14.5px; color: var(--muted); margin-top: 3px; line-height: 1.45; }
.demo-actions { display: flex; gap: 10px; margin-top: 22px; }
@media (max-width: 960px) {
  .demo-in { grid-template-columns: 1fr; gap: 28px; }
  .demo-side { order: -1; }
  .steps-list small { display: none; }
  .steps-list { flex-direction: row; gap: 6px; }
  .steps-list li { flex: 1; }
  .steps-list button { flex-direction: column; align-items: center; text-align: center; padding: 10px 4px; gap: 6px; }
  .steps-list b { font-size: 12.5px; line-height: 1.25; }
}
/* tap targets inside the demo phone */
.phone .hot { cursor: pointer; }
.phone .ring {
  position: absolute; z-index: 45; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  border: 3px solid rgba(40, 120, 240, .9); pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 6px rgba(40, 120, 240, .18);
}
.phone .ring.on { opacity: 1; animation: ring 1.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(.7); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .phone .ring.on { animation: none; opacity: 1; } }
.phone .qchips { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.phone .qchip { align-self: flex-start; padding: 12px 16px; border-radius: 22px; border: 1px solid #D5E1EF; background: #fff; font: 600 15px/1.3 "Inter", sans-serif; color: var(--ink); cursor: pointer; text-align: left; }
.phone .qchip:hover { border-color: var(--blue); }
.phone .ans .act { margin-top: 12px; }

/* features */
.features { background: var(--surface); border-top: 1px solid var(--line); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.fc { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column; }
.fc.c3 { grid-column: span 3; }
.fc.c2 { grid-column: span 2; }
.fc .f-ic { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--blue); margin-bottom: 20px; }
.fc h3 { font: 800 21px/1.25 "Plus Jakarta Sans"; letter-spacing: -.01em; margin-bottom: 10px; }
.fc p { font-size: 16px; color: var(--text); }
.mini { margin-top: 22px; }
.mini.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mini.chips span { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--ink); }
.mini.chips svg.i { width: 18px; height: 18px; color: var(--blue); }
.mini.rows { display: flex; flex-direction: column; gap: 8px; font-family: "Inter", sans-serif; }
.mini.rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 14px; }
.mini.rows div.amber { background: var(--warn-bg); border-color: #F3D9B5; }
.mini.rows div.amber span { color: var(--warn); font-weight: 600; }
.mini.rows b { color: var(--ink); white-space: nowrap; }
.mini.change { font-family: "Inter", sans-serif; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.mini.change span { display: block; font-size: 13px; color: var(--muted); }
.mini.change b { display: block; font-size: 28px; font-weight: 800; color: var(--ink); margin: 4px 0; }
.mini.change b i { font-style: normal; color: var(--blue); }
.mini.change small { font-size: 12.5px; color: var(--muted); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } .fc.c3, .fc.c2 { grid-column: span 1; } .fc.c3:first-child, .fc.c3:nth-child(2) { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: 1fr; gap: 14px; } .fc.c3, .fc.c2, .fc.c3:first-child, .fc.c3:nth-child(2) { grid-column: span 1; } .fc { padding: 24px; } }

/* family */
.fam-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.fam-side h2 { font: 800 clamp(32px, 3.8vw, 48px)/1.08 "Plus Jakarta Sans"; letter-spacing: -.03em; }
.fam-side > p:not(.kicker) { margin-top: 16px; font-size: 18px; }
.people { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.people button {
  display: flex; gap: 12px; align-items: center; text-align: left; padding: 14px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.people button[aria-selected="true"] { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40, 120, 240, .14); }
.people b { display: block; color: var(--ink); font-size: 16px; }
.people small { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.35; }
.av { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 700 16px/1 "Inter"; }
.av.dad { background: linear-gradient(140deg, #4A97FA, #2366D9); }
.av.mom { background: linear-gradient(140deg, #34D2C2, #0E9C93); }
.av.mia { background: linear-gradient(140deg, #B5A4FF, #7D68E8); }
.av.me { background: linear-gradient(140deg, #5E7FA8, #0F2D5B); }
.seg { display: inline-flex; margin-top: 18px; padding: 4px; border-radius: 26px; background: #E8EEF6; }
.seg button { height: 40px; padding: 0 18px; border-radius: 20px; border: 0; background: transparent; font: 700 14.5px/1 "Plus Jakarta Sans"; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(15, 45, 91, .35); }
.fam-stage { display: flex; justify-content: center; }
@media (max-width: 960px) { .fam-in { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 420px) { .people { grid-template-columns: 1fr; } }

/* trust */
.trust { background: radial-gradient(120% 80% at 80% 0%, #173D75 0%, #0F2D5B 55%, #0B2349 100%); color: #C7D7EC; }
.trust .kicker { color: #5BE3CF; }
.trust .sec-head h2 { color: #fff; }
.trust .sec-head p:not(.kicker) { color: #C7D7EC; }
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.rule { border: 1px solid rgba(143, 208, 255, .22); border-radius: var(--radius); padding: 28px; background: rgba(255, 255, 255, .03); }
.rule .r-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(91, 227, 207, .12); color: #5BE3CF; margin-bottom: 20px; }
.rule h3 { color: #fff; font: 800 20px/1.25 "Plus Jakarta Sans"; margin-bottom: 10px; }
.rule p { font-size: 15.5px; line-height: 1.6; color: #B8CBE4; }
.disclaimer { margin-top: 32px; padding: 22px 26px; border-radius: 18px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(143, 208, 255, .18); }
.disclaimer p { font-size: 15.5px; color: #C7D7EC; }
.disclaimer b { color: #fff; }
@media (max-width: 960px) { .rules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rules { grid-template-columns: 1fr; } }

/* film */
.film { background: linear-gradient(180deg, #EEF5FD, var(--bg)); }
.film-frame { max-width: 1040px; margin: 0 auto; border-radius: 28px; overflow: hidden; background: var(--navy); box-shadow: 0 50px 100px -50px rgba(15, 45, 91, .6); aspect-ratio: 16 / 9; }
.film-frame.portrait { max-width: 420px; aspect-ratio: 9 / 16; }
.film-video { width: 100%; height: 100%; display: block; background: var(--navy); }
.film-alt { text-align: center; margin-top: 22px; font-size: 15px; color: var(--muted); }
.chapters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 1040px; margin: 22px auto 0; }
.chapters button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); font: 600 14px/1 "Plus Jakarta Sans", sans-serif; color: var(--ink); cursor: pointer; }
.chapters button:hover { border-color: #C9D8EA; }
.chapters button span { color: var(--teal); font-variant-numeric: tabular-nums; font-weight: 700; }

/* film modal */
.film-modal { padding: 0; border: 0; border-radius: 22px; background: #000; width: min(92vw, 1200px); max-height: 90vh; overflow: hidden; }
.film-modal.portrait { width: min(92vw, calc(85vh * 9 / 16)); }
.film-modal::backdrop { background: rgba(8, 20, 40, .82); backdrop-filter: blur(4px); }
.film-modal video { width: 100%; display: block; max-height: 90vh; }
.film-modal .close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: var(--navy); display: grid; place-items: center; cursor: pointer; }

/* footer */
.foot { padding: 56px 0 64px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-in { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; gap: 16px; align-items: center; }
.foot-brand img { width: 52px; }
.foot-brand b { display: block; font: 600 20px/1 "Plus Jakarta Sans"; letter-spacing: .32em; color: var(--navy); }
.foot-brand span { display: block; margin-top: 8px; color: var(--muted); font-size: 15px; }
.foot-meta { text-align: right; font-size: 14px; color: var(--muted); }
.foot-meta p { margin-top: 10px; }
@media (max-width: 640px) { .foot-meta { text-align: left; } }

/* reveal on scroll (JS adds .js to <html>) */
.js .rv { opacity: 0; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } }

.pd { margin-left: -.06em; }
