/* ==========================================================================
   Incledon: stylesheet
   Brand: charcoal + Incledon blue (#3FABE1, from the logo's stepped blocks)
   ========================================================================== */

:root {
  --ink: #111518;
  --steel: #181e23;
  --steel-2: #212930;
  --steel-3: #2c363f;
  --blue: #3fabe1;
  --blue-2: #68c0ec;
  --blue-deep: #1f8ec7;
  --blue-ink: #0b6596;
  --paper: #ffffff;
  --mist: #f1f4f6;
  --mist-2: #e7ecf0;
  --line: #dde3e8;
  --text: #1a2026;
  --muted: #5a6670;
  --on-dark: #e8eef2;
  --on-dark-muted: rgba(232, 238, 242, 0.68);
  --line-dark: rgba(232, 238, 242, 0.12);

  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;

  --radius: 6px;
  --shadow: 0 24px 50px -28px rgba(10, 20, 30, 0.45);
  --shadow-sm: 0 10px 24px -16px rgba(10, 20, 30, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --grid: linear-gradient(rgba(63, 171, 225, 0.075) 1px, transparent 1px),
          linear-gradient(90deg, rgba(63, 171, 225, 0.075) 1px, transparent 1px);
}

html { scroll-behavior: smooth; scroll-padding-top: 110px; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

h1, h2, h3, h4 {
  font-family: var(--head); font-weight: 700; line-height: 1.02; letter-spacing: 0.005em;
  text-transform: uppercase; margin: 0 0 0.45em;
}
h1 { font-size: clamp(2.7rem, 5.8vw, 5rem); }
h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); }
h3 { font-size: clamp(1.4rem, 2vw, 1.75rem); letter-spacing: 0.01em; }
p { margin: 0 0 1em; }
.accent { color: var(--blue); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 0; z-index: 999; background: var(--blue); color: var(--ink); padding: 10px 16px; }
.skip:focus { left: 16px; top: 16px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 1.1rem;
  font-family: var(--head); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--blue); transform: skewX(-24deg); }
.dark .eyebrow { color: var(--blue); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 40em; }
.dark .lede { color: var(--on-dark-muted); }

/* Stepped-block mark, echoing the logo */
.steps { display: inline-grid; grid-template-columns: repeat(3, 14px); grid-template-rows: repeat(3, 14px); gap: 3px; }
.steps i { background: var(--blue); transform: skewY(-28deg); }
.steps i:nth-child(1) { grid-area: 1 / 3; }
.steps i:nth-child(2) { grid-area: 2 / 2; opacity: 0.85; }
.steps i:nth-child(3) { grid-area: 2 / 3; opacity: 0.7; }
.steps i:nth-child(4) { grid-area: 3 / 1; opacity: 0.6; }

