/* ==========================================================================
   ToolHarbor — shared stylesheet
   Palette: deep petrol + brass, cool off-white paper
   Type: Bricolage Grotesque (display) / IBM Plex Sans (body) / IBM Plex Mono (meta)
   ========================================================================== */

:root {
  /* --- colour ------------------------------------------------------------ */
  --petrol-deep: #062026;
  --petrol: #0d3742;
  --petrol-mid: #14515f;
  --sea: #2f7f8c;
  --sea-light: #6aa9b1;

  --brass: #bd7c2e;
  --brass-light: #e0a85f;
  --brass-wash: rgba(189, 124, 46, 0.12);

  --ink: #08191e;
  --ink-soft: #2b4a52;
  --muted: #55757d;
  --muted-light: #90a8ad;

  --paper: #f2f6f5;
  --paper-raised: #fbfdfc;
  --paper-sunk: #e4ebe9;

  --line: rgba(8, 25, 30, 0.13);
  --line-strong: rgba(8, 25, 30, 0.28);
  --line-invert: rgba(255, 255, 255, 0.16);

  /* --- type -------------------------------------------------------------- */
  --font-display: "Bricolage Grotesque", "Trebuchet MS", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --step-hero: clamp(2.9rem, 10.5vw, 8.4rem);
  --step-xl: clamp(2.3rem, 5.4vw, 4.1rem);
  --step-lg: clamp(1.8rem, 3.4vw, 2.7rem);
  --step-md: clamp(1.25rem, 2vw, 1.55rem);
  --step-body: clamp(1rem, 0.45vw + 0.92rem, 1.09rem);
  --step-sm: 0.925rem;
  --step-meta: 0.735rem;

  /* --- space & shape ----------------------------------------------------- */
  --shell: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 4px;
  --radius-lg: 10px;

  --shadow-sm: 0 1px 2px rgba(8, 25, 30, 0.06), 0 6px 18px -12px rgba(8, 25, 30, 0.28);
  --shadow-lg: 0 24px 60px -32px rgba(6, 32, 38, 0.5);

  --ease: cubic-bezier(0.2, 0.7, 0.25, 1);
  --dur: 0.42s;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

* { margin: 0; }

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

body {
  background-color: var(--paper);
  background-image:
    radial-gradient(90% 55% at 100% 0%, rgba(47, 127, 140, 0.13), transparent 62%),
    radial-gradient(70% 45% at 0% 12%, rgba(189, 124, 46, 0.09), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, #eef3f2 55%, #e8efed 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-body);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

img { height: auto; background-color: var(--paper-sunk); }

a { color: inherit; }

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.022em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection {
  background-color: var(--brass);
  color: #fff;
}

/* ==========================================================================
   Utilities & primitives
   ========================================================================== */

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--wide { max-width: 1420px; }

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

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  padding: 0.7rem 1.1rem;
  background-color: var(--petrol-deep);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  transition: top 0.2s var(--ease);
}

.skip-link:focus { top: 12px; }

:where(a, button, input, textarea, summary):focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

/* Eyebrow / kicker label -------------------------------------------------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background-color: var(--brass);
  flex: none;
}

.eyebrow--invert { color: rgba(255, 255, 255, 0.66); }
.eyebrow--invert::before { background-color: var(--brass-light); }

.lede {
  font-size: clamp(1.09rem, 1.1vw + 0.85rem, 1.33rem);
  line-height: 1.55;
  color: var(--ink-soft);
}

.section-rule {
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

/* Buttons ---------------------------------------------------------------- */
.btn {
  --btn-bg: var(--petrol-deep);
  --btn-fg: #fff;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.92rem 1.5rem;
  background-color: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-mono);
  font-size: 0.79rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn__arrow {
  display: inline-block;
  transition: transform var(--dur) var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -18px rgba(6, 32, 38, 0.85);
}

.btn:hover .btn__arrow { transform: translateX(4px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  --btn-bg: var(--brass);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.btn--primary:hover { --btn-bg: #a86a22; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.42);
}

.btn--ghost:hover {
  --btn-bg: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--petrol-deep);
  border-color: var(--line-strong);
}

.btn--outline:hover {
  --btn-bg: var(--petrol-deep);
  --btn-fg: #fff;
  border-color: var(--petrol-deep);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Inline text link ------------------------------------------------------- */
.link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  color: var(--petrol);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-decoration: none;
  background-image: linear-gradient(var(--brass), var(--brass));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size var(--dur) var(--ease), color var(--dur) var(--ease);
}

.link:hover {
  color: var(--brass);
  background-size: 100% 1px;
}

.link--invert { color: rgba(255, 255, 255, 0.86); }
.link--invert:hover { color: #fff; }

/* Prose links ----------------------------------------------------------- */
.prose-link {
  color: var(--petrol-mid);
  text-decoration: underline;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease);
}

.prose-link:hover { color: var(--brass); }

/* ==========================================================================
   Header / navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(242, 246, 245, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background-color: rgba(246, 249, 248, 0.93);
  box-shadow: 0 10px 30px -26px rgba(6, 32, 38, 0.7);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  border-radius: 7px;
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.brand:hover .brand__mark { transform: rotate(-7deg) scale(1.05); }

.brand__mark svg { width: 17px; height: 17px; }

.brand__text {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand__text span { color: var(--brass); }

/* Nav ------------------------------------------------------------------- */
.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 1.9vw, 1.9rem);
  list-style: none;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.28s var(--ease);
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}

.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { transform: scaleX(1); }

.site-nav a.is-active { color: var(--ink); }
.site-nav a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background-color: var(--ink);
  transition: transform 0.32s var(--ease), opacity 0.2s linear;
}

