/* =====================================================================
   MERLIN — site stylesheet (dark, premium)
   Brand: Merlin red (logo) on near-black. Typeface: Inter / Inter Display
   ===================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/Inter-Regular.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-Medium.woff") format("woff"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/Inter-SemiBold.woff") format("woff"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-Bold.woff") format("woff"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Inter Display"; src: url("../fonts/InterDisplay-ExtraBold.woff") format("woff"); font-weight: 800; font-display: swap; }

:root {
  --bg: #09090b;
  --bg-rgb: 9,9,11;
  --surface-rgb: 20,20,24;
  --fg-rgb: 255,255,255;
  --heading: #ffffff;
  --bg-2: #0f0f12;
  --surface: #141418;
  --surface-2: #1a1a1f;
  --surface-3: #222228;
  --line: rgba(var(--fg-rgb),.08);
  --line-2: rgba(var(--fg-rgb),.14);

  --text: #ededf0;
  --text-2: #b4b4bc;
  --muted: #85858f;

  --red: #e11d2a;          /* Merlin red, lifted for dark UI */
  --red-2: #ff3a46;
  --red-deep: #9b0a12;     /* logo crimson */
  --red-glow: rgba(225,29,42,.35);
  --red-soft: rgba(225,29,42,.12);

  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(18px, 2.5vw, 35px);
  --header-h: 76px;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-display: "Inter Display", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2,.7,.2,1);
}

/* Smooth cross-page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .38s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; transition: background-color .3s; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); color-scheme: dark; }
body { margin: 0; overflow-x: clip; background: var(--bg); color: var(--text); font: 400 17px/1.65 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; color: var(--text-2); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--heading); margin: 0 0 .5em; line-height: 1.08; letter-spacing: -0.025em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.0; }
h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); letter-spacing: -0.015em; line-height: 1.2; }
h4 { font-size: 1.05rem; letter-spacing: -0.005em; line-height: 1.3; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red-2); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 200; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: clamp(14px, 1.75vw, 24px) 0; }
.section--alt { background: var(--bg-2); }
.section--line { border-top: 1px solid var(--line); }
.center { text-align: center; }
.mt-lg { margin-top: clamp(40px, 6vw, 72px); }

/* subtle grain + grid backdrop used on hero-like areas */
.grid-bg::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); opacity: .55; }
.glow::after { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: 50%; top: -30%; transform: translateX(-50%); background: radial-gradient(circle, var(--red-glow) 0%, transparent 60%); filter: blur(40px); opacity: .55; pointer-events: none; z-index: 0; }
.section > .wrap { position: relative; z-index: 1; }

