/* ============================================================
   ICONS — base first, so the single-class modifiers below
   (.stat__icon, .bento__icon, .contact-row__icon, …) win the
   specificity tie against it rather than losing to it.
   ============================================================ */
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 54px;
  padding: var(--space-3) var(--space-5);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  overflow: hidden;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon {
  transform: translateX(3px);
}

.btn--primary {
  background-color: var(--c-orange);
  color: #ffffff;
}

.btn--primary:hover {
  background-color: var(--c-orange-2);
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(248, 129, 32, 0.35);
}

.btn--secondary {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: var(--c-invert-line);
  color: var(--c-invert);
  backdrop-filter: blur(6px);
}

.btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  background-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--c-line-2);
  color: var(--c-navy);
}

.btn--outline:hover {
  border-color: var(--c-navy);
  background-color: var(--c-navy);
  color: var(--c-invert);
  transform: translateY(-2px);
}

.btn--invert {
  background-color: var(--c-orange);
  color: #ffffff;
}

.btn--invert:hover {
  background-color: var(--c-orange-2);
  transform: translateY(-2px);
}

/* On the orange CTA band, the button inverts to navy */
.btn--onaccent {
  background-color: #ffffff;
  color: #a94f06;
}

.btn--onaccent:hover {
  background-color: #ffffff;
  color: #7d3a04;
  transform: translateY(-2px);
}

.btn--sm {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
}

/* Pill with a disc pushed into its right end — the CTA shape the reference
   heroes use, instead of a flat label with a loose arrow beside it. */
.btn--badge {
  padding: 6px 6px 6px var(--space-5);
  gap: var(--space-5);
}

.btn__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--c-orange);
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease),
    transform 0.3s var(--ease);
}

.btn__badge .icon {
  width: 18px;
  height: 18px;
}

/* Arrow drawn as a mask, not inline SVG: Live Server injects its reload
   snippet before every </svg> in a served file, which corrupts a fetched
   partial (and truncates it outright once there is more than one). */
.btn__badge--arrow::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M7%2017l10%20-10%27/%3E%3Cpath%20d=%27M9%207h8v8%27/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%20fill=%27none%27%20stroke=%27%23000%27%20stroke-width=%272%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27%3E%3Cpath%20d=%27M7%2017l10%20-10%27/%3E%3Cpath%20d=%27M9%207h8v8%27/%3E%3C/svg%3E") center / contain no-repeat;
}

.btn--badge:hover .btn__badge {
  transform: rotate(45deg);
}

.btn--badge:hover .icon {
  transform: none;
}

/* Outlined companion to the badge CTA */
.btn--ghost {
  min-height: 56px;
  padding-inline: var(--space-6);
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--c-invert);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-2px);
}

.btn--ghost .btn__badge {
  background-color: rgba(255, 255, 255, 0.14);
  color: var(--c-invert);
}

.btn--ghost:hover .btn__badge {
  background-color: var(--c-orange);
  color: #ffffff;
}

.btn--ghost.btn--badge:hover .btn__badge {
  transform: none;
}

/* Circular arrow affordance, as on the reference cards */
.btn-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--c-orange);
  color: #ffffff;
  transition: transform 0.3s var(--ease), background-color 0.25s var(--ease);
}

.btn-circle .icon {
  width: 20px;
  height: 20px;
}

.btn-circle:hover {
  background-color: var(--c-navy);
  transform: rotate(-45deg);
}

/* ============================================================
   CARDS
   ============================================================ */
/* Two-up, so each plate can carry a photograph at a size worth looking at
   rather than a 300px thumbnail. */
.products {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

.card {
  --mx: 50%;
  --my: 50%;
  position: relative;
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--c-orange);
  transition: width 0.4s var(--ease);
  z-index: 2;
}