.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: relative;
}

.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 4.5px; }

.nav-toggle[aria-expanded="true"] .nav-toggle__bars { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
  opacity: 0;
  transform: translateY(6px);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
  top: -1.5px;
  transform: rotate(-90deg);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background-color: var(--paper-raised);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    opacity: 0;
    transition: grid-template-rows 0.38s var(--ease), opacity 0.28s var(--ease),
      visibility 0.38s;
  }

  .site-nav.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    opacity: 1;
  }

  .site-nav ul {
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-inline: var(--gutter);
  }

  .site-nav li + li { border-top: 1px solid var(--line); }

  .site-nav a {
    padding: 1rem 0;
    font-size: 1.02rem;
  }

  .site-nav a::after { bottom: 0.65rem; width: 22px; }
}

/* ==========================================================================
   Hero (home) — full-bleed visual plane
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(94svh, 900px);
  display: flex;
  align-items: flex-end;
  padding-block: clamp(3.5rem, 8vh, 6rem) clamp(2.5rem, 6vh, 4rem);
  color: #fff;
  overflow: hidden;
  background-color: var(--petrol-deep);
  background-image:
    linear-gradient(96deg, rgba(4, 22, 27, 0.88) 0%, rgba(4, 22, 27, 0.42) 58%, transparent 82%),
    linear-gradient(168deg, rgba(6, 32, 38, 0.72) 0%, rgba(6, 32, 38, 0.34) 42%, rgba(4, 22, 27, 0.9) 100%),
    radial-gradient(100% 78% at 86% 6%, rgba(47, 127, 140, 0.62), transparent 60%),
    url("https://images.unsplash.com/photo-1484807352052-23338990c6c6?auto=format&fit=crop&w=2000&q=80");
  background-position: center, center, center, 58% 42%;
  background-size: cover;
  background-repeat: no-repeat;
}

/* fine technical grid + brass horizon line */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 96px);
  mask-image: radial-gradient(75% 70% at 30% 55%, #000 20%, transparent 85%);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass) 0%, rgba(189, 124, 46, 0) 62%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero__brand {
  font-family: var(--font-display);
  font-size: var(--step-hero);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.045em;
  margin-bottom: clamp(1.3rem, 2.4vw, 2rem);
}

.hero__brand em {
  display: block;
  font-style: normal;
  color: var(--brass-light);
  padding-left: 0.06em;
}

.hero__headline {
  font-size: clamp(1.5rem, 2.4vw, 2.3rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -0.018em;
  max-width: 27ch;
  margin-bottom: 1rem;
}

.hero__support {
  max-width: 48ch;
  font-size: clamp(1rem, 0.5vw + 0.9rem, 1.12rem);
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: clamp(1.7rem, 3vw, 2.3rem);
}

.hero__eyebrow { margin-bottom: clamp(1.4rem, 3.5vh, 2.4rem); }

.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: 0.25rem;
  display: none;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
}

