/* Quanzo.ai — site styles
   Layout: 12-column editorial grid, hairline rules, one rendered scene carried through every page.
   Warm stone palette taken from the Blender front-desk scene. Light only, by choice. */
:root {
  --paper: #eeeae3;
  --paper-2: #e4ded4;
  --ink: #1d1a16;
  --ink-2: #3d3830;
  --muted: #6f675c;
  --line: #d6cfc3;
  --accent: #8a6a3f;      /* brass text on paper (AA contrast) */
  --accent-soft: #ece1cd;
  --brass: #b48f58;       /* the receptionist device and the dot in the mark */
  --brass-lt: #d2ad74;
  --forest: #23413a;      /* her jacket, primary dark */
  --forest-2: #2d5249;
  --clay: #b4553a;        /* the desk lamp, warm accent */
  --mist: #9fb3ba;        /* the clinic, cool accent */
  --night: #14120f;
  --display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --maxw: 1280px;
  --g: 24px;
  color-scheme: light;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 16px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--g); }

.label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ph { border-bottom: 1px dashed var(--accent); color: inherit; cursor: help; }
.ph::after { content: "•"; color: var(--accent); font-size: .7em; vertical-align: super; margin-left: 2px; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 20px; border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-header.scrolled .nav { border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.brand .ai { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 30px; list-style: none; font-size: 15px; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 20px; font-size: 15px; }
.lang { position: relative; }
.lang button { background: none; border: 0; font: inherit; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); cursor: pointer; padding: 6px 0; }
.lang ul { position: absolute; right: 0; top: 100%; list-style: none; background: var(--paper); border: 1px solid var(--line); padding: 8px 0; min-width: 180px; font-size: 14px; }
.lang li { padding: 6px 14px; color: var(--muted); display: flex; justify-content: space-between; gap: 12px; }
.lang li[aria-current="true"] { color: var(--ink); }
.cta-link { border-bottom: 1px solid var(--ink); padding-bottom: 1px; }
.menu-btn { display: none; background: none; border: 0; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.mobile-nav { display: none; }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: 12px; background: var(--ink); color: var(--paper); padding: 15px 24px; border-radius: 2px; font-size: 15px; font-weight: 500; border: 0; cursor: pointer; font-family: inherit; transition: background .2s; }
.btn:hover { background: var(--forest); }
.btn.light { background: var(--paper); color: var(--ink); }
.btn.light:hover { background: #fff; }
.link { font-size: 15px; border-bottom: 1px solid var(--line); padding-bottom: 2px; transition: border-color .2s; }
.link:hover { border-color: var(--ink); }
.arrow::after { content: " →"; }

/* Type */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
.display { font-size: clamp(44px, 7vw, 100px); line-height: .98; letter-spacing: -0.045em; }
.h2 { font-size: clamp(32px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.035em; }
.h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.lede { font-family: var(--display); font-size: clamp(21px, 2.2vw, 28px); line-height: 1.38; letter-spacing: -0.015em; color: var(--ink); }
.muted { color: var(--muted); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 30px; line-height: 1.15; margin: 56px 0 16px; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin-bottom: 18px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { border-bottom: 1px solid var(--line); }
.prose a:hover { border-color: var(--ink); }

/* Sections */
.section { padding-block: clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); }
.section.flush { border-top: 0; }
.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }
.sec-head .label { grid-column: 1 / span 3; padding-top: 12px; }
.sec-head > :not(.label) { grid-column: 4 / span 9; }
.indent { margin-left: calc((100% + var(--g)) * 3 / 12); }

/* Page header (sub pages) */
.page-head { padding-block: clamp(48px, 8vw, 104px) clamp(40px, 6vw, 72px); }
.page-head .label { grid-column: 1 / span 3; padding-top: 18px; }
.page-head .head-copy { grid-column: 4 / span 9; }
.page-head h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1; letter-spacing: -0.045em; margin-bottom: 26px; }
.page-head p { max-width: 52ch; font-size: 19px; color: var(--ink-2); }
.banner { margin: 0; }
.banner-media, .banner-media img, .banner-media video { display: block; width: 100%; }
.banner-media img, .banner-media video { aspect-ratio: 21 / 9; object-fit: cover; background: var(--paper-2); }
.banner.wide img { aspect-ratio: 16 / 7; }
.banner figcaption { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; }

/* Home: scroll story */
.story { position: relative; height: 340vh; }
.story-stage { position: sticky; top: var(--hh, 0px); height: calc(100vh - var(--hh, 0px)); height: calc(100svh - var(--hh, 0px)); overflow: hidden; }
.story canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--paper-2); }
.story-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(238,234,227,.94) 0%, rgba(238,234,227,.72) 34%, rgba(238,234,227,0) 60%); }
.story-copy { position: absolute; inset: 0; display: flex; align-items: center; }
.beat { position: absolute; max-width: 560px; transition: opacity .35s ease, transform .35s ease; }
.beat h1, .beat h2 { font-size: clamp(40px, 5.6vw, 82px); line-height: 1; letter-spacing: -0.045em; margin: 18px 0 24px; }
.beat p { font-size: 19px; color: var(--ink-2); max-width: 40ch; }
.beat .actions { display: flex; gap: 26px; align-items: center; margin-top: 34px; flex-wrap: wrap; }
.story-meter { position: absolute; left: 0; right: 0; bottom: 28px; }
.story-meter .wrap { display: flex; gap: 16px; align-items: center; }
.story-meter ol { display: flex; gap: 24px; list-style: none; }
.story-meter li { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); opacity: .55; transition: opacity .3s, color .3s; }
.story-meter li.on { opacity: 1; color: var(--ink); }
.story-meter .bar { flex: 1; height: 1px; background: var(--line); position: relative; }
.story-meter .bar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--ink); width: 0; }
.no-js .story { height: auto; }
.no-js .story-stage { position: relative; }

