/* ==========================================================
   SMAKD — shared website styles
   Plain CSS; no framework or build tools required.

   Page and script conventions:
   - Add .js to <html> as soon as JavaScript runs.
   - The mobile navigation uses the HTML hidden attribute.
   - Show the mobile quote bar by adding .is-visible with JS.
   ========================================================== */

:root {
  /* Brand colours (identity-sheet names in comments). Navy and blue lead; no third accent hue. */
  --navy: #071533;        /* Strong Dark Blue */
  --blue: #2267ff;        /* Solid Blue */
  --blue-ink: #1a55d9;
  --blue-press: #1444b3;
  --blue-300: #7ea6ff;
  --pale: #e0eaff;        /* Seashell Blue */
  --mist: #f4f7ff;
  --ink: #121721;         /* Cool Black */
  --slate: #4a5670;
  --on-dark-muted: #a9b8d9;
  --navy-deep: #060e17;   /* Casual Navy */
  --line: #c9d2e5;
  --field-border: #6b7896;
  --white: #ffffff;

  /* Older names, kept as aliases for the inner pages */
  --pale-blue: var(--pale);
  --body-color: var(--ink);
  --card-border: var(--line);
  --casual-navy: var(--navy-deep);

  /* Type. Outfit: Light at 32px and up, Medium or SemiBold below, where Light is too thin to read. */
  --font-heading: "Outfit", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-label: var(--font-body);
  --fs-display: clamp(2.5rem, 1.6rem + 4vw, 4.5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3.2vw, 3.5rem);
  --fs-h2: clamp(2rem, 1.4rem + 2.6vw, 3rem);

  /* Liquid glass, as tuned in the draft. glass.js reads the last four. */
  --glass-blur: 1.5px;
  --glass-saturate: 200%;
  --glass-sheen: 0.2;
  --glass-rim: 0.6;
  --glass-refraction: 0.5;
  --glass-depth: 0.25;
  --glass-dispersion: 0.6;
  --glass-splay: 0;
  /* Hero photo wash: colour, then how dark at the left, how far the side wash reaches, top and bottom */
  --hero-tint: var(--navy);
  --hero-side: 60%;
  --hero-side-reach: 75%;
  --hero-top: 64%;
  --hero-bottom: 92%;

  /* Layout */
  --header-height: 72px;
  --container-width: 1248px;
  --space-unit: 8px;
  --section-space: 64px;
  --radius: 12px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 24px;
  --icon: 29px;   /* 22px × 1.3 */

  /* Motion */
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1); /* runs about 10% past the end, then settles */
  --transition-fast: 160ms ease;
}

/* ----------------------------------------------------------
   Reset and global styles
   ---------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--body-color);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: var(--blue);
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--navy);
  font-family: var(--font-heading);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 300;
  letter-spacing: -0.02em;
}

h1 {
  max-width: 22ch;
  font-size: var(--fs-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--fs-h2);
}

h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h4 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.lead {
  max-width: 60ch;
  font-size: 1.0625rem;
  line-height: 1.5;
}

p {
  margin: 0;
}

p + p {
  margin-top: 1rem;
}

ul,
ol {
  margin: 0;
  padding-left: 1.3em;
}

li + li {
  margin-top: 0.5rem;
}

::selection {
  background: var(--pale-blue);
  color: var(--navy);
}

/* ----------------------------------------------------------
   Accessibility and layout utilities
   ---------------------------------------------------------- */

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 12px 16px;
  transform: translateY(-160%);
  background: var(--white);
  color: var(--navy);
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: min(100% - 48px, var(--container-width));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

/* Two white sections in a row would stack both paddings into one double-height gap */
.section:not([class*="section--"]) + .section:not([class*="section--"]) {
  padding-top: 0;
}

.section--pale {
  background: var(--pale-blue);
}

.section--mist {
  background: var(--mist);
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section--dark h1,
.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--white);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.section-heading > * + * {
  margin-top: 16px;
}

.section-heading p,
.prose {
  max-width: 68ch;
}

.stack > * + * {
  margin-top: 16px;
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.grid {
  display: grid;
  gap: 24px;
}

.grid--two,
.grid--three,
.grid--six {
  grid-template-columns: 1fr;
}

/* Pills replace the old uppercase labels; sentence case, no tracking */
.label,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--pale);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

.pill--dark,
.page-intro .label {
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 8%);
  color: var(--pale);
}

.text-link {
  color: var(--blue-ink);
  font-weight: 600;
}

.section--dark .text-link {
  color: var(--white);
}

/* ----------------------------------------------------------
   Buttons: a pill plus a separate arrow chip (primary), or a pill alone.
   Colours come from custom properties so each variant only sets values.
   ---------------------------------------------------------- */

.btn {
  --btn-bg: var(--blue);
  --btn-bg-hover: var(--blue-ink);
  --btn-bg-press: var(--blue-press);
  --btn-fg: var(--white);
  --btn-border: transparent;
  --btn-border-hover: transparent;
  --chip-bg: var(--navy);
  --chip-fg: var(--white);
  --btn-h: 44px;
  --btn-pad: 20px;
  display: inline-flex;
  min-height: var(--btn-h);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 var(--btn-pad);
  border: 1.5px solid var(--btn-border);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 200ms var(--ease-out);
}

.btn--lg {
  --btn-h: 52px;
  --btn-pad: 24px;
  font-size: 1rem;
}

/* Two-part button: the anchor is transparent; label and chip carry the colour */
.btn:has(.btn__chip) {
  padding: 0;
  border: 0;
  background: none;
}

.btn__label {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  padding: 0 var(--btn-pad);
  border-radius: 999px;
  background: var(--btn-bg);
  transition: background-color 160ms ease;
}

.btn__chip {
  display: grid;
  flex: none;
  width: var(--btn-h);
  height: var(--btn-h);
  place-items: center;
  border-radius: 50%;
  background: var(--chip-bg);
  color: var(--chip-fg);
  transition: transform 200ms var(--ease-out);
}

.btn__chip svg {
  width: 16px;
  height: 16px;
  transition: transform 200ms var(--ease-out);
}

.btn--lg .btn__chip svg {
  width: 18px;
  height: 18px;
}

@media (hover: hover) {
  .btn:hover {
    --btn-bg: var(--btn-bg-hover);
    border-color: var(--btn-border-hover);
  }

  .btn:hover .btn__chip {
    transform: translateX(4px);
  }

  .btn:hover .btn__chip svg {
    transform: translateX(2px);
  }
}

.btn:active {
  --btn-bg: var(--btn-bg-press);
  transform: scale(0.98);
  transition-duration: 80ms;
}

.btn:active .btn__chip {
  transform: none;
}

.btn--block {
  display: flex;
  width: 100%;
}

.btn--block .btn__label {
  flex: 1;
  justify-content: center;
}

/* Dark-surface buttons. The glass itself is .liquid-glass, below; these only set colours. */
.btn--on-dark,
.btn--nav {
  --btn-bg: rgb(255 255 255 / 5%);
  --btn-bg-hover: rgb(255 255 255 / 15%);
  --btn-bg-press: rgb(255 255 255 / 22%);
  --btn-fg: var(--white);
  --chip-bg: rgb(34 103 255 / 85%);
  --chip-bg-hover: rgb(34 103 255 / 100%);
  --chip-bg-press: var(--blue-ink);
}

.btn--on-dark .btn__chip {
  transition: transform 200ms var(--ease-out), background-color 160ms ease;
}

.btn--on-dark .btn__chip svg {
  stroke-width: 1.5;
}

@media (hover: hover) {
  .btn--on-dark:hover,
  body:not(.is-past-intro) .btn--nav:hover {
    --chip-bg: var(--chip-bg-hover);
  }
}

.btn--on-dark:active,
body:not(.is-past-intro) .btn--nav:active {
  --chip-bg: var(--chip-bg-press);
}

/* :where keeps this below .btn:hover, so hover still works */
:where(.closing-panel) .btn--on-dark {
  --btn-bg: rgb(255 255 255 / 12%);
  --btn-bg-hover: rgb(255 255 255 / 16%);
  --btn-bg-press: rgb(255 255 255 / 19%);
  --chip-bg: rgb(7 21 51 / 60%); /* blue glass would vanish on the blue panel */
  --chip-bg-hover: rgb(7 21 51 / 80%);
  --chip-bg-press: rgb(7 21 51 / 92%);
}

.btn-secondary,
.btn--secondary {
  --btn-bg: transparent;
  --btn-bg-hover: var(--pale);
  --btn-bg-press: #cbdaff;
  --btn-fg: var(--navy);
  --btn-border: rgb(7 21 51 / 50%);
  --btn-border-hover: var(--navy);
}

.btn--ghost {
  --btn-bg: rgb(255 255 255 / 6%);
  --btn-bg-hover: rgb(255 255 255 / 14%);
  --btn-bg-press: rgb(255 255 255 / 20%);
  --btn-fg: var(--white);
  border: 0;
}

:where(.reg-tile--blue) .btn--ghost {
  --btn-bg: transparent; /* white glass on this blue would drop the text below 4.5:1 */
  --btn-bg-hover: rgb(7 21 51 / 20%);
}

:where(.closing-panel) .btn--ghost {
  --btn-bg-hover: rgb(7 21 51 / 25%); /* navy, not white: more white would fade the text on this blue */
  --btn-bg-press: rgb(7 21 51 / 40%);
}

/* WhatsApp is green glass. The green deepens as it gets more solid, so white text keeps 4.5:1. */
.btn--ghost:where([href*="wa.me"]) {
  --btn-bg: rgb(36 138 28 / 85%);
  --btn-bg-hover: rgb(24 104 18 / 100%); /* a clear step down: lighter green would drop white text below 4.5:1 */
  --btn-bg-press: rgb(18 84 14 / 100%);
}

:where(.closing-panel) .btn--ghost:where([href*="wa.me"]) {
  --btn-bg: rgb(42 146 32 / 60%);
  --btn-bg-hover: rgb(24 104 18 / 90%);
  --btn-bg-press: rgb(18 84 14 / 100%);
}

/* The chat icon rings once on hover, the WhatsApp counterpart of the sliding chip */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn[href*="wa.me"]:hover .btn__icon {
    animation: wa-ring 500ms var(--ease-out);
  }
}

@keyframes wa-ring {
  20% { transform: rotate(-16deg); }
  45% { transform: rotate(12deg); }
  70% { transform: rotate(-6deg); }
}

/* ----------------------------------------------------------
   .liquid-glass: the one glass style on this site. Add the class to any element on a
   photo or dark surface; set --glass-color for a tint. Never restyle the blur elsewhere.
   ---------------------------------------------------------- */

.liquid-glass {
  background-color: var(--glass-color, rgb(255 255 255 / 10%));
  background-image: linear-gradient(135deg, rgb(255 255 255 / calc(20% * var(--glass-sheen))) 0%, rgb(255 255 255 / calc(4% * var(--glass-sheen))) 42%, rgb(255 255 255 / 0%) 60%, rgb(255 255 255 / calc(10% * var(--glass-sheen))) 100%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) var(--glass-filter,) saturate(var(--glass-saturate));
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / calc(42% * var(--glass-rim))),
    inset -1px -1px 0 rgb(255 255 255 / calc(24% * var(--glass-rim))),
    inset 0 0 0 1px rgb(255 255 255 / calc(10% * var(--glass-rim))),
    inset 0 -6px 10px -8px rgb(255 255 255 / calc(20% * var(--glass-rim)));
}

.btn__label.liquid-glass,
.btn.liquid-glass {
  --glass-color: var(--btn-bg);
}

.btn__chip.liquid-glass {
  --glass-color: var(--chip-bg);
}

/* Flat surfaces where a white sheen would fade the text, and the header button once it is solid */
.reg-tile--blue .liquid-glass,
body.is-past-intro .btn--nav .liquid-glass,
body.is-scrolled .site-header:focus-within .btn--nav .liquid-glass {
  background-image: none;
}

body.is-past-intro .btn--nav .liquid-glass,
body.is-scrolled .site-header:focus-within .btn--nav .liquid-glass {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .liquid-glass {
    background-image: linear-gradient(rgb(7 21 51 / 45%), rgb(7 21 51 / 45%));
  }
}

