/* ==========================================================================
   ACT for Trades — main.css
   Layout primitives, components, page composition.
   Depends on theme.css tokens. Never hard-codes a colour or a duration.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Layout primitives
   -------------------------------------------------------------------------- */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--shell-pad);
}
.shell--narrow { max-width: 980px; }
.shell--wide   { max-width: 1620px; }

.section {
  position: relative;
  padding-block: var(--section-y);
}
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); }
.section--flush-top { padding-top: 0; }
.section--flush-bottom { padding-bottom: 0; }

/* Hairline separating stacked sections on the same ground. */
.section--ruled { border-top: 1px solid var(--rule); }

/* The editorial grid. 12 columns on desktop, collapsing to 1.
   Used instead of Bootstrap's row/col where the layout is art-directed. */
.egrid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--s-6) var(--s-5);
}
@media (max-width: 991.98px) {
  .egrid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
  .egrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5); }
}

/* Section head: eyebrow + heading left, supporting text right. */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
  align-items: end;
  margin-bottom: var(--s-8);
}
.sec-head__aside { padding-bottom: 0.35rem; }
@media (max-width: 900px) {
  .sec-head { grid-template-columns: 1fr; gap: var(--s-5); }
}

/* Numbered rule — the "plate number" device used above section heads. */
.plate {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  border-top: 1px solid var(--rule-strong);
  padding-top: var(--s-3);
  margin-bottom: var(--s-6);
}
.plate__n {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.plate__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 620;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--on-surface-muted);
}

.stack > * + * { margin-top: var(--s-5); }
.stack-sm > * + * { margin-top: var(--s-3); }

/* --------------------------------------------------------------------------
   2. Buttons
   -------------------------------------------------------------------------- */

.btn-act {
  --_bg: var(--ink);
  --_fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-3);
  min-height: 3.25rem;
  padding: 0.9rem 1.65rem;
  background: var(--_bg);
  color: var(--_fg);
  border: 1px solid var(--_bg);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
/* Fill wipes up from the base on hover. */
.btn-act::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--torch-fill);
  transform: translateY(101%);
  transition: transform var(--dur-3) var(--ease-out);
}
.btn-act:hover,
.btn-act:focus-visible {
  color: #fff;
  border-color: var(--torch-fill);
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-act:hover::before,
.btn-act:focus-visible::before { transform: translateY(0); }
.btn-act:active { transform: translateY(0); }

.btn-act__arrow {
  flex: none;
  transition: transform var(--dur-2) var(--ease-out);
}
.btn-act:hover .btn-act__arrow { transform: translateX(4px); }

/* Outline variant — inherits the current ground via semantic roles. */
.btn-act--ghost {
  --_bg: transparent;
  --_fg: var(--on-surface);
  border-color: var(--rule-strong);
}
.btn-act--ghost:hover,
.btn-act--ghost:focus-visible { border-color: var(--torch); }

/* Loud variant — used once per page at most. */
.btn-act--torch {
  --_bg: var(--torch-fill);
  --_fg: #fff;
  border-color: var(--torch-fill);
}
.btn-act--torch::before { background: var(--ink); }
.btn-act--torch:hover,
.btn-act--torch:focus-visible { border-color: var(--ink); color: var(--paper); }

.btn-act--lg { min-height: 3.75rem; padding: 1.1rem 2.1rem; font-size: var(--fs-base); }
.btn-act--block { display: flex; width: 100%; }

/* Text-only action with a moving rule. */
.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  min-height: 2.75rem;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 660;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--on-surface);
  border-bottom: 1px solid var(--rule-strong);
  padding-bottom: 0.35rem;
  transition: color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out);
}
.btn-quiet:hover, .btn-quiet:focus-visible {
  color: var(--accent-vivid);
  border-color: var(--accent-vivid);
}
.btn-quiet svg { transition: transform var(--dur-2) var(--ease-out); }
.btn-quiet:hover svg { transform: translateX(4px); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-5);
}

/* --------------------------------------------------------------------------
   3. Header / navigation
   -------------------------------------------------------------------------- */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  /* Above .navpanel (1040) so the burger stays reachable as the close control. */
  z-index: 1060;
  padding-block: var(--s-4);
  transition: background-color var(--dur-3) var(--ease-out),
              box-shadow var(--dur-3) var(--ease-out),
              padding var(--dur-3) var(--ease-out);
}
/* Transparent over a dark hero; becomes solid once scrolled. */
.hdr__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.hdr.is-stuck {
  background: rgba(246, 243, 236, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 var(--rule), var(--shadow-1);
  padding-block: var(--s-3);
}
/* When the page opens on a dark hero, the header inverts until stuck. */
.hdr--over-dark:not(.is-stuck) { color: var(--paper); }
.hdr--over-dark:not(.is-stuck) .logo__rule { background: rgba(246,243,236,.4); }
.hdr--over-dark:not(.is-stuck) .nav-link-act { color: rgba(246,243,236,.82); }
.hdr--over-dark:not(.is-stuck) .nav-link-act:hover { color: var(--paper); }
.hdr--over-dark:not(.is-stuck) .btn-act--ghost { --_fg: var(--paper); border-color: rgba(246,243,236,.34); }
.hdr--over-dark:not(.is-stuck) .burger__bar { background: var(--paper); }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr.is-stuck { background: var(--paper); }
}

