/* ==========================================================================
   AG Ethiopia — Always Great Ethiopia
   Oil & Lubricants brand site

   Design language: bold editorial industrial.
   Heavy grotesque display set tight and large, monospaced technical labels,
   exposed hairline grid, square corners, tabular figures. Ornament is
   structural — rules, indices and borders rather than shadows and blur.
   --------------------------------------------------------------------------
   1.  Design tokens
   2.  Reset & base
   3.  Typography
   4.  Layout primitives & rules
   5.  Buttons & form controls
   6.  Header & navigation
   7.  Hero
   8.  Sections & components
   9.  Product detail
   10. Grade finder
   11. Footer
   12. Motion & utilities
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — blue-black ink off the AG blue, refined-oil amber, Ethiopian green */
  --ag-ink-950: #16223f;
  --ag-ink-900: #1d2d53;
  --ag-ink-800: #253a68;
  --ag-ink-700: #2f4880;
  --ag-ink-600: #3d5a9c;
  --ag-ink-500: #5372b8;

  --ag-amber-700: #a7620a;
  --ag-amber-600: #d4860a;
  --ag-amber-500: #f5a524;
  --ag-amber-400: #ffbe4d;
  --ag-amber-300: #ffd689;

  --ag-green-700: #0a6e3a;
  --ag-green-600: #0e8a4a;
  --ag-green-500: #14a85c;

  --ag-red-500: #d62828;
  /* Error text needs to lift off the navy in dark mode; the raw red only
     clears 3.4:1 there. The flag stripe keeps the true red. */
  --danger: var(--ag-red-500);

  /* Neutrals — warm, printed-paper bias */
  --ag-white: #ffffff;
  --ag-paper: #f6f3ed;
  --ag-paper-dim: #ece7dd;
  --ag-grey-500: #6b7182;
  --ag-grey-600: #4c5263;

  /* Semantic — light theme (default) */
  --bg: var(--ag-white);
  --bg-alt: var(--ag-paper);
  --bg-sunken: var(--ag-paper-dim);
  --surface: var(--ag-white);
  --surface-raised: var(--ag-paper);
  --border: rgba(22, 34, 63, .16);
  --border-strong: rgba(22, 34, 63, .32);
  --rule: rgba(22, 34, 63, .85);
  --text: var(--ag-ink-950);
  --text-muted: var(--ag-grey-600);
  --text-subtle: #5c6272;
  --text-invert: var(--ag-white);
  --accent: var(--ag-amber-600);
  --accent-ink: #9c5c08;
  --accent-hover: var(--ag-amber-700);
  --accent-contrast: #16223f;
  --ring: var(--ag-amber-700);

  /* Typography */
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Fluid type scale — display sizes run larger than before */
  --fs-xs: .6875rem;
  --fs-sm: .8125rem;
  --fs-base: 1rem;
  --fs-md: clamp(1.02rem, .99rem + .16vw, 1.125rem);
  --fs-lg: clamp(1.15rem, 1.06rem + .42vw, 1.45rem);
  --fs-xl: clamp(1.45rem, 1.25rem + .95vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.5rem + 1.9vw, 3.1rem);
  --fs-3xl: clamp(2.05rem, 1.6rem + 2.2vw, 3.4rem);
  --fs-4xl: clamp(2.5rem, 1.7rem + 3.3vw, 4.4rem);

  /* Space & shape — corners are square on purpose */
  --space-section: clamp(4rem, 3rem + 4.5vw, 7rem);
  --radius-sm: 0;
  --radius: 0;
  --radius-lg: 0;
  --radius-xl: 0;
  --radius-pill: 0;
  --container: 1280px;
  --container-narrow: 860px;
  --header-h: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

[data-theme="dark"] {
  --bg: var(--ag-ink-950);
  --bg-alt: #111a30;
  --bg-sunken: #0b1221;
  --surface: var(--ag-ink-950);
  --surface-raised: var(--ag-ink-900);
  --border: rgba(255, 255, 255, .16);
  --border-strong: rgba(255, 255, 255, .34);
  --rule: rgba(238, 240, 245, .78);
  --text: #f2f3f7;
  --text-muted: #a9afc1;
  --text-subtle: #858ca0;
  --accent: var(--ag-amber-500);
  --accent-ink: var(--ag-amber-500);
  --accent-hover: var(--ag-amber-400);
  --accent-contrast: #16223f;
  --danger: #f98a8a;
  --ring: var(--ag-amber-500);
  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 2rem);
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  font-variant-numeric: tabular-nums;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

::selection { background: var(--ag-amber-500); color: #16223f; }
hr { border: 0; border-top: 1px solid var(--border); }

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-4xl); font-weight: 900; text-transform: uppercase; }
h2 { font-size: var(--fs-3xl); font-weight: 900; text-transform: uppercase; }
h3 { font-size: var(--fs-xl); letter-spacing: -.025em; line-height: 1.08; }
h4 { font-size: var(--fs-lg); letter-spacing: -.02em; }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lg);
  line-height: 1.45;
  color: var(--text-muted);
  letter-spacing: -.011em;
}

/* Monospaced technical label — the workhorse of this design */
.eyebrow {
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 30px;
  height: 1px;
  background: currentColor;
  transform: translateY(-.28em);
}
.eyebrow--center { justify-content: center; }
.eyebrow--center::before { display: none; }

