/* ============================================================
   TURKMENSULPHUR — STYLESHEET
   Palette : cream #F9F9F9 / charcoal #1A1A1A
   Accent  : sulphur #E5B80B / mustard #D4A017 (CTAs, hover, active only)
   Grid    : rigid 12 column
   ============================================================ */

/* ---------------------------------------------------------------- TOKENS */
:root {
  /* Ground + ink */
  --cream: #f9f9f9;
  --paper: #ffffff;
  --charcoal: #1a1a1a;
  --ink-2: #3d3d3d;
  --ink-3: #6b6b6b;
  --ink-4: #9a9a9a;
  --rule: #e7e5e0;
  --rule-soft: #f0eeea;

  /* Accent — used sparingly, on purpose */
  --sulphur: #e5b80b;
  --mustard: #d4a017;
  --sulphur-wash: #fdf8e3;

  /* Type */
  --f-sans: "Plus Jakarta Sans", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;

  /* Space — 12 column rig */
  --col: 12;
  --gutter: 1.5rem;
  --wrap: 1240px;
  --pad: 2rem;

  /* Radius + elevation */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --sh-1: 0 1px 2px rgba(26, 26, 26, 0.04), 0 2px 8px rgba(26, 26, 26, 0.04);
  --sh-2: 0 2px 4px rgba(26, 26, 26, 0.05), 0 12px 28px rgba(26, 26, 26, 0.08);
  --sh-3: 0 4px 8px rgba(26, 26, 26, 0.06), 0 24px 48px rgba(26, 26, 26, 0.1);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 160ms;
  --t: 280ms;
  --t-slow: 620ms;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--f-sans);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

p, figure, blockquote { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

::selection { background: var(--sulphur); color: var(--charcoal); }

/* ------------------------------------------------------------ PRIMITIVES */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* The rigid 12-column rig. Everything structural sits on it. */
.grid {
  display: grid;
  grid-template-columns: repeat(var(--col), minmax(0, 1fr));
  gap: var(--gutter);
}

.section { padding-block: clamp(5rem, 11vw, 9.5rem); }
.section--tight { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section--paper { background: var(--paper); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--sulphur);
  border-radius: 2px;
}

.h-xl { font-size: clamp(1.9rem, 8.2vw, 4.4rem); }
.h-lg { font-size: clamp(2rem, 4.2vw, 3.15rem); }
.h-md { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }

.lede {
  font-size: clamp(1.02rem, 1.35vw, 1.16rem);
  color: var(--ink-2);
  line-height: 1.72;
}

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

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { margin-block: 1rem 0.9rem; }
.section-head .lede { max-width: 58ch; }

/* --------------------------------------------------------------- BUTTONS */
.btn {
  --btn-bg: var(--charcoal);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    color var(--t) var(--ease), border-color var(--t) var(--ease);
}

/* The wipe: accent sweeps up from the base on hover. */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sulphur);
  transform: translateY(101%);
  transition: transform var(--t) var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:hover::after { transform: translateY(0); }
.btn:active { transform: translateY(0); }

.btn--primary { --btn-bg: var(--charcoal); --btn-fg: var(--cream); }
.btn--primary:hover { color: var(--charcoal); }

.btn--accent { --btn-bg: var(--sulphur); --btn-fg: var(--charcoal); }
.btn--accent::after { background: var(--charcoal); }
.btn--accent:hover { color: var(--cream); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--charcoal);
  border-color: rgba(26, 26, 26, 0.18);
}
.btn--ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }

.btn--sm { padding: 0.68rem 1.15rem; font-size: 0.84rem; }
.btn__arrow { transition: transform var(--t) var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------------------------- HEADER */
.hdr {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  transition: background var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
  border-bottom: 1px solid transparent;
}
.hdr.is-stuck {
  background: rgba(249, 249, 249, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--rule);
}

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

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 7px;
  background: var(--charcoal);
  display: grid;
  place-items: center;
  transition: transform var(--t) var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.05); }
