/* ============================================================
   Agentic CRE Services, Inc. — industrial brokerage
   Palette lives here. Change --gold and the whole site follows.
   ============================================================ */

/* Golds sampled directly from the logo (IMG_7121.jpg), so the page
   and the mark are the same metal. Do not eyeball replacements. */
:root {
  --ink:         #000000;  /* page ground — true black, not tinted */
  --gold:        #c9ad6a;  /* working gold — text, rules, UI */
  --gold-bright: #e4e19a;  /* champagne highlight */
  --gold-deep:   #91703d;  /* bronze — hover, deep edges */
  --concrete:    #9a9286;  /* body copy — warm grey */
  --ice:         #cfdcea;  /* every heading and statement — steel, not cyan */
  --pit:         #0b0d11;
  --hi:          #c8e84a;  /* hi-vis safety green — the one accent. Swap to
                              #e3413a for signal red; nothing else uses it. */  /* broker section ground — cool near-black, never green */

  /* The colour system, in one line each:
       gold   = the brand. Marks, rules, section heads, the numbers.
       ice    = what the page says. Headlines, sub-heads, statements.
       warm grey = body copy, so the cool type reads as the voice.
     Warm brand against cool speech is the whole scheme. Don't mix them up. */

  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --text: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  --brandface: "Montserrat", system-ui, sans-serif;  /* the logotype, matching your existing mark */

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 62ch;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--concrete);
  font-family: var(--text);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--gold);
  color: var(--ink);
  padding: 0.75rem 1rem;
  z-index: 10;
}
.skip:focus { left: 0; }

/* ---------- masthead ---------- */

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem var(--gutter);
  position: relative;
  z-index: 3;
}

.logotype {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--gold);
  text-decoration: none;
}

.logomark {
  width: 42px;
  height: 42px;
  flex: none;
  display: block;
}

.logotype__text { display: block; line-height: 1; }

/* ---- polished metal, for type ----
   The gradient is the same light as the badge: highlight upper-left,
   bronze lower-right. Falls back to flat gold if background-clip fails. */
.metal {
  color: var(--gold);
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .metal {
    /* Floor is #a8873f, not bronze — the sweep must never drop a letter
       below readable contrast on black. */
    background-image: linear-gradient(
      100deg,
      #b08f4e 0%, #d4bb7e 18%, #f8f3d4 32%, #e9e6a6 40%,
      #cbb075 54%, #a8873f 72%, #c9ad6a 100%
    );
    background-size: 260% 100%;
    background-position: 130% 0;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
  }
}

/* One slow rake of light, then a long rest. The logotype is on screen the
   whole time, so the dwell matters more than the sweep — glint, then still. */
.metal--live { animation: shimmer 15s linear 3s infinite; }

@keyframes shimmer {
  0%   { background-position: 130% 0; }
  34%  { background-position: -30% 0; }
  100% { background-position: -30% 0; }
}

/* A + lowercase gent + IQ. No text-transform — the HTML carries the real casing. */
.logotype__name {
  display: block;
  font-family: var(--brandface);
  font-weight: 600;
  font-size: 1.6rem;
  white-space: nowrap;
}

.lt-sm { font-size: 0.88em; font-weight: 500; letter-spacing: 0.005em; }
.lt-lg { font-size: 1em; font-weight: 700; letter-spacing: 0.02em; }

/* Letter-spaced to sit flush with the width of "AgentIQ" above it. */
.logotype__qual {
  display: block;
  font-family: var(--brandface);
  font-weight: 500;
  font-size: 0.945rem;
  letter-spacing: 0.205em;
  color: var(--concrete);
  margin-top: 0.34rem;
  text-indent: 0.205em;   /* absorbs the trailing letter-space so it reads centred */
}

.masthead__nav {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-size: 0.9375rem;
}

.masthead__nav a {
  color: var(--concrete);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  white-space: nowrap;   /* never break a label mid-phrase when the row wraps */
}

.masthead__nav a:hover,
.masthead__nav a:focus-visible {
  color: var(--ice);
  border-bottom-color: var(--gold);
}

/* ---------- opening ---------- */

.opening {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) clamp(3rem, 6vw, 5rem);
}

/* The drawing is the loud element on this page. Let it be legible. */
.siteplan {
  order: 2;
  width: 100%;
  height: auto;
  color: var(--gold);
  opacity: 0.9;
}

