/* Marryat & Scott Egypt: the door that holds
   One stylesheet, plain CSS. Colours are sampled from the May 2023 brochure
   and the hero footage. Change brand values in :root only. */

:root {
  --navy-950: #0A2650;
  --navy-900: #104285;
  --blue-700: #134A9C;
  --blue-600: #1F55A3;
  --blue-500: #2663B6;
  --glow-300: #5FADE0;
  --lavender-300: #C7CAE5;
  --lavender-200: #D4D6EB;
  --lavender-100: #E9EAF5;
  --mist: #F4F5FA;
  --steel-200: #CBD0D8;
  --white: #FFFFFF;
  --ink-900: #0F1B33;
  --ink-600: #4B5670;
  --ink-400: #7E88A3;
  --line: #DCDEEC;
  --line-dark: rgba(255,255,255,.14);

  --font-display: "Archivo", "Roboto Flex", system-ui, sans-serif;
  --font-body: "Roboto Flex", Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Roboto Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --text-xs: 0.78rem;
  --text-sm: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.35rem;
  --text-2xl: clamp(2rem, 1.45rem + 2.1vw, 3.25rem);
  --text-3xl: clamp(2.3rem, 1.5rem + 3vw, 4rem);
  --text-band: clamp(2.3rem, 1.4rem + 3.6vw, 5rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem; --space-9: 6.5rem;
  --section: clamp(5rem, 9vw, 8.5rem);

  --radius-md: 14px; --radius-lg: 20px; --radius-pill: 999px;
  --container: 80rem; --gutter: clamp(1rem, 4vw, 3rem);
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --dur-fast: .2s; --dur-med: .45s; --dur-slow: .9s;
  --header-h: 4.5rem;
}

/* ---------- fonts, self-hosted ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/archivo-latin-wght.woff2") format("woff2-variations"), url("../fonts/archivo-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Roboto Flex"; font-style: normal; font-weight: 100 1000; font-display: swap; src: url("../fonts/roboto-flex-latin-wght.woff2") format("woff2-variations"), url("../fonts/roboto-flex-latin-wght.woff2") format("woff2"); }
@font-face { font-family: "Roboto Mono"; font-style: normal; font-weight: 100 700; font-display: swap; src: url("../fonts/roboto-mono-latin-wght.woff2") format("woff2-variations"), url("../fonts/roboto-mono-latin-wght.woff2") format("woff2"); }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-md);
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--mist);
  overflow-x: clip;
}
img, picture, video, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue-500); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow-300); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; padding: .6rem 1rem; background: var(--navy-900); color: #fff; border-radius: var(--radius-pill); text-decoration: none; }
.skip-link:focus { top: 1rem; }
.mono { font-family: var(--font-mono); font-weight: 500; letter-spacing: .02em; font-variant-numeric: tabular-nums; }

/* fixed environment layer: never a flat white page */
.env {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 100% 0%, rgba(199,202,229,.45), transparent 70%),
    radial-gradient(50vw 40vh at 0% 100%, rgba(212,214,235,.35), transparent 70%),
    var(--mist);
}

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- type ---------- */
.title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--text-2xl);
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
  color: var(--ink-900);
}
.section--dark .title, .section--navy .title, .section--contact .title { color: #fff; }
.label {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.label--light { color: var(--glow-300); }
.bracket { width: 34px; height: 12px; overflow: visible; }
.bracket path { fill: none; stroke: var(--lavender-300); stroke-width: 1.5; stroke-linecap: square; stroke-dasharray: 60; stroke-dashoffset: 60; transition: stroke-dashoffset 1.1s var(--ease-out) .15s; }
.label--light .bracket path { stroke: rgba(95,173,224,.7); }
.is-in .bracket path { stroke-dashoffset: 0; }
.lede { font-size: var(--text-lg); line-height: 1.6; color: var(--ink-600); max-width: 36rem; text-wrap: pretty; }
.section--dark .lede, .section--navy .lede, .section--contact .lede { color: rgba(255,255,255,.72); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.5rem;
  font-weight: 500; font-size: var(--text-sm); line-height: 1;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn--pill { border-radius: var(--radius-pill); }
.btn--primary { background: var(--blue-500); color: #fff; }
.btn--primary:hover { background: var(--blue-600); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16,66,133,.22); }
.btn--light { background: #fff; color: var(--navy-900); }
.btn--light:hover { background: var(--lavender-100); transform: translateY(-1px); }
.btn--ghost { background: rgba(255,255,255,.04); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn--cta { background: var(--blue-500); color: #fff; padding: .7rem 1.2rem; }
.btn--cta:hover { background: var(--blue-600); }
.text-link { color: var(--blue-500); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--lavender-300); padding-bottom: 2px; transition: border-color var(--dur-fast); }
.text-link:hover { border-color: var(--blue-500); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color var(--dur-med) var(--ease-out), box-shadow var(--dur-med) var(--ease-out), backdrop-filter var(--dur-med);
}
.header__inner { height: 100%; width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; display: flex; align-items: center; gap: var(--space-5); }
.brand { display: block; width: clamp(150px, 16vw, 210px); margin-right: auto; }
.brand img { width: 100%; height: auto; }
.brand__dark { display: none; }
.header--solid { background: rgba(255,255,255,.86); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header--solid .brand__light { display: none; }
.header--solid .brand__dark { display: block; }
.nav__list { display: flex; gap: clamp(.9rem, 1.6vw, 1.6rem); white-space: nowrap; }
.nav__list a { color: rgba(255,255,255,.86); text-decoration: none; font-size: var(--text-sm); font-weight: 500; padding: .4rem 0; border-bottom: 1px solid transparent; transition: color var(--dur-fast), border-color var(--dur-fast); }
.nav__list a:hover { color: #fff; border-color: rgba(255,255,255,.5); }
.header--solid .nav__list a { color: var(--ink-600); }
.header--solid .nav__list a:hover { color: var(--blue-500); border-color: var(--blue-500); }
.header__actions { display: flex; align-items: center; gap: var(--space-3); }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; position: relative; }
.menu-btn__bar { position: absolute; left: 12px; right: 12px; height: 2px; background: #fff; transition: transform var(--dur-med) var(--ease-out), top var(--dur-med); }
.menu-btn__bar:nth-child(1) { top: 17px; } .menu-btn__bar:nth-child(2) { top: 25px; }
.header--solid .menu-btn__bar, .header--open .menu-btn__bar { background: var(--navy-900); }
.header--open .menu-btn__bar:nth-child(1) { top: 21px; transform: rotate(45deg); }
.header--open .menu-btn__bar:nth-child(2) { top: 21px; transform: rotate(-45deg); }
@media (max-width: 1080px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; background: rgba(255,255,255,.96); backdrop-filter: blur(14px); box-shadow: 0 20px 40px rgba(16,66,133,.12); transform: translateY(-12px); opacity: 0; visibility: hidden; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out), visibility 0s var(--dur-med); }
  .header--open .nav { opacity: 1; transform: none; visibility: visible; transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
  .header--open { background: #fff; }
  .header--open .brand__light { display: none; } .header--open .brand__dark { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding: var(--space-4) var(--gutter) var(--space-6); white-space: normal; }
  .nav__list a { display: block; color: var(--ink-900) !important; font-size: var(--text-lg); padding: .9rem 0; border-bottom: 1px solid var(--line) !important; }
  .menu-btn { display: block; }
  .btn--cta { display: none; }
}
@media (max-width: 1080px) and (min-width: 560px) { .btn--cta { display: inline-flex; } }

/* ---------- hero ---------- */
.hero { position: relative; height: 320vh; background: var(--navy-950); color: #fff; }
.hero__stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__still, .hero__video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still img, .hero__video { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero__video { opacity: 0; transition: opacity .6s var(--ease-out); }
.hero--video .hero__video { opacity: 1; }
.hero--video .hero__still { opacity: 0; transition: opacity .6s var(--ease-out) .1s; }
.hero__dust { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .55; pointer-events: none; }
.hero__scrim { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10,38,80,.78) 0%, rgba(10,38,80,.35) 9%, rgba(10,38,80,0) 20%),
    linear-gradient(90deg, rgba(10,38,80,.55) 0%, rgba(10,38,80,.25) 38%, rgba(10,38,80,0) 58%),
    linear-gradient(0deg, rgba(10,38,80,.55) 0%, rgba(10,38,80,0) 30%); }

.hero__loader { position: absolute; right: 2rem; bottom: 2rem; opacity: 0; transition: opacity var(--dur-med); }
.hero__loader.is-on { opacity: 1; }
.hero__loader [data-loader-ring] { transition: stroke-dashoffset .25s linear; }

.hero__bands { position: absolute; inset: 0; pointer-events: none; }
.band {
  position: absolute; left: var(--gutter); top: 50%; transform: translateY(calc(-50% + 28px));
  max-width: min(44rem, 52vw);
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-band); line-height: 1.02; letter-spacing: -0.03em;
  color: #fff; text-shadow: 0 2px 24px rgba(10,38,80,.5);
  opacity: 0; transition: opacity .55s var(--ease-out), transform .7s var(--ease-out);
  padding-left: 1.4rem;
}
.band.is-on { opacity: 1; transform: translateY(-50%); }
.band__rule { position: absolute; left: 0; top: .2em; width: 3px; height: .85em; background: var(--glow-300); border-radius: 2px; transform: scaleY(0); transform-origin: top; transition: transform .6s var(--ease-out) .1s; }
.band.is-on .band__rule { transform: scaleY(1); }
.band__figure { color: var(--glow-300); text-shadow: 0 0 32px rgba(95,173,224,.55); }
.band__sub { display: block; margin-top: .6em; font-family: var(--font-body); font-weight: 400; font-size: clamp(1rem, .9rem + .5vw, 1.3rem); letter-spacing: 0; line-height: 1.4; color: rgba(255,255,255,.78); max-width: 26rem; text-shadow: none; }

.hero__settle {
  position: absolute; left: var(--gutter); right: var(--gutter); top: 50%; transform: translateY(calc(-50% + 24px));
  max-width: 45rem; pointer-events: none;
  opacity: 0; transition: opacity .7s var(--ease-out), transform .9s var(--ease-out);
}
.hero__settle.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.hero__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-3xl); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.hero__sub { margin-top: var(--space-5); font-size: var(--text-lg); color: rgba(255,255,255,.78); max-width: 32rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-6); }

.hero__hint { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); display: grid; justify-items: center; gap: .5rem; font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); transition: opacity .4s; }
.hero__hint i { display: block; width: 1px; height: 42px; background: linear-gradient(180deg, rgba(255,255,255,.7), transparent); animation: hint 2.2s var(--ease-out) infinite; transform-origin: top; }
.hero__hint.is-off { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* phone: a designed still, no video */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; height: auto; min-height: 100svh; display: grid; align-content: end; padding: calc(var(--header-h) + 3rem) var(--gutter) 2.5rem; }
  .hero__still img { object-position: 50% 30%; }
  .hero__video, .hero__dust, .hero__loader, .hero__hint { display: none; }
  .hero__scrim { background: linear-gradient(0deg, rgba(10,38,80,.92) 0%, rgba(10,38,80,.55) 45%, rgba(10,38,80,.1) 100%); }
  .hero__bands { position: relative; inset: auto; display: grid; gap: .5rem; margin-bottom: 1.5rem; }
  .band { position: relative; left: auto; top: auto; transform: none; opacity: 1; max-width: none; font-size: 1.05rem; line-height: 1.3; letter-spacing: -0.01em; color: rgba(255,255,255,.82); padding-left: 1rem; text-shadow: none; }
  .band br { display: none; }
  .band__rule { transform: scaleY(1); height: 1.1em; top: .1em; width: 2px; }
  .band__figure { color: var(--glow-300); text-shadow: none; }
  .band__sub { display: none; }
  .hero__settle { position: relative; z-index: 2; left: auto; right: auto; top: auto; transform: none; opacity: 1; pointer-events: auto; max-width: 34rem; }
  .hero__bands { z-index: 2; }
  .hero__settle.is-on, .band.is-on { transform: none; }
}
.nowrap { white-space: nowrap; }

/* ---------- strip ---------- */
.strip { background: var(--navy-950); color: #fff; border-top: 1px solid var(--line-dark); }
.strip__inner { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-8); padding: 1.4rem 0; }
.strip__group { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.1rem; font-size: var(--text-sm); }
.strip__key { font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-right: .2rem; }
.strip .mono { color: rgba(255,255,255,.88); font-size: var(--text-xs); }

/* ---------- sections ---------- */
.section { position: relative; padding: var(--section) 0; }
.section--white { background: #fff; }
.section--dark { background: var(--navy-950); color: #fff; overflow: hidden; }
.section--navy { background: var(--navy-900); color: #fff; overflow: hidden; }
.section--contact { background: var(--navy-950); color: #fff; overflow: hidden; }
.section-head { display: grid; gap: var(--space-5); margin-bottom: var(--space-7); align-items: end; }
@media (min-width: 960px) { .section-head { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-8); } .section-head .lede { justify-self: end; } }

/* reveal: one entrance per element, eased, never snapping */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in { opacity: 1; transform: none; }

.photo { position: relative; overflow: hidden; border-radius: var(--radius-md); background: var(--lavender-100); }
.photo picture, .photo img { width: 100%; height: 100%; }
.photo img { object-fit: cover; }
[data-parallax] img { transform: translateY(var(--py, 0)) scale(1.08); transition: none; will-change: transform; }

.more { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-4) var(--space-6); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.more__label { font-size: var(--text-sm); color: var(--ink-600); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); }
.chips li, .chips a { display: inline-block; padding: .45rem .95rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; color: var(--ink-900); font-size: var(--text-sm); text-decoration: none; transition: border-color var(--dur-fast), color var(--dur-fast); }
.chips a { } .chips li:has(a) { padding: 0; border: 0; background: none; }
.chips a:hover { border-color: var(--blue-500); color: var(--blue-500); }
.chips--dark li { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: rgba(255,255,255,.88); }

/* ---------- three questions ---------- */
.qs { display: grid; gap: var(--space-6); counter-reset: q; }
@media (min-width: 760px) { .qs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); } }
.q { display: grid; grid-template-rows: auto 1fr; background: #fff; border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.q__media { aspect-ratio: 4 / 3; border-radius: 0; }
.q:nth-child(3) .q__media img { object-position: 70% center; }
.q__body { padding: var(--space-5) var(--space-5) var(--space-6); display: grid; gap: var(--space-3); align-content: start; }
.q__num { font-size: var(--text-xs); color: var(--blue-500); letter-spacing: .14em; }
.q__title { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.q__body p { color: var(--ink-600); }

/* ---------- products ---------- */
.cards { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr 1fr; gap: var(--space-3); } .card__note { display: none; } .card__body { padding: var(--space-4); } .card__name { font-size: var(--text-md); } }
.card__link { display: grid; grid-template-rows: auto 1fr; height: 100%; overflow: hidden; border-radius: var(--radius-md); background: var(--mist); color: inherit; text-decoration: none; box-shadow: 0 0 0 1px var(--line); transition: box-shadow var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out); }
.card__link:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--lavender-300), 0 22px 44px rgba(16,66,133,.12); }
.card__media { position: relative; aspect-ratio: 4 / 5; background: #fff; }
.card__media picture { position: absolute; inset: var(--space-6) var(--space-5) var(--space-3); }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease-out); }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__body { display: grid; align-content: start; gap: var(--space-2); padding: var(--space-5); border-top: 1px solid var(--line); background: #fff; }
.card__rating { justify-self: start; padding: .25rem .65rem; border-radius: var(--radius-pill); background: var(--lavender-100); color: var(--blue-700); font-size: var(--text-xs); }
.card__name { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); line-height: 1.2; letter-spacing: -0.015em; }
.card__note { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.55; }