/* Logo lockup — masthead wordmark over a letterspaced descriptor. */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: inherit;
  flex: none;
}
.logo__mark { width: 2.35rem; height: 2.35rem; flex: none; }
.logo__type { display: flex; flex-direction: column; gap: 0.16rem; }
.logo__word {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 840;
  font-stretch: 84%;
  letter-spacing: -0.02em;
  line-height: 1;
  text-transform: uppercase;
}
.logo__sub {
  font-family: var(--font-display);
  font-size: 0.5rem;
  font-weight: 620;
  letter-spacing: 0.30em;
  text-transform: uppercase;
  line-height: 1;
  opacity: 0.72;
}

.nav-act {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.3rem + 1.6vw, 2.1rem);
  /* Group the nav with the CTA on the right rather than letting
     space-between strand it in the middle of the bar. */
  margin-left: auto;
  margin-right: clamp(1rem, 0.2rem + 2vw, 2.5rem);
}
/* A fieldset legend is a field label; strip the UA padding so it aligns
   with the inputs beneath it. */
.field legend { padding: 0; float: left; width: 100%; }
.field fieldset { min-width: 0; }
.nav-link-act {
  position: relative;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 580;
  letter-spacing: 0.045em;
  color: var(--slate);
  padding-block: var(--s-2);
  transition: color var(--dur-2) var(--ease-out);
}
.nav-link-act::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--dur-2) var(--ease-out);
}
.nav-link-act:hover { color: var(--ink); }
.nav-link-act:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-link-act[aria-current="page"] { color: var(--ink); font-weight: 680; }
.nav-link-act[aria-current="page"]::after { transform: scaleX(1); background: var(--torch); }
.hdr--over-dark:not(.is-stuck) .nav-link-act[aria-current="page"] { color: var(--paper); }

.hdr__actions { display: flex; align-items: center; gap: var(--s-4); }

/* Burger — 44px target, animates to a cross. */
.burger {
  display: none;
  width: 2.9rem; height: 2.9rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.32rem;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.burger__bar {
  display: block;
  width: 1.45rem; height: 2px;
  background: var(--ink);
  transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1) linear;
}
.burger[aria-expanded="true"] .burger__bar:nth-child(1) { transform: translateY(0.47rem) rotate(45deg); }
.burger[aria-expanded="true"] .burger__bar:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__bar:nth-child(3) { transform: translateY(-0.47rem) rotate(-45deg); }

@media (max-width: 991.98px) {
  .nav-act, .hdr__actions .btn-act { display: none; }
  .burger { display: flex; }
}

/* Mobile panel */
.navpanel {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: var(--ink);
  color: var(--paper);
  padding: 6.5rem var(--shell-pad) var(--s-7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-1.5rem);
  transition: opacity var(--dur-3) var(--ease-out),
              transform var(--dur-3) var(--ease-out),
              visibility 0s linear var(--dur-3);
}
.navpanel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.navpanel__list { list-style: none; margin: 0; padding: 0; }
.navpanel__list li { border-bottom: 1px solid rgba(246,243,236,.14); }
.navpanel__link {
  display: flex;
  align-items: baseline;
  gap: var(--s-4);
  padding: var(--s-4) 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem);
  font-weight: 780;
  font-stretch: 88%;
  letter-spacing: var(--tr-tight);
  line-height: 1.1;
  color: var(--paper);
  transition: color var(--dur-2) var(--ease-out), padding-left var(--dur-2) var(--ease-out);
}
.navpanel__link:hover, .navpanel__link:focus-visible {
  color: var(--torch-lit);
  padding-left: var(--s-3);
}
.navpanel__link .t-folio { color: var(--copper); }
.navpanel__foot { padding-top: var(--s-6); }
body.nav-open { overflow: hidden; }

/* While the panel is open the header sits on ink, whatever page it is on.
   Without this the logo and burger would be ink-on-ink and disappear. */
body.nav-open .hdr,
body.nav-open .hdr.is-stuck {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
  color: var(--paper);
}
body.nav-open .hdr .logo { color: var(--paper); }
body.nav-open .hdr .burger__bar { background: var(--paper); }

/* --------------------------------------------------------------------------
   4. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-top: 9rem;
  padding-bottom: var(--s-8);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: -8%;
  z-index: 0;
  pointer-events: none;
}
/* Parallax layers. JS writes --px/--py (range roughly -1…1). */
.hero__layer {
  position: absolute;
  inset: 0;
  will-change: transform;
  transform: translate3d(calc(var(--px, 0) * var(--depth, 10px)),
                         calc(var(--py, 0) * var(--depth, 10px)), 0);
  transition: transform 600ms var(--ease-out);
}
.hero__inner { position: relative; z-index: 2; width: 100%; }

/* --- Full-bleed photographic hero -----------------------------------------
   The photograph is the ground and the type sits on it. Legibility comes from
   a directional scrim: heavy under the text, clearing toward the opposite
   side so the image is still genuinely visible rather than a dark smudge.
   Measured against sampled pixels, not guessed — see README. */