.btn-text {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.btn-text span {
  transition: transform 160ms var(--ease-out);
}

.btn-text:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

.btn-text:hover span {
  transform: translateX(3px);
}

/* Link arrows: the "→" in the markup is swapped for the same arrow the button chip uses.
   Route arrows inside text ("Pakistan → Gulf") stay as text: they show direction, not a link. */
.btn-text > span[aria-hidden="true"],
.hero-index__arrow,
.trade-tile__arrow,
.supply-cats__arrow,
.post-row__arrow {
  font-size: 0;
  line-height: 0;
}

.btn-text > span[aria-hidden="true"]::before,
.hero-index__arrow::before,
.trade-tile__arrow::before,
.supply-cats__arrow::before,
.post-row__arrow::before {
  display: inline-block;
  width: 18px;
  height: 18px;
  background: currentColor;
  content: "";
  -webkit-mask: var(--arrow) center / contain no-repeat;
  mask: var(--arrow) center / contain no-repeat;
}

:root {
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.hero-index__arrow::before {
  width: 22px;
  height: 22px;
}

/* ----------------------------------------------------------
   Header: transparent with the white logo at the top, out of the way
   while the hero scrolls, then a light blur with the dark logo.
   JS sets body.is-scrolled and body.is-past-intro.
   ---------------------------------------------------------- */

.site-header {
  --nav-fg: var(--white);
  --nav-dot: var(--white);
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--nav-fg);
  transition:
    transform 240ms var(--ease-out),
    background-color 240ms ease,
    border-color 240ms ease;
}

html:not(.js) .site-header {
  position: absolute;
}

.site-header :focus-visible {
  outline-color: var(--white);
}

.header-inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: min-height 240ms var(--ease-out);
}

.logo-link {
  min-height: 44px;
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  color: inherit;
  line-height: 1;
  text-decoration: none;
}

.logo {
  width: 132px;
  height: auto;
}

.logo--dark {
  display: none;
}

.logo-fallback {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 600;
}

.logo-fallback + .logo-fallback {
  display: none;
}

/* B: past the hero (or tabbed into mid-hero) */
body.is-past-intro .site-header,
body.is-scrolled .site-header:focus-within {
  --nav-fg: var(--navy);
  --nav-dot: var(--blue);
  border-bottom-color: rgb(7 21 51 / 8%);
  background: rgb(255 255 255 / 68%);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.is-past-intro .site-header,
  body.is-scrolled .site-header:focus-within {
    background: rgb(255 255 255 / 94%);
  }
}

body.is-past-intro .header-inner,
body.is-scrolled .site-header:focus-within .header-inner {
  min-height: 60px;
}

body.is-past-intro .site-header .logo--light,
body.is-scrolled .site-header:focus-within .logo--light {
  display: none;
}

body.is-past-intro .site-header .logo--dark,
body.is-scrolled .site-header:focus-within .logo--dark {
  display: block;
}

body.is-past-intro .site-header :focus-visible,
body.is-scrolled .site-header:focus-within :focus-visible {
  outline-color: var(--blue);
}

/* Between: hidden while the hero scrolls, so it never crosses the headline */
body.is-scrolled:not(.is-past-intro) .site-header:not(:focus-within):not(.is-menu-open) {
  transform: translateY(-100%);
}

/* Menu sheet open: solid navy in every state */
.site-header.is-menu-open {
  --nav-fg: var(--white) !important;
  --nav-dot: var(--blue-300) !important;
  border-bottom-color: transparent !important;
  background: var(--navy) !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.site-header.is-menu-open .logo--light {
  display: block !important;
}

.site-header.is-menu-open .logo--dark {
  display: none !important;
}

.site-header.is-menu-open :focus-visible {
  outline-color: var(--white) !important;
}

.menu-toggle {
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid color-mix(in srgb, var(--nav-fg) 55%, transparent);
  border-radius: 999px;
  background: transparent;
  color: var(--nav-fg);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* The header's quote button: glass at the top (navy tint, as it sits over bright sky), primary once past the hero */
.btn--nav {
  --btn-bg: rgb(7 21 51 / 30%);
  --btn-bg-hover: rgb(7 21 51 / 50%);
  --btn-bg-press: rgb(7 21 51 / 65%);
}

body.is-past-intro .btn--nav,
body.is-scrolled .site-header:focus-within .btn--nav {
  --btn-bg: var(--blue);
  --btn-bg-hover: var(--blue-ink);
  --btn-bg-press: var(--blue-press);
  --btn-fg: var(--white);
  --chip-bg: var(--navy);
}

.header-cta {
  display: none;
}

/* Mobile menu sheet */
.site-nav {
  position: absolute;
  top: 100%;
  right: 0;
  left: 0;
  max-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  padding: 8px 24px 24px;
  overflow-y: auto;
  background: var(--navy);
}

.site-nav:not([hidden]) {
  animation: sheet-in 200ms var(--ease-out);
}

@keyframes sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.site-nav a:not(.btn),
.header-cta .btn__label {
  white-space: nowrap; /* the button label wrapped at 1100px in testing */
}

.site-nav a:not(.btn) {
  position: relative;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgb(255 255 255 / 14%);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a[aria-current]:not(.btn)::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-300);
  content: "";
}

.nav-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.nav-actions .btn {
  width: 100%;
}

.nav-actions .btn__label {
  flex: 1;
  justify-content: center;
}

@media (min-width: 900px) {
  .header-inner {
    min-height: 88px;
  }

  body.is-past-intro .header-inner,
  body.is-scrolled .site-header:focus-within .header-inner {
    min-height: 72px;
  }

  .logo {
    width: 168px;
  }

  .header-cta {
    display: inline-flex;
    justify-self: end;
  }
}

/* 900–1099: six links do not fit, so the menu sheet stays, with the quote button in the bar */
@media (min-width: 900px) and (max-width: 1099px) {
  .header-inner {
    display: flex;
    gap: 12px;
  }

  .header-cta {
    margin-left: auto;
  }

  .site-nav {
    max-height: calc(100svh - 88px);
  }

  .nav-actions {
    max-width: 400px;
  }

  .nav-actions .btn--on-dark {
    display: none;
  }
}

@media (min-width: 1100px) {
  .header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
  }

  .menu-toggle,
  .nav-actions {
    display: none;
  }

  /* Links float on the header: no box around them */
  .site-nav,
  .site-nav[hidden] {
    position: static;
    max-height: none;
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 20px;
    padding: 0;
    overflow: visible;
    background: none;
    animation: none;
  }

  .site-nav a:not(.btn) {
    min-height: 44px;
    padding-block: 14px;
    border: 0;
    color: var(--nav-fg);
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1;
  }

  /* The place marker shows hover and the current page */
  .site-nav a:not(.btn)::after,
  .site-nav a[aria-current]:not(.btn)::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nav-dot);
    content: "";
    transform: translateX(-50%) scale(0);
    transition: transform 160ms var(--ease-out);
  }

  .site-nav a[aria-current]:not(.btn)::before {
    display: none;
  }

  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current]:not(.btn)::after {
    transform: translateX(-50%) scale(1);
  }
}

@media (min-width: 1200px) {
  .site-nav,
  .site-nav[hidden] {
    gap: 32px;
  }
}

/* Grouped navigation: expanded sections in the mobile sheet. */
body.nav-sheet-open {
  overflow: hidden;
}

.nav-group {
  flex-shrink: 0;
}

.nav-trigger,
.nav-descriptor {
  display: none;
}

.nav-group-heading {
  margin: 0;
  padding: 20px 0 4px;
  color: var(--on-dark-muted);
  font: 600 0.8125rem/1.5 var(--font-body);
}

.nav-group:first-child .nav-group-heading {
  padding-top: 8px;
}

.site-nav .nav-panel a {
  min-height: 48px;
  font-size: 1.125rem;
}

.nav-item-copy {
  display: flex;
  flex-direction: column;
}

.coming-soon {
  display: inline-block;
  padding: 2px 8px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  color: var(--blue-300);
  font: 600 0.6875rem/1.5 var(--font-body);
  white-space: nowrap;
}

@media (min-width: 1100px) {
  .nav-group {
    position: relative;
  }

  .nav-group-heading {
    display: none;
  }

  .nav-trigger {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 14px 0;
    border: 0;
    background: none;
    color: var(--nav-fg);
    font: 500 0.9375rem/1 var(--font-body);
    white-space: nowrap;
    cursor: pointer;
  }

  .nav-caret {
    flex-shrink: 0;
    opacity: .7;
    transition: transform var(--transition-fast);
  }

  .nav-trigger[aria-expanded="true"] .nav-caret {
    transform: rotate(180deg);
  }

  .nav-trigger::after {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--nav-dot);
    content: "";
    transform: translateX(-50%) scale(0);
    transition: transform 160ms var(--ease-out);
  }

  .nav-trigger:hover::after,
  .nav-group:has([aria-current]) .nav-trigger::after {
    transform: translateX(-50%) scale(1);
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 260px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--white);
    color: var(--navy);
    box-shadow: 0 12px 32px rgb(7 21 51 / 12%);
  }

  /* Bridge the eight-pixel gap without changing the panel surface. */
  .nav-panel::before {
    position: absolute;
    right: 0;
    bottom: 100%;
    left: 0;
    height: 8px;
    content: "";
  }

  .nav-panel:not([hidden]) {
    animation: nav-panel-in 160ms var(--ease-out);
  }

  .site-nav .nav-panel a {
    min-height: 44px;
    gap: 8px;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    color: var(--navy);
    font: 500 0.9375rem/1.4 var(--font-body);
    white-space: nowrap;
  }

  .site-nav .nav-panel a:has(.nav-descriptor) {
    min-height: 56px;
  }

  .site-nav .nav-panel a::after {
    display: none;
  }

  .site-nav .nav-panel a[aria-current]::before {
    position: static;
    display: block;
    flex-shrink: 0;
    align-self: flex-start;
    margin-top: 7px;
    background: var(--blue);
  }

  .site-nav .nav-panel a[aria-current] .nav-item-label {
    font-weight: 600;
  }

  .site-nav .nav-panel a:hover,
  .site-nav .nav-panel a:focus-visible {
    background: var(--mist);
  }

  .site-nav .nav-panel a:active {
    background: var(--pale);
  }

  .site-header .site-nav .nav-panel a:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: -2px;
  }

  .nav-descriptor {
    display: block;
    color: var(--slate);
    font: 400 0.8125rem/1.4 var(--font-body);
  }

  .coming-soon {
    border-color: transparent;
    background: var(--pale);
    color: var(--blue-ink);
  }
}

@media (max-width: 1099px) {
  html:not(.js) .nav-panel[hidden] { display: block !important; }
}

@media (min-width: 1100px) {
  html:not(.js) .nav-group:hover .nav-panel[hidden],
  html:not(.js) .nav-group:focus-within .nav-panel[hidden] { display: block !important; }
}

@keyframes nav-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .nav-panel:not([hidden]) { animation: none; transform: none; }
  .nav-caret { transition: none; }
}

/* ----------------------------------------------------------
   Homepage hero
   ---------------------------------------------------------- */

.home-hero :focus-visible,
.section--dark :focus-visible,
.page-intro :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* ----------------------------------------------------------
   Photograph placeholders and images
   ---------------------------------------------------------- */

.media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  object-fit: cover;
}

.media__label {
  position: relative;
  z-index: 1;
  max-width: calc(100% - 32px);
  padding: 8px 12px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-label);
  font-size: 0.75rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  text-align: center;
}

.media--wide {
  aspect-ratio: 16 / 9;
}

.media--square {
  aspect-ratio: 1;
}

.media--portrait {
  aspect-ratio: 4 / 5;
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------
   Cards, credentials and section components
   ---------------------------------------------------------- */

.card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white);
}

.card__body {
  padding: 24px;
}

.card__body > * + * {
  margin-top: 16px;
}

.card__link {
  color: var(--navy);
  text-decoration: none;
}

.card__link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.credential {
  padding: 24px;
}

.credential > * + * {
  margin-top: 12px;
}

.credential__name {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
}

.credential__status {
  font-weight: 600;
}

.split {
  display: grid;
  gap: 32px;
  align-items: center;
}

.split__content > * + * {
  margin-top: 16px;
}

.product-links {
  display: grid;
  gap: 1px;
  border: 1px solid var(--card-border);
  background: var(--card-border);
  list-style: none;
  padding: 0;
}

.product-links li + li {
  margin-top: 0;
}

.product-links a {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  background: var(--white);
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.product-links a:hover {
  background: var(--pale-blue);
}

.process-list {
  display: grid;
  gap: 24px;
  padding: 0;
  list-style: none;
}

.process-list li + li {
  margin-top: 0;
}

.process-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--card-border);
}

.process-step__number {
  color: var(--blue);
  font-family: var(--font-label);
  font-size: 0.875rem;
}

.process-step__content > * + * {
  margin-top: 8px;
}

/* Inner-page intro: a navy band so the header behaves as on the homepage */
.page-intro {
  padding-block: 128px 40px;
  background: var(--navy);
  color: var(--pale);
}

.page-intro h1 {
  color: var(--white);
}

.page-intro > .container > * + * {
  margin-top: 16px;
}

.page-intro p {
  max-width: 65ch;
}

.anchor-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.anchor-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border: 1.5px solid rgb(255 255 255 / 55%);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.anchor-nav a:hover {
  border-color: var(--white);
  background: rgb(255 255 255 / 12%);
}

