/* =========================================================
   COMOBICS WORLD — "Quiet Premium" design system
   Minimal, white, editorial. Near-monochrome ink on paper,
   confident red as the single brand accent, true neutral greys.
   Sharp corners, hairline structure, no decorative shadows.
   Built for an Indian + international audience. Tokens map to
   React/Tailwind. Motion: GSAP ScrollTrigger (assets/js/main.js).
   ========================================================= */

:root {
  /* ---- Surfaces ---- */
  --paper:    #ffffff;   /* page base */
  --paper-2:  #f5f5f5;   /* alt sections (neutral grey) */
  --paper-3:  #ececec;
  --ink-panel:#0d0d0d;   /* near-black anchors: footer, cta band */

  /* ---- Brand: confident red (single accent) ---- */
  --red:     #c81e2c;    /* primary action / brand */
  --red-700: #9c1620;    /* hover / darker */
  --red-600: #e0303f;
  --red-50:  #fbeaeb;    /* faint red wash */
  --red-line:rgba(200,30,44,.24);

  /* ---- Ink (true neutral grey/black) ---- */
  --ink-900: #0d0d0d;    /* headings */
  --ink-800: #1c1c1c;
  --ink-700: #383838;    /* body */
  --ink-500: #5c5c5c;    /* secondary */
  --ink-400: #868686;    /* muted / labels */
  --ink-300: #adadad;

  /* ---- Lines (hairlines do the structural work) ---- */
  --line:   rgba(13,13,13,.12);
  --line-2: rgba(13,13,13,.20);
  --line-3: rgba(13,13,13,.30);

  /* ---- On-dark ink (footer / cta / dark sections) ---- */
  --d-ink-50:  #f5f5f5;
  --d-ink-200: #c9c9c9;
  --d-ink-300: #9a9a9a;
  --d-line:    rgba(245,245,245,.14);

  /* ---- Geometry: sharp ---- */
  --radius:    0px;
  --radius-sm: 0px;
  --radius-pill: 999px;   /* used only for the round floating action buttons */
  --maxw:   1280px;
  --maxw-text: 70ch;
  --gutter: clamp(22px, 5vw, 80px);
  --nav-h: 84px;
  --nav-h-sm: 64px;

  --font-display: "Clash Display", "General Sans", system-ui, sans-serif;
  --font-body:    "General Sans", system-ui, -apple-system, sans-serif;

  --ease:     cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink-700);
  background: var(--paper);
  line-height: 1.62;
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -.03em;
  margin: 0 0 .5em;
  color: var(--ink-900);
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--red); color: #fff; }

/* scrollbar hidden (no track/gutter) — page still scrolls normally via wheel/touch/keys */
html { scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar { width: 0; height: 0; display: none; }

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Eyebrow (tracked label + sharp green tick) ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-400);
  margin: 0 0 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  background: var(--red);
  flex: none;
}
.eyebrow.amber { color: var(--ink-400); }   /* legacy class kept; same treatment */
/* on dark panels */
.cta-band .eyebrow, .section-dark .eyebrow, .page-hero.dark .eyebrow { color: var(--d-ink-300); }

/* ---------- Buttons (sharp, flat, hairline) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: -.01em;
  padding: .95rem 1.6rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  position: relative;
  transition: background .25s var(--ease), border-color .25s, color .2s, transform .2s var(--ease);
}
.btn svg { flex: none; transition: transform .25s var(--ease); }
.btn:hover svg.arr { transform: translateX(4px); }

.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-700); }

.btn-dark { background: var(--ink-900); color: #fff; }
.btn-dark:hover { background: #000; }

.btn-ghost { border-color: var(--line-2); color: var(--ink-900); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-900); background: var(--ink-900); color: #fff; }

.btn-wa { background: #1fa855; color: #fff; }
.btn-wa:hover { background: #178a45; }

.btn-lg { padding: 1.12rem 2rem; font-size: 1rem; }

/* text / inline link with arrow */
.btn-line {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  color: var(--ink-900); padding: .3rem 0;
  border-bottom: 1px solid var(--ink-900);
  transition: gap .25s var(--ease), color .2s, border-color .2s;
}
.btn-line:hover { gap: .85rem; color: var(--red); border-color: var(--red); }
.btn-line svg { transition: transform .25s var(--ease); }