.hero--photo .hero__photo,
.phead--photo .phead__photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero--photo .hero__photo img,
.phead--photo .phead__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Subject pushed right, away from the type. */
  object-position: 64% 50%;
  filter: saturate(0.92) contrast(1.04) brightness(1.0);
}
.hero--photo .hero__photo::after,
.phead--photo .phead__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* The dark zone tracks the text column — widen the column and this has
       to move with it, or the last words drift onto bright pixels. */
    linear-gradient(90deg,
      rgba(14, 14, 16, 0.93) 0%,
      rgba(14, 14, 16, 0.89) 34%,
      rgba(14, 14, 16, 0.70) 64%,
      rgba(14, 14, 16, 0.24) 100%),
    linear-gradient(180deg,
      rgba(14, 14, 16, 0.80) 0%,
      rgba(14, 14, 16, 0.36) 26%,
      rgba(14, 14, 16, 0.36) 68%,
      rgba(14, 14, 16, 0.76) 100%);
}

/* Muted greys that are comfortable on flat ink lose too much over a
   photograph. Inside a photographic hero the supporting text is lifted
   toward paper and the accent to its brighter variant. Values chosen from
   sampled pixels, not by eye. */
.hero--photo .t-lead,
.phead--photo .t-lead { color: rgba(246, 243, 236, 0.94); }
/* On flat ink the kicker is orange. Over photography it goes to paper and
   keeps the orange only in its rule — a 12px accent needs 4.5:1, and chasing
   that with the scrim alone would mean darkening every image into mush. */
.hero--photo .t-eyebrow,
.phead--photo .t-eyebrow { color: rgba(246, 243, 236, 0.95); }
.hero--photo .t-eyebrow::before,
.phead--photo .t-eyebrow::before { background: var(--torch-lit); }
.hero--photo .hero__meta .t-folio,
.hero--photo .t-folio,
.phead--photo .t-folio,
.phead--photo .crumb,
.phead--photo .crumb a { color: rgba(246, 243, 236, 0.86); }
/* Narrow screens put the text across the full width, so the scrim has to be
   even rather than directional. */
@media (max-width: 991.98px) {
  .hero--photo .hero__photo img,
  .phead--photo .phead__photo img { object-position: 58% 50%; }
  /* Page headers are short and bottom-aligned, so the lower half carries the
     load and the top can stay lighter — which shows more of the photograph,
     not less. */
  .phead--photo .phead__photo::after {
    background:
      linear-gradient(180deg,
        rgba(14, 14, 16, 0.80) 0%,
        rgba(14, 14, 16, 0.62) 22%,
        rgba(14, 14, 16, 0.82) 54%,
        rgba(14, 14, 16, 0.92) 100%);
  }
  /* The home hero is nearly full height and its text runs from a quarter of
     the way down to the foot, so it needs an even scrim rather than a
     bottom-weighted one. */
  .hero--photo .hero__photo::after {
    background:
      linear-gradient(180deg,
        rgba(14, 14, 16, 0.86) 0%,
        rgba(14, 14, 16, 0.85) 26%,
        rgba(14, 14, 16, 0.87) 62%,
        rgba(14, 14, 16, 0.94) 100%);
  }
}

.hero--photo .hero__grid { display: block; }
/* Sized for the headline, which is ~110px display type — a ch-based measure
   here is far too narrow and breaks the authored line breaks. The reading
   measure is applied to the paragraph instead, where it belongs. */
.hero--photo .hero__text { max-width: 62%; }
.hero--photo .hero__text .t-lead { max-width: 52ch; }
@media (max-width: 991.98px) {
  .hero--photo .hero__text { max-width: none; }
}

/* Interior page headers. The same treatment as the home hero, deliberately
   shorter — eight full-height landing pages in a row would flatten the
   hierarchy rather than reinforce it. */
.phead--photo {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(66svh, 580px);
  padding-top: clamp(8.5rem, 6.5rem + 6vw, 12rem);
  padding-bottom: clamp(3rem, 2rem + 4vw, 5.5rem);
  overflow: hidden;
}
.phead--photo > .shell { position: relative; z-index: 2; width: 100%; }
/* A step below the home hero: keeps the authored line breaks intact inside a
   narrower measure, and stops every interior page shouting as loudly as the
   front one. */
.phead--photo .phead__title { font-size: clamp(2.5rem, 1.35rem + 4.7vw, 5.25rem); }
.phead__text { max-width: 58%; }
.phead__text .t-lead { max-width: 48ch; }
@media (max-width: 991.98px) {
  .phead__text { max-width: none; }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  gap: var(--s-7) var(--s-8);
  align-items: end;
}
@media (max-width: 991.98px) {
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .hero { min-height: auto; padding-top: 7.5rem; }
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 810;
  font-stretch: 96%;
  line-height: 0.98;
  letter-spacing: 0.008em;
  margin: 0 0 var(--s-6);
  text-wrap: balance;
}

/* Hero corner meta — the "issue number" device. */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  padding-top: var(--s-5);
  margin-top: var(--s-6);
  border-top: 1px solid var(--rule);
}

/* Scroll cue */
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
}
.scroll-cue__line {
  display: block;
  width: 3rem; height: 1px;
  background: var(--rule-strong);
  position: relative;
  overflow: hidden;
}
.scroll-cue__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent-vivid);
  transform: translateX(-100%);
  animation: cue 2.4s var(--ease-in-out) infinite;
}
@keyframes cue {
  0%   { transform: translateX(-100%); }
  55%  { transform: translateX(0); }
  100% { transform: translateX(100%); }
}