/* Anchored sections clear the sticky header */
[id] {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

/* ----------------------------------------------------------
   Buyer brief form and review
   ---------------------------------------------------------- */

.form-layout {
  display: grid;
  gap: 24px;
}

.form-choice {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-choice legend {
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 600;
}

.form-field {
  min-width: 0;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-weight: 600;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--body-color);
}

.form-field textarea {
  min-height: 144px;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: var(--body-color);
  opacity: 0.7;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  border-color: var(--blue);
}

.form-help,
.form-message {
  margin-top: 8px;
  font-size: 0.875rem;
}

.brief-review {
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--pale-blue);
}

.brief-review > * + * {
  margin-top: 16px;
}

.brief-review__text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

/* ----------------------------------------------------------
   Certificate dialog
   ---------------------------------------------------------- */

dialog {
  width: min(100% - 48px, 640px);
  max-height: calc(100vh - 48px);
  padding: 24px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--body-color);
}

dialog::backdrop {
  background: rgba(7, 21, 51, 0.7);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dialog-body {
  margin-top: 24px;
}

.dialog-close {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

/* ----------------------------------------------------------
   Footer and floating actions
   ---------------------------------------------------------- */

.site-footer {
  padding-block: 48px 24px;
  background: var(--navy-deep);
  color: var(--white);
}

.site-footer a {
  color: var(--white);
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.site-footer .logo {
  width: 148px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}

.footer-grid > :first-child,
.footer-grid > :last-child {
  grid-column: 1 / -1;
}

.footer-legal {
  margin-top: 24px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.footer-tagline {
  max-width: 44ch;
  margin-top: 8px;
  color: var(--on-dark-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-heading {
  margin-bottom: 12px;
  color: var(--on-dark-muted);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.footer-links {
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 0;
}

.footer-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgb(255 255 255 / 12%);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-bottom p + p {
  max-width: 80ch;
  margin-top: 4px;
}

.footer-bottom__row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.site-footer .footer-bottom a {
  color: var(--on-dark-muted);
  text-decoration: underline;
}

.whatsapp-float {
  position: fixed;
  z-index: 70;
  right: 16px;
  bottom: 16px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1.5px solid var(--white);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 160ms ease;
}

.whatsapp-float:hover {
  background: #0e2966;
}

.mobile-quote-bar {
  position: fixed;
  z-index: 60;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  padding: 8px 144px 8px 16px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--card-border);
  background: var(--white);
}

.mobile-quote-bar.is-visible {
  display: block;
}

.mobile-quote-bar .btn {
  width: 100%;
}

.mobile-quote-bar .btn__label {
  flex: 1;
  justify-content: center;
  padding-inline: 12px;
  white-space: nowrap;
}

body.has-mobile-quote-bar {
  padding-bottom: 68px;
}

body.has-mobile-quote-bar .whatsapp-float {
  right: 8px;
  bottom: max(8px, env(safe-area-inset-bottom));
}

/* ----------------------------------------------------------
   Responsive layout
   ---------------------------------------------------------- */

@media (min-width: 600px) {
  .grid--two,
  .grid--six {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-field--full {
    grid-column: 1 / -1;
  }

  .product-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  :root {
    --section-space: 112px;
    --r-xl: 32px;
  }

  body {
    font-size: 1.0625rem;
  }

  h3 {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  h4 {
    font-size: 1.125rem;
  }

  .lead {
    font-size: 1.25rem;
  }

  .grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid--six {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px;
  }

  .split--reverse .split__media {
    order: 2;
  }

  .product-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-intro {
    padding-block: 168px 64px;
  }

  .site-footer {
    padding-block: 72px 32px;
  }

  .site-footer .logo {
    width: 168px;
  }

  /* 900–1099: brand across the top, three link columns below */
  .footer-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 48px 32px;
  }

  .footer-grid > * {
    grid-column: span 4;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-grid > :last-child {
    grid-column: span 4;
  }

  .footer-links a {
    min-height: 40px;
  }

  .footer-bottom {
    margin-top: 64px;
    padding-right: 160px; /* clears the floating WhatsApp button */
  }

  .footer-bottom p + p {
    margin-top: 8px;
  }

  .footer-bottom__row {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 32px;
  }

  .mobile-quote-bar,
  .mobile-quote-bar.is-visible {
    display: none;
  }

  body.has-mobile-quote-bar {
    padding-bottom: 0;
  }

  body.has-mobile-quote-bar .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }
}

@media (min-width: 1100px) {
  .site-footer {
    padding-top: 80px;
  }

  .footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 40px 24px;
  }

  .footer-grid > * {
    grid-column: auto;
  }

  .footer-grid > :first-child {
    grid-column: 1 / 3;
  }

  .footer-grid > :last-child {
    grid-column: 3 / 5;
    grid-row: 1;
  }
}

/* ----------------------------------------------------------
   Reduced motion
   ---------------------------------------------------------- */

@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;
    scroll-behavior: auto !important;
  }

  .btn,
  .btn__chip,
  .btn__chip svg,
  .trade-tile img,
  .hero-index__arrow,
  .route-legend__arrow {
    transform: none !important;
  }

}
/* Local preview media and interaction details */
figure { margin: 0; }
figcaption { margin-top: 8px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.65; cursor: default; }
html:not(.js) .menu-toggle { display: none; }
@media (max-width: 1099px) {
  html:not(.js) .site-header { background: var(--navy); }
  html:not(.js) .site-nav[hidden] { display: flex !important; position: static; padding-inline: 0; }
  html:not(.js) .header-inner { display: block; padding-block: 16px; }
}
@media (max-width: 350px) {
  .mobile-quote-bar { padding-right: 132px; }
  .mobile-quote-bar .btn { padding-inline: 8px; }
}

/* Organizations supplied: a ruled list, like a supply ledger */
.client-list {
  display: grid;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--card-border);
}

.client-list li {
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--card-border);
  color: var(--navy);
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 600;
  letter-spacing: -0.015em;
}

.section-more {
  margin-top: 32px;
}

@media (min-width: 900px) {
  .client-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 48px;
  }
}

/* Inner-page intros: smaller, wider heading so the band is not mostly empty space */
.page-intro h1 {
  max-width: 22ch;
}

/* Phones: shorter card photos so the homepage is less of a scroll */
@media (max-width: 599px) {
  .card__media .media {
    aspect-ratio: 16 / 9;
  }
}

/* ==========================================================
   Homepage
   ========================================================== */

/* ----------------------------------------------------------
   Hero: full-bleed footage, headline bottom-left
   ---------------------------------------------------------- */

.home-hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(600px, 100svh, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: var(--navy);
  color: var(--white);
}

.home-hero__media {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8) saturate(0.85);
}

/* Phones: text covers most of the frame, so no light band */
.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hero-tint) var(--hero-top), transparent) 0, color-mix(in srgb, var(--hero-tint) 56%, transparent) 96px, color-mix(in srgb, var(--hero-tint) 62%, transparent) 30%, color-mix(in srgb, var(--hero-tint) 88%, transparent) 100%);
  content: "";
}

.home-hero__inner {
  position: relative;
  padding-block: 112px 32px;
}

.home-hero__content {
  max-width: 780px;
}

.hero-pill {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: 999px;
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}

/* The place marker: SMAKD's signature, as on the map's Karachi hub */
.marker {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--white);
}

