/* ==========================================================================
   ARROWGATE — Swiss Industrial Print
   Paper substrate, carbon ink, one hazard accent. Rigid grid, visible
   compartmentalisation, extreme type-scale contrast, monospace telemetry.
   No border-radius on containers. No gradients. No soft shadows.
   ========================================================================== */

:root {
  /* Substrate — matte unbleached documentation paper */
  --paper:      #F4F4F0;
  --paper-2:    #EAE8E3;
  --ink:        #0A0A0A;
  --ink-2:      #2E2E2B;
  --ink-3:      #6B6B66;

  /* The single accent. Brand red, doubling as hazard red. */
  --red:        #DD183B;
  --red-deep:   #B01230;
  --peach:      #FFD1BF;

  --rule:       rgba(10, 10, 10, 0.14);
  --rule-hard:  rgba(10, 10, 10, 0.85);

  --font-display: 'Archivo', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  --container: 1400px;
  --gutter: clamp(1.25rem, 3.5vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --ease: cubic-bezier(0.23, 1, 0.32, 1);          /* strong ease-out */
  --ease-inout: cubic-bezier(0.77, 0, 0.175, 1);   /* on-screen movement */
}

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

html { scroll-behavior: smooth; }

body.ag {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

/* Mechanical noise — a fixed grain layer so nothing reads as pure vector. */
body.ag::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.ag img { max-width: 100%; display: block; }
.ag a { color: inherit; text-decoration: none; }

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

.ag-section { padding-block: var(--section-y); position: relative; }
.ag-section--paper2 { background: var(--paper-2); }
.ag-section--ink { background: var(--ink); color: var(--paper); }
.ag-section--red { background: var(--red); color: #fff; }

/* ==========================================================================
   Typography — macro
   ========================================================================== */
.ag h1, .ag h2, .ag h3, .ag h4 {
  font-family: var(--font-display);
  margin: 0 0 0.4em;
  color: inherit;
}

.ag-display {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.75rem, 8.5vw, 8rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  margin: 0;
}

.ag-h1 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}

.ag-h2 {
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.75rem, 3.6vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

.ag-h3 {
  font-weight: 700;
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.ag p { line-height: 1.62; margin: 0 0 1em; max-width: 64ch; }

.ag-lede {
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 56ch;
}
.ag-section--ink .ag-lede,
.ag-on-dark .ag-lede { color: rgba(244, 244, 240, 0.75); }

/* ==========================================================================
   Typography — micro / telemetry
   ========================================================================== */
.ag-mono {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ag-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.25em;
}
.ag-section--ink .ag-eyebrow,
.ag-on-dark .ag-eyebrow,
.ag-trade-panel .ag-eyebrow { color: var(--peach); }
.ag-section--red .ag-eyebrow { color: rgba(255,255,255,0.8); }

/* Numbered section header with a hard rule — the primary structural device. */
.ag-sec-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
  border-top: 2px solid var(--rule-hard);
  padding-top: 1.25rem;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}
.ag-section--ink .ag-sec-head { border-top-color: rgba(244,244,240,0.85); }
.ag-sec-head__idx {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  padding-top: 0.4em;
}
.ag-sec-head__body { max-width: 68ch; }

/* ==========================================================================
   Telemetry bar — the running metadata strip
   ========================================================================== */
.ag-telemetry {
  background: var(--ink);
  color: rgba(244, 244, 240, 0.65);
  border-bottom: 1px solid rgba(244,244,240,0.12);
}
.ag-telemetry__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 34px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
}
.ag-telemetry b { color: var(--red); font-weight: 500; }
.ag-telemetry span + span { padding-left: 2rem; }
@media (max-width: 880px) {
  .ag-telemetry span:nth-child(n+3) { display: none; }
}

/* ==========================================================================
   Header
   ========================================================================== */
.ag-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 2px solid var(--rule-hard);
}
.ag-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 68px;
}
.ag-logo {
  display: flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.ag-logo svg { height: 26px; width: auto; }

.ag-nav { display: flex; align-items: center; gap: 2rem; }
.ag-nav .ag-btn { display: none; }
.ag-nav a {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  padding-block: 0.4em;
  position: relative;
}
.ag-nav a:hover { color: var(--ink); }
.ag-nav a[aria-current="page"] { color: var(--ink); }
.ag-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 3px;
  background: var(--red);
}