/* ---------- Eyebrow / headings ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); background: rgba(var(--fg-rgb),.03); margin-bottom: 22px; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft), 0 0 14px var(--red); }
.head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.head--center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--text-2); }
.head--split { max-width: none; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: end; }
.head--split p { margin: 0; }
@media (max-width: 900px) { .head--split { grid-template-columns: 1fr; gap: 12px; } }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--text-2); }
.accent { color: var(--red-2); }
.grad { background: linear-gradient(100deg, #fff 0%, #fff 40%, #ff6b73 75%, var(--red) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; font: 600 .95rem/1 var(--font); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, box-shadow .2s, color .2s; }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 8px 28px -8px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.2); }
.btn--primary:hover { background: var(--red-2); transform: translateY(-1px); box-shadow: 0 14px 34px -10px var(--red-glow), inset 0 1px 0 rgba(255,255,255,.25); }
.btn--ghost { border-color: var(--line-2); color: var(--heading); background: rgba(var(--fg-rgb),.03); }
.btn--ghost:hover { border-color: rgba(var(--fg-rgb),.35); background: rgba(var(--fg-rgb),.07); }
.btn--white { background: #fff; color: #0b0b0d; }
.btn--white:hover { background: #f0f0f2; }
.btn--sm { height: 42px; padding: 0 18px; font-size: .88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .93rem; color: var(--heading); }
.link svg { width: 16px; height: 16px; color: var(--red-2); transition: transform .25s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-solid { background: rgba(var(--bg-rgb),.78); backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav__list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; font: 500 .93rem/1 var(--font); color: var(--text-2); background: none; border: 0; cursor: pointer; transition: color .2s, background .2s; }
.nav__link:hover, .nav__item.is-open > .nav__link { color: var(--heading); background: rgba(var(--fg-rgb),.06); }
.nav__link[aria-current="page"], .nav__item.is-active > .nav__link { color: var(--heading); }
.nav__item.is-active > .nav__link::after, .nav__link[aria-current="page"]::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--red); margin-left: 2px; }
.nav__link svg { width: 14px; height: 14px; transition: transform .25s; }
.nav__item.is-open > .nav__link svg { transform: rotate(180deg); }
.nav__cta { margin-left: 10px; }

.mega { position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 8px); width: min(880px, 92vw); padding: 14px; border-radius: var(--radius-lg); background: rgba(var(--surface-rgb),.96); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--line-2); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .2s; display: grid; grid-template-columns: 260px 1fr; gap: 14px; }
.mega--sm { width: min(560px, 92vw); grid-template-columns: 1fr; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega__feature { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 260px; display: flex; align-items: flex-end; padding: 18px; isolation: isolate; }
.mega__feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mega__feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0,0,0,.85)); }
.mega__feature strong { display: block; font: 700 1.1rem/1.2 var(--font-display); color: var(--heading); margin-bottom: 4px; }
.mega__feature span { font-size: .85rem; color: var(--text-2); }
.mega__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; align-content: start; }
.mega__group { padding: 8px; }
.mega__group h5 { font: 600 .72rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.mega__link { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 8px; color: var(--text); font-size: .92rem; font-weight: 500; transition: background .15s; }
.mega__link:hover { background: rgba(var(--fg-rgb),.06); }
.mega__link:hover .mega__dot { background: var(--red); box-shadow: 0 0 10px var(--red); }
.mega__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--surface-3); flex: none; transition: background .2s, box-shadow .2s; }
.mega__link small { display: block; font-size: .78rem; color: var(--muted); font-weight: 400; }
.mega__all { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-top: 1px solid var(--line); margin-top: 4px; font-size: .9rem; font-weight: 600; }
.mega__all svg { width: 16px; height: 16px; color: var(--red-2); }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.04); color: var(--heading); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .i-close { display: none; }
body.nav-open .menu-btn .i-open { display: none; }
body.nav-open .menu-btn .i-close { display: block; }

@media (max-width: 1100px) {
  .menu-btn { display: inline-flex; }
  .header.is-solid, body.nav-open .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(var(--bg-rgb),.97); }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 40px; background: var(--bg); overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { width: 100%; justify-content: space-between; padding: 18px 4px; font-size: 1.15rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--heading); }
  .nav__link:hover, .nav__item.is-open > .nav__link { background: none; }
  .nav__item.is-active > .nav__link::after, .nav__link[aria-current="page"]::after { display: none; }
  .mega, .mega--sm { position: static; transform: none; width: auto; opacity: 1; visibility: visible; display: none; grid-template-columns: 1fr; background: none; border: 0; box-shadow: none; padding: 6px 0 14px; backdrop-filter: none; }
  .nav__item.is-open .mega { display: grid; transform: none; }
  .mega__feature { display: none; }
  .mega__cols { grid-template-columns: 1fr; }
  .mega__link small { display: none; }
  .nav__cta { margin: 24px 0 0; width: 100%; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: calc(var(--header-h) + 60px) 0 0; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s var(--ease); }
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 8s linear; }
.hero__slide.is-active img { transform: scale(1); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,.35) 35%, rgba(9,9,11,.85) 72%, #09090b 100%), linear-gradient(90deg, rgba(9,9,11,.85) 0%, rgba(9,9,11,.2) 70%); }
.hero__content { max-width: 920px; }
.hero h1 { margin-bottom: 26px; }
.hero .lead { max-width: 640px; margin-bottom: 36px; color: #d4d4da; }
.hero__verticals { margin-top: clamp(48px, 8vw, 96px); display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.vtab { position: relative; padding: 22px 22px 26px 0; border: 0; background: none; text-align: left; color: var(--text-2); cursor: pointer; font: inherit; }
.vtab + .vtab { padding-left: 22px; border-left: 1px solid var(--line); }
.vtab::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; }
.vtab.is-active::before { animation: vbar 6.5s linear forwards; }
@keyframes vbar { to { transform: scaleX(1); } }
.vtab b { display: flex; align-items: center; gap: 10px; font: 600 .8rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.vtab strong { display: block; font: 700 clamp(1.1rem, 1.8vw, 1.4rem)/1.2 var(--font-display); color: var(--heading); margin-bottom: 6px; letter-spacing: -0.01em; }
.vtab span { font-size: .9rem; line-height: 1.5; display: block; max-width: 340px; }
.vtab.is-active b { color: var(--red-2); }
@media (max-width: 760px) {
  .hero__verticals { grid-template-columns: 1fr; }
  .vtab + .vtab { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .vtab span { display: none; }
  .vtab { padding: 16px 0; }
}

/* ---------- Page hero ---------- */
.phero { position: relative; padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(56px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.phero--media { min-height: min(88vh, 820px); display: flex; align-items: flex-end; }
.phero__bg { position: absolute; inset: 0; z-index: -2; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero--media::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,11,.5) 0%, rgba(9,9,11,.45) 40%, rgba(9,9,11,.92) 85%, #09090b 100%), linear-gradient(90deg, rgba(9,9,11,.85), rgba(9,9,11,.1) 75%); }
.phero h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); max-width: 980px; }
.phero .lead { max-width: 700px; margin-bottom: 32px; color: #d0d0d6; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; font-size: .84rem; color: var(--muted); }
.crumbs a { color: var(--text-2); transition: color .2s; }
.crumbs a:hover { color: var(--heading); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: #4a4a52; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: clamp(14px, 2vw, 22px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) { .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g-2, .g-3, .g-4, .g-5 { grid-template-columns: 1fr; } }

.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 2.6vw, 30px); transition: border-color .3s, transform .3s var(--ease), background .3s; overflow: hidden; }
.card:hover { border-color: var(--line-2); background: var(--surface-2); }
.card h3 { margin-bottom: 10px; }
.card p { margin: 0; font-size: .96rem; }
.card--spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, -20%), rgba(225,29,42,.13), transparent 45%); opacity: 0; transition: opacity .3s; }
.card--spot:hover::before { opacity: 1; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--red-2); background: var(--red-soft); border: 1px solid rgba(225,29,42,.25); margin-bottom: 22px; }
.icon svg { width: 22px; height: 22px; }
.num { font: 700 .82rem/1 var(--font-display); color: var(--red-2); letter-spacing: .06em; margin-bottom: 18px; display: block; }

