/* =====================================================================
   GLOBE WINNER — public design system
   Concept "Meridian": latitude/longitude linework, a deep-ink base,
   a signal-cobalt primary and a winner-amber accent.
   All colours are tokens; themes only swap tokens.
   ===================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --brand: #1f4fd1;          /* overridden from admin settings */
  --accent: #f2a20c;         /* overridden from admin settings */

  --font-sans: "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
               "Noto Sans", "Noto Sans Sinhala", "Iskoola Pota", "Sinhala Sangam MN",
               "Noto Sans Tamil", "Latha", "Tamil Sangam MN",
               "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans JP", sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial,
               "Noto Sans Sinhala", "Iskoola Pota", "Noto Sans Tamil", "Latha", "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  --step--1: clamp(.83rem, .8rem + .15vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.1rem + .45vw, 1.42rem);
  --step-2: clamp(1.44rem, 1.25rem + .9vw, 1.95rem);
  --step-3: clamp(1.73rem, 1.4rem + 1.6vw, 2.65rem);
  --step-4: clamp(2.07rem, 1.5rem + 2.8vw, 3.75rem);

  --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: 7rem;

  --radius-s: 6px; --radius: 12px; --radius-l: 20px; --radius-pill: 999px;
  --container: 1240px;
  --header-h: 72px;
  --ease: cubic-bezier(.2,.7,.2,1);

  /* light theme (default) */
  --bg: #f6f5f1;
  --bg-elev: #ffffff;
  --bg-sunken: #eceae3;
  --ink: #0b1530;
  --ink-2: #39435c;
  --ink-3: #5c6680;          /* ≥ 4.5:1 on --bg */
  --line: #d9d6cc;
  --line-strong: #b9b5a8;
  --primary: var(--brand);
  --primary-ink: #ffffff;
  --primary-soft: color-mix(in srgb, var(--brand) 10%, transparent);
  --accent-ink: #1a1200;
  --focus: #0b57d0;
  --success: #116b3a; --success-bg: #e3f4ea;
  --danger: #a3221c;  --danger-bg: #fbe7e5;
  --warning: #7a4d00; --warning-bg: #fff2d6;
  --info: #174ea6;    --info-bg: #e5edfb;
  --shadow-1: 0 1px 2px rgb(11 21 48 / .06), 0 2px 8px rgb(11 21 48 / .05);
  --shadow-2: 0 4px 12px rgb(11 21 48 / .08), 0 18px 40px rgb(11 21 48 / .08);
  --hero-bg: #0b1530;
  --hero-ink: #f4f6fb;
  --hero-ink-2: #b9c3dc;
  --meridian: rgb(255 255 255 / .09);
  color-scheme: light;
}