/* ---------- spec + rating picker ---------- */
.spec { display: grid; gap: var(--space-8); align-items: start; }
@media (min-width: 1040px) { .spec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } }
.spec > * { min-width: 0; }
.spec__prompt { margin-top: var(--space-5); color: var(--ink-600); }
.seg { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: var(--space-4); padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); isolation: isolate; }
.seg button { position: relative; z-index: 1; padding: .8rem .4rem; border: 0; background: transparent; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink-600); cursor: pointer; transition: color var(--dur-med) var(--ease-out); display: inline-flex; align-items: baseline; justify-content: center; gap: .2rem; }
.seg button small { font-family: var(--font-mono); font-size: .65rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.seg button[aria-checked="true"] { color: #fff; }
.seg__thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: var(--radius-pill); background: var(--blue-500); box-shadow: 0 6px 18px rgba(38,99,182,.35); transform: translateX(calc(var(--seg, 3) * 100%)); transition: transform .5s var(--ease-out); }
.rating-card { margin-top: var(--space-5); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--navy-950); color: #fff; position: relative; overflow: hidden; }
.rating-card::after { content: ""; position: absolute; inset: auto -20% -60% auto; width: 60%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(95,173,224,.28), transparent); pointer-events: none; }
.rating-card__big { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.rating-card__big .mono { font-size: clamp(3rem, 2.4rem + 3vw, 5rem); line-height: 1; color: var(--glow-300); text-shadow: 0 0 28px rgba(95,173,224,.45); letter-spacing: -0.02em; }
.rating-card__unit { color: rgba(255,255,255,.7); }
.rating-card__where { margin-top: var(--space-4); font-size: var(--text-lg); line-height: 1.5; color: rgba(255,255,255,.9); min-height: 3.2em; }
.rating-card__std { margin-top: var(--space-4); display: flex; gap: .8rem; align-items: center; font-size: var(--text-sm); }
.rating-card__key { color: rgba(255,255,255,.55); text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-xs); }
.rating-card.is-swapping .rating-card__where, .rating-card.is-swapping [data-rating-std], .rating-card.is-swapping [data-rating-value] { opacity: 0; transform: translateY(6px); }
.rating-card__where, [data-rating-std], [data-rating-value] { transition: opacity .3s var(--ease-out), transform .3s var(--ease-out); }