.text-gradient { color: var(--ag-amber-400); }
[data-theme="dark"] .text-gradient { color: var(--ag-amber-400); }

/* --------------------------------------------------------------------------
   4. Layout primitives & rules
   -------------------------------------------------------------------------- */
.container {
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2.5rem, var(--container-narrow)); }

.section {
  padding-block: var(--space-section);
  border-top: 1px solid var(--border);
}
.section--tight { padding-block: clamp(2.75rem, 2rem + 2.5vw, 4rem); }
.section--alt { background: var(--bg-alt); }
.section--ink {
  background: var(--ag-ink-950);
  color: #f2f3f7;
  border-top-color: rgba(255, 255, 255, .2);
  --text: #f2f3f7;
  --text-muted: #a9afc1;
  --text-subtle: #858ca0;
  --border: rgba(255, 255, 255, .17);
  --border-strong: rgba(255, 255, 255, .34);
  --rule: rgba(238, 240, 245, .8);
  --surface: transparent;
  --accent: var(--ag-amber-500);
  --accent-ink: var(--ag-amber-400);
  --ring: var(--ag-amber-400);
}

/* Section heading block, with a running index in the margin */
.section-head { margin-bottom: clamp(2.25rem, 1.75rem + 2vw, 3.25rem); }
.section-head h2 { max-width: 19ch; }
.section-head .eyebrow { margin-bottom: 1.15rem; }
.section-head h2 + p,
.section-head h2 + .lead { margin-top: 1.25rem; }
.section-head p { max-width: 54ch; }

.section-head--center { text-align: center; }
.section-head--center h2 { max-width: 22ch; margin-inline: auto; }
.section-head--center p { margin-inline: auto; }

/* Hairline-joined cells. Each cell carries its own border and overlaps its
   neighbour by 1px, so interior rules stay hairline-thin and a part-filled
   last row (product filtering, odd item counts) leaves no orphan block. */
.grid { display: grid; gap: 0; }
.grid > * { border: 1px solid var(--border); margin-right: -1px; margin-bottom: -1px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Grids of separate, spaced cells */
.grid--loose { gap: clamp(1rem, .75rem + 1vw, 1.5rem); }
.grid--loose > * { margin: 0; }

.split {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 4rem);
  align-items: center;
  /* minmax(0, …) not 1fr: an auto minimum is the track's min-content width,
     so one unwrappable button label widened the grid past the viewport. */
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
  .split--wide-right { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); }
}

.stack > * + * { margin-top: 1.1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 200;
  padding: .75rem 1.25rem;
  background: var(--ag-amber-500);
  color: #16223f;
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: var(--fs-xs);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   5. Buttons & form controls
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--accent);
  --btn-fg: var(--accent-contrast);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  padding: .95rem 1.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bg);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .2s var(--ease), color .2s var(--ease),
              border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

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

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .45);
}
.btn--on-dark:hover { background: #fff; color: var(--ag-ink-950); border-color: #fff; }

.btn--lg { padding: 1.15rem 2rem; font-size: var(--fs-sm); }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  border-bottom: 1px solid currentColor;
  padding-bottom: .15rem;
}
.link-arrow svg { width: 1em; height: 1em; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* Form fields */
.field { display: flex; flex-direction: column; gap: .45rem; }
.field--full { grid-column: 1 / -1; }

.field label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field .req { color: var(--danger); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field textarea { min-height: 150px; resize: vertical; }

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5l5-5' fill='none' stroke='%236b7b82' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
}

.field .error-msg {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--danger);
}
.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--danger); }

.checkbox {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.checkbox input { width: 1.1rem; height: 1.1rem; margin-top: .22rem; accent-color: var(--accent); flex: none; }
.checkbox.has-error { color: var(--danger); }
.checkbox.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--ag-ink-950);
  color: rgba(242, 243, 247, .8);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 36px;
  flex-wrap: wrap;
}
.topbar a { display: inline-flex; align-items: center; gap: .45rem; }
.topbar a:hover { color: var(--ag-amber-400); }
.topbar svg { width: 13px; height: 13px; opacity: .75; }
.topbar__list { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.topbar__tagline { display: none; }
/* Below this the phone number and the address will not sit on one line, and
   the bar doubles in height — 17% of a phone screen spent before any content.
   The number is the one you would actually tap; the address is in the footer
   and on the contact page. */
@media (max-width: 389px) {
  .topbar__list li:nth-child(2) { display: none; }
}
@media (min-width: 760px) {
  .topbar__tagline {
    display: block;
    color: var(--ag-amber-400);
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  transition: border-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--rule); }

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  min-height: var(--header-h);
}
@media (min-width: 560px) { .site-header__inner { gap: 1.25rem; } }

/* The brand has to yield before the header actions do. With flex:none on both
   and the tagline setting the width, a 360px phone pushed the menu button past
   the viewport edge, where body{overflow-x:hidden} clipped it — the navigation
   could not be reached at all on the commonest phone size there is. */
.brand { display: inline-flex; align-items: center; gap: .65rem; flex: 0 1 auto; min-width: 0; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.22rem;
  letter-spacing: -.045em;
  text-transform: uppercase;
  /* Last-resort guard: the name truncates rather than displacing the buttons. */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand__name span { color: var(--accent-ink); }
.brand__tag {
  margin-top: .3rem;
  font-family: var(--font-mono);
  font-size: .5625rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-subtle);
  font-weight: 500;
}

