/* =========================================================================
   HOPEC Petroleum — corporate stylesheet
   One file, no framework. Organised as: tokens, base, layout, components,
   page sections, responsive, motion.
   ========================================================================= */

/* ----------------------------------------------------------------- fonts */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/assets/fonts/manrope.woff2') format('woff2');
}

/* ---------------------------------------------------------------- tokens */
:root {
  /* Surfaces — navy carries the brand, ivory gives the page air. */
  --navy-900: #060f19;
  --navy-800: #0a1726;
  --navy-700: #102538;
  --navy-600: #16314a;
  --steel: #27456485;
  --ivory: #f6f3ee;
  --sand: #ebe5da;
  --white: #ffffff;

  /* Accent — used as hairlines and small marks, never as a flood. */
  --gold: #c8a86b;
  --gold-deep: #a8873f;
  --gold-soft: #e0cfa6;

  /* Text */
  --ink: #0a1726;
  --ink-muted: #5a6b7d;
  --ink-faint: #8a98a6;
  --on-dark: rgba(246, 243, 238, 0.74);
  --on-dark-faint: rgba(246, 243, 238, 0.48);

  /* Lines */
  --rule-light: rgba(10, 23, 38, 0.12);
  --rule-dark: rgba(246, 243, 238, 0.14);

  /* Type scale — fluid, tuned for a 1440px reference width. */
  --fs-display: clamp(2.6rem, 1.1rem + 4.6vw, 5.4rem);
  --fs-h1: clamp(2.2rem, 1.1rem + 3.4vw, 4.1rem);
  --fs-h2: clamp(1.9rem, 1.1rem + 2.4vw, 3.1rem);
  --fs-h3: clamp(1.35rem, 1.05rem + 0.9vw, 1.8rem);
  --fs-h4: clamp(1.1rem, 1rem + 0.35vw, 1.28rem);
  --fs-body: clamp(0.98rem, 0.94rem + 0.18vw, 1.07rem);
  --fs-lede: clamp(1.1rem, 1rem + 0.52vw, 1.4rem);
  --fs-small: 0.875rem;
  --fs-label: 0.72rem;

  /* Rhythm */
  --shell: 1320px;
  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 4rem);
  --section-y: clamp(4.5rem, 2.5rem + 7vw, 9.5rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --speed: 0.55s;
}

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

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

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

p {
  margin: 0 0 1.15em;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  padding: 0.85rem 1.4rem;
  background: var(--navy-800);
  color: var(--white);
  font-weight: 700;
  font-size: var(--fs-small);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 1rem;
}

.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;
}

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

.section {
  padding-block: var(--section-y);
}

.section--tight {
  padding-block: clamp(3rem, 1.8rem + 4vw, 6rem);
}

.section--dark {
  background: var(--navy-800);
  color: var(--on-dark);
}

.section--sand {
  background: var(--sand);
}

.section--ink {
  background: var(--navy-900);
  color: var(--on-dark);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
  color: var(--white);
}

/* Editorial two-column: a heading block beside a body block. */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  align-items: start;
}