.spec__table { display: grid; gap: var(--space-6); }
@media (min-width: 700px) { .spec__table { grid-template-columns: 200px minmax(0, 1fr); } .spec__actions { grid-column: 2; } }
.spec__figure { aspect-ratio: auto; background: #fff; box-shadow: 0 0 0 1px var(--line); padding: var(--space-5) var(--space-4); align-self: start; }
.spec__figure img { object-fit: contain; max-height: 460px; }
.spec-list { border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: minmax(7rem, 11rem) 1fr; gap: var(--space-4); padding: .85rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: var(--text-sm); color: var(--blue-700); }
.spec-list dd { color: var(--ink-900); }
@media (max-width: 520px) { .spec-list > div { grid-template-columns: 1fr; gap: .15rem; } }
.spec__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); }

/* ---------- certifications ---------- */
.section--dark__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 60% at 85% 10%, rgba(95,173,224,.18), transparent 70%), radial-gradient(40% 50% at 10% 100%, rgba(38,99,182,.25), transparent 70%); }
.section--dark .container { position: relative; }
.cert { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 960px) { .cert { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: var(--space-8); } }
.cert__table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.cert__table th { text-align: left; font-weight: 500; font-size: var(--text-xs); letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); padding: 0 .75rem .8rem 0; border-bottom: 1px solid var(--line-dark); }
.cert__table td { padding: 1rem .75rem 1rem 0; border-bottom: 1px solid var(--line-dark); color: rgba(255,255,255,.9); vertical-align: top; }
.cert__table td.mono:first-child { color: var(--glow-300); }
@media (max-width: 600px) {
  .cert__table thead { display: none; }
  .cert__table tr { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem .75rem; padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
  .cert__table td { display: block; padding: 0; border: 0; }
  .cert__table td:first-child { grid-column: 1 / -1; }
}
.cert__aside { padding: var(--space-6); border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); display: grid; gap: var(--space-5); justify-items: start; }
.cert__count { display: grid; gap: .25rem; }
.cert__count .mono { font-size: 3.5rem; line-height: 1; color: var(--glow-300); letter-spacing: -0.02em; }
.cert__count span:last-child { color: rgba(255,255,255,.7); font-size: var(--text-sm); }
.cert__iso { display: grid; gap: .5rem; font-size: var(--text-sm); color: rgba(255,255,255,.8); }
.cert__iso .mono { color: #fff; margin-right: .5rem; }

/* ---------- how it works ---------- */
.how { display: grid; gap: var(--space-8); }
@media (min-width: 1040px) { .how { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } }
.how__door { width: min(220px, 60%); margin-top: var(--space-6); }
.how__door * { fill: none; stroke: var(--lavender-300); stroke-width: 1.5; stroke-linejoin: round; stroke-dasharray: 1200; stroke-dashoffset: 1200; transition: stroke-dashoffset 2.6s var(--ease-out); }
.how__door.is-in * { stroke-dashoffset: 0; }
.how__door rect:nth-child(2) { stroke: var(--blue-500); }
.steps { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
.step { padding-top: var(--space-5); border-top: 1px solid var(--line); display: grid; gap: var(--space-3); align-content: start; }
.step__num { font-size: var(--text-xs); color: var(--blue-500); letter-spacing: .14em; }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.step p { color: var(--ink-600); }

/* ---------- projects ---------- */
.mosaic { display: grid; gap: var(--space-5); }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); }
  .tile--1 { grid-column: 1 / 9; } .tile--2 { grid-column: 9 / 13; }
  .tile--3 { grid-column: 1 / 5; } .tile--4 { grid-column: 5 / 9; } .tile--5 { grid-column: 9 / 13; }
  .tile--1 .tile__photo, .tile--2 .tile__photo { aspect-ratio: auto; height: clamp(320px, 31vw, 460px); }
}
.tile { min-width: 0; }
.tile__photo { aspect-ratio: 4 / 3; }
.tile__photo img { transition: transform .7s var(--ease-out); }
.tile:hover .tile__photo img { transform: scale(1.03); }
[data-parallax].tile__photo:hover img { transform: translateY(var(--py, 0)) scale(1.1); }
.tile__meta { padding-top: var(--space-4); }
.tile__meta h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.tile__meta p { margin-top: .2rem; font-size: var(--text-sm); color: var(--ink-600); }
.sectors { display: grid; gap: var(--space-4); margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .sectors { grid-template-columns: 12rem 1fr; } }

/* ---------- oem ---------- */
.oem { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 960px) { .oem { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } }
.oem__photo { aspect-ratio: 4 / 5; max-height: 640px; }
.oem__body { display: grid; gap: var(--space-5); justify-items: start; }
.oem__body .title, .oem__body .label { margin: 0; }
.caps { display: grid; gap: 0 var(--space-6); width: 100%; margin-top: var(--space-3); border-top: 1px solid var(--line-dark); }
@media (min-width: 640px) { .caps { grid-template-columns: 1fr 1fr; } }
.caps > div { padding: .9rem 0; border-bottom: 1px solid var(--line-dark); }
.caps dt { font-size: var(--text-sm); color: var(--glow-300); }
.caps dd { color: rgba(255,255,255,.88); font-size: var(--text-sm); }