.ag-header__actions { display: flex; align-items: center; gap: 1rem; }

.ag-burger { display: none; background: none; border: 0; padding: 0.4em; cursor: pointer; }
.ag-burger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 940px) {
  .ag-nav {
    position: fixed;
    inset: 102px 0 0 0;
    background: var(--paper);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 2rem var(--gutter);
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease);
    border-top: 2px solid var(--rule-hard);
    overflow-y: auto;
  }
  .ag-nav.is-open { opacity: 1; pointer-events: auto; }
  .ag-nav a {
    font-family: var(--font-display);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    width: 100%;
    padding: 0.7em 0;
    border-bottom: 1px solid var(--rule);
  }
  .ag-nav .ag-btn { display: inline-flex; margin-top: 1.5rem; }
  .ag-header__actions .ag-btn { display: none; }
  .ag-burger { display: block; }
}

/* ==========================================================================
   Buttons — hard edges, no pills
   ========================================================================== */
.ag-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95em 1.35em;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  border-radius: 0;
  cursor: pointer;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .12s var(--ease);
}
.ag-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.ag-btn:active { transform: translateY(1px); }
.ag-btn:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }

.ag-btn--red { background: var(--red); border-color: var(--red); color: #fff; }
.ag-btn--red:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.ag-btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.ag-btn--ghost:hover { background: var(--ink); color: var(--paper); }

.ag-on-dark .ag-btn--ghost,
.ag-section--ink .ag-btn--ghost { color: var(--paper); border-color: var(--paper); }
.ag-on-dark .ag-btn--ghost:hover,
.ag-section--ink .ag-btn--ghost:hover { background: var(--paper); color: var(--ink); }

/* Circular arrow mark — kept from the brand's own collateral. A circle as
   a MARK inside a square system is a Swiss convention, not a radius. */
.ag-arrow-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55em;
  height: 1.55em;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
  position: relative;
}
.ag-arrow-badge::before {
  content: "→";
  position: absolute;
  font-size: 0.85em;
  line-height: 1;
  color: var(--ink);
}
.ag-btn--red .ag-arrow-badge::before { color: var(--red); }
.ag-btn:hover .ag-arrow-badge::before { color: var(--red); }
.ag-btn--red:hover .ag-arrow-badge::before { color: var(--ink); }

.ag-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 2rem; }

/* ==========================================================================
   Duotone photography
   ========================================================================== */
.ag-duotone { position: relative; overflow: hidden; background: var(--ink); }
.ag-duotone img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: luminosity;
}
.ag-duotone img { filter: grayscale(1) contrast(1.28) brightness(1.05); }
.ag-duotone::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--red);
  mix-blend-mode: multiply;
  opacity: 0.62;
}
.ag-media-frame > .ag-duotone,
.ag-trade-panel > .ag-duotone,
.ag-hero__media > .ag-duotone { position: absolute; inset: 0; }

.ag-media-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }

.ag-corner {
  position: absolute;
  top: 0; left: 0;
  z-index: 3;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.65em 1em;
}

/* ==========================================================================
   Hero — full-bleed, type-led, asymmetric. Not a 50/50 split.
   ========================================================================== */
.ag-hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
}
.ag-hero__media { position: absolute; inset: 0; z-index: 0; }
.ag-hero__media .ag-duotone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.55) 55%, rgba(10,10,10,0.25) 100%);
}
.ag-hero__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-block: clamp(3rem, 7vw, 5.5rem);
}
.ag-hero__grid { display: block; }
.ag-hero__support {
  margin-left: auto;
  max-width: 46ch;
  margin-top: clamp(1.75rem, 3vw, 2.75rem);
}
.ag-hero__rule {
  border-top: 1px solid rgba(244,244,240,0.28);
  margin-block: 1.5rem 1.25rem;
}
@media (max-width: 900px) {
  .ag-hero { min-height: auto; }
  .ag-hero__grid { grid-template-columns: 1fr; }
  .ag-hero__media .ag-duotone::before {
    background: linear-gradient(180deg, rgba(10,10,10,0.6) 0%, rgba(10,10,10,0.93) 65%);
  }
}

/* ==========================================================================
   Stats — big numerals over hard rules
   ========================================================================== */