.nav { display: none; }
@media (min-width: 1100px) { .nav { display: flex; align-items: center; } }

.nav__link {
  position: relative;
  padding: .5rem .9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color .15s var(--ease);
}
.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: .9rem;
  right: .9rem;
  bottom: -.1rem;
  height: 2px;
  background: var(--accent);
}

/* Never shrinks: the toggles are the only navigation on a phone. */
.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

/* Below the first breakpoint the header carries the mark, the name and the two
   toggles, and nothing else. The tagline stays in the footer. */
@media (max-width: 460px) {
  /* "Find your nearest stockist" is 272px of unwrappable text, which on a
     320px screen is wider than the column it sits in. */
  .btn { white-space: normal; text-wrap: balance; }
}

@media (max-width: 559px) {
  .site-header .brand { gap: .5rem; }
  .site-header .brand__mark { height: 28px; }
  .site-header .brand__name { font-size: 1.05rem; }
  .site-header .brand__tag { display: none; }
}
/* At 320px the name has about 122px to sit in, and 1.05rem needs ~135 — it
   was hitting the ellipsis. Small enough to fit, large enough to read. */
@media (max-width: 379px) {
  .site-header .brand__name { font-size: .9rem; }
  .header-actions { gap: .35rem; }
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  transition: color .15s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease);
}
.icon-btn:hover { color: var(--bg); border-color: var(--text); background: var(--text); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

.header-actions .btn { display: none; }
@media (min-width: 680px) { .header-actions .btn { display: inline-flex; } }

.nav-toggle { display: inline-grid; }
@media (min-width: 1100px) { .nav-toggle { display: none; } }

.nav-toggle__bars { width: 20px; height: 13px; position: relative; }
.nav-toggle__bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform .25s var(--ease), opacity .15s var(--ease);
}
.nav-toggle__bars span:nth-child(1) { top: 0; }
.nav-toggle__bars span:nth-child(2) { top: 5.5px; }
.nav-toggle__bars span:nth-child(3) { top: 11px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: grid;
  grid-template-rows: var(--header-h) 1fr;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity .25s var(--ease), visibility .25s var(--ease);
}
.mobile-nav.is-open { visibility: visible; opacity: 1; }
@media (min-width: 1100px) { .mobile-nav { display: none; } }

.mobile-nav__body {
  overflow-y: auto;
  padding: 1rem 0 3rem;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
}
.mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem .1rem;
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -.03em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(10px);
}
.mobile-nav.is-open .mobile-nav__link {
  animation: navIn .4s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.mobile-nav__link svg { width: .9rem; height: .9rem; color: var(--accent); }
.mobile-nav__link[aria-current="page"] { color: var(--accent-ink); }
.mobile-nav__footer { margin-top: 2rem; display: grid; gap: .75rem; }

@keyframes navIn { to { opacity: 1; transform: none; } }

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--ag-ink-950);
  color: #fff;
  overflow: hidden;
  --ring: var(--ag-amber-400);
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.5rem) clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(58% 60% at 80% 22%, rgba(245, 165, 36, .22) 0%, transparent 62%),
    radial-gradient(50% 50% at 8% 90%, rgba(20, 168, 92, .13) 0%, transparent 62%),
    var(--ag-ink-950);
}

/* Exposed structural grid — four hairline columns */
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.hero__grid::before {
  content: "";
  position: absolute;
  inset: 0;
  width: min(100% - 2.5rem, var(--container));
  margin-inline: auto;
  background-image: linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px);
  background-size: calc(100% / 4) 100%;
  border-right: 1px solid rgba(255, 255, 255, .09);
}

.hero__inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 980px) { .hero__inner { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.hero .eyebrow { color: var(--ag-amber-400); }

.hero h1 {
  margin-block: 1.25rem 1.5rem;
  font-size: var(--fs-4xl);
  line-height: .93;
  letter-spacing: -.045em;
}
.hero h1 .text-gradient { display: inline; }

.hero__copy p {
  color: rgba(242, 243, 247, .74);
  font-size: var(--fs-md);
  max-width: 48ch;
  line-height: 1.55;
}

.hero__actions { margin-top: 2.25rem; }

.hero__stats {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .22);
}
@media (min-width: 620px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stat {
  padding: 1.5rem 1.25rem 1.5rem 0;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.hero__stat:last-child { border-right: 0; }
@media (max-width: 619px) { .hero__stat:nth-child(2n) { border-right: 0; } }
.hero__stat .num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.9rem);
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: .9;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.hero__stat .label {
  margin-top: .7rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, .58);
}

.hero__visual { position: relative; }

/* Spec plate — the hero product presented as a data plate rather than a
   floating cut-out. It reuses the page's own devices: the hairline frame of
   the grids, the mono index of the section headings, the halftone off the AG
   label, and a spec row built like .key-specs. Callout chips laid over the
   pack were covering the label they were meant to advertise. */
.spec-plate {
  margin: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  /* Nearly opaque: the hero's column rules running through the spec rows read
     as noise rather than depth. The plate sits over the grid, not in it. */
  background: linear-gradient(180deg, rgba(26, 39, 70, .93), rgba(17, 26, 48, .97));
}
.spec-plate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, .56);
}
.spec-plate__index { color: var(--ag-amber-400); }