.home-hero h1 {
  max-width: none;
  margin-top: 16px;
  color: var(--white);
  font-size: clamp(2.5rem, 1.6rem + 4vw, 4.375rem); /* the display size, capped at 70px */
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.home-hero__lead {
  max-width: 52ch;
  margin-top: 16px;
  color: var(--white);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.home-hero__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.home-hero__actions .btn {
  width: 100%;
}

.home-hero__actions .btn__label {
  flex: 1;
  justify-content: center;
}

.hero-index {
  display: none;
}

.hero-pause__play,
.hero-pause[data-state="paused"] .hero-pause__pause {
  display: none;
}

.hero-pause[data-state="paused"] .hero-pause__play {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero [style*="--d"] {
    /* backwards, not both: a fill that lasts would keep the glass buttons inside from seeing the photo */
    animation: hero-rise 600ms var(--ease-overshoot) backwards;
    animation-delay: calc(var(--d) * 80ms);
  }

  @keyframes hero-rise {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
  }

  /* Inner page intros rise in piece by piece like the home hero; the joint venture diagram has its own entrance */
  .page-intro .container:not(.jv-intro) > *,
  .jv-intro__text > * {
    animation: hero-rise 600ms var(--ease-overshoot) backwards;
  }

  .page-intro .container:not(.jv-intro) > :nth-child(2), .jv-intro__text > :nth-child(2) { animation-delay: 80ms; }
  .page-intro .container:not(.jv-intro) > :nth-child(3), .jv-intro__text > :nth-child(3) { animation-delay: 160ms; }
  .page-intro .container:not(.jv-intro) > :nth-child(n+4), .jv-intro__text > :nth-child(n+4) { animation-delay: 240ms; }
}

@media (min-width: 600px) {
  .home-hero__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .home-hero__actions .btn {
    width: auto;
  }

  .home-hero__actions .btn__label {
    flex: none;
  }
}

@media (min-width: 900px) {
  .home-hero {
    min-height: clamp(680px, 100svh, 960px);
  }

  .home-hero::before {
    background:
      linear-gradient(90deg, color-mix(in srgb, var(--hero-tint) var(--hero-side), transparent) 0%, color-mix(in srgb, var(--hero-tint) calc(var(--hero-side) * 0.75), transparent) 45%, transparent var(--hero-side-reach)),
      linear-gradient(180deg, color-mix(in srgb, var(--hero-tint) var(--hero-top), transparent) 0, color-mix(in srgb, var(--hero-tint) 56%, transparent) 96px, color-mix(in srgb, var(--hero-tint) 40%, transparent) 30%, color-mix(in srgb, var(--hero-tint) 40%, transparent) 36%, color-mix(in srgb, var(--hero-tint) 82%, transparent) 72%, color-mix(in srgb, var(--hero-tint) var(--hero-bottom), transparent) 100%);
  }

  .home-hero__inner {
    padding-bottom: 72px;
  }

  .home-hero h1 {
    margin-top: 20px;
  }

  .home-hero h1 span {
    display: block;
  }

  .home-hero__lead {
    margin-top: 20px;
    font-size: 1.25rem;
  }

  .home-hero__actions {
    margin-top: 32px;
  }

  .hero-pause {
    position: absolute;
    right: 24px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    display: grid;
    padding: 0;
    place-items: center;
    border: 1px solid rgb(255 255 255 / 55%);
    border-radius: 50%;
    background: rgb(7 21 51 / 50%);
    color: var(--white);
  }
}

/* Wide screens: an unboxed route index takes the place of a search widget */
@media (min-width: 1200px) {
  .home-hero__content {
    max-width: min(780px, calc(100% - 460px));
  }

  .hero-index {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 420px;
    display: block;
    padding: 0;
    list-style: none;
  }

  .hero-index li {
    margin: 0;
    border-top: 1px solid rgb(255 255 255 / 24%);
  }

  .hero-index li:last-child {
    border-bottom: 1px solid rgb(255 255 255 / 24%);
  }

  .hero-index a {
    position: relative;
    min-height: 64px;
    display: block;
    padding: 12px 36px 12px 0;
    color: var(--white);
    text-decoration: none;
  }

  .hero-index__title {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.3;
  }

  .hero-index__route {
    display: block;
    margin-top: 2px;
    color: var(--pale);
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .hero-index__arrow {
    position: absolute;
    top: 50%;
    right: 4px;
    transform: translateY(-50%);
    transition: transform 160ms var(--ease-out);
  }

  .hero-index a:hover .hero-index__title,
  .hero-index a:focus-visible .hero-index__title {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.18em;
  }

  .hero-index a:hover .hero-index__arrow,
  .hero-index a:focus-visible .hero-index__arrow {
    transform: translate(4px, -50%);
  }
}

/* ----------------------------------------------------------
   Organizations supplied: logo strip
   ---------------------------------------------------------- */

.supplied-strip {
  padding-block: 40px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}

/* Logo marquee: four sets of the same logos, scrolled by half its length so the loop is seamless */
.supplied {
  margin-top: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.supplied__track {
  display: flex;
  width: max-content;
  margin: 0;
  padding: 0;
  list-style: none;
}

.supplied__track li {
  display: grid;
  margin: 0;
  padding-inline: 32px;
  place-items: center;
}

@media (prefers-reduced-motion: no-preference) {
  .supplied__track {
    animation: supplied-scroll 36s linear infinite;
  }

  .supplied:hover .supplied__track,
  .supplied:focus-within .supplied__track {
    animation-play-state: paused;
  }
}

@keyframes supplied-scroll {
  to { transform: translateX(-50%); }
}

/* Without motion: one centred, wrapping row; the copies are hidden */
@media (prefers-reduced-motion: reduce) {
  .supplied {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .supplied__track {
    width: auto;
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 24px;
  }

  .supplied__track li[aria-hidden] {
    display: none;
  }
}

/* One flat tint so other organizations' marks sit quietly; brand blue on hover */
.supplied__logo {
  position: relative;
  display: block;
  height: 48px;
}

.supplied__logo img {
  display: block;
  width: auto;
  max-width: 140px;
  height: 100%;
  object-fit: contain;
}

/* Blue copy fades in over the grey one on hover */
.supplied__logo img + img {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 200ms var(--ease-out);
}

.supplied__track li:hover .supplied__logo img + img {
  opacity: 1;
}

@media (min-width: 900px) {
  .supplied-strip {
    padding-block: 56px;
  }


  .supplied__track li {
    padding-inline: 56px;
  }

  .supplied__logo {
    height: 64px;
  }
}

/* Home: the same logos as tiles, in two full-width rows that pass each other */
.supplied-strip--tiles {
  padding-block: var(--section-space);
  text-align: start;
}

.supplied-strip__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 32px;
  margin-bottom: 40px;
}

.supplied-strip__head .section-heading {
  margin-bottom: 0;
}

.supplied-strip--tiles .supplied {
  margin-top: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.supplied-strip--tiles .supplied + .supplied {
  margin-top: 12px;
}

/* Padding, not gap, keeps every set the same width, so the half-length loop stays seamless */
.supplied-strip--tiles .supplied__track li {
  padding-inline: 6px;
}

.supplied-strip--tiles .supplied__logo {
  box-sizing: content-box;
  display: grid;
  width: 168px;
  height: 96px;
  place-items: center;
  border-radius: var(--radius);
  background: var(--mist);
  transition: background-color 200ms var(--ease-out);
}

/* Both copies share the tile's one cell, so the blue one lands exactly on the grey */
.supplied-strip--tiles .supplied__logo img {
  grid-area: 1 / 1;
  max-width: 112px;
  height: 40px;
}

.supplied-strip--tiles .supplied__logo img + img {
  position: static;
}

.supplied-strip--tiles li:hover .supplied__logo {
  background: var(--pale);
}

.supplied--reverse .supplied__track {
  animation-direction: reverse;
}

@media (prefers-reduced-motion: reduce) {
  .supplied--reverse {
    display: none;
  }

  .supplied-strip--tiles .supplied__track {
    row-gap: 12px;
  }
}

@media (min-width: 900px) {
  .supplied-strip--tiles .supplied + .supplied {
    margin-top: 20px;
  }

  .supplied-strip--tiles .supplied__track li {
    padding-inline: 10px;
  }

  .supplied-strip--tiles .supplied__logo {
    width: 256px;
    height: 144px;
  }

  .supplied-strip--tiles .supplied__logo img {
    max-width: 160px;
    height: 56px;
  }
}

/* ----------------------------------------------------------
   Route chart (map styles are in "Homepage refinements: route map")
   ---------------------------------------------------------- */

.routes {
  display: grid;
  gap: 32px;
  align-items: center;
}

.routes__text > * + * {
  margin-top: 16px;
}

.route-legend {
  padding: 0;
  list-style: none;
}

.route-legend__item {
  position: relative;
  margin: 0;
}

.route-legend__item a {
  position: relative;
  display: block;
  padding: 14px 32px 14px 40px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}

.route-legend__item:last-child a {
  border-bottom: 1px solid var(--line);
}

.route-legend__item strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.route-legend__item a > span:not(.route-legend__arrow) {
  display: block;
  margin-top: 2px;
  color: var(--slate);
  font-size: 0.875rem;
  line-height: 1.5;
}

.route-legend__arrow {
  position: absolute;
  top: 50%;
  right: 4px;
  color: var(--navy);
  transform: translateY(-50%);
  transition: transform 160ms var(--ease-out);
}

.route-legend__item a:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.route-legend__item a:hover .route-legend__arrow,
.route-legend__item a:focus-visible .route-legend__arrow {
  transform: translate(4px, -50%);
}

/* Pointing at a legend row dims the other routes */
.route {
  transition: opacity 160ms ease;
}

.routes:has(.route-legend__item--export :is(a:hover, a:focus-visible)) .route:not(.route--export),
.routes:has(.route-legend__item--import :is(a:hover, a:focus-visible)) .route:not(.route--import),
.routes:has(.route-legend__item--supply :is(a:hover, a:focus-visible)) .route:not(.route--supply),
.routes:has(.route-legend__item--open :is(a:hover, a:focus-visible)) .route:not(.route--open) {
  opacity: 0.15;
}

.routes:has(.route-legend__item--export :is(a:hover, a:focus-visible)) .route-light:not(.route-light--export),
.routes:has(.route-legend__item--import :is(a:hover, a:focus-visible)) .route-light:not(.route-light--import),
.routes:has(.route-legend__item--supply :is(a:hover, a:focus-visible)) .route-light:not(.route-light--supply),
.routes:has(.route-legend__item--open :is(a:hover, a:focus-visible)) .route-light {
  opacity: 0;
}

.routes:has(.route-legend__item--export :is(a:hover, a:focus-visible)) .route-map .route--export,
.routes:has(.route-legend__item--import :is(a:hover, a:focus-visible)) .route-map .route--import,
.routes:has(.route-legend__item--supply :is(a:hover, a:focus-visible)) .route-map .route--supply {
  opacity: 1;
}

.routes:has(.route-legend__item--open :is(a:hover, a:focus-visible)) .route--open {
  opacity: 1;
}

.routes:has(.route-legend__item--open :is(a:hover, a:focus-visible)) .place--open {
  stroke: var(--navy);
}

@media (min-width: 900px) {
  .routes {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: 32px 64px;
  }
}

/* ----------------------------------------------------------
   What we trade
   ---------------------------------------------------------- */

.trade-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

.trade-group__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0 16px;
  margin-bottom: 8px;
}

.trade-group__note {
  margin-bottom: 12px;
  color: var(--slate);
  font-size: 0.875rem;
}

.trade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.trade-grid li {
  margin: 0;
}

/* Pink salt: one tile across two columns, so seven tiles fill two rows of four */
.trade-grid__wide {
  grid-column: span 2;
}

.trade-grid__wide .trade-tile {
  aspect-ratio: auto;
  height: 100%;
}

@media (max-width: 899px) {
  .trade-grid__wide .trade-tile {
    aspect-ratio: 2 / 1;
    height: auto;
  }
}

.trade-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  display: block;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
}

.trade-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}

.trade-tile::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(7 21 51 / 88%), rgb(7 21 51 / 0%) 65%);
  content: "";
}

.trade-tile__text {
  position: absolute;
  z-index: 1;
  right: 12px;
  bottom: 12px;
  left: 12px;
  font-size: 0.8125rem;
  line-height: 1.35;
}

.trade-tile__text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
}

.trade-tile:hover strong {
  text-decoration: underline;
}

.trade-tile__arrow {
  position: absolute;
  z-index: 1;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(7 21 51 / 55%);
  color: var(--white);
  transition: transform 200ms ease, background-color 200ms ease;
}

@media (hover: hover) {
  .trade-tile:hover img {
    transform: scale(1.04);
  }

  .trade-tile:hover .trade-tile__arrow {
    background: var(--blue);
    transform: translateX(3px);
  }
}

.trade-tile:focus-visible .trade-tile__arrow {
  background: var(--blue);
}

/* Text tile: same size, no photo */
.trade-tile--text {
  background: var(--mist);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--slate);
}

.trade-tile--text::after {
  content: none;
}

.trade-tile--text .trade-tile__text {
  font-size: 0.875rem;
}

.trade-tile--text .trade-tile__text strong {
  color: var(--navy);
  font-size: 1.25rem;
}

.trade-tile--text .trade-tile__arrow {
  background: var(--navy);
}

/* General order supply: a panel with six category links */
.supply-panel {
  display: grid;
  gap: 24px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--mist);
}