.ag-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--rule-hard);
}
.ag-section--ink .ag-stats { border-top-color: rgba(244,244,240,0.85); }
.ag-stat { padding: 1.5rem 1.25rem 0 0; border-right: 1px solid var(--rule); }
.ag-stat:last-child { border-right: 0; }
.ag-section--ink .ag-stat { border-right-color: rgba(244,244,240,0.2); }
.ag-stat__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.25rem, 4.5vw, 4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--red);
  font-variant-numeric: tabular-nums;
}
.ag-stat__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.9em;
  line-height: 1.5;
}
.ag-section--ink .ag-stat__label { color: rgba(244,244,240,0.55); }
@media (max-width: 780px) {
  .ag-stats { grid-template-columns: repeat(2, 1fr); }
  .ag-stat:nth-child(2n) { border-right: 0; }
  .ag-stat:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 1.5rem; }
}

/* ==========================================================================
   Category index — a numbered list, not a card grid
   ========================================================================== */
.ag-index { border-top: 1px solid var(--rule); }
.ag-index__row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) minmax(0, 1.1fr) 3rem;
  gap: clamp(1rem, 2.5vw, 2.5rem);
  align-items: baseline;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: background-color .2s var(--ease), transform .25s var(--ease);
}

.ag-index__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
}
.ag-index__title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.15rem, 2.2vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1;
}
.ag-index__desc { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.ag-index__meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-align: right;
}
@media (max-width: 860px) {
  .ag-index__row { grid-template-columns: 3rem 1fr; row-gap: 0.6rem; }
  .ag-index__desc { grid-column: 2; }
  .ag-index__meta { grid-column: 2; text-align: left; }
}

/* ==========================================================================
   Service grid — 1px hairlines via grid gap
   ========================================================================== */
/* Hairlines are drawn by each card's own outset shadow rather than by a
   background showing through the gaps — otherwise a category whose count
   isn't a multiple of the column count leaves dead grey cells in the last
   row. Adjacent shadows meet across the 1px gap and read as single rules. */
.ag-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: transparent;
}
.ag-service-card { box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 1000px) { .ag-service-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .ag-service-grid { grid-template-columns: 1fr; } }

.ag-service-card {
  background: var(--paper);
  padding: clamp(1.4rem, 2vw, 1.9rem);
  display: flex;
  flex-direction: column;
  min-height: 215px;
  transition: background-color .18s var(--ease), color .18s var(--ease);
}

.ag-service-card__num {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  margin-bottom: 1.1em;
}
.ag-service-card__tag {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.7em;
  transition: color .18s var(--ease);
}
.ag-service-card h3 {
  font-size: 1.02rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  line-height: 1.1;
  margin-bottom: 0.6em;
}
.ag-service-card p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 0;
  transition: color .18s var(--ease);
}
.ag-service-card .ag-btn { margin-top: auto; align-self: flex-start; }

/* ==========================================================================
   Split rows
   ========================================================================== */
.ag-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}
.ag-split--reverse > *:first-child { order: 2; }
@media (max-width: 900px) {
  .ag-split { grid-template-columns: 1fr; }
  .ag-split--reverse > *:first-child { order: 0; }
}

/* ==========================================================================
   Trading panels
   ========================================================================== */
.ag-cols-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
@media (max-width: 860px) { .ag-cols-2 { grid-template-columns: 1fr; } }

.ag-trade-panel {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: clamp(1.75rem, 3vw, 2.75rem);
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border: 1px solid var(--rule);
}
.ag-trade-panel > .ag-duotone::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(180deg, rgba(10,10,10,0.25) 0%, rgba(10,10,10,0.88) 70%);
}
.ag-trade-panel__body { position: relative; z-index: 3; }
.ag-trade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1px;
  margin-top: 1.25rem;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.18);
}
.ag-trade-list span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  padding: 0.5em 0.75em;
  background: rgba(10,10,10,0.55);
  flex: 1 0 auto;
}

/* ==========================================================================
   Feature blocks
   ========================================================================== */
.ag-blocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.ag-block { box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 860px) { .ag-blocks { grid-template-columns: 1fr; } }
.ag-block { background: var(--paper); padding: clamp(1.5rem, 2.5vw, 2.25rem); }
.ag-block h3 { text-transform: uppercase; font-weight: 800; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 0.7em; }
.ag-block p { font-size: 0.9rem; color: var(--ink-2); margin-bottom: 0; }
.ag-block__idx {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--red);
  display: block;
  margin-bottom: 1.2em;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.ag-footer { background: var(--ink); color: rgba(244,244,240,0.7); }