.spec-plate__stage {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) 1rem;
}
.spec-plate__stage::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 150px;
  background-image: radial-gradient(circle at center,
    color-mix(in srgb, var(--ag-amber-500) 30%, transparent) 1.5px, transparent 1.6px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to top, #000, transparent);
  mask-image: linear-gradient(to top, #000, transparent);
}
.spec-plate__stage img {
  position: relative;
  width: auto;
  height: clamp(230px, 26vw, 330px);
  filter: drop-shadow(0 26px 46px rgba(0, 0, 0, .55));
}

.spec-plate__foot { border-top: 1px solid rgba(255, 255, 255, .14); }
.spec-plate__name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
}
.spec-plate__name svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--ag-amber-400);
  transition: transform .3s var(--ease);
}
.spec-plate__name:hover svg,
.spec-plate__name:focus-visible svg { transform: translateX(4px); }

.spec-plate__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.spec-plate__specs > div {
  padding: .85rem 1.1rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, .1);
}
.spec-plate__specs > div:last-child { border-right: 0; }
.spec-plate__specs dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, .5);
}
.spec-plate__specs dd {
  margin: .45rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  letter-spacing: -.01em;
  color: #fff;
}
@media (max-width: 420px) {
  .spec-plate__specs { grid-template-columns: 1fr 1fr; }
  .spec-plate__specs > div:nth-child(2n) { border-right: 0; }
  .spec-plate__specs > div:last-child { grid-column: 1 / -1; border-top: 1px solid rgba(255, 255, 255, .1); }
}

/* Specification ticker — runs full-bleed under the hero */
.ticker {
  position: relative;
  overflow: hidden;
  background: var(--ag-amber-500);
  color: #16223f;
  border-block: 1px solid var(--ag-ink-950);
}
.ticker__track {
  display: flex;
  width: max-content;
  animation: tickerScroll 42s linear infinite;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  padding: .85rem 1.5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
}
.ticker__item::after {
  content: "";
  width: 5px;
  height: 5px;
  background: #16223f;
  transform: rotate(45deg);
  margin-left: .8rem;
}
@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  isolation: isolate;
  background: var(--ag-ink-950);
  color: #fff;
  --ring: var(--ag-amber-400);
  padding-block: clamp(2.75rem, 2rem + 3.5vw, 4.5rem);
  overflow: hidden;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 110% at 88% 0%, rgba(245, 165, 36, .2) 0%, transparent 62%),
    radial-gradient(45% 95% at 4% 100%, rgba(20, 168, 92, .12) 0%, transparent 62%),
    var(--ag-ink-950);
}
.page-hero h1 { margin-block: 1.1rem 1.1rem; font-size: var(--fs-3xl); }
.page-hero p { color: rgba(242, 243, 247, .74); max-width: 58ch; font-size: var(--fs-md); }
.page-hero .eyebrow { color: var(--ag-amber-400); }

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, .55);
  margin-top: 1.75rem;
}
.breadcrumb a:hover { color: var(--ag-amber-400); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .5rem; opacity: .45; }
.breadcrumb [aria-current] { color: rgba(242, 243, 247, .9); }

/* --------------------------------------------------------------------------
   8. Sections & components
   -------------------------------------------------------------------------- */

/* Static specification strip (interior pages) */
.trust-strip {
  border-block: 1px solid var(--border);
  background: var(--bg-alt);
  padding-block: 1.25rem;
}
.trust-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 2rem;
}
.trust-strip__label {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.spec-chip {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}
.spec-chip svg { width: 14px; height: 14px; color: var(--accent); }

/* Cell — the base card. Square, hairline, index-numbered. */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 1.25rem + 1vw, 2.25rem);
  background: var(--bg);
  /* Cells inside .grid get the same border from `.grid > *`; this keeps a card
     framed when it is used on its own, in a .split or a .stack. */
  border: 1px solid var(--border);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.section--alt .card { background: var(--bg-alt); }
.section--ink .card { background: var(--ag-ink-950); }


.card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .35s var(--ease);
}
.card:hover::after { width: 100%; }

.card h3 { margin-bottom: .65rem; }
.card p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }

.card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.35rem;
  border: 1px solid var(--border-strong);
  color: var(--accent-ink);
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.card:hover .card__icon { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.card__icon svg { width: 22px; height: 22px; }

.card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--accent-ink);
  letter-spacing: .16em;
  margin-bottom: 1rem;
}
.card .link-arrow { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; }
.card--link::after { height: 3px; }
.card--link { cursor: pointer; }
.card--link > .link-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
}

/* Product card */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  transition: background-color .2s var(--ease);
}
.section--alt .product-card { background: var(--bg-alt); }
.product-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 3px;
  background: var(--pc-tint, var(--accent));
  transition: width .35s var(--ease);
  z-index: 3;
}
.product-card:hover::after { width: 100%; }

