/* AVENDOX site: the compact top bar, the liquid glass (both themes) and the light theme (html[data-theme="light"]).
   The dark theme is the site's own; light is chosen with the sun/moon button in the bar and remembered (nav.js).
   html.lite (slower computers, see styles.css) swaps every blur for a denser tint. Loaded on every page after
   styles.css. Sections: tokens, top bar, bottom buttons, film glass, opening screen, light theme for the content
   pages, phones. */

/* ================ Tokens ================ */
:root{--edge:24px; --wrap:calc(1240px + 2 * var(--gutter));
  --g-rim:rgba(255,255,255,.14); --g-hi:rgba(255,255,255,.28); --g-sheen:rgba(255,255,255,.12); --g-shadow:0 1px 1px rgba(0,0,0,.3), 0 24px 50px -22px rgba(0,0,0,.85);
  --bar-glass:rgba(10,26,47,.28); --bar-edge:rgba(235,212,160,.22); --bar-hi:rgba(255,255,255,.09); --bar-hover:rgba(255,255,255,.09); --tip-bg:#0A1A2F; --tip-ink:#F7F4ED}
@media (max-width: 600px){ :root{--edge:16px} }
/* Over the light information part (on-ivory) the glass turns white. */
.on-ivory{--bar-glass:rgba(255,255,255,.4); --bar-edge:rgba(10,26,47,.14); --bar-hi:rgba(255,255,255,.9); --bar-hover:rgba(10,26,47,.07);
  --g-rim:rgba(255,255,255,.6); --g-hi:rgba(255,255,255,.95); --g-sheen:rgba(255,255,255,.5); --g-shadow:0 1px 1px rgba(16,44,86,.08), 0 22px 46px -22px rgba(16,44,86,.45)}
html[data-theme="light"]{color-scheme:light; --ivory:#FBF9F5; --sky:#F5F2EC; --ink:#0A1A2F; --muted:#3A4A60; --accent:#6B4D16; --line:rgba(10,26,47,.16); --focus:#0A1A2F; --glass:rgba(255,255,255,.62);
  --bar-glass:rgba(255,255,255,.36); --bar-edge:rgba(255,255,255,.7); --bar-hi:rgba(255,255,255,.95); --bar-hover:rgba(10,26,47,.07); --tip-bg:#0A1A2F; --tip-ink:#FBF9F5;
  --g-rim:rgba(255,255,255,.6); --g-hi:rgba(255,255,255,.95); --g-sheen:rgba(255,255,255,.55); --g-shadow:0 1px 1px rgba(16,44,86,.08), 0 22px 46px -22px rgba(16,44,86,.45)}
html.lite[data-theme="light"]{--glass:rgba(255,255,255,.86)}
html[data-theme="light"] body{background:var(--sky); color:var(--ink)}
html[data-theme="light"] .cursor{border-color:rgba(10,26,47,.45)}

/* ================ Top bar: logo top left, one glass capsule with every control top right ================ */
.bar{padding:calc(env(safe-area-inset-top,0px) + 14px) calc(env(safe-area-inset-right,0px) + var(--edge)) 10px calc(env(safe-area-inset-left,0px) + var(--edge)); gap:12px}
.bar .brand{flex:none}
.tagline{display:none}
html[data-theme="light"] .bar{--ink:#0A1A2F; --muted:#3A4A60; --line:rgba(10,26,47,.2); --accent:#0A1A2F; --ivory:#FBF9F5}
html[data-theme="light"] .bar::before{background:linear-gradient(to bottom, rgba(245,242,236,.92) 55%, rgba(245,242,236,0))}
/* Home film: no band behind the bar in light (the glass capsule carries itself). */
html[data-theme="light"]:not(.svc-page):not(.simple-view):not(.on-ivory) .bar::before{background:none}

/* The logo: metal on dark, navy on light; over the dark film the light theme shows the metal logo too. */
.brand .lk{height:56px}
@media (min-width: 441px) and (max-width: 900px){ .brand .lk{height:44px} }
@media (max-width: 440px){ .brand .lk{height:36px} }
@media (max-width: 360px){ .brand .lk{height:32px} }
html[data-theme="light"] .brand .ink{opacity:1}
html[data-theme="light"] .brand .metal{opacity:0}
html[data-theme="light"].over-film .brand .ink{opacity:0}
html[data-theme="light"].over-film .brand .metal{opacity:1}

/* The capsule */
.bar-actions{margin-left:auto; gap:2px; padding:4px; border-radius:999px; border:1px solid var(--bar-edge); background:linear-gradient(170deg, var(--g-sheen), transparent 55%), var(--bar-glass); -webkit-backdrop-filter:blur(20px) saturate(1.9) brightness(1.05); backdrop-filter:blur(20px) saturate(1.9) brightness(1.05);
  box-shadow:inset 0 1px 0 var(--g-hi), inset 1px 0 0 var(--g-rim), inset 0 -1px 0 var(--g-rim), inset 0 8px 16px -12px var(--g-hi), var(--g-shadow); transition:background var(--dur) ease, border-color var(--dur) ease}
.bar-actions .pill, .bar-actions .view-sw{border-color:transparent; background:none; -webkit-backdrop-filter:none; backdrop-filter:none}
.bar-actions .pill:hover, .bar-actions .view-sw:hover{background:var(--bar-hover); border-color:transparent}
.bar-actions .btn{min-height:36px; padding:0 16px}
html[data-theme="light"] .bar .btn{background:#0A1A2F; border-color:#0A1A2F; color:#FBF9F5}
html[data-theme="light"] .bar .btn:hover{background:#1B3558}

/* The simple-view switch and the NL/EN bundle: each a full pill inside the capsule. */
html[data-theme="light"] .bar-actions .view-sw, html.lite[data-theme="light"] .bar-actions .view-sw{background:none; color:#0A1A2F}
html.lite .bar-actions .view-sw{background:none}
.bar-actions .view-sw{border:1px solid var(--bar-edge); background:rgba(255,255,255,.04); min-height:34px; padding:0 14px 0 5px; margin-right:2px}
html[data-theme="light"] .bar-actions .view-sw, .on-ivory .bar-actions .view-sw{border-color:rgba(10,26,47,.18); background:rgba(255,255,255,.45)}
.bar-actions .view-sw:hover{border-color:var(--accent)}
html[data-theme="light"] .view-sw .switch-track{border-color:rgba(10,26,47,.45); background:rgba(10,26,47,.12)}
html[data-theme="light"] .view-sw .switch-thumb{background:#0A1A2F}
html[data-theme="light"] .view-sw[aria-checked="true"] .switch-thumb{background:#FBF9F5}
/* Light theme, switched on: a dark track, so "on" reads as on (the light grey track looked off). */
html[data-theme="light"] .view-sw[aria-checked="true"] .switch-track{background:#0A1A2F; border-color:#0A1A2F}
.bar-actions .seg{border:1px solid var(--bar-edge); background:rgba(255,255,255,.04); border-radius:999px; padding:2px; margin:0 2px}
html[data-theme="light"] .bar-actions .seg, .on-ivory .bar-actions .seg{border-color:rgba(10,26,47,.18); background:rgba(255,255,255,.45)}
html[data-theme="light"] .seg button[aria-pressed="true"], html[data-theme="light"].faq-page .seg a[aria-current="page"]{background:#0A1A2F; color:#FBF9F5}

/* Sound, motion and theme are icons; their name appears as a small label under the button on hover or focus. */
.bar .pill#sound, .bar .pill#motion, .bar .pill.theme-sw{position:relative; padding:0 9px; min-width:34px; justify-content:center}
.bar .pill#sound .txt, .bar .pill#motion .txt, .bar .pill.theme-sw .txt{position:absolute; top:calc(100% + 10px); left:50%; transform:translate(-50%,-4px); padding:6px 10px; border-radius:999px; background:var(--tip-bg); color:var(--tip-ink); font:500 10px/1 var(--f-sans); letter-spacing:.12em; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity var(--dur-fast) ease, transform var(--dur-fast) ease; box-shadow:0 10px 24px -12px rgba(0,0,0,.6)}
.bar .pill:hover .txt, .bar .pill:focus-visible .txt{opacity:1; transform:translate(-50%,0)}
/* The #id selectors above outweigh a plain :hover, so the hover state is repeated with the same weight. */
.bar .pill#sound:is(:hover, :focus-visible) .txt, .bar .pill#motion:is(:hover, :focus-visible) .txt, .bar .pill.theme-sw:is(:hover, :focus-visible) .txt{opacity:1; transform:translate(-50%,0)}
.bar .pill.icon-only-sm .txt{display:block}
.theme-sw .ico{width:17px; height:17px}
.theme-sw .t-moon, html[data-theme="light"] .theme-sw .t-sun{display:none}
html[data-theme="light"] .theme-sw .t-moon{display:block}
/* A short explanation under the other controls (data-tip) */
.bar [data-tip]{position:relative}
.bar [data-tip]::after{content:attr(data-tip); position:absolute; top:calc(100% + 10px); left:50%; z-index:5; transform:translate(-50%,-4px); padding:6px 10px; border-radius:999px; background:var(--tip-bg); color:var(--tip-ink); font:500 10px/1 var(--f-sans); letter-spacing:.12em; text-transform:uppercase; white-space:nowrap; opacity:0; pointer-events:none; transition:opacity var(--dur-fast) ease, transform var(--dur-fast) ease; box-shadow:0 10px 24px -12px rgba(0,0,0,.6)}
.bar [data-tip]:hover::after, .bar [data-tip]:focus-visible::after{opacity:1; transform:translate(-50%,0)}
.bar .btn[data-tip]::after{left:auto; right:0; transform:translate(0,-4px)}
.bar .btn[data-tip]:hover::after, .bar .btn[data-tip]:focus-visible::after{transform:translate(0,0)}
@media (max-width: 900px){ .bar .pill#sound .txt, .bar .pill#motion .txt, .bar .pill.theme-sw .txt, .bar [data-tip]::after{display:none} }

/* The services menu */
html[data-theme="light"] .menu-list{background:rgba(252,251,248,.97); border-color:rgba(10,26,47,.16)}
html[data-theme="light"] .menu-list a{color:#0A1A2F}
html[data-theme="light"] .menu-h{color:#3A4A60}
html[data-theme="light"] .menu-list a:hover, html[data-theme="light"] .menu-list a:focus-visible{background:rgba(10,26,47,.07)}

/* ================ Bottom buttons: "Direct naar informatie" and Avi, the same glass as the bar, in the bottom corners ================ */
.skip-film, .avi-launch{min-height:44px; border:1px solid var(--bar-edge); background:linear-gradient(170deg, var(--g-sheen), transparent 55%), var(--bar-glass); color:var(--ink);
  -webkit-backdrop-filter:blur(20px) saturate(1.9) brightness(1.05); backdrop-filter:blur(20px) saturate(1.9) brightness(1.05);
  box-shadow:inset 0 1px 0 var(--g-hi), inset 1px 0 0 var(--g-rim), inset 0 -1px 0 var(--g-rim), inset 0 8px 16px -12px var(--g-hi), var(--g-shadow)}
.skip-film{left:calc(env(safe-area-inset-left,0px) + var(--edge)); bottom:calc(env(safe-area-inset-bottom,0px) + var(--edge)); padding:0 18px; font-size:11px}
.skip-film:hover, .avi-launch:hover{border-color:var(--accent)}
.avi{right:calc(env(safe-area-inset-right,0px) + var(--edge)) !important; bottom:calc(env(safe-area-inset-bottom,0px) + var(--edge)) !important}
.avi-launch{padding:3px 18px 3px 3px; font-size:11px}
html[data-theme="light"] .skip-film, html[data-theme="light"] .avi-launch{color:#0A1A2F}
html[data-theme="light"] .skip-film .ico{color:#7A5A24}
html[data-theme="light"] .skip-film:hover{background:rgba(255,255,255,.85); border-color:#0A1A2F}
html[data-theme="light"] .avi-head{background:#0A1A2F}
html.lite .skip-film, html.lite .avi-launch{background:rgba(5,13,25,.86)}
html.lite[data-theme="light"] .skip-film, html.lite[data-theme="light"] .avi-launch{background:rgba(255,255,255,.92)}

/* ================ Film texts: real liquid glass, lit by the film and by the pointer ================
   Less blur than frosted glass, so the scene stays recognisable through it; a thick-glass edge (bright rim on top
   and left, thinner below, a soft inner glow). The film's brightest light lands on the edge that faces it
   (--lx/--ly/--lc/--la, app.js reads them from media/light.json) and a specular highlight follows the pointer
   (--px/--py/--pa). The glass evens out what is behind it (contrast/brightness in the backdrop filter): dark glass
   dims the film's bright spots, light glass its dark parts, so a thin tint keeps the text readable. In the light
   theme the text over the dark film stays light, as Apple's liquid glass adapts its text to what is behind it. */
@property --lx{syntax:'<percentage>'; inherits:true; initial-value:30%}
@property --ly{syntax:'<percentage>'; inherits:true; initial-value:-10%}
@property --la{syntax:'<number>'; inherits:true; initial-value:0}
@property --lc{syntax:'<color>'; inherits:true; initial-value:rgb(255,236,200)}
@property --pa{syntax:'<number>'; inherits:true; initial-value:0}
.ch .glass{position:relative; isolation:isolate; overflow:hidden; border:1px solid rgba(255,255,255,.22); border-radius:28px;
  background:linear-gradient(155deg, rgba(255,255,255,.12) 0%, rgba(255,255,255,.035) 38%, rgba(255,255,255,0) 60%, rgba(255,255,255,.05) 100%), rgba(10,30,64,.5);
  -webkit-backdrop-filter:blur(18px) saturate(1.8) contrast(.78) brightness(.74); backdrop-filter:blur(18px) saturate(1.8) contrast(.78) brightness(.74);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.55), inset 1px 0 0 rgba(255,255,255,.22), inset 0 -1px 0 rgba(255,255,255,.12), inset -1px 0 0 rgba(255,255,255,.08),
    inset 0 22px 34px -30px rgba(255,255,255,.5), inset 0 -26px 40px -34px rgba(120,170,255,.35), 0 2px 2px rgba(0,0,0,.25), 0 40px 90px -40px rgba(0,0,0,.9);
  transition:--lx 450ms ease-out, --ly 450ms ease-out, --la 450ms ease-out, --lc 450ms ease-out, --pa 300ms ease-out}
.ch .glass > *{position:relative; z-index:1}
/* The film's light on the facing edge: a bright rim plus a glow that stays near that edge. */
.ch .glass::before{content:""; position:absolute; inset:0; z-index:0; border-radius:inherit; pointer-events:none; padding:1.5px;
  background:radial-gradient(70% 70% at var(--lx) var(--ly), color-mix(in srgb, var(--lc) calc(var(--la) * 100%), transparent), transparent 70%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor; mask:linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0)}
/* The pointer's specular highlight and the film light's soft bloom, both only near the edges (never under the text). */
.ch .glass::after{content:""; position:absolute; inset:0; z-index:0; border-radius:inherit; pointer-events:none; mix-blend-mode:screen;
  background:radial-gradient(260px 200px at var(--px,50%) var(--py,0%), rgba(255,255,255,calc(var(--pa) * .32)), transparent 70%),
    radial-gradient(70% 60% at var(--lx) var(--ly), color-mix(in srgb, var(--lc) calc(var(--la) * 30%), transparent), transparent 75%);
  -webkit-mask:radial-gradient(closest-side, transparent 55%, #000 100%); mask:radial-gradient(closest-side, transparent 55%, #000 100%)}
.ch .glass .eyebrow{color:#EBD4A0}
/* Light: the same glass, white instead of navy, with light text. */
html[data-theme="light"] .ch .glass{--ink:#FBF9F5; --muted:rgba(251,249,245,.9); --accent:#EBD4A0; color:#FBF9F5; border-color:rgba(255,255,255,.55);
  background:linear-gradient(155deg, rgba(255,255,255,.3) 0%, rgba(255,255,255,.14) 38%, rgba(255,255,255,.1) 60%, rgba(255,255,255,.2) 100%), rgba(60,70,90,.12);
  -webkit-backdrop-filter:blur(18px) saturate(1.5) contrast(.64) brightness(.56); backdrop-filter:blur(18px) saturate(1.5) contrast(.64) brightness(.56);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9), inset 1px 0 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.3), inset -1px 0 0 rgba(255,255,255,.2),
    inset 0 22px 34px -28px rgba(255,255,255,.6), inset 0 -26px 40px -34px rgba(255,255,255,.35), 0 2px 2px rgba(0,0,0,.2), 0 40px 90px -40px rgba(5,13,25,.8)}
html[data-theme="light"] .ch .glass em, html[data-theme="light"] .ch .glass em *{color:#EBD4A0}
html[data-theme="light"] .ch .glass .eyebrow{color:#FFFFFF}
html[data-theme="light"] .ch .glass .body, html[data-theme="light"] .ch .glass p:not(.eyebrow), html[data-theme="light"] .ch .glass h2{color:#FBF9F5}
/* Without background blur (html.lite) both glasses get a denser smoky tint, so the light text keeps its contrast. */
html.lite:not([data-theme="light"]) .ch .glass{background:linear-gradient(155deg, rgba(255,255,255,.1), rgba(255,255,255,0) 50%), rgba(8,22,42,.84)}
html.lite[data-theme="light"] .ch .glass{background:linear-gradient(160deg, rgba(255,255,255,.2), rgba(255,255,255,.06)), rgba(18,32,54,.8)}
html.lite .ch .glass::after, html.reduced .ch .glass::after{display:none}
@media (prefers-reduced-motion: reduce){ .ch .glass{transition:none} }

/* ================ Opening screen (home): sky, golden orb glow, robots, hint bubble, scroll cue ================ */
html[data-theme="light"] .stage{background:radial-gradient(120% 80% at 50% 30%, #FFFDF9 0%, #F5F2EC 55%, #E9E5DD 100%)}
html[data-theme="light"] .sk-screen{background:var(--sky)}
/* The golden glow where the particle logo flows into the film's orb (app.js sets --g*). */
.orb-glow{position:absolute; left:var(--gx,50%); top:var(--gy,50%); width:calc(var(--gr,120px) * 2); height:calc(var(--gr,120px) * 2); transform:translate(-50%,-50%); border-radius:50%; pointer-events:none; opacity:var(--ga,0);
  background:radial-gradient(closest-side, rgba(255,236,190,.75), rgba(235,212,160,.38) 32%, rgba(216,182,128,.12) 62%, rgba(216,182,128,0) 100%); mix-blend-mode:screen}
html[data-theme="light"] .orb-glow{mix-blend-mode:normal; background:radial-gradient(closest-side, rgba(216,170,90,.55), rgba(216,182,128,.3) 36%, rgba(216,182,128,.1) 64%, rgba(216,182,128,0) 100%)}
html[data-theme="light"] .bot{color:#0A1A2F}
html[data-theme="light"] .bot-label{color:#0A1A2F; background:rgba(255,255,255,.66); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px)}
html[data-theme="light"] .skip-film{background:rgba(255,255,255,.66)}
html[data-theme="light"] .avi-launch{background:rgba(255,255,255,.72); -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px)}
html[data-theme="light"] .bot-bubble{background:rgba(255,255,255,.78); color:#0A1A2F; -webkit-backdrop-filter:blur(14px); backdrop-filter:blur(14px)}
html[data-theme="light"] .bot-bubble .hint-sep{background:rgba(10,26,47,.25)}
html[data-theme="light"] .bot-bubble::after{background:linear-gradient(rgba(10,26,47,.35), rgba(10,26,47,0))}
html[data-theme="light"] .bot-bubble .hint-a, html[data-theme="light"] .bot-bubble .hint-b{color:#0A1A2F}
html[data-theme="light"] .bot-bubble .hint-ico{background:#0A1A2F; color:#FBF9F5}
html[data-theme="light"] .bot-bubble.live{border-color:#0A1A2F; box-shadow:0 0 0 3px rgba(10,26,47,.1), 0 18px 40px -22px rgba(16,44,86,.55)}
html[data-theme="light"] .cue-ring::before{border-color:rgba(10,26,47,.35)}
html[data-theme="light"] .cue-ring::after{background:#0A1A2F; box-shadow:0 0 8px 1px rgba(10,26,47,.35)}
html[data-theme="light"] .cue-body{border-color:rgba(10,26,47,.8); background:linear-gradient(180deg, rgba(255,255,255,.8), rgba(241,238,231,.6)); box-shadow:0 6px 16px -8px rgba(16,44,86,.45), inset 0 1px 0 #fff}
html[data-theme="light"] .cue-dot{background:#0A1A2F; box-shadow:none}
html[data-theme="light"] .cue-track{background:linear-gradient(to bottom, rgba(10,26,47,.45), rgba(10,26,47,0))}
html[data-theme="light"] .cue-comet{background:linear-gradient(to bottom, rgba(10,26,47,0), #0A1A2F); box-shadow:none}
html[data-theme="light"] .cue-label{color:#0A1A2F; text-shadow:none}
html[data-theme="light"] .cue-label::before, html[data-theme="light"] .cue-label::after{border-color:rgba(10,26,47,.6)}

/* ================ Light theme for the content pages: the dark top bands become light glass with navy text ================ */
html[data-theme="light"] .svc-hero, html[data-theme="light"] .j-navwrap, html[data-theme="light"] .j-hero, html[data-theme="light"] .j-art-head{background:radial-gradient(90% 120% at 15% 0%, #FFFDF9 0%, #F5F2EC 60%, #ECE8E0 100%); color:#0A1A2F; --ink:#0A1A2F; --muted:#3A4A60; --accent:#6B4D16; --line:rgba(10,26,47,.16); --focus:#0A1A2F}
/* Inside these bands the cream text colour becomes navy and the soft gold for text a deep gold. */
html[data-theme="light"] .svc-hero, html[data-theme="light"] .j-navwrap, html[data-theme="light"] .j-hero, html[data-theme="light"] .j-art-head, html[data-theme="light"].simple-view .s-hero, html[data-theme="light"].simple-view .s-nav{--ivory:#0A1A2F; --slate:#3A4A60; --champ-hi:#7A5A24}
html[data-theme="light"] .svc-hero .body, html[data-theme="light"] .svc-hero .lead, html[data-theme="light"] .svc-hero p{color:#24344B}
html[data-theme="light"].svc-page:not(.on-ivory) .bar .btn{background:#0A1A2F; border-color:#0A1A2F; color:#FBF9F5}
html[data-theme="light"].svc-page:not(.on-ivory) .seg a{color:#3A4A60}
html[data-theme="light"].svc-page:not(.on-ivory) .seg a:hover{color:#0A1A2F}
html[data-theme="light"].svc-page:not(.on-ivory) .seg a[aria-current="page"]{background:#0A1A2F; color:#FBF9F5}
/* Primary buttons on the light bands stay champagne with navy text (the bands' --accent is a text gold); ghost buttons light glass. */
html[data-theme="light"] .svc-hero .btn:not(.ghost), html[data-theme="light"].simple-view main .btn:not(.ghost), html[data-theme="light"] .j-hero .btn:not(.ghost){background:#D8B680; border-color:#D8B680; color:#0A1A2F}
html[data-theme="light"] .svc-hero .btn:not(.ghost):hover, html[data-theme="light"].simple-view main .btn:not(.ghost):hover{background:#EBD4A0}
html[data-theme="light"] .faq .svc-hero a.btn.ghost, html[data-theme="light"] .btn.ghost{background:rgba(255,255,255,.6); border-color:rgba(10,26,47,.35); color:#0A1A2F}
html[data-theme="light"] .faq .svc-hero a.btn.ghost:hover, html[data-theme="light"] .btn.ghost:hover{background:#FFFFFF; border-color:#0A1A2F; color:#0A1A2F}
html.lite[data-theme="light"] .s-ctas .btn.ghost{background:rgba(255,255,255,.75)}

/* Navigation pills and the search box */
html[data-theme="light"] .s-links a{color:#0A1A2F; background:rgba(255,255,255,.55); box-shadow:inset 0 0 0 1px rgba(10,26,47,.1); -webkit-backdrop-filter:blur(10px); backdrop-filter:blur(10px)}
html[data-theme="light"] .s-links a:hover{background:#FFFFFF; color:#0A1A2F; box-shadow:inset 0 0 0 1px rgba(10,26,47,.35)}
html[data-theme="light"] .s-links a[aria-current="page"]{background:#0A1A2F; color:#FBF9F5; box-shadow:none}
html[data-theme="light"] .s-links a:focus-visible{outline-color:#0A1A2F}
html[data-theme="light"] .s-search-box{background:rgba(255,255,255,.75)}
html[data-theme="light"] .s-search-box .ico{color:#7A5A24}
html[data-theme="light"] .s-search-box input::placeholder{color:#55647A}
html[data-theme="light"] .s-search-box:focus-within{border-color:#0A1A2F; box-shadow:0 0 0 2px rgba(10,26,47,.3)}
html[data-theme="light"].simple-view #s-q, html[data-theme="light"] .s-search-box input{background:transparent; color:#0A1A2F}
html.lite[data-theme="light"] .s-links a:not([aria-current]){background:rgba(255,255,255,.7)}
html.lite[data-theme="light"] .s-links a:not([aria-current]):not(.faq-hero .s-links a){background:rgba(255,255,255,.7)}
html.lite[data-theme="light"] .s-search-box:not(.faq-hero .s-search-box){background:rgba(255,255,255,.85)}
/* 3D glass on the small floating controls (robot labels, hint, bottom buttons, pills, search) */
html[data-theme="light"] .bot-label, html[data-theme="light"] .bot-bubble, html[data-theme="light"] .skip-film, html[data-theme="light"] .avi-launch, html[data-theme="light"] .s-links a:not([aria-current]), html[data-theme="light"] .s-search-box{
  background-image:linear-gradient(170deg, rgba(255,255,255,.6), rgba(255,255,255,.12) 60%); border-color:rgba(255,255,255,.75);
  box-shadow:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.5), 0 1px 1px rgba(16,44,86,.08), 0 12px 26px -16px rgba(16,44,86,.5)}
html[data-theme="light"] .bot-bubble{border-color:rgba(10,26,47,.28)}

/* The page toolbar (navband.css) in light: white liquid glass, navy names, deep gold icons */
html[data-theme="light"] .s-toolbar{--tb-glass:rgba(255,255,255,.4); --tb-edge:rgba(255,255,255,.8); --tb-hi:rgba(255,255,255,.95); --tb-rim:rgba(255,255,255,.6); --tb-sheen:rgba(255,255,255,.55); --tb-shadow:0 1px 1px rgba(16,44,86,.08), 0 22px 46px -22px rgba(16,44,86,.45); --tb-ink:#0A1A2F; --tb-ico:#7A5A24; --tb-hover:rgba(255,255,255,.75); --tb-glow:rgba(16,44,86,.35)}
html[data-theme="light"] .s-toolbar .s-links a:not([aria-current]), html.lite[data-theme="light"] .s-toolbar .s-links a:not([aria-current]){background:none; background-image:none; border:0; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; color:#0A1A2F}
html[data-theme="light"] .s-toolbar .s-links li:hover > a:not([aria-current]), html[data-theme="light"] .s-toolbar .s-links a:not([aria-current]):focus-visible{background:var(--tb-hover); box-shadow:inset 0 1px 0 #fff, 0 8px 20px -12px var(--tb-glow)}
html[data-theme="light"] .s-toolbar .s-links a[aria-current="page"]{background:#0A1A2F; color:#FBF9F5}
html[data-theme="light"] .s-toolbar .s-links, html[data-theme="light"] .s-toolbar .s-search-box{border-color:var(--tb-edge); background-image:linear-gradient(170deg, var(--tb-sheen), transparent 55%); background-color:var(--tb-glass)}
html.lite[data-theme="light"] .s-toolbar .s-links, html.lite[data-theme="light"] .s-toolbar .s-search-box{background:rgba(255,255,255,.88)}
.simple-view .s-nav.s-toolbar{padding-left:var(--edge); padding-right:var(--edge)}

/* Journal */
html[data-theme="light"] .j-hero::before, html[data-theme="light"] .j-hero::after, html[data-theme="light"] .j-art-head::before{opacity:.25}
html[data-theme="light"] .j-c-owner .j-c-avatar, html[data-theme="light"] .j-c-badge{background:#0A1A2F}
html[data-theme="light"] .j-hero .eyebrow, html[data-theme="light"] .j-art-head .eyebrow{color:#7A5A24}
html[data-theme="light"] .j-hero p:not(.eyebrow), html[data-theme="light"] .j-art-head p:not(.eyebrow):not(.j-by){color:#3A4A60}

/* Simple view */
html[data-theme="light"].simple-view body{background:var(--sky); color:#0A1A2F}
html[data-theme="light"].simple-view .bar::before{background:linear-gradient(to bottom, rgba(245,242,236,.94) 55%, rgba(245,242,236,0))}
html.lite[data-theme="light"].simple-view .bar::before{background:rgba(245,242,236,.94)}
html[data-theme="light"].simple-view .s-hero .lead, html[data-theme="light"].simple-view .s-how-head .lead, html[data-theme="light"].simple-view .s-step p:last-child, html[data-theme="light"].simple-view .s-about-copy p, html[data-theme="light"].simple-view .s-facts dd{color:#24344B}
html[data-theme="light"].simple-view .s-step.glass, html[data-theme="light"].simple-view .s-about-in, html[data-theme="light"].simple-view .s-facts > div{background:rgba(255,255,255,.62); border-color:rgba(10,26,47,.12); box-shadow:inset 0 1px 0 #fff, 0 20px 50px -36px rgba(16,44,86,.5)}
html[data-theme="light"].simple-view .s-facts dt{color:#7A5A24}
html[data-theme="light"] .switch, html.lite[data-theme="light"] .switch{background:rgba(255,255,255,.7); border-color:rgba(10,26,47,.25); color:#0A1A2F}
html[data-theme="light"] .switch + span, html[data-theme="light"] .plain-h + p, html[data-theme="light"].simple-view .s-hero small{color:#33435A}

/* The film card: its label sits on a deeper shade so the white text stays readable on any frame of the still;
   in light the card casts a softer, shorter shadow, so the transcript link below it stays on a light ground. */
.s-play{background:linear-gradient(to top, rgba(5,13,25,.86), rgba(5,13,25,.35) 55%, rgba(5,13,25,0))}
html[data-theme="light"] .s-play{--ivory:#F7F4ED; color:#F7F4ED}
html[data-theme="light"] .glass-edge{background:linear-gradient(160deg, rgba(255,255,255,.7), rgba(255,255,255,.3) 45%, rgba(255,255,255,.45)); border-color:rgba(255,255,255,.85); box-shadow:inset 0 1px 0 #fff, inset 0 -1px 0 rgba(255,255,255,.5), 0 1px 1px rgba(16,44,86,.08), 0 18px 34px -24px rgba(16,44,86,.45)}
html.lite[data-theme="light"] .glass-edge{background:rgba(255,255,255,.7)}
html[data-theme="light"] .s-tr{color:#24344B}
html[data-theme="light"] .s-tr summary{color:#7A5A24; background:rgba(255,255,255,.88); padding:0 12px; border-radius:999px; box-shadow:inset 0 1px 0 #fff, 0 6px 16px -10px rgba(16,44,86,.45)}

/* Breadcrumb links: a comfortable tap target (24px) without changing the line. */
.crumbs a{display:inline-block; padding-block:3px; margin-block:-3px}

/* ================ Phones: the logo keeps its size and the whole bar always fits ================ */
@media (max-width: 440px){
  /* The switch shows only its track and Contact becomes a mail icon (their names stay for screen readers). */
  .bar-actions{padding:2px}
  .bar-actions .view-sw{padding:0 5px; margin-right:0}
  .bar-actions .view-sw .sm{position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
  .bar-actions .seg{margin:0}
  .bar .pill#sound, .bar .pill#motion, .bar .pill.theme-sw{min-width:26px; padding:0 4px}
  .bar-actions .pill.menu-btn{min-width:24px; padding:0 3px}
  .bar-actions .seg button{min-width:28px; padding:0 6px}
  .bar-actions .btn{padding:0 10px; min-width:36px; justify-content:center}
  .bar-actions .btn .magnet-in > span, .bar-actions .btn > span:not(.magnet-in){position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap}
  .bar-actions .btn .ico{display:none}
  .bar-actions .btn::before{content:""; width:17px; height:17px; background:currentColor; -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center/contain no-repeat; mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E") center/contain no-repeat}
}
@media (max-width: 400px){
  .bar{gap:6px}
  .bar-actions{gap:1px}
  .bar-actions .btn{letter-spacing:.08em}
}
/* 360px and below: a clear gap of at least 12px between the logo and the bar. */
@media (max-width: 360px){ .bar{gap:12px} }
/* 300px and below (folded phones): a narrower edge, so the controls keep their 24px target size. */
@media (max-width: 300px){ .bar{padding-left:8px; padding-right:8px} }

/* ================ Phones and portrait tablets: a calm bar that always fits ================
   Language, menu, light/dark and contact stay in the capsule; sound and motion leave the bar (sound is off by default
   and the site follows the system's reduced-motion setting). The view switch becomes its own labelled glass chip under
   the bar, so it is clear what it does: "Eenvoudige weergave", on or off. */
@media (max-width: 800px), (max-aspect-ratio: 9/10){
  .bar .pill#sound, .bar .pill#motion{display:none}
  .bar .bar-actions{position:relative}
  .bar .bar-actions .view-sw{position:absolute; top:calc(100% + 8px); right:0; margin:0; min-height:32px; gap:8px; padding:0 13px 0 5px; border:1px solid var(--bar-edge); border-radius:999px;
    background:linear-gradient(170deg, var(--g-sheen), transparent 55%), var(--bar-glass); -webkit-backdrop-filter:blur(20px) saturate(1.9) brightness(1.05); backdrop-filter:blur(20px) saturate(1.9) brightness(1.05);
    box-shadow:inset 0 1px 0 var(--bar-hi), 0 12px 28px -18px rgba(0,0,0,.8); font:600 10px/1 var(--f-sans); letter-spacing:.12em}
  .bar .bar-actions .view-sw .lg{display:inline; position:static; width:auto; height:auto; overflow:visible; clip-path:none}
  .bar .bar-actions .view-sw .sm{display:none}
  .bar .bar-actions .view-sw::after{display:none}
  .bar .bar-actions .view-sw .switch-track{width:30px; height:18px}
  .bar .bar-actions .view-sw .switch-thumb{width:12px; height:12px}
  .bar .bar-actions .view-sw[aria-checked="true"] .switch-thumb{transform:translateX(12px)}
  html.lite .bar .bar-actions .view-sw{background:rgba(10,26,47,.9)}
  html.lite[data-theme="light"] .bar .bar-actions .view-sw, html.lite .on-ivory .bar .bar-actions .view-sw{background:rgba(255,255,255,.92)}
}