.split--lead {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.grid {
  display: grid;
  gap: clamp(1.5rem, 0.8rem + 2vw, 2.75rem);
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ------------------------------------------------------------ typography */
.label {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.label::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  flex: none;
}

.section--dark .label,
.section--ink .label,
.hero .label {
  color: var(--gold);
}

.display {
  font-size: var(--fs-display);
  letter-spacing: -0.038em;
}

.h1 {
  font-size: var(--fs-h1);
}

.h2 {
  font-size: var(--fs-h2);
}

.h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

.h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.012em;
  line-height: 1.3;
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.5;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.muted {
  color: var(--ink-muted);
}

.section--dark .muted,
.section--ink .muted {
  color: var(--on-dark);
}

.measure {
  max-width: 62ch;
}

.measure--tight {
  max-width: 46ch;
}

.gold {
  color: var(--gold-deep);
}

.section--dark .gold,
.section--ink .gold,
.hero .gold {
  color: var(--gold);
}

/* ---------------------------------------------------------------- rules */
.rule {
  height: 1px;
  background: var(--rule-light);
  border: 0;
  margin: 0;
}

.section--dark .rule,
.section--ink .rule {
  background: var(--rule-dark);
}

/* --------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.6rem;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background var(--speed) var(--ease), color var(--speed) var(--ease),
    border-color var(--speed) var(--ease), transform 0.25s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn__arrow {
  width: 0.95em;
  height: 0.95em;
  flex: none;
  transition: transform var(--speed) var(--ease);
}

.btn:hover .btn__arrow {
  transform: translate(3px, -3px);
}

.btn--gold {
  background: var(--gold);
  color: var(--navy-900);
}

.btn--gold:hover {
  background: var(--gold-soft);
}

.btn--outline {
  border-color: var(--rule-light);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
}

.section--dark .btn--outline,
.section--ink .btn--outline,
.hero .btn--outline {
  border-color: rgba(246, 243, 238, 0.3);
  color: var(--white);
}

.section--dark .btn--outline:hover,
.section--ink .btn--outline:hover,
.hero .btn--outline:hover {
  border-color: var(--white);
  background: rgba(246, 243, 238, 0.07);
}

.btn--solid {
  background: var(--navy-800);
  color: var(--white);
}

.btn--solid:hover {
  background: var(--navy-700);
}

/* Inline text link with an underline that draws on hover. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding-bottom: 0.55rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--rule-light);
  transition: border-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.link:hover {
  border-color: var(--gold-deep);
  color: var(--gold-deep);
}

.link .btn__arrow {
  transition: transform var(--speed) var(--ease);
}

.link:hover .btn__arrow {
  transform: translate(3px, -3px);
}

.section--dark .link,
.section--ink .link {
  color: var(--white);
  border-color: var(--rule-dark);
}

.section--dark .link:hover,
.section--ink .link:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* ---------------------------------------------------------------- header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ivory);
  border-bottom: 1px solid var(--rule-light);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.header--over {
  background: transparent;
  border-color: transparent;
  color: var(--white);
}

.header--over .header__nav a {
  color: rgba(255, 255, 255, 0.82);
}

.header--over .header__nav a:hover,
.header--over .header__nav a[aria-current='page'] {
  color: var(--white);
}

.header--over .burger span {
  background: var(--white);
}

.header--scrolled {
  background: var(--ivory);
  border-color: var(--rule-light);
  color: var(--ink);
}

.header--scrolled .header__nav a {
  color: var(--ink-muted);
}

.header--scrolled .burger span {
  background: var(--ink);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  flex: none;
}

.brand__mark {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--gold-deep);
}

.header--over:not(.header--scrolled) .brand__mark {
  color: var(--gold);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
  line-height: 1;
}

.brand__name {
  font-size: 1.16rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.brand__sub {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.42em;
  color: var(--gold-deep);
}

.header--over:not(.header--scrolled) .brand__sub {
  color: var(--gold);
}

.header__nav {
  display: flex;
  align-items: center;
  gap: clamp(1.1rem, 0.3rem + 1.3vw, 2.1rem);
  margin-left: auto;
}

.header__nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  padding-block: 0.4rem;
  transition: color 0.3s var(--ease);
}

.header__nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: width 0.35s var(--ease);
}

.header__nav a:hover,
.header__nav a[aria-current='page'] {
  color: var(--ink);
}

.header__nav a:hover::after,
.header__nav a[aria-current='page']::after {
  width: 100%;
}

.header__cta {
  flex: none;
  padding: 0.75rem 1.25rem;
}

.header--over:not(.header--scrolled) .header__cta.btn--outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.35s var(--ease), opacity 0.2s var(--ease);
}

.burger[aria-expanded='true'] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.burger[aria-expanded='true'] span:nth-child(2) {
  opacity: 0;
}

.burger[aria-expanded='true'] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 7rem var(--gutter) 2.5rem;
  background: var(--navy-800);
  color: var(--white);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.5s var(--ease), visibility 0.5s;
  overflow-y: auto;
}

.drawer[data-open='true'] {
  transform: translateY(0);
  visibility: visible;
}

.drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-dark);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.drawer a .btn__arrow {
  color: var(--gold);
  opacity: 0.6;
}

.drawer__foot {
  margin-top: auto;
  padding-top: 2.5rem;
  font-size: var(--fs-small);
  color: var(--on-dark-faint);
}

/* ------------------------------------------------------------------ hero */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(92vh, 940px);
  margin-top: -84px;
  padding-top: 84px;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero--inner {
  min-height: min(68vh, 680px);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}

/* Two stacked gradients: one anchors the text, one keeps the navy identity. */
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 25, 0.96) 0%, rgba(6, 15, 25, 0.72) 38%, rgba(6, 15, 25, 0.42) 70%, rgba(6, 15, 25, 0.58) 100%),
    linear-gradient(to right, rgba(10, 23, 38, 0.85) 0%, rgba(10, 23, 38, 0.25) 60%, transparent 100%);
}