/* on-dark button variants */
.cta-band .btn-ghost, .section-dark .btn-ghost { border-color: var(--d-line); color: #fff; }
.cta-band .btn-ghost:hover, .section-dark .btn-ghost:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

/* ---------- Header (fixed, transparent — overlays the hero beneath it) ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s, backdrop-filter .4s;
}
.site-header .container { max-width: none; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  transition: height .4s var(--ease);
}
.nav > nav { margin-left: auto; }
.nav > .nav-cta { margin-left: 2.4rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark { height: 32px; width: auto; flex: none; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; line-height: 1; letter-spacing: -.02em; color: var(--ink-900); transition: color .35s; }
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-top: 6px;
  color: var(--ink-400);
  transition: color .35s;
}
.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  font-size: .92rem; font-weight: 500;
  color: var(--ink-700);
  padding: .4rem 0; position: relative;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink-900); }
.nav-links a[aria-current="page"],
.nav-drop-toggle[aria-current="page"] { color: var(--ink-900); }
.nav-links a[aria-current="page"]::after,
.nav-drop-toggle[aria-current="page"]::after {
  content: "";
  position: absolute; left: 0; bottom: -2px;
  width: 14px; height: 2px;
  background: var(--red);
}

/* nav dropdowns (Products / Solutions) */
.nav-drop { position: relative; }
.nav-drop-toggle {
  display: flex; align-items: center; gap: .35rem;
  font-family: var(--font-body); font-size: .92rem; font-weight: 500;
  color: var(--ink-700); background: none; border: 0; padding: .4rem 0;
  cursor: pointer; position: relative;
  transition: color .2s;
}
.nav-drop-toggle:hover { color: var(--ink-900); }
.nav-drop-chevron { transition: transform .2s var(--ease); flex: none; }
.nav-drop-toggle[aria-expanded="true"] .nav-drop-chevron { transform: rotate(180deg); }
.nav-dropdown {
  display: none;
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-50%);
  background: #fff; border: 1px solid var(--line);
  min-width: 220px; padding: .7rem; z-index: 60;
  flex-direction: column; gap: .1rem;
}
.nav-dropdown.nav-dropdown-grid { min-width: 380px; grid-template-columns: repeat(2, 1fr); gap: .1rem .6rem; }
.nav-drop:hover .nav-dropdown,
.nav-drop:focus-within .nav-dropdown,
.nav-dropdown.is-open { display: flex; }
.nav-drop:hover .nav-dropdown.nav-dropdown-grid,
.nav-drop:focus-within .nav-dropdown.nav-dropdown-grid,
.nav-dropdown.nav-dropdown-grid.is-open { display: grid; }
.nav-dropdown a {
  font-size: .88rem; font-weight: 500; color: var(--ink-700);
  padding: .55rem .6rem; white-space: nowrap;
  transition: background .15s, color .15s;
}
.nav-dropdown a:hover { background: var(--paper-2); color: var(--ink-900); }
.nav-dropdown-all {
  margin-top: .3rem; padding-top: .8rem !important;
  border-top: 1px solid var(--line);
  font-weight: 600 !important; color: var(--red) !important;
  grid-column: 1 / -1;
}