/* --------------------------------------------------------------------------
   5. Marquee — the sector list, running as a masthead ticker
   -------------------------------------------------------------------------- */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--rule);
  padding-block: var(--s-4);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--s-6);
  animation: marquee 44s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-6);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 620;
  font-stretch: 92%;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  white-space: nowrap;
}
.marquee__item::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent-vivid);
  transform: rotate(45deg);
  flex: none;
}
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* --------------------------------------------------------------------------
   6. Pillars — the four services
   -------------------------------------------------------------------------- */

.pillar {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--s-6) var(--s-5) var(--s-6);
  border-top: 1px solid var(--rule-strong);
  color: inherit;
  isolation: isolate;
  transition: transform var(--dur-3) var(--ease-out);
}
/* Ground wipes in behind the content on hover. */
.pillar::before {
  content: '';
  position: absolute;
  inset: 0 0 0 0;
  z-index: -1;
  background: var(--surface-2);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--dur-3) var(--ease-out);
}
.pillar:hover::before, .pillar:focus-within::before { transform: scaleY(1); }
.pillar:hover, .pillar:focus-within { transform: translateY(-4px); }

.pillar__n {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--s-5);
  display: block;
}
.pillar__icon { width: 2.6rem; height: 2.6rem; margin-bottom: var(--s-5); color: var(--accent-vivid); }
.pillar__title {
  font-size: var(--fs-xl);
  font-weight: 760;
  font-stretch: 92%;
  letter-spacing: var(--tr-tight);
  margin-bottom: var(--s-3);
}
.pillar__body { color: var(--on-surface-muted); font-size: var(--fs-base); margin-bottom: var(--s-5); }
.pillar__list {
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  font-size: var(--fs-sm);
  color: var(--on-surface-muted);
}
.pillar__list li { padding: 0.34rem 0 0.34rem 1.15rem; position: relative; }
.pillar__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.95em;
  width: 5px; height: 1px;
  background: var(--accent-vivid);
}
.pillar__cta { margin-top: auto; }
/* Whole card is clickable, but only the link is in the tab order. */
.pillar__stretch::after { content: ''; position: absolute; inset: 0; }

/* --------------------------------------------------------------------------
   7. Work cards — 3D tilt on pointer
   -------------------------------------------------------------------------- */

.workcard {
  position: relative;
  display: block;
  color: inherit;
  perspective: 1400px;
}
.workcard__inner {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform var(--dur-3) var(--ease-out);
  will-change: transform;
}
.workcard__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-2);
}
.workcard__media img,
.workcard__media svg {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--dur-4) var(--ease-out);
}
.workcard:hover .workcard__media img,
.workcard:hover .workcard__media svg { transform: scale(1.06); }

/* Sector tag sits above the media on a raised 3D plane. Bottom-left, so it
   never collides with the plate label set into the top of the artwork. */
.workcard__tag {
  position: absolute;
  left: var(--s-4); bottom: var(--s-4);
  transform: translateZ(40px);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 640;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding: 0.42rem 0.75rem;
  border-radius: var(--radius-pill);
}
.workcard__body {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-4);
  margin-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.workcard__title {
  font-size: var(--fs-lg);
  font-weight: 740;
  letter-spacing: var(--tr-tight);
  margin: 0 0 0.25rem;
}
.workcard__sub { font-size: var(--fs-sm); color: var(--on-surface-muted); margin: 0; }
.workcard__go {
  flex: none;
  width: 2.5rem; height: 2.5rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--rule-strong);
  border-radius: 50%;
  transition: background var(--dur-2) var(--ease-out),
              color var(--dur-2) var(--ease-out),
              border-color var(--dur-2) var(--ease-out),
              transform var(--dur-2) var(--ease-out);
}
.workcard:hover .workcard__go {
  background: var(--torch);
  border-color: var(--torch);
  color: #fff;
  transform: rotate(-45deg);
}

/* --------------------------------------------------------------------------
   8. The magazine — signature CSS-3D moment.
   JS writes --open (0…1) from scroll progress; the cover swings on its spine.
   -------------------------------------------------------------------------- */

.mag {
  position: relative;
  perspective: 2400px;
  perspective-origin: 60% 50%;
  display: flex;
  justify-content: center;
  padding-block: var(--s-6);
}
/* Studio light behind the object. Without it the dark cover sinks into the
   dark section and the magazine stops reading as a physical thing. */