.card:hover {
  border-color: transparent;
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.card:hover::before {
  width: 100%;
}

/* Cursor-following sheen */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(240px circle at var(--mx) var(--my),
    rgba(248, 129, 32, 0.10), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.card:hover::after {
  opacity: 1;
}

.card--surface {
  background-color: var(--c-surface);
}

.card__title {
  font-size: var(--font-size-lg);
  letter-spacing: -0.02em;
}

.card__text {
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--c-muted);
}

/* The grades a buyer asks for, set as a spec table: name on the left,
   the figure that matters on the right, on hairlines. */
.card__specs {
  margin-top: auto;
  padding-top: var(--space-2);
}

@media (min-width: 1101px) {
  .card__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .spec + .spec {
    border-top: none;
    border-left: 1px solid var(--c-line);
    padding-left: var(--space-4);
    margin-left: var(--space-4);
  }
}

.spec {
  /* Stacked, not two columns: in a four-up grid the column is too narrow
     for name and figure to share a line without both wrapping. */
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: var(--space-3) 0;
}

.spec + .spec {
  border-top: 1px solid var(--c-line);
}

.spec__name {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--c-ink);
}

.spec__value {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.02em;
  color: var(--c-muted);
}

/* ---- Product card media: label sits on the image, ref-style ---- */
.card__media {
  position: relative;
  margin: calc(var(--space-5) * -1) calc(var(--space-5) * -1) var(--space-3);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--c-surface-2);
}

.card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(3, 24, 71, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}

.card:hover .card__media::after {
  opacity: 1;
}

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

.card:hover .card__media img {
  transform: scale(1.06);
}

.card__index {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background-color: rgba(3, 24, 71, 0.72);
  backdrop-filter: blur(8px);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-invert);
}

.card__index .icon {
  width: 14px;
  height: 14px;
  color: var(--c-orange);
}

/* ============================================================
   STATS BAND
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  background-color: var(--c-bg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-5);
  border-bottom: 1px solid var(--c-line);
  transition: background-color 0.3s var(--ease);
}

.stat:last-child {
  border-bottom: none;
}

.stat:hover {
  background-color: var(--c-surface);
}

.stat__icon {
  width: 26px;
  height: 26px;
  color: var(--c-orange);
  margin-bottom: var(--space-3);
}

.stat__value {
  font-family: var(--font-display);
  font-size: var(--font-size-2xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--c-navy);
}

.stat__value em {
  font-style: normal;
  color: var(--c-orange);
}

.stat__label {
  font-size: var(--font-size-sm);
  line-height: 1.5;
  color: var(--c-muted);
  margin-top: var(--space-2);
}

@media (min-width: 560px) {
  .stat {
    border-right: 1px solid var(--c-line);
  }

  .stat:nth-child(2n) {
    border-right: none;
  }

  .stat:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .stat {
    border-bottom: none;
    border-right: 1px solid var(--c-line);
  }

  .stat:nth-child(2n) {
    border-right: 1px solid var(--c-line);
  }

  .stat:last-child {
    border-right: none;
  }
}

/* ============================================================
   FORM
   ============================================================ */
.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.field__input,
.field__select,
.field__textarea {
  width: 100%;
  min-height: 52px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-md);
  background-color: var(--c-bg);
  color: var(--c-ink);
  font-size: var(--font-size-base);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
    background-color 0.2s var(--ease);
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  border-color: var(--c-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(248, 129, 32, 0.18);
}

.field__textarea {
  min-height: 132px;
  resize: vertical;
}

.field__input::placeholder,
.field__textarea::placeholder {
  color: var(--c-muted);
}

.form {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.field--full {
  grid-column: 1 / -1;
}

.field__wrap {
  position: relative;
}

.field__select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: var(--space-6);
}

.field__chevron {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--c-orange);
  pointer-events: none;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-5);
  border-top: 1px solid var(--c-invert-line);
}

.form__note {
  font-size: var(--font-size-xs);
  color: var(--c-muted);
  max-width: 34ch;
}

/* ---- Form alerts / flash messages ---- */
.form-alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  line-height: 1.55;
  margin-bottom: var(--space-4);
}

.form-alert--success {
  background-color: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #047857;
}

.form-alert--danger {
  background-color: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #b91c1c;
}

.form-alert__icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 1px;
}

.form-alert--success .form-alert__icon {
  color: #10b981;
}

.form-alert--danger .form-alert__icon {
  color: #ef4444;
}

.form-alert__body {
  flex: 1;
  min-width: 0;
}

.form-alert__title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.form-alert__list {
  margin: var(--space-2) 0 0 var(--space-4);
  padding: 0;
}

.form-alert__list li {
  list-style: disc;
  margin-bottom: 2px;
}