/* ---------- company ---------- */
.company__photo { aspect-ratio: 16 / 7; max-height: 560px; }
.timeline { display: grid; gap: var(--space-6); margin-top: var(--space-7); }
@media (min-width: 760px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { padding-top: var(--space-4); border-top: 1px solid var(--line); display: grid; gap: var(--space-3); align-content: start; }
.timeline__year { font-size: var(--text-lg); color: var(--blue-500); }
.timeline p { font-size: var(--text-sm); color: var(--ink-600); }
.regions { display: grid; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .regions { grid-template-columns: 12rem 1fr; } }

/* ---------- faq ---------- */
.faq { display: grid; gap: var(--space-6); }
@media (min-width: 960px) { .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-9); } }
.faq__intro { display: grid; gap: var(--space-5); align-content: start; }
.faq__intro .label, .faq__intro .title { margin: 0; }
.faq__photo { aspect-ratio: 4 / 5; max-width: 26rem; margin-top: var(--space-4); }
.faq__photo img { object-position: 68% center; }
.faq__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-4) var(--space-5); font-size: var(--text-xs); color: rgba(255,255,255,.8); background: linear-gradient(0deg, rgba(10,38,80,.7), transparent); }
@media (max-width: 959px) { .faq__photo { display: none; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--space-4); padding: 1.1rem 0; font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; flex: 0 0 auto; width: 14px; height: 14px; background: linear-gradient(var(--blue-500), var(--blue-500)) center/14px 1.5px no-repeat, linear-gradient(var(--blue-500), var(--blue-500)) center/1.5px 14px no-repeat; transition: transform .4s var(--ease-out); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 0 1.2rem; max-width: 42rem; color: var(--ink-600); animation: faq-in .5s var(--ease-out); }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- contact ---------- */
.section--contact__art { position: absolute; inset: 0; pointer-events: none; opacity: .5;
  -webkit-mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 60%, transparent); mask-image: linear-gradient(180deg, #000, rgba(0,0,0,.35) 60%, transparent); }
.section--contact__art img { width: 100%; height: 100%; object-fit: cover; }
.section--contact .container { position: relative; }
.contact { display: grid; gap: var(--space-7); align-items: start; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: var(--space-9); } }
.contact__details { margin-top: var(--space-6); display: grid; gap: .8rem; border-top: 1px solid var(--line-dark); padding-top: var(--space-5); }
.contact__details li { display: grid; grid-template-columns: 5rem 1fr; gap: var(--space-4); font-size: var(--text-sm); color: rgba(255,255,255,.85); }
.contact__key { color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .12em; font-size: var(--text-xs); padding-top: .15em; }
.contact__details a { color: #fff; text-decoration: none; }
.contact__details a:hover { color: var(--glow-300); }
.form { background: #fff; color: var(--ink-900); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2.25rem); display: grid; gap: var(--space-4); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.form__row { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: .35rem; font-size: var(--text-sm); color: var(--ink-600); }
.field input, .field textarea { width: 100%; padding: .8rem .9rem; font: inherit; color: var(--ink-900); background: var(--mist); border: 1px solid var(--line); border-radius: 10px; transition: border-color var(--dur-fast), box-shadow var(--dur-fast); }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 3px rgba(95,173,224,.3); }
.field textarea { resize: vertical; min-height: 7rem; }
.field--file input { padding: .6rem; background: #fff; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #C8463C; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); margin-top: var(--space-2); }
.form__status { font-size: var(--text-sm); color: var(--ink-600); }
.form.is-sent .form__row, .form.is-sent .field, .form.is-sent button { display: none; }
.form.is-sent .form__status { font-size: var(--text-lg); color: var(--ink-900); }

/* ---------- footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.8); }
.footer__inner { display: grid; gap: var(--space-6); padding: var(--space-8) 0 var(--space-6); }
@media (min-width: 760px) { .footer__inner { grid-template-columns: 2fr 1fr 1fr; gap: var(--space-8); } }
.footer__brand { display: grid; gap: var(--space-3); align-content: start; font-size: var(--text-sm); }
.footer__links, .footer__contact { align-content: start; }
.footer__brand img { width: 200px; margin-bottom: var(--space-3); }
.footer__links, .footer__contact { display: grid; gap: .55rem; font-size: var(--text-sm); }
.footer a { color: rgba(255,255,255,.85); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) 0 var(--space-6); border-top: 1px solid var(--line-dark); font-size: var(--text-xs); color: rgba(255,255,255,.55); }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .bracket path, .how__door * { stroke-dashoffset: 0; transition: none; }
  .hero__hint i { animation: none; }
  [data-parallax] img { transform: none; }
  .btn, .card__link, .tile__photo img { transition: none; }
}

/* ===== revision 2: products five-up, ISO spotlight, certificate groups,
   factory loops, project galleries, history, next steps, lightbox ===== */
.title--sm { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }

@media (min-width: 1180px) { .cards--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 760px) and (max-width: 1179px) { .cards--5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards--5 .card__name { font-size: var(--text-lg); }
.cards--5 .card__media picture { inset: var(--space-5) var(--space-4) var(--space-2); }

/* ISO spotlight */
.iso { display: grid; gap: var(--space-4); margin-bottom: var(--space-8); }
@media (min-width: 760px) { .iso { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .iso { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.iso__card { padding: var(--space-6); border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); display: grid; gap: var(--space-3); align-content: start; }
.iso__code { font-size: 1.6rem; color: var(--glow-300); letter-spacing: -0.01em; }
.iso__card h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-lg); letter-spacing: -0.01em; }
.iso__card p:last-child { font-size: var(--text-sm); color: rgba(255,255,255,.72); line-height: 1.55; }
.iso__count { padding: var(--space-6); border-radius: var(--radius-lg); background: linear-gradient(160deg, rgba(38,99,182,.45), rgba(16,66,133,.25)); border: 1px solid rgba(95,173,224,.35); display: grid; gap: var(--space-5); align-content: space-between; justify-items: start; }
.cert__table th[scope="rowgroup"] { text-align: left; padding: 1.4rem 0 .6rem; font-family: var(--font-display); font-weight: 500; font-size: var(--text-md); letter-spacing: -0.01em; text-transform: none; color: #fff; border-bottom: 1px solid rgba(95,173,224,.5); }
.cert__table tr.cert__group:first-child th { padding-top: 0; }
@media (max-width: 600px) {
  .cert__table tr.cert__group { display: block; padding: 0; border: 0; }
  .cert__table tr.cert__group th { display: block; }
  .cert__table tr { grid-template-columns: 1fr 1fr; }
  .cert__table td:nth-child(2) { grid-column: 1 / -1; }
}

/* factory process loops */
.process { display: grid; gap: var(--space-6); }
@media (min-width: 640px) { .process { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); } }
.proc { display: grid; gap: var(--space-3); align-content: start; }
.proc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-950); box-shadow: 0 0 0 1px var(--line); }
.proc__media video { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.92) contrast(1.03); }
.proc__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(16,66,133,.12), inset 0 -40px 60px -30px rgba(10,38,80,.45); }
.proc__num { margin-top: var(--space-2); font-size: var(--text-xs); color: var(--blue-500); letter-spacing: .14em; }
.proc h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.proc p { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.55; }

/* project mosaic, eight tiles */
@media (min-width: 760px) {
  .tile--6 { grid-column: 1 / 5; } .tile--7 { grid-column: 5 / 9; } .tile--8 { grid-column: 9 / 13; }
  .tile--6 .tile__photo, .tile--7 .tile__photo, .tile--8 .tile__photo { aspect-ratio: 4 / 3; }
}
.tile__btn { display: block; width: 100%; padding: 0; margin: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; font: inherit; border-radius: var(--radius-md); }
.tile__btn:focus-visible { outline: 2px solid var(--glow-300); outline-offset: 4px; }
.tile__btn:hover .tile__meta h3 { color: var(--blue-500); }
.tile__count { position: absolute; right: .8rem; bottom: .8rem; padding: .3rem .6rem; border-radius: var(--radius-pill); background: rgba(10,38,80,.72); color: #fff; font-size: .68rem; backdrop-filter: blur(6px); letter-spacing: .08em; text-transform: uppercase; }

/* history */
.history { display: grid; gap: var(--space-5); margin-bottom: var(--space-8); }
@media (min-width: 760px) { .history { grid-template-columns: repeat(12, 1fr); } .history__photo--team { grid-column: 1 / 8; } .history__photo--floor { grid-column: 8 / 13; } .history__photo--founder { grid-column: 1 / 13; max-width: 22rem; } }
@media (min-width: 1040px) { .history__photo--team { grid-column: 1 / 6; } .history__photo--floor { grid-column: 6 / 10; } .history__photo--founder { grid-column: 10 / 13; max-width: none; } }
.history__photo { aspect-ratio: 4 / 3; background: var(--lavender-100); }
.history__photo--founder { aspect-ratio: 4 / 5; }
.history__photo img { filter: saturate(.9); }
.history__photo figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--space-5) var(--space-5) var(--space-4); font-size: var(--text-xs); color: rgba(255,255,255,.9); background: linear-gradient(0deg, rgba(10,38,80,.78), transparent); letter-spacing: .02em; }
.company__photo { margin-top: var(--space-8); }
.company__caption { position: absolute; left: 0; bottom: 0; padding: var(--space-4) var(--space-5); font-size: var(--text-xs); color: rgba(255,255,255,.9); background: linear-gradient(90deg, rgba(10,38,80,.7), transparent); }