.hero__scroll i {
  display: block;
  width: 1px;
  height: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), transparent);
  animation: drip 2.6s var(--ease) infinite;
}

@media (min-width: 1024px) {
  .hero__scroll { display: flex; flex-direction: column; }
}

@keyframes drip {
  0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.2; }
  45% { transform: scaleY(1); opacity: 0.9; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* Staged entrance -------------------------------------------------------- */
.js .hero__stage > * {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 0.95s var(--ease) forwards;
}

.js .hero__stage > *:nth-child(1) { animation-delay: 0.08s; }
.js .hero__stage > *:nth-child(2) { animation-delay: 0.2s; }
.js .hero__stage > *:nth-child(3) { animation-delay: 0.34s; }
.js .hero__stage > *:nth-child(4) { animation-delay: 0.46s; }
.js .hero__stage > *:nth-child(5) { animation-delay: 0.58s; }

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

/* ==========================================================================
   Page band (inner page headers)
   ========================================================================== */

.band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(340px, 52vh, 520px);
  padding-block: clamp(4.5rem, 11vh, 7rem) clamp(2.6rem, 6vh, 4rem);
  color: #fff;
  background-color: var(--petrol);
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.88) 0%, rgba(6, 32, 38, 0.62) 48%, rgba(4, 22, 27, 0.94) 100%),
    radial-gradient(90% 75% at 92% 10%, rgba(47, 127, 140, 0.5), transparent 60%);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.band::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent 58%);
}

.band__inner {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.band__index {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1rem;
}

.band__title {
  font-size: var(--step-hero);
  font-size: clamp(2.7rem, 8vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.92;
  margin-bottom: 1.1rem;
}

.band__lede {
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.02rem, 0.7vw + 0.88rem, 1.18rem);
}

/* Per-page photography --------------------------------------------------- */
.band--utilities {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.62) 48%, rgba(4, 22, 27, 0.94) 100%),
    url("https://images.unsplash.com/photo-1496181133206-80ce9b88a853?auto=format&fit=crop&w=1800&q=80");
}

.band--drivers {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.6) 48%, rgba(4, 22, 27, 0.95) 100%),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=80");
}

.band--office {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.62) 48%, rgba(4, 22, 27, 0.94) 100%),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80");
}

.band--guides {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.6) 48%, rgba(4, 22, 27, 0.95) 100%),
    url("https://images.unsplash.com/photo-1498050108023-c5249f4df085?auto=format&fit=crop&w=1800&q=80");
}

.band--about {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.62) 48%, rgba(4, 22, 27, 0.94) 100%),
    url("https://images.unsplash.com/photo-1497032628192-86f99bcd76bc?auto=format&fit=crop&w=1800&q=80");
}

.band--contact {
  background-image:
    linear-gradient(160deg, rgba(6, 32, 38, 0.9) 0%, rgba(6, 32, 38, 0.6) 48%, rgba(4, 22, 27, 0.95) 100%),
    url("https://images.unsplash.com/photo-1524758631624-e2822e304c36?auto=format&fit=crop&w=1800&q=80");
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sunk { background-color: rgba(255, 255, 255, 0.5); border-block: 1px solid var(--line); }

/* Editorial statement: big claim + supporting column --------------------- */
.statement {
  display: grid;
  gap: clamp(1.8rem, 4vw, 4.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .statement { grid-template-columns: 1.15fr 0.85fr; }
}

.statement__title {
  font-size: var(--step-xl);
  font-weight: 500;
  max-width: 24ch;
}

.statement__title strong {
  font-weight: 700;
  color: var(--petrol-mid);
}

.statement__body > * + * { margin-top: 1.05rem; }
.statement__body p { color: var(--muted); }
.statement__eyebrow { margin-bottom: 1.4rem; }

/* Section heading block --------------------------------------------------- */
.section-head {
  max-width: 56ch;
  margin-bottom: clamp(2rem, 4vw, 3.2rem);
}

.section-head .eyebrow { margin-bottom: 1.2rem; }
.section-head .lede { margin-top: 1.2rem; }

/* Numbered editorial rows (shelves) -------------------------------------- */
.shelf {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.shelf__row {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: clamp(1.2rem, 3vw, 2.8rem);
  align-items: center;
  padding-block: clamp(1.8rem, 4vw, 2.9rem);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background-color var(--dur) var(--ease);
}

.shelf__row::before {
  content: "";
  position: absolute;
  left: calc(var(--gutter) * -0.5);
  right: calc(var(--gutter) * -0.5);
  top: 0;
  bottom: 0;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0.62);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.shelf__row:hover::before { opacity: 1; }

@media (min-width: 820px) {
  .shelf__row { grid-template-columns: 4.5rem 1.15fr 1fr; }

  /* Explicit placement so the alternating rows swap text and image
     without the figure landing in the narrow index column. */
  .shelf__num { grid-column: 1; grid-row: 1; }
  .shelf__body { grid-column: 2; grid-row: 1; }
  .shelf__figure { grid-column: 3; grid-row: 1; }

  .shelf__row--flip .shelf__figure { grid-column: 2; }
  .shelf__row--flip .shelf__body { grid-column: 3; }
}

.shelf__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--muted-light);
  padding-top: 0.35rem;
}

.shelf__title {
  font-size: var(--step-lg);
  margin-bottom: 0.65rem;
  transition: color var(--dur) var(--ease);
}

.shelf__row:hover .shelf__title { color: var(--petrol-mid); }

.shelf__copy {
  color: var(--muted);
  max-width: 44ch;
  margin-bottom: 1.3rem;
}

.shelf__figure {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  aspect-ratio: 16 / 10;
}

.shelf__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
  transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
}