.nav-cta { display: flex; gap: .7rem; align-items: center; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  cursor: pointer;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 0;
  transition: border-color .35s, background .35s;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: ""; display: block;
  width: 18px; height: 2px;
  background: var(--ink-900);
  transition: .25s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* solid state — appears on scroll (or with the mobile menu open) */
.site-header.solid {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom-color: var(--line);
}
.site-header.solid .nav { height: var(--nav-h-sm); }

/* on-dark variant (home hero carousel) — light nav text while transparent/overlaid,
   flips back to the normal dark text automatically once .solid engages */
.site-header--on-dark:not(.solid) .brand-name,
.site-header--on-dark:not(.solid) .brand-name small,
.site-header--on-dark:not(.solid) .nav-links a,
.site-header--on-dark:not(.solid) .nav-drop-toggle {
  color: #fff;
}
.site-header--on-dark:not(.solid) .nav-toggle { border-color: rgba(255,255,255,.4); }
.site-header--on-dark:not(.solid) .nav-toggle span,
.site-header--on-dark:not(.solid) .nav-toggle span::before,
.site-header--on-dark:not(.solid) .nav-toggle span::after { background: #fff; }
.site-header--on-dark:not(.solid) .nav-cta .btn-ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.site-header--on-dark:not(.solid) .nav-cta .btn-ghost:hover { background: #fff; color: var(--ink-900); border-color: #fff; }

@media (max-width: 980px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: .5rem var(--gutter) 1.4rem;
    display: none;
    max-height: calc(100vh - var(--nav-h-sm));
    max-height: calc(100svh - var(--nav-h-sm));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav-links.open { display: flex; }
  .nav-links a { width: 100%; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a[aria-current="page"]::after,
  .nav-drop-toggle[aria-current="page"]::after { display: none; }
  .nav-cta .btn-ghost { display: none; }

  /* dropdowns become inline accordions on mobile — no floating panel, no hover */
  .nav-drop { width: 100%; }
  .nav-drop-toggle { width: 100%; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-drop:hover .nav-dropdown, .nav-drop:focus-within .nav-dropdown { display: none; }
  .nav-dropdown {
    position: static; transform: none; border: 0; background: transparent;
    padding: 0; min-width: 0; display: none;
  }
  .nav-dropdown.nav-dropdown-grid { min-width: 0; }
  .nav-dropdown a { white-space: normal; }
  .nav-dropdown.is-open,
  .nav-dropdown.nav-dropdown-grid.is-open { display: flex !important; grid-template-columns: none; flex-direction: column; }
  .nav-dropdown a { width: 100%; padding: .9rem 0 .9rem 1rem; border-bottom: 1px solid var(--line); }
  .nav-dropdown-all { border-top: 0; margin-top: 0; padding-top: .9rem !important; }
}

/* ---------- Hero (white, editorial, generous) ---------- */
.hero {
  position: relative;
  background: var(--paper);
  overflow: hidden;
}
/* faint structural hairline grid, fading out */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc((100% - 0px) / 6) 100%;
  opacity: .5;
  mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: end;
  padding-block: clamp(9rem, 16vw, 13rem) clamp(3.5rem, 7vw, 6rem);
}
.hero h1 {
  color: var(--ink-900);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: .98;
}
.hero h1 .accent { color: var(--red); }
.hero p.lead {
  color: var(--ink-500);
  font-size: clamp(1.04rem, 1.5vw, 1.24rem);
  font-weight: 400;
  max-width: 50ch;
  margin: 1.8rem 0 2.4rem;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }

/* hero side card — quiet "why us" list, hairline framed */
.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 1.9rem;
}
.hero-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.hero-card-head h3 { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-400); margin: 0; }
.hero-stats { display: grid; gap: 0; }
.hero-stat {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--line);
}
.hero-stat:first-child { border-top: none; padding-top: 0; }
.hero-stat:last-child { padding-bottom: 0; }
.hero-stat .hs-ico { flex: none; width: 24px; height: 24px; color: var(--red); margin-top: 2px; }
.hero-stat b { font-family: var(--font-display); font-weight: 600; font-size: 1rem; color: var(--ink-900); line-height: 1.2; display: block; }
.hero-stat span { font-size: .86rem; color: var(--ink-500); }

@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; gap: 2.5rem; }
  .hero-card { order: 2; }
}

/* screen-reader-only (real H1 for a11y/SEO where the visual hero carries its own copy) */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Hero carousel (home — client-supplied campaign slides) ---------- */
.hero.hero-carousel {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 100vh;
  height: 100svh;
  background: var(--ink-panel);
  overflow: hidden;
}
@media (max-width: 640px) {
  .hero.hero-carousel { min-height: 560px; }
}
.hero.hero-carousel::before { content: none; }
.hero-carousel-track { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0;
  transition: opacity 1.1s ease;
}
.hero-slide.is-active { opacity: 1; z-index: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: left center; }
.hero-slide img[src*="hero-slide-protecting"] { object-position: left 25%; }

.hero-carousel-overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; gap: clamp(1.6rem, 4vw, 2.6rem);
  padding-block: 0 clamp(2.6rem, 6vw, 4rem);
}
.hero-carousel .hero-cta { gap: .8rem; }
.hero-carousel .btn-line { color: #fff; border-color: var(--d-line); }
.hero-carousel .btn-line:hover { color: var(--red); border-color: var(--red); }

.hero-carousel-controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; }
.hero-carousel-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex: none;
  border: 1px solid var(--d-line); background: transparent; color: #fff;
  cursor: pointer; transition: background .2s, border-color .2s;
}
.hero-carousel-arrow:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.hero-carousel-dots { display: flex; gap: .55rem; }
.hero-carousel-dot {
  width: 28px; height: 3px; padding: 0; border: 0; background: var(--d-line);
  cursor: pointer; transition: background .2s;
}
.hero-carousel-dot.is-active, .hero-carousel-dot:hover { background: var(--red); }