/* dark tokens: applied for explicit dark, and for "system" when the OS prefers dark */
:root[data-theme="dark"] {
  --bg: #070d1f; --bg-elev: #0f1a35; --bg-sunken: #050a18;
  --ink: #e9edf7; --ink-2: #c3cbe0; --ink-3: #98a3bf;
  --line: #22304f; --line-strong: #35466d;
  --primary: color-mix(in srgb, var(--brand) 70%, white);
  --primary-ink: #050a18;
  --primary-soft: color-mix(in srgb, var(--brand) 22%, transparent);
  --focus: #8ab4ff;
  --success: #6fdc9b; --success-bg: #0e2a1b;
  --danger: #ff9a92;  --danger-bg: #36110f;
  --warning: #ffcd6b; --warning-bg: #2f2208;
  --info: #9fc0ff;    --info-bg: #0f2145;
  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 10px 30px rgb(0 0 0 / .45);
  --hero-bg: #040917;
  --meridian: rgb(255 255 255 / .07);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="system"] {
    --bg: #070d1f; --bg-elev: #0f1a35; --bg-sunken: #050a18;
    --ink: #e9edf7; --ink-2: #c3cbe0; --ink-3: #98a3bf;
    --line: #22304f; --line-strong: #35466d;
    --primary: color-mix(in srgb, var(--brand) 70%, white);
    --primary-ink: #050a18;
    --primary-soft: color-mix(in srgb, var(--brand) 22%, transparent);
    --focus: #8ab4ff;
    --success: #6fdc9b; --success-bg: #0e2a1b;
    --danger: #ff9a92;  --danger-bg: #36110f;
    --warning: #ffcd6b; --warning-bg: #2f2208;
    --info: #9fc0ff;    --info-bg: #0f2145;
    --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
    --shadow-2: 0 10px 30px rgb(0 0 0 / .45);
    --hero-bg: #040917;
    --meridian: rgb(255 255 255 / .07);
    color-scheme: dark;
  }
}
/* Fallback for browsers without color-mix() */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  :root { --primary-soft: rgb(31 79 209 / .1); }
  :root[data-theme="dark"] { --primary: #7f9cf0; --primary-soft: rgb(31 79 209 / .25); }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
:lang(si), :lang(ta) { line-height: 1.75; }
:lang(ja) { line-height: 1.8; word-break: normal; line-break: strict; }
img, svg, video, picture { max-width: 100%; height: auto; display: block; }
picture img { width: 100%; }
a { color: var(--primary); text-underline-offset: .18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 var(--space-4); letter-spacing: -.015em; font-weight: 700; color: var(--ink); text-wrap: balance; }
:lang(si) :is(h1,h2,h3), :lang(ta) :is(h1,h2,h3), :lang(ja) :is(h1,h2,h3) { line-height: 1.35; letter-spacing: 0; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }
p { margin: 0 0 var(--space-4); }
ul, ol { padding-inline-start: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }
button, input, select, textarea { font: inherit; color: inherit; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: start; padding: .6rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; color: var(--ink-2); }
code { font-family: var(--font-mono); font-size: .9em; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip-link {
  position: absolute; inset-inline-start: 1rem; top: -100px; z-index: 1000;
  background: var(--ink); color: var(--bg); padding: .75rem 1rem; border-radius: var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 1rem; }
.visually-hidden, .hp {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: -.25em; }
.icon-fill { fill: currentColor; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.section { padding-block: var(--space-8); }
.section-tight { padding-block: var(--space-7); }
.section-alt { background: var(--bg-sunken); }
.stack > * + * { margin-top: var(--space-4); }
.muted { color: var(--ink-3); }
.lead { font-size: var(--step-1); color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: var(--step--1); font-weight: 650;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--space-3);
}
:lang(ja) .eyebrow, :lang(si) .eyebrow, :lang(ta) .eyebrow { letter-spacing: .04em; text-transform: none; }
.eyebrow::before { content: ""; width: 1.5rem; height: 2px; background: var(--accent); border-radius: 2px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: var(--space-4); margin-bottom: var(--space-6); }
.section-head h2 { margin: 0; max-width: 22ch; }
.section-head p { margin: 0; max-width: 52ch; color: var(--ink-2); }

/* ---------- 3. Buttons, chips, badges ---------- */
.btn {
  --btn-bg: var(--bg-elev); --btn-ink: var(--ink); --btn-line: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 44px; padding: .65rem 1.2rem; border-radius: var(--radius-pill);
  border: 1px solid var(--btn-line); background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.2;
  transition: transform .15s var(--ease), background-color .15s, border-color .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; border-color: var(--ink-3); box-shadow: var(--shadow-1); }
.btn:active { transform: translateY(1px); }
.btn-primary { --btn-bg: var(--primary); --btn-ink: var(--primary-ink); --btn-line: transparent; }
.btn-primary:hover { --btn-bg: color-mix(in srgb, var(--primary) 88%, black); border-color: transparent; }
.btn-accent { --btn-bg: var(--accent); --btn-ink: var(--accent-ink); --btn-line: transparent; }
.btn-ghost { --btn-bg: transparent; --btn-line: transparent; }
.btn-ghost:hover { --btn-bg: var(--primary-soft); box-shadow: none; }
.btn-on-dark { --btn-bg: rgb(255 255 255 / .08); --btn-ink: #fff; --btn-line: rgb(255 255 255 / .28); }
.btn-on-dark:hover { --btn-bg: rgb(255 255 255 / .16); border-color: #fff; }
.btn-sm { min-height: 36px; padding: .4rem .85rem; font-size: var(--step--1); }
.btn-block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

.chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; min-height: 32px;
  border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--bg-elev);
  color: var(--ink-2); font-size: var(--step--1); text-decoration: none; white-space: nowrap;
}
a.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.chip[aria-current="page"], .chip.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 0; list-style: none; }

.badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: var(--radius-s);
  font-size: .78rem; font-weight: 650; letter-spacing: .02em; background: var(--bg-sunken); color: var(--ink-2); border: 1px solid var(--line);
}
.badge-new { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-used { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-refurbished { background: var(--info-bg); color: var(--info); border-color: transparent; }
.badge-verified { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.badge-service { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--ink); border-color: transparent; }

/* ---------- 4. Header & navigation ---------- */
.utility-bar { background: var(--hero-bg); color: var(--hero-ink-2); font-size: var(--step--1); }
.utility-bar .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 40px; flex-wrap: wrap; }
.utility-bar a { color: var(--hero-ink); text-decoration: none; display: inline-flex; gap: .4rem; align-items: center; }
.utility-bar a:hover { text-decoration: underline; }
.utility-contacts { display: flex; gap: 1.25rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.utility-tools { display: flex; gap: .5rem; align-items: center; margin-inline-start: auto; }

.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
@supports not (backdrop-filter: blur(1px)) { .site-header { background: var(--bg); } }
.site-header .container { display: flex; align-items: center; gap: var(--space-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-logo { max-height: 44px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: .06em; }
.brand-motto { font-size: .72rem; color: var(--ink-3); letter-spacing: .02em; }

.primary-nav { margin-inline-start: auto; }
.primary-nav > ul { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a, .nav-toggle-btn {
  display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: .5rem .8rem; border-radius: var(--radius-pill);
  color: var(--ink); text-decoration: none; font-weight: 550; background: none; border: 0; cursor: pointer;
}
.primary-nav a:hover, .nav-toggle-btn:hover { background: var(--primary-soft); text-decoration: none; }
.primary-nav a[aria-current="page"] { color: var(--primary); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.nav-toggle-btn .icon { transition: transform .2s var(--ease); width: 1rem; height: 1rem; }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid transparent; background: none; color: var(--ink); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--primary-soft); }
.icon-btn .icon { width: 22px; height: 22px; }

/* Mega menu */
.mega {
  position: absolute; inset-inline: 0; top: 100%; background: var(--bg-elev); border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-2); padding-block: var(--space-6);
}
.mega[hidden] { display: none; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem 1.5rem; }
.mega-link { display: flex; gap: .85rem; padding: .75rem; border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.mega-link:hover { background: var(--primary-soft); text-decoration: none; }
.mega-link .tile-icon { width: 44px; height: 44px; }
.mega-link strong { display: block; font-weight: 650; }
.mega-link span { font-size: var(--step--1); color: var(--ink-3); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--line); }

/* Dropdown menus (language, theme) */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 6px); min-width: 190px; z-index: 60;
  background: var(--bg-elev); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2);
  padding: .4rem; list-style: none; margin: 0;
}
.dropdown-menu[hidden] { display: none; }
.dropdown-menu a, .dropdown-menu button {
  display: flex; width: 100%; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; text-align: start; min-height: 40px;
}
.dropdown-menu a:hover, .dropdown-menu button:hover { background: var(--primary-soft); }
.dropdown-menu [aria-current="true"], .dropdown-menu [aria-checked="true"] { font-weight: 700; color: var(--primary); }
.utility-bar .dropdown-toggle { color: var(--hero-ink); background: none; border: 1px solid rgb(255 255 255 / .2); border-radius: var(--radius-pill); padding: .25rem .7rem; display: inline-flex; gap: .4rem; align-items: center; cursor: pointer; min-height: 32px; }
.utility-bar .dropdown-toggle:hover { border-color: rgb(255 255 255 / .6); }
.utility-bar .dropdown-toggle .icon { width: 1rem; height: 1rem; }