.shelf__row:hover .shelf__figure img {
  transform: scale(1.045);
  filter: saturate(1.08);
}

/* Entry list (catalogue items) ------------------------------------------- */
.entries {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.entry {
  display: grid;
  gap: 0.35rem clamp(1rem, 3vw, 2.6rem);
  padding-block: clamp(1.5rem, 3vw, 2.1rem);
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.entry:hover {
  padding-left: 0.7rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.7), transparent 70%);
  box-shadow: inset 3px 0 0 var(--brass);
}

@media (min-width: 780px) {
  .entry {
    grid-template-columns: 3.2rem minmax(0, 1fr) minmax(0, 1.35fr) auto;
    align-items: baseline;
  }
}

.entry__num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--muted-light);
  letter-spacing: 0.1em;
}

.entry__name {
  font-family: var(--font-display);
  font-size: var(--step-md);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.entry__tag {
  display: block;
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--brass);
}

.entry__copy {
  color: var(--muted);
  font-size: 0.99rem;
}

.entry__meta {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  white-space: nowrap;
}

/* Notes / advisory block ------------------------------------------------- */
.note {
  display: grid;
  gap: clamp(1.2rem, 3vw, 3rem);
  padding: clamp(1.6rem, 4vw, 2.8rem);
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brass);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 860px) {
  .note { grid-template-columns: 0.7fr 1.3fr; align-items: start; }
}

.note__title {
  font-size: var(--step-md);
  font-weight: 600;
}

.note__body > * + * { margin-top: 0.9rem; }
.note__body p { color: var(--muted); font-size: 0.99rem; }

.note__list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.99rem;
}

.note__list li + li { margin-top: 0.5rem; }
.note__list ::marker { color: var(--brass); }

/* Feature band (full-bleed image + overlay copy) -------------------------- */
.feature {
  position: relative;
  isolation: isolate;
  padding-block: clamp(4.5rem, 10vw, 7.5rem);
  color: #fff;
  background-color: var(--petrol-deep);
  background-image:
    linear-gradient(100deg, rgba(4, 22, 27, 0.94) 0%, rgba(6, 32, 38, 0.72) 55%, rgba(47, 127, 140, 0.35) 100%),
    url("https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1900&q=80");
  background-size: cover;
  background-position: center;
}

.feature__inner { max-width: 58ch; }
.feature__title {
  font-size: var(--step-xl);
  font-weight: 500;
  margin-block: 1.2rem;
}
.feature__copy {
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 2rem;
}

/* Two-column prose ------------------------------------------------------- */
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: var(--step-lg); margin-top: 2.6rem; }
.prose h3 { font-size: var(--step-md); margin-top: 2rem; }
.prose p { color: var(--ink-soft); }
.prose ul { padding-left: 1.2rem; color: var(--ink-soft); }
.prose code {
  padding: 0.12em 0.38em;
  background-color: var(--brass-wash);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 0.88em;
  color: #8f5a17;
}
.prose li + li { margin-top: 0.55rem; }
.prose ::marker { color: var(--brass); }