.product-card__media {
  position: relative;
  display: grid;
  place-items: center;
  padding: 2rem 1.5rem 1.5rem;
  min-height: 210px;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(60% 55% at 50% 45%, color-mix(in srgb, var(--pc-tint, var(--accent)) 13%, transparent), transparent 72%);
}
.product-card__media img { height: 165px; width: auto; transition: transform .35s var(--ease); }
.product-card:hover .product-card__media img { transform: translateY(-5px); }

.tag {
  display: inline-flex;
  align-items: center;
  padding: .3rem .6rem;
  font-family: var(--font-mono);
  font-size: .625rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  background: var(--text);
  color: var(--bg);
}
.tag--ink { background: var(--ag-ink-900); color: #fff; }
.tag--green { background: var(--ag-green-700); color: #fff; }
.product-card__media .tag { position: absolute; top: 0; left: 0; }

.product-card__body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.product-card__cat {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.product-card__body h3 { font-size: var(--fs-lg); margin: .5rem 0 .6rem; }
.product-card__body > p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }

.product-card__link { color: inherit; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.product-card__link:hover { color: var(--accent-ink); }
.product-card .pack-sizes,
.product-card .spec-list { position: relative; z-index: 3; pointer-events: none; }

.spec-list {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  display: grid;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
}
.spec-list div { display: flex; justify-content: space-between; gap: 1rem; }
.spec-list dt { color: var(--text-subtle); text-transform: uppercase; letter-spacing: .08em; }
.spec-list dd { margin: 0; font-weight: 600; text-align: right; }

.pack-sizes { margin-top: 1.1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.pack-sizes span {
  padding: .25rem .55rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* Filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: var(--bg);
  border: 1px solid var(--rule);
  margin-bottom: 2rem;
  position: sticky;
  top: calc(var(--header-h) + .5rem);
  z-index: 20;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .55rem .95rem;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: all .15s var(--ease);
}
.chip:hover { border-color: var(--text); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }

.search-field { position: relative; min-width: 220px; flex: 1 1 220px; max-width: 320px; }
.search-field svg {
  position: absolute;
  left: .85rem;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-subtle);
  pointer-events: none;
}
.search-field input {
  width: 100%;
  padding: .7rem 1rem .7rem 2.4rem;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.search-field input:focus { outline: none; border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

.results-count {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 1.25rem;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  background: var(--bg);
  color: var(--text-muted);
}

/* Feature media panel */
.feature-media {
  position: relative;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}
.section--alt .feature-media { background: var(--bg); }
.feature-media img { width: 100%; }

/* Three packs at descending sizes. These were fixed pixel heights, which gave
   the row a 430px floor — wider than a phone — and pushed the whole page out.
   Sized against the viewport instead, so the group shrinks with it. */
.feature-media--row {
  display: flex;
  gap: clamp(.5rem, 2vw, 1rem);
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 2.5rem) clamp(.85rem, 3vw, 1.5rem);
}
/* Sized as a share of the panel, not of the viewport. Viewport units looked
   right on a phone but still overflowed at 980px, where the panel is a narrow
   grid column inside a wide window. Percentages track the panel itself; the
   max-widths stop them growing past the original artwork size. */
.feature-media--row img { width: auto; height: auto; flex: 0 1 auto; min-width: 0; }
.feature-media--row img:nth-child(1) { width: 38%; max-width: 144px; }
.feature-media--row img:nth-child(2) { width: 30%; max-width: 113px; }
.feature-media--row img:nth-child(3) { width: 25%; max-width: 94px; }
/* This row's tall pack is the middle one. */
.feature-media--row-mid img:nth-child(1) { width: 30%; max-width: 110px; }
.feature-media--row-mid img:nth-child(2) { width: 38%; max-width: 141px; }
.feature-media--row-mid img:nth-child(3) { width: 25%; max-width: 94px; }

.check-list { display: grid; }
.check-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--border);
}
.check-list li:first-child { padding-top: 0; }
.check-list svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); margin-top: .15rem; }
.check-list strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.015em;
  font-size: var(--fs-md);
}
.check-list p { color: var(--text-muted); font-size: var(--fs-sm); margin-top: .3rem; line-height: 1.6; }

/* Stat band — oversized tabular figures */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 2px solid var(--rule);
}
@media (min-width: 760px) { .stat-band { grid-template-columns: repeat(4, 1fr); } }
.stat {
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stat:last-child { border-right: 0; }
@media (min-width: 760px) {
  .stat { border-bottom: 0; }
}
@media (max-width: 759px) { .stat:nth-child(2n) { border-right: 0; } }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 4rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: .88;
  font-variant-numeric: tabular-nums;
}
.stat .label {
  margin-top: .9rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  line-height: 1.5;
  letter-spacing: .06em;
  color: var(--text-muted);
  max-width: 26ch;
}

/* Industry tiles */
.industry {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 265px;
  padding: 1.75rem;
  color: #fff;
  background: var(--ag-ink-950);
  transition: background-color .3s var(--ease);
}
.industry::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(170deg, var(--ind-a, #1d2d53), transparent 70%);
  opacity: .9;
}
.industry::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--ag-amber-500);
  transition: width .35s var(--ease);
}
.industry:hover::after { width: 100%; }
.industry > * { position: relative; }
.industry__icon { width: 30px; height: 30px; color: var(--ag-amber-400); margin-bottom: auto; }
.industry h3 { font-size: var(--fs-lg); margin-top: 1.5rem; text-transform: uppercase; letter-spacing: -.02em; }
.industry p { font-size: var(--fs-sm); color: rgba(255, 255, 255, .7); margin-top: .5rem; line-height: 1.55; }

