/* Kanaan / BRELYON front-end prototype. Sections map 1:1 to panel blocks (data-section). */
:root {
  --bg: #030407;
  --bg-2: #0b0d12;
  --panel: #111419;
  --line: rgba(255, 255, 255, .14);
  --text: #f2f4f7;
  --muted: #9aa3ae;
  --accent: #4aa8c0;      /* hero button (from design) */
  --accent-2: #2d9bd6;    /* kicker blue (from design) */
  --red: #c8372d;
  --cyan: #19d3e3;       /* brelyon.com hover title */         /* news tag / underline (from design) */
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --hh: 50px;                               /* header height (client: slimmer bar) */
  --inset: clamp(16px, 5.4vw, 96px);        /* hero + CTA text inset (client red boxes) */
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { padding-top: var(--hh); margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
main { overflow-x: clip; } /* clip (not hidden) keeps sticky sections working */
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; line-height: 1.15; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.edge { width: 100%; padding-inline: clamp(16px, 3vw, 48px); }
.center { text-align: center; }
.h-section { font-size: clamp(19px, 1.55vw, 24px); font-weight: 400; letter-spacing: .02em; text-transform: uppercase; }
.h-section.center { text-transform: none; }
.h-section.soft { color: #cfd4da; font-weight: 300; }
.underline::after { content: ""; display: block; width: 40px; height: 3px; background: var(--red); margin: 10px auto 0; border-radius: 2px; }
.lead-muted { color: var(--muted); max-width: 820px; margin-top: 12px; font-weight: 300; font-size: 14px; }
.kicker { color: var(--accent-2); font-size: 14px; margin: 6px 0 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; font: 500 13px/1 var(--body); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; border-radius: 2px; transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease); }
.btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.btn-accent { background: var(--accent); color: #0a1418; }
.btn-accent:hover { background: #6cc3d8; transform: translateY(-1px); }
.btn-line { border: 1px solid rgba(255,255,255,.6); color: #fff; margin-top: 18px; }
.btn-line:hover, .prod-panel:hover .btn-line { background: #fff; color: #000; }
.btn-white { background: #fff; color: #111; text-transform: none; letter-spacing: 0; font-size: 15px; border-radius: 4px; }
.btn-white:hover { background: #dfe6ee; }

/* ---------- header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease), transform .45s var(--ease); background: #0e1015; box-shadow: 0 1px 0 var(--line); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-solid { background: #0e1015; box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--hh); }
.logo img { width: 124px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav > a, .sub-btn { font: 500 12.5px/1 var(--head); letter-spacing: .14em; text-transform: uppercase; color: #c9ced6; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: center; gap: 6px; }
.site-nav > a:hover, .site-nav > a[aria-current], .sub-btn:hover { color: #fff; }
.has-sub { position: relative; }
.sub { position: absolute; top: 100%; left: -16px; min-width: 190px; padding: 8px 0; background: rgba(16,18,24,.97); border: 1px solid var(--line); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s var(--ease); }
.has-sub:hover .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; }
.sub a { display: block; padding: 10px 16px; font-size: 14px; text-decoration: none; color: #d6dbe2; }
.sub a:hover { background: #ffffff10; color: #fff; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.s-hero { position: relative; height: clamp(520px, 44vw, calc(100vh - var(--hh) - 72px)); min-height: 0; display: flex; align-items: flex-end; overflow: hidden; background: #111; }
.hero-media { position: absolute; inset: 0; }
.hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,7,10,.75) 0%, rgba(5,7,10,.35) 45%, rgba(5,7,10,0) 70%); }
.hero-inner { position: relative; padding-top: 40px; padding-bottom: clamp(56px, 6.6vw, 108px); padding-left: var(--inset); }
.hero-inner > * { max-width: 460px; }
.hero-title { font: 400 clamp(30px, 2.9vw, 42px)/1.15 var(--head); color: #7fc8b9; }
.hero-title span { display: block; }
.hero-lead { font-size: clamp(15px, 1.15vw, 17px); margin: 22px 0 8px; max-width: 420px; }
.hero-text { color: #d3d8de; font-size: 13.5px; font-weight: 300; max-width: 430px; margin-bottom: 28px; }

/* ---------- stats ---------- */
.s-stats { background: linear-gradient(180deg, #2b2e33, #17191d); border-top: 1px solid #ffffff12; }
.stats-row { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 100%; }
.stats-row li { text-align: center; padding: 16px 10px; border-left: 1px solid #ffffff14; }
.stats-row li:first-child { border-left: 0; }
.stats-row b { display: block; font: 600 clamp(15px, 1.4vw, 19px)/1.2 var(--head); }
.stats-row span { font-size: 12.5px; color: #b9c0c9; }

/* ---------- vision ---------- */
.s-vision { padding: clamp(56px, 7vw, 96px) 0; background: #000; }
.vision-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 48px auto 0; max-width: 1320px; }
.vision-item:nth-child(2) { justify-self: center; }
.vision-item:nth-child(3) { justify-self: end; }
.vision-item { display: flex; gap: 18px; align-items: center; transition: transform .35s var(--ease); }
.vision-item:hover { transform: translateY(-4px); }
.vision-item img { width: 112px; height: 112px; object-fit: contain; mix-blend-mode: screen; flex: none; filter: grayscale(1) brightness(1.1); transition: filter .35s var(--ease); }
.vision-item:hover img { filter: none; }
.vision-item h3 { font-size: 32px; font-weight: 600; color: #9aa3ae; }
.vision-item h3.thin { font-weight: 300; letter-spacing: .04em; }
.vision-item .kicker { font-size: 14px; margin: 2px 0 6px; }
.vision-item p:last-child { font-size: 14px; color: #b5bcc5; max-width: 230px; line-height: 1.45; }

/* ---------- products 1/2/3: brelyon.com effect (screen switches on, title turns cyan) ---------- */
.s-products { display: flex; height: max(360px, 41.667vw); max-height: 820px; background: #000; } /* 2400 x 1000 overall */
.s-products[data-products="1"] .prod-panel:nth-child(n+2),
.s-products[data-products="2"] .prod-panel:nth-child(3) { display: none; }
/* client 25 Oct: a very small black space between the pictures (2.5px) instead of the thin line */
.s-products { gap: 2.5px; }
.prod-panel { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-decoration: none; color: #fff; }
/* client 25 Oct, like brelyon.com (measured): the lit picture fades in over about 1.2 s while both pictures zoom in 2 %
   over 2 s; leaving goes back in about 0.7 s */
.prod-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: center; transition: transform .7s cubic-bezier(.22,.61,.36,1); }
.prod-panel .pp-on { opacity: 0; transition: opacity .6s ease, transform .7s cubic-bezier(.22,.61,.36,1); }
.prod-panel:hover img, .prod-panel:focus-visible img { transform: scale(1.02); transition: transform 2s cubic-bezier(.22,.61,.36,1); }
.prod-panel:hover .pp-on, .prod-panel:focus-visible .pp-on { opacity: 1; transition: opacity 1.2s cubic-bezier(.45,0,.55,1), transform 2s cubic-bezier(.22,.61,.36,1); }
@media (prefers-reduced-motion: reduce) { .prod-panel:hover img, .prod-panel:focus-visible img { transform: none; } }
.prod-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 50%); pointer-events: none; }
.prod-copy { position: absolute; z-index: 1; left: clamp(20px, 5vw, 70px); bottom: clamp(28px, 5vw, 64px); max-width: 360px; }
.prod-copy h3 { font: 400 clamp(20px, 1.8vw, 26px)/1.2 var(--head); transition: color .5s var(--ease); }
.prod-panel:hover h3, .prod-panel:focus-visible h3 { color: var(--cyan); }
.prod-copy p:not(.kicker) { font-size: 13.5px; color: #e3e7ec; }
.prod-panel:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* client 29 Oct (no fixed number of products): 4 or more go on rows of at most 3 (4 = 2 + 2), each row as tall as the
   1-3 product design; a short last row stretches */
.s-products.is-rows { flex-wrap: wrap; height: auto; max-height: none; }
.s-products.is-rows .prod-panel { flex: 1 1 calc((100% - (var(--per) - 1) * 2.5px) / var(--per) - .1px); height: max(360px, 41.667vw); max-height: 820px; }

/* ---------- sticky hand-off between two sections ---------- */
.stack { position: relative; }
.stack-under { position: sticky; top: 0; z-index: 0; }
.stack-over { position: relative; z-index: 1; box-shadow: 0 -30px 60px rgba(0,0,0,.6); }

/* client 30 Oct (Finally.pdf): product texts fade up as on the old BRELYON page (site.js adds fx-in) */
.js [data-fx-up] { opacity: 0; transform: translate3d(0, 100px, 0); transition: opacity var(--fx-dur, 1s) linear, transform var(--fx-dur, 1s) linear, color .5s var(--ease); }
.js [data-fx-up].fx-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js [data-fx-up] { opacity: 1; transform: none; } }

/* ---------- applications accordion ---------- */
.s-apps { padding: clamp(64px, 8vw, 110px) 0; background: #000; }
.apps-track { display: flex; gap: 0; height: clamp(230px, 19.2vw, 330px); width: min(1324px, 100vw - 2 * var(--gutter)); margin: 40px calc(50% - min(662px, 50vw - var(--gutter))) 0; }
.app-tile { position: relative; flex: 1 1 0; overflow: hidden; text-decoration: none; transition: flex-grow .4s ease; outline: none; }
.app-tile.is-open { flex-grow: 4; }
.app-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter .5s; filter: brightness(.7); }
.app-tile.is-open img { filter: brightness(.95); transform: scale(1.03); }
.app-tile span { position: absolute; left: 14px; bottom: 14px; right: 14px; font: 500 15px/1.2 var(--head); text-transform: uppercase; letter-spacing: .03em; opacity: 0; transform: translateY(10px); transition: .5s var(--ease); text-shadow: 0 2px 10px #000; }
.app-tile.is-open span { opacity: 1; transform: none; transition-delay: .25s; }
.app-tile:focus-visible { box-shadow: inset 0 0 0 2px #fff; }

/* ---------- hotspots ---------- */
.s-hotspots { padding: clamp(96px, 11vw, 170px) 0; background: #000; }
.hs-stage { position: relative; width: min(860px, 100%); margin: 72px auto 0; aspect-ratio: 1600 / 1360; }
.hs-stage > img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 62% 70% at 50% 42%, #000 45%, transparent 100%); }
.hs-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hs-lines path { fill: none; stroke: #cfe7ef; stroke-width: 1; vector-effect: non-scaling-stroke; }
.hs { position: absolute; inset: 0; pointer-events: none; }
.hs i { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); width: 12px; height: 12px; margin: -6px; border-radius: 50%; background: #d4f2fb; box-shadow: 0 0 0 0 rgba(212,242,251,.6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 14px rgba(212,242,251,0); } 100% { box-shadow: 0 0 0 0 rgba(212,242,251,0); } }
.hs p { position: absolute; left: calc(var(--lx) * 1%); top: calc(var(--ly) * 1%); transform: translateY(-50%); font-size: 13px; line-height: 1.35; max-width: 210px; padding-left: 16px; color: #e8f4f8; }
.hs-list { display: none; }
.hs p::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; margin-top: -5px; border: 1px solid #e8f4f8; border-radius: 50%; }

/* ---------- big picture: picture stays (sticky), black rises over it (old BRELYON page) ---------- */
.s-cinema { position: relative; background: #000; }
.cinema-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.cinema-sticky img { width: 100%; height: 100%; object-fit: cover; object-position: 55% center; }
.cinema-dim { position: absolute; inset: 0; background: rgba(0,0,0,.3); }
.cinema-flow { position: relative; z-index: 2; height: 100vh; margin-top: -30vh; display: flex; flex-direction: column; pointer-events: none; }
.flow-clear { height: 30%; }
.flow-dark { flex: 1; background: linear-gradient(0deg, #000, #000 15%, transparent); }

/* ---------- digital canvas ---------- */
.s-canvas { background: #000; }
.s-canvas { height: 100vh; }
.canvas-space { height: 150vh; } /* scroll room: the BRELYON animation plays while the canvas stays */
.canvas-grid { display: grid; grid-template-columns: 1.55fr 1fr; align-items: center; height: 100%; }
.canvas-media { overflow: hidden; height: 100%; display: flex; align-items: center; }
.canvas-media canvas { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; }
.canvas-copy { padding: 48px clamp(20px, 4vw, 64px); }
.canvas-copy .h-section { text-transform: none; font-weight: 400; font-size: clamp(24px, 2.2vw, 32px); }
.canvas-copy > p { color: #b9c0c9; font-size: 14px; font-weight: 300; margin-top: 14px; }
.spec-icons { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 14px; text-align: center; }
.spec-icons svg { width: 64px; height: 48px; color: #e6eaee; margin: 0 auto 6px; }
.spec-icons strong { display: block; font: 700 22px/48px var(--head); }
.spec-icons strong sub { font-size: 11px; }
.spec-icons .argen { letter-spacing: .3em; font-weight: 400; }
.spec-icons span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #c2c8d0; }

/* ---------- unmanned grid: nti-systems.com/solutions card effect ---------- */
.s-unmanned { padding: clamp(64px, 8vw, 110px) 0; background: #000; }
.um-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 28px) clamp(16px, 3.1vw, 53px); width: min(1290px, 100vw - 2 * var(--gutter)); margin: 40px calc(50% - min(645px, 50vw - var(--gutter))) 24px; }
.um-card { position: relative; overflow: hidden; text-decoration: none; background: #111317; border-radius: 4px; color: #f2f4f7; }
.um-card::before { content: ""; position: absolute; inset: 0; z-index: 2; background: linear-gradient(90deg, rgba(10,12,16,.94), rgba(60,64,72,.72)); opacity: 0; transition: opacity .3s ease-in; }
.um-img { position: relative; aspect-ratio: 210 / 217; overflow: hidden; }
.um-img::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(0deg, #111317, transparent); }
.um-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.1); transform-origin: 50% 0; transition: transform .3s ease-out; }
.um-content { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 18px; transform: translateY(calc(100% - 58px)); transition: transform .3s ease-out; }
.um-card h3 { font: 600 15px/1.4 var(--head); }
.s-unmanned .center .btn { margin-top: 0; min-height: 36px; padding: 0 18px; font-size: 12px; }
.um-card p { font-size: 12.5px; line-height: 1.45; color: #e3e7ec; padding-top: 8px; opacity: 0; transform: translateY(12px); transition: opacity .3s ease-in .2s, transform .4s ease-out .1s; }
.um-link { display: inline-block; margin-top: 12px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid #fff8; opacity: 0; transform: translateY(20px); transition: opacity .3s ease-in .2s, transform .4s ease-out .2s; }
.um-card:hover::before, .um-card:focus-visible::before { opacity: 1; }
.um-card:hover .um-img img, .um-card:focus-visible .um-img img { transform: scale(1); transition-duration: .5s; }
.um-card:hover .um-content, .um-card:focus-visible .um-content { transform: none; }
.um-card:hover p, .um-card:hover .um-link, .um-card:focus-visible p, .um-card:focus-visible .um-link { opacity: 1; transform: none; }

/* ---------- news slider ---------- */
.s-news { padding: clamp(64px, 8vw, 100px) 0; background: #000; }
.news-slider { position: relative; width: min(1441px, 100vw - 2 * max(var(--gutter), 64px)); margin: 44px calc(50% - min(720.5px, 50vw - max(var(--gutter), 64px))) 0; }
.ns-view { overflow: hidden; }
.ns-track { --per: 4; display: flex; gap: 24px; transition: transform 1.6s cubic-bezier(.45,.05,.25,1); will-change: transform; }
.ns-track > .news-card { flex: 0 0 calc((100% - (var(--per) - 1) * 24px) / var(--per)); }
.news-card { border: 1px solid #ffffff55; text-decoration: none; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease); }
.news-card:hover { border-color: #fff; transform: translateY(-4px); }
.news-card figure { margin: 0; position: relative; aspect-ratio: 716 / 650; overflow: hidden; }
.news-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-card:hover figure img { transform: scale(1.06); }
.ns-open { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -30%); opacity: 0; padding: 9px 24px; border: 1px solid #fff; color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; background: rgba(0,0,0,.35); transition: opacity .35s, transform .35s var(--ease); z-index: 1; }
.news-card:hover .ns-open, .news-card:focus-visible .ns-open { opacity: 1; transform: translate(-50%, -50%); }
.tag { position: absolute; top: 14px; left: 14px; background: var(--red); color: #fff; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; }
.news-card p { font-size: 13px; font-weight: 300; color: #c3c9d0; padding: 14px 18px 6px; line-height: 1.45; }
.news-card time { font-size: 11px; padding: 0 18px 14px; color: #aab1ba; margin-top: auto; }
.ns-arrow { position: absolute; top: 34%; width: 40px; height: 40px; border: 0; background: none; color: #fff; cursor: pointer; z-index: 2; }
.ns-arrow svg { width: 26px; height: 26px; }
.ns-arrow.prev { left: calc((100% - 100vw) / 2 + 12px); } /* screen edge, whatever the slider width */
.ns-arrow.next { right: calc((100% - 100vw) / 2 + 12px); }
.ns-arrow:disabled { opacity: .25; cursor: default; }

/* ---------- CTA + footer ---------- */
/* client 24 Oct: the strip keeps a 2400 x 350 shape on computers (his picture size); the text decides on smaller screens */
.s-cta { position: relative; display: grid; align-content: center; min-height: calc(100vw * 350 / 2400); background-color: #2a2d36; background-position: center; background-size: cover; background-repeat: no-repeat; padding: clamp(24px, 2vw, 40px) 0; }
@media (max-width: 900px) { .s-cta { padding: 40px 0; } }
.s-cta > .edge { padding-left: var(--inset); }
.s-cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,22,28,.85), rgba(60,64,74,.45)); }
.s-cta > * { position: relative; }
.s-cta h2 { font: 600 clamp(22px, 2vw, 28px)/1.2 var(--head); }
.s-cta p { margin: 12px 0 24px; color: #e2e5ea; font-size: 15px; font-weight: 300; }
.site-footer { background: #000; border-top: 1px solid #ffffff10; padding-inline: clamp(8px, 1vw, 16px); }
.footer-top, .footer-bottom { display: flex; align-items: center; gap: 10px 24px; flex-wrap: wrap; padding: 13px clamp(8px, 1vw, 16px); }
.footer-top { justify-content: flex-end; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 6px 26px; }
.footer-top a { font-size: 12.5px; color: #e9ecf0; text-decoration: none; }
.footer-top a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { justify-content: space-between; border-top: 1px solid rgba(255,255,255,.1); padding-block: 14px 16px; }
.footer-bottom p { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: #b9bfc7; }
.social { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.social a { display: grid; place-items: center; width: 24px; height: 24px; color: #f2f4f7; transition: color .2s, transform .2s var(--ease); }
.social a:hover { color: var(--cyan); transform: translateY(-1px); }
.social a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.social svg { width: 15px; height: 15px; }

/* ---------- reveal (JS adds .in) ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.from-left { transform: translateX(-60px); }
.js .reveal.from-right { transform: translateX(60px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .vision-item.reveal.in { transition-duration: 1.5s; transition-timing-function: linear; }

/* ---------- review panel (preview only) ---------- */
.review { position: fixed; right: 16px; bottom: 16px; z-index: 100; font: 13px/1.4 var(--body); transition: bottom .3s var(--ease); }
.review.lift { bottom: 118px; }
@media (max-width: 900px) { .review.lift { bottom: 172px; } }
.review-toggle { background: #fff; color: #111; border: 0; border-radius: 999px; padding: 10px 16px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 24px #0008; }
.review-body { display: none; position: absolute; right: 0; bottom: 52px; width: 290px; max-height: 70vh; overflow: auto; background: #fff; color: #111; border-radius: 12px; padding: 16px; box-shadow: 0 12px 40px #000a; }
.review.open .review-body { display: block; }
.review-note { font-size: 12px; color: #667; margin-bottom: 12px; }
.review-group { margin-bottom: 14px; }
.review-group > span { display: block; font-weight: 700; margin-bottom: 8px; }
.seg { display: flex; border: 1px solid #ccd; border-radius: 8px; overflow: hidden; }
.seg button { flex: 1; border: 0; background: #fff; padding: 8px 4px; font-size: 12px; cursor: pointer; }
.seg button.on { background: #111; color: #fff; }
.review-list label { display: flex; align-items: center; gap: 8px; padding: 5px 0; cursor: pointer; }
[data-section].is-hidden { display: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ns-arrow.prev { left: -8px; } .ns-arrow.next { right: -8px; }
  .news-slider { width: auto; margin-inline: 0; }
  .ns-track { --per: 2; }
}
@media (max-width: 900px) {
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 10px; cursor: pointer; }
  .nav-toggle span:not(.sr) { width: 22px; height: 2px; background: #fff; }
  .site-nav { position: fixed; inset: var(--hh) 0 auto; flex-direction: column; align-items: stretch; gap: 0; background: rgba(12,14,18,.98); padding: 8px var(--gutter) 20px; transform: translateY(-120%); transition: transform .35s var(--ease); }
  .site-nav.open { transform: none; }
  .site-nav > a, .sub-btn { padding: 14px 0; border-bottom: 1px solid var(--line); width: 100%; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; display: none; border: 0; background: none; }
  .has-sub.open .sub { display: block; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .stats-row li { border-left: 0; border-top: 1px solid #ffffff14; }
  .stats-row li:last-child { grid-column: span 2; }
  .vision-row { grid-template-columns: 1fr; gap: 28px; max-width: 420px; margin-inline: auto; }
  .s-products { flex-direction: column; height: auto; }
  .s-products.is-rows .prod-panel { flex: none; height: auto; max-height: none; }
  .prod-panel { min-height: 380px; border-left: 0; border-top: 1px solid #ffffff22; }
  .apps-track { overflow-x: auto; scroll-snap-type: x mandatory; height: 360px; }
  .app-tile, .app-tile.is-open { flex: 0 0 70%; scroll-snap-align: start; }
  .app-tile span { opacity: 1; transform: none; }
  .stack-under { position: relative; }
  .s-canvas { height: auto; }
  .canvas-space { display: none; }
  .canvas-grid { grid-template-columns: 1fr; }
  .um-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .um-content { position: static; transform: none; padding: 12px 12px 14px; }
  .um-card p, .um-link { opacity: 1; transform: none; }
  .um-card::before { display: none; }
  .um-img img { transform: none; }
  .ns-track { --per: 1; }
  .ns-arrow { display: none; }
  .footer-top, .footer-bottom { justify-content: center; text-align: center; }
  .hs p, .hs-lines { display: none; }
  .hs-list { display: block; list-style: none; padding: 0; margin: 18px 0 0; font-size: 13px; color: #d9eef5; }
  .hs-list li { padding: 8px 0 8px 20px; border-top: 1px solid #ffffff1a; position: relative; }
  .hs-list li::before { content: ""; position: absolute; left: 2px; top: 14px; width: 8px; height: 8px; border-radius: 50%; background: #d4f2fb; }
  .cinema-sticky img { object-position: 30% center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- client 'Header & Footer' PDF, 21 Oct: slimmer header and footer, smaller menu, search + basket icons ---------- */
:root { --hh: 44px; }
.logo img { width: 112px; }
.site-nav > a, .sub-btn { font-size: 11.5px; }
.hdr-tools { display: flex; align-items: center; gap: 4px; margin-left: 22px; }
.hdr-ic { display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; background: none; color: #c9ced6; cursor: pointer; border-radius: 4px; }
.hdr-ic:hover { color: #fff; background: rgba(255,255,255,.06); }
.hdr-ic:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.hdr-ic svg { width: 17px; height: 17px; }
.hdr-search { background: #0e1015; border-top: 1px solid var(--line); padding: 12px 0; }
.hdr-search .edge { display: flex; gap: 10px; justify-content: flex-end; }
.hdr-search input { width: min(420px, 100%); height: 40px; padding: 0 14px; border: 1px solid #39404c; background: #15181f; color: #fff; font: inherit; font-size: 14px; border-radius: 2px; }
.hdr-search .btn { min-height: 40px; }
.footer-top { padding-block: 8px; }
.footer-bottom { padding-block: 9px 10px; }
/* main page: less black between the big picture and the Digital Canvas (client 'Brelyon Main Page' PDF) */
.cinema-flow { height: 80vh; }
@media (min-width: 901px) { .canvas-grid { align-items: start; padding-top: max(40px, 8vh); } .canvas-media { height: auto; } }
@media (max-width: 900px) {
  .hdr-tools { margin-left: auto; margin-right: 6px; }
}

/* client 2 Nov: formatting marks typed in the panel (kanaan_format_html): [blue] [big] [u] [b] [i] */
.kt-b { font-weight: 600; } /* a fixed weight: many texts are light (300), where "bolder" barely shows */
:is(h1, h2, h3) .kt-b { font-weight: 700; }
.kt-blue { color: #009ee3; }
.kt-big { font-size: 1.25em; line-height: 1.2; }
u { text-decoration-thickness: from-font; text-underline-offset: .16em; }