/* straight answers + faq in one section */
#faq .qs { margin-bottom: var(--space-9); }
#faq .faq { padding-top: var(--space-8); border-top: 1px solid var(--line); }

/* what happens next, beside the form */
.next { margin-top: var(--space-6); display: grid; gap: var(--space-4); }
.next li { display: grid; grid-template-columns: 2.4rem 1fr; gap: var(--space-3); align-items: start; }
.next li .mono { font-size: var(--text-xs); color: var(--glow-300); letter-spacing: .14em; padding-top: .3em; }
.next p { color: rgba(255,255,255,.78); font-size: var(--text-sm); line-height: 1.55; }
.next strong { color: #fff; font-weight: 500; }
.next__media { margin-top: var(--space-6); max-width: 26rem; }
.next__media video { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-md); display: block; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.next__caption { margin-top: .6rem; font-size: var(--text-xs); color: rgba(255,255,255,.6); }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: var(--gutter); }
.lb[hidden] { display: none; }
.lb__backdrop { position: absolute; inset: 0; background: rgba(10,38,80,.86); backdrop-filter: blur(10px); animation: lb-fade .3s var(--ease-out); }
.lb__panel { position: relative; width: min(1100px, 100%); max-height: 100%; display: grid; grid-template-rows: auto 1fr auto auto; gap: var(--space-3); color: #fff; animation: lb-rise .45s var(--ease-out); }
.lb__head { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); }
.lb__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; }
.lb__meta { font-size: var(--text-sm); color: rgba(255,255,255,.65); }
.lb__close, .lb__nav { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; background: rgba(10,38,80,.5); color: #fff; cursor: pointer; transition: background var(--dur-fast), border-color var(--dur-fast); }
.lb__close:hover, .lb__nav:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.lb__stage { position: relative; margin: 0; min-height: 0; display: grid; place-items: center; }
.lb__stage img { max-width: 100%; max-height: min(70vh, 760px); width: auto; height: auto; border-radius: var(--radius-md); box-shadow: 0 30px 80px rgba(0,0,0,.5); background: var(--navy-950); }
.lb__stage img.is-swapping { opacity: 0; transition: none; }
.lb__stage img { transition: opacity .35s var(--ease-out); }
.lb__nav { position: absolute; top: 50%; transform: translateY(-50%); }
.lb__nav--prev { left: .5rem; } .lb__nav--next { right: .5rem; }
.lb__foot { display: flex; justify-content: space-between; gap: var(--space-4); font-size: var(--text-sm); color: rgba(255,255,255,.75); }
.lb__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.lb__thumbs button { flex: 0 0 auto; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: var(--navy-950); cursor: pointer; opacity: .6; transition: opacity var(--dur-fast), border-color var(--dur-fast); }
.lb__thumbs button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb__thumbs button[aria-current="true"], .lb__thumbs button:hover { opacity: 1; border-color: var(--glow-300); }
.lb--single .lb__nav, .lb--single .lb__thumbs { display: none; }
body.lb-open { overflow: hidden; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .lb__backdrop, .lb__panel { animation: none; } }
.cert { display: block; }
.cert__table td { padding-right: 1.25rem; }
@media (min-width: 1040px) { .history__photo, .history__photo--founder { aspect-ratio: auto; height: clamp(280px, 27vw, 400px); } }
@media (min-width: 760px) and (max-width: 1039px) { .history__photo--team, .history__photo--floor { aspect-ratio: auto; height: clamp(240px, 32vw, 360px); } }

/* ===== revision 3: static opening, bigger logo, seven products, on-site answers,
   project ticker, two-path contact, document drop, OEM page ===== */
:root { --header-h: 5.25rem; }
.brand { width: clamp(210px, 22vw, 310px); }
@media (max-width: 560px) { .brand { width: 200px; } :root { --header-h: 4.5rem; } }

/* hero, static opening: full viewport, no scroll stage */
.hero--static { height: auto; }
.hero--static .hero__stage { position: relative; height: 100vh; height: 100svh; min-height: 640px; }
.hero--static .hero__video { opacity: 0; }
.hero--static.hero--video .hero__video { opacity: 1; }
.hero--static.hero--video .hero__still { opacity: 0; transition: opacity .8s var(--ease-out) .2s; }
.hero__settle--intro { pointer-events: auto; }
.hero__settle--intro > * { opacity: 0; transform: translateY(18px); animation: settle-in 1s var(--ease-out) forwards; }
.hero__settle--intro > :nth-child(1) { animation-delay: .5s; }
.hero__settle--intro > :nth-child(2) { animation-delay: .7s; }
.hero__settle--intro > :nth-child(3) { animation-delay: .95s; }
.hero__settle--intro > :nth-child(4) { animation-delay: 1.15s; }
@keyframes settle-in { to { opacity: 1; transform: none; } }
@media (max-width: 899px) {
  .hero--static .hero__stage { height: auto; min-height: 100svh; }
  .hero--static .hero__video { display: none; }
}
@media (prefers-reduced-motion: reduce) { .hero__settle--intro > * { animation: none; opacity: 1; transform: none; } }

/* seven products */
@media (min-width: 1100px) { .cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
@media (min-width: 760px) and (max-width: 1099px) { .cards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cards--4 .card__name { font-size: var(--text-lg); }
.cards--4 .card__media picture { inset: var(--space-5) var(--space-4) var(--space-2); }
.chips__more { background: var(--navy-900) !important; color: #fff !important; border-color: var(--navy-900) !important; }
.chips__more:hover { background: var(--blue-500) !important; border-color: var(--blue-500) !important; }

/* on-site answers inside certifications */
.onsite { margin-top: var(--space-9); padding-top: var(--space-8); border-top: 1px solid var(--line-dark); }
.onsite__head { margin-bottom: var(--space-6); }
.onsite__head .title { color: #fff; }
.qs--dark .q { background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line-dark); }
.qs--dark .q__title { color: #fff; }
.qs--dark .q__body p { color: rgba(255,255,255,.72); }
.qs--dark .q__num { color: var(--glow-300); }

/* project ticker */
.ticker { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.ticker__label { margin-bottom: var(--space-2); }
.ticker__row { position: relative; display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.ticker__track { display: flex; flex: 0 0 auto; gap: var(--space-3); padding-right: var(--space-3); animation: ticker 110s linear infinite; }
.ticker__row--rev .ticker__track { animation-direction: reverse; animation-duration: 125s; }
.ticker__row:hover .ticker__track { animation-play-state: paused; }
.ticker__track li { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .6rem; padding: .55rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-pill); background: #fff; font-size: var(--text-sm); white-space: nowrap; color: var(--ink-900); }
.ticker__sector { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-500); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__row { -webkit-mask-image: none; mask-image: none; }
  .ticker__track { animation: none; flex-wrap: wrap; }
  .ticker__track[aria-hidden="true"] { display: none; }
}

/* two paths */
.paths { display: grid; gap: var(--space-6); align-items: start; }
@media (min-width: 1000px) { .paths { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-7); } }
.path { border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem); }
.path__kicker { font-size: var(--text-xs); letter-spacing: .14em; color: var(--glow-300); }
.path__title { margin-top: var(--space-2); font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.1; }
.path__text { margin-top: var(--space-3); color: rgba(255,255,255,.75); line-height: 1.55; }
.path--sales { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); backdrop-filter: blur(8px); color: #fff; }
.path--sales .contact__details { margin-top: var(--space-5); }
.path__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }
.path--sales .next__media { margin-top: var(--space-6); max-width: none; }
.path--quote { color: var(--ink-900); }
.path--quote .path__kicker { color: var(--blue-500); }
.path--quote .path__text { color: var(--ink-600); margin-bottom: var(--space-2); }
.form.path { gap: var(--space-4); }

/* document drop zone */
.field--drop > span:first-child { display: block; }
.drop { display: block; position: relative; padding: var(--space-5); border: 1.5px dashed var(--lavender-300); border-radius: 12px; background: var(--mist); text-align: center; cursor: pointer; transition: border-color var(--dur-fast), background var(--dur-fast); }
.drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop__text { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.5; }
.drop__text strong { color: var(--ink-900); font-weight: 500; }
.is-drag .drop { border-color: var(--blue-500); background: var(--lavender-100); }
.is-over-limit .drop { border-color: #C8463C; }
.drop__list { display: grid; gap: .4rem; margin-top: .6rem; }
.drop__list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); padding: .5rem .8rem; border-radius: 8px; background: var(--lavender-100); font-size: var(--text-sm); }
.drop__list button { border: 0; background: none; color: var(--blue-500); font-size: var(--text-xs); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.field--check { grid-template-columns: auto 1fr; display: grid; align-items: start; gap: .6rem; }
.field--check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; accent-color: var(--blue-500); }
.form__status[data-kind="ok"] { color: var(--blue-700); }
.form__status[data-kind="warn"] { color: #A33A31; }
.form.is-sent .field, .form.is-sent .form__row, .form.is-sent button, .form.is-sent .path__text { display: none; }

/* OEM page */
.page-hero { position: relative; background: var(--navy-950); color: #fff; padding: calc(var(--header-h) + var(--space-8)) 0 var(--space-9); overflow: hidden; }
.page-hero__art { position: absolute; inset: 0; opacity: .35; -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 75%); mask-image: linear-gradient(90deg, transparent 30%, #000 75%); }
.page-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.page-hero__inner { position: relative; max-width: 46rem; display: grid; gap: var(--space-5); }
.page-hero .label { margin: 0; }
.caps--light { border-top-color: var(--line); }
.caps--light > div { border-bottom-color: var(--line); }
.caps--light dt { color: var(--blue-700); }
.caps--light dd { color: var(--ink-900); }
@media (min-width: 960px) { .caps--light { grid-template-columns: repeat(2, 1fr); } }
.oemgrid { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .oemgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .oemgrid { grid-template-columns: repeat(3, 1fr); } }
.oemcard { padding: var(--space-6); border-radius: var(--radius-md); background: #fff; box-shadow: 0 0 0 1px var(--line); display: grid; gap: var(--space-3); align-content: start; }
.oemcard .mono { font-size: var(--text-xs); color: var(--blue-500); letter-spacing: .14em; }
.oemcard h3 { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.oemcard p { color: var(--ink-600); font-size: var(--text-sm); line-height: 1.55; }
.steps--dark .step { border-top-color: var(--line-dark); }
.steps--dark .step__num { color: var(--glow-300); }
.steps--dark .step p { color: rgba(255,255,255,.72); }
@media (min-width: 960px) { .steps--dark { grid-template-columns: repeat(4, 1fr); } }
.process--4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .process--4 { grid-template-columns: repeat(4, 1fr); } }
.process--4 .proc__media { box-shadow: 0 0 0 1px var(--line-dark); }
.cta-band { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 960px) { .cta-band { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } .cta-band .hero__actions { justify-self: end; margin: 0; } }
.btn--outline { background: transparent; color: var(--navy-900); border-color: var(--lavender-300); }
.btn--outline:hover { border-color: var(--navy-900); }
.nav__list a[aria-current="page"] { border-color: currentColor; }

/* factory in numbers */
.numbers { display: grid; gap: var(--space-5); margin-top: var(--space-9); padding-top: var(--space-7); border-top: 1px solid var(--line); }
@media (min-width: 640px) { .numbers { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1040px) { .numbers { grid-template-columns: repeat(5, 1fr); gap: var(--space-4); } }
.numbers li { display: grid; gap: .4rem; align-content: start; padding-left: var(--space-4); border-left: 2px solid var(--lavender-300); }
.numbers__big { display: flex; align-items: baseline; gap: .35rem; font-size: clamp(2.2rem, 1.6rem + 2vw, 3.4rem); line-height: 1; color: var(--navy-900); letter-spacing: -0.02em; }
.numbers__big small { font-family: var(--font-mono); font-size: .9rem; color: var(--blue-500); letter-spacing: .06em; }
.numbers__label { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.45; max-width: 16rem; }

/* ===== revision 4: solid header, core picker, hover points ===== */
:root { --header-h: 5.5rem; }
.header--fixed { background: rgba(255,255,255,.96); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header--fixed .brand__light { display: none; } .header--fixed .brand__dark { display: block; }
.header--fixed .nav__list a { color: var(--ink-600); }
.header--fixed .nav__list a:hover { color: var(--blue-500); border-color: var(--blue-500); }
.header--fixed .nav__list a[aria-current="page"] { color: var(--navy-900); border-color: var(--navy-900); }
.header--fixed .menu-btn__bar { background: var(--navy-900); }
.header__inner { gap: clamp(1rem, 3vw, 3rem); }
.brand { width: clamp(230px, 21vw, 300px); margin-right: auto; padding: .35rem 0; }
.nav__list { gap: clamp(1rem, 1.5vw, 1.5rem); }
.nav__list a { font-size: .92rem; }
.btn--cta { margin-left: .25rem; }
body { padding-top: var(--header-h); }
.hero--static .hero__stage { height: calc(100vh - var(--header-h)); height: calc(100svh - var(--header-h)); min-height: 600px; }
.hero__scrim { background: linear-gradient(90deg, rgba(10,38,80,.55) 0%, rgba(10,38,80,.25) 38%, rgba(10,38,80,0) 58%), linear-gradient(0deg, rgba(10,38,80,.55) 0%, rgba(10,38,80,0) 30%); }
@media (max-width: 1080px) { .nav { inset: var(--header-h) 0 auto 0; } }
@media (max-width: 899px) { .hero--static .hero__stage { height: auto; min-height: calc(100svh - var(--header-h)); padding-top: var(--space-8); } }
@media (max-width: 560px) { :root { --header-h: 4.75rem; } .brand { width: 210px; } }
.chips__li-more { padding: 0 !important; border: 0 !important; background: none !important; }

/* specification: core + door */
.spec2 { display: grid; gap: var(--space-8); align-items: start; margin-bottom: var(--space-8); }
@media (min-width: 1000px) { .spec2 { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-9); } }
.seg--2 { grid-template-columns: repeat(2, 1fr); }
.seg--2 button { font-size: .98rem; font-weight: 500; padding: .85rem .6rem; }
.seg--2 .seg__thumb { width: calc((100% - 8px) / 2); }
.core-card { margin-top: var(--space-5); border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); overflow: hidden; }
.core-card__fig { aspect-ratio: 4 / 3; border-radius: 0; background: #fff; }
.core-card__fig img { object-fit: cover; transition: opacity .3s var(--ease-out); }
.core-card__body { padding: var(--space-6); display: grid; gap: var(--space-4); }
.core-card__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; line-height: 1.2; }
.core-card__text { color: var(--ink-600); line-height: 1.55; }
.core-card__facts { display: grid; gap: .7rem; border-top: 1px solid var(--line); padding-top: var(--space-4); }
.core-card__facts > div { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--space-3); font-size: var(--text-sm); }
.core-card__facts dt { color: var(--blue-700); }
.core-card__facts dd { color: var(--ink-900); line-height: 1.5; }
.core-card.is-swapping .core-card__body > *, .core-card.is-swapping img { opacity: 0; }
.core-card__body > * { transition: opacity .3s var(--ease-out); }

.spec2__door { position: relative; margin: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); padding: var(--space-5); }
.spec2__door picture, .spec2__door img { display: block; width: 100%; height: auto; }
.spec2__hint { position: absolute; left: var(--space-5); bottom: var(--space-4); font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-400); }
.hs { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%, -50%); width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; z-index: 2; }
.hs__dot { position: absolute; inset: 0; border-radius: 50%; background: rgba(38,99,182,.9); box-shadow: 0 0 0 4px rgba(38,99,182,.25), 0 4px 12px rgba(16,66,133,.3); transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast); }
.hs__dot::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.hs:hover .hs__dot, .hs.is-open .hs__dot, .hs:focus-visible .hs__dot { transform: scale(1.12); background: var(--navy-900); }
.hs__dot { animation: hs-pulse 2.6s var(--ease-out) infinite; }
@keyframes hs-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(38,99,182,.25), 0 4px 12px rgba(16,66,133,.3); } 50% { box-shadow: 0 0 0 9px rgba(38,99,182,.08), 0 4px 12px rgba(16,66,133,.3); } }
.hs__label { position: absolute; left: 36px; top: 50%; transform: translateY(-50%); white-space: nowrap; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-700); background: rgba(255,255,255,.85); padding: .2rem .45rem; border-radius: 4px; pointer-events: none; opacity: 0; transition: opacity var(--dur-fast); }
.spec2__door:hover .hs__label { opacity: 1; }
.hs__tip { position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translate(-50%, 6px); width: 16rem; padding: .85rem 1rem; border-radius: 10px; background: var(--navy-950); color: #fff; font-size: var(--text-sm); line-height: 1.45; text-align: left; box-shadow: 0 16px 40px rgba(10,38,80,.3); opacity: 0; visibility: hidden; transition: opacity var(--dur-fast), transform var(--dur-fast), visibility 0s var(--dur-fast); z-index: 3; }
.hs__tip strong { display: block; font-family: var(--font-display); font-weight: 500; margin-bottom: .25rem; color: var(--glow-300); }
.hs__tip::after { content: ""; position: absolute; left: 50%; top: 100%; transform: translateX(-50%); border: 7px solid transparent; border-top-color: var(--navy-950); }
.hs:hover .hs__tip, .hs.is-open .hs__tip, .hs:focus-visible .hs__tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity var(--dur-fast), transform var(--dur-fast); }
.hs[style*="--x:1"] .hs__tip, .hs[style*="--x:2"] .hs__tip { left: 0; transform: translate(0, 6px); } .hs[style*="--x:1"] .hs__tip::after, .hs[style*="--x:2"] .hs__tip::after { left: 14px; }
.hs[style*="--x:1"]:hover .hs__tip, .hs[style*="--x:1"].is-open .hs__tip, .hs[style*="--x:2"]:hover .hs__tip, .hs[style*="--x:2"].is-open .hs__tip { transform: translate(0, 0); }
.hs[style*="--x:7"] .hs__tip, .hs[style*="--x:8"] .hs__tip { left: auto; right: 0; transform: translate(0, 6px); } .hs[style*="--x:7"] .hs__tip::after, .hs[style*="--x:8"] .hs__tip::after { left: auto; right: 14px; transform: none; }
.hs[style*="--x:7"]:hover .hs__tip, .hs[style*="--x:7"].is-open .hs__tip, .hs[style*="--x:8"]:hover .hs__tip, .hs[style*="--x:8"].is-open .hs__tip { transform: translate(0, 0); }
.hs[style*="--y:9"] .hs__tip, .hs[style*="--y:1"] .hs__tip { bottom: auto; top: calc(100% + 12px); } .hs[style*="--y:9"] .hs__tip::after, .hs[style*="--y:1"] .hs__tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: var(--navy-950); }
@media (max-width: 560px) { .hs__tip { width: 13rem; } }
.spec-list--2col { border-top: 1px solid var(--line); }
@media (min-width: 900px) { .spec-list--2col { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-8); } .spec-list--2col > div:nth-child(2) { border-top: 1px solid var(--line); margin-top: -1px; } }
.spec-list--2col > div { grid-template-columns: minmax(7rem, 9rem) 1fr; }
.spec-note { margin-top: var(--space-4); font-size: var(--text-xs); color: var(--ink-400); max-width: 60rem; }
.spec__actions { margin-top: var(--space-6); }
@media (prefers-reduced-motion: reduce) { .hs__dot { animation: none; } }