.mag::before {
  content: '';
  position: absolute;
  z-index: 0;
  left: 50%; top: 50%;
  /* Must not exceed the container: an oversized glow pushed the document
     wider than the viewport and produced a horizontal scrollbar. */
  width: 100%; height: 150%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center,
    rgba(246, 243, 236, 0.22) 0%,
    rgba(246, 243, 236, 0.08) 40%,
    rgba(246, 243, 236, 0) 68%);
  pointer-events: none;
}
.mag__book { z-index: 1; }
.mag__book {
  position: relative;
  width: min(100%, 780px);
  aspect-ratio: 1.42 / 1;
  transform-style: preserve-3d;
  transform: rotateX(6deg) rotateZ(-1.2deg);
}
/* Inside spread — revealed as the cover opens. */
.mag__spread {
  position: absolute;
  inset: 0;
  border-radius: 2px 5px 5px 2px;
  overflow: hidden;
  box-shadow: var(--shadow-3);
  background: var(--paper);
}
/* Cover occupies the right half and hinges on its left edge. */
.mag__cover {
  position: absolute;
  top: 0; right: 0;
  width: 50%; height: 100%;
  transform-origin: left center;
  transform-style: preserve-3d;
  transform: rotateY(calc(var(--open, 0) * -168deg));
  transition: transform 120ms linear;
  border-radius: 2px 5px 5px 2px;
}
.mag__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  box-shadow: var(--shadow-lift);
}
.mag__face--back {
  transform: rotateY(180deg);
  background: var(--paper-2);
  box-shadow: none;
}
.mag__face img, .mag__face svg { width: 100%; height: 100%; object-fit: cover; }
/* Spine shading, deepest when closed. */
.mag__spine {
  position: absolute;
  top: 0; left: 50%;
  width: 34px; height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 5;
  background: linear-gradient(90deg,
    rgba(14,14,16,0) 0%, rgba(14,14,16,.20) 45%,
    rgba(14,14,16,.26) 50%, rgba(14,14,16,.12) 60%, rgba(14,14,16,0) 100%);
  opacity: calc(0.35 + var(--open, 0) * 0.65);
}
@media (max-width: 575.98px) {
  .mag__book { transform: none; }
}

/* --------------------------------------------------------------------------
   9. Process — numbered, ruled, in trade vocabulary
   -------------------------------------------------------------------------- */

.process { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.process__item {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr) minmax(0, 0.85fr);
  gap: var(--s-4) var(--s-6);
  align-items: start;
  padding-block: var(--s-6);
  border-top: 1px solid var(--rule);
  position: relative;
}
.process__item:last-child { border-bottom: 1px solid var(--rule); }
/* Torch rule grows across the row on hover. */
.process__item::after {
  content: '';
  position: absolute;
  left: 0; top: -1px;
  height: 1px; width: 100%;
  background: var(--accent-vivid);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-3) var(--ease-out);
}
.process__item:hover::after { transform: scaleX(1); }
.process__n {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 820;
  font-stretch: 76%;
  line-height: 0.9;
  color: var(--rule-strong);
  transition: color var(--dur-3) var(--ease-out);
  font-variant-numeric: tabular-nums;
}
.process__item:hover .process__n { color: var(--accent-vivid); }
.process__title { font-size: var(--fs-xl); font-weight: 740; margin: 0 0 var(--s-2); }
.process__meta {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}
@media (max-width: 900px) {
  .process__item { grid-template-columns: 3.5rem minmax(0, 1fr); }
  .process__meta { grid-column: 2; }
}

/* --------------------------------------------------------------------------
   10. Stats
   -------------------------------------------------------------------------- */

.stat { border-top: 1px solid var(--rule-strong); padding-top: var(--s-4); }
.stat__n {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 820;
  font-stretch: 80%;
  line-height: 1;
  letter-spacing: -0.04em;
  display: block;
  margin-bottom: var(--s-3);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: var(--fs-sm);
  color: var(--on-surface-muted);
  max-width: 22ch;
}

/* --------------------------------------------------------------------------
   11. Quote / testimonial
   -------------------------------------------------------------------------- */

.quote { position: relative; }
.quote__mark {
  font-family: var(--font-edit);
  font-size: 7rem;
  line-height: 0.6;
  color: var(--accent-vivid);
  display: block;
  margin-bottom: var(--s-3);
  opacity: 0.9;
}
.quote__attr {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
}
.quote__avatar {
  width: 3rem; height: 3rem;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 760;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}
.quote__name { font-weight: 700; font-size: var(--fs-base); }
.quote__role { font-size: var(--fs-sm); color: var(--on-surface-muted); }

/* --------------------------------------------------------------------------
   12. Cards, pricing, FAQ
   -------------------------------------------------------------------------- */

.card-edit {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-6);
  background: var(--surface-2);
  border-radius: var(--radius-2);
  border: 1px solid var(--rule);
  transition: transform var(--dur-3) var(--ease-out), box-shadow var(--dur-3) var(--ease-out);
}
.card-edit:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }

.price {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--s-6);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-2);
  background: var(--surface);
  position: relative;
}
.price--feature {
  border-color: var(--accent-vivid);
  border-width: 2px;
  box-shadow: var(--shadow-2);
}
.price__flag {
  position: absolute;
  top: -0.8rem; left: var(--s-6);
  background: var(--torch-fill);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 660;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
}
.price__amount {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 820;
  font-stretch: 84%;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: var(--s-4) 0 var(--s-2);
}
.price__from {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}
.price__list { list-style: none; margin: var(--s-5) 0 var(--s-6); padding: 0; }
.price__list li {
  position: relative;
  padding: 0.42rem 0 0.42rem 1.6rem;
  font-size: var(--fs-sm);
  border-top: 1px solid var(--rule);
}
.price__list li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05em;
  width: 0.7rem; height: 1px;
  background: var(--accent-vivid);
}
.price__cta { margin-top: auto; }

