/* ==========================================================================
   Galaxy Drilling Fluids Pvt Ltd — site styles
   Palette and typography are fixed by the brand system (printed business card).
   Do not alter the hex values below.
   ========================================================================== */

/* --- Self-hosted fonts (latin subset, variable) --------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('../fonts/montserrat-var.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --ground:   #0A1722;  /* page background        */
  --surface:  #12212E;  /* cards, raised panels   */
  --accent:   #C9A227;  /* brass — CTAs, rules, key figures */
  --accent-2: #E0C378;  /* light brass — hover    */
  --text:     #F2F5F7;  /* body copy              */
  --muted:    #8FA3B2;  /* secondary text         */
  --rule:     #24394A;  /* hairlines, borders     */

  --font-head: Montserrat, "Segoe UI", Tahoma, sans-serif;
  --font-body: Inter, "Segoe UI", Helvetica, Arial, sans-serif;

  --header-h: 68px;
  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1180px;
  --section-y: clamp(64px, 8vw, 116px);
  --radius: 2px;

  /* Motion. One easing curve for everything that enters, one for everything
     that travels, so the whole site decelerates the same way. */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --reveal-time: 0.85s;
}

/* --- Reset ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
svg { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

ul { margin: 0; padding: 0; }

a {
  color: var(--accent);
  text-decoration-color: rgba(201, 162, 39, 0.45);
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-2); text-decoration-color: currentColor; }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 1px;
}

/* --- Layout helpers ------------------------------------------------------- */

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

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--rule);
  scroll-margin-top: var(--header-h);
}

.section--flush { border-top: 0; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 999;
  background: var(--accent);
  color: var(--ground);
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
  color: var(--ground);
}

/* --- Small-caps label ----------------------------------------------------- */

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.label--accent { color: var(--accent); }

.section-head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 64ch; }

.section-head .rule {
  width: 44px;
  height: 2px;
  background: var(--accent);
  border: 0;
  margin: 0 0 18px;
}

.section-head h2 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-top: 12px;
}

.section-head .lede {
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.0625rem;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 13px 24px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--ground);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--ground); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--rule);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }

.btn svg { width: 16px; height: 16px; flex: none; }

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  margin-right: auto;
}

.brand .mark { width: 26px; color: var(--accent); flex: none; }

.brand-name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.1;
  display: block;
}

.brand-sub {
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
  display: block;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  list-style: none;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="true"],
.nav a[aria-current="page"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* Enquiries is the call to action, so it reads as a control rather than as one
   more link in the row. */
.nav .nav-cta a {
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 8px 16px;
  font-weight: 600;
  transition: border-color .16s ease, color .16s ease, background-color .16s ease;
}

.nav .nav-cta a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.nav .nav-cta a[aria-current="true"] {
  border-color: var(--accent);
  background: rgba(201, 162, 39, 0.1);
  color: var(--accent-2);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 1040px) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    background: var(--ground);
    border-bottom: 1px solid var(--rule);
    display: none;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] { display: block; }
  .nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }
  .nav a {
    display: block;
    padding: 13px 0;
    border-bottom: 1px solid var(--rule);
    font-size: 0.9375rem;
  }
  .nav li:last-child a { border-bottom: 0; }
  .nav a[aria-current="true"],
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); }
  .nav-toggle { display: inline-flex; }

  /* In the panel the call to action becomes a full-width control. */
  .nav .nav-cta { margin-top: 16px; }
  .nav .nav-cta a,
  .nav .nav-cta a[aria-current="true"] {
    text-align: center;
    padding: 13px 16px;
    border: 1px solid var(--accent);
    border-radius: var(--radius);
  }
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(48px, 8vw, 88px) clamp(48px, 7vw, 80px);
  border-bottom: 1px solid var(--rule);
}

.hero-motif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--rule);
}

.hero .container { position: relative; }

.hero-grid { display: grid; gap: clamp(40px, 5vw, 72px); align-items: center; }

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.85fr);
  }
}

.hero-inner { max-width: 46rem; min-width: 0; }

/* --- Well schematic ------------------------------------------------------- */

.hero-figure {
  margin: 0;
  min-width: 0;
  display: none;
}

@media (min-width: 760px) {
  .hero-figure { display: block; }
}

/* Height is capped so the hero, schematic and figure counts still fit a
   900 px-tall viewport without scrolling; the width follows the ratio. */