.split {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

@media (min-width: 940px) {
  .split { grid-template-columns: 1.35fr 0.65fr; }
  .split__aside { position: sticky; top: 110px; }
}

.aside-block + .aside-block { margin-top: 2rem; }

.aside-block__title {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  padding-bottom: 0.7rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.aside-block p { font-size: 0.95rem; color: var(--muted); }

.aside-list {
  list-style: none;
  padding: 0;
  font-size: 0.97rem;
}

.aside-list li + li { margin-top: 0.7rem; }

.aside-list a {
  color: var(--ink-soft);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.25s var(--ease), text-decoration-color 0.25s var(--ease);
}

.aside-list a:hover { color: var(--brass); text-decoration-color: var(--brass); }

.aside-figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--petrol) 0%, var(--petrol-deep) 100%);
  aspect-ratio: 4 / 3;
  margin-bottom: 1.6rem;
}

.aside-figure img { width: 100%; height: 100%; object-fit: cover; background: transparent; }

/* ==========================================================================
   Guides hub — outbound link list
   ========================================================================== */

.hub {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line-strong);
}

.hub__item { border-bottom: 1px solid var(--line); }

.hub__link {
  display: grid;
  gap: 0.4rem 1.6rem;
  padding-block: clamp(1.3rem, 2.6vw, 1.8rem);
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

@media (min-width: 800px) {
  .hub__link {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) auto;
    align-items: baseline;
  }
}

.hub__link:hover {
  padding-left: 0.7rem;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.72), transparent 72%);
  box-shadow: inset 3px 0 0 var(--sea);
}

.hub__title {
  font-family: var(--font-display);
  font-size: var(--step-md);
  font-weight: 600;
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}

.hub__link:hover .hub__title { color: var(--petrol-mid); }

.hub__desc { color: var(--muted); font-size: 0.97rem; }

.hub__meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hub__meta svg { width: 12px; height: 12px; flex: none; opacity: 0.6; }

.tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--muted);
}

.tag--placeholder {
  color: var(--brass);
  border-color: var(--brass);
  background-color: var(--brass-wash);
}

.tag--live { color: var(--sea); border-color: var(--sea); }

/* ==========================================================================
   Contact
   ========================================================================== */

.form {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  background-color: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.field { display: grid; gap: 0.45rem; }

.field label {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
}

.field input,
.field textarea,
.field select {
  padding: 0.8rem 0.9rem;
  background-color: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 0.98rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--sea);
  box-shadow: 0 0 0 3px rgba(47, 127, 140, 0.16);
}

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

.field--row { display: grid; gap: 1.15rem; }

@media (min-width: 640px) {
  .field--row { grid-template-columns: 1fr 1fr; }
}

.form__note {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  line-height: 1.7;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.contact-detail { border-top: 1px solid var(--line); padding-block: 1.1rem; }
.contact-detail dt {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.contact-detail dd { margin: 0; font-size: 1rem; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  color: rgba(255, 255, 255, 0.72);
  background-color: var(--petrol-deep);
  background-image:
    radial-gradient(80% 90% at 100% 0%, rgba(47, 127, 140, 0.32), transparent 60%),
    radial-gradient(60% 70% at 0% 100%, rgba(189, 124, 46, 0.16), transparent 62%);
  padding-top: clamp(3.2rem, 7vw, 5rem);
}

.site-footer__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

@media (min-width: 820px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}

.site-footer__brand-mark {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #fff;
  margin-bottom: 0.9rem;
}

.site-footer__brand-mark span { color: var(--brass-light); }

.site-footer__blurb {
  max-width: 40ch;
  font-size: 0.97rem;
  color: rgba(255, 255, 255, 0.62);
}

.site-footer h2 {
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1.1rem;
}

.site-footer ul { list-style: none; padding: 0; }
.site-footer li + li { margin-top: 0.65rem; }

.site-footer li a {
  font-size: 0.97rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid transparent;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.site-footer li a:hover { color: #fff; border-bottom-color: var(--brass-light); }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  justify-content: space-between;
  padding-block: 1.4rem;
  border-top: 1px solid var(--line-invert);
  font-family: var(--font-mono);
  font-size: var(--step-meta);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

/* ==========================================================================
   Scroll reveal + motion preferences
   ========================================================================== */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .hero__stage > *,
  .js .reveal { opacity: 1; transform: none; }
}