.supply-panel__text p {
  max-width: 44ch;
  margin-top: 12px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.supply-panel__text .btn-text {
  margin-top: 20px;
}

.supply-cats {
  display: grid;
  padding: 0;
  list-style: none;
}

.supply-cats li {
  margin: 0;
}

.supply-cats a {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.supply-cats li:last-child a {
  border-bottom: 1px solid var(--line);
}

.supply-cats .icon {
  color: var(--blue-ink);
}

.supply-cats__arrow {
  margin-left: auto;
  color: var(--slate);
  transition: transform 160ms var(--ease-out);
}

.supply-cats a:hover span:not(.supply-cats__arrow) {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.18em;
}

.supply-cats a:hover .supply-cats__arrow {
  transform: translateX(4px);
}

@media (min-width: 600px) {
  .supply-cats {
    grid-auto-flow: column;
    grid-template-rows: repeat(3, auto);
    column-gap: 32px;
  }

  .supply-cats li:nth-child(3) a {
    border-bottom: 1px solid var(--line);
  }
}

@media (min-width: 900px) {
  .supply-panel {
    padding: 40px;
  }
}

@media (min-width: 1100px) {
  .supply-panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 32px;
  }

  .supply-panel__text {
    grid-column: 1 / 6;
  }

  .supply-cats {
    grid-column: 6 / 13;
  }
}

/* Reveal: JS arms it only when motion is allowed, so content is never hidden without JS.
   JS also takes the classes off once played, so each item's own hover transitions come back.
   Keep this item list in step with REVEAL_ITEMS in main.js. */
.reveal-armed :is(.trade-tile, .process-row, .stepper__step, .reg-tile, .post-row, .market-row, .pl-step, .pl-result, .highlight-card, .card, .split__media, .supply-cats > li, .ruled-list > *, .section-heading > *) {
  opacity: 0;
  transform: translateY(20px);
}

.reveal-armed.is-revealed :is(.trade-tile, .process-row, .stepper__step, .reg-tile, .post-row, .market-row, .pl-step, .pl-result, .highlight-card, .card, .split__media, .supply-cats > li, .ruled-list > *, .section-heading > *) {
  opacity: 1;
  transform: none;
}

/* Only the way in is animated, so hiding is instant. JS adds .is-done after the last piece lands,
   which hands each item's own hover transitions back. */
.reveal-armed.is-revealed:not(.is-done) :is(.trade-tile, .process-row, .stepper__step, .reg-tile, .post-row, .market-row, .pl-step, .pl-result, .highlight-card, .card, .split__media, .supply-cats > li, .ruled-list > *, .section-heading > *) {
  transition: opacity 600ms ease-out, transform 600ms var(--ease-overshoot);
  transition-delay: calc(var(--i, 0) * 80ms);
}

@media (min-width: 600px) {
  .trade-grid {
    gap: 16px;
  }

  .trade-tile__text {
    right: 20px;
    bottom: 20px;
    left: 20px;
    font-size: 0.875rem;
  }

  .trade-tile__text strong {
    font-size: 1.25rem;
  }
}

@media (min-width: 900px) {
  .trade-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ----------------------------------------------------------
   Process: navy panel, five rows, each ending in an outcome
   ---------------------------------------------------------- */

.process-panel {
  margin-inline: -16px;
  padding: 32px 20px;
  border-radius: 24px;
  background: var(--navy);
  color: var(--on-dark-muted);
}

.process-panel :focus-visible {
  outline-color: var(--white);
}

.process-panel h2,
.process-panel h3 {
  color: var(--white);
}

.process-panel__intro h2 {
  margin-top: 20px;
}

.process-panel__intro p:not(.pill) {
  max-width: 44ch;
  margin-top: 16px;
}

.process-panel__intro .btn {
  margin-top: 24px;
}

.process-rows {
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.process-row {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 16px;
  margin: 0;
  padding: 24px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
}

.process-row:last-child {
  border-bottom: 1px solid rgb(255 255 255 / 14%);
}

/* Blue on navy is 3.8:1, so numerals stay at 32px and up */
.process-row__num {
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.process-row__body p {
  max-width: 44ch;
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
}

.outcome {
  grid-column: 2;
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  transition: background-color 240ms ease;
}

.outcome span {
  display: block;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  font-weight: 500;
}

.outcome strong {
  display: block;
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* The row at mid-viewport is active: its outcome turns blue */
.process-row.is-active .outcome {
  background: var(--blue);
}

.process-row.is-active .outcome span {
  color: var(--white);
}

@media (min-width: 900px) {
  .process-panel {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    column-gap: 32px;
    margin-inline: 0;
    padding: 72px 64px;
    border-radius: var(--r-xl);
  }

  .process-panel__intro {
    position: sticky;
    top: 112px;
    grid-column: 1 / 5;
  }

  .process-panel__intro .btn {
    margin-top: 32px;
  }

  .process-rows {
    grid-column: 6 / 13;
    margin-top: 0;
  }

  .process-row {
    grid-template-columns: 72px 1fr 208px;
    column-gap: 24px;
    padding: 28px 0;
  }

  .process-row__num {
    font-size: 3rem;
  }

  .outcome {
    grid-column: 3;
    align-self: start;
    margin-top: 0;
  }

  /* The route line: a dotted line through one node per row, 24px left of the numerals */
  .process-row::before {
    position: absolute;
    z-index: 1;
    top: 46px;
    left: -30px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--navy);
    box-shadow: inset 0 0 0 2px var(--white);
    content: "";
    transition: transform 240ms var(--ease-out), background-color 240ms ease;
  }

  .process-row:not(:last-child)::after {
    position: absolute;
    top: 52px;
    bottom: -52px;
    left: -25.5px;
    border-left: 3px dotted rgb(255 255 255 / 28%);
    content: "";
  }

  .process-row.is-active::before {
    background: var(--blue);
    box-shadow: 0 0 0 2px var(--white);
    transform: scale(1.333);
  }
}

/* ----------------------------------------------------------
   Logistics: image, one highlight card, a ruled list
   ---------------------------------------------------------- */

.logistics {
  display: grid;
  grid-template-areas: "head" "media" "card" "list";
  gap: 24px;
}

.logistics__head {
  grid-area: head;
}

.logistics__head .lead {
  margin-top: 16px;
}

.logistics__media {
  position: relative;
  grid-area: media;
  margin: 0;
}

.logistics__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.photo-chip {
  position: absolute;
  bottom: 16px;
  left: 16px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: rgb(7 21 51 / 72%);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 500;
}

.highlight-card {
  position: relative;
  grid-area: card;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--blue);
  color: var(--white);
}

.highlight-card h3 {
  padding-right: 32px;
  color: var(--white);
}

.highlight-card p {
  margin-top: 8px;
  font-size: 1rem;
  line-height: 1.55;
}

.highlight-card__marker {
  position: absolute;
  top: 28px;
  right: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 0 0 2px rgb(255 255 255 / 40%);
}

.ruled-list {
  grid-area: list;
  margin: 0;
}

.ruled-list > div {
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.ruled-list > div:last-child {
  border-bottom: 1px solid var(--line);
}

.ruled-list dt {
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
}

.ruled-list dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 1rem;
}

@media (min-width: 900px) {
  .logistics {
    grid-template-areas: none;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto auto auto 1fr;
    align-items: start;
    gap: 0 32px;
  }

  .logistics__media {
    grid-column: 1 / 6;
    grid-row: 1 / span 4;
  }

  .logistics__media img {
    aspect-ratio: 4 / 5;
  }

  .logistics__head,
  .highlight-card,
  .ruled-list {
    grid-column: 7 / 13;
  }

  .logistics__head {
    grid-row: 1;
  }

  .highlight-card {
    grid-row: 2;
    margin-top: 32px;
    padding: 32px;
  }

  .highlight-card__marker {
    top: 36px;
    right: 32px;
  }

  .ruled-list {
    grid-row: 3;
    margin-top: 32px;
  }

  .ruled-list > div {
    display: grid;
    grid-template-columns: 232px 1fr;
    gap: 16px;
    padding: 20px 0;
  }

  .ruled-list dd {
    margin: 0;
  }
}

/* ----------------------------------------------------------
   On record: registrations instead of invented stats
   ---------------------------------------------------------- */

.record {
  display: grid;
  gap: 32px;
}

.record__intro h2 {
  margin-top: 20px;
}

.record__intro .lead {
  max-width: 46ch;
  margin-top: 16px;
}

/* The place marker before one plain line: the homepage fact and About's head office */
.record__fact,
.head-office {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 600;
}

.head-office {
  margin-top: 24px;
}

.record__intro .btn {
  margin-top: 32px;
}

.reg-tiles {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.reg-tile {
  display: grid;
  grid-template-columns: 100px 1fr; /* fits EPADS */
  align-items: center;
  column-gap: 16px;
  margin: 0;
  padding: 20px;
  border-radius: var(--r-lg);
}

.reg-tile__acr {
  grid-row: 1 / 3;
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.reg-tile__name {
  font-size: 0.875rem;
  line-height: 1.5;
}

.reg-tile__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
}

.reg-tile__icon {
  width: 26px;
  height: 26px;
  flex: none;
  stroke-width: 1.5;
}

.reg-tile--blue {
  background: var(--blue);
  color: var(--white);
}

.reg-tile--navy {
  background: var(--navy);
  color: var(--white);
}

.reg-tile--navy .reg-tile__name {
  color: var(--on-dark-muted);
}

@media (min-width: 900px) {
  .reg-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .reg-tile {
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
  }

  .reg-tile__acr {
    font-size: 3rem;
  }

  .reg-tile__name {
    margin-top: 8px;
  }

  .reg-tile__status {
    margin-top: auto;
    padding-top: 24px;
  }
}

@media (min-width: 1100px) {
  .record {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 0 32px;
  }

  .record__intro {
    grid-column: 1 / 7;
  }

  .reg-tiles {
    grid-column: 7 / 13;
  }
}

/* ----------------------------------------------------------
   Closing: gradient panel with a two-field brief starter
   ---------------------------------------------------------- */

.closing-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 32px;
  margin-inline: -16px;
  padding: 32px 20px;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(135deg, #0e2966, #2267ff);
  color: var(--white);
}

.closing-panel :focus-visible {
  outline-color: var(--white);
}

.closing-panel__mark {
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: 50%;
  width: auto;
  max-width: none;
  height: 130%;
  aspect-ratio: 123.218 / 100;
  fill: rgb(255 255 255 / 7%);
  transform: translateX(-50%);
}

.closing-panel__text h2 {
  color: var(--white);
}

.closing-panel__text p {
  max-width: 46ch;
  margin-top: 16px;
}

.brief-card {
  padding: 20px;
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: 0 24px 48px -24px rgb(6 14 23 / 45%);
  color: var(--ink);
}

.brief-card :focus-visible {
  outline-color: var(--blue);
}

.brief-card fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.brief-card legend {
  margin-bottom: 12px;
  padding: 0;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.option {
  position: relative;
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--navy);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

/* The native radio stays in the DOM for keyboard and screen readers */
.option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.option > span {
  display: flex;
  align-items: center;
  gap: 12px;
}

.option > span::before {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--field-border);
  content: "";
}

.option__text {
  display: grid;
  gap: 2px;
  line-height: 1.25;
}

.option__text b {
  font-weight: 500;
}

.option__text small {
  color: var(--slate);
  font-size: 0.8125rem;
}

.option:hover {
  border-color: var(--navy);
}

.option:has(input:checked) {
  border-color: var(--blue);
  background: var(--pale);
  box-shadow: inset 0 0 0 0.5px var(--blue);
}

.option input:checked + span::before {
  background: var(--blue);
  box-shadow: inset 0 0 0 4px var(--pale), inset 0 0 0 1.5px var(--blue);
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.brief-card__field {
  margin-top: 20px;
}

.brief-card__field label {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
}

.brief-card__field input {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-sm);
  color: var(--ink);
}

.brief-card__field input:focus-visible {
  border-color: var(--blue);
}

.brief-card__help {
  margin-top: 8px;
  color: var(--slate);
  font-size: 0.875rem;
}

.brief-card .btn {
  margin-top: 24px;
}

.brief-card__note {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.8125rem;
  line-height: 1.5;
}

@media (min-width: 900px) {
  .closing-panel {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 0 32px;
    margin-inline: 0;
    padding: 72px 64px;
    border-radius: var(--r-xl);
  }

  .closing-panel__text {
    grid-column: 1 / 7;
  }

  .brief-card {
    grid-column: 8 / 13;
    padding: 32px;
  }
}

/* ----------------------------------------------------------
   Homepage refinements: route map
   ---------------------------------------------------------- */

:root {
  --route-export: var(--navy);
  --route-import: var(--blue);
  --route-supply: #5b8cff;
}

.routes {
  grid-template-areas: "text" "chart" "legend";
}

.routes__text { grid-area: text; }
.routes__chart { grid-area: chart; }
.route-legend { grid-area: legend; }

.route-legend__item::before {
  position: absolute;
  z-index: 1;
  top: 26px;
  left: 0;
  width: 24px;
  height: 0;
  border-top: 3px solid currentColor;
  content: "";
}

.route-legend__item--export::before { color: var(--route-export); }
.route-legend__item--import::before { color: var(--route-import); }
.route-legend__item--supply::before { color: var(--route-supply); }
.route-legend__item--open::before { top: 25px; border-top: 4px dotted currentColor; color: rgb(7 21 51 / 45%); }

.route-map {
  width: 100%;
  height: auto;
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
}

.route-map__sea { fill: var(--pale-blue); }

.route-map__land {
  fill: #f6f8fd;
  fill-rule: evenodd;
  stroke: #9fb0d2;
  stroke-width: 0.7;
  stroke-linejoin: round;
}

.route-map__seas text {
  fill: #5a6680;
  font-size: 13px;
  font-style: italic;
}

/* Shipped routes are solid; open-to-order lanes are dotted (round caps on zero-length dashes make dots) */
.route {
  fill: none;
  stroke-width: 2.25;
  stroke-linecap: round;
}

.route--export, .route-light--export { stroke: var(--route-export); }
.route--import, .route-light--import { stroke: var(--route-import); }
.route--supply, .route-light--supply { stroke: var(--route-supply); }
.route--open { stroke: var(--route-export); stroke-width: 2.5; stroke-dasharray: 0 7; opacity: 0.45; }
.place--open { fill: var(--white); stroke: var(--slate); stroke-width: 1.5; }

/* The mask reveals each dotted route; JS arms it hidden, then draws it */
.route-draw {
  fill: none;
  stroke: #fff;
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.route-map.is-armed .route-draw {
  stroke-dashoffset: 1;
}

.route-map.is-drawing .route-draw {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Open lanes and markers fade in once the solid routes have drawn.
   An animation, not a transition, so the legend hover is not delayed by 2.6s afterwards. */
.route-map.is-armed :is(.route--open, .route-map__open) {
  opacity: 0;
}

.route-map.is-drawing .route--open {
  opacity: 0.45;
}

.route-map.is-drawing .route-map__open {
  opacity: 1;
}

.route-map.is-drawing :is(.route--open, .route-map__open) {
  animation: open-in 500ms ease 2.6s backwards;
}

@keyframes open-in {
  from {
    opacity: 0;
  }
}

/* Lights run along the shipped routes. Each loop moves the dashes by exactly one
   dash plus gap (shorter than any route), so it has no seam and no idle time. */
.route-light {
  display: none;
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 16 84;
  filter: drop-shadow(0 0 2px #fff) drop-shadow(0 0 4px rgb(34 103 255 / 45%));
  transition: opacity 160ms ease;
}

.route-map.is-drawing .route-light {
  display: inline;
  animation:
    open-in 500ms ease 2.6s backwards,
    route-light 2.4s linear infinite;
}

.route-map.is-drawing .route:not(.route--open) {
  animation: route-rest 500ms ease 2.6s backwards;
  opacity: 0.4;
}

.route-map.is-offscreen .route-light {
  animation-play-state: paused;
}

@keyframes route-rest {
  from {
    opacity: 1;
  }
}

@keyframes route-light {
  from {
    stroke-dashoffset: 16;
  }

  to {
    stroke-dashoffset: -84;
  }
}

.place {
  fill: var(--white);
  stroke: var(--navy);
  stroke-width: 2;
}

.place--hub {
  fill: var(--blue);
  stroke-width: 2.5;
}

.place__label {
  fill: var(--navy);
  font-size: 14px;
  font-weight: 700;
  paint-order: stroke;
  stroke: #fff;
  stroke-width: 4px;
  stroke-linejoin: round;
}

.place__label--hub {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
}

.place__label--open {
  fill: var(--slate);
  font-size: 11px;
  font-weight: 600;
  stroke-width: 3px;
}

@media (max-width: 1199px) {
  .place__label--open {
    display: none; /* under 11px on screen there; the legend names them */
  }
}

/* Phones: the chart shrinks to about half size, so labels double */
@media (max-width: 599px) {
  .route-map__seas {
    display: none;
  }

  .place__label {
    font-size: 28px;
    stroke-width: 6px;
  }

  .place__label--hub {
    font-size: 36px;
  }

  .route {
    stroke-width: 4;
  }

  .route-light {
    stroke-width: 6;
  }

  .route--open {
    stroke-dasharray: 0 10;
  }

  .route-map__open-gulf {
    display: none; /* no room beside the doubled labels */
  }
}

@media (min-width: 900px) {
  .routes {
    grid-template-areas: "text chart" "legend chart";
    grid-template-rows: auto 1fr;
    align-items: start;
  }

  .routes__chart {
    align-self: center;
  }
}

/* The hero has its own WhatsApp button, so the floating shortcut waits until the hero is passed.
   On phones it then sits inside the bottom quote bar. */
body:has([data-hero]):not(.is-past-intro) .whatsapp-float {
  display: none;
}

@media (max-width: 899px) {
  body:has([data-quote-bar]):not(.has-mobile-quote-bar) .whatsapp-float {
    display: none;
  }
}

/* Phones: square tiles leave room for the name and route on two-column rows */
@media (max-width: 599px) {
  .trade-tile {
    aspect-ratio: 1;
  }

  .trade-tile__arrow {
    width: 28px;
    height: 28px;
    font-size: 0.875rem;
  }
}

/* ----------------------------------------------------------
   Line icons (one set: 24px grid, 1.75 stroke, text colour)
   ---------------------------------------------------------- */

.icon {
  width: var(--icon);
  height: var(--icon);
  flex: none;
  stroke-width: 1.5;
}

/* KCCI registered: a solid pale tile beside FBR (blue) and SECP (navy) */
.reg-tile--pale {
  background: var(--pale);
  color: var(--navy);
}

.reg-tile--pale .reg-tile__name {
  color: var(--slate);
}

.reg-tile--line {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--navy);
  color: var(--navy);
}

.reg-tile--line .reg-tile__name {
  color: var(--slate);
}

.ruled-list dt {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ruled-list dt .icon {
  color: var(--blue-ink);
}

.option__icon {
  margin-left: auto;
  color: var(--slate);
}

.option:has(input:checked) .option__icon {
  color: var(--blue-ink);
}

.brief-card__field select {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
}

.brief-card__field select:focus-visible {
  border-color: var(--blue);
}

@media (min-width: 1200px) {
  .hero-index a {
    padding-left: 44px;
  }

  .hero-index__icon {
    position: absolute;
    top: 50%;
    left: 0;
    color: var(--pale);
    transform: translateY(-50%);
  }
}

/* ==========================================================
   Inner pages (creative-direction.md section 4)
   ========================================================== */

.media {
  border-radius: var(--r-lg);
}

/* Compact closing panel: no form, actions on the dark side of the gradient */
.closing-panel--compact {
  padding-block: 32px;
}

.closing-panel__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.closing-panel__actions .btn {
  width: 100%;
}

.closing-panel__actions .btn__label {
  flex: 1;
  justify-content: center;
}

@media (min-width: 600px) {
  .closing-panel__actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .closing-panel__actions .btn {
    width: auto;
  }

  .closing-panel__actions .btn__label {
    flex: none;
  }
}

@media (min-width: 900px) {
  .closing-panel--compact {
    padding: 48px 64px;
  }

  .closing-panel--compact .closing-panel__text {
    grid-column: 1 / 9;
  }
}

/* Light process rows (How We Work): same component, on white, no tracking */
.process-rows--light {
  margin-top: 0;
}

.process-rows--light .process-row {
  border-color: var(--line);
}

.process-rows--light h3 {
  color: var(--navy);
}

.process-rows--light .process-row__body p {
  max-width: 60ch;
  color: var(--ink);
}

.process-rows--light .outcome {
  background: var(--pale);
}

.process-rows--light .outcome span {
  color: var(--slate);
}

.process-rows--light .outcome strong {
  color: var(--navy);
}

@media (min-width: 900px) {
  .process-rows--light .process-row {
    grid-template-columns: 72px 1fr 240px;
  }

  .process-rows--light .process-row::before,
  .process-rows--light .process-row::after {
    display: none;
  }
}

/* Logistics without a photo: heading left, card and list right */
@media (min-width: 900px) {
  .logistics--no-media .logistics__head {
    grid-column: 1 / 6;
    grid-row: 1 / span 2;
  }

  .logistics--no-media .highlight-card {
    grid-row: 1;
    margin-top: 0;
  }

  .logistics--no-media .ruled-list {
    grid-row: 2;
  }
}

/* About: the three lines of business as a ruled list */
.ruled-list--wide dd .btn-text {
  display: flex;
  min-height: 44px;
}

@media (min-width: 900px) {
  .ruled-list--wide > div {
    grid-template-columns: 320px 1fr;
  }

  .ruled-list--wide dd .btn-text {
    display: inline-flex;
    margin-left: 8px;
  }
}

/* Registration tiles with a certificate button */
.reg-tile .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 16px;
}

@media (min-width: 900px) {
  .reg-tile .btn {
    margin-top: 20px;
  }
}

@media (min-width: 1100px) {
  .reg-tiles--wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .reg-tiles--wide .reg-tile {
    min-height: 280px;
  }
}

/* About: only some tiles have a certificate button, so the status follows the
   name at a fixed spot (names reserve two lines) and the button sits at the bottom */
@media (min-width: 900px) {
  .reg-tiles--wide .reg-tile__name {
    min-height: 3em; /* two lines at line-height 1.5 */
  }

  .reg-tiles--wide .reg-tile__status {
    margin-top: 24px;
    margin-bottom: 20px;
    padding-top: 0;
  }

  .reg-tiles--wide .reg-tile .btn {
    margin-top: auto;
  }
}

.reg-numbers {
  margin-top: 16px;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
}

.reg-tile--blue :focus-visible,
.reg-tile--navy :focus-visible,
.reg-tile--blue:focus-within :focus-visible {
  outline-color: var(--white);
}

.supplied-strip--inner {
  border-top: 1px solid var(--line);
}

/* Buyer brief fields */
.form-field input,
.form-field select,
.form-field textarea {
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--field-border);
  border-radius: var(--r-sm);
}

.form-field textarea {
  min-height: 144px;
}

.form-help {
  color: var(--slate);
}

.brief-review {
  border: 0;
  border-radius: var(--r-lg);
}

dialog {
  border-radius: var(--r-lg);
}

/* ----------------------------------------------------------
   "What to specify" lists on product and material pages
   ---------------------------------------------------------- */

.spec {
  margin-top: 24px;
  padding: 20px;
  border-radius: var(--r-md);
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--line);
}

.spec__title {
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
}

.spec-list {
  margin-top: 8px;
  padding: 0;
  list-style: none;
}

.spec-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.9375rem;
  line-height: 1.45;
}

.spec-list strong {
  color: var(--navy);
  font-weight: 600;
}

/* Incoterms: the code in a small navy tag */
.term {
  min-width: 48px;
  height: 28px;
  display: inline-grid;
  margin-right: 12px;
  padding: 0 8px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.incoterms__note {
  margin-top: 16px;
  color: var(--slate);
  font-size: 0.875rem;
}

/* ----------------------------------------------------------
   Inner-page cover photos: a navy scrim keeps white text above 7:1
   ---------------------------------------------------------- */

.page-intro--cover {
  background:
    linear-gradient(90deg, rgb(7 21 51 / 94%) 0%, rgb(7 21 51 / 86%) 55%, rgb(7 21 51 / 62%) 100%),
    var(--cover) center / cover no-repeat,
    var(--navy);
}

/* The joint venture diagram sits on the right of its photo, so the wash stays deep there */
.page-intro--cover:has(.jv-flow) {
  background:
    linear-gradient(90deg, rgb(7 21 51 / 94%) 0%, rgb(7 21 51 / 88%) 55%, rgb(7 21 51 / 82%) 100%),
    var(--cover) center / cover no-repeat,
    var(--navy);
}

/* ----------------------------------------------------------
   Dot texture: a fine grid that fades out, drifting slowly.
   Pseudo-elements move with transform, so it stays cheap to animate.
   ---------------------------------------------------------- */

.page-intro,
.process-panel,
.closing-panel,
.site-footer,
.section--mist {
  position: relative;
  isolation: isolate;
  overflow: clip; /* clip, not hidden: hidden would break the process intro's sticky position */
}

.page-intro::before,
.process-panel::before,
.closing-panel::before,
.site-footer::before,
.section--mist::before {
  position: absolute;
  z-index: -1;
  inset: -24px;
  background-image: radial-gradient(var(--dot, rgb(255 255 255 / 16%)) 1.1px, transparent 1.6px);
  background-size: 24px 24px;
  content: "";
  pointer-events: none;
  -webkit-mask-image: var(--dot-mask, radial-gradient(ellipse at 85% 20%, #000 0%, transparent 65%));
  mask-image: var(--dot-mask, radial-gradient(ellipse at 85% 20%, #000 0%, transparent 65%));
}

.section--mist {
  --dot: rgb(7 21 51 / 12%);
  --dot-mask: radial-gradient(ellipse at 0% 0%, #000 0%, transparent 55%);
}

.site-footer {
  --dot: rgb(255 255 255 / 8%);
  --dot-mask: linear-gradient(180deg, #000, transparent 70%);
}

.closing-panel {
  --dot-mask: radial-gradient(ellipse at 100% 100%, #000 0%, transparent 60%);
}

@media (prefers-reduced-motion: no-preference) {
  .page-intro::before,
  .process-panel::before,
  .closing-panel::before {
    animation: dots-drift 24s linear infinite;
  }

  @keyframes dots-drift {
    to {
      transform: translate(24px, 24px);
    }
  }
}

/* ==========================================================
   creative-direction-v2.md: shared components and new pages
   ========================================================== */

/* A slim ruled line between sections: one sentence and a text link */
.section--band {
  padding-block: 0;
}

.line-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 24px 0;
  border-block: 1px solid var(--line);
}

.line-band p {
  max-width: 64ch;
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* Rows that each start with the place marker */
.marker-list {
  padding: 0;
  list-style: none;
}

.marker-list li {
  position: relative;
  margin: 0;
  padding: 20px 0 20px 28px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.5;
}

.marker-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.marker-list li::before {
  position: absolute;
  top: 30px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 2px var(--white);
  content: "";
}

/* HS line: the navy term tag, then the code */
.hs {
  display: flex;
  align-items: center;
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 500;
}

.section--tight {
  padding-block: 48px;
}

.product-title {
  font-weight: 300;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.25rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.product-forms {
  color: var(--slate);
  font-size: 0.9375rem;
}

.split__content > .hs {
  margin-top: 12px;
}

.page-intro .closing-panel__actions {
  margin-top: 32px;
}

figure.split__media {
  position: relative;
}

/* Interim photo shown at its real size, not stretched */

.card .media {
  border-radius: 0;
}

/* Products: a pale band before each group */
.group-head {
  padding-block: 28px;
  background: var(--pale);
}

.group-head__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.group-head .pill {
  background: var(--white);
}

.group-head p {
  max-width: 56ch;
  color: var(--slate);
  font-size: 1rem;
}

.anchor-rows {
  display: grid;
  gap: 8px;
}

.anchor-nav__label {
  min-width: 64px;
  display: inline-flex;
  align-items: center;
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.page-intro .anchor-nav--gap {
  margin-top: 24px;
}

.text-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 24px;
  margin-top: 24px;
}

@media (max-width: 599px) {
  .anchor-nav__label {
    flex-basis: 100%;
  }
}

@media (min-width: 900px) {
  .line-band {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 28px 0;
  }

  .marker-list li {
    font-size: 1.25rem;
  }

  .section--tight {
    padding-block: 72px;
  }

  .group-head {
    padding-block: 40px;
  }

  .group-head__inner {
    flex-direction: row;
    align-items: baseline;
    gap: 32px;
  }
}

/* ----------------------------------------------------------
   Himalayan pink salt
   ---------------------------------------------------------- */

.salt-index {
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}

.salt-index__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  font-size: 0.9375rem;
}

.salt-index__row span {
  color: var(--navy);
  font-weight: 600;
}

.salt-index__row a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--blue-ink);
  font-weight: 500;
  text-decoration: none;
}

.salt-index__row a:hover {
  text-decoration: underline;
}

/* A family: sticky heading and photo beside numbered rows */
.salt-family {
  display: grid;
  gap: 32px;
}

.salt-family__aside p {
  max-width: 30ch;
  margin-top: 12px;
  color: var(--slate);
  font-size: 1rem;
}

.salt-family__media {
  position: relative;
  margin-top: 24px;
}

.salt-family__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.salt-rows .process-row__body .salt-row__spec {
  margin-top: 8px;
  color: var(--slate);
  font-size: 0.9375rem;
}

.salt-row__spec strong {
  margin-right: 6px;
  color: var(--navy);
  font-weight: 600;
}

.salt-row__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

/* Under your label: the navy process panel with two lists */
.pl-panel__intro h2 {
  margin-top: 16px;
}

.pl-panel__intro p {
  max-width: 44ch;
  margin-top: 16px;
  font-size: 1.0625rem;
}

.pl-panel__intro .btn {
  margin-top: 32px;
}

/* Three steps: what the buyer sends, what SMAKD does (blue: our part), the result */
.pl-flow {
  display: grid;
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.pl-step {
  position: relative;
  margin: 0;
  padding: 20px;
  border: 1px solid rgb(255 255 255 / 14%);
  border-radius: var(--r-md);
}

.pl-step--ours {
  border-color: transparent;
  background: var(--blue);
}

/* The arrow between the two cards: down on phones, across on wide screens */
.pl-step + .pl-step::before {
  position: absolute;
  top: -24px;
  left: 24px;
  width: 24px;
  height: 24px;
  background: var(--blue-300);
  content: "";
  -webkit-mask: var(--arrow) center / 20px no-repeat;
  mask: var(--arrow) center / 20px no-repeat;
  transform: rotate(90deg);
}

.pl-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.pl-step__num {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: none;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 14%);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 600;
}

.pl-step--ours .pl-step__num {
  background: var(--white);
  color: var(--blue-ink);
}

.pl-list {
  margin-top: 12px;
  padding: 0;
  list-style: none;
}

.pl-list li {
  margin: 0;
  padding: 10px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  color: var(--white);
  font-size: 1rem;
  line-height: 1.5;
}

.pl-list--done li {
  display: flex;
  gap: 10px;
  border-top-color: rgb(255 255 255 / 24%);
}

.pl-list--done svg {
  flex: none;
  margin-top: 4px;
}

.pl-result {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: rgb(255 255 255 / 6%);
}

.pl-result p {
  margin: 0;
  font-size: 0.9375rem;
}

.pl-result strong {
  color: var(--white);
  font-weight: 600;
}

@media (min-width: 600px) {
  .pl-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  .pl-step + .pl-step::before {
    top: 24px;
    left: -24px;
    transform: none;
  }

  .pl-result {
    grid-column: 1 / -1;
  }
}

@media (min-width: 900px) {
  .salt-family {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 0 32px;
  }

  .salt-family__aside {
    position: sticky;
    top: 112px;
    grid-column: 1 / 5;
  }

  .salt-family__media img {
    aspect-ratio: 4 / 5;
  }

  .salt-rows {
    grid-column: 6 / 13;
  }

  .salt-family--mirror .salt-family__aside {
    grid-column: 9 / 13;
    grid-row: 1;
  }

  .salt-family--mirror .salt-rows {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .salt-rows .process-row {
    grid-template-columns: 72px 1fr;
  }

  .pl-panel__intro {
    grid-column: 1 / 6;
  }

  .pl-flow {
    grid-column: 6 / 13;
    margin-top: 0;
  }
}

/* ----------------------------------------------------------
   Joint venture
   ---------------------------------------------------------- */

.jv-split {
  display: grid;
  gap: 24px;
}

.stepper {
  margin-top: 40px;
  padding: 0;
  list-style: none;
}

/* Phones: the node in a narrow first column, a dotted line down to the next */
.stepper__step {
  position: relative;
  display: grid;
  grid-template-columns: 28px 1fr;
  margin: 0;
  padding-bottom: 28px;
}

.stepper__step > * {
  grid-column: 2;
}

.stepper__step::before {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--navy);
  content: "";
}

.stepper__step:not(:last-child)::after {
  position: absolute;
  top: 16px;
  bottom: 4px;
  left: 4.5px;
  border-left: 3px dotted rgb(7 21 51 / 28%);
  content: "";
}

/* Step 03, written down before anything moves: the place marker */
.stepper__step--key::before {
  top: -2px;
  left: -2px;
  width: 16px;
  height: 16px;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--white);
}

.stepper__num {
  display: block;
  color: var(--blue);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stepper__step h3 {
  margin-top: 8px;
}

.stepper__step p {
  margin-top: 8px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.55;
}

.terms-list {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.terms-list li {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* The one dark block on the page */
.dont-panel {
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--navy);
  color: var(--white);
}

.dont-panel h3 {
  color: var(--white);
}

.dont-panel :focus-visible {
  outline-color: var(--white);
}

.dont-list {
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.dont-list li {
  display: grid;
  grid-template-columns: 29px 1fr;
  align-items: start;
  gap: 14px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid rgb(255 255 255 / 14%);
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.45;
}

.dont-panel__risk {
  margin-top: 8px;
  padding: 16px 20px;
  border-radius: 12px;
  background: rgb(255 255 255 / 8%);
  font-size: 1rem;
  font-weight: 600;
}

@media (min-width: 900px) {
  .jv-split {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 0 32px;
  }

  .jv-split > :first-child {
    grid-column: 1 / 6;
  }

  .jv-split > :last-child {
    grid-column: 6 / 13;
  }

  .jv-split--terms > :last-child {
    grid-column: 7 / 13;
  }

  .stepper {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
  }

  .stepper__step {
    display: block;
    padding: 40px 0 0;
  }

  .stepper__step:not(:last-child)::after {
    top: 4.5px;
    right: -16px;
    bottom: auto;
    left: 20px;
    border-top: 3px dotted rgb(7 21 51 / 28%);
    border-left: 0;
  }

  .dont-panel {
    padding: 40px;
  }

  .dont-list li {
    font-size: 1.125rem;
  }
}

/* ----------------------------------------------------------
   About: our story
   ---------------------------------------------------------- */

.story {
  display: grid;
  gap: 32px;
}

.story__media {
  position: relative;
}

.story__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  object-fit: cover;
}

.story__text h2 + p {
  margin-top: 16px;
}

.story__text p {
  max-width: 56ch;
}

@media (min-width: 900px) {
  .story {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 0 32px;
  }

  .story__text {
    grid-column: 1 / 7;
    grid-row: 1;
  }

  .story__media {
    width: 100%;
    max-width: 480px;
    grid-column: 8 / 13;
    grid-row: 1;
    justify-self: end;
  }

  .story__media img {
    aspect-ratio: 4 / 5;
  }
}

/* ----------------------------------------------------------
   Joint venture: one-shipment diagram, You bring / We bring, form card
   ---------------------------------------------------------- */

.jv-intro {
  display: grid;
  gap: 40px;
}

.jv-intro__text > * + * {
  margin-top: 16px;
}

.jv-flow {
  display: grid;
  justify-items: center;
  max-width: 480px;
  margin: 0;
}

.jv-flow__parties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.jv-flow__party {
  margin: 0;
  padding: 16px;
  border: 1.5px solid rgb(255 255 255 / 35%);
  border-radius: var(--radius);
  color: var(--white);
  font-weight: 600;
  line-height: 1.35;
}

.jv-flow__party span {
  display: block;
  margin-bottom: 4px;
  color: var(--blue-300);
  font-size: 0.875rem;
  font-weight: 500;
}

.jv-flow__party--smakd {
  border-color: var(--blue);
  background: var(--blue);
}

.jv-flow__party--smakd span {
  color: var(--pale);
}

.jv-flow__join {
  display: block;
  width: 100%;
  height: 56px;
  overflow: visible;
}

.jv-flow__join--short {
  height: 32px;
}

.jv-flow__join path {
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 2;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.jv-flow__track {
  opacity: 0.25;
}

.jv-flow__pulse {
  display: none;
}

.jv-flow__ship {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
}

.jv-flow__ship svg {
  flex: none;
  fill: none;
  stroke: var(--blue);
  stroke-width: 2;
}

.jv-flow__ship p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9375rem;
}

.jv-flow__ship strong {
  display: block;
  color: var(--navy);
  font-size: 1.125rem;
  font-weight: 600;
}

.jv-flow__end {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 16px;
  border: 1.5px solid rgb(255 255 255 / 35%);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
}

.jv-flow__end svg {
  fill: none;
  stroke: var(--blue-300);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Reveals one part at a time when it enters view, then the light flows without a pause */
@media (prefers-reduced-motion: no-preference) {
  .jv-flow.reveal-armed:not(.is-revealed) * {
    animation-play-state: paused;
  }

  .jv-flow__party,
  .jv-flow__ship,
  .jv-flow__end {
    animation: jv-in 450ms var(--ease-out) both;
  }

  .jv-flow__party + .jv-flow__party {
    animation-delay: 250ms;
  }

  .jv-flow__join {
    animation: jv-wipe 500ms ease-in-out 650ms backwards;
  }

  .jv-flow__ship {
    animation-delay: 1100ms;
  }

  .jv-flow__join--short {
    animation-delay: 1500ms;
    animation-duration: 250ms;
  }

  .jv-flow__end {
    animation-delay: 1700ms;
  }

  /* Dashes are in px because the SVG is stretched. Each loop moves them by exactly one
     dash plus gap (100px, shorter than a curve), so it has no seam and no idle time. */
  .jv-flow__pulse {
    display: inline;
    opacity: 0;
    stroke: var(--white);
    stroke-dasharray: 22px 78px;
    filter: drop-shadow(0 0 3px var(--blue-300));
    animation:
      jv-pulse-first 1.4s linear 2.2s,
      jv-pulse 1.4s linear 3.6s infinite;
  }

  /* starts as the first light reaches the shipment */
  .jv-flow__join--short .jv-flow__pulse {
    animation:
      jv-pulse-first 1.4s linear 3.8s,
      jv-pulse 1.4s linear 5.2s infinite;
  }

  @keyframes jv-in {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }

  @keyframes jv-wipe {
    from {
      clip-path: inset(0 0 100%);
    }

    to {
      clip-path: inset(0);
    }
  }

  @keyframes jv-pulse-first {
    from {
      opacity: 1;
      stroke-dasharray: 22px 400px;
      stroke-dashoffset: 22px;
    }

    to {
      opacity: 1;
      stroke-dasharray: 22px 400px;
      stroke-dashoffset: -78px;
    }
  }

  @keyframes jv-pulse {
    from {
      opacity: 1;
      stroke-dashoffset: 22px;
    }

    to {
      opacity: 1;
      stroke-dashoffset: -78px;
    }
  }
}

.jv-bring {
  display: grid;
  gap: 32px;
}

.jv-bring h3 {
  margin-bottom: 8px;
}

.jv-example {
  max-width: 72ch;
  margin-top: 40px;
  padding: 20px 24px;
  border-left: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--white);
  color: var(--ink);
}

.jv-example strong {
  color: var(--navy);
  font-weight: 600;
}

.jv-closing .brief-card .form-layout {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
  .jv-bring {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jv-closing .brief-card .form-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .jv-intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: center;
    gap: 0 32px;
  }

  .jv-intro__text {
    grid-column: 1 / 7;
  }

  .jv-flow {
    grid-column: 8 / 13;
    width: 100%;
  }

  .jv-closing {
    align-items: start;
  }

  .jv-closing .closing-panel__text {
    grid-column: 1 / 6;
  }

  .jv-closing .brief-card {
    grid-column: 6 / 13;
  }
}

/* ----------------------------------------------------------
   Footer contact: live office hours, Book a call
   ---------------------------------------------------------- */

.footer-contact {
  display: grid;
  gap: 12px;
  padding: 0;
  list-style: none;
}

.site-footer .footer-contact__item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  text-decoration: none;
}

.footer-contact__icon {
  flex: none;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(255 255 255 / 8%);
  color: var(--blue-300);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.footer-contact__item small {
  display: block;
  margin-bottom: 2px;
  color: var(--on-dark-muted);
  font-size: 0.8125rem;
  line-height: 1.2;
}

.footer-contact__value {
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.footer-contact__item:hover .footer-contact__icon,
.footer-contact__item:focus-visible .footer-contact__icon {
  background: var(--blue);
  color: var(--white);
}

.site-footer .footer-contact__item:hover,
.site-footer .footer-contact__item:focus-visible {
  text-decoration: none;
}

.footer-contact__item:hover .footer-contact__value {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer-hours {
  display: grid;
  gap: 4px;
  justify-self: start;
  padding: 10px 14px;
  border: 1px solid rgb(255 255 255 / 12%);
  border-radius: var(--r-sm);
  color: var(--on-dark-muted);
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-hours__now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 600;
}

.footer-hours__now::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--on-dark-muted);
}

.footer-hours__now.is-open::before {
  background: var(--blue-300);
  box-shadow: 0 0 0 4px rgb(126 166 255 / 20%);
}

.footer-hours__local {
  font-size: 0.875rem;
}

.footer-book {
  margin-top: 0;
}

.footer-contact__icon svg {
  width: 16px;
  height: 16px;
}

/* ----------------------------------------------------------
   Book a call dialog
   ---------------------------------------------------------- */

dialog.book-call {
  width: min(100% - 32px, 600px);
  padding: 24px;
  border-radius: var(--r-lg);
}

.book-call__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.book-call h2 {
  font-weight: 500;
  font-size: 1.75rem;
  line-height: 1.15;
}

.book-call__close {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-right: -8px;
  border: 0;
  border-radius: 50%;
  background: var(--mist);
  color: var(--navy);
  cursor: pointer;
}

.book-call__close:hover {
  background: var(--pale);
}

.book-call__close:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.book-call__lead {
  margin-top: 4px;
  color: var(--slate);
}

.book-call__group {
  margin-top: 24px;
  padding: 0;
  border: 0;
}

.book-call__group legend,
.book-call__field {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9375rem;
}

.book-call__group legend {
  margin-bottom: 10px;
}

.book-call__optional,
.form-optional {
  color: var(--slate);
  font-weight: 400;
  font-size: 0.875rem;
}

.book-call__days {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.book-call__day input,
.book-call__hour input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.book-call__day span {
  min-height: 52px;
  display: grid;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--navy);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
}

.book-call__day small {
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 400;
}

.book-call__day:hover span {
  border-color: var(--blue-300);
  background: var(--mist);
}

.book-call__day input:checked + span {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.book-call__day input:checked + span small {
  color: var(--pale);
}

.book-call__day input:disabled + span {
  opacity: 0.4;
  cursor: not-allowed;
}

.book-call__day input:focus-visible + span,
.book-call__hour input:focus-visible + .book-call__bar {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* hours: one row of pills with real heights (scaling would squash their round ends).
   Solid = available, hollow = past. The chosen hour and its neighbours rise as a wave. */
.book-call__hours {
  --rest: 32px;
  --near: 46px;
  --top: 60px;
  display: flex;
  margin-inline: -11px; /* keeps each hour 24px wide on a 360px phone */
}

.book-call__hour {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-rows: var(--top) auto;
  align-items: end;
  justify-items: center;
  gap: 8px;
  cursor: pointer;
}

.book-call__bar {
  width: 12px;
  height: var(--rest);
  border-radius: 999px;
  background: rgb(107 120 150 / 85%); /* --field-border */
  transition: height 180ms var(--ease-out), background-color 180ms var(--ease-out);
}

.book-call__tick {
  color: var(--slate);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

/* the hours on either side of the chosen one */
.book-call__hour:has(+ .book-call__hour input:checked) .book-call__bar,
.book-call__hour:has(input:checked) + .book-call__hour .book-call__bar {
  height: var(--near);
  background: rgb(34 103 255 / 70%); /* --blue */
  transition-delay: 30ms;
}

@media (hover: hover) {
  .book-call__hour:hover .book-call__bar {
    height: var(--near);
    background: var(--blue);
  }

  .book-call__hour:has(+ .book-call__hour:hover) .book-call__bar,
  .book-call__hour:hover + .book-call__hour .book-call__bar {
    height: calc((var(--rest) + var(--near)) / 2);
  }
}

.book-call__hour input:checked + .book-call__bar.book-call__bar.book-call__bar {
  height: var(--top);
  background: var(--blue);
  transition-delay: 0s;
}

.book-call__hour input:checked ~ .book-call__tick {
  color: var(--navy);
  font-weight: 600;
}

.book-call__hour:has(input:disabled) {
  cursor: not-allowed;
}

.book-call__hour input:disabled + .book-call__bar.book-call__bar.book-call__bar {
  height: var(--rest);
  border: 1.5px solid var(--line);
  background: none;
}

.book-call__hour input:disabled ~ .book-call__tick {
  opacity: 0.6;
}

.book-call__pick {
  min-height: 1.5em;
  margin-top: 20px;
  color: var(--slate);
}

.book-call__pick.is-set {
  color: var(--navy);
  font-weight: 600;
}

.book-call__fields {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.book-call__field {
  display: grid;
  gap: 6px;
}

.book-call__field input {
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--field-border);
  border-radius: 999px;
  font: inherit;
  font-weight: 400;
  color: var(--ink);
}

.book-call__field input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.book-call__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.book-call__note {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.8125rem;
}

/* spam trap: hidden from people, filled in by bots */
.form-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (min-width: 600px) {
  dialog.book-call {
    padding: 32px;
  }

  .book-call__days {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .book-call__fields {
    grid-template-columns: 1fr 1fr;
  }

  .book-call__field--full {
    grid-column: 1 / -1;
  }

  .book-call__hours {
    --rest: 40px;
    --near: 58px;
    --top: 76px;
    margin-inline: 0;
  }

  .book-call__bar {
    width: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .book-call__bar,
  .book-call__day span {
    transition: none;
  }
}

.blog-next {
  margin-top: 24px;
  color: var(--slate);
}

/* Image credits page */
.credits h2 {
  font-weight: 500;
  margin-top: 48px;
  font-size: 1.5rem;
}

.credits ul {
  margin-top: 16px;
  padding-left: 20px;
  max-width: 80ch;
}

.credits li + li {
  margin-top: 8px;
}

.credits .prose {
  margin-top: 16px;
}

.credits a {
  color: var(--blue-ink);
}

/* icon before a button label (Chat on WhatsApp) */
.btn__icon {
  flex: none;
  margin-right: 6px;
}

/* About: note on photo sources */
.sources {
  padding-top: var(--section-space);
}

.sources__card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.sources__card h2 {
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.3;
}

.sources__card p {
  max-width: 68ch;
  margin-top: 8px;
  color: var(--slate);
}

.sources__card .btn {
  justify-self: start;
}

@media (min-width: 768px) {
  .sources__card {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 32px;
    padding: 28px 32px;
  }
}

.card__figure {
  position: relative;
  margin: 0;
}

.form-privacy {
  margin-top: 12px;
  color: var(--slate);
  font-size: 0.875rem;
}

/* ----------------------------------------------------------
   Blog: one lead article, then ruled rows
   ---------------------------------------------------------- */

.post-lead {
  position: relative;
  display: grid;
  gap: 24px;
}

.post-lead__media,
.article__media {
  position: relative;
  margin: 0;
}

.post-lead__media img,
.article__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-md);
  object-fit: cover;
}

.post-lead__topic {
  color: var(--blue-ink);
  font-size: 0.8125rem;
  font-weight: 600;
}

.post-lead h3 {
  margin-top: 8px;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-size: var(--fs-h2);
}

.post-lead h3 a {
  color: inherit;
  text-decoration: none;
}

/* the whole lead is one target, without a second link in the tab order */
.post-lead h3 a::after {
  position: absolute;
  inset: 0;
  content: "";
}

.post-lead:hover h3 a,
.post-row:hover strong {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

.post-lead h3 + p {
  max-width: 44ch;
  margin-top: 16px;
  color: var(--slate);
  font-size: 1.125rem;
}

.post-rows {
  margin-top: 48px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.post-more + .post-rows {
  margin-top: 24px;
}

.post-rows li {
  margin: 0;
  border-top: 1px solid var(--line);
}

.post-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  align-items: center;
  gap: 20px;
  padding-block: 20px;
  color: inherit;
  text-decoration: none;
}

.post-row img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.post-row strong {
  display: block;
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
}

.post-row__text > span {
  display: block;
  margin-top: 6px;
  color: var(--slate);
  font-size: 0.9375rem;
}

.post-row__arrow {
  display: none;
  color: var(--navy);
  transition: transform 160ms var(--ease-out);
}

.post-row:hover .post-row__arrow {
  transform: translateX(4px);
}

/* Article */
.article {
  display: grid;
  gap: 40px;
  padding-block: 40px 72px;
}

.article__toc {
  padding-block: 20px;
  border-block: 1px solid var(--line);
}

.article__toc h2 {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0;
}

.article__toc ol {
  margin-top: 8px;
  padding-left: 20px;
}

.article__toc li + li {
  margin-top: 8px;
}

.article__toc a {
  color: var(--navy);
  font-size: 0.9375rem;
  text-decoration: none;
}

.article__toc a:hover {
  text-decoration: underline;
}

.article__body {
  max-width: 680px;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.article__body p + p,
.article__body ul + p,
.article__body p + ul,
.article__body pre + p {
  margin-top: 16px;
}

.article__body ul {
  padding-left: 20px;
}

.article__body li + li {
  margin-top: 8px;
}

.article__body a {
  color: var(--blue-ink);
}

.article__body h2 {
  font-weight: 500;
  margin: 56px 0 16px;
  font-size: 1.75rem;
  scroll-margin-top: 96px;
}

.article__body .pull-fact {
  margin: 32px 0;
  padding-left: 24px;
  border-left: 3px solid var(--blue);
  color: var(--navy);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.3;
}

.model-inquiry {
  margin: 24px 0 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.checklist {
  margin-block: 56px 32px;
  padding: 24px 20px;
  border-radius: var(--r-md);
  background: var(--mist);
}

.article__body .checklist h2 {
  margin: 0 0 16px;
  font-size: 1.25rem;
}

.article__body .checklist ul {
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  padding-left: 32px;
}

.article__body .checklist li + li {
  margin-top: 12px;
}

.checklist li::before {
  position: absolute;
  top: 0.35em;
  left: 0;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  content: "";
}

/* ----------------------------------------------------------
   Marketplace: a supply ledger
   ---------------------------------------------------------- */

.market-search {
  position: relative;
  max-width: 560px;
  color: var(--white);
}

.market-search svg {
  position: absolute;
  top: 17px;
  left: 20px;
}

.market-search input {
  width: 100%;
  height: 56px;
  padding: 0 24px 0 54px;
  border: 1px solid rgb(255 255 255 / 45%);
  border-radius: 999px;
  background: rgb(255 255 255 / 10%);
  color: var(--white);
  font: inherit;
}

.market-search input::placeholder {
  color: var(--on-dark-muted);
  opacity: 1;
}

.market-search input:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

.market-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.market-filter {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  border-radius: 999px;
  background: var(--mist);
}

.market-filter[hidden] {
  display: none;
}

.market-filter button {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--navy);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
}

.market-filter button:hover {
  background: var(--pale);
}

.market-filter button[aria-pressed="true"] {
  background: var(--navy);
  color: var(--white);
}

.market-count,
.market-note {
  margin-top: 16px;
  color: var(--slate);
  font-size: 0.9375rem;
}

.market-list {
  margin-top: 16px;
  padding: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.market-row {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 4px 16px;
  margin: 0;
  padding-block: 16px;
  border-top: 1px solid var(--line);
}

.market-row[hidden] {
  display: none;
}

.market-row img,
.market-row__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
  object-fit: cover;
}

.market-row__icon {
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--blue);
}

.market-row h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.market-row__name p,
.market-row__price {
  color: var(--slate);
  font-size: 0.9375rem;
}

.market-row__name p {
  margin-top: 4px;
}

.market-row__price {
  display: none;
}

.market-empty {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-block: 32px;
}

.market-empty[hidden] {
  display: none;
}

.market-post,
.market-end {
  display: grid;
  gap: 40px;
}

.market-post__text > p {
  max-width: 48ch;
  margin-top: 16px;
}

.market-steps {
  margin-top: 32px;
  padding-left: 20px;
}

.market-steps li {
  padding-left: 8px;
}

.market-steps li + li {
  margin-top: 16px;
}

.market-steps strong,
.market-soon strong {
  display: block;
  color: var(--navy);
}

.market-steps a,
.market-faq a {
  color: var(--blue-ink);
}

.market-soon {
  margin-top: 24px;
  padding: 0;
  list-style: none;
}

.market-soon li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
  padding: 20px;
  border: 1.5px dashed var(--line);
  border-radius: var(--r-md);
  color: var(--slate);
}

.market-soon li + li {
  margin-top: 12px;
}

.market-soon .pill {
  flex: none;
}

.market-faq {
  margin-top: 24px;
  border-bottom: 1px solid var(--line);
}

.market-faq details {
  border-top: 1px solid var(--line);
}

.market-faq summary {
  min-height: 56px;
  padding-block: 16px;
  color: var(--navy);
  font-weight: 600;
  cursor: pointer;
}

.market-faq details p {
  max-width: 60ch;
  padding-bottom: 20px;
  color: var(--slate);
}

@media (max-width: 599px) {
  .market-row .btn {
    --btn-pad: 14px;
    font-size: 0.875rem;
  }

  .market-filter button {
    padding: 0 11px;
    font-size: 0.875rem;
  }
}

@media (min-width: 600px) {
  .post-row {
    grid-template-columns: 160px 1fr auto;
    gap: 32px;
    padding-block: 28px;
  }

  .post-row img {
    aspect-ratio: 3 / 2;
  }

  .post-row strong {
    font-size: 1.5rem;
  }

  .post-row__arrow {
    display: block;
  }

  .article__body {
    font-size: 1.125rem;
  }

  .checklist {
    padding: 32px;
  }

  .market-row {
    grid-template-columns: 72px 1.4fr 1fr auto;
    gap: 24px;
  }

  .market-row img,
  .market-row__icon {
    width: 72px;
    height: 72px;
  }

  .market-row h3 {
    font-size: 1.25rem;
  }

  .market-row__price {
    display: block;
  }

  .market-post .form-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .post-lead {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: end;
    gap: 0 32px;
  }

  .post-lead__media {
    grid-column: 1 / 8;
  }

  .post-lead__text {
    grid-column: 8 / 13;
  }

  .article {
    padding-block: 56px 96px;
  }

  .article__media {
    max-width: 920px;
  }

  .market-post {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    align-items: start;
    gap: 0 32px;
  }

  .market-post__text {
    grid-column: 1 / 6;
  }

  .market-post .brief-card {
    grid-column: 6 / 13;
  }

  .market-end {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}

@media (min-width: 1100px) {
  .article {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px 64px;
  }

  .article__media {
    grid-column: 2;
  }

  .article__toc {
    position: sticky;
    top: 104px;
    grid-row: 1 / 3;
    grid-column: 1;
    align-self: start;
  }
}