.well-schematic {
  width: 100%;
  max-width: 440px;
  max-height: 560px;
  margin-inline: auto;
  height: auto;
}

.well-schematic .strata {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}

.well-schematic .casing {
  fill: none;
  stroke: #3C5872;
  stroke-width: 1.75;
}

.well-schematic .shoe {
  fill: none;
  stroke: #3C5872;
  stroke-width: 3;
  stroke-linecap: round;
}

.well-schematic .wellhead {
  fill: var(--surface);
  stroke: #3C5872;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.well-schematic .wellhead path { fill: none; }

.well-schematic .string {
  fill: var(--muted);
  stroke: var(--muted);
  stroke-width: 1.25;
  opacity: 0.75;
}

.well-schematic .string path:first-child { fill: none; }

.well-schematic .flow-down,
.well-schematic .flow-up {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}

.well-schematic .flow-down {
  stroke-dasharray: 9 15;
  animation: flow 2.6s linear infinite;
}

.well-schematic .flow-up {
  stroke: var(--accent-2);
  stroke-width: 1.75;
  opacity: 0.6;
  stroke-dasharray: 7 17;
  animation: flow-up 4.2s linear infinite;
}

.well-schematic .flow-up--b { animation-delay: -2.1s; }

/* Nothing animates while the hero is off screen. */
.hero-figure[data-paused="true"] .well-schematic * { animation-play-state: paused; }

@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes flow-up { to { stroke-dashoffset: -48; } }

.well-schematic .loss-zone path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.25;
  opacity: 0.55;
  stroke-linecap: round;
}

.well-schematic .pulse-dot { fill: var(--accent); }

.well-schematic .pulse-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1;
  opacity: 0.35;
  animation: pulse 3.6s var(--ease-in-out) infinite;
  transform-origin: 150px 332px;
}

@keyframes pulse {
  0%, 100% { opacity: 0.12; transform: scale(0.6); }
  50% { opacity: 0.5; transform: scale(1); }
}

.well-schematic .annot path {
  fill: none;
  stroke: var(--rule);
  stroke-width: 1;
}

.well-schematic .annot text {
  fill: var(--muted);
  font-family: var(--font-body);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.well-schematic .annot .annot--accent { fill: var(--accent); }

.hero-figure .zone-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-figure figcaption {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  max-width: 38ch;
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  padding-top: 16px;
}

.hero-figure figcaption .label {
  display: block;
  font-size: 0.6875rem;
  margin-bottom: 6px;
}

/* Drop-in slot for licensed footage; inert until a file is supplied. */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

.hero .mark {
  width: 54px;
  color: var(--accent);
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2.2rem, 6.4vw, 4rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.hero .descriptor {
  color: var(--accent);
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 26px;
}

.hero .lede {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--muted);
  max-width: 56ch;
  margin-bottom: 36px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-meta {
  margin-top: clamp(36px, 4vw, 52px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(22px, 3vw, 44px);
}

.hero-meta div { min-width: 0; }

.hero-meta .figure {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.02em;
  display: block;
}

.hero-meta .label { margin-top: 6px; font-size: 0.6875rem; }

/* --- Generic card grids --------------------------------------------------- */

.grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}

.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(262px, 1fr)); }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 2.4vw, 30px);
}

.card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.card p { color: var(--muted); font-size: 0.9375rem; }

.card .icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
  margin-bottom: 18px;
}

/* --- Division cards ------------------------------------------------------- */

.division-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: border-color .25s var(--ease-out), transform .25s var(--ease-out);
}
.division-card:hover,
.division-card:focus-visible {
  border-color: var(--accent);
  color: inherit;
  transform: translateY(-3px);
}

/* A brass corner rule that draws itself across the top edge on hover. */
.division-card::after {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  height: 2px;
  width: calc(100% + 2px);
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .45s var(--ease-out);
}
.division-card:hover::after,
.division-card:focus-visible::after { transform: scaleX(1); }

.division-card:hover .go svg,
.division-card:focus-visible .go svg { transform: translateX(4px); }

.division-card .go svg { transition: transform .25s var(--ease-out); }

.division-card .count {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.6rem, 5vw, 3.4rem);
  color: var(--accent);
  line-height: 1;
  letter-spacing: 0.01em;
}

.division-card .count-unit {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 500;
  margin-top: 10px;
  display: block;
}

.division-card h3 { margin-top: 22px; }