/* ---- Form success state ---- */
.form.form-success {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.form-success__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--space-6);
  max-width: 380px;
}

.form-success__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.12);
  color: #10b981;
  margin-bottom: var(--space-5);
  animation: successPop 0.4s var(--ease);
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.form-success__icon svg {
  width: 36px;
  height: 36px;
}

.form-success__title {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--c-navy);
  margin-bottom: var(--space-3);
}

.form-success__text {
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--c-muted);
}

/* The request form reads as a card standing on the page, light or dark */
.form--card {
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  container-type: inline-size;
}

.form--card .field__input,
.form--card .field__select,
.form--card .field__textarea {
  background-color: var(--c-surface);
}

.form--card .field__input:focus,
.form--card .field__select:focus,
.form--card .field__textarea:focus {
  background-color: var(--c-bg);
}

.form--card .field__label {
  color: var(--c-muted);
}

/* Two fields a row only once the card itself is wide enough. A 560px
   viewport rule put them side by side inside the narrow contact column
   and clipped the placeholders. */
@container (min-width: 500px) {
  .form__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ============================================================
   CONTACT PANEL

   Was a stack of hairline rows with outlined icon boxes, which read as a
   generic settings list and left the column half empty against the form.
   Now an asymmetric tile grid — the same device the stats band uses.
   ============================================================ */
.contact-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-content: start;
}

/* The number the desk actually wants used leads the column and carries the
   accent; everything else is a quiet list underneath it. The old tile grid
   left half the column empty next to the form. */
.contact-cta {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--c-orange-2);
  color: #ffffff;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact-cta:hover {
  background-color: #c96208;
  transform: translateY(-3px);
}

.contact-cta__icon {
  width: 28px;
  height: 28px;
  color: #ffffff;
  flex: 0 0 auto;
}

.contact-cta__text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  min-width: 0;
}

.contact-cta__arrow {
  width: 20px;
  height: 20px;
  margin-left: auto;
  color: #ffffff;
  opacity: 0.8;
  flex: 0 0 auto;
}

.contact-cta__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.9;
}

.contact-cta__value {
  font-family: var(--font-display);
  font-size: var(--font-size-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* One card, hairline-divided rows — the facts are reference material, so
   they read as a list rather than as four competing panels. */
.contact-list {
  border-radius: var(--radius-lg);
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  overflow: hidden;
}

.contact-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
}

.contact-row + .contact-row {
  border-top: 1px solid var(--c-line);
}

.contact-row__icon {
  width: 22px;
  height: 22px;
  color: var(--c-orange);
  flex: 0 0 auto;
  margin-top: 2px;
}

.contact-row__body {
  min-width: 0;
}

.contact-row__label {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}

.contact-row__value {
  font-size: var(--font-size-base);
  line-height: 1.55;
  overflow-wrap: break-word;
}

.contact-row__value,
.contact-row__value a {
  color: var(--c-ink);
}

.contact-row__value a {
  transition: color 0.2s var(--ease);
}

.contact-row__value a:hover {
  color: var(--c-orange);
}

/* ============================================================
   PROSE / PULL QUOTE
   ============================================================ */

/* Both paragraphs run at one size. The opening one is separated by colour
   and weight, not by a second type size — two sizes in a four-line column
   just read as inconsistent. */
.prose p {
  font-size: var(--font-size-md);
  line-height: 1.65;
  max-width: 62ch;
}

.prose .lead-para {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.55;
  color: var(--c-navy);
  letter-spacing: -0.012em;
}

.prose .lead-para strong {
  font-weight: 700;
}

/* ============================================================
   FIGURES
   ============================================================ */
.figure {
  margin: 0;
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--c-surface-2);
}

.figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* An explicit height: height:100% against an auto-height grid row collapses
   to auto, and the 800x1000 source then dictated a 588px row. */
.figure--tall {
  height: clamp(400px, 34vw, 520px);
}

/* Caption plate floating on the image, as in the reference hero cards */
.figure__plate {
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.figure__plate .icon {
  width: 26px;
  height: 26px;
  color: var(--c-orange);
}

.figure__plate-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.figure__plate-value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.25;
}

.figure__plate-note {
  display: block;
  font-size: var(--font-size-sm);
  line-height: 1.4;
  color: var(--c-muted);
}