/* Caps here are the drafting convention, not a label style. */
.siteplan__note {
  font-family: var(--text);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.18em;
  fill: currentColor;
}

.opening__body { order: 1; max-width: 34rem; }

.opening__kicker {
  margin: 0 0 1.5rem;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

/* Steel, not cyan. Near-black plus a saturated cyan reads as film grading —
   a cool off-white gives the blue cast without that. */
.opening__head {
  margin: 0 0 1.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(3rem, 7.4vw, 5.25rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--ice);
}

.opening__lede {
  margin: 0 0 2.25rem;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--concrete);
}

.opening__acts { display: flex; flex-wrap: wrap; gap: 0.875rem; }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.8125rem 1.5rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid var(--gold);
  transition: background 140ms ease, color 140ms ease;
}

.btn:hover,
.btn:focus-visible { background: var(--gold-deep); border-color: var(--gold-deep); }

.btn--quiet {
  background: transparent;
  color: var(--gold);
  border-color: rgba(201, 173, 106, 0.45);
}

.btn--quiet:hover,
.btn--quiet:focus-visible {
  background: transparent;
  color: var(--ice);
  border-color: var(--gold);
}

/* ---------- generic section ---------- */

.section { padding: clamp(3.5rem, 8vw, 6.5rem) var(--gutter); }

.section--rule { border-top: 1px solid rgba(201, 173, 106, 0.24); }

.section--dark { background: var(--pit); }

.section__head {
  margin: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--gold);
}

/* ---------- services ---------- */

.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: clamp(2rem, 4vw, 3.25rem);
}

.service__dia {
  display: block;
  width: 100%;
  max-width: 132px;
  height: auto;
  color: var(--gold);
  margin-bottom: 1.25rem;
  opacity: .85;
}