.brand__mark span {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sulphur);
  line-height: 1;
}
.brand__name {
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.brand__name em { font-style: normal; color: var(--mustard); }

.nav { display: flex; align-items: center; gap: 2.1rem; }
.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  padding-block: 0.4rem;
  transition: color var(--t-fast) var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--sulphur);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--t) var(--ease);
}
.nav__link:hover { color: var(--charcoal); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__link.is-active { color: var(--charcoal); font-weight: 700; }

.hdr__actions { display: flex; align-items: center; gap: 0.6rem; }
.hdr__cta { display: inline-flex; }

/* Mailing list: compact until hovered, then the detail line slides open.
   The 0fr -> 1fr grid track is what makes the width animate smoothly. */
.hdr__mail { gap: 0.5rem; }
.mail__txt { display: inline-flex; align-items: baseline; }
.mail__more {
  display: inline-grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns var(--t) var(--ease), opacity var(--t) var(--ease);
  opacity: 0;
}
.mail__more > span {
  overflow: hidden;
  white-space: nowrap;
  padding-left: 0.3rem;
  font-weight: 500;
  color: var(--ink-3);
}
.hdr__mail:hover .mail__more,
.hdr__mail:focus-visible .mail__more {
  grid-template-columns: 1fr;
  opacity: 1;
}
.hdr__mail:hover .mail__more > span { color: var(--charcoal); }

/* Burger */
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
  cursor: pointer;
  padding: 0;
  place-items: center;
  transition: border-color var(--t-fast) var(--ease);
}
.burger:hover { border-color: var(--charcoal); }
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t-fast) var(--ease);
}
.burger span + span { margin-top: 4px; }
.burger.is-open span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed;
  inset: 76px 0 auto;
  z-index: 99;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
  padding: 1.25rem var(--pad) 2rem;
  display: grid;
  gap: 0.25rem;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease),
    visibility var(--t);
}
.drawer.is-open { transform: none; opacity: 1; visibility: visible; }
.drawer a {
  padding: 0.9rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  border-bottom: 1px solid var(--rule-soft);
}
.drawer .btn { margin-top: 1.1rem; }

/* ------------------------------------------------------------------ HERO */
.hero {
  position: relative;
  padding-block: clamp(8.5rem, 17vw, 12.5rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}
/* Soft sulphur bloom behind the plate — the only large use of the accent. */
.hero::before {
  content: "";
  position: absolute;
  top: -18%;
  right: -12%;
  width: min(760px, 78vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 184, 11, 0.16), transparent 68%);
  pointer-events: none;
}
.hero__in { align-items: center; row-gap: 3.5rem; }
.hero__copy { grid-column: 1 / span 7; }
.hero__art { grid-column: 8 / span 5; }

.hero h1 { margin-block: 1.4rem 1.6rem; }
.hero h1 em {
  font-style: normal;
  background-image: linear-gradient(var(--sulphur), var(--sulphur));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 0.1em;
  padding-bottom: 0.06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  animation: draw 900ms var(--ease) 620ms forwards;
}
@keyframes draw { to { background-size: 100% 0.1em; } }

.hero .lede { max-width: 48ch; }
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.4rem;
}

.hero__plate {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper);
  box-shadow: var(--sh-3);
}
.hero__plate img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--t-slow) var(--ease);
}
.hero__plate:hover img { transform: scale(1.06); }

.hero__tag {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.9rem;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: var(--sh-1);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--sulphur);
  box-shadow: 0 0 0 0 rgba(229, 184, 11, 0.55);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(229, 184, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(229, 184, 11, 0); }
}

/* Origin strip under the hero */
.origins {
  margin-top: clamp(3.5rem, 7vw, 5.5rem);
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 2.4rem;
}
.origins__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.origins__list { display: flex; flex-wrap: wrap; gap: 0.5rem 1.9rem; }
.origins__item {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--t-fast) var(--ease);
}
.origins__item:hover { color: var(--charcoal); }

/* ----------------------------------------------------------------- ABOUT */
.about__in { row-gap: 3.5rem; }
.about__copy { grid-column: 1 / span 6; }
.about__metrics { grid-column: 8 / span 5; }
.about__copy p + p { margin-top: 1.15rem; }