/* Buttons */
.btn {
  --bg: var(--blue); --fg: var(--ink); --bd: var(--blue);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border: 2px solid var(--bd); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); text-decoration: none; white-space: nowrap;
  font-family: var(--head); font-weight: 700; font-size: 1.05rem; letter-spacing: 0.1em; text-transform: uppercase;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn:hover { --bg: var(--blue-2); --bd: var(--blue-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: var(--on-dark); --bd: rgba(232, 238, 242, 0.35); }
.btn-ghost:hover { --bg: var(--on-dark); --fg: var(--ink); --bd: var(--on-dark); }
.btn-dark { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-dark:hover { --bg: var(--steel-3); --bd: var(--steel-3); }
.btn-line { --bg: transparent; --fg: var(--ink); --bd: var(--line); }
.btn-line:hover { --bg: var(--ink); --fg: #fff; --bd: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 0.95rem; }
.link {
  display: inline-flex; align-items: center; gap: 8px; color: var(--blue-ink); text-decoration: none;
  font-family: var(--head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.link span { transition: transform 0.3s var(--ease); }
.link:hover span { transform: translateX(5px); }
.dark .link { color: var(--blue); }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.topbar { background: var(--ink); color: var(--on-dark-muted); font-size: 0.9rem; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 42px; }
.topbar-group { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar a { text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--blue); }
.topbar b { color: var(--on-dark); font-weight: 600; }
.topbar svg { width: 15px; height: 15px; color: var(--blue); }

.site-header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.site-header.scrolled { box-shadow: 0 10px 30px -20px rgba(10, 20, 30, 0.45); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand { display: block; flex: none; }
.brand img { height: 38px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav a:not(.btn) {
  position: relative; text-decoration: none; padding: 6px 0;
  font-family: var(--head); font-weight: 600; font-size: 1.08rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.quote-btn { position: relative; }
.quote-count {
  position: absolute; top: -9px; right: -9px; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  background: var(--ink); color: #fff; font-family: var(--body); font-size: 0.78rem; font-weight: 600; letter-spacing: 0;
  display: grid; place-items: center; border: 2px solid #fff; transform: scale(0); transition: transform 0.3s var(--ease);
}
.quote-count.has { transform: scale(1); }
.quote-count.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff;
  flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   Dark / blueprint sections
   ========================================================================== */
.dark { background: var(--steel); color: var(--on-dark); }
.blueprint { background-color: var(--steel); background-image: var(--grid); background-size: 48px 48px; }
.section { padding: clamp(72px, 9vw, 130px) 0; position: relative; }
.mist { background: var(--mist); }
.section-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 28px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head h2 { margin: 0; max-width: 16em; }
.section-head p { margin: 0; max-width: 30em; color: var(--muted); }
.dark .section-head p { color: var(--on-dark-muted); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 7vw, 100px) 0 0; }
.hero > .wrap { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(36px, 5vw, 80px); align-items: center; }
.hero h1 { color: #fff; }
.hero h1 .accent { display: block; }
.hero .lede { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; align-self: stretch; min-height: 520px; }
.hero-visual figure { position: absolute; inset: 0 0 0 8%; margin: 0; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; }
.hero-visual figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.06); transition: transform 1.8s var(--ease); }
.hero.loaded .hero-visual figure img { transform: scale(1); }
.hero-visual figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(17, 21, 24, 0.55)); }
.heritage-badge {
  position: absolute; left: 0; bottom: 48px; z-index: 2; background: var(--blue); color: var(--ink);
  padding: 20px 24px 18px; border-radius: var(--radius); box-shadow: var(--shadow); min-width: 210px;
}
.heritage-badge small { display: block; font-family: var(--head); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; }
.heritage-badge b { display: block; font-family: var(--head); font-size: 3.6rem; line-height: 0.95; }
.heritage-badge span { display: block; font-size: 0.95rem; font-weight: 500; }
.stats-bar { position: relative; z-index: 2; margin-top: clamp(48px, 6vw, 80px); background: var(--steel-2); border-top: 1px solid var(--line-dark); }
.stats-bar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.stat { padding: 26px 22px; border-left: 1px solid var(--line-dark); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--head); font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: 1; color: #fff; }
.stat span { display: block; color: var(--on-dark-muted); font-size: 0.95rem; margin-top: 6px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); position: relative; overflow: hidden; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero .crumbs { font-size: 0.92rem; color: var(--on-dark-muted); margin-bottom: 1rem; }
.page-hero .crumbs a { color: var(--blue); text-decoration: none; }
.page-hero .steps { position: absolute; right: var(--gutter); bottom: 40px; transform: scale(2.4); transform-origin: bottom right; opacity: 0.9; }

/* Brand marquee */
.marquee { background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { padding: 22px 34px; flex: none; }
.marquee-item img { height: 38px; width: auto; max-width: 170px; object-fit: contain; filter: grayscale(1); opacity: 0.6; transition: filter 0.3s, opacity 0.3s; }
.marquee-item:hover img { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Category cards */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cat-card {
  grid-column: span 2; position: relative; display: flex; flex-direction: column; text-decoration: none;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.cat-card:nth-child(4), .cat-card:nth-child(5) { grid-column: span 3; }
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blue); }
.cat-media { position: relative; height: 210px; background: var(--mist); display: flex; align-items: center; justify-content: center; gap: 4%; padding: 20px; overflow: hidden; }
.cat-media::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 28px 28px; opacity: 0.9; }
.cat-media img { position: relative; width: 30%; max-width: 150px; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease); }
.cat-card:hover .cat-media img:nth-child(1) { transform: translateY(-6px) rotate(-3deg); }
.cat-card:hover .cat-media img:nth-child(2) { transform: translateY(-10px); }
.cat-card:hover .cat-media img:nth-child(3) { transform: translateY(-6px) rotate(3deg); }
.cat-body { padding: 22px 24px 24px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex: 1; }
.cat-body h3 { margin: 0 0 4px; }
.cat-body p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.cat-arrow {
  flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  background: var(--mist); color: var(--ink); transition: background 0.3s, color 0.3s, transform 0.3s var(--ease);
}
.cat-card:hover .cat-arrow { background: var(--blue); transform: rotate(-45deg); }
.cat-arrow svg { width: 20px; height: 20px; }
.cat-count { position: absolute; top: 14px; left: 14px; z-index: 1; background: var(--ink); color: #fff; font-family: var(--head); font-weight: 600; letter-spacing: 0.1em; font-size: 0.85rem; padding: 4px 10px; border-radius: 4px; }

/* Why */
.why { overflow: hidden; }
.why .wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.why-figure { position: relative; margin: 0; }
.why-figure img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.why-figure .steps { position: absolute; right: -20px; top: -20px; transform: scale(2); transform-origin: top right; }
.quote-callout {
  position: absolute; left: -24px; bottom: 32px; max-width: 320px; background: var(--ink); color: #fff;
  padding: 22px 24px; border-radius: var(--radius); border-left: 4px solid var(--blue); font-size: 1.02rem; box-shadow: var(--shadow);
}
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 1.8rem; }
.feature { padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color 0.3s, transform 0.3s var(--ease); }
.feature:hover { border-color: var(--blue); transform: translateY(-3px); }
.feature svg { width: 34px; height: 34px; color: var(--blue-deep); margin-bottom: 12px; }
.feature h3 { font-size: 1.35rem; margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Heritage strip */
.heritage .wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 5vw, 70px); align-items: center; }
.mini-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.mini-timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 50px; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(63, 171, 225, 0.2)); }
.mini-timeline li { position: relative; padding: 0 12px 0 0; }
.mini-timeline b { display: block; font-family: var(--head); font-size: 1.9rem; color: #fff; margin-bottom: 40px; line-height: 1; }
.mini-timeline li::before { content: ""; position: absolute; top: 44px; left: 0; width: 14px; height: 14px; background: var(--blue); transform: rotate(45deg); }
.mini-timeline span { display: block; color: var(--on-dark-muted); font-size: 0.95rem; line-height: 1.45; }

/* Catalogue teaser + brand tiles */
.brand-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; }
.brand-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 150px; padding: 22px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.brand-tile img { max-height: 54px; max-width: 80%; object-fit: contain; }
.brand-tile span { font-family: var(--head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.9rem; color: var(--blue-ink); }
.brand-tile:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-4px); }