.mobile-only { display: none; }
@media (max-width: 1080px) {
  .primary-nav { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 5rem 1.25rem 2rem; overflow-y: auto; opacity: 0; transform: translateY(-12px); visibility: hidden; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s; }
  .primary-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s; }
  .primary-nav > ul { flex-direction: column; align-items: stretch; gap: .25rem; }
  .primary-nav a, .nav-toggle-btn { width: 100%; justify-content: space-between; font-size: 1.1rem; padding: .8rem 1rem; border-radius: var(--radius); }
  .primary-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
  .mega { position: static; box-shadow: none; border: 0; padding: .25rem 0 .75rem; background: none; }
  .mega .container { width: 100%; }
  .mega-grid { grid-template-columns: 1fr; }
  .mega-foot { flex-direction: column; align-items: stretch; gap: .5rem; }
  .mobile-only { display: inline-grid; }
  .nav-close { position: absolute; top: 1rem; inset-inline-end: 1rem; }
  .utility-contacts { display: none; }
}
@media (max-width: 560px) {
  .brand-motto { display: none; }
  .brand-name { font-size: 1rem; }
  .header-actions .account-link { display: none; }
}
body.nav-open { overflow: hidden; }

/* Breadcrumbs */
.breadcrumbs { font-size: var(--step--1); color: var(--ink-3); padding-block: var(--space-4) 0; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: .35rem; }
.breadcrumbs li + li::before { content: "/"; color: var(--line-strong); }
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* Promo bar */
.promo-bar { background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: var(--step--1); }
.promo-bar .container { display: flex; justify-content: center; align-items: center; gap: .75rem; min-height: 40px; flex-wrap: wrap; text-align: center; }
.promo-bar a { color: inherit; }