/* Lists */
.rows { list-style: none; border-top: 1px solid var(--ink); }
.rows > li > a, .rows > li > .row { display: grid; grid-template-columns: 1.1fr 1.5fr auto; gap: 32px; padding-block: 28px; border-bottom: 1px solid var(--line); align-items: baseline; transition: padding .3s, background .3s; }
.rows > li > a:hover { padding-left: 10px; }
.rows h3 { font-size: 24px; letter-spacing: -0.02em; }
.rows p { color: var(--muted); font-size: 16px; max-width: 48ch; }
.cols { display: grid; gap: var(--g); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tick { border-top: 1px solid var(--ink); padding-top: 18px; }
.tick.soft { border-color: var(--line); }
.tick .label { display: block; margin-bottom: 28px; }
.tick h3 { font-size: 21px; margin-bottom: 8px; letter-spacing: -0.02em; }
.tick p { color: var(--muted); font-size: 15.5px; }

/* Cards (work) */
.work-card { display: grid; gap: 16px; }
.work-card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.work-card .meta { display: flex; justify-content: space-between; gap: 12px; }
.work-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.work-card p { color: var(--muted); font-size: 15.5px; }
.tag { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); padding: 3px 8px; border-radius: 2px; }

/* Metrics */
.figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); border-top: 1px solid var(--ink); }
.figures div { padding-top: 18px; }
.figures strong { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; font-variant-numeric: tabular-nums; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--g); }
.plan { border-top: 1px solid var(--ink); padding-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.plan .price { font-family: var(--display); font-size: 34px; letter-spacing: -0.03em; }
.plan ul { list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 15.5px; }
.plan li::before { content: "— "; color: var(--muted); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan.featured { border-top-color: var(--accent); }
.plan.featured .label { color: var(--accent); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); padding-block: 22px; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; font-family: var(--display); font-size: 20px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-family: var(--mono); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 12px; color: var(--ink-2); max-width: 64ch; }

/* Contact block + forms */
.dark { background: var(--ink); color: var(--paper); border-top: 0; }
.dark .label, .dark .muted { color: #a59c8f; }
.dark .h2, .dark .display { color: var(--paper); }
form.form { display: grid; gap: 22px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; font-size: 17px; padding: 8px 0; border-radius: 0; outline: none; transition: border-color .2s; }
.field select { appearance: none; -webkit-appearance: none; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--ink); }
.dark .field label { color: #9a9993; }
.dark .field input, .dark .field textarea, .dark .field select { border-color: #4a4a45; }
.dark .field input:focus, .dark .field textarea:focus { border-color: var(--paper); }
.dark .field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 96px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { margin-top: 4px; accent-color: var(--accent); }
.form-note { font-size: 15px; }
.mail { display: inline-block; font-family: var(--display); font-size: clamp(20px, 2vw, 26px); border-bottom: 1px solid currentColor; padding-bottom: 3px; user-select: all; }

/* Footer */
.site-footer { background: var(--ink); color: #b9b8b1; padding-block: 72px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 15px; }
.site-footer .grid { row-gap: 40px; }
.site-footer h4 { font-family: var(--mono); font-weight: 400; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #7f7e78; margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--paper); }
.foot-brand { grid-column: 1 / span 4; }
.foot-brand p { max-width: 32ch; margin-top: 14px; color: #9a9993; }
.foot-col { grid-column: span 2; }
.foot-base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid #2c2c29; margin-top: 64px; padding-top: 24px; color: #7f7e78; font-size: 13.5px; }
.foot-base a { color: #9a9993; }

/* Cookie notice */
.cookie { position: fixed; z-index: 50; left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 520px; background: var(--paper); border: 1px solid var(--ink); padding: 20px; display: grid; gap: 14px; font-size: 14.5px; box-shadow: 0 10px 40px -20px rgba(0,0,0,.35); }
.cookie .row-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.cookie .btn { padding: 10px 16px; font-size: 14px; }
.cookie .btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }

/* Colour sections */
.forest { background: var(--forest); color: var(--paper); border-top: 0; }
.forest .label, .forest .muted { color: #a9bdb5; }
.forest .h2 { color: var(--paper); }
.forest .btn.light { background: var(--brass-lt); color: var(--night); }
.forest .btn.light:hover { background: var(--paper); }
.ink { background: var(--night); color: var(--paper); border-top: 0; }
.ink .label { color: var(--brass-lt); }
.ink .h2, .ink h3 { color: var(--paper); }
.ink p, .ink .muted { color: #b3aa9c; }
.ink .link { border-color: #4a443b; }
.ink .link:hover { border-color: var(--paper); }

/* Rendered scenes: reel and cards */
.reel-sec { overflow: hidden; }
.reel { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(260px, 30vw, 460px); gap: var(--g); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100vw - var(--maxw)) / 2 + 40px));
  padding: 4px max(16px, calc((100vw - var(--maxw)) / 2 + 40px)) 20px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; cursor: grab; }
.reel.dragging { cursor: grabbing; scroll-snap-type: none; }
.reel::-webkit-scrollbar { height: 6px; } .reel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.reel-card { scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.reel-card .card-media img, .reel-card .card-media video { aspect-ratio: 4 / 5; }
.reel-card h3 { font-size: clamp(19px, 1.6vw, 23px); letter-spacing: -0.02em; line-height: 1.2; }
.reel-hint { margin-top: 12px; }
.card-media { overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.card-media img, .card-media video { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
a:hover .card-media img, a:hover .card-media video { transform: scale(1.035); }
.ai-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--g); }
.ai-card { display: grid; gap: 12px; align-content: start; }
.ai-card .card-media img, .ai-card .card-media video { aspect-ratio: 3 / 4; }
.ai-card h3 { font-size: 22px; letter-spacing: -0.02em; }
.ai-card p { font-size: 15.5px; color: var(--muted); }
.ink .card-media { background: #24211c; }

/* Home: two offerings */
.pair > a { display: grid; gap: 12px; align-content: start; transition: border-color .2s; }
.pair > a:hover { border-color: var(--accent); }
.pair .h3 { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.pair p { font-size: 17px; max-width: 46ch; }
.pair .link { justify-self: start; margin-top: 10px; }

/* Illustrative call */
.call { border-top: 1px solid var(--ink); }
.call-head { display: flex; justify-content: space-between; gap: 16px; padding-block: 14px 26px; }
.call-body { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: calc(var(--g) * 2); }
.call-lines { list-style: none; display: grid; gap: 18px; }
.call-lines li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: baseline; }
.call-lines p { font-size: 17px; color: var(--ink-2); }
.call-lines li.ai p { font-family: var(--display); font-size: 19px; color: var(--ink); letter-spacing: -0.01em; }
.call-lines li.ai .label { color: var(--accent); }
.call-side { list-style: none; display: grid; gap: 18px; align-content: start; background: var(--paper-2); padding: 22px 24px; border-radius: 2px; }
.call-side li { border-top: 1px solid var(--line); padding-top: 12px; }
.call-side li.label { border: 0; padding: 0; }
.call-side p { font-size: 15px; color: var(--ink); margin-top: 4px; }

/* Tables */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 24px; }
.tbl th { text-align: left; border-bottom: 1px solid var(--ink); padding: 8px 8px 8px 0; font-weight: 500; }
.tbl td { border-bottom: 1px solid var(--line); padding: 8px 8px 8px 0; }

/* Gentle entrance, visible at rest */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise > * { animation: rise .8s cubic-bezier(.2,.7,.2,1) both; }
.rise > :nth-child(2) { animation-delay: .06s; } .rise > :nth-child(3) { animation-delay: .12s; } .rise > :nth-child(4) { animation-delay: .18s; }

@media (min-width: 1700px) {
  :root { --maxw: 1480px; --g: 32px; }
  body { font-size: 18px; }
}
@media (max-width: 1180px) {
  .nav-links { gap: 18px; font-size: 14.5px; }
  .ai-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 48px; }
}
@media (max-width: 960px) {
  .nav-links, .nav-right .lang, .nav-right .cta-link { display: none; }
  .menu-btn { display: inline-block; }
  .mobile-nav[data-open="true"] { display: block; border-top: 1px solid var(--line); padding-block: 12px 24px; }
  .mobile-nav ul { list-style: none; display: grid; }
  .mobile-nav a { display: block; padding: 10px 0; font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; }
  .sec-head .label, .page-head .label { grid-column: 1 / -1; padding-top: 0; }
  .sec-head > :not(.label), .page-head .head-copy { grid-column: 1 / -1; }
  .indent { margin-left: 0; }
  .grid > [style*="grid-column"] { grid-column: 1 / -1 !important; }
  .wrap > .beat, .story-copy .beat { left: max(16px, env(safe-area-inset-left, 0px)); right: max(16px, env(safe-area-inset-right, 0px)); }
  .cookie { font-size: 13.5px; padding: 16px; }
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .cols-3, .plans { grid-template-columns: 1fr; row-gap: 40px; }
  .foot-brand { grid-column: 1 / -1; }
  .foot-col { grid-column: span 6; }
  .call-body { grid-template-columns: 1fr; }
  .story canvas { height: 55%; }
  .story-shade { background: linear-gradient(180deg, rgba(238,234,227,0) 42%, var(--paper) 55%); }
  .story-copy { align-items: flex-end; padding-bottom: 0; }
  .beat { position: absolute; bottom: 96px; left: 0; right: 0; max-width: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .rows > li > a, .rows > li > .row { grid-template-columns: 1fr; gap: 6px; }
  .cols-2, .cols-4, .figures { grid-template-columns: 1fr; }
  .call-lines li { grid-template-columns: 1fr; gap: 2px; }
  .ai-grid { grid-template-columns: 1fr; }
  .ai-card .card-media img, .ai-card .card-media video { aspect-ratio: 4 / 3; }
  .reel { grid-auto-columns: 78vw; }
  .banner-media img, .banner-media video { aspect-ratio: 4 / 5; }
  .tbl { font-size: 13.5px; }
  .figures { row-gap: 28px; }
  .tick .label { margin-bottom: 12px; }
  .banner img { aspect-ratio: 4 / 3; }
  .beat p { font-size: 16px; }
  .beat h1, .beat h2 { font-size: clamp(30px, 8.6vw, 36px); margin: 0 0 10px; }
  .beat p { font-size: 15px; line-height: 1.5; }
  .beat > .label { display: none; }
  .beat .actions { margin-top: 22px; }
  .beat { bottom: 44px; }
  .story-meter ol { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* brand film */
.film-sec{background:var(--night);color:var(--paper);padding:clamp(72px,10vw,140px) 0 clamp(40px,6vw,80px)}
.film-sec .h2{color:var(--paper)}
.film-sec .label,.film-sec .reel-hint{color:#a89c8a}
.film-frame{position:relative;margin:clamp(24px,4vw,48px) auto 0;width:min(100%,1680px);aspect-ratio:16/9;overflow:hidden;background:#0b0a08}
.film-frame video{width:100%;height:100%;object-fit:cover;display:block}
@media (max-aspect-ratio:4/5){.film-frame{aspect-ratio:9/16;max-height:88vh;width:auto;max-width:100%}}

/* touch targets and small text on phones */
@media (pointer: coarse), (max-width: 900px) {
  .brand { min-height: 44px; }
  .menu-btn { min-height: 44px; min-width: 44px; padding: 0 4px; }
  .actions .link, .beat .actions .link { display: inline-flex; align-items: center; min-height: 44px; }
  .check { display: flex; gap: 12px; align-items: flex-start; }
  .check input[type="checkbox"] { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 1px; accent-color: var(--forest); }
  .tag { font-size: 12px; }
  .reel { scroll-padding-inline: 16px; }
}
@media (max-width: 900px) and (max-height: 760px) {
  .story canvas { height: 46%; }
  .story-shade { background: linear-gradient(180deg, rgba(238,234,227,0) 34%, var(--paper) 46%); }
  .beat { bottom: 36px; }
  .beat p { font-size: 14.5px; line-height: 1.45; }
  .beat .actions { margin-top: 16px; }
}
@media (max-width: 900px) and (max-height: 640px) {
  .story canvas { height: 36%; }
  .story-shade { background: linear-gradient(180deg, rgba(238,234,227,0) 26%, var(--paper) 36%); }
  .beat h1, .beat h2 { font-size: 27px; margin-bottom: 8px; }
  .beat p { font-size: 13.5px; }
  .beat .actions { margin-top: 10px; gap: 4px 20px; }
}