/* Timeline */
.timeline { display: grid; border-top: 1px solid var(--border); }
.timeline li {
  display: grid;
  gap: .35rem 1.5rem;
  grid-template-columns: 1fr;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 640px) { .timeline li { grid-template-columns: 8rem 1fr; } }
.timeline .year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--accent-ink);
  font-size: var(--fs-xs);
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-top: .25rem;
}
.timeline h3 { font-size: var(--fs-md); margin-bottom: .4rem; }
.timeline p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }
@media (min-width: 640px) { .timeline h3, .timeline p { grid-column: 2; } }

/* Accordion */
.accordion { border-top: 1px solid var(--rule); }
.accordion__item { border-bottom: 1px solid var(--border); }
.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem .1rem;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: -.018em;
  color: var(--text);
  transition: color .15s var(--ease);
}
.accordion__trigger:hover { color: var(--accent-ink); }
.accordion__icon {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  border: 1px solid var(--border-strong);
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: opacity .2s var(--ease);
}
.accordion__icon::before { width: 10px; height: 1.5px; }
.accordion__icon::after { width: 1.5px; height: 10px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { opacity: 0; }
.accordion__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.accordion__panel.is-open { grid-template-rows: 1fr; }
.accordion__panel > div { overflow: hidden; }
.accordion__panel p { color: var(--text-muted); padding: 0 .1rem 1.5rem; max-width: 70ch; }

/* Network cells */
.network { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0; }
.network__item { border: 1px solid var(--border); margin-right: -1px; margin-bottom: -1px; }
.network__item {
  padding: 1.35rem;
  background: var(--bg);
  transition: background-color .2s var(--ease);
}
.section--alt .network__item { background: var(--bg-alt); }
.network__item:hover { background: var(--text); color: var(--bg); }
.network__item:hover p { color: rgba(255, 255, 255, .7); }
[data-theme="dark"] .network__item:hover p { color: rgba(0, 0, 0, .7); }
.network__item h3 {
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  gap: .5rem;
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.network__item h3 svg { width: 15px; height: 15px; color: var(--accent); }
.network__item:hover h3 svg { color: inherit; }
.network__item p { font-size: var(--fs-sm); color: var(--text-muted); margin-top: .4rem; }

/* Statement block (replaces the old pull-quote) */
.quote {
  padding: clamp(1.75rem, 1.5rem + 1.5vw, 2.5rem);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
}
.section--alt .quote { background: var(--bg); }
.quote h3 { text-transform: uppercase; }

/* CTA band */
.cta-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(2.5rem, 2rem + 3vw, 4.5rem);
  color: #fff;
  background: var(--ag-ink-950);
  --ring: var(--ag-amber-400);
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(42% 90% at 90% 12%, rgba(245, 165, 36, .26), transparent 66%),
    radial-gradient(38% 80% at 4% 96%, rgba(20, 168, 92, .18), transparent 64%);
}
.cta-band h2 { font-size: var(--fs-2xl); max-width: 20ch; }
.cta-band p { color: rgba(255, 255, 255, .74); margin-top: 1.1rem; max-width: 54ch; }
.cta-band .cluster { margin-top: 2.25rem; }

/* Contact cells */
.contact-card {
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
}
.grid > .contact-card { border-width: 1px; }
.section--alt .contact-card { background: var(--bg-alt); }
.contact-card h3 {
  font-size: var(--fs-md);
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: -.015em;
}
.contact-card h3 svg { width: 17px; height: 17px; color: var(--accent); }
.contact-card p, .contact-card a { font-size: var(--fs-sm); color: var(--text-muted); }
.contact-card a:hover { color: var(--accent-ink); }

.form-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.form-note {
  padding: 1rem 1.15rem;
  background: var(--bg-alt);
  border-left: 2px solid var(--border-strong);
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.section--alt .form-note { background: var(--bg); }

.form-status {
  display: none;
  padding: 1rem 1.15rem;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  border-left: 3px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: color-mix(in srgb, var(--ag-green-600) 10%, transparent); border-color: var(--ag-green-600); color: var(--ag-green-700); }
[data-theme="dark"] .form-status--ok { color: var(--ag-green-500); }
.form-status--err { background: color-mix(in srgb, var(--danger) 10%, transparent); border-color: var(--danger); color: var(--danger); }

/* Data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); }
table.data { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 620px; }
table.data th, table.data td { padding: .95rem 1.15rem; text-align: left; border-bottom: 1px solid var(--border); }
table.data thead th {
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--bg-alt); }
.section--alt table.data tbody tr:hover { background: var(--bg); }
table.data td:first-child { font-family: var(--font-mono); font-weight: 600; letter-spacing: -.01em; }

/* Callout */
.callout {
  display: flex;
  gap: 1rem;
  padding: 1.35rem 1.5rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
}
.section--alt .callout { background: var(--bg); }
.callout svg { width: 20px; height: 20px; flex: none; color: var(--accent-ink); margin-top: .2rem; }
.callout strong {
  display: block;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .45rem;
}
.callout p { color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.6; }

/* --------------------------------------------------------------------------
   9. Product detail
   -------------------------------------------------------------------------- */
.product-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ag-ink-950);
  color: #fff;
  --ring: var(--ag-amber-400);
  padding-block: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem) clamp(2.75rem, 2.25rem + 3vw, 4.5rem);
}
.product-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48% 80% at 20% 34%, color-mix(in srgb, var(--pc-tint, #f5a524) 24%, transparent), transparent 64%),
    var(--ag-ink-950);
}
.product-hero .breadcrumb { margin-top: 0; margin-bottom: 2rem; }
.product-hero__inner {
  display: grid;
  gap: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .product-hero__inner { grid-template-columns: .8fr 1.2fr; } }

.product-hero__media {
  display: grid;
  place-items: center;
  padding: 2.5rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, .18);
  background: radial-gradient(65% 55% at 50% 45%, color-mix(in srgb, var(--pc-tint, #f5a524) 16%, transparent), transparent 74%);
}
.product-hero__media img { height: clamp(215px, 30vw, 290px); width: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .6)); }

.product-hero h1 { font-size: var(--fs-2xl); margin-block: .75rem 1rem; letter-spacing: -.04em; }
.product-hero__lead { color: rgba(242, 243, 247, .76); font-size: var(--fs-md); max-width: 56ch; line-height: 1.55; }
.product-hero .eyebrow { color: var(--ag-amber-400); }

.key-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
  margin-top: 2.25rem;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.key-specs div { padding: 1.25rem 1.25rem 0 0; border-right: 1px solid rgba(255, 255, 255, .12); }
.key-specs div:last-child { border-right: 0; }
.key-specs dt {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: rgba(242, 243, 247, .56);
}
.key-specs dd {
  margin: .5rem 0 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -.02em;
  color: var(--ag-amber-400);
}

.product-hero__actions { margin-top: 2.25rem; }

.pack-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.pack-grid span {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--fs-sm);
  background: var(--bg);
}
.section--alt .pack-grid span { background: var(--bg-alt); }
.pack-grid svg { width: 16px; height: 16px; color: var(--accent); }