.hero__body {
  position: relative;
  width: 100%;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem);
}

.hero__title {
  max-width: 17ch;
  color: var(--white);
}

.hero__lede {
  max-width: 48ch;
  margin-top: 1.75rem;
  color: rgba(255, 255, 255, 0.78);
}

.hero__actions {
  margin-top: clamp(2rem, 1.2rem + 2vw, 3rem);
}

.hero__foot {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

/* Decorative seal watermark behind the hero copy. */
.hero__seal {
  position: absolute;
  right: -6%;
  top: 50%;
  width: min(46vw, 560px);
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

/* --------------------------------------------------------------- figures */
.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule-light);
  border-bottom: 1px solid var(--rule-light);
}

.figure {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.5rem) clamp(1rem, 0.4rem + 1.6vw, 2.25rem);
  border-left: 1px solid var(--rule-light);
}

.figure:first-child {
  border-left: 0;
  padding-left: 0;
}

.figure__value {
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  flex: none;
}

.figure__label {
  font-size: var(--fs-small);
  color: var(--ink-muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------- sector card */
.sector {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(300px, 26vw, 420px);
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.5rem);
  background: var(--navy-800);
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.sector__media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.sector__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.sector:hover .sector__media img {
  transform: scale(1.055);
}

.sector__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 15, 25, 0.94) 10%, rgba(6, 15, 25, 0.58) 52%, rgba(6, 15, 25, 0.3) 100%);
}

.sector__index {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.sector__title {
  color: var(--white);
  max-width: 14ch;
}

.sector__items {
  margin-top: 1rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.66);
}

.sector__cta {
  margin-top: 1.6rem;
}

/* -------------------------------------------------------- product listing */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}

.filter {
  padding: 0.6rem 1.15rem;
  background: transparent;
  border: 1px solid var(--rule-light);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.filter:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter[aria-pressed='true'] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.product-list {
  border-top: 1px solid var(--rule-light);
}

.product-row {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1.1fr) minmax(0, 1.5fr) auto;
  gap: clamp(1rem, 0.5rem + 1.6vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 1rem + 1.2vw, 2.4rem) 0;
  border-bottom: 1px solid var(--rule-light);
  transition: background 0.4s var(--ease), padding-inline 0.4s var(--ease);
}

.product-row:hover {
  background: rgba(10, 23, 38, 0.028);
  padding-inline: clamp(0.5rem, 1vw, 1.25rem);
}

.product-row[hidden] {
  display: none;
}

.product-row__index {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
}