/* ============================================================
   MARQUEE (partners)
   ============================================================ */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--c-line);
  padding-block: var(--space-5);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: var(--space-7);
  width: max-content;
  animation: marquee 48s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--c-steel);
  white-space: nowrap;
  transition: color 0.25s var(--ease);
}

.marquee__item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--c-line-2);
  flex: 0 0 auto;
  transition: background-color 0.25s var(--ease);
}

.marquee__item:hover {
  color: var(--c-navy);
}

.marquee__item:hover::before {
  background-color: var(--c-orange);
}

@keyframes marquee {
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
  }

  .marquee__track,
  .hero__seal-ring {
    animation: none;
  }
}

/* ============================================================
   BENTO — core activities
   ============================================================ */
/* ============================================================
   TRADING LINES (What We Do)

   Four business lines are a list a desk reads down, not four boxes: each
   row carries its own hairline, and the whole thing is one ledger. The
   right-hand link is the row's action, so hover picks up the entire row.
   ============================================================ */
.lines {
  border-top: 1px solid var(--c-line-2);
}

.line {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "thumb head"
    "text  text";
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--c-line-2);
  transition: background-color 0.3s var(--ease), padding 0.3s var(--ease);
}

/* The rule that fills as you land on a row — one orange line, growing from
   the left edge, standing in for the marker the old tiles used. */
.line::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 1px;
  width: 0;
  background-color: var(--c-orange);
  transition: width 0.45s var(--ease);
}

.line:hover::before,
.line:focus-within::before {
  width: 100%;
}

.line__thumb {
  grid-area: thumb;
  position: relative;
  display: block;
  width: 132px;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--c-navy);
  flex: 0 0 auto;
}

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

.line:hover .line__thumb img {
  transform: scale(1.07);
}

/* The commodity mark rides the corner of its own photograph */
.line__badge {
  position: absolute;
  left: 8px;
  top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: rgba(3, 24, 71, 0.72);
  backdrop-filter: blur(6px);
  color: var(--c-orange);
}

.line__badge .icon {
  width: 16px;
  height: 16px;
}

.line__head {
  grid-area: head;
}

.line__title {
  font-size: var(--font-size-xl);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.line__meta {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-muted);
}

.line__text {
  grid-area: text;
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 62ch;
}

/* ============================================================
   COMPLIANCE CERTIFICATES

   Policy copy reads best as paperwork: three plates, each with its seal,
   its clause number and the stamp line naming what is actually checked.
   ============================================================ */
.certs {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

.certs__statement {
  margin-top: var(--space-5);
  padding-left: var(--space-4);
  border-left: 2px solid var(--c-orange);
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  line-height: 1.5;
  color: var(--c-ink);
}

.certs__photo {
  height: clamp(380px, 52vw, 520px);
  margin-top: var(--space-6);
}

.certs__photo img {
  object-position: center 42%;
}

.certs__list {
  display: grid;
  grid-template-columns: 1fr;
  /* The seal overhangs the plate, so the stack needs room between plates */
  gap: var(--space-6);
}

.cert {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  background-color: var(--c-bg);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.cert:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

/* The seal sits on the plate's edge, the way a stamp lands on a document */
.cert__seal {
  position: absolute;
  top: calc(var(--space-5) * -1 + 6px);
  right: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--c-bg);
  border: 2px solid var(--c-orange);
  color: var(--c-orange);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.cert__seal .icon {
  width: 24px;
  height: 24px;
}

.cert:hover .cert__seal {
  background-color: var(--c-orange);
  color: #ffffff;
}

.cert__index {
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: var(--space-2);
}

.cert__title {
  font-size: var(--font-size-lg);
  letter-spacing: -0.01em;
  max-width: 24ch;
  margin-bottom: var(--space-3);
}

.cert__text {
  font-size: var(--font-size-base);
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 62ch;
}

.cert__stamp {
  margin-top: var(--space-4);
  padding-top: var(--space-3);
  border-top: 1px dashed var(--c-line-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.1em;
  line-height: 1.6;
  color: var(--c-ink-2);
}

/* ============================================================
   PROOF PANELS (Why Ardena)

   Five claims held on frosted panels over the berth the cargo leaves
   from — three across, then two wide, so the row breaks deliberately
   instead of leaving an orphan.
   ============================================================ */
.proof {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

.proof__item {
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--c-invert-line);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.proof__item:hover {
  background-color: rgba(255, 255, 255, 0.13);
  border-color: rgba(248, 129, 32, 0.55);
  transform: translateY(-4px);
}

.proof__glyph {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: 50%;
  border: 1px solid var(--c-invert-line);
  color: var(--c-orange);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease),
    border-color 0.3s var(--ease);
}

.proof__glyph .icon {
  width: 22px;
  height: 22px;
}

.proof__item:hover .proof__glyph {
  background-color: var(--c-orange);
  border-color: var(--c-orange);
  color: #ffffff;
}

.proof__title {
  font-size: var(--font-size-lg);
  letter-spacing: -0.01em;
  color: var(--c-invert);
  margin-bottom: var(--space-3);
}

.proof__text {
  font-size: var(--font-size-sm);
  line-height: 1.65;
  color: var(--c-invert-70);
}

.process {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  counter-reset: step;
}

.logistics__photo {
  height: clamp(260px, 28vw, 380px);
}

.logistics__photo img {
  object-position: center 68%;
}

.logistics__photo .figure__plate {
  top: var(--space-4);
  right: auto;
  bottom: auto;
  width: calc(100% - (var(--space-4) * 2));
  max-width: 540px;
}

.process__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.process__step:hover {
  background-color: var(--c-bg);
  border-color: rgba(248, 129, 32, 0.5);
  transform: translateY(-4px);
}

.process__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--c-line-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-sm);
  color: var(--c-orange);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}

.process__step:hover .process__num {
  background-color: var(--c-orange);
  color: #ffffff;
}

.process__name {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--font-size-md);
  font-weight: 600;
  color: var(--c-ink);
}