/* --------------------------------------------------------------------------
   10. Grade finder
   -------------------------------------------------------------------------- */
.finder {
  border: 1px solid var(--rule);
  background: var(--bg);
  padding: clamp(1.5rem, 1.25rem + 1.5vw, 2.5rem);
}
.section--alt .finder { background: var(--bg-alt); }
.finder h2 { font-size: var(--fs-xl); margin-bottom: .5rem; }
.finder h2:focus-visible { outline-offset: 6px; }
.finder__intro { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: 1.75rem; }

.finder-steps {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 1rem;
}

.finder-machines { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; }
.finder-machine { border: 1px solid var(--border); margin-right: -1px; margin-bottom: -1px; }
.finder-machine {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.2rem 1.25rem;
  text-align: left;
  background: var(--bg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: -.015em;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.section--alt .finder-machine { background: var(--bg-alt); }
.finder-machine:hover { background: var(--text); color: var(--bg); }
.finder-machine svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.finder-machine:hover svg { color: inherit; }

.finder-options { display: grid; border-top: 1px solid var(--border); }
.finder-option {
  width: 100%;
  text-align: left;
  padding: 1.25rem .25rem;
  border-bottom: 1px solid var(--border);
  transition: color .15s var(--ease), padding-left .2s var(--ease);
}
.finder-option:hover { color: var(--accent-ink); padding-left: .85rem; }
.finder-option strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-md);
  letter-spacing: -.02em;
}
.finder-option span { display: block; color: var(--text-muted); font-size: var(--fs-sm); margin-top: .25rem; }

.finder-rationale {
  padding: 1.15rem 1.25rem;
  background: var(--bg-alt);
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.section--alt .finder-rationale { background: var(--bg); }

.finder-subhead {
  margin: 1.75rem 0 .85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.finder-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0; }
.finder-pick {
  position: relative;
  border: 1px solid var(--border);
  margin-right: -1px;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  background: var(--bg);
  transition: background-color .15s var(--ease);
}
.section--alt .finder-pick { background: var(--bg-alt); }
.finder-pick::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.finder-pick:hover::after { width: 100%; }
.finder-pick img { height: 66px; width: auto; flex: none; }
.finder-pick--alt img { height: 50px; }
.finder-pick__body { display: flex; flex-direction: column; min-width: 0; }
.finder-pick__cat {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.finder-pick strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-md);
  letter-spacing: -.025em;
  margin: .2rem 0;
  text-transform: uppercase;
}
.finder-pick__body > span:last-child { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }

.finder-nav { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--ag-ink-950);
  color: rgba(242, 243, 247, .7);
  padding-top: clamp(3.5rem, 3rem + 3vw, 5rem);
  font-size: var(--fs-sm);
  --ring: var(--ag-amber-400);
}
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name span { color: var(--ag-amber-400); }
.site-footer .brand__tag { color: rgba(242, 243, 247, .5); }

.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
@media (min-width: 900px) { .footer-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.3fr); } }