/* ---------- Trust / partner strip ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-inner { padding-block: 2.4rem; }
.trust-label { font-family: var(--font-body); font-size: .68rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-400); text-align: center; margin: 0 0 1.8rem; }
.partner-group { margin-top: 1.8rem; }
.partner-group:first-of-type { margin-top: 0; }
.partner-group-label { display: block; text-align: center; font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-300); margin: 0 0 .9rem; }
.partner-row { display: flex; flex-wrap: wrap; gap: clamp(1.1rem, 4vw, 2.6rem); justify-content: center; align-items: center; }
.partner {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: -.01em;
  color: var(--ink-400);
  transition: color .25s, opacity .25s;
  opacity: .85;
}
.partner:hover { color: var(--ink-900); opacity: 1; }
.partner-note { text-align: center; font-size: .78rem; color: var(--ink-400); margin: 1.1rem 0 0; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(5rem, 11vw, 9rem); }
.section-head { max-width: 60ch; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); letter-spacing: -.035em; font-weight: 600; }
.section-head p { color: var(--ink-500); font-size: 1.1rem; margin: 1rem 0 0; max-width: 56ch; }
.section-head.center p { margin-inline: auto; }
.section-alt { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-dark { background: var(--ink-panel); color: var(--d-ink-200); }
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark .section-head p { color: var(--d-ink-300); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 0; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* Cells live inside a hairline matrix: 1px gaps over a line-colored
   background give crisp shared hairlines, no doubled borders, no shadows. */
.card-grid, .matrix {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.card-grid.cols-3, .matrix.cols-3 { grid-template-columns: repeat(3, 1fr); }
.card-grid.cols-2, .matrix.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card-grid.cols-4, .matrix.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 940px) { .card-grid.cols-3, .card-grid.cols-4, .matrix.cols-3, .matrix.cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .card-grid, .matrix { grid-template-columns: 1fr !important; } }

.card {
  position: relative;
  background: var(--paper);
  border: none;
  padding: clamp(1.7rem, 3vw, 2.4rem);
  transition: background .3s var(--ease);
}
.card:hover { background: var(--paper-2); }
.card-num {
  font-family: var(--font-body); font-weight: 600;
  font-size: .8rem; letter-spacing: .04em;
  color: var(--ink-300); margin-bottom: 1.6rem;
  display: block;
}
.card-icon {
  width: 30px; height: 30px;
  color: var(--red);
  margin-bottom: 1.4rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .55rem; letter-spacing: -.02em; }
.card p { color: var(--ink-500); font-size: .95rem; margin: 0; }
.card .eyebrow { margin-bottom: .8rem; }

/* standalone card (not in matrix) */
.card.solo { border: 1px solid var(--line); }

/* photo-led product card (catalogue / featured categories) — image bleeds
   to the card edge, content sits in a padded body beneath it */
.product-card { padding: 0; display: flex; flex-direction: column; }
.product-card-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.product-card-media img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { padding: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; flex-direction: column; flex: 1; }
.product-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; letter-spacing: -.02em; }
.product-card-body .chip-list { margin-top: .1rem; }
.product-card-body .btn-line { margin-top: auto; padding-top: .8rem; }

/* chip list — product subcategory tags inside a card */
.chip-list { list-style: none; margin: 1rem 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list li {
  border: 1px solid var(--line-2); color: var(--ink-500);
  font-size: .8rem; line-height: 1.2; padding: .38rem .72rem;
}
.card:hover .chip-list li { border-color: var(--line); }

/* product / service card enquiry link pinned under the chip list */
.card .btn-line { margin-top: .2rem; }

/* feature list */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.feature-list li { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: none; }
.feature-list .tick {
  flex: none; width: 24px; height: 24px;
  border: 1px solid var(--red-line);
  color: var(--red);
  display: grid; place-items: center; margin-top: 2px;
}
.feature-list b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.04rem; color: var(--ink-900); letter-spacing: -.02em; margin-bottom: .15rem; }
.feature-list span { color: var(--ink-500); font-size: .94rem; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 2.5rem; } }