/* Bootstrap accordion, restyled to editorial rules. */
.accordion-act { --bs-accordion-border-color: transparent; }
.accordion-act .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--rule);
}
.accordion-act .accordion-item:last-of-type { border-bottom: 1px solid var(--rule); }
.accordion-act .accordion-button {
  background: transparent;
  color: var(--on-surface);
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 680;
  letter-spacing: var(--tr-tight);
  padding: var(--s-5) 2.5rem var(--s-5) 0;
  box-shadow: none;
  transition: color var(--dur-2) var(--ease-out);
}
.accordion-act .accordion-button:hover { color: var(--accent-vivid); }
.accordion-act .accordion-button:not(.collapsed) { background: transparent; color: var(--accent-vivid); }
.accordion-act .accordion-button::after {
  /* Replace Bootstrap's chevron with a plus/minus rule pair. */
  background-image: none;
  content: '';
  width: 0.85rem; height: 0.85rem;
  border: 0;
  position: absolute;
  right: 0;
  background:
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat;
  transform: rotate(0deg);
  transition: transform var(--dur-2) var(--ease-out);
}
.accordion-act .accordion-button:not(.collapsed)::after {
  transform: rotate(90deg);
  background:
    linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat;
}
.accordion-act .accordion-body {
  padding: 0 3rem var(--s-6) 0;
  color: var(--on-surface-muted);
  max-width: var(--measure);
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */

.cta-band { position: relative; overflow: hidden; }
.cta-band__glow {
  position: absolute;
  z-index: 0;
  width: 55rem; height: 55rem;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(226,84,44,.30) 0%, rgba(226,84,44,0) 62%);
  pointer-events: none;
}
.cta-band > .shell { position: relative; z-index: 1; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */

.field { margin-bottom: var(--s-5); }
.field__label {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 640;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--on-surface-muted);
  margin-bottom: var(--s-2);
}
.field__req { color: var(--accent-vivid); }
.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.85rem 1rem;
  background: var(--surface);
  color: var(--on-surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-2);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.field__textarea { min-height: 9rem; resize: vertical; }
.field__input:hover, .field__select:hover, .field__textarea:hover { border-color: var(--on-surface-muted); }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  border-color: var(--torch);
  box-shadow: 0 0 0 3px rgba(226,84,44,.22);
  outline: none;
}
.field__hint { font-size: var(--fs-sm); color: var(--on-surface-muted); margin-top: var(--s-2); }

/* Errors are signalled by text, icon and border — never by colour alone. */
.field__error {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--torch-deep);
  margin-top: var(--s-2);
}
.field.is-invalid .field__error { display: flex; }
.field.is-invalid .field__input,
.field.is-invalid .field__select,
.field.is-invalid .field__textarea { border-color: var(--torch-deep); border-width: 2px; }
.on-ink .field__error, .on-blueprint .field__error { color: var(--torch-lit); }

/* Radio/checkbox rendered as selectable chips. */
.chipset { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.chip span {
  display: flex;
  align-items: center;
  min-height: 2.9rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 560;
  transition: all var(--dur-2) var(--ease-out);
  cursor: pointer;
}
.chip input:checked + span {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.on-ink .chip input:checked + span { background: var(--torch); border-color: var(--torch); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--torch); outline-offset: 3px; }

.form-note {
  font-size: var(--fs-sm);
  color: var(--on-surface-muted);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  margin-top: var(--s-5);
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.ftr { padding-top: var(--s-9); padding-bottom: var(--s-6); }
.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: var(--s-7) var(--s-6);
  padding-bottom: var(--s-8);
}
@media (max-width: 900px) {
  .ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ftr__brand { grid-column: 1 / -1; }
}
.ftr__h {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 640;
  letter-spacing: var(--tr-caps);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.ftr__list { list-style: none; margin: 0; padding: 0; }
.ftr__list li { margin-bottom: var(--s-3); }
.ftr__list a {
  color: var(--on-surface-muted);
  font-size: var(--fs-sm);
  transition: color var(--dur-2) var(--ease-out);
}
.ftr__list a:hover { color: var(--on-surface); }
.ftr__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  font-size: var(--fs-sm);
  color: var(--on-surface-muted);
}
.ftr__legal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3) var(--s-5);
}
.ftr__legal a {
  color: var(--on-surface-muted);
  transition: color var(--dur-2) var(--ease-out);
}
.ftr__legal a:hover,
.ftr__legal a[aria-current="page"] { color: var(--on-surface); }
/* Oversized wordmark bleeding along the footer base. */
.ftr__mast {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 0.5rem + 13.5vw, 13rem);
  font-weight: 860;
  font-stretch: 74%;
  line-height: 0.78;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-strong);
  margin: var(--s-7) 0 var(--s-5);
  user-select: none;
  text-align: center;
}

/* --------------------------------------------------------------------------
   16. Interior page header
   -------------------------------------------------------------------------- */

.phead {
  padding-top: clamp(8rem, 6rem + 6vw, 12rem);
  padding-bottom: var(--section-y);
  position: relative;
  overflow: hidden;
}
.phead__title {
  font-family: var(--font-display);
  font-size: var(--fs-4xl);
  font-weight: 810;
  font-stretch: 96%;
  line-height: 0.98;
  letter-spacing: 0.008em;
  margin: 0 0 var(--s-5);
  text-wrap: balance;
}
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-3);
  list-style: none;
  margin: 0 0 var(--s-6);
  padding: 0;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
}
.crumb li + li::before { content: '/'; margin-right: var(--s-3); opacity: .5; }
.crumb a:hover { color: var(--accent-vivid); }