.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.metric {
  padding: 1.65rem 1.5rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.metric:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: rgba(229, 184, 11, 0.5);
}
.metric__n {
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.metric__k {
  margin-top: 0.55rem;
  font-size: 0.86rem;
  font-weight: 700;
}
.metric__d {
  margin-top: 0.3rem;
  font-size: 0.82rem;
  color: var(--ink-3);
  line-height: 1.5;
}

/* Applications row */
.uses { margin-top: clamp(3rem, 6vw, 4.5rem); }
.use {
  grid-column: span 4;
  padding-top: 1.4rem;
  border-top: 2px solid var(--rule);
  transition: border-color var(--t) var(--ease);
}
.use:hover { border-top-color: var(--sulphur); }
.use b { display: block; font-size: 1.05rem; font-weight: 700; }
.use p { margin-top: 0.4rem; font-size: 0.94rem; color: var(--ink-3); }

/* -------------------------------------------------------------- PRODUCTS */
.tabs {
  display: inline-flex;
  gap: 0.3rem;
  padding: 0.35rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 100px;
  box-shadow: var(--sh-1);
  position: relative;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 0.72rem 1.5rem;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.tab:hover { color: var(--charcoal); }
.tab[aria-selected="true"] { color: var(--charcoal); font-weight: 700; }
/* The pill slides between tabs rather than snapping. */
.tabs__pill {
  position: absolute;
  z-index: 0;
  left: 0;
  top: 0.35rem;
  bottom: 0.35rem;
  border-radius: 100px;
  background: var(--sulphur);
  transition: transform var(--t) var(--ease), width var(--t) var(--ease);
  will-change: transform, width;
}

.panel__intro {
  margin-block: 2.5rem 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}
.panel__intro p { max-width: 62ch; }

/* Fade/lift swap between tabs */
.panel { display: none; }
.panel.is-active { display: block; animation: swap var(--t-slow) var(--ease) both; }
@keyframes swap {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gutter); }
.card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: rgba(229, 184, 11, 0.55);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}
.card__title { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.02em; }
.card__note { margin-top: 0.3rem; font-size: 0.83rem; color: var(--ink-3); }
.card__f {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--sulphur-wash);
  color: var(--mustard);
  font-size: 0.85rem;
  font-weight: 800;
  transition: background var(--t) var(--ease), color var(--t) var(--ease);
}
.card:hover .card__f { background: var(--sulphur); color: var(--charcoal); }

.spec { margin: 1.4rem 0 0; display: grid; gap: 0; }
.spec__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.68rem 0;
  border-top: 1px solid var(--rule-soft);
}
.spec__row:first-child { border-top: 0; }
.spec__k { font-size: 0.84rem; color: var(--ink-3); min-width: 0; }
.spec__v {
  font-size: 0.87rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Pending figure — dashed, unmistakably not a published number. */
.pending {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.16rem 0.55rem;
  border: 1px dashed var(--ink-4);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-3);
  font-family: var(--f-mono);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.card__foot {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
  background: var(--cream);
  border: 1px solid var(--rule);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink-2);
}

/* Trade bar under the cards */
.trade {
  margin-top: 2rem;
  padding: 1.35rem 1.6rem;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2.5rem;
}
.trade__item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  min-width: 0;
}
.trade__k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.trade__v { font-size: 0.88rem; font-weight: 700; }

/* Notice — for the unverified powder grade */
.notice {
  margin-bottom: 1.75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(212, 160, 23, 0.4);
  border-left: 3px solid var(--mustard);
  background: var(--sulphur-wash);
  font-size: 0.88rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.notice b { font-weight: 700; color: var(--charcoal); }

/* Legend for pending chips */
.legend {
  margin-top: 1.6rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.83rem;
  color: var(--ink-3);
}

/* ------------------------------------------------------------- LOGISTICS */
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 1fr);
  gap: var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  /* Without this the snap point ignores the padding and the rail lands
     32px in on load, clipping the first card. */
  scroll-padding-inline: var(--pad);
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
  /* Edge fades, driven from JS so they only show where there is more to see. */
  --fade-l: 0px;
  --fade-r: 72px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
    #000 calc(100% - var(--fade-r)), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade-l),
    #000 calc(100% - var(--fade-r)), transparent 100%);
}
.rail::-webkit-scrollbar { height: 5px; }
.rail::-webkit-scrollbar-track { background: var(--rule-soft); border-radius: 4px; }
.rail::-webkit-scrollbar-thumb { background: var(--ink-4); border-radius: 4px; }
.rail::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

.mode {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 1.9rem 1.75rem;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease),
    border-color var(--t) var(--ease);
}
.mode:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-2);
  border-color: rgba(229, 184, 11, 0.55);
}
.mode__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: var(--cream);
  border: 1px solid var(--rule);
  color: var(--charcoal);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
    transform var(--t) var(--ease);
}
.mode:hover .mode__icon {
  background: var(--sulphur);
  border-color: var(--sulphur);
  transform: translateY(-2px) rotate(-4deg);
}
.mode__icon svg { width: 26px; height: 26px; }
.mode__kind {
  margin-top: 1.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mustard);
}
.mode__name { margin-top: 0.4rem; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.03em; }
.mode__blurb { margin-top: 0.7rem; font-size: 0.9rem; color: var(--ink-3); line-height: 1.6; }
.mode__table { margin-top: 1.4rem; }
.mode .spec__row:first-child { border-top: 1px solid var(--rule-soft); }