/* ---------- Assurance band ---------- */
.assure { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 820px) { .assure { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .assure { grid-template-columns: 1fr; } }
.assure-item { background: var(--paper); padding: 2rem 1.7rem; display: flex; flex-direction: column; gap: .6rem; transition: background .25s; }
.assure-item:hover { background: var(--paper-2); }
.assure-item .seal {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  color: var(--red);
  margin-bottom: .6rem;
}
.assure-item b { font-family: var(--font-display); font-weight: 600; color: var(--ink-900); font-size: 1.06rem; letter-spacing: -.02em; }
.assure-item span { color: var(--ink-500); font-size: .9rem; }

/* ---------- Testimonials ---------- */
.testi { position: relative; background: var(--paper); padding: 2.2rem; display: flex; flex-direction: column; gap: 1.4rem; transition: background .3s; }
.testi:hover { background: var(--paper-2); }
.testi .stars { color: var(--red); letter-spacing: .2em; font-size: .82rem; }
.testi-quote { font-family: var(--font-display); font-weight: 600; color: var(--red); font-size: 3rem; line-height: .6; height: 1.1rem; display: block; }
.testi p { color: var(--ink-800); font-size: 1.06rem; line-height: 1.55; margin: 0; flex: 1; letter-spacing: -.01em; }
.testi-by { display: flex; align-items: center; gap: .9rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testi-by .av { width: 40px; height: 40px; background: var(--red); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; color: #fff; flex: none; }
.testi-by b { display: block; font-family: var(--font-display); font-weight: 600; color: var(--ink-900); font-size: .96rem; }
.testi-by span { color: var(--ink-500); font-size: .84rem; }

/* ---------- FAQ (native <details>/<summary>, no JS needed) ---------- */
.faq { border-top: 1px solid var(--line); max-width: 72ch; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.4rem 0;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
  color: var(--ink-900); letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 1.3rem; font-weight: 400; color: var(--ink-300); line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; color: var(--red); }
.faq-item p { color: var(--ink-500); font-size: .96rem; max-width: 62ch; margin: 0 0 1.5rem; }

/* ---------- CTA band (near-black anchor) ---------- */
.cta-band {
  position: relative;
  background: var(--ink-panel);
  color: var(--d-ink-200);
  padding: clamp(2.6rem, 6vw, 4.5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 2rem; overflow: hidden;
}
/* faint hairline grid on the dark band */
.cta-band::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--d-line) 1px, transparent 1px);
  background-size: 20% 100%;
  opacity: .5; pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; margin: 0 0 .5rem; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.035em; }
.cta-band p { color: var(--d-ink-300); margin: 0; max-width: 46ch; }
.cta-band .hero-cta { gap: .8rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 820px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }
.shot {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  display: grid; place-items: center;
  transition: background .3s var(--ease);
}
.shot:hover { background: var(--paper-3); }
/* real photo fills the tile; overfills a touch so parallax never shows an edge */
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; z-index: 1; }
.shot::after, .shot::before { z-index: 2; }
.shot .tag { z-index: 3; }
.shot:hover img { filter: brightness(1.04); }

/* ---------- Motion works rail (self-scrolling "previous works" sidebar) ----------
   Client feedback: many visitors won't notice scroll-triggered motion, so add a
   sidebar that moves on its own. Pure-CSS vertical marquee — runs continuously,
   independent of GSAP/scroll. The intro column is sticky (the "fixed" main part);
   the rail is the always-moving gallery beside it. Pauses on hover/focus; under
   reduced-motion it becomes a normal scrollable column. */
.worksrail { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.worksrail-intro { position: sticky; top: calc(var(--nav-h-sm) + 1.6rem); }
.rail {
  position: relative; overflow: hidden;
  height: clamp(440px, 78vh, 720px);
  border: 1px solid var(--line); background: var(--paper-2);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.rail-track { display: flex; flex-direction: column; animation: rail-scroll 42s linear infinite; will-change: transform; }
.rail:hover .rail-track, .rail:focus-within .rail-track { animation-play-state: paused; }
/* the track holds two identical sets; -50% lands exactly on the loop seam */
@keyframes rail-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.rail-item { position: relative; flex: none; border-bottom: 1px solid var(--line); }
.rail-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-3); }
.rail-item figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--ink-panel); color: var(--d-ink-50);
  font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .02em;
  padding: .45rem .8rem;
}
@media (max-width: 860px) {
  .worksrail { grid-template-columns: 1fr; gap: 2.4rem; }
  .worksrail-intro { position: static; }
  .rail { height: clamp(380px, 90vw, 560px); }
}
@media (prefers-reduced-motion: reduce) {
  .rail-track { animation: none; transform: none; }
  .rail { overflow-y: auto; }
}
/* one quiet corner tick — subtle camera nod */
.shot::before, .shot::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; z-index: 2;
  border-color: var(--line-3);
}
.shot::before { top: 12px; left: 12px; border-top: 1px solid var(--line-3); border-left: 1px solid var(--line-3); }
.shot::after  { bottom: 12px; right: 12px; border-bottom: 1px solid var(--line-3); border-right: 1px solid var(--line-3); }
.shot .ph {
  position: relative;
  color: var(--ink-300);
  font-family: var(--font-body); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  display: grid; place-items: center; gap: .7rem; text-align: center;
}
.shot .tag {
  position: absolute; left: 14px; bottom: 14px; z-index: 3;
  background: var(--ink-panel); color: var(--d-ink-50);
  font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  padding: .34rem .65rem;
}

/* ---------- Forms ---------- */
.form-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: clamp(1.7rem, 4vw, 2.6rem);
}
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--font-body);
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .55rem; color: var(--ink-500);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line-2);
  border-radius: 0;
  font-family: var(--font-body); font-size: .98rem;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: inset 0 0 0 1px var(--red);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%235b645f' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form-note { font-size: .84rem; color: var(--ink-500); margin-top: .7rem; }