.process__name .icon {
  width: 20px;
  height: 20px;
  color: var(--c-orange);
}

.process__note {
  font-size: var(--font-size-sm);
  line-height: 1.6;
  color: var(--c-muted);
}

/* ============================================================
   ROUTE — the supply chain drawn as the run it is
   ============================================================ */
.logistics__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* ============================================================
   SUPPLY MAP

   A schematic of the corridor rather than a traced coastline: origins,
   the two export ports, and the sea legs out of them. It sits on a navy
   plate so the lanes carry — the old white card on a white band left the
   whole thing invisible.
   ============================================================ */
.map {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background-color: var(--c-bg);
  border: 1px solid var(--c-line);
  box-shadow: var(--shadow-lg);
}

/* The vector schematic needs the dark plate; the supplied map brings its
   own light ground and its own legend. */
.map--fallback {
  background-color: var(--c-navy);
  border-color: transparent;
}

.map:not(.map--fallback) .map__legend {
  display: none;
}

/* The supplied raster map leads; the schematic is the safety net. */
.map__photo {
  display: block;
  width: 100%;
  height: auto;
}

.map--fallback .map__photo {
  display: none;
}

.map:not(.map--fallback) .map__svg {
  display: none;
}

.map__svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 720px;
}

/* The map is wider than a phone; it scrolls inside its own plate. */
.map {
  overflow-x: auto;
}

.map__grid line {
  stroke: rgba(255, 255, 255, 0.06);
  stroke-width: 1;
}

.map__rail {
  fill: none;
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 2;
  stroke-dasharray: 2 7;
  stroke-linecap: round;
}

.map__rail--alloy {
  stroke: rgba(127, 212, 232, 0.5);
}

.map__lane {
  fill: none;
  stroke: var(--c-orange);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 1.6s var(--ease);
}

.is-revealed .map__lane {
  stroke-dashoffset: 0;
}

.map__lane--alloy {
  stroke: #7FD4E8;
}

.map__dot {
  fill: var(--c-orange);
}

.map__node--alloy .map__dot {
  fill: #7FD4E8;
}

.map__node--port .map__dot {
  fill: #ffffff;
}

.map__dot--end {
  fill: none;
  stroke: var(--c-orange);
  stroke-width: 2.5;
}

.map__ring {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 1.5;
}

.map__label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 1.4px;
  fill: rgba(255, 255, 255, 0.78);
}

.map__label--port {
  font-size: 14px;
  fill: #ffffff;
}

.map__sub,
.map__leg {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1.4px;
  fill: rgba(255, 255, 255, 0.45);
}