.division-card p { flex: 1; }

.division-card .go {
  margin-top: 22px;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.division-card .go svg { width: 14px; height: 14px; }

/* --- Category groups (function map) --------------------------------------- */

/* Dividers are borders on the rows, not a parent background showing through a
   1px gap — a row fading in would otherwise expose the divider colour as a
   block while it is still transparent. */
.function-list {
  list-style: none;
  display: grid;
  gap: 0;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}

.function-list > li {
  background: var(--ground);
  border-bottom: 1px solid var(--rule);
  padding: clamp(18px, 2vw, 24px) clamp(18px, 2.2vw, 28px);
  display: grid;
  grid-template-columns: minmax(170px, 14rem) 1fr;
  gap: 6px clamp(20px, 3vw, 40px);
  align-items: baseline;
}

.function-list h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.function-list p { color: var(--muted); font-size: 0.9375rem; }

.function-list .cats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.chip {
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 4px 10px;
  background: var(--surface);
}

.chip--link {
  text-decoration: none;
  transition: color .16s ease, border-color .16s ease, background-color .16s ease;
}

.chip--link:hover,
.chip--link:focus-visible {
  color: var(--accent-2);
  border-color: var(--accent);
  background: var(--ground);
}

.function-list > li {
  transition: background-color .2s ease;
}

.function-list > li:hover { background: var(--surface); }

.function-list > li:last-child { border-bottom: 0; }

@media (max-width: 640px) {
  .function-list > li { grid-template-columns: 1fr; }
}

/* --- Split panels (Iraq, sourcing) ---------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(24px, 3.5vw, 56px);
  align-items: start;
}

.prose p { color: var(--muted); }
.prose p strong { color: var(--text); font-weight: 600; }

.panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(24px, 2.6vw, 34px);
}

.panel + .panel { margin-top: clamp(16px, 2vw, 24px); }

.panel h3 {
  font-size: 1rem;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.panel > p { color: var(--muted); font-size: 0.9375rem; }

.panel .stack strong { color: var(--text); font-weight: 600; }

.noscript-note { margin-top: 10px; }

.stack {
  list-style: none;
  display: grid;
  gap: 14px;
}

.stack li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.stack li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.52em;
  width: 6px;
  height: 6px;
  background: var(--accent);
  transform: rotate(45deg);
}

.attribution {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.7;
}

/* --- Enquiry form --------------------------------------------------------- */

.form-wrap {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 40px);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px clamp(18px, 2.4vw, 28px);
}

.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }

.field > label {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
}

.field .req { color: var(--accent); }

.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px;
  width: 100%;
  transition: border-color .16s ease;
}

.field textarea { resize: vertical; min-height: 120px; }

.field input::placeholder,
.field textarea::placeholder { color: #6C8091; }

.field input:hover,
.field select:hover,
.field textarea:hover { border-color: #33506A; }

.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--accent); }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238FA3B2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.field select option { background: var(--ground); color: var(--text); }

.error-text {
  color: #F2A9A9;
  font-size: 0.8125rem;
  display: none;
}

.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: #C46A6A; }

.field[data-invalid="true"] .error-text { display: block; }

/* product picker */

.picker {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  grid-column: 1 / -1;
}

.picker legend {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 0;
  margin-bottom: 8px;
}

.picker-box { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--ground); }

.picker-search { padding: 12px; border-bottom: 1px solid var(--rule); }

.picker-search input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
.picker-search input:focus { border-color: var(--accent); }
.picker-search input::placeholder { color: #6C8091; }

.picker-list {
  max-height: 236px;
  overflow-y: auto;
  padding: 4px 12px 12px;
  list-style: none;
  display: block;
}

.picker-list .group-label {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-top: 14px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--rule);
}

.picker-list label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text);
  padding: 6px 4px;
  cursor: pointer;
  border-radius: var(--radius);
}
.picker-list label:hover { background: var(--surface); }

.picker-list input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 4px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.picker-empty { color: var(--muted); font-size: 0.875rem; padding: 12px 4px; }

.picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--rule);
}

.picker-selected:empty { display: none; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.8125rem;
  padding: 4px 6px 4px 10px;
}

.tag button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  padding: 3px;
  border-radius: 1px;
  display: inline-flex;
}
.tag button:hover { color: var(--accent-2); }
.tag button svg { width: 11px; height: 11px; }