.rail-hint {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--ink-4);
}
.rail-hint svg { animation: nudge 2s var(--ease) infinite; }
@keyframes nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

/* Mobile accordion / stepper — hidden on desktop */
.stepper { display: none; grid-template-columns: minmax(0, 1fr); }

/* Ports */
.ports { margin-top: clamp(3rem, 6vw, 4.5rem); }
.port {
  grid-column: span 4;
  padding: 1.5rem 0 0;
  border-top: 2px solid var(--rule);
  transition: border-color var(--t) var(--ease);
}
.port:hover { border-top-color: var(--sulphur); }
.port__n { font-size: 1.05rem; font-weight: 700; }
.port__m {
  margin-top: 0.25rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mustard);
}
.port__d { margin-top: 0.6rem; font-size: 0.88rem; color: var(--ink-3); line-height: 1.55; }

/* Documentation list */
.docs { display: grid; gap: 0; margin-top: 2rem; }
.doc {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: var(--gutter);
  padding: 1.35rem 0;
  border-top: 1px solid var(--rule);
  transition: background var(--t) var(--ease);
}
.doc:last-child { border-bottom: 1px solid var(--rule); }
.doc:hover { background: rgba(229, 184, 11, 0.045); }
.doc b { font-size: 0.99rem; font-weight: 700; }
.doc p { font-size: 0.92rem; color: var(--ink-3); }

/* --------------------------------------------------------------- CONTACT */
.contact { background: var(--charcoal); color: var(--cream); }
.contact .eyebrow { color: rgba(249, 249, 249, 0.6); }
.contact .lede { color: rgba(249, 249, 249, 0.72); }
.contact__in { row-gap: 3.5rem; }
.contact__form { grid-column: 1 / span 7; }
.contact__aside { grid-column: 9 / span 4; }

.form { margin-top: 2.4rem; display: grid; gap: 1.15rem; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.15rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(249, 249, 249, 0.62);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(249, 249, 249, 0.16);
  border-radius: var(--r-sm);
  background: rgba(249, 249, 249, 0.05);
  color: var(--cream);
  font-size: 0.94rem;
  font-weight: 300;
  transition: border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.field textarea { resize: vertical; min-height: 128px; line-height: 1.6; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(249, 249, 249, 0.34); }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: rgba(249, 249, 249, 0.3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--sulphur);
  background: rgba(249, 249, 249, 0.08);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23F9F9F9' stroke-opacity='.6' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}
.field select option { background: var(--charcoal); color: var(--cream); }
/* Flash when the dropdown is pre-filled from a Get Quote click */
.field.is-filled select { border-color: var(--sulphur); }
@keyframes flash {
  0%, 100% { background: rgba(249, 249, 249, 0.05); }
  40% { background: rgba(229, 184, 11, 0.2); }
}
.field.is-flash select { animation: flash 1.1s var(--ease); }

.form__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 0.4rem;
}
.form__note { font-size: 0.82rem; color: rgba(249, 249, 249, 0.5); max-width: 34ch; }

.form__ok {
  display: none;
  padding: 1rem 1.2rem;
  border-radius: var(--r-sm);
  border: 1px solid rgba(229, 184, 11, 0.45);
  background: rgba(229, 184, 11, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}
.form__ok.is-on { display: block; animation: swap var(--t) var(--ease) both; }

/* Aside — address + map placeholder */
.info { display: grid; gap: 0; }
.info__row { padding: 1.15rem 0; border-top: 1px solid rgba(249, 249, 249, 0.13); }
.info__row:first-child { border-top: 0; padding-top: 0; }
.info__k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(249, 249, 249, 0.45);
}
.info__v { margin-top: 0.45rem; font-size: 0.98rem; line-height: 1.55; }
.info__v a { transition: color var(--t-fast) var(--ease); }
.info__v a:hover { color: var(--sulphur); }

.map {
  margin-top: 1.75rem;
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid rgba(249, 249, 249, 0.14);
  background:
    linear-gradient(rgba(249, 249, 249, 0.05) 1px, transparent 1px) 0 0 / 100% 34px,
    linear-gradient(90deg, rgba(249, 249, 249, 0.05) 1px, transparent 1px) 0 0 / 34px 100%,
    #202020;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  transition: border-color var(--t) var(--ease);
}
.map:hover { border-color: rgba(229, 184, 11, 0.4); }
.map__pin {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--sulphur);
  margin-inline: auto;
  box-shadow: 0 0 0 0 rgba(229, 184, 11, 0.5);
  animation: pulse 2.4s var(--ease) infinite;
}
.map__t { margin-top: 0.85rem; font-size: 0.88rem; font-weight: 700; }
.map__s { margin-top: 0.3rem; font-size: 0.8rem; color: rgba(249, 249, 249, 0.5); }