/* image card */
.icard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.icard:hover { border-color: var(--line-2); transform: translateY(-4px); }
.icard__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.icard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.icard:hover .icard__media img { transform: scale(1.06); }
.icard__tag { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: rgba(9,9,11,.7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid var(--line-2); font-size: .74rem; font-weight: 500; letter-spacing: .04em; color: #fff; }
.icard__body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.icard__body h3 { margin-bottom: 8px; }
.icard__body p { font-size: .95rem; flex: 1; margin-bottom: 18px; }
.icard--light .icard__media { background: #f2f2f4; }
.icard--light .icard__media img { object-fit: contain; padding: 4%; }

/* overlay tile (bento) */
.tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-xl); overflow: hidden; isolation: isolate; border: 1px solid var(--line); }
.tile > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9,9,11,.05) 20%, rgba(9,9,11,.9) 100%); transition: background .4s; }
.tile:hover > img { transform: scale(1.05); }
.tile:hover::before { background: linear-gradient(180deg, rgba(9,9,11,.1) 10%, rgba(9,9,11,.95) 100%); }
.tile h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 8px; }
.tile p { color: #d0d0d6; max-width: 460px; margin-bottom: 18px; font-size: .97rem; }
.tile .tile__k { position: absolute; top: clamp(22px, 3vw, 34px); left: clamp(22px, 3vw, 34px); font: 600 .75rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--heading); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(9,9,11,.5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(14px, 2vw, 22px); }
.bento > :nth-child(1) { grid-column: span 4; min-height: 520px; }
.bento > :nth-child(2) { grid-column: span 2; }
.bento > :nth-child(3) { grid-column: 1 / -1; }
.bento > :nth-child(4) { grid-column: span 3; }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .bento > * { grid-column: auto !important; min-height: 340px !important; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden; background: var(--line); }
.stat { padding: clamp(22px, 2.4vw, 32px); position: relative; background: var(--surface); }

.stat b { display: flex; align-items: baseline; gap: 2px; font: 800 clamp(2.1rem, 3.2vw, 3rem)/1 var(--font-display); letter-spacing: -0.04em; color: var(--heading); margin-bottom: 14px; }
.stat b em { font-style: normal; color: var(--red-2); font-size: .6em; }
.stat b span { display: inline; font: inherit; color: inherit; margin: 0; }
.stat strong { display: block; color: var(--heading); font-weight: 600; margin-bottom: 4px; }
.stat span { color: var(--muted); font-size: .9rem; line-height: 1.45; display: block; }
@media (max-width: 1100px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat:last-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split__media { position: relative; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.split__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.split__media--light { background: #f2f2f4; }
.split__media--light img { object-fit: contain; padding: 6%; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split--rev > :first-child { order: 0; } }

/* ---------- Lists ---------- */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--text-2); line-height: 1.5; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--red-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff3a46' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/11px no-repeat; border: 1px solid rgba(225,29,42,.3); }
.ticks--2 { grid-template-columns: 1fr 1fr; gap: 12px 28px; }
@media (max-width: 640px) { .ticks--2 { grid-template-columns: 1fr; } }
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.pills li { padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.03); font-size: .92rem; color: var(--text); }

/* ---------- Spec table ---------- */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.spec { display: grid; grid-template-columns: 42% 1fr; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.spec:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .88rem; }
.spec dd { margin: 0; color: var(--heading); font-weight: 500; font-size: .95rem; }
@media (max-width: 760px) { .specs { grid-template-columns: 1fr; } .spec:nth-child(odd) { border-right: 0; } }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .94rem; }
table.cmp th, table.cmp td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.cmp thead th { font: 600 .75rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
table.cmp thead th.hl { color: var(--heading); background: linear-gradient(180deg, rgba(225,29,42,.25), rgba(225,29,42,.08)); }
table.cmp td:first-child { color: var(--heading); font-weight: 500; }
table.cmp td { color: var(--text-2); }
table.cmp td.hl { color: var(--heading); background: rgba(225,29,42,.05); }
table.cmp tr:last-child td { border-bottom: 0; }

/* ---------- Steps / timeline ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps--3 { grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 28px 24px 8px 0; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step::before { content: ""; position: absolute; top: -1px; left: 0; width: 40%; height: 2px; background: var(--red); }
.step + .step::before { left: 24px; }
.step .num { margin-bottom: 14px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: .94rem; margin: 0; }
@media (max-width: 900px) { .steps, .steps--3 { grid-template-columns: 1fr 1fr; } .step:nth-child(odd) { padding-left: 0; border-left: 0; } .step:nth-child(odd)::before { left: 0; } }
@media (max-width: 560px) { .steps, .steps--3 { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; } .step + .step::before { left: 0; } }

.phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: p; }
.phases li { counter-increment: p; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.phases li::before { content: "Phase " counter(p, decimal-leading-zero); display: block; font: 600 .74rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; }
.phases h4 { margin-bottom: 6px; }
.phases p { margin: 0; font-size: .9rem; }
@media (max-width: 1000px) { .phases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .phases { grid-template-columns: 1fr; } }

.timeline { position: relative; display: grid; gap: clamp(28px, 4vw, 48px); }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--line-2) 8%, var(--line-2) 92%, transparent); }
.tl { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; position: relative; }
.tl::before { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 13px; border-radius: 50%; background: var(--red); transform: translate(-50%, -50%); box-shadow: 0 0 0 6px var(--bg), 0 0 0 7px var(--line-2), 0 0 24px var(--red); }
.tl:nth-child(even) .tl__media { order: 2; }
.tl__media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tl__media img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tl__year { font: 800 clamp(2.4rem, 5vw, 4rem)/1 var(--font-display); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),.35); margin-bottom: 12px; display: block; }
.tl h3 { margin-bottom: 10px; }
.tl p { margin: 0; font-size: .97rem; }
@media (max-width: 860px) {
  .timeline::before { left: 6px; }
  .tl { grid-template-columns: 1fr; padding-left: 34px; gap: 18px; }
  .tl::before { left: 6px; top: 20px; }
  .tl:nth-child(even) .tl__media { order: 0; }
}

/* ---------- Marquee (clients) ---------- */
.marquee { position: relative; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: clamp(48px, 7vw, 96px); width: max-content; animation: marquee 32s linear infinite; align-items: center; padding: 10px 0; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee img { height: 52px; width: auto; max-width: 180px; object-fit: contain; opacity: .78; filter: grayscale(1) brightness(1.6); transition: opacity .3s, filter .3s; }
.marquee img:hover { opacity: 1; filter: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Tabs ---------- */
.tabs__list { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); margin-bottom: 32px; flex-wrap: wrap; }
.tabs__btn { height: 42px; padding: 0 20px; border-radius: 999px; border: 0; background: none; color: var(--text-2); font: 500 .92rem/1 var(--font); cursor: pointer; transition: background .2s, color .2s; }
.tabs__btn[aria-selected="true"] { background: var(--heading); color: var(--bg); }
.tabs__panel[hidden] { display: none; }
.tabs__panel { animation: fadeUp .45s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Accordion ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font: 600 1.05rem/1.4 var(--font); color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform .3s, background .3s; }
.faq summary i::before { content: "+"; font-style: normal; font-size: 1.2rem; line-height: 1; color: var(--text-2); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--red); border-color: var(--red); }
.faq details[open] summary i::before { color: #fff; }
.faq details p { padding: 0 52px 22px 0; margin: 0; }

/* ---------- Flow (line automation) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: f; }
.flow > div { counter-increment: f; position: relative; padding: 24px 22px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
.flow > div::before { content: counter(f, decimal-leading-zero); position: absolute; right: 18px; top: 16px; font: 800 2rem/1 var(--font-display); color: rgba(var(--fg-rgb),.06); }
.flow h4 { margin-bottom: 12px; padding-right: 40px; }
.flow ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.flow li { font-size: .8rem; padding: 5px 10px; border-radius: 999px; background: rgba(var(--fg-rgb),.05); color: var(--text-2); }
@media (max-width: 1000px) { .flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .flow { grid-template-columns: 1fr; } }

/* ---------- Product subnav ---------- */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: rgba(var(--bg-rgb),.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); border-top: 1px solid var(--line); }
.subnav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.subnav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .88rem; color: var(--text-2); white-space: nowrap; transition: color .2s, background .2s; }
.subnav li a:hover, .subnav li a.is-current { color: var(--heading); background: rgba(var(--fg-rgb),.07); }
.subnav strong { font: 700 .95rem/1 var(--font-display); color: var(--heading); white-space: nowrap; }
@media (max-width: 760px) { .subnav strong, .subnav .btn { display: none; } }

/* ---------- Config cards (SPM vs robotic) ---------- */
.config { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.config__card { border-radius: var(--radius-xl); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.config__media { background: #f2f2f4; aspect-ratio: 4/3; }
.config__media img { width: 100%; height: 100%; object-fit: contain; padding: 4%; }
.config__body { padding: 26px 28px 30px; }
.config__body h3 { margin-bottom: 8px; }
@media (max-width: 760px) { .config { grid-template-columns: 1fr; } }

/* ---------- Lineup (printers) ---------- */
.lineup { display: grid; gap: clamp(14px, 2vw, 22px); }
.lineup__item { display: grid; grid-template-columns: 1.1fr 1fr; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.lineup__item:nth-child(even) .lineup__media { order: 2; }
.lineup__media { background: #f2f2f4; min-height: 340px; }
.lineup__media img { width: 100%; height: 100%; object-fit: cover; }
.lineup__body { padding: clamp(26px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.lineup__body .tag { display: inline-block; align-self: flex-start; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--red-2); margin-bottom: 14px; font-weight: 600; }
.lineup__body h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lineup__meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 22px; }
.lineup__meta span { font-size: .82rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); }
@media (max-width: 860px) { .lineup__item { grid-template-columns: 1fr; } .lineup__item:nth-child(even) .lineup__media { order: 0; } .lineup__media { min-height: 240px; } }

/* ---------- Figure ---------- */
.figure { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure img { width: 100%; }
.figure--dark { background: var(--surface); }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: clamp(40px, 7vw, 96px) clamp(24px, 6vw, 80px); background: radial-gradient(120% 140% at 100% 0%, rgba(225,29,42,.55) 0%, rgba(155,10,18,.35) 30%, transparent 60%), var(--surface); border: 1px solid var(--line-2); isolation: isolate; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); opacity: .5; }
.cta h2 { max-width: 760px; }
.cta p { max-width: 560px; font-size: 1.1rem; margin-bottom: 32px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label { font-size: .85rem; font-weight: 500; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--heading); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; transition: border-color .2s, box-shadow .2s, background .2s; }
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b4b4bc' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 44px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); background: var(--surface); }
.field input[type=file] { padding: 12px; font-size: .9rem; color: var(--text-2); }
.field input[type=file]::file-selector-button { font: 600 .85rem var(--font); margin-right: 14px; padding: 9px 14px; border-radius: 999px; border: 0; background: #fff; color: #0b0b0d; cursor: pointer; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--red-2); }
.field__err { display: none; font-size: .8rem; color: var(--red-2); }
.field.has-error .field__err { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: .95rem; }
.form-status.ok { display: block; background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.35); color: #bbf7d0; }
.form-status.err { display: block; background: var(--red-soft); border: 1px solid rgba(225,29,42,.4); color: #fecaca; }
.form-status a { text-decoration: underline; }
.panel { border-radius: var(--radius-xl); border: 1px solid var(--line-2); background: var(--surface); padding: clamp(22px, 4vw, 44px); }

.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; padding: 20px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.contact-list .icon { margin: 0; flex: none; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.contact-list a, .contact-list span { color: var(--heading); font-weight: 500; }
.map { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); line-height: 0; }
.map iframe { width: 100%; height: 440px; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) contrast(.9); }

/* ---------- News ---------- */
.post { max-width: 760px; margin: 0 auto; }
.post p { font-size: 1.08rem; line-height: 1.8; }
.post__media { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); margin: 0 0 40px; }
.meta { display: flex; gap: 14px; align-items: center; font-size: .85rem; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.meta .chip { padding: 5px 12px; border-radius: 999px; background: var(--red-soft); color: var(--red-2); font-weight: 600; font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: clamp(56px, 8vw, 96px) 0 0; position: relative; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1.3fr; gap: 36px; padding-bottom: 56px; }
@media (max-width: 1100px) { .footer__top { grid-template-columns: 1fr 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__contact { grid-column: 1 / -1; } }
.footer__brand img { height: 38px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 340px; font-size: .95rem; }
.footer h5 { font: 600 .75rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 18px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--text-2); font-size: .94rem; transition: color .2s; }
.footer a:hover { color: var(--heading); }
.footer address { font-style: normal; color: var(--text-2); font-size: .94rem; line-height: 1.7; margin-bottom: 12px; }
.footer__big { font: 800 clamp(4rem, 17vw, 15rem)/.8 var(--font-display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(var(--fg-rgb),.08); text-align: center; user-select: none; margin: 0 0 -0.12em; white-space: nowrap; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); position: relative; z-index: 1; background: var(--bg-2); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--heading); transition: background .2s, border-color .2s; }
.socials a:hover { background: var(--red); border-color: var(--red); }
.socials svg { width: 17px; height: 17px; }

.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 50; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--surface-rgb),.85); backdrop-filter: blur(10px); color: var(--heading); display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .25s, transform .25s, visibility .25s, background .2s; }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); border-color: var(--red); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}
.split__media--tall img { aspect-ratio: 3/4; max-height: 760px; object-position: center 60%; }
.showcase { display: grid; grid-template-columns: 0.75fr 1fr; grid-template-rows: 1fr 1fr; gap: clamp(14px, 2vw, 22px); }
.showcase > div { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); }
.showcase img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.showcase > div:hover img { transform: scale(1.04); }
.showcase__tall { grid-row: span 2; }
@media (max-width: 760px) { .showcase { grid-template-columns: 1fr; grid-template-rows: none; } .showcase__tall { grid-row: auto; } .showcase__wide img { aspect-ratio: 16/9; } }
/* Overview photo gallery */
.ogal { display: grid; gap: 10px; }
.ogal__main { border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4/3; background: var(--surface); }
.ogal__main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s var(--ease); }
.ogal__main img.is-fading { opacity: 0; }
.ogal__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ogal__thumb { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: none; cursor: pointer; aspect-ratio: 4/3; opacity: .55; transition: opacity .2s, border-color .2s; }
.ogal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.ogal__thumb:hover { opacity: .85; }
.ogal__thumb.is-active { opacity: 1; border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
/* Zoom affordance */
.ogal__main, .zoomable { position: relative; cursor: zoom-in; }
.ogal__main::after, .zoomable::after { content: ""; position: absolute; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%; background: rgba(9,9,11,.65) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center/18px no-repeat; border: 1px solid var(--line-2); opacity: 0; transition: opacity .2s; backdrop-filter: blur(6px); }
.ogal__main:hover::after, .zoomable:hover::after, .ogal__main:focus-visible::after, .zoomable:focus-visible::after { opacity: 1; }

/* Lightbox */
body.lb-open { overflow: hidden; }
.lb { position: fixed; inset: 0; z-index: 300; display: grid; grid-template-columns: 72px 1fr 72px; grid-template-rows: 64px 1fr; align-items: center; background: rgba(5,5,7,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .2s; padding: 0 12px 24px; }
.lb.is-open { opacity: 1; }
.lb[hidden] { display: none; }
.lb__bar { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding: 0 6px; }
.lb__count { color: var(--text-2); font-size: .9rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lb__fig { grid-column: 2; margin: 0; height: 100%; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lb__img { max-width: min(90vw, 1500px); max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); transition: opacity .15s, transform .25s var(--ease); }
.lb.is-open .lb__img { transform: none; }
.lb__img.is-fading { opacity: 0; }
.lb__cap { color: var(--text-2); font-size: .92rem; text-align: center; }
.lb__btn { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(255,255,255,.06); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s, border-color .2s; }
.lb__btn:hover { background: var(--red); border-color: var(--red); }
.lb__btn svg { width: 22px; height: 22px; }
.lb__close { width: 44px; height: 44px; }
.lb__prev { grid-column: 1; justify-self: center; }
.lb__next { grid-column: 3; justify-self: center; }
.lb__btn[hidden] { display: none; }
@media (max-width: 700px) {
  .lb { grid-template-columns: 1fr; grid-template-rows: 64px 1fr; padding: 0 8px 90px; }
  .lb__fig { grid-column: 1; }
  .lb__img { max-width: 96vw; max-height: calc(100vh - 220px); }
  .lb__prev, .lb__next { position: fixed; bottom: 24px; }
  .lb__prev { left: calc(50% - 64px); } .lb__next { left: calc(50% + 12px); }
}

/* =====================================================================
   LIGHT THEME  (html[data-theme="light"]) — dark is the default
   ===================================================================== */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff; --bg-rgb: 255,255,255;
  --bg-2: #f4f4f6;
  --surface: #ffffff; --surface-rgb: 255,255,255;
  --surface-2: #f7f7f9;
  --surface-3: #e7e7ec;
  --fg-rgb: 12,12,16;
  --line: rgba(12,12,16,.09);
  --line-2: rgba(12,12,16,.16);
  --heading: #0b0b0e;
  --text: #1a1a1f;
  --text-2: #4a4a54;
  --muted: #6e6e78;
  --red: #c8101c;
  --red-2: #d4151f;
  --red-glow: rgba(200,16,28,.28);
  --red-soft: rgba(200,16,28,.08);
}
html[data-theme="light"] .card, html[data-theme="light"] .icard, html[data-theme="light"] .config__card,
html[data-theme="light"] .lineup__item, html[data-theme="light"] .stats, html[data-theme="light"] .specs,
html[data-theme="light"] .panel, html[data-theme="light"] .contact-list li, html[data-theme="light"] .phases li,
html[data-theme="light"] .table-wrap { box-shadow: 0 1px 2px rgba(12,12,16,.04), 0 6px 24px -10px rgba(12,12,16,.10); }
html[data-theme="light"] .glow::after { opacity: .18; }
html[data-theme="light"] .grad { background: linear-gradient(100deg, #fff 0%, #fff 40%, #ff8a90 75%, #ff4a55 100%); -webkit-background-clip: text; background-clip: text; }
html[data-theme="light"] .tl__year { -webkit-text-stroke-color: rgba(12,12,16,.35); }
html[data-theme="light"] .footer__big { -webkit-text-stroke-color: rgba(12,12,16,.08); }
html[data-theme="light"] .map iframe { filter: none; }
html[data-theme="light"] .marquee img { filter: grayscale(1) contrast(1.1); opacity: .7; }
html[data-theme="light"] .flow > div { background: linear-gradient(180deg, var(--surface-2), var(--surface)); }
html[data-theme="light"] .field input, html[data-theme="light"] .field select, html[data-theme="light"] .field textarea { color: var(--heading); background: var(--bg-2); }
html[data-theme="light"] .field input:focus, html[data-theme="light"] .field select:focus, html[data-theme="light"] .field textarea:focus { background: #fff; }
html[data-theme="light"] .form-status.ok { color: #166534; }
html[data-theme="light"] .form-status.err { color: #991b1b; }
/* Header always solid in light so the dark logo is readable */
html[data-theme="light"] .header { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom-color: var(--line); }
html[data-theme="light"] .mega { box-shadow: 0 30px 80px -24px rgba(12,12,16,.28); }

/* Areas that sit on photos or are designed dark stay dark in both themes */
.hero, .phero--media, .tile, .mega__feature, .cta, .lb, .vtab, .section--photo {
  --bg: #09090b; --bg-rgb: 9,9,11; --bg-2: #0f0f12; --surface: #141418; --surface-rgb: 20,20,24; --surface-2: #1a1a1f; --surface-3: #222228;
  --fg-rgb: 255,255,255; --line: rgba(255,255,255,.08); --line-2: rgba(255,255,255,.14);
  --heading: #ffffff; --text: #ededf0; --text-2: #b4b4bc; --muted: #85858f;
  --red: #e11d2a; --red-2: #ff3a46; --red-soft: rgba(225,29,42,.12);
}
.cta { background-color: #141418; }
html[data-theme="light"] .phero:not(.phero--media) .crumbs a { color: var(--text-2); }

/* Logo swap */
.brand .logo-dark, .footer__brand .logo-dark { display: none; }
html[data-theme="light"] .brand .logo-light, html[data-theme="light"] .footer__brand .logo-light { display: none; }
html[data-theme="light"] .brand .logo-dark, html[data-theme="light"] .footer__brand .logo-dark { display: inline-block; }

/* Theme toggle */
.theme-toggle { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(var(--fg-rgb),.04); color: var(--heading); display: inline-grid; place-items: center; cursor: pointer; margin-left: 8px; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.theme-toggle:hover { background: rgba(var(--fg-rgb),.09); }
.theme-toggle:active { transform: rotate(-25deg) scale(.94); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
html[data-theme="light"] .theme-toggle .i-sun { display: block; }
html[data-theme="light"] .theme-toggle .i-moon { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
@media (max-width: 1100px) { .theme-toggle { margin-left: 0; width: 46px; height: 46px; } }
@media (max-width: 1100px) { html[data-theme="light"] .header { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(255,255,255,.97); } }

/* Brochure block */
.brochure { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.brochure__text h2 { margin: 0 0 14px; }
.brochure__meta { margin-top: 18px; font-size: .85rem; color: var(--muted); }
.brochure__pages { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.brochure__page { margin: 0; aspect-ratio: 1 / 1.414; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: var(--surface-2); box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: transform .3s ease, box-shadow .3s ease; }
.brochure__page img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brochure__page:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,.35); }
html[data-theme="light"] .brochure__page { box-shadow: 0 8px 24px rgba(12,12,16,.10); }
@media (max-width: 900px) { .brochure { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .brochure__pages { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.brochure__pages--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; justify-self: center; width: 100%; }
.hero__slide img[src$="hero-weaver-night.webp"] { object-position: 50% 40%; }

/* Home hero slideshow controls */
.hero__controls { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-top: clamp(28px, 5vw, 56px); }
.hero__controls + .hero__verticals { margin-top: 18px; }
.hero__count { margin-right: 6px; font-size: .7rem; letter-spacing: .08em; color: rgba(255,255,255,.65); font-variant-numeric: tabular-nums; }
.hero__count b { color: #fff; font-weight: 600; }
.hctl { position: relative; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; padding: 0; cursor: pointer; color: #fff; background: rgba(9,9,11,.45); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .2s; }
.hctl svg { width: 8px; height: 8px; stroke-width: 2.4; }
.hctl::after { content: ""; position: absolute; inset: -6px; }
.hctl:hover { background: var(--red); border-color: var(--red); }
.hctl:active { transform: scale(.94); }
.hctl:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hctl .i-play, .is-paused .hctl .i-pause { display: none; }
.is-paused .hctl .i-play { display: block; }
.hero.is-paused .vtab.is-active::before { animation-play-state: paused; }
@media (max-width: 560px) { .hctl { width: 17px; height: 17px; } .hero__count { margin-right: auto; } }

/* Page banner slideshow */
.phero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.2s var(--ease); }
.phero__slide.is-active { opacity: 1; }
.phero__slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.phero__slide.is-active img { transform: scale(1); }
.phero__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.phero__foot .btn-row { margin: 0; }
.phero__foot .hero__controls { margin: 0 0 0 auto; }
@media (max-width: 560px) { .phero__foot .hero__controls { width: 100%; margin: 0; } }

/* Footer: product categories */
.footer__count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 999px; font-size: .72rem; font-weight: 600; color: var(--muted); border: 1px solid var(--line-2); vertical-align: 1px; }
.footer a:hover .footer__count { color: var(--heading); border-color: var(--red); }
.footer__all { display: inline-flex; align-items: center; gap: 6px; color: var(--red-2) !important; font-weight: 600; }
.footer__all svg { width: 15px; height: 15px; }

/* Section with photo background (e.g. homepage "How we work") */
.section--photo { background: linear-gradient(180deg, rgba(9,9,11,.78) 0%, rgba(9,9,11,.45) 50%, rgba(9,9,11,.8) 100%), url(../img/bg-workshop.webp) center / cover no-repeat; background-color: #09090b; color: var(--text); }
.section--photo .steps { background: transparent; }
.section--photo-wh { background: linear-gradient(180deg, rgba(9,9,11,.55) 0%, rgba(9,9,11,.2) 50%, rgba(9,9,11,.65) 100%), url(../img/bg-warehouse-dark.webp) center / cover no-repeat; background-color: #09090b; }
.section--photo .flow > div { background: rgba(20,20,24,.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
