/* BMA product experience — cinematic edition. Each chapter has one visual purpose. */

body[data-product="office"] {
  --paper:#081727; --ink:#f5f8fd; --muted:#b9cadd; --accent:#75c4ff;
  --line:#e2f3ff25; --soft:#122e44; --glow:#55adff;
}
body[data-product="log"] {
  --paper:#07121b; --ink:#f9f8f4; --muted:#afbdc7; --accent:#f4773d;
  --line:#e4f4ff27; --soft:#112532; --glow:#ed7238;
}
html {scroll-padding-top:80px}
body {font-family:Inter,'Segoe UI',Arial,sans-serif; background:var(--paper)}
h1,h2,h3 {font-family:Inter,'Segoe UI',Arial,sans-serif; letter-spacing:-.058em; font-weight:600}
h1 {line-height:1.02} h2 {line-height:1.07} h3 {line-height:1.13}
p {color:var(--muted);line-height:1.68}
.serif {font-family:Inter,'Segoe UI',Arial,sans-serif; font-style:normal; font-weight:500; letter-spacing:-.067em; color:var(--accent)}
body[data-product="log"] .serif {font-weight:500}
.wrap {width:min(1320px,calc(100% - 112px))}
.eyebrow, .chapter-tag {letter-spacing:.16em;font-weight:600}
.button {border-radius:999px; padding:17px 26px; font-weight:700; letter-spacing:.01em; box-shadow:0 8px 32px #0003; transition:transform .4s cubic-bezier(.2,1,.25,1), box-shadow .4s, background .4s}
.button:hover {transform:translateY(-4px);box-shadow:0 16px 34px #0005}
.text-button {font-weight:600; transition:color .3s, border-color .3s}

/* Navigation stays visually quiet above the film and becomes useful during the guide. */
.masthead {height:76px;padding-inline:clamp(22px,4.1vw,76px);background:#061626c7;border-bottom:1px solid #d9eaff1e;color:#f7fbff;box-shadow:0 10px 40px #00101a1c;backdrop-filter:blur(20px)}
body[data-product="log"] .masthead {background:#06121ccc}
.brand {font-size:19px;letter-spacing:-.04em}.brand img {width:40px;height:40px;filter:drop-shadow(0 1px 12px #71bfff20)}
.brand b {font-weight:700;color:var(--accent)}
.product-switch {border:1px solid #d3eeff35;border-radius:999px;padding:4px;background:#ffffff0a;gap:3px}
.product-switch button {color:#c4d2df;border-radius:999px;font-size:12px;padding:8px 22px}
.product-switch button[aria-pressed=true]{background:#f1f7ff;color:#0c2237;box-shadow:0 3px 15px #0002}
body[data-product="log"] .product-switch button[aria-pressed=true]{background:#f4773d;color:#0d1721}
.menu-button,.sound{color:#d9e5ee;font-weight:600}
.sound-bars i {background:var(--accent)}

/* A genuine opening scene, not a logo orbit and generic cards. */
.gate {min-height:100svh;padding-top:128px;padding-bottom:28px;color:#fff; isolation:isolate; background:#051524}
.gate:before {inset:0;z-index:-2;background:radial-gradient(circle at 66% 45%,#227db348 0%,transparent 45%),linear-gradient(125deg,#071523 2%,#12283e 50%,#061627 100%)!important}
body[data-product="log"] .gate:before {background:radial-gradient(circle at 75% 40%,#8b421b44,transparent 45%),linear-gradient(130deg,#06111b,#15222b 60%,#060d15)!important}
.gate:after {content:"";position:absolute;inset:-30% -20%;z-index:-1;pointer-events:none;opacity:.32;background:linear-gradient(110deg,transparent 40%,#ffffff04 50%,transparent 59%);animation:cinematicSweep 14s linear infinite}
.gate-grid {grid-template-columns:1fr .94fr;gap:clamp(40px,5vw,110px)}
.gate-in{position:relative;z-index:2}
.gate .eyebrow {color:#b7d2e4; margin-bottom:28px}
.gate h1 {font-size:clamp(70px,8.7vw,150px);font-weight:600;letter-spacing:-.08em;text-wrap:balance;text-shadow:0 18px 70px #0004}
.gate h1 .serif {display:block;margin-top:.05em;letter-spacing:-.085em;color:var(--accent);font-style:normal}
.gate p {font-size:clamp(17px,1.3vw,20px);max-width:560px;line-height:1.65;color:#cad8e4;margin-top:30px}
.gate .actions {margin-top:38px}.gate .button{font-size:14px;padding:19px 28px;background:var(--accent);color:#081827}
body[data-product="log"] .gate .button{color:#1b130f}
.gate .text-button{color:#e3f2fa;border-color:#a7cadb8a}
.gate-hint {color:#95acbd;font-size:11px;margin-top:22px;letter-spacing:.07em}
.gate-art {aspect-ratio:1.12/1;position:relative;display:block;width:100%;cursor:pointer;text-align:left;color:inherit;border:1px solid #ccecff40;border-radius:26px;overflow:hidden;box-shadow:0 35px 95px #0009,0 0 0 10px #ffffff06;isolation:isolate;transform:perspective(1300px) rotateY(-5deg);transition:transform .8s cubic-bezier(.2,1,.2,1)}
.gate-art:hover {transform:perspective(1300px) rotateY(0) translateY(-7px)}
.gate-film-poster {position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;filter:brightness(.66) saturate(.88)}
.gate-art:before {content:"";position:absolute;inset:0;border:0;border-radius:0;transform:none;animation:none;background:linear-gradient(0deg,#081523dc,transparent 70%),linear-gradient(90deg,#09213240,transparent);z-index:-1}
.gate-art:after {content:'▶';font-size:20px;color:white;position:absolute;inset:auto;left:50%;top:48%;width:100px;height:100px;display:grid;place-items:center;border:1px solid #ffffffaa;background:#ffffff12;border-radius:50%;backdrop-filter:blur(13px);transform:translate(-50%,-50%);animation:playHalo 4s ease-in-out infinite;box-shadow:0 0 0 20px #ffffff0c,0 0 80px #75c4ff3d}
body[data-product="log"] .gate-art:after{box-shadow:0 0 0 20px #ffffff09,0 0 90px #f4773d58}
.gate-art .art-grid,.gate-art .art-line,.gate-art .art-word,.gate-art .art-logo {display:none}
.gate-art .art-index {left:24px;bottom:24px;top:auto;right:auto;color:#e1ebf2;letter-spacing:.15em;font-size:11px}
.gate-art .film-length {top:24px;left:24px;right:auto;bottom:auto;color:#eef7ff;letter-spacing:.14em;font-size:10px}
.gate-footer{border-top-color:#b6cbd932;color:#adc4d7;font-size:10px;line-height:1.65}

/* Story: image-led cinematic chapters with deliberate changes of visual rhythm. */
.chapter{position:relative;isolation:isolate;overflow:hidden;scroll-margin-top:70px}
.chapter .wrap{position:relative;z-index:2}
.chapter-tag{font-size:10px;color:var(--accent);display:flex;align-items:center;gap:20px}
.chapter-tag:before {content:"";width:28px;height:1px;background:var(--accent)}
.chapter-tag .index {font-variant-numeric:tabular-nums}
.chapter h1,.chapter h2 {text-wrap:balance}
.chapter p {font-size:clamp(15px,1.25vw,18px);max-width:630px}
.chapter-photography {position:absolute;inset:0;z-index:0;pointer-events:none;overflow:hidden}
.chapter-photography img {width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.85) contrast(1.07);transform:scale(1.035);transition:transform 2.5s cubic-bezier(.2,1,.25,1)}
.chapter:has(.visible) .chapter-photography img {transform:scale(1)}
.chapter-photography:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#081727 0%,#081727ec 36%,#08172794 65%,#08172745 100%)}
body[data-product="log"] .chapter-photography:after{background:linear-gradient(90deg,#07121b 0%,#07121bee 42%,#07121b95 73%,#07121b55 100%)}
.chapter-photography:before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(0deg,#081727 0%,transparent 25%,transparent 75%,#081727 100%)}
body[data-product="log"] .chapter-photography:before{background:linear-gradient(0deg,#07121b 0%,transparent 25%,transparent 75%,#07121b 100%)}
.story-hero{min-height:calc(100svh - 20px);padding:clamp(150px,16vh,230px) 0 100px;background:#081727;color:#fff}
.office-hero{display:block;position:relative;z-index:2}
.office-hero .hero-copy{padding:0;position:relative;z-index:4;max-width:770px}
.office-hero h1{font-size:clamp(54px,6.8vw,110px);line-height:1.02;max-width:800px}
.office-hero p{color:#d1deeb;max-width:540px;margin-top:28px}
.hero-portrait{position:absolute;inset:-220px calc((min(1320px,100vw - 112px) - 100vw)/2) -120px 20%;max-width:none;margin:0!important;overflow:hidden;z-index:0}
.hero-portrait:before{content:"";position:absolute;inset:0;z-index:2;background:linear-gradient(90deg,#081727 0%,#081727ee 34%,#08172738 95%),linear-gradient(0deg,#081727 0%,transparent 35%),linear-gradient(180deg,#08172777,transparent 30%)}
.hero-portrait img{width:100%;height:100%;aspect-ratio:auto;object-fit:cover;object-position:70% center;border-radius:0;filter:brightness(.82) saturate(.93)}
.hero-portrait figcaption,.hero-portrait:after{display:none}
.hero-note{color:#96afc3;border-top:1px solid #cce5f42c;font-size:10px;letter-spacing:.16em;margin-top:70px}
.story-hero .button{background:var(--accent);color:#061727}.story-hero .text-button{color:#eef6ff}
.log-hero{min-height:95svh;padding:clamp(150px,17vh,220px) 0 95px;background:#06121b;color:#fff}
.log-hero>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 50%;filter:brightness(.7) saturate(.9);transform:scale(1.02)}
.log-hero:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#06121bf7 0%,#07131be6 33%,#07131b4d 85%),linear-gradient(0deg,#07131b,transparent 40%)}
.log-hero .chapter-content{position:relative;z-index:3}
.log-hero h1{font-size:clamp(52px,6.9vw,112px);max-width:1020px}
.log-hero p{max-width:565px;color:#d6dce3}
.log-hero .button{background:var(--accent);color:#0b1420}
.hero-baseline{border-top:1px solid #d9e9f42b;color:#b9c4cc;max-width:800px}

/* Chapter 02: a quiet visual guide, with a real scene rather than a fake interface. */
.workflow{min-height:89svh;padding:clamp(100px,13vh,150px) 0 100px;background:var(--paper)}
.workflow>.wrap{max-width:1320px}
.workflow .chapter-photography img{object-position:80% center}
.section-heading{grid-template-columns:1fr 1fr;gap:60px;align-items:end}
.section-heading h2{font-size:clamp(47px,5.2vw,84px)}
.section-heading p{max-width:440px;line-height:1.7;color:#c0d0df}
.thread{display:grid;grid-template-columns:280px minmax(0,1fr);gap:45px;width:min(760px,70%);margin-top:65px;padding:26px 32px 24px;background:#071727c9;border:1px solid #b5d9ef30;border-radius:23px;box-shadow:0 25px 60px #0007;backdrop-filter:blur(21px)}
body[data-product="log"] .thread{background:#07151ed4}
.thread-nav{display:flex;flex-direction:column;gap:0;border-right:1px solid #ffffff23}
.thread-nav button{color:#b8c9d6;font-size:13px;letter-spacing:.01em;padding:17px 18px 17px 0;border-radius:0;position:relative;text-align:left}
.thread-nav button[aria-selected=true]{color:#fff;padding-left:0;font-weight:750}
.thread-nav button[aria-selected=true]:after{content:"";position:absolute;width:4px;height:24px;right:0;top:calc(50% - 12px);background:var(--accent);border-radius:3px}
.thread-nav button span{color:var(--accent);font-size:10px}
.thread-scene{min-height:320px;padding:14px 10px 0 0;background:none;border:0}
.thread-scene h3{font-size:clamp(27px,2.7vw,42px);color:#fff;line-height:1.13}
.thread-scene p{font-size:14px;color:#bbcad9;line-height:1.65;margin-top:20px}
.thread-scene .text-button{color:#e5f3ff;border-bottom-color:#fff5;margin-top:25px}
.thread-line{height:2px;background:#fff2;margin:0 0 36px}.thread-line i{background:var(--accent)}
.workflow .fine-print{color:#9daeba;max-width:750px}

/* Chapter 03: fullscreen statement over one distinct authentic photograph. */
.immersive{min-height:90svh;background:#05111b;color:#fff;display:flex;align-items:center;padding:100px 0}
.immersive>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;filter:saturate(.82) brightness(.77)}
.immersive:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,#071726fa 0%,#071726bc 44%,#0717262d 92%),linear-gradient(0deg,#061725a3,transparent 60%)}
body[data-product="log"] .immersive:before{background:linear-gradient(90deg,#06131ced 0%,#07141ec1 43%,#07141e17 100%),linear-gradient(0deg,#06131bbf,transparent)}
.immersive .chapter-content{z-index:3;margin-inline:auto;transform:translateY(0)}
.immersive h2{font-size:clamp(52px,6.4vw,100px);max-width:1060px}
.immersive p{max-width:570px;color:#dce9f2;font-size:17px}
.image-credit{color:#cee3f1;right:clamp(20px,4vw,76px);top:130px}
.image-line{border-color:#b9dfec28}

/* Chapter 04: give the claims a real photographic context, without making the reader click to understand them. */
.principles{min-height:88svh;padding:clamp(100px,14vh,155px) 0 115px;background:var(--paper)}
.principles .chapter-photography img{object-position:80% center}
.principles-grid{grid-template-columns:1fr .86fr;align-items:center;gap:8vw}
.principles-intro h2{font-size:clamp(46px,5.3vw,84px)}
.principles-intro p{color:#cad5e0;max-width:580px}
.orbit-diagram{display:none}
.principle-list{background:#081727df;border:1px solid #ffffff27;border-radius:22px;backdrop-filter:blur(20px);padding:15px 32px;box-shadow:0 30px 75px #0006}
.principle-list details{padding:24px 0;border-bottom:1px solid #b9d5ed30}
.principle-list details:last-child{border-bottom:0}
.principle-list summary{color:#f2f6fb;font-size:clamp(18px,1.45vw,24px);font-weight:650}
.principle-list summary span{color:var(--accent)}
.principle-list details p{color:#b7c8d8;font-size:13px;padding-left:37px;margin-top:12px;line-height:1.65}
.principle-list details[open] summary{color:#fff}

/* Chapter 05: editorial split composition and breathing room. */
.overview{min-height:90svh;padding:clamp(100px,13vh,160px) 0;background:#081827}
body[data-product="log"] .overview{background:#0a1a23}
.overview-grid{grid-template-columns:1.05fr 1fr;align-items:center;gap:clamp(60px,6vw,130px)}
.overview-photo{position:relative;margin:0!important;overflow:hidden;border-radius:24px;box-shadow:0 38px 100px #0008;transform:perspective(1100px) rotateY(3deg)}
.overview-photo img{width:100%;height:clamp(480px,58vh,690px);aspect-ratio:auto;object-fit:cover;border-radius:24px;filter:saturate(.88)}
.overview-photo:after{content:"";position:absolute;inset:0;border:1px solid #ffffff30;border-radius:24px;pointer-events:none}
.overview-photo figcaption{position:absolute;bottom:0;left:0;right:0;padding:27px 30px;background:linear-gradient(0deg,#07141ddd,transparent);color:#d3e9f6}
.overview-copy h2{font-size:clamp(47px,5.3vw,86px);line-height:1.07}
.overview-copy p{color:#c1ced9;max-width:580px;margin-top:26px}
.word-list{border-top:1px solid #ffffff25;margin-top:36px}
.word-list span{color:#d7e2e9;font-size:13px;border-bottom:1px solid #ffffff20;padding:16px 0}
.word-list span:before{content:'↗';margin-right:15px;color:var(--accent)}
.completion-stamp{background:#f4773d;color:#09121b;border-radius:50%;box-shadow:0 10px 30px #0007}

/* Chapter 06: a single strong final invitation and useful product handoff. */
.contact{min-height:95svh;padding:clamp(130px,16vh,190px) 0 45px;background:#061523;display:flex;align-items:center}
.contact .chapter-photography img{object-position:70% center}
.contact .chapter-photography:after{background:linear-gradient(90deg,#061523f7 0%,#061523e8 42%,#06152367 83%),linear-gradient(0deg,#061523 0%,transparent 42%)}
.contact .wrap{width:min(1320px,calc(100% - 112px))}
.contact h2{font-size:clamp(57px,7vw,108px);max-width:920px}
.contact p{font-size:17px;max-width:560px;color:#e0eaf2}
.contact .button{margin-top:37px;font-size:14px;background:var(--accent);color:#051420;padding:22px 30px}
body[data-product="log"] .contact .button{color:#151313}
.contact .fine-print{font-size:11px;color:#a8bacc}
.family-line{border-top:1px solid #ffffff3b;border-bottom:1px solid #ffffff20;margin-top:90px;background:#0618275e;padding:25px 0}
.family-line b{color:#f7fbff}.family-line p{color:#acbed1}.family-line button{color:var(--accent)}
.site-footer{color:#a9b8c6;border-color:#ffffff24}
.site-footer a{color:#d8e5f0}

/* Video playback should feel like a full scene, with the small Log original kept sharp. */
.film-stage{background:#020c14;color:#fff;min-height:100svh;isolation:isolate}
.film-stage:before{content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(ellipse at center,#17384d 0%,#06121a 55%,#02070c 100%)}
.film-stage.is-log:before{background:radial-gradient(ellipse at center,#483020 0%,#07131b 60%,#02070c)}
.film-stage .film-frame{box-shadow:0 40px 160px #000d,0 0 0 1px #b0d5e030;border-radius:18px;overflow:hidden;background:#02080d}
.film-stage .film-frame video{object-fit:contain;background:#02080d}
.film-stage.is-log .film-frame{width:min(864px,calc(100vw - 80px));max-height:65vh;aspect-ratio:864/496}
.film-meta{color:#bacee0}.film-controls button{color:#f3f8ff}
.film-stage.film-exiting{animation:filmToStory .7s cubic-bezier(.25,.8,.3,1) forwards}

/* Film becomes the environment itself: fullscreen image instead of a player. */
.film-stage{position:fixed;inset:0;padding:0;background:#020a12;overflow:hidden;display:block;width:100vw;height:100svh;min-height:100svh}
.film-stage:before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:1;background:linear-gradient(180deg,#020d19b3 0%,transparent 25%,transparent 63%,#020d19d9 100%)}
.film-stage.is-log:before{background:linear-gradient(180deg,#02070ebc 0%,transparent 25%,transparent 60%,#040b13d9 100%)}
.film-stage .film-backlight{display:none}
.film-stage .film-frame,.film-stage.is-log .film-frame{position:absolute;inset:0;display:block;width:100%;height:100%;max-height:none;max-width:none;aspect-ratio:auto;overflow:hidden;border:0;border-radius:0;box-shadow:none;background:#020b13;transform:none}
.film-stage .film-frame video{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;object-fit:cover;object-position:center center;background:#020b13;filter:none}
.film-stage.is-log .film-frame video{object-position:48% center}
.film-stage .film-meter{position:absolute;bottom:0;left:0;right:0;height:2px;background:#ffffff1b;z-index:5}
.film-stage .film-meter i{height:2px;box-shadow:0 0 20px var(--accent)}
.film-meta{position:absolute;z-index:4;bottom:clamp(32px,7vh,82px);left:clamp(22px,5.5vw,100px);right:clamp(22px,5.5vw,100px);width:auto;max-width:none;margin:0;align-items:end;gap:25px;color:#fff}
.film-meta .eyebrow{max-width:550px;font-size:clamp(10px,.84vw,13px);letter-spacing:.17em;line-height:1.8;color:#eef6fd;text-shadow:0 3px 20px #0009}
.film-controls{display:flex;gap:12px;align-items:center}
.film-controls button{font-size:12px;letter-spacing:.04em;font-weight:600;min-height:46px;color:#fff;border:1px solid #ffffff61;border-radius:99px;padding:10px 21px;background:#07152161;backdrop-filter:blur(10px);transition:background .25s,transform .25s}
.film-controls button:hover{background:#ffffff2a;transform:translateY(-2px)}
body[data-view=film] .masthead{background:transparent;border-color:transparent;box-shadow:none;backdrop-filter:none;color:#fff}
body[data-view=film] .product-switch{background:#08182680;backdrop-filter:blur(12px);border-color:#ffffff47}
.film-stage .film-error{z-index:6;background:#061522e8;backdrop-filter:blur(22px)}

/* Extra product details are part of the scroll narrative, never a wall of cards. */
.knowledge{position:relative;z-index:3;margin-top:clamp(110px,14vh,200px);padding-top:80px;border-top:1px solid #ffffff2a}
.knowledge-heading{display:grid;grid-template-columns:1.1fr .85fr;column-gap:7vw;align-items:end}
.knowledge-heading .eyebrow{grid-column:1/-1;color:var(--accent);margin-bottom:24px}
.knowledge h3{font-size:clamp(43px,5.1vw,82px);line-height:1.08;letter-spacing:-.06em;font-weight:600}
.knowledge h3 span{color:var(--accent);font-weight:500}
.knowledge-heading p{font-size:16px;max-width:440px;color:#bfcbd8}
.knowledge-rows{margin-top:67px;border-top:1px solid #ffffff3a}
.knowledge-row{display:grid;grid-template-columns:65px minmax(240px,.85fr) 1.1fr;gap:clamp(20px,4vw,75px);padding:34px 8px;border-bottom:1px solid #ffffff30;align-items:start}
.knowledge-index{font-size:11px;color:var(--accent);font-weight:700;letter-spacing:.12em;padding-top:7px}
.knowledge-row h4,.knowledge-answers h4{font-size:clamp(18px,1.8vw,27px);font-weight:600;letter-spacing:-.035em;color:#f5f8fb;margin:0;line-height:1.3}
.knowledge-row p{font-size:15px;max-width:690px;line-height:1.75;color:#beccda}
.knowledge-faq{margin-top:125px;padding-bottom:65px}
.knowledge-faq>.eyebrow{color:var(--accent);margin-bottom:21px}
.knowledge-faq h3{font-size:clamp(41px,5vw,75px)}
.knowledge-answers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 80px;margin-top:55px}
.knowledge-answers>div{border-top:1px solid #ffffff32;padding-top:23px}
.knowledge-answers h4{font-size:19px}
.knowledge-answers p{font-size:14px;line-height:1.7;margin-top:13px;color:#aebfce}

/* Shared navigation and reveal details. */
.chapter-dock{background:#081a2dea;border:1px solid #caeaff35;box-shadow:0 14px 40px #0009;backdrop-filter:blur(18px);border-radius:999px;color:#fff;overflow:hidden}
.chapter-dock #dock-menu{color:#e4f2ff}.chapter-dock button{color:#e7f4ff}
.dock-meter i{background:var(--accent)}
dialog{background:#071b2beF;color:#f5f9fc;border:1px solid #d2ebff35;border-radius:23px;backdrop-filter:blur(20px)}
dialog::backdrop{background:#010710b8;backdrop-filter:blur(12px)}
#chapter-links button{color:#e7f2fa;border-color:#ffffff28}
#chapter-links button[aria-current=location]{color:var(--accent)}
html.motion .reveal:not(.visible){opacity:0;transform:translateY(32px);filter:blur(5px)}
html.motion .reveal.visible{opacity:1;transform:translateY(0);filter:blur(0);transition:opacity 1s cubic-bezier(.2,1,.2,1),transform 1s cubic-bezier(.2,1,.2,1),filter 1s}
.switching #main{animation:brandEnter .8s ease both}

@keyframes cinematicSweep{0%,100%{transform:translateX(-20%)}50%{transform:translateX(20%)}}
@keyframes playHalo{0%,100%{box-shadow:0 0 0 14px #ffffff12,0 0 65px #75c4ff3b}50%{box-shadow:0 0 0 25px #ffffff07,0 0 100px #75c4ff60}}
@keyframes filmToStory{to{opacity:0;filter:blur(18px);transform:scale(1.04)}}
@keyframes brandEnter{from{opacity:.55;filter:blur(14px);transform:translateY(14px)}to{opacity:1;filter:none;transform:none}}

@media(max-width:1100px){
  .gate-grid{grid-template-columns:1fr .8fr;gap:35px}.gate h1{font-size:clamp(65px,8vw,108px)}
  .thread{width:min(760px,85%)}.principles-grid{gap:42px}
  .office-hero .hero-copy{max-width:660px}
}
@media(max-width:760px){
  .wrap,.contact .wrap{width:calc(100% - 42px)}
  .masthead{height:70px;padding-inline:20px;gap:12px}.brand{font-size:16px}.brand img{width:33px;height:33px}
  .product-switch{position:static;transform:none;gap:0;padding:3px}.product-switch button{font-size:10px;padding:8px 9px;min-height:34px}
  .header-actions{gap:8px}.sound{font-size:0;min-width:30px}.sound #sound-label{display:none}
  .gate{padding-top:120px;padding-bottom:35px}.gate-grid{grid-template-columns:1fr;gap:35px}
  .gate h1{font-size:clamp(58px,13vw,92px);line-height:1.04}.gate .eyebrow{font-size:10px;margin-bottom:16px}
  .gate p{font-size:15px;margin-top:18px}.gate .actions{gap:16px;margin-top:24px}.gate .button{padding:16px 19px;font-size:12px}
  .gate-art{max-width:500px;width:100%;aspect-ratio:1.7;transform:none;border-radius:20px;margin-inline:auto}
  .gate-art:hover{transform:none}.gate-art:after{width:70px;height:70px;font-size:13px}
  .gate-footer{font-size:8px;margin-top:35px}.gate-hint{font-size:9px}
  .story-hero,.log-hero{min-height:90svh;padding-top:142px;padding-bottom:80px}
  .office-hero h1,.log-hero h1{font-size:clamp(43px,10vw,68px)}
  .hero-portrait{inset:-150px -21px -80px 8%;z-index:-1}.hero-portrait:before{background:linear-gradient(90deg,#081727ee,#0817279b 68%,#08172750),linear-gradient(0deg,#081727,transparent 55%)}
  .hero-portrait img{object-position:74% center;filter:brightness(.7)}
  .office-hero p,.log-hero p{font-size:15px;max-width:400px}.hero-note{margin-top:45px}
  .workflow,.principles{min-height:auto;padding:90px 0 85px}
  .section-heading{display:block}.section-heading h2,.principles h2{font-size:clamp(40px,8.8vw,58px)}.section-heading p{margin-top:23px}
  .workflow .chapter-photography:after,.principles .chapter-photography:after{background:linear-gradient(90deg,#071827e8,#071827ad),linear-gradient(0deg,#071827,transparent 80%)}
  .thread{width:100%;grid-template-columns:1fr;gap:15px;margin-top:40px;padding:24px;border-radius:18px}
  .thread-nav{display:grid;grid-template-columns:repeat(2,1fr);border-right:0;border-bottom:1px solid #ffffff24;padding-bottom:12px;gap:0 10px}
  .thread-nav button{padding:12px 0;font-size:12px}.thread-nav button[aria-selected=true]:after{height:2px;width:70%;left:0;top:auto;bottom:0}
  .thread-scene{padding:13px 0;min-height:250px}.thread-scene h3{font-size:29px}.thread-scene p{font-size:14px}
  .immersive{min-height:82svh;padding:100px 0 70px}.immersive h2{font-size:clamp(40px,9.6vw,68px)}.immersive p{font-size:15px}
  .immersive>img{object-position:70% center;filter:brightness(.6)}.image-credit{top:90px;right:22px;font-size:8px}
  .principles-grid{grid-template-columns:1fr;gap:38px}.principle-list{padding:8px 22px;border-radius:16px}
  .principle-list summary{font-size:18px}.principle-list details{padding:20px 0}
  .overview{min-height:auto;padding:90px 0}.overview-grid{grid-template-columns:1fr;gap:50px}
  .overview-photo{transform:none}.overview-photo img{height:390px}.overview-copy h2{font-size:clamp(41px,9vw,63px)}
  .contact{min-height:92svh;padding:120px 0 30px}.contact h2{font-size:clamp(49px,11vw,78px)}.contact p{font-size:15px}
  .family-line{margin-top:65px}.contact .chapter-photography img{object-position:66% center}
  .film-stage{padding:0}.film-stage.is-log .film-frame{width:100%;height:100%;max-height:none}
  .film-stage .film-frame video{object-position:center center}.film-stage.is-log .film-frame video{object-position:41% center}
  .film-meta{left:21px;right:21px;bottom:34px;display:flex;align-items:flex-start;flex-direction:column;gap:17px}
  .film-meta .eyebrow{font-size:10px;max-width:270px}.film-controls button{font-size:11px;min-height:42px;padding:8px 14px}
  .knowledge{margin-top:100px;padding-top:48px}.knowledge-heading{display:block}.knowledge-heading p{margin-top:23px}
  .knowledge-row{grid-template-columns:35px 1fr;gap:9px 17px;padding:25px 0}.knowledge-row p{grid-column:2;font-size:14px}
  .knowledge-answers{grid-template-columns:1fr;gap:30px;margin-top:30px}.knowledge-faq{margin-top:75px;padding-bottom:15px}
  .chapter-dock{bottom:16px}
}
@media(max-width:420px){
  .brand>span{max-width:65px;line-height:1.08;font-size:15px}.brand img{width:32px;height:32px}
  .product-switch button{font-size:9px;padding:7px 7px}.masthead{padding-inline:14px}
  .gate h1{font-size:clamp(51px,14vw,66px)}.gate .actions{align-items:flex-start;flex-direction:column}
  .gate-art{aspect-ratio:1.5}.hero-baseline{gap:12px}
  .hero-note{font-size:9px}.hero-portrait img{object-position:85% center}
  .chapter-tag{font-size:9px;gap:10px}.chapter-tag:before{width:16px}
  .workflow .thread{padding:19px}.chapter-dock #dock-menu{min-width:180px}
  .overview-photo img{height:300px}
}
@media(prefers-reduced-motion:reduce){
  .gate:after,.gate-art:after{animation:none!important}
  .gate-art,.gate-art:hover,.overview-photo{transform:none!important}
  .chapter-photography img{transform:none!important}
  .film-stage.film-exiting{animation:none!important}
}

/* Final product gateway: one centered invitation per independent product website. */
.gate {
  min-height:100svh;
  padding:118px 0 28px;
  display:flex;
  align-items:stretch;
  justify-content:space-between;
  text-align:center;
  background:#0a1729;
}
.gate:before {
  background:radial-gradient(ellipse at 50% 53%,#285b9666 0%,#172c48a6 34%,transparent 71%),linear-gradient(145deg,#081424,#101f34 60%,#091525)!important;
}
body[data-product="log"] .gate:before {
  background:radial-gradient(ellipse at 50% 53%,#67391f65 0%,#182634ba 39%,transparent 74%),linear-gradient(145deg,#08121c,#121e2b 60%,#07121b)!important;
}
.gate-orbits {
  position:absolute;pointer-events:none;left:50%;top:51%;width:120vmax;height:120vmax;
  border:1px solid #83b7ec0e;border-radius:50%;transform:translate(-50%,-50%);z-index:-1;
}
.gate-orbits:before,.gate-orbits:after {
  content:"";position:absolute;border:1px solid #8dbce727;border-radius:50%;
}
.gate-orbits:before {inset:14%}
.gate-orbits:after {inset:35%;border-color:#b5dfff0e}
body[data-product="log"] .gate-orbits:before{border-color:#e6a47720}
.gate-grid {
  display:flex;justify-content:center;align-items:center;flex:1;
  width:min(1420px,calc(100% - 80px));gap:0;position:relative;
}
.gate-in {width:100%;display:flex;align-items:center;flex-direction:column}
.gate .gate-kicker {
  color:#a8c4dd;display:flex;align-items:center;justify-content:center;gap:18px;
  margin:0 0 32px;font-size:12px;letter-spacing:.20em;
}
.gate-pulse {width:8px;height:8px;border-radius:50%;background:var(--accent);box-shadow:0 0 0 7px color-mix(in srgb,var(--accent) 14%,transparent),0 0 30px var(--accent)}
.gate-center-logo {
  display:block;width:114px;height:114px;object-fit:contain;margin:0 auto 40px;
  filter:drop-shadow(0 12px 40px color-mix(in srgb,var(--accent) 32%,transparent));
}
.gate h1 {
  font-size:clamp(66px,7.5vw,142px);font-weight:600;letter-spacing:-.080em;
  max-width:none;white-space:normal;text-wrap:balance;line-height:1.12;
}
.gate h1 .serif {display:inline;margin-left:.14em;letter-spacing:-.078em;font-weight:600}
.gate p {
  font-size:clamp(16px,1.3vw,22px);line-height:1.7;max-width:680px;
  color:#bfcfdf;margin:28px auto 0;
}
.gate .actions {justify-content:center;align-items:center;margin:48px 0 0;width:100%}
.gate .button {
  min-width:332px;min-height:76px;border-radius:9px;font-size:16px;
  padding:22px 28px;box-shadow:0 20px 55px color-mix(in srgb,var(--accent) 20%,transparent);
  gap:24px;
}
.gate .button:hover {box-shadow:0 26px 65px color-mix(in srgb,var(--accent) 30%,transparent)}
.gate .gate-direct {margin:23px auto 0;color:#a9c6e1;min-height:44px;font-size:14px}
.gate-hint {margin:12px auto 0;color:#90a8bd;font-size:11px;letter-spacing:.055em}
.gate-footer {
  width:min(1420px,calc(100% - 80px));position:relative;z-index:2;
  border-top:0;margin:25px auto 0;padding:12px 0 0;
  color:#91abc4;font-size:10px;letter-spacing:.16em;
}
.gate-footer a {transition:color .3s;color:#91abc4}
.gate-footer a:hover {color:#fff}

/* Hide the baked-in incorrect closing logo, keeping the original film and sound intact. */
.film-end-brand {
  position:absolute;inset:0;z-index:3;display:flex;align-items:center;
  justify-content:center;flex-direction:column;gap:25px;
  background:radial-gradient(circle at 64% 54%,#73412844,transparent 51%),linear-gradient(135deg,#07121b,#132331);
  opacity:0;pointer-events:none;transition:opacity .16s linear;
}
.film-end-brand.is-visible {opacity:1}
.film-end-brand img {width:132px;height:132px;object-fit:contain;filter:drop-shadow(0 12px 36px #f0783250)}
.film-end-brand span {font-weight:650;font-size:clamp(38px,5.4vw,88px);letter-spacing:-.07em;color:#f5f8fb}
.film-end-glow {position:absolute;z-index:-1;width:42vw;height:42vw;border-radius:50%;border:1px solid #ee793823;box-shadow:0 0 140px #ef7a3d11}
.film-end-brand ~ .film-meta {z-index:4}
body[data-view="film"] .masthead {opacity:0;pointer-events:none;transition:opacity .25s ease}

@media(max-width:760px){
  .gate {padding:125px 0 24px}
  .gate-grid {width:calc(100% - 36px)}
  .gate .gate-kicker {font-size:9px;letter-spacing:.13em;gap:10px;margin-bottom:27px}
  .gate-center-logo {width:83px;height:83px;margin-bottom:33px}
  .gate h1 {font-size:clamp(48px,11.1vw,83px);line-height:1.1}
  .gate h1 .serif {display:block;margin:.04em 0 0}
  .gate p {font-size:14px;max-width:420px;margin-top:23px}
  .gate .actions {align-items:center;justify-content:center;flex-direction:row;margin-top:35px}
  .gate .button {min-width:min(315px,100%);min-height:64px;font-size:14px;padding:18px 23px}
  .gate .gate-direct {font-size:12px;margin-top:16px}
  .gate-hint {font-size:10px;max-width:300px}
  .gate-footer {width:calc(100% - 38px);font-size:8px;margin-top:28px}
  .gate-orbits {width:170vmax;height:170vmax}
  .film-end-brand img {width:94px;height:94px}
}
@media(max-width:420px){
  .gate h1 {font-size:clamp(45px,11.8vw,57px)}
  .gate .actions {align-items:center;flex-direction:row}
  .gate .button {min-width:0;width:100%}
  .gate-footer {flex-direction:column;align-items:center;gap:10px}
  .gate-footer span:last-child {text-align:center}
}