.product-row__sector {
  display: block;
  margin-top: 0.4rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.product-row__summary {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.product-row__go {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule-light);
  border-radius: 50%;
  color: var(--ink);
  transition: all 0.4s var(--ease);
}

.product-row:hover .product-row__go {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.product-row__go svg {
  width: 15px;
  height: 15px;
}

/* ---------------------------------------------------------------- panels */
.panel {
  padding: clamp(1.6rem, 1rem + 1.6vw, 2.6rem);
  background: var(--white);
  border: 1px solid var(--rule-light);
}

.section--dark .panel,
.section--ink .panel {
  background: rgba(246, 243, 238, 0.045);
  border-color: var(--rule-dark);
}

.panel__index {
  display: block;
  margin-bottom: 1.1rem;
  font-size: var(--fs-small);
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold-deep);
}

.section--dark .panel__index,
.section--ink .panel__index {
  color: var(--gold);
}

.panel__body {
  margin-top: 0.85rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.section--dark .panel__body,
.section--ink .panel__body {
  color: var(--on-dark);
}

/* Numbered process steps */
.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-light);
}

.section--dark .steps {
  border-color: var(--rule-dark);
}

.step {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1rem, 0.5rem + 1.5vw, 3rem);
  padding: clamp(1.6rem, 1rem + 1.4vw, 2.6rem) 0;
  border-bottom: 1px solid var(--rule-light);
}

.section--dark .step {
  border-color: var(--rule-dark);
}

.step__num {
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.1rem);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--gold-deep);
}

.section--dark .step__num {
  color: var(--gold);
}

.step__body {
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.section--dark .step__body {
  color: var(--on-dark);
}

/* Bulleted detail lists */
.ticks li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.7rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.ticks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  background: var(--gold-deep);
  transform: rotate(45deg);
}

.section--dark .ticks li,
.section--ink .ticks li {
  color: var(--on-dark);
}

.section--dark .ticks li::before,
.section--ink .ticks li::before {
  background: var(--gold);
}

/* Callout for qualifications and caveats */
.note {
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--gold-deep);
  background: rgba(200, 168, 107, 0.09);
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.section--dark .note,
.section--ink .note {
  color: var(--on-dark);
  background: rgba(200, 168, 107, 0.09);
  border-color: var(--gold);
}

/* -------------------------------------------------------------- page top */
.pagehead {
  position: relative;
  padding-block: clamp(3.5rem, 2rem + 6vw, 7rem) clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  background: var(--navy-800);
  color: var(--on-dark);
  margin-top: -84px;
  padding-top: calc(84px + clamp(3.5rem, 2rem + 6vw, 7rem));
  overflow: hidden;
  isolation: isolate;
}

.pagehead__seal {
  position: absolute;
  right: -4%;
  top: 44%;
  width: min(38vw, 420px);
  transform: translateY(-50%);
  color: var(--white);
  opacity: 0.045;
  z-index: -1;
  pointer-events: none;
}

.pagehead h1 {
  color: var(--white);
  max-width: 18ch;
}

.pagehead__lede {
  max-width: 54ch;
  margin-top: 1.5rem;
  color: rgba(255, 255, 255, 0.74);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.6rem;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
}

.crumbs a:hover {
  color: var(--gold);
}

.crumbs span[aria-hidden] {
  opacity: 0.45;
}

/* ------------------------------------------------------------------- map */
.map {
  position: relative;
  background: var(--navy-700);
  border: 1px solid var(--rule-dark);
}

/* The land mass is a cached standalone SVG; pins and arcs sit in an overlay
   that shares its viewBox, so the two always register exactly. */
.map__frame {
  position: relative;
}

.map__land-img {
  width: 100%;
  height: auto;
}

.map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.map__land {
  fill: #1d354d;
}

.map__arc {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.9;
  opacity: 0.4;
  stroke-dasharray: 3 4;
}

.map__pin {
  cursor: pointer;
}

.map__pin circle {
  transition: r 0.35s var(--ease), fill 0.35s var(--ease);
}

.map__dot {
  fill: var(--gold);
  r: 4.5;
}

.map__halo {
  fill: var(--gold);
  opacity: 0.18;
  r: 10;
  transition: opacity 0.35s var(--ease), r 0.35s var(--ease);
}

.map__pin:hover .map__halo,
.map__pin[data-active='true'] .map__halo {
  opacity: 0.4;
  r: 15;
}

.map__pin[data-active='true'] .map__dot {
  fill: var(--white);
}

.map__pin--home .map__dot {
  fill: var(--white);
  r: 5.5;
}