.form-actions {
  margin-top: 26px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.form-note { color: var(--muted); font-size: 0.8125rem; max-width: 48ch; }

.form-status {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--ground);
  font-size: 0.9375rem;
  color: var(--text);
}

.form-status[data-tone="error"] { border-left-color: #C46A6A; }

/* --- Contact -------------------------------------------------------------- */

.director-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.director h3 { font-size: 1.0625rem; margin-bottom: 6px; }

.director .role {
  font-size: 0.6875rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 18px;
  display: block;
}

.director .tel {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  word-break: break-word;
}
.director .tel svg { width: 14px; height: 14px; flex: none; }

.contact-direct {
  margin-top: clamp(20px, 2.4vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 4vw, 48px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.contact-direct div { min-width: 0; }
.contact-direct .label { margin-bottom: 6px; }
.contact-direct a { font-size: 0.9375rem; font-weight: 500; word-break: break-word; }

/* --- Disclaimer ----------------------------------------------------------- */

.disclaimer {
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(18px, 2.2vw, 26px);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0;
}

.disclaimer p { margin: 0; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding-block: clamp(44px, 5vw, 72px) 32px;
  background: var(--ground);
}

.footer-top {
  display: grid;
  /* min() keeps the tracks from forcing a wider page than the viewport at 360 px */
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-brand .mark { width: 30px; color: var(--accent); margin-bottom: 16px; }
.footer-brand .name {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.9375rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.footer-brand p { color: var(--muted); font-size: 0.875rem; max-width: 34ch; }

.footer-col h3 {
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  font-family: var(--font-body);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: grid; gap: 10px; }

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.875rem;
  word-break: break-word;
}
.footer-col a:hover { color: var(--accent-2); }

.footer-disclaimer {
  margin-top: clamp(36px, 4vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.75;
  max-width: 92ch;
}

.footer-base {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.8125rem;
}

/* --- Catalogue ------------------------------------------------------------ */

.catalogue-head { padding-block: clamp(40px, 6vw, 72px) clamp(24px, 3vw, 36px); }

.catalogue-head h1 {
  font-size: clamp(1.85rem, 4.6vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 12px 0 18px;
}

.catalogue-head .lede { color: var(--muted); max-width: 64ch; font-size: 1.0625rem; }

.catalogue-head .disclaimer { margin-top: clamp(24px, 3vw, 34px); }

.filter-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: var(--ground);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding-block: 14px;
}

.filter-row {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) minmax(140px, 1fr) minmax(140px, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.filter-row .field { gap: 0; }

.search-wrap { position: relative; min-width: 0; }

.search-wrap svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  color: var(--muted);
  pointer-events: none;
}

.search-wrap input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 14px 12px 38px;
  width: 100%;
}
.search-wrap input:focus { border-color: var(--accent); }
.search-wrap input::placeholder { color: #6C8091; }

.filter-bar select {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text);
  background-color: var(--ground);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 38px 12px 14px;
  width: 100%;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' stroke='%238FA3B2' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
}
.filter-bar select:focus { border-color: var(--accent); }
.filter-bar select option { background: var(--ground); color: var(--text); }

.toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 16px;
  cursor: pointer;
  white-space: nowrap;
  background: var(--ground);
  transition: border-color .16s ease, color .16s ease;
}
.toggle:hover { border-color: var(--accent); color: var(--text); }
.toggle input { width: 14px; height: 14px; accent-color: var(--accent); margin: 0; flex: none; }
.toggle:has(input:checked) { border-color: var(--accent); color: var(--accent); }

.filter-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.filter-meta strong { color: var(--text); font-weight: 600; }

.btn-reset {
  background: transparent;
  border: 0;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}
.btn-reset:hover { color: var(--accent-2); border-bottom-color: currentColor; }

@media (max-width: 860px) {
  .filter-row { grid-template-columns: 1fr 1fr; }
  .filter-row .search-wrap { grid-column: 1 / -1; }
  .filter-row .toggle { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .filter-row { grid-template-columns: 1fr; }
}

.division-block { padding-top: clamp(40px, 5vw, 64px); }

.division-block > h2 {
  font-size: clamp(1.3rem, 2.8vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--accent);
}

.division-block .division-meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 14px;
  max-width: 72ch;
}

.category-block { padding-top: clamp(28px, 3.4vw, 44px); }

.category-block h3 {
  font-size: 0.8125rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.category-block h3 .n { color: var(--accent); font-size: 0.75rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  list-style: none;
}

.product {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s var(--ease-out), transform .2s var(--ease-out);
}
.product:hover {
  border-color: #33506A;
  border-left-color: var(--accent);
  transform: translateY(-2px);
}

.product-name {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.product-class {
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin: 0 0 12px;
  line-height: 1.5;
}

.product-desc { color: var(--muted); font-size: 0.875rem; line-height: 1.6; margin: 0; }

[hidden] { display: none !important; }

.empty-state {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px) 24px;
  text-align: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.empty-state h2 { font-size: 1.125rem; margin-bottom: 10px; }
.empty-state p { color: var(--muted); font-size: 0.9375rem; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Motion --------------------------------------------------------------- */

/* The rise-in only exists when JavaScript is running, so content can never be
   left invisible if the observer never fires. */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--reveal-time) var(--ease-out),
    transform var(--reveal-time) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* The brass rule above a section heading draws itself in from the left. */
.js .section-head.reveal .rule {
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.9s var(--ease-out) 0.1s;
}
.js .section-head.reveal.is-visible .rule { transform: none; }

/* Scroll progress: a hairline of brass along the bottom edge of the header. */
.scroll-progress {
  position: fixed;
  top: calc(var(--header-h) - 2px);
  left: 0;
  right: 0;
  height: 2px;
  z-index: 101;
  pointer-events: none;
}

.scroll-progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  opacity: 0;
  transition: opacity .3s ease;
}

.scroll-progress[data-active="true"] span { opacity: 1; }

/* --- Back to top ---------------------------------------------------------- */

.to-top {
  position: fixed;
  right: clamp(16px, 3vw, 32px);
  bottom: clamp(16px, 3vw, 32px);
  z-index: 95;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out),
    border-color .16s ease, color .16s ease;
}

.to-top[data-shown="true"] { opacity: 1; transform: none; }

.to-top:hover { border-color: var(--accent); color: var(--accent-2); }

.to-top svg { width: 17px; height: 17px; }

/* --- Active filter chips (catalogue) -------------------------------------- */

.active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.active-filters:empty { display: none; }

.filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 2px solid var(--accent);
  border-radius: var(--radius);
  padding: 5px 7px 5px 11px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: border-color .16s ease, color .16s ease;
}

.filter-tag:hover { border-color: var(--accent); color: var(--accent-2); }

.filter-tag svg { width: 10px; height: 10px; flex: none; }

.kbd-hint {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  margin-left: auto;
}

.kbd-hint kbd {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 2px;
  padding: 2px 6px;
}

@media (max-width: 860px) { .kbd-hint { display: none; } }

/* --- Odometer ------------------------------------------------------------- */

.odometer {
  display: inline-flex;
  align-items: flex-start;
  font-variant-numeric: tabular-nums;
  --odo-h: 1.15em;
}

.odometer .odo-digit {
  display: block;
  height: var(--odo-h);
  overflow: hidden;
}

.odometer .odo-reel {
  display: block;
  transform: translateY(0);
  transition: transform 1.15s var(--ease-out);
  transition-delay: var(--odo-delay, 0ms);
}

.odometer .odo-cell {
  display: block;
  height: var(--odo-h);
  line-height: var(--odo-h);
}

[data-odometer] { font-variant-numeric: tabular-nums; }

/* The figure sits on a 1.15em line while it rolls, so reserve that height and
   keep the label underneath from shifting. */
.hero-meta .figure,
.division-card .count { line-height: 1.15; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .js .section-head.reveal .rule { transform: none; }
  .scroll-progress { display: none; }
  .well-schematic .flow-down,
  .well-schematic .flow-up,
  .well-schematic .pulse-ring { animation: none; }
  .well-schematic .pulse-ring { opacity: 0.3; }
  .to-top { opacity: 1; transform: none; }
  .hero-video { display: none; }
}

/* While the inertia scroller is driving the window, the browser must not also
   animate the same scroll — otherwise the two fight each other frame by frame. */
html.js-smooth { scroll-behavior: auto; }

/* --- Narrow screens ------------------------------------------------------- */

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-meta { gap: 22px 32px; }
  .footer-base { flex-direction: column; }
  .brand-sub { display: none; }
}

@media print {
  .site-header, .filter-bar, .hero-motif, .form-wrap, .nav-toggle { display: none; }
}