/* ---------- 5. Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink);
  padding-block: clamp(4rem, 9vw, 8rem) clamp(3.5rem, 7vw, 6rem);
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 1.4rem + 4.4vw, 5rem); line-height: 1.02; max-width: 15ch; margin-bottom: var(--space-5); }
:lang(si) .hero h1, :lang(ta) .hero h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.6rem); line-height: 1.3; max-width: 20ch; }
:lang(ja) .hero h1 { font-size: clamp(2rem, 1.3rem + 3.2vw, 3.9rem); line-height: 1.25; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { color: var(--hero-ink-2); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--space-7); align-items: center; }
.hero-meridian { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-meridian svg { position: absolute; width: min(110vw, 1100px); inset-inline-end: -18%; top: 50%; translate: 0 -50%; height: auto; color: var(--meridian); }
.hero-meridian .orbit { color: var(--accent); opacity: .8; }
.hero-meridian .spin { transform-origin: 50% 50%; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-glow { position: absolute; z-index: -1; width: 60vw; height: 60vw; inset-inline-end: -10vw; top: -20vw; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: .55; filter: blur(10px); }

.hero-search { display: flex; gap: .5rem; padding: .4rem; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .18); border-radius: var(--radius-pill); max-width: 560px; margin-block: var(--space-5); }
.hero-search:focus-within { border-color: rgb(255 255 255 / .55); }
.hero-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: .6rem 1rem; min-height: 44px; }
.hero-search input::placeholder { color: var(--hero-ink-2); }

.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-motto { display: inline-flex; align-items: center; gap: .6rem; color: var(--accent); font-weight: 650; letter-spacing: .04em; margin-bottom: var(--space-4); }
.hero-motto::before { content: ""; width: 2.5rem; height: 2px; background: currentColor; }

.hero-panel { background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .12); border-radius: var(--radius-l); padding: var(--space-5); backdrop-filter: blur(6px); }
.hero-panel h2 { color: #fff; font-size: var(--step-1); }
.hero-index { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; counter-reset: idx; }
.hero-index a { display: grid; grid-template-columns: 2.2rem 1fr auto; align-items: center; gap: .5rem; padding: .55rem .6rem; border-radius: var(--radius-s); color: var(--hero-ink); text-decoration: none; }
.hero-index a:hover { background: rgb(255 255 255 / .07); }
.hero-index a::before { counter-increment: idx; content: counter(idx, decimal-leading-zero); font-family: var(--font-mono); font-size: .8rem; color: var(--accent); }
.hero-index .icon { opacity: .6; width: 1rem; height: 1rem; }

/* Hero promotion carousel */
.hero-promos { margin-top: var(--space-6); }
.promo-slides { position: relative; }
.promo-slide { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--space-5); align-items: center; }
.promo-slide[hidden] { display: none; }
.promo-slide picture img { border-radius: var(--radius); aspect-ratio: 16/9; object-fit: cover; }
.promo-controls { display: flex; gap: .5rem; align-items: center; margin-top: var(--space-4); }
.promo-dot { width: 28px; height: 28px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.promo-dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgb(255 255 255 / .35); }
.promo-dot[aria-current="true"]::after { background: var(--accent); width: 22px; border-radius: 6px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-meridian svg { inset-inline-end: -45%; width: 160vw; opacity: .7; }
  .promo-slide { grid-template-columns: 1fr; }
}

/* Page hero (inner pages) */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); padding-block: var(--space-7) var(--space-7); }
.page-hero h1 { color: #fff; margin-bottom: var(--space-3); font-size: var(--step-4); max-width: 24ch; }
.page-hero .lead { color: var(--hero-ink-2); margin: 0; }
.page-hero .breadcrumbs { padding: 0 0 var(--space-5); color: var(--hero-ink-2); }
.page-hero .breadcrumbs a { color: var(--hero-ink); }
.page-hero .breadcrumbs li + li::before { color: rgb(255 255 255 / .3); }
.page-hero .hero-meridian svg { width: 700px; inset-inline-end: -150px; }
.page-hero-icon { width: 64px; height: 64px; color: var(--accent); margin-bottom: var(--space-4); }

/* ---------- 6. Category tiles ---------- */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: var(--space-4); list-style: none; padding: 0; margin: 0; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: var(--space-3); height: 100%;
  padding: var(--space-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.tile:hover { border-color: var(--primary); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.tile:focus-within { border-color: var(--primary); }
.tile-index { position: absolute; top: var(--space-5); inset-inline-end: var(--space-5); font-family: var(--font-mono); font-size: .85rem; color: var(--ink-3); }
.tile-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.tile-icon .icon { width: 28px; height: 28px; }
.tile h3 { margin: 0; font-size: var(--step-1); }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole-card hit area */
.tile p { color: var(--ink-2); margin: 0; font-size: .97rem; }
.tile-subs { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: var(--space-3); list-style: none; padding-inline: 0; }
.tile-subs li { font-size: .8rem; color: var(--ink-3); background: var(--bg-sunken); padding: .2rem .55rem; border-radius: var(--radius-s); }
.tile-foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--step--1); color: var(--ink-3); padding-top: var(--space-3); border-top: 1px dashed var(--line); }
.tile-foot .go { color: var(--primary); font-weight: 650; display: inline-flex; gap: .3rem; align-items: center; }

/* ---------- 7. Item cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.card { position: relative; display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; height: 100%; transition: box-shadow .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); }
.card-media { aspect-ratio: 4/3; background: var(--bg-sunken); display: grid; place-items: center; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem; transition: transform .4s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }
.card-media .placeholder { color: var(--line-strong); width: 64px; height: 64px; }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: var(--space-4) var(--space-5) var(--space-5); flex: 1; }
.card-badges { display: flex; flex-wrap: wrap; gap: .35rem; }
.card h3 { font-size: 1.08rem; margin: 0; line-height: 1.3; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card p { margin: 0; color: var(--ink-2); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; gap: .5rem; font-size: .85rem; color: var(--ink-3); padding-top: .5rem; }

/* ---------- 8. Catalogue / search ---------- */
.catalog-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: var(--space-6); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 1rem); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); padding: var(--space-5); max-height: calc(100vh - var(--header-h) - 2rem); overflow-y: auto; }
.filters h2 { font-size: var(--step-1); display: flex; align-items: center; gap: .5rem; }
.filter-group { border: 0; padding: 0; margin: 0 0 var(--space-5); }
.filter-group legend { font-weight: 650; margin-bottom: .5rem; padding: 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; padding: .3rem 0; cursor: pointer; font-size: .95rem; }
.check input { width: 18px; height: 18px; margin-top: .2rem; accent-color: var(--primary); flex: none; }
.check-sub { padding-inline-start: 1.6rem; font-size: .9rem; color: var(--ink-2); }
.filter-scroll { max-height: 280px; overflow-y: auto; padding-inline-end: .25rem; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-3); margin-bottom: var(--space-5); }
.results-count { color: var(--ink-2); margin: 0; }
.active-filters { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-4); }
.search-big { display: flex; gap: .5rem; margin-bottom: var(--space-5); }
.search-big input { flex: 1; }
.filters-toggle { display: none; }
@media (max-width: 900px) {
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; max-height: none; }
  .filters-toggle { display: inline-flex; }
  .filters[data-collapsed="true"] .filters-body { display: none; }
}

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: var(--space-7); list-style: none; padding: 0; }
.pagination a, .pagination span { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .6rem; border-radius: var(--radius-pill); border: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--bg-elev); }
.pagination a:hover { border-color: var(--primary); }
.pagination [aria-current="page"] { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 700; }