/* --------------------------------------------------------------------------
   17. Case study
   -------------------------------------------------------------------------- */

.cs-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--s-5);
  padding-block: var(--s-6);
  border-block: 1px solid var(--rule);
}
.cs-meta__k {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--on-surface-muted);
  display: block;
  margin-bottom: var(--s-2);
}
.cs-meta__v { font-weight: 640; font-size: var(--fs-base); }
/* dd carries a UA margin-inline-start that would indent every value. */
.cs-meta dd { margin: 0; }

.figure-act { margin: 0; }
.figure-act img, .figure-act svg {
  width: 100%;
  border-radius: var(--radius-2);
  background: var(--surface-2);
}
.figure-act figcaption {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
}
/* The plate number is a label, not prose — never let it wrap mid-token. */
.figure-act figcaption .t-folio { flex: none; white-space: nowrap; }

/* Full-bleed figure that escapes the shell. */
.bleed {
  width: 100vw;
  max-width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
}

/* --------------------------------------------------------------------------
   17b. Photography
   Every photograph gets the same grade so a set of separately-shot images
   reads as one commissioned body of work rather than assorted stock.
   -------------------------------------------------------------------------- */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
}
/* <picture> is an inline wrapper by default, which leaves the image's
   percentage height indeterminate and collapses it. Make it fill instead. */
.ph picture {
  display: block;
  width: 100%;
  height: 100%;
}
.ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Pulled back off full saturation and warmed slightly toward the palette. */
  filter: saturate(0.76) contrast(1.06) brightness(0.97) sepia(0.10);
}

/* Ink wash — for photographs carrying text or sitting on a dark ground. */
.ph--wash::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(14, 14, 16, 0.34) 0%,
    rgba(14, 14, 16, 0.62) 52%,
    rgba(14, 14, 16, 0.93) 100%);
}
/* Blueprint duotone — the default state of a sector tile. */
.ph--duo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(170deg, var(--blueprint) 0%, var(--ink) 100%);
  mix-blend-mode: color;
  opacity: 0.85;
  transition: opacity var(--dur-3) var(--ease-out);
}
.ph--rule { border: 1px solid var(--rule); }

/* --- Sector tiles: the trades, shown rather than listed ------------------ */

.sector {
  position: relative;
  display: block;
  color: var(--paper);
  overflow: hidden;
  border-radius: var(--radius-2);
  aspect-ratio: 1 / 1;
  transition: transform var(--dur-3) var(--ease-out);
}
@media (max-width: 575.98px) { .sector { aspect-ratio: 4 / 5; } }
.sector .ph { position: absolute; inset: 0; }
.sector img { transition: transform var(--dur-4) var(--ease-out); }

/* Colour returns on hover — the tile "lights up" as you consider it. */
.sector:hover, .sector:focus-visible { transform: translateY(-5px); }
.sector:hover .ph--duo::before,
.sector:focus-visible .ph--duo::before { opacity: 0.16; }
.sector:hover img,
.sector:focus-visible img { transform: scale(1.06); }

.sector__body {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 3;
  padding: var(--s-5) var(--s-4);
  background: linear-gradient(180deg, rgba(14,14,16,0) 0%, rgba(14,14,16,.86) 62%);
}
.sector__name {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 780;
  font-stretch: 92%;
  letter-spacing: var(--tr-tight);
  line-height: 1.1;
  margin: 0;
}
.sector__n {
  position: absolute;
  top: var(--s-4); left: var(--s-4);
  z-index: 3;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.12em;
  color: var(--copper-lit);
  /* Sits directly on photography, so it needs its own separation. */
  text-shadow: 0 1px 6px rgba(14, 14, 16, 0.9);
}

/* --- Full-bleed photographic band --------------------------------------- */

.band {
  position: relative;
  min-height: clamp(22rem, 16rem + 22vw, 38rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--paper);
  /* Opaque ink base. The wash over the photograph does the real work, but if
     the image is slow, broken or blocked, the text is still on a dark ground
     rather than on paper-white. */
  background-color: var(--ink);
  /* A band is its own dark ground, whatever section it interrupts. */
  --on-surface: var(--paper);
  --on-surface-muted: var(--concrete);
  --rule: rgba(246, 243, 236, 0.22);
  --accent: var(--torch-lit);
  --accent-vivid: var(--torch-lit);
}
.band .ph {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.band__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: var(--s-8);
}
.band__caption {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  padding-top: var(--s-4);
  margin-top: var(--s-5);
  border-top: 1px solid var(--rule);
}

/* --- Editorial side image ------------------------------------------------ */

.sideshot {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-2);
  overflow: hidden;
}
.sideshot .ph { position: absolute; inset: 0; }
@media (max-width: 991.98px) {
  /* 16/9 crops a standing figure through the head. 4/3 keeps them whole. */
  .sideshot { aspect-ratio: 4 / 3; }
}

/* Crop bias, for images whose subject sits above the centre of the frame. */
.ph--focus-top img { object-position: 50% 22%; }
.ph--focus-bottom img { object-position: 50% 78%; }

/* --------------------------------------------------------------------------
   17c. Legal pages
   Long-form prose. Deliberately plainer than the marketing pages — these are
   read for reference, so the priority is a comfortable measure and headings
   you can scan, not art direction.
   -------------------------------------------------------------------------- */