.map__legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--c-invert-line);
}

.map__key {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--font-size-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-invert-70);
}

.map__swatch {
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--c-orange);
}

.map__swatch--alloy {
  background-color: #7FD4E8;
}

.map__swatch--rail {
  height: 0;
  border-top: 2px dashed rgba(255, 255, 255, 0.5);
  background: none;
}

@media (prefers-reduced-motion: reduce) {
  .map__lane {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta {
  position: relative;
  /* Deepened from flat --c-orange so white type clears contrast on it —
     the band used to carry navy copy and a navy button, which read as two
     brand colours fighting. */
  background-image: linear-gradient(115deg, #d9690c 0%, #b25207 100%);
  color: #ffffff;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 120% at 85% 50%, rgba(255, 255, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.cta__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding-block: clamp(40px, 6vw, 88px);
}

.cta__title {
  font-size: var(--font-size-2xl);
  color: #ffffff;
  max-width: 18ch;
  margin: 0;
}

.cta__side {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: flex-start;
  max-width: 42ch;
}

.cta__note {
  font-size: var(--font-size-md);
  line-height: 1.55;
  color: #ffffff;
  opacity: 0.92;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .map__lane {
    stroke-dashoffset: 0;
    transition: none;
  }
}

/* ============================================================
   COMPONENT BREAKPOINTS

   These live here, next to the base rules they override. components.css
   loads after layout.css, so an override placed in layout.css would be
   beaten by the single-column base rule above it.
   ============================================================ */
@media (max-width: 559px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 560px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 640px) {
  .products {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-5);
  }

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

@media (min-width: 768px) {
  /* From here the row can hold its title and its copy side by side. */
  .line {
    grid-template-columns: auto minmax(200px, 1.1fr) minmax(0, 1.6fr);
    grid-template-areas: "thumb head text";
    align-items: center;
    gap: var(--space-5);
    padding: var(--space-5) 0;
  }

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

@media (min-width: 1024px) {
  /* The phone tile stays at the top; the list fills whatever height the
     form still has, so the two columns end on the same line. */
  .contact-panel {
    height: 100%;
  }

  .contact-list {
    display: flex;
    flex-direction: column;
    flex: 1;
  }

  .contact-row {
    flex: 1;
    align-items: center;
  }

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

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

  /* The full ledger row: mark, line, copy, action. */
  .line {
    grid-template-columns: auto minmax(240px, 1fr) minmax(0, 1.8fr);
    grid-template-areas: "thumb head text";
    gap: var(--space-6);
    padding-inline: var(--space-4);
  }

  .line:hover {
    background-color: var(--c-bg);
  }

  .line__thumb {
    width: 180px;
  }

  /* Six-column bed: three panels of two, then two panels of three. */
  .proof {
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-4);
  }

  .proof__item {
    grid-column: span 2;
  }

  .proof__item:nth-child(4),
  .proof__item:nth-child(5) {
    grid-column: span 3;
  }

  .certs {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: var(--space-8);
    align-items: start;
  }

  .logistics__grid {
    grid-template-columns: 1.35fr 1fr;
    gap: var(--space-6);
    align-items: stretch;
  }
}

@media (max-width: 480px) {
  .btn {
    width: 100%;
  }

  .btn--badge {
    justify-content: space-between;
  }
}

@media (max-width: 767px) {
  .btn {
    min-height: 48px;
  }

  .btn--ghost {
    min-height: 48px;
    padding-inline: var(--space-5);
  }

  .figure--tall {
    height: clamp(220px, 72vw, 320px);
  }

  .certs__photo {
    height: clamp(200px, 56vw, 280px);
    margin-top: var(--space-5);
  }

  .logistics__photo {
    height: clamp(180px, 48vw, 240px);
  }

  .line__thumb {
    width: 96px;
  }

  .contact-cta__value {
    font-size: var(--font-size-lg);
    white-space: normal;
  }

  .figure__plate {
    left: var(--space-3);
    right: var(--space-3);
    bottom: var(--space-3);
    padding: var(--space-3);
  }

  .footer__logo-mark {
    width: 48px;
    height: 64px;
  }

  .footer__logo-text {
    width: min(168px, 48vw);
  }

  .cta__note {
    font-size: var(--font-size-base);
  }
}