.ag-footer__top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-block: clamp(3rem, 6vw, 5rem) 3rem;
  border-bottom: 1px solid rgba(244,244,240,0.15);
}
.ag-footer__brand .ag-logo { color: var(--paper); }
.ag-footer__brand p { color: rgba(244,244,240,0.5); margin-top: 1.25rem; font-size: 0.9rem; max-width: 34ch; }
.ag-footer h4 {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 1.3em;
}
.ag-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.8em; }
.ag-footer li, .ag-footer a { font-size: 0.88rem; color: rgba(244,244,240,0.72); }
.ag-footer a:hover { color: #fff; }
.ag-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244,244,240,0.4);
}
.ag-footer__legal { display: flex; gap: 1.75rem; }
@media (max-width: 900px) { .ag-footer__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ag-footer__top { grid-template-columns: 1fr; } }

/* ==========================================================================
   Utility
   ========================================================================== */
.ag-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.45em 0.8em;
  background: var(--red);
  color: #fff;
}

.ag-prose { max-width: 68ch; }
.ag-prose h3 { text-transform: uppercase; font-weight: 800; font-size: 1.1rem; margin-top: 2em; }
.ag-prose a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }

.ag-center { text-align: center; }
.ag-center .ag-lede { margin-inline: auto; }
.ag-center .ag-actions { justify-content: center; }

.ag-skip-link {
  position: absolute;
  left: -9999px;
  background: var(--red);
  color: #fff;
  padding: 1em 1.5em;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}
.ag-skip-link:focus { left: 1rem; top: 1rem; }

.ag-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.ag-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ag-reveal { opacity: 1; transform: none; transition: none; }
  .ag-btn, .ag-index__row, .ag-service-card { transition: none; }
}


/* ==========================================================================
   Hover states — gated so touch devices don't fire them on tap
   ========================================================================== */
@media (hover: hover) and (pointer: fine) {
  .ag-index__row:hover {
    background: rgba(221, 24, 59, 0.05);
    transform: translateX(8px);
  }
  .ag-service-card:hover { background: var(--ink); color: var(--paper); }
  .ag-service-card:hover .ag-service-card__tag { color: var(--peach); }
  .ag-service-card:hover p { color: rgba(244, 244, 240, 0.7); }
}

/* Staggered reveal — 60ms between siblings. Decorative only; never gates
   interaction. */
.ag-reveal { transition-delay: calc(var(--i, 0) * 60ms); }

/* Section headers stack on small screens — the two-column form squeezes
   the heading into a narrow column and wraps it to six lines. */
@media (max-width: 720px) {
  .ag-sec-head {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }
  .ag-sec-head__idx { padding-top: 0; }
}

/* ==========================================================================
   Image strip — a banded hero for secondary pages. Photograph is a band,
   not a backdrop, so type sits on paper and stays fully legible.
   ========================================================================== */
.ag-strip { display: grid; grid-template-columns: 1fr; }
.ag-strip__media { position: relative; height: clamp(180px, 26vw, 320px); }
.ag-strip__media > .ag-duotone { position: absolute; inset: 0; }
.ag-strip__body { padding-block: clamp(2.5rem, 5vw, 4rem) 0; }

/* ==========================================================================
   Manifest — the commodity index. Treated as data, not decoration:
   numbered, monospace, hairline rows, scannable in two passes.
   ========================================================================== */
.ag-mf {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}
@media (max-width: 860px) { .ag-mf { grid-template-columns: 1fr; } }

.ag-mf__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid var(--rule-hard);
  padding-bottom: 0.65rem;
  margin-bottom: 0.25rem;
}
.ag-mf__head h2 { text-transform: uppercase; font-weight: 800; margin: 0; }
.ag-mf__count {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
}

.ag-mf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: clamp(1.25rem, 2.5vw, 2rem);
}
@media (max-width: 480px) { .ag-mf__list { columns: 1; } }

.ag-mf__list li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--rule);
  break-inside: avoid;
}
.ag-mf__idx {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.ag-mf__name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink);
}
@media (hover: hover) and (pointer: fine) {
  .ag-mf__list li:hover .ag-mf__name { color: var(--red); }
}