.empty-state { text-align: center; padding: var(--space-8) var(--space-5); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); background: var(--bg-elev); }
.empty-state .icon { width: 48px; height: 48px; margin: 0 auto var(--space-4); color: var(--ink-3); }
.empty-state h2, .empty-state h3 { font-size: var(--step-1); }
.empty-state p { color: var(--ink-2); max-width: 46ch; margin-inline: auto; }

/* ---------- 9. Item detail & gallery ---------- */
.item-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-7); align-items: start; }
@media (max-width: 900px) { .item-layout { grid-template-columns: 1fr; gap: var(--space-5); } }
.item-info h1 { font-size: var(--step-3); }
.item-badges { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: var(--space-4); }
.item-facts { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1.25rem; margin: var(--space-5) 0; padding: var(--space-4) 0; border-block: 1px solid var(--line); font-size: .95rem; }
.item-facts dt { color: var(--ink-3); }
.item-facts dd { margin: 0; font-weight: 550; }
.item-cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: var(--space-5); }
.prose { max-width: 70ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-6); }
.prose h3 { margin-top: var(--space-5); }
.prose table { margin: var(--space-4) 0; font-size: .95rem; }
.prose blockquote { margin: var(--space-5) 0; padding: var(--space-3) var(--space-5); border-inline-start: 3px solid var(--accent); color: var(--ink-2); background: var(--bg-sunken); border-radius: 0 var(--radius) var(--radius) 0; }
.specs { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; background: var(--bg-elev); }
.specs th { width: 38%; background: var(--bg-sunken); font-weight: 600; }
.specs tr:last-child > * { border-bottom: 0; }

.gallery { display: grid; gap: var(--space-3); }
.gallery-stage { position: relative; background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; aspect-ratio: 4/3; }
.gallery-stage button.stage-btn { all: unset; display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery-stage button.stage-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.gallery-stage img { width: 100%; height: 100%; object-fit: contain; padding: var(--space-4); }
.gallery-zoom-hint { position: absolute; inset-inline-end: .75rem; bottom: .75rem; display: inline-flex; gap: .35rem; align-items: center; font-size: .8rem; padding: .3rem .6rem; border-radius: var(--radius-pill); background: color-mix(in srgb, var(--bg-elev) 85%, transparent); border: 1px solid var(--line); color: var(--ink-2); pointer-events: none; }
.gallery-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .25rem; list-style: none; margin: 0; scroll-snap-type: x mandatory; }
.gallery-thumbs button { width: 84px; height: 72px; padding: .25rem; flex: none; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--bg-elev); cursor: pointer; scroll-snap-align: start; }
.gallery-thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--primary); }
.gallery-caption { font-size: .9rem; color: var(--ink-3); margin: 0; }
.gallery-placeholder { display: grid; place-items: center; height: 100%; color: var(--ink-3); text-align: center; gap: .5rem; }
.gallery-placeholder .icon { width: 72px; height: 72px; margin: 0 auto; color: var(--line-strong); }