.footer-col h2 {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.25rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.footer-col li + li { margin-top: .6rem; }
.footer-col a:hover { color: var(--ag-amber-400); }

.footer-about p { margin-top: 1.25rem; max-width: 36ch; line-height: 1.6; }

.social { display: flex; gap: .5rem; margin-top: 1.5rem; }
.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: all .15s var(--ease);
}
.social a:hover { background: var(--ag-amber-500); border-color: var(--ag-amber-500); color: #16223f; }
.social svg { width: 16px; height: 16px; }

.newsletter { display: flex; }
.newsletter input {
  flex: 1;
  min-width: 0;
  padding: .8rem 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-right: 0;
  background: transparent;
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
}
.newsletter input::placeholder { color: rgba(242, 243, 247, .4); }
.newsletter input:focus { outline: none; border-color: var(--ag-amber-500); }
.newsletter button { flex: none; }

.footer-bottom {
  margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  padding-block: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .14);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
  color: rgba(242, 243, 247, .55);
}
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-bottom a:hover { color: var(--ag-amber-400); }

.flag-rule {
  height: 4px;
  background: linear-gradient(90deg, var(--ag-green-600) 0 33.33%, var(--ag-amber-500) 33.33% 66.66%, var(--ag-red-500) 66.66% 100%);
}

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--text);
  color: var(--bg);
  border: 1px solid var(--text);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--ag-amber-500); border-color: var(--ag-amber-500); color: #16223f; }
.to-top svg { width: 17px; height: 17px; }

/* Long-form text pages */
.prose h2 { font-size: var(--fs-xl); margin-top: 2.75rem; }
.prose h2:first-of-type { margin-top: 1.25rem; }
.prose p { color: var(--text-muted); max-width: 72ch; line-height: 1.7; }
.prose code {
  font-family: var(--font-mono);
  font-size: .9em;
  padding: .12em .4em;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   12. Motion & utilities
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
[data-reveal].is-revealed { opacity: 1; transform: none; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.tiny { font-size: var(--fs-xs); font-family: var(--font-mono); }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.is-hidden { display: none !important; }

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

@media print {
  .site-header, .topbar, .mobile-nav, .to-top, .site-footer, .cta-band, .ticker { display: none !important; }
  body { color: #000; background: #fff; }
  .product-hero { background: #fff !important; color: #000 !important; }
  .product-hero__bg, .product-hero__actions, .breadcrumb { display: none !important; }
  .product-hero h1, .key-specs dt, .key-specs dd, .product-hero__lead { color: #000 !important; }
  .key-specs { border-color: #999; }
  .card, .callout, .table-wrap { break-inside: avoid; }
}

.prose h2 + div, .prose h2 + .stack, .prose h2 + .table-wrap { margin-top: 1.1rem; }

/* Label languages on product pages — mirrors the trilingual pack */
.lang-block { border-left: 3px solid var(--border-strong); padding-left: 1.25rem; }
.lang-block + .lang-block { margin-top: 1.25rem; }
.lang-block__tag {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: .4rem;
}
.lang-block[dir="rtl"] { border-left: 0; border-right: 3px solid var(--border-strong); padding-left: 0; padding-right: 1.25rem; text-align: right; }
.lang-block p:not(.lang-block__tag) { color: var(--text-muted); line-height: 1.7; }
.lang-block[lang="ar"] p:not(.lang-block__tag) { font-size: 1.05rem; line-height: 1.9; }

/* --------------------------------------------------------------------------
   13. AG Lubricants brand identity
   -------------------------------------------------------------------------- */
:root {
  --ag-blue-700: #142E75;
  --ag-blue-600: #1B3FA0;
  --ag-blue-500: #2B56C8;
  --ag-blue-300: #7E9BE8;
}

/* Brand lockup: blue monogram on light surfaces, white on dark */
.brand__mark { width: auto; height: 34px; flex: none; }
.brand__mark--light { display: none; }
[data-theme="dark"] .brand__mark--dark { display: none; }
[data-theme="dark"] .brand__mark--light { display: block; }
.site-footer .brand__mark--dark { display: none; }
.site-footer .brand__mark--light { display: block; }

.brand__name { letter-spacing: -.04em; }
.brand__name span { color: inherit; }

/* Halftone dot gradient — the device carried on every AG Lubricants label.
   Dense at the edge, dissolving inward. */
.halftone {
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, .16) 1.6px, transparent 1.7px);
  background-size: 14px 14px;
}
.halftone--bottom {
  bottom: 0;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, transparent 100%);
}
.halftone--gold {
  background-image: radial-gradient(circle at center, color-mix(in srgb, var(--ag-amber-500) 55%, transparent) 1.6px, transparent 1.7px);
}

@media (prefers-reduced-motion: no-preference) {
  .halftone { transition: opacity .4s var(--ease); }
}

.brand-lockup { display: inline-block; }
.brand-lockup img { height: 96px; width: auto; }
.brand-lockup__role {
  margin-top: .85rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ag-amber-400);
}
.callout--brand { align-items: flex-start; gap: 1.35rem; }
.callout__brand { height: 74px; width: auto; flex: none; }
.callout__brand--light { display: none; }
[data-theme="dark"] .callout__brand--dark { display: none; }
[data-theme="dark"] .callout__brand--light { display: block; }
@media (max-width: 560px) { .callout--brand { flex-direction: column; } }

/* Real pack photography sits taller than the flat illustrations */
.product-card__media img.is-photo { height: 185px; }
.product-hero__media img.is-photo { height: clamp(240px, 33vw, 320px); }