.form-note a { color: var(--red); font-weight: 600; }
.form-secure { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--ink-400); margin-bottom: 1.4rem; text-transform: uppercase; }
.form-secure svg { color: var(--red); }
.form-success {
  display: none;
  background: var(--red-50);
  border: 1px solid var(--red-line);
  color: var(--red-700);
  padding: 1rem 1.2rem;
  font-size: .94rem; margin-bottom: 1.4rem;
}
.form-success.show { display: block; }

/* ---------- Contact lines ---------- */
.contact-line { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.3rem 0; border-top: 1px solid var(--line); }
.contact-line:first-child { border-top: none; padding-top: 0; }
.contact-line .ico {
  flex: none; width: 26px; height: 26px;
  color: var(--red);
  margin-top: 2px;
}
.contact-line b { font-family: var(--font-display); font-weight: 600; display: block; font-size: 1rem; color: var(--ink-900); letter-spacing: -.02em; }
.contact-line a, .contact-line span { color: var(--ink-500); font-size: .94rem; }
.contact-line a:hover { color: var(--red); }

/* map / media placeholder */
.media-ph {
  position: relative;
  border: 1px solid var(--line);
  background: var(--paper-2);
  display: grid; place-items: center;
  min-height: 240px;
}
.media-ph::before, .media-ph::after {
  content: ""; position: absolute; width: 18px; height: 18px;
}
.media-ph::before { top: 14px; left: 14px; border-top: 1px solid var(--line-3); border-left: 1px solid var(--line-3); }
.media-ph::after  { bottom: 14px; right: 14px; border-bottom: 1px solid var(--line-3); border-right: 1px solid var(--line-3); }
.media-ph .ph {
  color: var(--ink-300); font-family: var(--font-body); font-weight: 600;
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  display: grid; place-items: center; gap: .7rem; text-align: center;
}
.media-ph .tag { position: absolute; left: 14px; bottom: 14px; background: var(--ink-panel); color: var(--d-ink-50); font-family: var(--font-body); font-size: .7rem; font-weight: 500; padding: .32rem .6rem; }

/* ---------- Real photography (replaces .media-ph placeholders) ----------
   Hairline-framed figure; the <img> overfills slightly so the scroll
   parallax/scale (main.js) never reveals an edge. Sharp corners, editorial
   camera-nod corner ticks kept for brand continuity. */
.media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
  margin: 0;
}
.media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
}
.media::before, .media::after {
  content: ""; position: absolute; width: 18px; height: 18px; z-index: 2; pointer-events: none;
}
.media::before { top: 14px; left: 14px; border-top: 1px solid rgba(255,255,255,.55); border-left: 1px solid rgba(255,255,255,.55); }
.media::after  { bottom: 14px; right: 14px; border-bottom: 1px solid rgba(255,255,255,.55); border-right: 1px solid rgba(255,255,255,.55); }
.media .media-cap {
  position: absolute; left: 0; bottom: 0; z-index: 3;
  background: var(--ink-panel); color: var(--d-ink-50);
  font-family: var(--font-body); font-size: .72rem; font-weight: 500; letter-spacing: .02em;
  padding: .42rem .8rem;
}

/* Hero photograph (right column of the home hero) */
.hero-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.hero-media::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(11,15,13,.45));
}
.hero-media .hero-media-tag {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(11,15,13,.78); backdrop-filter: blur(6px);
  color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; padding: .55rem .9rem;
}
.hero-media .hero-media-tag::before { content: ""; width: 7px; height: 7px; background: var(--red); flex: none; }
@media (max-width: 880px) { .hero-media { aspect-ratio: 16 / 10; } }

/* Map embed (contact) */
.map-embed { position: relative; border: 1px solid var(--line); background: var(--paper-2); overflow: hidden; aspect-ratio: 16 / 9; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.25) contrast(1.02); }