/* ---------------------------------------------------------------- FOOTER */
.foot {
  background: var(--charcoal);
  color: rgba(249, 249, 249, 0.55);
  border-top: 1px solid rgba(249, 249, 249, 0.1);
  padding-block: 2.5rem;
  font-size: 0.85rem;
}
.foot__in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.foot .brand__name { color: var(--cream); }
.foot__legal { max-width: 60ch; line-height: 1.6; }

/* ------------------------------------------------------------- REVEAL FX */
.rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.rv.is-in { opacity: 1; transform: none; }
/* Stagger children of a revealed row */
.rv[data-d="1"] { transition-delay: 80ms; }
.rv[data-d="2"] { transition-delay: 160ms; }
.rv[data-d="3"] { transition-delay: 240ms; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .hero__copy { grid-column: 1 / span 12; }
  .hero__art { grid-column: 1 / span 12; max-width: 560px; }
  .about__copy { grid-column: 1 / span 12; }
  .about__metrics { grid-column: 1 / span 12; }
  .contact__form { grid-column: 1 / span 12; }
  .contact__aside { grid-column: 1 / span 12; max-width: 520px; }
  .card { grid-column: span 6; }
  .port { grid-column: span 6; }
}

/* Between these widths the row is tight, so the mailing CTA holds its
   compact form and stops expanding on hover. */
@media (max-width: 1180px) {
  .hdr__mail .mail__more { display: none; }
}

@media (max-width: 1000px) {
  .hdr__mail { display: none; }
}

@media (max-width: 860px) {
  :root { --pad: 1.5rem; --gutter: 1.15rem; }

  .nav, .hdr__cta, .hdr__actions { display: none; }
  .burger { display: grid; }

  .use { grid-column: span 12; }
  .card { grid-column: span 12; }
  .port { grid-column: span 12; }

  .doc { grid-template-columns: 1fr; gap: 0.35rem; }

  /* Logistics: horizontal rail -> vertical stepper/timeline */
  .rail, .rail-hint { display: none; }
  .stepper { display: grid; position: relative; }
  /* The spine the steps hang off */
  .stepper::before {
    content: "";
    position: absolute;
    left: 19px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: var(--rule);
    border-radius: 2px;
  }
  .step { position: relative; padding-left: 3.5rem; padding-bottom: 1rem; }
  .step__dot {
    position: absolute;
    left: 0;
    top: 4px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    border: 2px solid var(--rule);
    color: var(--charcoal);
    transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
  }
  .step__dot svg { width: 20px; height: 20px; }
  .step.is-open .step__dot { background: var(--sulphur); border-color: var(--sulphur); }

  .step__btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border: 0;
    background: none;
    text-align: left;
    cursor: pointer;
  }
  .step__kind {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mustard);
  }
  .step__name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
  .step__chev {
    flex: none;
    transition: transform var(--t) var(--ease);
    color: var(--ink-3);
  }
  .step.is-open .step__chev { transform: rotate(180deg); }

  /* Height-animated accordion body */
  .step__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 0fr;
    transition: grid-template-rows var(--t) var(--ease);
  }
  .step.is-open .step__body { grid-template-rows: 1fr; }
  .step__inner { overflow: hidden; min-width: 0; }
  .step__blurb {
    font-size: 0.9rem;
    color: var(--ink-3);
    line-height: 1.6;
    padding-bottom: 0.5rem;
  }
  .step__table { padding-bottom: 1.25rem; }

  .row2 { grid-template-columns: minmax(0, 1fr); }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trade { gap: 0.85rem 1.75rem; }
}

@media (max-width: 560px) {
  .spec__row { flex-wrap: wrap; gap: 0.15rem; }
  .spec__v { text-align: left; }
}

@media (max-width: 480px) {
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .hero__actions .btn { width: 100%; }
  .tabs { width: 100%; overflow-x: auto; }
  .tab { flex: 1 0 auto; padding-inline: 1.1rem; }
}

/* Respect reduced-motion: keep the layout, drop the movement. */
@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;
  }
  .rv { opacity: 1; transform: none; }
  .hero h1 em { background-size: 100% 0.1em; }
}

@media print {
  .hdr, .drawer, .hero__art, .form, .map { display: none; }
  body { background: #fff; }
}