.legal { max-width: 68ch; }
.legal > * + * { margin-top: var(--s-5); }

.legal h2 {
  font-size: var(--fs-xl);
  font-weight: 740;
  font-stretch: 96%;
  letter-spacing: var(--tr-tight);
  margin: var(--s-8) 0 var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
}
.legal h2:first-child { margin-top: 0; }
.legal h3 {
  font-size: var(--fs-md);
  font-weight: 700;
  letter-spacing: 0;
  margin: var(--s-6) 0 var(--s-3);
}
.legal p { color: var(--on-surface-muted); }
.legal strong { color: var(--on-surface); font-weight: 660; }

.legal ul, .legal ol { margin: var(--s-4) 0; padding-left: 0; list-style: none; }
.legal li {
  position: relative;
  padding: 0.34rem 0 0.34rem 1.5rem;
  color: var(--on-surface-muted);
}
.legal ul > li::before {
  content: '';
  position: absolute;
  left: 0; top: 1.05em;
  width: 0.65rem; height: 1px;
  background: var(--accent-vivid);
}
.legal ol { counter-reset: legal; }
.legal ol > li { padding-left: 2rem; }
.legal ol > li::before {
  counter-increment: legal;
  content: counter(legal, decimal-leading-zero);
  position: absolute;
  left: 0; top: 0.34rem;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--accent);
}

.legal a { color: var(--on-surface); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--accent-vivid); }

/* Contact / summary panel inside a policy. */
.legal-note {
  padding: var(--s-5);
  background: var(--surface-2);
  border-left: 3px solid var(--accent-vivid);
  border-radius: 0 var(--radius-2) var(--radius-2) 0;
}
.legal-note p { color: var(--on-surface); }

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  padding-bottom: var(--s-5);
  margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--rule);
}

/* --------------------------------------------------------------------------
   18. Reveal — JS adds .is-in. Guarded on .js so no-JS users see everything.
   -------------------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-4) var(--ease-out),
              transform var(--dur-4) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js [data-reveal="left"]  { transform: translateX(-28px); }
.js [data-reveal="right"] { transform: translateX(28px); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Line-by-line masked heading reveal. */
.js .reveal-lines .rl {
  display: block;
  overflow: hidden;
}
.js .reveal-lines .rl > span {
  display: block;
  transform: translateY(105%);
  transition: transform 900ms var(--ease-out);
  transition-delay: var(--rl-delay, 0ms);
}
.js .reveal-lines.is-in .rl > span { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .reveal-lines .rl > span { transform: none !important; }
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */

.u-rule { border-top: 1px solid var(--rule); }
.u-rule-strong { border-top: 1px solid var(--rule-strong); }
.u-sticky { position: sticky; top: 7rem; }
.u-center { margin-inline: auto; text-align: center; }
.u-center .t-lead, .u-center .t-measure { margin-inline: auto; }
.u-relative { position: relative; }
.u-fill { width: 100%; height: 100%; object-fit: cover; }

/* Column spans for .egrid */
.c-1 { grid-column: span 1 } .c-2 { grid-column: span 2 } .c-3 { grid-column: span 3 }
.c-4 { grid-column: span 4 } .c-5 { grid-column: span 5 } .c-6 { grid-column: span 6 }
.c-7 { grid-column: span 7 } .c-8 { grid-column: span 8 } .c-9 { grid-column: span 9 }
.c-10 { grid-column: span 10 } .c-11 { grid-column: span 11 } .c-12 { grid-column: span 12 }

/* Positioned spans. Never pair a `span N` class with an inline
   grid-column-start — the start overrides the span and collapses the item
   to one column. These set both edges in a single declaration instead. */
.c-9-12 { grid-column: 9 / -1; }
.c-8-12 { grid-column: 8 / -1; }
.c-7-12 { grid-column: 7 / -1; }
@media (max-width: 991.98px) {
  .c-9-12, .c-8-12, .c-7-12 { grid-column: span 6; }
}
@media (max-width: 991.98px) {
  .c-md-2 { grid-column: span 2 } .c-md-3 { grid-column: span 3 }
  .c-md-4 { grid-column: span 4 } .c-md-6 { grid-column: span 6 }
}
@media (max-width: 575.98px) {
  .c-sm-1 { grid-column: span 1 } .c-sm-2 { grid-column: span 2 }
  [class*="c-"]:not([class*="c-sm-"]) { grid-column: span 2; }
}

/* Cursor spotlight — decorative, desktop and fine pointers only. */
.spot {
  position: fixed;
  z-index: 8500;
  width: 22rem; height: 22rem;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle, rgba(226,84,44,.16) 0%, rgba(226,84,44,0) 65%);
  transform: translate3d(var(--sx, 0), var(--sy, 0), 0) translate(-50%, -50%);
  transition: opacity var(--dur-3) var(--ease-out);
  mix-blend-mode: screen;
}
.spot.is-on { opacity: 1; }
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .spot { display: none !important; }
}

/* Print — the studio that makes magazines should print properly. */
@media print {
  .hdr, .navpanel, .spot, .scroll-cue, .marquee, .cta-band { display: none !important; }
  body::after { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .on-ink, .on-blueprint { background: #fff !important; color: #000 !important; }
  .section { padding-block: 1.5rem; page-break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