/* Lightbox (native <dialog>) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(5 9 20 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(5 9 20 / .9); }
.lightbox-inner { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .75rem 1rem; }
.lightbox-bar .icon-btn { color: #fff; }
.lightbox-bar .icon-btn:hover { background: rgb(255 255 255 / .12); }
.lightbox-tools { display: flex; gap: .25rem; align-items: center; }
.lightbox-viewport { position: relative; overflow: hidden; display: grid; place-items: center; touch-action: none; cursor: zoom-in; }
.lightbox-viewport.is-zoomed { cursor: grab; }
.lightbox-viewport.is-dragging { cursor: grabbing; }
.lightbox-viewport img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: 0 0; user-select: none; -webkit-user-drag: none; transition: transform .15s ease-out; }
.lightbox-viewport.is-dragging img { transition: none; }
.lightbox-nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; color: #fff; background: rgb(0 0 0 / .45) !important; }
.lightbox-prev { inset-inline-start: 1rem; } .lightbox-next { inset-inline-end: 1rem; }
.lightbox-caption { text-align: center; padding: .75rem 1rem 1.25rem; color: #c9d1e6; font-size: .95rem; min-height: 3rem; }
.zoom-level { font-family: var(--font-mono); font-size: .85rem; min-width: 3.5rem; text-align: center; }

/* Video facade (click-to-load, privacy-preserving) */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: var(--space-4); }
.video-facade { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, var(--hero-bg), color-mix(in srgb, var(--brand) 55%, var(--hero-bg))); color: #fff; }
.video-facade button { all: unset; box-sizing: border-box; position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .75rem; padding: 1rem; text-align: center; cursor: pointer; }
.video-facade button:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.video-facade .play { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); transition: transform .2s var(--ease); }
.video-facade button:hover .play { transform: scale(1.08); }
.video-facade .play .icon { width: 30px; height: 30px; fill: currentColor; stroke: none; margin-inline-start: 4px; }
.video-facade small { color: #c9d1e6; max-width: 40ch; }
.video-facade iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- 10. Brands ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; list-style: none; padding: 0; margin: 0; }
.logo-wall li { background: var(--bg-elev); }
.logo-cell { position: relative; display: grid; place-items: center; gap: .5rem; height: 130px; padding: 1.25rem; text-decoration: none; color: var(--ink-2); text-align: center; }
.logo-cell:hover { background: var(--primary-soft); text-decoration: none; }
.logo-cell img { max-height: 54px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .85; transition: filter .2s, opacity .2s; }
.logo-cell:hover img, .logo-cell:focus-visible img { filter: none; opacity: 1; }
:root[data-theme="dark"] .logo-cell img { filter: grayscale(1) invert(1) brightness(1.4); }
:root[data-theme="dark"] .logo-cell:hover img { filter: none; background: #fff; border-radius: 6px; padding: 4px; }
.logo-name { font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.logo-cell .badge-verified { position: absolute; top: .5rem; inset-inline-end: .5rem; font-size: .7rem; }
.brand-hero { display: flex; gap: var(--space-5); align-items: center; flex-wrap: wrap; }
.brand-hero-logo { background: #fff; border-radius: var(--radius); padding: 1rem; max-width: 220px; }

/* ---------- 11. Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.quote { display: flex; flex-direction: column; gap: var(--space-4); height: 100%; margin: 0; padding: var(--space-5); background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); }
.quote > .icon { width: 32px; height: 32px; color: var(--accent); }
.quote blockquote { margin: 0; font-size: 1.04rem; color: var(--ink); }
.quote figcaption { margin-top: auto; display: flex; gap: .75rem; align-items: center; }
.quote figcaption img { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #fff; }
.quote cite { font-style: normal; font-weight: 650; display: block; }
.quote .org { color: var(--ink-3); font-size: .9rem; }
.stars { display: inline-flex; gap: 2px; color: var(--accent); }
.stars .icon { width: 1rem; height: 1rem; fill: currentColor; }
.stars .icon.off { fill: none; color: var(--line-strong); }

/* ---------- 12. About: timeline, team, org ---------- */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before { content: ""; position: absolute; inset-block: .5rem; inset-inline-start: calc(6rem + 9px); width: 2px; background: linear-gradient(var(--accent), var(--primary)); }
.timeline li { display: grid; grid-template-columns: 6rem 20px 1fr; gap: var(--space-4); padding-bottom: var(--space-6); }
.timeline .year { font-family: var(--font-display); font-weight: 800; font-size: var(--step-1); text-align: end; color: var(--primary); }
.timeline .dot { width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 4px solid var(--accent); margin-top: .35rem; position: relative; z-index: 1; }
.timeline h3 { margin-bottom: .35rem; }
.timeline p { color: var(--ink-2); margin: 0; }
@media (max-width: 600px) {
  .timeline::before { inset-inline-start: 9px; }
  .timeline li { grid-template-columns: 20px 1fr; }
  .timeline .year { grid-column: 2; text-align: start; order: -1; }
  .timeline .dot { grid-row: 1 / span 2; grid-column: 1; }
}
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: var(--space-5); list-style: none; padding: 0; margin: 0; }
.person { text-align: center; }
.person .photo { width: 140px; height: 140px; margin: 0 auto var(--space-3); border-radius: 50%; overflow: hidden; background: var(--bg-sunken); display: grid; place-items: center; border: 3px solid var(--bg-elev); box-shadow: 0 0 0 1px var(--line); }
.person .photo img { width: 100%; height: 100%; object-fit: cover; }
.person .photo .icon { width: 56px; height: 56px; color: var(--ink-3); }
.person h3 { font-size: 1.05rem; margin: 0; }
.person p { color: var(--ink-3); font-size: .92rem; margin: 0; }
.org-tree, .org-tree ul { list-style: none; margin: 0; padding: 0; }
.org-tree ul { padding-inline-start: 1.5rem; border-inline-start: 2px solid var(--line); margin-inline-start: .75rem; }
.org-tree li { padding: .35rem 0 .35rem 1rem; position: relative; }
.org-tree ul li::before { content: ""; position: absolute; inset-inline-start: -1.5rem; top: 1.2rem; width: 1.75rem; height: 2px; background: var(--line); }
.org-node { display: inline-flex; flex-direction: column; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.org-node strong { font-weight: 650; }
.org-node span { font-size: .88rem; color: var(--ink-3); }

.value-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: var(--space-5); }
.value-band > div { padding: var(--space-5); border-top: 2px solid var(--accent); }

/* ---------- 13. CTA band ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--radius-l); padding: clamp(2rem, 5vw, 4rem); display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-6); align-items: center; }
.cta-band h2 { color: #fff; margin-bottom: var(--space-3); }
.cta-band p { color: var(--hero-ink-2); margin: 0; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end; }
.cta-band .hero-meridian svg { width: 600px; inset-inline-end: -200px; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

.promo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-5); }
.promo-card { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--bg-elev); border: 1px solid var(--line); display: flex; flex-direction: column; }
.promo-card picture img { aspect-ratio: 16/9; object-fit: cover; }
.promo-card .body { padding: var(--space-5); display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.promo-card .body p { color: var(--ink-2); margin: 0; }
.promo-card .label { position: absolute; top: .75rem; inset-inline-start: .75rem; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--radius-s); }

/* ---------- 14. Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: grid; gap: .35rem; }
.field label, .label { font-weight: 600; font-size: .95rem; }
.field .hint { font-size: .85rem; color: var(--ink-3); margin: 0; }
.req { color: var(--danger); }
.input, .select, .textarea, input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 46px; padding: .6rem .85rem; border: 1px solid var(--line-strong); border-radius: var(--radius-s);
  background: var(--bg-elev); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.password-input-wrap { display: block; position: relative; }
.password-input-wrap input[type="password"], .password-input-wrap input[type="text"] { padding-inline-end: 4.25rem; }
.password-input-wrap input[type="password"]::-ms-reveal,
.password-input-wrap input[type="password"]::-ms-clear { display: none; }
.password-toggle { position: absolute; inset-block: 3px; inset-inline-end: 3px; min-width: 3.5rem; border: 0; border-radius: calc(var(--radius-s) - 2px); background: transparent; color: var(--primary); font: inherit; font-size: .85rem; font-weight: 650; cursor: pointer; }
.password-toggle:hover { background: var(--primary-soft); }
.password-toggle:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.field-error { display: flex; gap: .35rem; align-items: flex-start; color: var(--danger); font-size: .88rem; font-weight: 550; margin: 0; }
.field-error .icon { width: 1rem; height: 1rem; margin-top: .15rem; }
.check-field { display: flex; gap: .6rem; align-items: flex-start; }
.check-field input { width: 20px; height: 20px; margin-top: .2rem; accent-color: var(--primary); flex: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.form-card { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(1.25rem, 3vw, 2.25rem); }
.auth-wrap { max-width: 480px; margin-inline: auto; }

/* Alerts / flashes */
.alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1.1rem; border-radius: var(--radius); border: 1px solid transparent; margin-bottom: var(--space-4); }
.alert .icon { margin-top: .15rem; }
.alert p { margin: 0; }
.alert-success { background: var(--success-bg); color: var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger); }
.alert-warning { background: var(--warning-bg); color: var(--warning); }
.alert-info { background: var(--info-bg); color: var(--info); }
.flash-region { padding-top: var(--space-4); }
.flash-region:empty { display: none; }