.map__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark-faint);
}

.market-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.market-chip {
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid var(--rule-dark);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--on-dark);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}

.market-chip:hover {
  border-color: var(--gold);
  color: var(--white);
}

.market-chip[aria-pressed='true'] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy-900);
}

.market-detail {
  padding: clamp(1.5rem, 1rem + 1.4vw, 2.25rem);
  border: 1px solid var(--rule-dark);
  background: rgba(246, 243, 238, 0.045);
  min-height: 100%;
}

.market-detail__role {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.market-detail__name {
  margin: 0.7rem 0 1rem;
  color: var(--white);
}

/* ----------------------------------------------------------------- forms */
.form {
  display: grid;
  gap: 1.35rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.field--half {
  grid-column: span 1;
}

.form__row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.field label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.field .req {
  color: var(--gold-deep);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.95rem 1.05rem;
  background: var(--white);
  border: 1px solid var(--rule-light);
  border-radius: 0;
  font-family: inherit;
  font-size: var(--fs-body);
  color: var(--ink);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%235a6b7d' stroke-width='1.5'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  background-size: 12px;
  padding-right: 2.6rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(200, 168, 107, 0.18);
}

.field__error {
  font-size: var(--fs-small);
  font-weight: 600;
  color: #b3261e;
  text-transform: none;
  letter-spacing: 0;
}

.field[data-invalid='true'] input,
.field[data-invalid='true'] select,
.field[data-invalid='true'] textarea {
  border-color: #b3261e;
}

.form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: var(--fs-small);
  color: var(--ink-muted);
}

.form__consent input {
  width: 18px;
  height: 18px;
  margin-top: 0.22rem;
  flex: none;
  accent-color: var(--gold-deep);
}

.form__status {
  padding: 1rem 1.25rem;
  font-size: var(--fs-small);
  font-weight: 600;
  border-left: 2px solid var(--gold-deep);
  background: rgba(200, 168, 107, 0.12);
}

.form__status[data-tone='error'] {
  border-color: #b3261e;
  background: rgba(179, 38, 30, 0.08);
  color: #8c1d18;
}

.form__status[data-tone='success'] {
  border-color: #1f6b43;
  background: rgba(31, 107, 67, 0.09);
  color: #11502f;
}

/* Honeypot — hidden from people, visible to naive bots. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --------------------------------------------------------- contact index */
.contact-item {
  padding-block: 1.5rem;
  border-bottom: 1px solid var(--rule-light);
}

.contact-item:first-child {
  border-top: 1px solid var(--rule-light);
}

.contact-item__label {
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.5rem;
}

.contact-item__value {
  font-size: var(--fs-h4);
  font-weight: 700;
  letter-spacing: -0.015em;
}

.contact-item__value a:hover {
  color: var(--gold-deep);
}

/* A business detail that has not been filled in yet. */
.pending {
  font-weight: 600;
  color: var(--ink-faint);
  border-bottom: 1px dashed var(--ink-faint);
  font-size: var(--fs-body);
}

.section--dark .pending,
.section--ink .pending,
.footer .pending {
  color: var(--on-dark-faint);
  border-color: var(--on-dark-faint);
}

/* ---------------------------------------------------------------- footer */
.footer {
  background: var(--navy-900);
  color: var(--on-dark);
  padding-block: clamp(3.5rem, 2rem + 4vw, 6rem) 0;
}

.footer h2,
.footer h3 {
  color: var(--white);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
}

.footer__brand .brand__mark {
  color: var(--gold);
}

.footer__tag {
  margin-top: 1.5rem;
  max-width: 30ch;
  font-size: var(--fs-small);
  color: var(--on-dark-faint);
}

.footer__col h3 {
  margin-bottom: 1.4rem;
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer__col li {
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
}

.footer__col a {
  color: var(--on-dark);
  transition: color 0.3s var(--ease);
}

.footer__col a:hover {
  color: var(--white);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.75rem;
  border-top: 1px solid var(--rule-dark);
  font-size: var(--fs-small);
  color: var(--on-dark-faint);
}

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer__legal a:hover {
  color: var(--white);
}

.social {
  display: flex;
  gap: 0.6rem;
}

.social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--rule-dark);
  border-radius: 50%;
  transition: all 0.3s var(--ease);
}