/* ---------- Page hero (interior) — light by default ---------- */
.page-hero {
  position: relative;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  opacity: .45;
  mask-image: linear-gradient(180deg, #000, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%);
  pointer-events: none;
}
.page-hero-inner { position: relative; padding-block: clamp(8.5rem, 13vw, 11rem) clamp(3rem, 6vw, 4.5rem); max-width: 64ch; }
.page-hero h1 { color: var(--ink-900); font-size: clamp(2.4rem, 5.4vw, 4.2rem); letter-spacing: -.04em; font-weight: 600; line-height: 1; }
.page-hero h1 .accent { color: var(--red); }
.page-hero p { color: var(--ink-500); max-width: 58ch; margin: 1.3rem 0 0; font-size: 1.12rem; }
.crumbs { font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; color: var(--ink-400); margin-bottom: 1.4rem; text-transform: uppercase; }
.crumbs a { color: var(--ink-400); }
.crumbs a:hover { color: var(--red); }

/* ---------- Pricing plans (AMC) ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--paper); display: flex; flex-direction: column; padding: clamp(1.8rem, 3vw, 2.4rem); }
.plan.featured { background: var(--ink-panel); color: var(--d-ink-200); }
.plan.featured h3, .plan.featured .price { color: #fff; }
.plan.featured .plan-for { color: var(--d-ink-300); }
.plan.featured li { color: var(--d-ink-200); }
.plan.featured li svg { color: #fff; }
.plan.featured .btn-ghost { border-color: var(--d-line); color: #fff; }
.plan.featured .btn-ghost:hover { background: #fff; color: var(--ink-900); }
.plan-badge {
  position: absolute; top: 0; right: 0;
  background: var(--red); color: #fff;
  font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .12em;
  padding: .4rem .8rem; text-transform: uppercase;
}
.plan h3 { font-size: 1.35rem; margin-bottom: .3rem; }
.plan .price { font-family: var(--font-display); font-size: 1.9rem; font-weight: 600; color: var(--ink-900); margin: .6rem 0 .2rem; letter-spacing: -.03em; }
.plan .price small { font-family: var(--font-body); font-size: .8rem; color: var(--ink-400); font-weight: 500; }
.plan .plan-for { color: var(--ink-500); font-size: .92rem; margin: 0 0 1.4rem; }
.plan-includes { font-size: .78rem; font-weight: 600; color: var(--ink-400); text-transform: uppercase; letter-spacing: .06em; margin: -.8rem 0 0; }
.plan.featured .plan-includes { color: var(--d-ink-300); }
.plan ul { list-style: none; margin: 0 0 1.6rem; padding: 1.4rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .85rem; flex: 1; }
.plan.featured ul { border-top-color: var(--d-line); }
.plan li { display: flex; gap: .7rem; font-size: .94rem; color: var(--ink-700); }
.plan li svg { color: var(--red); flex: none; margin-top: 3px; }

/* ---------- Floating actions (round — the one exception to sharp) ---------- */
.floaters { position: fixed; right: 20px; bottom: 20px; display: grid; gap: .7rem; z-index: 60; }
.floaters a { width: 52px; height: 52px; border-radius: var(--radius-pill); display: grid; place-items: center; color: #fff; transition: transform .2s var(--ease); }
.floaters a:hover { transform: translateY(-3px); }
.fab-wa { background: #1fa855; }
.fab-call { background: var(--red); }

/* ---------- Footer (near-black anchor) ---------- */
.site-footer { background: var(--ink-panel); color: var(--d-ink-300); padding-block: clamp(3.5rem, 7vw, 5.5rem) 1.8rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2.6rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.4rem; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: var(--d-ink-300); }
.site-footer h4 { color: #fff; font-family: var(--font-body); font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.3rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.footer-links a, .footer-links li { color: var(--d-ink-300); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-about { font-size: .94rem; max-width: 38ch; margin: 1.3rem 0 1.4rem; color: var(--d-ink-300); }
.footer-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.footer-badge { font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--d-ink-200); border: 1px solid var(--d-line); padding: .35rem .6rem; }
.footer-bottom {
  border-top: 1px solid var(--d-line);
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.8rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
  font-family: var(--font-body); font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--ink-400);
}

/* ---------- Gallery filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 2.6rem; width: fit-content; max-width: 100%; }
.filter-btn {
  font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: .7rem 1.3rem;
  border: none; background: var(--paper); cursor: pointer; color: var(--ink-500);
  transition: .22s var(--ease);
}
.filter-btn:hover { color: var(--ink-900); background: var(--paper-2); }
.filter-btn.active { background: var(--ink-900); color: #fff; }
@media (max-width: 600px) { .filters { width: 100%; } .filter-btn { flex: 1 1 auto; } }

/* ---------- Reveal (GSAP-driven; JS sets the initial hidden state so
   content is NEVER invisible if JS/GSAP fails to load) ---------- */
.reveal { will-change: transform, opacity; }
/* SplitText masked lines — extra room so descenders (g, y, p) aren't clipped
   by the line mask's overflow, without shifting the layout. */
.sl-line { padding-bottom: .15em; margin-bottom: -.15em; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2.4rem; }
.muted { color: var(--ink-500); }
.lead-strong { font-size: 1.15rem; color: var(--ink-700); }
.placeholder-note { font-family: var(--font-body); font-size: .82rem; font-weight: 500; color: var(--ink-400); letter-spacing: .01em; }
.card-note { background: var(--paper-2); border: 1px solid var(--line); padding: 1.1rem 1.3rem; font-size: .9rem; color: var(--ink-500); margin-top: 1.6rem; }
.card-note a { color: var(--red); font-weight: 600; }

/* company info fact list (definition list of label/value rows) */
.info-list { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.info-list-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1.5rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.info-list-row dt { margin: 0; color: var(--ink-500); font-size: .92rem; }
.info-list-row dd { margin: 0; color: var(--ink-900); font-weight: 600; font-size: .92rem; text-align: right; }

/* ---------- Legacy / leadership drawer (site-wide, slides from left) ----------
   Collapsible "our story" panel: the late founder + the current owner.
   Sharp corners, hairline structure, deep-green handle — matches the system.
   Depth comes from a scrim + hairline, not shadows. All content placeholder
   until real names / portraits / years are supplied (see .placeholder-note). */
.legacy { --legacy-w: min(384px, 88vw); }

/* Always-visible edge handle */
.legacy-tab {
  position: fixed; left: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 85;
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--red); color: #fff;
  border: none; cursor: pointer;
  padding: 1.05rem .6rem;
  writing-mode: vertical-rl;
  font-family: var(--font-body); font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  transition: left .5s var(--ease-out), background .2s var(--ease);
}
.legacy-tab:hover { background: var(--red-700); }
.legacy-tab:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.legacy-tab-dot { width: 7px; height: 7px; background: #fff; flex: none; }
@media (prefers-reduced-motion: no-preference) {
  .legacy-tab-dot { animation: legacyPulse 2.6s var(--ease) infinite; }
}
@keyframes legacyPulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }

.legacy-scrim {
  position: fixed; inset: 0; z-index: 75;
  background: rgba(11,15,13,.42);
  opacity: 0; pointer-events: none;
  transition: opacity .45s var(--ease);
}

.legacy-panel {
  position: fixed; top: 0; left: 0; z-index: 80;
  width: var(--legacy-w); height: 100%;
  background: var(--paper);
  border-right: 1px solid var(--line-2);
  transform: translateX(-100%);
  transition: transform .5s var(--ease-out);
  overflow-y: auto; overscroll-behavior: contain;
}
.legacy-inner { padding: clamp(1.5rem, 4vw, 2.3rem); }

.legacy.open .legacy-panel { transform: translateX(0); }
.legacy.open .legacy-scrim { opacity: 1; pointer-events: auto; }
.legacy.open .legacy-tab  { left: var(--legacy-w); }
.legacy.open .legacy-tab-dot { animation: none; opacity: 1; }

.legacy-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.legacy-head .eyebrow { margin: 0; }
.legacy-close {
  background: none; border: 1px solid var(--line); color: var(--ink-700);
  width: 38px; height: 38px; flex: none; display: grid; place-items: center;
  cursor: pointer; transition: .2s var(--ease);
}
.legacy-close:hover { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }

.legacy-title { font-size: clamp(1.5rem, 4.4vw, 1.95rem); letter-spacing: -.03em; margin-bottom: .5rem; }
.legacy-lede { color: var(--ink-500); font-size: .96rem; margin: 0 0 2rem; }

.legacy-person { display: grid; grid-template-columns: 92px 1fr; gap: 1.1rem; padding: 1.6rem 0; border-top: 1px solid var(--line); }
.legacy-person:first-of-type { border-top: none; padding-top: 0; }

.legacy-portrait {
  position: relative; margin: 0; width: 92px; aspect-ratio: 1;
  border: 1px solid var(--line); background: var(--paper-2);
  display: grid; place-items: center; overflow: hidden;
}
.legacy-portrait img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.legacy-ph { color: var(--ink-300); }
.legacy-portrait--memoriam { filter: grayscale(1); }
.legacy-ribbon {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--ink-panel); color: var(--d-ink-50);
  font-family: var(--font-body); font-size: .56rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; padding: .26rem .44rem;
}

.legacy-role { font-family: var(--font-body); font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.legacy-name { font-size: 1.16rem; letter-spacing: -.02em; margin: .34rem 0 .22rem; }
.legacy-name .placeholder-note { font-size: .78rem; }
.legacy-dates { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--ink-400); margin-bottom: .6rem; }
.legacy-body p { font-size: .9rem; color: var(--ink-700); margin: 0; line-height: 1.55; }

.legacy-foot { margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-400); }
.legacy-foot code { font-family: ui-monospace, Menlo, monospace; font-size: .74rem; background: var(--paper-2); padding: .1rem .35rem; border: 1px solid var(--line); }

@media (max-width: 560px) { .legacy-tab { padding: .9rem .5rem; font-size: .66rem; } }