/* revision 4b: phone hero scrim (the later desktop scrim rule was winning on phones) */
@media (max-width: 899px), (prefers-reduced-motion: reduce) {
  .hero--static .hero__scrim { background: linear-gradient(0deg, rgba(10,38,80,.96) 0%, rgba(10,38,80,.86) 34%, rgba(10,38,80,.45) 58%, rgba(10,38,80,.08) 100%); }
}
/* revision 4c: factory loops are now 16:9 generated clips */
.proc__media { aspect-ratio: 16 / 9; }

/* ===== revision 5: header back over the hero (tidier spacing), spec layout, history order ===== */
:root { --header-h: 5.25rem; }
body { padding-top: 0; }
.hero--static .hero__stage { height: 100vh; height: 100svh; min-height: 640px; }
@media (max-width: 899px) { .hero--static .hero__stage { height: auto; min-height: 100svh; padding-top: calc(var(--header-h) + 3rem); } }
.header__inner { gap: clamp(1.5rem, 3vw, 3.5rem); }
.brand { width: clamp(200px, 17vw, 260px); padding: 0; margin-right: auto; }
.nav__list { gap: clamp(1.1rem, 1.7vw, 1.75rem); }
.nav__list a { font-size: .95rem; padding: .5rem 0; }
.btn--cta { margin-left: .5rem; }
.header:not(.header--solid):not(.header--open) .btn--cta { background: rgba(255,255,255,.1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.55); }
.header:not(.header--solid):not(.header--open) .btn--cta:hover { background: rgba(255,255,255,.2); }
.header--solid .nav__list a[aria-current="page"] { color: var(--navy-900); border-color: var(--navy-900); }
@media (max-width: 560px) { :root { --header-h: 4.5rem; } .brand { width: 190px; } }