.social a:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.social svg {
  width: 16px;
  height: 16px;
}

/* ---------------------------------------------------------------- CTA bar */
.cta {
  background: var(--sand);
}

.cta__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  padding-block: clamp(3rem, 2rem + 3vw, 5rem);
}

.cta__text {
  max-width: 34ch;
}

/* ------------------------------------------------------------- utilities */
.stack > * + * {
  margin-top: var(--stack, 1.5rem);
}

.mt-s {
  margin-top: 1rem;
}

.mt-m {
  margin-top: 2rem;
}

.mt-l {
  margin-top: clamp(2.5rem, 1.5rem + 2.5vw, 4rem);
}

.nowrap {
  white-space: nowrap;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 1080px) {
  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-row {
    grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  }

  .product-row__summary {
    display: none;
  }

  .step {
    grid-template-columns: 4rem minmax(0, 1fr);
  }

  .step__body {
    grid-column: 2;
  }
}

@media (max-width: 900px) {
  .header__nav,
  .header__cta {
    display: none;
  }

  .burger {
    display: flex;
  }

  .split,
  .split--lead,
  .grid--2,
  .grid--3,
  .grid--4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .figures {
    grid-template-columns: minmax(0, 1fr);
  }

  .figure {
    border-left: 0;
    border-top: 1px solid var(--rule-light);
    padding-left: 0;
  }

  .figure:first-child {
    border-top: 0;
  }

  .form__row {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__seal,
  .pagehead__seal {
    display: none;
  }

  .hero__foot {
    justify-content: center;
    text-align: center;
  }

  .hero__foot span:last-child {
    display: none;
  }
}

@media (max-width: 600px) {
  .header__inner {
    height: 72px;
  }

  .hero,
  .pagehead {
    margin-top: -72px;
  }

  .hero {
    padding-top: 72px;
  }

  .pagehead {
    padding-top: calc(72px + 3.5rem);
  }

  .drawer {
    padding-top: 6rem;
  }

  .product-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
  }

  .product-row__index {
    display: none;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn {
    width: 100%;
    justify-content: space-between;
  }

  .btn-row {
    width: 100%;
  }
}

/* ----------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}

.reveal[data-shown='true'] {
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealed group. */
.reveal-group > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-group[data-shown='true'] > * {
  opacity: 1;
  transform: none;
}

.reveal-group[data-shown='true'] > *:nth-child(2) {
  transition-delay: 0.09s;
}

.reveal-group[data-shown='true'] > *:nth-child(3) {
  transition-delay: 0.18s;
}

.reveal-group[data-shown='true'] > *:nth-child(4) {
  transition-delay: 0.27s;
}

.reveal-group[data-shown='true'] > *:nth-child(5) {
  transition-delay: 0.36s;
}

.reveal-group[data-shown='true'] > *:nth-child(6) {
  transition-delay: 0.45s;
}

.reveal-group[data-shown='true'] > *:nth-child(7) {
  transition-delay: 0.54s;
}

/* Grids on the markets and products pages run to nine and twelve items, so
   the stagger has to reach that far or the tail snaps in with no delay. */
.reveal-group[data-shown='true'] > *:nth-child(8) {
  transition-delay: 0.63s;
}

.reveal-group[data-shown='true'] > *:nth-child(9) {
  transition-delay: 0.72s;
}

.reveal-group[data-shown='true'] > *:nth-child(n + 10) {
  transition-delay: 0.8s;
}

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

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

  .reveal,
  .reveal-group > * {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------------ print */
@media print {
  .header,
  .drawer,
  .cta,
  .hero__foot,
  .btn,
  .filters {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .section--dark,
  .section--ink,
  .footer,
  .pagehead {
    background: #fff !important;
    color: #000 !important;
  }
}