/* Branches */
.branch-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 4vw, 56px); align-items: stretch; }
.branch-tabs { display: inline-flex; padding: 5px; background: var(--mist); border-radius: 999px; margin-bottom: 26px; }
.dark .branch-tabs { background: var(--steel-2); }
.branch-tab {
  border: 0; background: transparent; padding: 12px 24px; border-radius: 999px; min-height: 48px;
  font-family: var(--head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 1rem; color: var(--muted);
  transition: background 0.3s, color 0.3s;
}
.dark .branch-tab { color: var(--on-dark-muted); }
.branch-tab[aria-selected="true"] { background: var(--blue); color: var(--ink); }
.branch-panel[hidden] { display: none; }
.branch-panel { animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.branch-panel h3 { font-size: clamp(2rem, 3vw, 2.6rem); }
.contact-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.dark .contact-row { border-color: var(--line-dark); }
.contact-row svg { width: 22px; height: 22px; color: var(--blue); flex: none; margin-top: 3px; }
.contact-row small { display: block; font-family: var(--head); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-size: 0.85rem; }
.dark .contact-row small { color: var(--on-dark-muted); }
.contact-row b { font-weight: 600; font-size: 1.12rem; }
a.contact-row:hover b { color: var(--blue); }
.branch-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.map-frame { position: relative; min-height: 420px; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); background: var(--mist-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(0.6) contrast(1.05); transition: filter 0.5s; }
.map-frame:hover iframe { filter: none; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; padding: clamp(64px, 8vw, 110px) 0; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0; max-width: 14em; }
.cta-band p { color: var(--on-dark-muted); margin: 12px 0 0; max-width: 34em; }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: 72px 0 110px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer img.logo { height: 36px; width: auto; margin-bottom: 18px; }
.site-footer h4 { font-size: 1.1rem; color: #fff; letter-spacing: 0.14em; margin-bottom: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.5rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--blue); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.socials a:hover { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 54px; padding-top: 24px; border-top: 1px solid var(--line-dark); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; font-size: 0.9rem; color: rgba(232, 238, 242, 0.45); }

/* Mobile action bar */
.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: none; grid-template-columns: repeat(3, 1fr);
  background: var(--ink); border-top: 1px solid var(--line-dark); padding-bottom: env(safe-area-inset-bottom);
}
.action-bar a, .action-bar button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 62px;
  background: none; border: 0; color: var(--on-dark); text-decoration: none;
  font-family: var(--head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem;
}
.action-bar svg { width: 20px; height: 20px; color: var(--blue); }
.action-bar .primary { background: var(--blue); color: var(--ink); }
.action-bar .primary svg { color: var(--ink); }
.action-bar .quote-count { top: 6px; right: calc(50% - 30px); border-color: var(--blue); }

/* ==========================================================================
   Products page
   ========================================================================== */
.toolbar { position: sticky; top: 80px; z-index: 40; background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.toolbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-family: var(--head); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.98rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.chip em { font-style: normal; font-family: var(--body); font-size: 0.78rem; background: var(--mist); color: var(--muted); padding: 1px 8px; border-radius: 10px; letter-spacing: 0; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip[aria-pressed="true"] em { background: var(--blue); color: var(--ink); }
.search { position: relative; flex: 1; max-width: 340px; min-width: 220px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.search input {
  width: 100%; min-height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 999px; background: var(--mist); font-size: 1rem;
  transition: border-color 0.2s, background 0.2s;
}
.search input:focus { outline: none; border-color: var(--blue); background: #fff; }
.results-note { color: var(--muted); font-size: 0.95rem; margin: 26px 0 18px; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.product {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease);
}
.product:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.product-media { position: relative; aspect-ratio: 1; background: var(--mist); display: grid; place-items: center; }
.product-media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.5s var(--ease); }
.product:hover .product-media img { transform: scale(1.06); }
.product-cat { position: absolute; top: 10px; left: 10px; font-family: var(--head); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.75rem; color: var(--blue-ink); background: #fff; padding: 2px 8px; border-radius: 4px; }
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h3 { font-size: 1.2rem; margin: 0; line-height: 1.1; }
.add-btn {
  margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: var(--radius);
  border: 1px solid var(--ink); background: #fff; font-family: var(--head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.92rem;
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}
.add-btn:hover { background: var(--ink); color: #fff; }
.add-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--ink); }
.empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty[hidden] { display: none; }
.not-listed { margin-top: 48px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 30px 34px; border-radius: 8px; }
.not-listed h3 { color: #fff; margin: 0 0 6px; }
.not-listed p { margin: 0; color: var(--on-dark-muted); }

/* ==========================================================================
   Quote drawer
   ========================================================================== */
.drawer { position: fixed; inset: 0; z-index: 200; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 14, 18, 0.55); opacity: 0; transition: opacity 0.35s; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform 0.45s var(--ease); box-shadow: -20px 0 50px -20px rgba(0, 0, 0, 0.4);
}
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; background: var(--ink); color: #fff; }
.drawer-head h2 { font-size: 1.8rem; margin: 0; }
.drawer-close { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff; font-size: 1.2rem; }
.drawer-close:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.q-empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.q-empty .steps { margin-bottom: 18px; }
.q-list { list-style: none; padding: 0; margin: 0 0 20px; }
.q-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.q-item img { width: 56px; height: 56px; object-fit: contain; background: var(--mist); border-radius: 6px; mix-blend-mode: multiply; }
.q-item b { display: block; font-family: var(--head); font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.1; }
.q-item small { color: var(--muted); }
.q-item input.q-spec { margin-top: 6px; width: 100%; min-height: 34px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; font-size: 0.9rem; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); }
.qty button { width: 34px; height: 36px; border: 0; background: none; font-size: 1.1rem; }
.qty button:hover { background: var(--mist); }
.qty input { width: 42px; height: 36px; border: 0; text-align: center; font-weight: 600; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.q-remove { grid-column: 3; justify-self: end; border: 0; background: none; color: var(--muted); font-size: 0.85rem; text-decoration: underline; padding: 2px 0; }
.q-form { display: grid; gap: 12px; }
.q-form[hidden] { display: none; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-family: var(--head); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 10px 12px; border: 1px solid #c9d2d9; border-radius: var(--radius); background: #fff; font-size: 1rem; width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(63, 171, 225, 0.25); }
.field .err { color: #b3402a; font-size: 0.88rem; min-height: 0; }
.field.invalid input, .field.invalid select { border-color: #b3402a; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drawer-foot { padding: 16px 24px 20px; border-top: 1px solid var(--line); background: var(--mist); }
.drawer-foot .btn { width: 100%; }
.drawer-foot small { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 10px; text-align: center; }
.q-done { text-align: center; padding: 30px 6px; }
.q-done .tick { width: 70px; height: 70px; border-radius: 50%; background: var(--blue); color: var(--ink); display: grid; place-items: center; font-size: 2rem; margin: 0 auto 16px; }
body.locked { overflow: hidden; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 300; transform: translate(-50%, 140%); background: var(--ink); color: #fff;
  padding: 14px 18px 14px 20px; border-radius: var(--radius); box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px;
  transition: transform 0.45s var(--ease); font-weight: 500; max-width: calc(100% - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast button { border: 0; background: var(--blue); color: var(--ink); border-radius: 4px; padding: 8px 12px; font-family: var(--head); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

/* ==========================================================================
   Catalogues page
   ========================================================================== */
.cat-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.book { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.book:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.book-head { display: flex; align-items: center; justify-content: center; height: 130px; background: var(--mist); position: relative; }
.book-head::before { content: ""; position: absolute; inset: 0; background-image: var(--grid); background-size: 24px 24px; }
.book-head img { position: relative; max-height: 60px; max-width: 62%; object-fit: contain; }
.book-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.book-body h3 { margin-bottom: 6px; }
.book-body > p { color: var(--muted); font-size: 0.98rem; }
.pdfs { list-style: none; padding: 0; margin: 4px 0 0; }
.pdfs li[hidden] { display: none; }
.pdfs a {
  display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 500;
}
.pdfs a:hover { color: var(--blue-ink); }
.pdfs a svg { width: 20px; height: 20px; color: #c0392b; flex: none; }
.pdfs a span { flex: 1; }
.pdfs a i { font-style: normal; font-size: 0.8rem; color: var(--muted); font-family: var(--head); letter-spacing: 0.1em; }
.more-btn { margin-top: 12px; align-self: flex-start; border: 0; background: none; color: var(--blue-ink); font-family: var(--head); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 0; }

/* ==========================================================================
   About page
   ========================================================================== */
.intro-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(36px, 6vw, 90px); align-items: center; }
.intro-grid figure { margin: 0; position: relative; }
.intro-grid figure img { border-radius: 8px; box-shadow: var(--shadow); aspect-ratio: 5 / 4; object-fit: cover; width: 100%; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { padding: 28px; border-radius: 8px; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); }
.value h3 { margin-bottom: 8px; }
.value p { margin: 0; color: var(--muted); }

.timeline { position: relative; }
.tl-rail { position: relative; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 10px 0 0; margin-bottom: 36px; }
.tl-rail::-webkit-scrollbar { display: none; }
/* the rail line is drawn per year so it spans the full scrollable width */
.tl-progress { display: none; }
.tl-year::before { content: ""; position: absolute; left: 0; right: 0; top: 42px; height: 2px; background: var(--line-dark); transition: background 0.4s; }
.tl-year.passed::before { background: var(--blue); }
.tl-year[aria-selected="true"]::before { background: linear-gradient(90deg, var(--blue) 14px, var(--line-dark) 14px); }
.tl-year {
  position: relative; flex: 1 0 auto; min-width: 104px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  white-space: nowrap; border: 0; background: none; padding: 0 22px 22px 6px; text-align: left; color: var(--on-dark-muted); line-height: 1;
  font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.02em; transition: color 0.3s;
}
.tl-year::after {
  content: ""; position: absolute; left: 6px; top: 36px; width: 14px; height: 14px; background: var(--steel); border: 2px solid var(--steel-3);
  transform: rotate(45deg); transition: background 0.3s, border-color 0.3s;
}
.tl-year span { display: block; height: 30px; }
.tl-year.passed::after { background: var(--blue); border-color: var(--blue); }
.tl-year[aria-selected="true"] { color: #fff; }
.tl-year[aria-selected="true"]::after { background: #fff; border-color: var(--blue); box-shadow: 0 0 0 6px rgba(63, 171, 225, 0.25); }
.tl-stage { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 60px); align-items: start; min-height: 230px; }
.tl-big { font-family: var(--head); font-weight: 700; font-size: clamp(4.5rem, 12vw, 9rem); line-height: 0.85; color: transparent; -webkit-text-stroke: 2px var(--blue); }
.tl-card h3 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.tl-card p { color: var(--on-dark-muted); font-size: 1.12rem; max-width: 40em; }
.tl-card { animation: rise 0.5s var(--ease); }
.tl-nav { display: flex; gap: 10px; margin-top: 18px; }
.tl-nav button { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: #fff; font-size: 1.2rem; }
.tl-nav button:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }
.tl-nav button:disabled { opacity: 0.3; pointer-events: none; }

.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { padding: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: flex; gap: 18px; align-items: center; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--blue); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 1.5rem; letter-spacing: 0.04em; }
.person h3 { margin: 0 0 2px; font-size: 1.45rem; }
.person p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* Contact page */
.branch-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.branch-card { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; display: flex; flex-direction: column; }
.branch-card .map-frame { border-radius: 0; box-shadow: none; min-height: 280px; }
.branch-card-body { padding: 26px 28px 28px; }
.branch-card-body h2 { font-size: clamp(2rem, 3vw, 2.6rem); margin-bottom: 4px; }
.enquiry { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(30px, 5vw, 70px); }
.enquiry .card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(24px, 4vw, 40px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-done { text-align: center; padding: 24px 6px; }
.form-done[hidden] { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-card, .cat-card:nth-child(4), .cat-card:nth-child(5) { grid-column: span 1; }
  .cat-card:nth-child(5) { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .topbar .hide-md { display: none; }
  .menu-toggle { display: inline-flex; position: relative; z-index: 90; }
  .nav {
    position: fixed; inset: 0; z-index: 80; background: var(--ink); background-image: var(--grid); background-size: 48px 48px;
    flex-direction: column; justify-content: center; gap: 22px; opacity: 0; visibility: hidden; transition: opacity 0.35s, visibility 0.35s;
  }
  .nav.open { opacity: 1; visibility: visible; }
  .nav a:not(.btn) { color: #fff; font-size: 2rem; }
  .menu-toggle[aria-expanded="true"] { background: transparent; border-color: var(--line-dark); }
  .menu-toggle[aria-expanded="true"] span { background: #fff; }
  .hero > .wrap, .why .wrap, .heritage .wrap, .branch-grid, .intro-grid, .enquiry { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; aspect-ratio: 4 / 3; }
  .hero-visual figure { inset: 0; border-radius: var(--radius) var(--radius) 0 0; }
  .heritage-badge { left: 16px; bottom: 16px; }
  .stats-bar .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid var(--line-dark); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .section-head { grid-template-columns: 1fr; }
  .why-figure { max-width: 560px; }
  .quote-callout { left: 16px; }
  .mini-timeline { grid-template-columns: 1fr; gap: 18px; }
  .mini-timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(63, 171, 225, 0.2)); }
  .mini-timeline li { padding-left: 36px; }
  .mini-timeline li::before { top: 8px; }
  .mini-timeline b { margin-bottom: 4px; }
  .values { grid-template-columns: 1fr; }
  .branch-cards { grid-template-columns: 1fr; }
  .tl-stage { grid-template-columns: 1fr; }
  .action-bar { display: grid; }
  .toolbar { top: 80px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .topbar { display: none; } /* calls live in the bottom action bar on phones */
  .stat { padding: 20px 0 20px 16px; }
  .stat:nth-child(odd) { padding-left: 0; }
  .stat span { font-size: 0.9rem; }
  .hero-visual { aspect-ratio: 1 / 1; }
  .heritage-badge { left: 12px; bottom: 12px; min-width: 0; padding: 12px 16px 10px; }
  .heritage-badge small { font-size: 0.72rem; }
  .heritage-badge b { font-size: 2.3rem; }
  .heritage-badge span { font-size: 0.82rem; }
  .brand-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brand-tile { min-height: 116px; padding: 16px 12px; }
  .brand-tile img { max-height: 40px; max-width: 88%; }
  .quote-callout { font-size: 0.92rem; padding: 14px 16px; max-width: calc(100% - 32px); }
  .brand img { height: 30px; }
  .site-header .wrap { min-height: 68px; }
  .toolbar { top: 68px; }
  .hero-ctas .btn { width: 100%; }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card:nth-child(5) { grid-column: auto; }
  .features { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .product-body { padding: 12px; }
  .product-body h3 { font-size: 1.05rem; }
  .add-btn { font-size: 0.82rem; min-height: 40px; }
  .search { max-width: none; width: 100%; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: 100%; padding-bottom: 2px; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .two, .form-grid { grid-template-columns: 1fr; }
  .cat-books { grid-template-columns: 1fr; }
  .page-hero .steps { display: none; }
  .toast { bottom: 80px; }
}

/* Anything toggled with the hidden attribute stays hidden, whatever its display type */
[hidden] { display: none !important; }