/* ---------- 15. Contact & map ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-6); align-items: start; }
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-3); }
.contact-list li { display: flex; gap: .85rem; align-items: flex-start; }
.contact-list .tile-icon { width: 44px; height: 44px; border-radius: 12px; }
.contact-list .tile-icon .icon { width: 22px; height: 22px; }
.contact-list strong { display: block; font-size: .85rem; color: var(--ink-3); font-weight: 600; }
.contact-list a { color: var(--ink); font-weight: 600; word-break: break-word; }
.map-box { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-l); overflow: hidden; border: 1px solid var(--line); background:
  repeating-linear-gradient(0deg, transparent 0 39px, var(--line) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, var(--line) 39px 40px), var(--bg-sunken); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-consent { position: absolute; inset: 0; display: grid; place-content: center; gap: .75rem; text-align: center; padding: 1.5rem; background: color-mix(in srgb, var(--bg-elev) 88%, transparent); }
.map-consent .icon { width: 40px; height: 40px; margin: 0 auto; color: var(--primary); }
.map-consent p { margin: 0; font-size: .92rem; color: var(--ink-2); max-width: 36ch; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--hero-bg); color: var(--hero-ink-2); margin-top: var(--space-8); position: relative; isolation: isolate; overflow: hidden; }
.site-footer a { color: var(--hero-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6); padding-block: var(--space-8) var(--space-6); }
.footer-top h2 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: var(--space-4); }
:lang(si) .footer-top h2, :lang(ta) .footer-top h2, :lang(ja) .footer-top h2 { text-transform: none; letter-spacing: 0; }
.footer-top ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-motto { color: var(--accent); }
.footer-brand p { margin-top: var(--space-4); max-width: 38ch; }
.socials { display: flex; gap: .4rem; margin-top: var(--space-4); }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); }
.socials a:hover { background: rgb(255 255 255 / .1); text-decoration: none; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); padding-block: var(--space-5); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: var(--step--1); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; padding: 0; margin: 0; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

.wa-float { position: fixed; inset-inline-end: 1.25rem; bottom: 1.25rem; z-index: 40; display: inline-flex; align-items: center; gap: .5rem; padding: .75rem 1.1rem; border-radius: var(--radius-pill); background: #128c4a; color: #fff; font-weight: 650; text-decoration: none; box-shadow: var(--shadow-2); }
.wa-float:hover { background: #0e7a3f; text-decoration: none; }
@media (max-width: 600px) { .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .wa-float { padding: .9rem; } }
.scroll-top { position: fixed; inset-inline-end: 1.25rem; bottom: 5.5rem; z-index: 41; display: grid; place-items: center; width: 3rem; height: 3rem; padding: 0; border: 0; border-radius: 50%; background: var(--primary); color: #fff; cursor: pointer; box-shadow: var(--shadow-2); }
.scroll-top:hover { filter: brightness(.9); }
.scroll-top[hidden] { display: none; }
.scroll-top-icon { rotate: 180deg; }

/* ---------- 17. Error pages ---------- */
.error-page { text-align: center; padding-block: var(--space-9); }
.error-code { font-family: var(--font-display); font-size: clamp(5rem, 18vw, 11rem); font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 18. Reveal-on-scroll (progressive enhancement) ---------- */
.js .reveal { opacity: 0; translate: 0 18px; transition: opacity .6s var(--ease), translate .6s var(--ease); }
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* ---------- 19. Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
  .hero-meridian .spin { animation: none; }
}
@media (forced-colors: active) {
  .btn, .chip, .tile, .card { border: 1px solid CanvasText; }
  .icon { stroke: CanvasText; }
}
@media print {
  .utility-bar, .site-header, .site-footer, .wa-float, .scroll-top, .filters, .promo-bar, .item-cta, .gallery-thumbs { display: none !important; }
  .hero, .page-hero { background: none; color: #000; padding: 1rem 0; }
  .page-hero h1, .hero h1 { color: #000; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}

/* ---------- 20. Late additions ---------- */
.hero h2, .hero h3 { color: #fff; }
.hero-ad-title { font-size: var(--step-2); }
.muted-on-dark { color: var(--hero-ink-2); display: inline-flex; gap: .4rem; align-items: center; }
.value-band .page-hero-icon { width: 40px; height: 40px; margin-bottom: var(--space-3); }
.h3 { font-size: var(--step-1); }
.filters-head { margin-bottom: var(--space-3); }
.filters-head h2 { margin: 0; }
.form-actions.center { justify-content: center; }
.section-note { margin-top: var(--space-5); }
.error-page .lead { margin-inline: auto; }
.h2 { font-size: var(--step-3); }
.hero-search input[type="search"] { background: transparent; border: 0; color: #fff; box-shadow: none; }
.hero-search input[type="search"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-pill); }
.item-layout h2 { font-size: var(--step-2); }

/* WCAG 2.2 target size: comfortable hit areas for small controls */
.check input, .check-field input { width: 24px; height: 24px; }
.breadcrumbs a, .breadcrumbs [aria-current] { display: inline-flex; align-items: center; min-height: 24px; }
.promo-bar a { display: inline-flex; align-items: center; min-height: 32px; padding-inline: .25rem; }
@media (max-width: 400px) {
  .site-header .container { gap: .5rem; }
  .brand { gap: .45rem; }
  .brand-mark { width: 32px; height: 32px; }
  .header-actions { gap: 0; }
  .container { width: min(100% - 1.75rem, var(--container)); }
}
/* backdrop-filter creates a containing block for fixed children; disable it where the
   full-screen mobile menu lives inside the header */
@media (max-width: 1080px) {
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
}
.site-header .mega .container { display: block; min-height: 0; }
.mega-grid { list-style: none; margin: 0; padding: 0; }
.mega-link .tile-icon { flex: none; }
.primary-nav .mega-link { justify-content: flex-start; font-size: 1rem; }
.nav-account { display: none; }
@media (max-width: 560px) { .nav-account { display: list-item; } }

/* ---------- Your logo ---------- */
.brand-logo-img { display: block; height: 48px; width: auto; max-width: 220px; object-fit: contain; }
picture .brand-logo-img { width: auto; }
.footer-brand .brand-logo-img { height: 56px; }
/* Logos are usually designed for white backgrounds: give them a white chip on dark areas */
.logo-chip { display: inline-flex; background: #fff; border-radius: 12px; padding: .4rem .7rem; }
:root[data-theme="dark"] .site-header .brand-logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; height: 40px; }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] .site-header .brand-logo-img { background: #fff; border-radius: 10px; padding: 4px 8px; box-sizing: content-box; height: 40px; } }
.footer-motto { color: var(--accent); font-weight: 650; margin-top: var(--space-3); }
.setup-card { width: min(560px, 100%) !important; }
.setup-card .brand-logo-img { height: 56px; }
@media (max-width: 400px) { .brand-logo-img { height: 38px; max-width: 160px; } }