/* specification: picker above both cards, cards aligned and equal height */
.spec2__pick { max-width: 36rem; margin-bottom: var(--space-6); }
.spec2 { align-items: stretch; }
.core-card { margin-top: 0; height: 100%; display: flex; flex-direction: column; }
.core-card__fig { flex: 0 0 auto; }
.core-card__body { flex: 1 1 auto; align-content: start; }
.spec2__door { display: flex; flex-direction: column; justify-content: center; padding: var(--space-6) var(--space-6) calc(var(--space-6) + 1.25rem); }
.spec2__stage { position: relative; width: 100%; }
.spec2__hint { left: 50%; transform: translateX(-50%); bottom: var(--space-4); white-space: nowrap; }
@media (min-width: 761px) { .hs__label { opacity: 1; } }
@media (max-width: 760px) { .hs__label { display: none; } }

/* history: founder on the left, 1978 photos to the right */
@media (min-width: 760px) and (max-width: 1039px) {
  .history__photo--founder { grid-column: 1 / 5; grid-row: 1 / 3; max-width: none; aspect-ratio: auto; height: auto; }
  .history__photo--team { grid-column: 5 / 13; grid-row: 1; }
  .history__photo--floor { grid-column: 5 / 13; grid-row: 2; }
}
@media (min-width: 1040px) {
  .history__photo--founder { grid-column: 1 / 4; grid-row: 1; }
  .history__photo--team { grid-column: 4 / 9; grid-row: 1; }
  .history__photo--floor { grid-column: 9 / 13; grid-row: 1; }
}
.header:not(.header--solid):not(.header--open) { background: linear-gradient(180deg, rgba(10,38,80,.62) 0%, rgba(10,38,80,.28) 60%, rgba(10,38,80,0) 100%); }
.header:not(.header--solid):not(.header--open) { background: none; }
.hero--static .hero__stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 11rem; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(10,38,80,.82) 0%, rgba(10,38,80,.5) 45%, rgba(10,38,80,0) 100%); }
.hero--static .hero__settle, .hero--static .hero__bands { z-index: 2; }
@media (max-width: 560px) { .seg--2 .hide-sm { display: none; } .seg--2 button { text-transform: capitalize; } }