.service h3 {
  margin: 0 0 0.75rem;
  padding-top: 1rem;
  border-top: 2px solid var(--gold);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.service p { margin: 0; }

/* ---------- where we work ---------- */

.map {
  display: block;
  width: 100%;
  height: auto;
  color: var(--gold);
  margin-top: 0.5rem;
}

.map__road { stroke-linecap: round; stroke-linejoin: round; }

/* Road traffic. Two rigs on the drayage corridors, cars everywhere else.
   Paths duplicate the freeway geometry in the markup — edit both together. */
.veh {
  fill: var(--gold-bright);
  offset-rotate: auto;
  animation-name: haul-inland;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

.veh--710 { offset-path: path("M195 415 L215 330 L250 245");                    animation-duration: 13s; animation-delay: 0s; }
.veh--60  { offset-path: path("M215 220 L389 218 L560 205 L700 235 L777 262");  animation-duration: 26s; animation-delay: 2s; }
.veh--5   { offset-path: path("M195 191 L306 269 L424 340 L452 404 L520 470");  animation-duration: 15s; animation-delay: 1s; }
.veh--10  { offset-path: path("M190 180 L400 175 L604 184 L749 163 L853 149");  animation-duration: 19s; animation-delay: 5s; }
.veh--91  { offset-path: path("M210 355 L330 345 L424 340 L560 330 L700 300");  animation-duration: 17s; animation-delay: 8s; }
.veh--605 { offset-path: path("M345 150 L335 270 L330 430");                    animation-duration: 12s; animation-delay: 3.5s; }

@keyframes haul-inland {
  0%   { offset-distance: 0%;   opacity: 0; }
  8%   { opacity: 1; }
  88%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

.map__shield {
  font-family: var(--text);
  font-size: 19px;
  font-weight: 600;
  text-anchor: middle;
}

/* Gateways: plain dots, a touch smaller than a submarket, in the accent so
   sea and air read apart from both the gold road traffic and the cities. */
.gate__dot { fill: var(--gold-bright); }


.map__gatelabel {
  font-family: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.13em;
  fill: var(--gold-bright);
}

/* Sea and air gateways. The vessel stands off the bay and comes in;
   the aircraft flies final out of the east, the way LAX actually lands. */
.vessel,
.aircraft {
  fill: var(--gold-bright);  /* gold like the road traffic — green is reserved for What We Do */
  offset-rotate: auto;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

/* Vessels share a 40s clock: arrival 0-44%, departure 54-98%. One at a time. */
.vessel--in {
  offset-path: path("M 60 596 L 118 520 L 168 452 L 186 418");
  animation-name: sail-in;
  animation-duration: 40s;
  animation-delay: 2s;
}

.vessel--out {
  offset-path: path("M 188 418 L 205 480 L 228 560 L 250 628");
  animation-name: sail-out;
  animation-duration: 40s;
  animation-delay: 2s;
}

@keyframes sail-in {
  0%   { offset-distance: 0%;   opacity: 0; }
  5%   { opacity: .95; }
  38%  { opacity: .95; }
  44%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes sail-out {
  0%   { offset-distance: 0%;   opacity: 0; }
  54%  { offset-distance: 0%;   opacity: 0; }
  59%  { opacity: .95; }
  92%  { opacity: .95; }
  98%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

/* Both aircraft share one 34s clock and occupy separate halves of it, so
   only one is ever on screen. Departure runs 0–38%, arrival 50–92%.
   If you change one duration, change the other or they will overlap. */
.aircraft--out {
  offset-path: path("M 80 268 L 52 263 L 20 255 L 4 250");
  animation-name: depart-leg;
  animation-duration: 34s;
  animation-delay: 4s;
}

.aircraft--in {
  offset-path: path("M 340 276 L 210 272 L 120 269 L 82 268");
  animation-name: arrive-leg;
  animation-duration: 34s;
  animation-delay: 4s;
}

@keyframes depart-leg {
  0%   { offset-distance: 0%;   opacity: 0; }
  4%   { opacity: .95; }
  30%  { opacity: .95; }
  38%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes arrive-leg {
  0%   { offset-distance: 0%;   opacity: 0; }
  50%  { offset-distance: 0%;   opacity: 0; }
  55%  { opacity: .95; }
  86%  { opacity: .95; }
  92%  { offset-distance: 100%; opacity: 0; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes approach {
  0%   { offset-distance: 0%;   opacity: 0; }
  10%  { opacity: .95; }
  86%  { opacity: .95; }
  100% { offset-distance: 100%; opacity: 0; }
}

.map__dot { opacity: .95; }

.map__place {
  font-family: var(--text);
  font-size: 19px;
  font-weight: 500;
  fill: var(--ice);
}

.map__region {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.16em;
  fill: var(--gold);
  opacity: .5;
}

/* ---------- what actually matters ---------- */

.specs__lede {
  margin: -1rem 0 2.75rem;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.1875rem);
  color: var(--ice);
}

.specs {
  display: grid;
  /* 11rem minimum so all five specs sit in one row on a desktop — 4 + 1 looks unfinished */
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(2rem, 3.5vw, 2.75rem);
}

.spec__dia {
  display: block;
  width: 100%;
  max-width: 142px;
  height: auto;
  color: var(--gold);
  margin-bottom: 1.125rem;
  opacity: .9;
}

.spec h3 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.spec p { margin: 0; font-size: 0.9375rem; }

/* ---------- who we are ---------- */

.founder {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 2.75rem;
}

.founder__bio { max-width: 46ch; }

.founder__name {
  margin: 0 0 0.375rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: 0.015em;
  color: var(--ice);
}

.founder__role {
  margin: 0 0 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(201, 173, 106, 0.24);
  font-size: 0.9375rem;
  color: var(--gold);
}

.founder__bio p { margin: 0 0 1.125rem; }

.founder__why {
  margin-top: 1.75rem;
  padding-left: 1.25rem;
  border-left: 2px solid var(--gold-deep);
  color: var(--ice);
}

/* ---------- the numbers ---------- */

/* Three figures now, stacked. The largest-single-sale stat came out: it was
   co-listed, so it is the one number a third party could contest. */
.record {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  margin: 0;
  padding-top: 0.5rem;
}

.record__item { display: flex; flex-direction: column-reverse; }

.record dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 2rem + 3vw, 4rem);
  line-height: 1;
}

.record dt {
  margin-top: 0.625rem;
  font-size: 0.875rem;
  color: var(--concrete);
}

/* This line is what makes the figures above true. It does not hide. */
.record__note {
  margin: 0;
  max-width: var(--measure);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(201, 173, 106, 0.20);
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--concrete);
}

/* ---------- brokers ---------- */

/* One phrase, not two headlines. The green marks the second clause because
   the pairing is the point — it is not an arbitrary highlighted word. */
.by { color: var(--hi); }

.brokers__tag {
  margin: -0.75rem 0 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem);
  line-height: 1;
  color: var(--gold);
}

.brokers__lede {
  margin: 0 0 2.5rem;
  max-width: var(--measure);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  color: var(--ice);
}

/* ---- the line ---- */

.line { display: block; width: 100%; height: auto; color: var(--gold); margin-bottom: 2.5rem; }
/* The graphic shrinks to ~1/3 on phones, which thinned the 1.1-unit lanes below a pixel and they vanished. */
.line path[stroke-dasharray="9 9"] { vector-effect: non-scaling-stroke; }

.line__note {
  font-family: var(--text);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.16em;
  fill: var(--concrete);
}

.doc {
  offset-rotate: 0deg;            /* sheets stay upright */
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  /* Without this, a sheet waiting out its delay renders its NORMAL styles —
     visible, at distance 0 — so every pending sheet stacks at the start. */
  animation-fill-mode: backwards;
  animation-duration: 22s;
}

.doc--raw { animation-name: feed; }
.doc--out { animation-name: ship; }

/* Work converges on the floor from five directions and fans out to five.
   Generated — these paths must match the rails drawn in the markup. */
.raw-a-0 { offset-path: path("M -30 30  L 362 150"); animation-delay: 0.00s; }
.raw-a-1 { offset-path: path("M -30 30  L 362 150"); animation-delay: 12.00s; }
.raw-b-0 { offset-path: path("M -30 130 L 362 182"); animation-delay: 3.00s; }
.raw-b-1 { offset-path: path("M -30 130 L 362 182"); animation-delay: 15.00s; }
.raw-c-0 { offset-path: path("M -30 272 L 362 222"); animation-delay: 6.00s; }
.raw-c-1 { offset-path: path("M -30 272 L 362 222"); animation-delay: 18.00s; }
.raw-d-0 { offset-path: path("M -30 372 L 362 252"); animation-delay: 9.00s; }
.raw-d-1 { offset-path: path("M -30 372 L 362 252"); animation-delay: 21.00s; }
/* Middle lane, timed halfway between its neighbours so tags never collide. */
.raw-e-0 { offset-path: path("M -30 201 L 362 202"); animation-delay: 10.50s; }
.raw-e-1 { offset-path: path("M -30 201 L 362 202"); animation-delay: 22.50s; }
.out-a-0 { offset-path: path("M 638 150 L 1030 30"); animation-delay: 1.60s; }
.out-a-1 { offset-path: path("M 638 150 L 1030 30"); animation-delay: 13.60s; }
.out-b-0 { offset-path: path("M 638 182 L 1030 130"); animation-delay: 4.60s; }
.out-b-1 { offset-path: path("M 638 182 L 1030 130"); animation-delay: 16.60s; }
.out-c-0 { offset-path: path("M 638 222 L 1030 272"); animation-delay: 7.60s; }
.out-c-1 { offset-path: path("M 638 222 L 1030 272"); animation-delay: 19.60s; }
.out-d-0 { offset-path: path("M 638 252 L 1030 372"); animation-delay: 10.60s; }
.out-d-1 { offset-path: path("M 638 252 L 1030 372"); animation-delay: 22.60s; }
.out-e-0 { offset-path: path("M 638 202 L 1030 201"); animation-delay: 12.10s; }
.out-e-1 { offset-path: path("M 638 202 L 1030 201"); animation-delay: 24.10s; }

/* Tags ride with the sheet they belong to. */
.tag {
  font-family: var(--text);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-anchor: middle;
  fill: var(--concrete);
}
.tag--hi { fill: var(--hi); }

@keyframes feed {
  0%   { offset-distance: 0%;   opacity: 0; }
  24%  { opacity: 0; }          /* stay dark until the tag is clear of the frame */
  34%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes ship {
  0%   { offset-distance: 0%;   opacity: 0; }
  12%  { opacity: 1; }
  66%  { opacity: 1; }
  76%  { opacity: 0; }          /* gone before the tag reaches the frame edge */
  100% { offset-distance: 100%; opacity: 0; }
}

/* A crew on the floor: two working the aisles, two the cross-aisles.
   Each robot has its own run and its own pace, so they never sync up. */
.bot {
  offset-rotate: 0deg;
  animation-name: patrol;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  animation-direction: alternate;
}

@keyframes patrol {
  0%   { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.bot--1 { offset-path: path("M 384 142 H 472 V 204 H 618"); animation-duration: 19s; }
.bot--2 { offset-path: path("M 384 200 H 432 V 266 H 618"); animation-duration: 23s; }
.bot--3 { offset-path: path("M 472 84 V 162 H 562 V 316"); animation-duration: 17s; }
.bot--4 { offset-path: path("M 618 126 H 528 V 232 H 384"); animation-duration: 21s; }





.bot__eye { animation: blink 4.4s steps(1, end) infinite; }

/* Status lamp over each unit, breathing out of step with the others. */
.bot__lamp { animation: lamp 2.6s ease-in-out infinite; }




.bot--1 .bot__lamp { animation-delay: 0.00s; }
.bot--2 .bot__lamp { animation-delay: 0.60s; }
.bot--3 .bot__lamp { animation-delay: 1.20s; }
.bot--4 .bot__lamp { animation-delay: 1.80s; }

@keyframes lamp {
  0%, 100% { opacity: .35; }
  50%      { opacity: 1; }
}

@keyframes blink {
  0%, 92%  { opacity: 1; }
  94%, 97% { opacity: .12; }
  100%     { opacity: 1; }
}

.bot__arm {
  transform-box: view-box;
  animation: work 3s ease-in-out infinite;
}
/* Arms hang from the shoulders and swing outward, mirrored left and right. */
.bot__arm--l { transform-origin: -11px -2px; }
.bot__arm--r { transform-origin: 11px -2px; animation-name: work-r; animation-delay: 1.5s; }

@keyframes work {
  0%, 100% { transform: rotate(0deg); }
  45%      { transform: rotate(13deg); }
}
@keyframes work-r {
  0%, 100% { transform: rotate(0deg); }
  45%      { transform: rotate(-13deg); }
}

.outs__label {
  margin: 0 0 1.25rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--gold);
}

.outs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  margin-bottom: 3rem;
}

.out h3 {
  margin: 0 0 0.4rem;
  padding-top: 0.875rem;
  border-top: 2px solid var(--hi);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ice);
}

.out p { margin: 0; font-size: 0.9375rem; }

.btn--hi {
  background: var(--hi);
  border-color: var(--hi);
  color: #0b0d11;
}

.btn--hi:hover,
.btn--hi:focus-visible { background: #d8f45e; border-color: #d8f45e; color: #0b0d11; }

/* The split pitch is the recruiting hook, so it gets headline weight. */
.capability {
  margin: 4rem 0 2.25rem;
}

.capability h3 {
  margin: 0 0 1rem;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.05;
  color: var(--gold);
}

.capability p {
  margin: 0;
  max-width: 44ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.35;
  color: var(--ice);
}
.capability p span { color: var(--hi); }
.capability--flush { margin: 0; }
.capability--top { margin: 0 0 2.5rem; }

/* ---- tools page ---- */

.tools {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 52rem;
}

.tools__group {
  margin: 3.5rem 0 1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.tools__note { margin: 0; padding-top: 1.5rem; border-top: 2px solid var(--hi); color: var(--concrete); max-width: var(--measure); }

.tool {
  padding: 2rem 0;
  border-top: 2px solid var(--hi);
}

.tool__name {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  color: var(--ice);
}

.tool__num { color: var(--hi); margin-right: 0.5rem; }

.tool p { margin: 0 0 1.25rem; max-width: var(--measure); }

.tool__io { margin: 0; display: grid; gap: 0.4rem; font-size: 0.9375rem; }
.tool__io div { display: flex; gap: 1rem; }
.tool__io dt {
  flex: 0 0 2.5rem;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.tool__io dd { margin: 0; color: var(--concrete); }
.tool__more { margin-top: 1.5rem; }
/* Read aloud by screen readers, never shown. Used to name which tool a "See how it works" button opens. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.brokers__straight + .btn + .btn { margin-left: 0.75rem; }

.brokers__straight {
  max-width: var(--measure);
  margin: 3rem 0 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(201, 173, 106, 0.24);
  color: var(--concrete);
}

/* ---------- contact ---------- */

.contact__line {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.contact__line a {
  color: var(--ice);
  text-decoration: none;
  border-bottom: 2px solid rgba(201, 173, 106, 0.5);
}

.contact__line a:hover,
.contact__line a:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }

.contact__aside { margin: 1.5rem 0 0; font-size: 0.9375rem; }

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 38rem);
  gap: 2rem;
  align-items: end;
}

.contact__spin { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; }

@media (max-width: 60rem) {
  .contact { grid-template-columns: 1fr; }
  .contact__spin { max-width: 30rem; justify-self: center; }
}

/* ---------- colophon ---------- */

.colophon {
  padding: 2.5rem var(--gutter) 3.5rem;
  border-top: 1px solid rgba(201, 173, 106, 0.24);
  font-size: 0.875rem;
  line-height: 1.7;
  color: #8d857a;
}

/* Matches the logotype casing: AgentIQ Industrial, not ALL CAPS. */
.colophon__entity {
  margin: 0 0 0.5rem;
  font-family: var(--brandface);
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--concrete);
}

.colophon__licence { margin: 0 0 1rem; }

.colophon__fine { margin: 0; }

/* ---------- the one orchestrated moment ---------- */

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.draw[data-d="2"] { animation-delay: 0.35s; }
.draw[data-d="3"] { animation-delay: 0.6s; }

@keyframes draw { to { stroke-dashoffset: 0; } }

/* A rig working the yard: pulls in along the court, pauses, then swings
   and backs into a dock well. Slow on purpose — background, not a banner ad. */
.rig {
  transform-box: view-box;
  animation: dock 74s ease-in-out 2s infinite;
}

@keyframes dock {
  /* Keyframe percentages are paced so the rig travels at roughly the same
     speed coming in as going out — about 48 units a second either way.
     The exit used to cover 490 units in 7% of the cycle, twice arrival speed. */
  0%   { transform: translate(1320px, 505px) rotate(0deg); }    /* off frame */
  3%   { transform: translate(1180px, 505px) rotate(0deg); }
  26%  { transform: translate(352px,  505px) rotate(0deg); }    /* pulls past the door */
  32%  { transform: translate(352px,  505px) rotate(0deg); }    /* sets up */
  46%  { transform: translate(392px,  474px) rotate(-38deg); }  /* swings */
  58%  { transform: translate(447px,  392px) rotate(-90deg); }  /* squared into the well */
  76%  { transform: translate(447px,  392px) rotate(-90deg); }  /* loading */
  82%  { transform: translate(396px,  470px) rotate(-36deg); }  /* eases out of the well */
  86%  { transform: translate(300px,  505px) rotate(0deg); }    /* straightens up */
  100% { transform: translate(-190px, 505px) rotate(0deg); }    /* rolls off frame */
}

/* Forklift: runs the staging aisle, turns up a pick aisle, stops at a bay,
   swings to face the rack, loads, swings back, then reverses out. The
   animation alternates, so the return trip is the same moves backwards. */
.fork {
  offset-path: path("M 352 303 L 514 303 L 514 168");
  offset-rotate: auto;
  animation: pick 54s ease-in-out 3s infinite alternate;
}

@keyframes pick {
  0%   { offset-distance: 0%;   offset-rotate: auto; }
  40%  { offset-distance: 62%;  offset-rotate: auto; }            /* along the staging aisle */
  58%  { offset-distance: 92%;  offset-rotate: auto; }            /* up the pick aisle */
  64%  { offset-distance: 92%;  offset-rotate: auto -90deg; }     /* turns to face the rack */
  88%  { offset-distance: 92%;  offset-rotate: auto -90deg; }     /* loading */
  94%  { offset-distance: 92%;  offset-rotate: auto; }            /* squares back up */
  100% { offset-distance: 100%; offset-rotate: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .draw { animation: none; stroke-dashoffset: 0; }
  .rig  { animation: none; transform: translate(447px, 392px) rotate(-90deg); }
  .fork { animation: none; offset-distance: 12%; }
  .doc { animation: none; opacity: 0; }
  .bot, .bot__lamp { animation: none; }
  .bot__eye, .bot__arm { animation: none; }
  .veh { animation: none; opacity: 0; }
  .vessel, .aircraft { animation: none; opacity: 0; }
  .metal--live { animation: none; background-position: 30% 0; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------- narrow screens ---------- */

@media (max-width: 60rem) {
  .opening { grid-template-columns: 1fr; gap: clamp(2.5rem, 7vw, 3.5rem); }
  .siteplan { opacity: 0.75; }
  .founder { grid-template-columns: 1fr; }
}

@media (max-width: 40rem) {
  .masthead { flex-wrap: wrap; gap: 0.875rem; }
  .masthead__nav {
    font-size: 0.8125rem;
    flex-wrap: wrap;
    column-gap: 1.125rem;
    row-gap: 0.625rem;
  }
  .record__item { flex-direction: column-reverse; }
}