/* ===== revision 6: core cutaways side by side with text, sector cards ===== */
.core-card { display: grid; }
.core-card__fig { position: relative; margin: 0; background: #fff; display: grid; place-items: center; padding: var(--space-5) var(--space-5) 0; aspect-ratio: auto; }
.core-pic { grid-area: 1 / 1; display: block; transition: opacity .45s var(--ease-out); opacity: 0; }
.core-pic.is-on { opacity: 1; }
.core-pic img { display: block; width: auto; height: clamp(300px, 34vw, 470px); max-width: 100%; object-fit: contain; }
.core-card.is-swapping .core-pic img { opacity: 1; }
@media (min-width: 1000px) {
  .core-card { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; }
  .core-card__fig { padding: var(--space-6) 0 var(--space-6) var(--space-6); height: 100%; }
  .core-pic img { height: clamp(380px, 36vw, 520px); }
  .core-card__facts > div { grid-template-columns: 1fr; gap: .15rem; }
}
.core-card__tag { justify-self: start; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-700); background: var(--lavender-100); padding: .3rem .6rem; border-radius: var(--radius-pill); }

.secs { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.secs__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.secs__count { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); letter-spacing: -0.015em; color: var(--ink-900); }
.secs__count .mono { color: var(--blue-500); font-family: var(--font-mono); letter-spacing: 0; }
.secs__note { color: var(--ink-600); font-size: var(--text-sm); }
.secs__grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
@media (min-width: 1100px) { .secs__grid { grid-template-columns: repeat(4, 1fr); } }
.sec__btn { position: relative; display: block; width: 100%; height: 100%; min-height: 19.5rem; padding: 0; border: 0; border-radius: var(--radius-lg); background: #fff; box-shadow: 0 0 0 1px var(--line); text-align: left; cursor: pointer; overflow: hidden; font: inherit; color: inherit; transition: box-shadow var(--dur-fast), transform var(--dur-med) var(--ease-out); }
.sec__front, .sec__back { position: absolute; inset: 0; display: flex; flex-direction: column; padding: var(--space-5); }
.sec__front { gap: .5rem; }
.sec__num { font-size: clamp(3rem, 2.4rem + 2vw, 4.2rem); line-height: 1; color: var(--navy-900); letter-spacing: -0.03em; }
.sec__name { font-family: var(--font-display); font-weight: 500; font-size: var(--text-xl); letter-spacing: -0.015em; color: var(--ink-900); margin-top: auto; }
.sec__sample { font-size: var(--text-sm); color: var(--ink-600); line-height: 1.45; }
.sec__hint { margin-top: var(--space-3); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue-500); }
.sec__back { background: var(--navy-950); color: #fff; transform: translateY(101%); transition: transform .45s var(--ease-out); gap: .8rem; }
.sec__back-head { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--glow-300); }
.sec__list { display: grid; gap: .32rem; font-size: .88rem; line-height: 1.3; color: rgba(255,255,255,.9); overflow: auto; }
.sec__list span { padding-left: .8rem; position: relative; }
.sec__list span::before { content: ""; position: absolute; left: 0; top: .55em; width: 4px; height: 4px; border-radius: 50%; background: var(--glow-300); }
.sec__btn:hover .sec__back, .sec__btn:focus-visible .sec__back, .sec__btn[aria-expanded="true"] .sec__back { transform: none; }
.sec__btn:hover, .sec__btn:focus-visible { box-shadow: 0 0 0 1px var(--navy-900), 0 18px 40px rgba(16,66,133,.16); }
@media (prefers-reduced-motion: reduce) { .sec__back { transition: none; } }
.sec__btn { min-height: 21.5rem; }
.sec__list { gap: .24rem; font-size: .85rem; }
@media (max-width: 560px) { .core-card__facts > div { grid-template-columns: 1fr; gap: .15rem; } }

/* ===== revision 7 ===== */
/* spec table: non-rated note, dead link, tooltips above neighbouring labels */
.spec-nr { display: block; margin-top: .3rem; font-size: var(--text-xs); color: var(--blue-500); }
.text-link--off { cursor: default; opacity: .55; pointer-events: none; text-decoration: none; }
.hs:hover, .hs.is-open, .hs:focus-visible { z-index: 6; }
.hs:hover .hs__label, .hs.is-open .hs__label { opacity: 0; }

/* sector cards: icon and name lead */
.sec__icon { width: 3.1rem; height: 3.1rem; color: var(--blue-500); }
.sec__name { font-size: clamp(1.4rem, 1.1rem + .8vw, 1.75rem); line-height: 1.15; }
.sec__btn:hover .sec__icon { color: var(--navy-900); }
.sec__back-head { font-size: .72rem; }

/* company: intro under the title, founder left, 1978 photos stacked right and uncropped */
#company .section-head { display: block; }
#company .section-head .lede { margin-top: var(--space-4); max-width: 44rem; }
@media (min-width: 760px) {
  .history { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto; }
  .history__photo--founder { grid-column: 1; grid-row: 1 / 3; max-width: none; aspect-ratio: auto; height: 100%; }
  .history__photo--founder img { height: 100%; object-fit: cover; object-position: 50% 30%; }
  .history__photo--team { grid-column: 2; grid-row: 1; aspect-ratio: 1600 / 1117; height: auto; }
  .history__photo--floor { grid-column: 2; grid-row: 2; aspect-ratio: 1600 / 1214; height: auto; }
  .history__photo--team img, .history__photo--floor img { object-position: center; }
}
@media (min-width: 1040px) { .history { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); max-width: 64rem; } }
/* spec: picker lives in the core card, cutaway fills the card */
.core-card .spec2__pick { grid-column: 1 / -1; max-width: none; margin: 0; padding: var(--space-5) var(--space-5) 0; display: grid; gap: var(--space-3); }
.core-card .spec__prompt { margin: 0; font-size: var(--text-sm); color: var(--ink-600); }
.spec2 { align-items: stretch; }
@media (min-width: 1000px) {
  .core-card { grid-template-rows: auto 1fr; align-items: stretch; }
  .core-card__fig { padding: var(--space-5) 0 var(--space-5) var(--space-5); align-self: center; }
  .core-pic img { height: clamp(460px, 42vw, 600px); }
  .core-card__body { align-self: center; padding: var(--space-5) var(--space-6) var(--space-6) var(--space-5); }
  .spec2__door { padding: var(--space-5) var(--space-5) calc(var(--space-5) + 1.25rem); }
}
.sec__btn { min-height: 18rem; }
.sec__front .sec__name { margin-top: var(--space-5); }
.sec__front .sec__hint { margin-top: auto; padding-top: var(--space-3); }
.sec__list { gap: .18rem; font-size: .82rem; }
#company .section-head .lede { margin-left: 0; justify-self: start; text-align: left; }
@media (min-width: 1040px) {
  .history { max-width: none; grid-template-columns: 1000fr 1790fr 1647fr; grid-template-rows: auto; align-items: start; }
  .history__photo--founder { grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 1000 / 1250; }
  .history__photo--team { grid-column: 2; grid-row: 1; }
  .history__photo--floor { grid-column: 3; grid-row: 1; }
}
