/* Blue Coast Supply — site styles.
   Layout: full-width colour bands (white header, navy hero, light sections, navy quote band),
   each with a centred 1200px content column. Single light theme by design (brand colours). */
:root {
  --navy: #0b2545;
  --navy-2: #0f2d52;
  --mist: #dfe7ef;
  --spark: #4a8fe7;
  --coast: #13579e;
  --tide: #8db8e0;
  --tide-soft: #dceaf7;
  --buoy: #e07a2e;
  --ink: #0f1b2d;
  --muted: #4a5a70;
  --surface: #f5f8fb;
  --band: #e9eff6;
  --white: #ffffff;
  --line: #d3dde8;
  --line-strong: #7f91a8;
  --on-navy: #dce7f3;
  --success: #1d7a4b;
  --danger: #b3261e;

  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Menlo, Consolas, monospace;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-body);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; display: block; }
a { color: var(--coast); }
a:hover { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--coast);
  outline-offset: 2px;
}
h1, h2, h3 { font-family: var(--font-display); color: var(--navy); margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap {
  width: 100%;
  max-width: 1264px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 20;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: var(--radius-md);
}
.skip-link:focus { top: 12px; color: var(--white); }

.eyebrow {
  font: 600 12px/16px var(--font-body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--coast);
}
.on-navy .eyebrow { color: var(--tide); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 24px; border-radius: var(--radius-md); border: 0;
  font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-primary { background: var(--coast); color: var(--white); }
.btn-primary:hover { background: var(--navy); color: var(--white); }
.btn-signal { background: var(--buoy); color: var(--navy); }
.btn-signal:hover { background: #ea8a40; color: var(--navy); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 15px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 18px; }
.brand { display: flex; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; font-size: 15px; font-weight: 600; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; }
.nav a:not(.btn):hover { color: var(--coast); }
@media (max-width: 900px) {
  .nav { gap: 0; }
  .nav a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .brand img { height: 34px; }
  .nav .btn { padding: 0 14px; font-size: 14px; }
}

/* Hero */
.hero { background: var(--navy); color: var(--white); }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: center;
  padding-block: 88px 96px;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.hero h1 { color: var(--white); font-size: clamp(36px, 5vw, 56px); line-height: 1.08; font-weight: 800; letter-spacing: -0.02em; }
.hero .lede { max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--on-navy); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 6px; }
.text-link-light { color: var(--white); font-weight: 600; text-underline-offset: 4px; text-decoration-color: var(--tide); }
.text-link-light:hover { color: var(--tide-soft); }

.order-card {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg);
  padding: 26px 28px; display: flex; flex-direction: column; gap: 18px; min-width: 0;
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.order-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.order-label { font: 600 11px/16px var(--font-body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.order-title { font: 700 20px/1.3 var(--font-display); color: var(--navy); }
.order-meta { font-size: 14px; line-height: 1.45; color: var(--muted); }
.doc-no {
  font: 500 12px/16px var(--font-mono); color: var(--coast); background: var(--tide-soft);
  padding: 4px 8px; border-radius: var(--radius-sm); white-space: nowrap;
}
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.timeline li {
  display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .dot { width: 10px; height: 10px; border-radius: 999px; justify-self: center; }
.timeline .done .dot { background: var(--success); }
.timeline .now { background: var(--tide-soft); margin: 0 -10px; padding-inline: 10px; }
.timeline .now .dot { background: var(--coast); box-shadow: 0 0 0 4px var(--white); }
.timeline .next .dot { background: var(--white); box-shadow: inset 0 0 0 2px var(--line-strong); }
.timeline .step { font-weight: 600; }
.timeline .next .step { font-weight: 400; color: var(--muted); }
.timeline .now .step { color: var(--navy); }
.timeline time, .timeline .when { font: 400 13px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.timeline .now .when { color: var(--coast); font-weight: 500; }
.order-price {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px 16px;
  padding: 13px 16px; background: var(--surface); border-radius: var(--radius-md);
}
.order-price span:first-child { font-size: 13px; line-height: 1.4; color: var(--muted); }
.order-price strong { font: 500 18px/1.2 var(--font-mono); color: var(--navy); white-space: nowrap; }

/* Terms strip */
.terms { background: var(--white); border-bottom: 1px solid var(--line); }
.terms-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 34px; }
.terms-grid div { display: flex; flex-direction: column; gap: 4px; }
.terms-grid strong { font: 500 20px/1.3 var(--font-mono); color: var(--coast); }
.terms-grid span { font-size: 14px; line-height: 1.45; color: var(--muted); }

/* Generic section */
.section { padding-block: 88px; }
.section-white { background: var(--white); border-block: 1px solid var(--line); }
.section-band { background: var(--band); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 46rem; margin-bottom: 44px; }
.section-head-split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 48px; flex-wrap: wrap; margin-bottom: 44px;
}
.section-head-split .section-head { margin-bottom: 0; }
.section-head-split > p { max-width: 26rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.section h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.16; font-weight: 700; letter-spacing: -0.01em; }
.section-head .sub { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* Services */
.card-grid { display: grid; gap: 24px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.section-white .card { background: var(--surface); }
.card svg { width: 28px; height: 28px; stroke: var(--coast); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.card p { font-size: 15px; line-height: 1.55; color: var(--muted); }
.card .examples { font-size: 14px; line-height: 1.5; color: var(--ink); padding-top: 12px; margin-top: auto; border-top: 1px solid var(--line); }
.card .examples b { font-weight: 600; color: var(--muted); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-right: 6px; }

.cert-note { margin-top: 24px; font-size: 13px; color: var(--muted); }

/* Product categories with illustrations */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
.product { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.product .tile { background: var(--tide-soft); border-radius: var(--radius-lg); aspect-ratio: 16 / 11; max-width: 100%; display: grid; place-items: center; overflow: hidden; margin-bottom: 8px; }
.product .tile svg { width: 100%; height: 100%; display: block; }
.product h3 { font-size: 19px; line-height: 1.3; font-weight: 700; }
.product p { font-size: 15px; line-height: 1.5; color: var(--muted); }
/* Horizontal carousel: ~3.3 cards visible on desktop so the next one peeks in */
.carousel {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3.3);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
  scroll-padding-left: 0; padding-bottom: 14px;
  scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent;
}
.carousel .product { scroll-snap-align: start; }
.product-more .tile { background: var(--navy); }
.product-more .btn { align-self: flex-start; margin-top: 6px; }
.captcha:empty { display: none; }
.carousel:focus-visible { outline: 2px solid var(--coast); outline-offset: 4px; }
.carousel::-webkit-scrollbar { height: 6px; }
.carousel::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.carousel-side { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; justify-content: flex-end; }
.carousel-side > p { max-width: 22rem; color: var(--muted); font-size: 16px; line-height: 1.6; }
.carousel-nav { display: flex; gap: 10px; }
.carousel-btn {
  width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white);
  display: grid; place-items: center; cursor: pointer; color: var(--navy);
}
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-btn:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: var(--white); }
.carousel-btn:disabled { opacity: .35; cursor: default; }
@media (prefers-reduced-motion: reduce) { .carousel { scroll-behavior: auto; } }
@media (max-width: 960px) { .carousel { grid-auto-columns: calc((100% - 24px) / 2.2); } }
@media (max-width: 520px) { .carousel { grid-auto-columns: 82%; } .carousel-nav { display: none; } }

.ask-band {
  margin-top: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap;
  background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: 28px 32px;
}
.ask-band div { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ask-band h3 { color: var(--white); font-size: 22px; line-height: 1.3; }
.ask-band p { color: var(--on-navy); font-size: 16px; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 24px; }
.steps li { display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--navy); padding-top: 18px; min-width: 0; }
.steps li:last-child { border-top-color: var(--coast); }
.steps .num { font: 500 13px/1 var(--font-mono); color: var(--coast); }
.steps h3 { font-size: 19px; line-height: 1.3; }
.steps p { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; align-items: start; }
.about-copy { display: flex; flex-direction: column; gap: 18px; }
.about-copy p:not(.eyebrow) { font-size: 17px; line-height: 1.65; max-width: 36em; }
.points { list-style: none; margin: 0; padding: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.points li { padding: 20px 26px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.points li:last-child { border-bottom: 0; }
.points strong { font: 700 17px/1.35 var(--font-display); color: var(--navy); }
.points span { font-size: 15px; line-height: 1.55; color: var(--muted); }

/* Quote */
.quote { background: var(--navy); color: var(--white); }
.quote-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 72px; align-items: start; padding-block: 88px; }
.quote-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.quote h2 { color: var(--white); font-size: clamp(30px, 3.6vw, 40px); line-height: 1.15; font-weight: 700; letter-spacing: -0.01em; }
.quote-copy > p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--on-navy); }
.helps { margin-top: 8px; padding-top: 20px; border-top: 1px solid rgba(141, 184, 224, 0.35); display: flex; flex-direction: column; gap: 10px; }
.helps h3 { color: var(--white); font-size: 16px; font-family: var(--font-body); font-weight: 600; }
.helps ul { margin: 0; padding-left: 20px; color: var(--on-navy); font-size: 15px; line-height: 1.6; display: grid; gap: 4px; }
.contact-lines { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--on-navy); margin-top: 8px; }
.contact-lines a { color: var(--white); font-weight: 600; }

.quote-form {
  background: var(--white); color: var(--ink); border-radius: var(--radius-lg); padding: 32px;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; min-width: 0;
}
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 10px 12px; font: 400 16px/1.4 var(--font-body); color: var(--ink); background: var(--white);
}
.field textarea { min-height: 112px; resize: vertical; }
.field input[type="file"] { padding: 9px 10px; font-size: 14px; background: var(--surface); }
.field .hint { font-size: 13px; line-height: 1.45; color: var(--muted); }
.field input:user-invalid, .field textarea:user-invalid, .field select:user-invalid { border-color: var(--danger); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-foot p { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 26rem; }
.form-status { grid-column: 1 / -1; font-size: 14px; line-height: 1.5; padding: 12px 14px; border-radius: var(--radius-md); background: var(--tide-soft); color: var(--navy); }

/* Footer */
.site-footer { background: var(--white); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-direction: column; gap: 24px; padding-block: 44px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 20px 32px; flex-wrap: wrap; }
.footer-top img { height: 36px; width: auto; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 14px; font-weight: 600; }
.footer-nav a { color: var(--ink); text-decoration: none; }
.footer-nav a:hover { color: var(--coast); }
.footer-legal {
  display: flex; justify-content: space-between; gap: 8px 32px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.5; color: var(--muted);
}

/* Simple inner pages (privacy, thanks) */
.page-main { padding-block: 64px 88px; }
.prose { max-width: 44rem; display: flex; flex-direction: column; gap: 16px; }
.prose h1 { font-size: clamp(30px, 4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; }
.prose h2 { font-size: 21px; line-height: 1.3; margin-top: 16px; }
.prose p, .prose li { font-size: 16px; line-height: 1.7; }
.prose ul { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.prose .updated { font: 400 13px/1.4 var(--font-mono); color: var(--muted); }
.thanks-card {
  max-width: 40rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; display: flex; flex-direction: column; gap: 16px;
}
.thanks-card .check { width: 44px; height: 44px; border-radius: 999px; background: var(--tide-soft); display: grid; place-items: center; }
.thanks-card .check svg { width: 24px; height: 24px; stroke: var(--coast); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thanks-card h1 { font-size: clamp(28px, 4vw, 36px); line-height: 1.2; font-weight: 800; }
.thanks-card p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.thanks-card .btn { align-self: flex-start; margin-top: 8px; }

/* Responsive */
@media (max-width: 1080px) {
  .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
}
@media (max-width: 960px) {
  .hero-grid, .about-grid, .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .hero-grid { padding-block: 64px 72px; }
  .terms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .section, .quote-grid { padding-block: 64px; }
  .cols-4, .cols-3 { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .quote-form { grid-template-columns: minmax(0, 1fr); padding: 22px 18px; }
  .order-card { padding: 22px 18px; }
  .order-head { flex-direction: column-reverse; }
  .ask-band { padding: 24px 20px; }
  .ask-band .btn { width: 100%; }
  .form-foot .btn { width: 100%; }
  .thanks-card { padding: 28px 20px; }
}
@media (max-width: 400px) {
  .terms-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* =========================================================
   Motion: loading screen, hero intro, scroll reveals
   ========================================================= */
html { --intro: 1.75s; }
html.no-preload { --intro: .1s; }

.preloader { display: none; }
.js:not(.no-preload) .preloader {
  display: flex; position: fixed; inset: 0; z-index: 100; background: var(--navy);
  flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  animation: pl-lift .75s cubic-bezier(.7, 0, .2, 1) 1.45s forwards;
}
.pl-box { transform-box: fill-box; transform-origin: center; animation: pl-pop .5s cubic-bezier(.2, .9, .3, 1.3) both; }
.pl-wave { stroke-dasharray: 1; animation: pl-draw .55s ease-out .3s both; }
.pl-bar1, .pl-bar2 { transform-box: fill-box; transform-origin: left center; animation: pl-grow .35s ease-out both; }
.pl-bar1 { animation-delay: .7s; }
.pl-bar2 { animation-delay: .82s; }
.pl-word { font: 800 22px/1 var(--font-display); color: var(--white); letter-spacing: .02em; animation: rise .5s ease-out .85s both; }
.pl-line { width: 140px; height: 2px; background: rgba(141, 184, 224, .25); border-radius: 2px; overflow: hidden; }
.pl-line i { display: block; height: 100%; background: var(--buoy); transform-origin: left; animation: pl-grow 1.3s cubic-bezier(.4, 0, .2, 1) both; }

@keyframes pl-lift { to { transform: translateY(-100%); visibility: hidden; } }
@keyframes pl-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes pl-draw { from { stroke-dashoffset: 1; } }
@keyframes pl-grow { from { transform: scaleX(0); } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes fade { from { opacity: 0; } }

.js .intro { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--intro) + var(--d, 0s)); }
.js .timeline li { animation: rise .5s ease-out both; animation-delay: calc(var(--intro) + .6s + var(--n, 0) * .12s); }
.timeline .step .bar { display: block; height: 4px; margin-top: 7px; max-width: 180px; background: var(--white); border-radius: 2px; overflow: hidden; }
.timeline .step .bar i { display: block; height: 100%; width: 60%; background: var(--coast); border-radius: 2px; }
.js .timeline .step .bar i { animation: fill-60 1.4s cubic-bezier(.4, 0, .2, 1) both; animation-delay: calc(var(--intro) + 1.2s); }
@keyframes fill-60 { from { width: 0; } }
.timeline .now .dot { animation: pulse 2s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 4px var(--white), 0 0 0 4px rgba(19, 87, 158, .5); }
  100% { box-shadow: 0 0 0 4px var(--white), 0 0 0 13px rgba(19, 87, 158, 0); }
}

.scroll-cue { display: inline-flex; align-items: center; gap: 8px; color: var(--white); font-size: 15px; font-weight: 600; text-decoration: none; }
.scroll-cue:hover { color: var(--tide-soft); }
.scroll-cue svg { width: 20px; height: 20px; fill: none; stroke: var(--tide); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

@supports (animation-timeline: view()) {
  .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
}
@keyframes reveal { from { transform: translateY(36px); } }

/* =========================================================
   4-step process: one navy panel, text and animation together
   ========================================================= */
.process { background: var(--navy-2); color: var(--white); overflow-x: clip; }
.process-sticky { padding-block: 80px; }
.process-panel {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "copy visual" "nav nav"; gap: 40px 56px; align-items: center;
}
.process-copy { grid-area: copy; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.process-copy h2 { color: var(--on-navy); font-size: clamp(18px, 1.6vw, 21px); line-height: 1.3; font-weight: 700; letter-spacing: 0; }
.pslides { display: grid; margin-top: 28px; }
.pslide {
  grid-area: 1 / 1; display: flex; flex-direction: column; gap: 16px;
  opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1), visibility 0s linear .6s;
}
.pslide.is-active { opacity: 1; visibility: visible; transform: none; transition-delay: .1s, .1s, 0s; }
.pslide-num { font: 500 15px/1 var(--font-mono); color: var(--buoy); letter-spacing: .04em; }
.pslide-num span { color: var(--tide); }
.pslide h3 { color: var(--white); font: 800 clamp(34px, 4.6vw, 60px)/1.04 var(--font-display); letter-spacing: -.02em; }
.pslide p { max-width: 30rem; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: var(--on-navy); }

.process-visual { grid-area: visual; position: relative; aspect-ratio: 4 / 3; width: 100%; max-height: 62vh; min-width: 0; }
.process-visual::before {
  content: ""; position: absolute; inset: -10%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(19, 87, 158, .55), rgba(19, 87, 158, 0));
}
.scene { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .5s ease; }
.scene.is-active { opacity: 1; }

.pstep-nav { grid-area: nav; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.pstep {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0;
  padding: 0 0 4px; border: 0; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.pbar { display: block; width: 100%; height: 3px; margin-bottom: 8px; background: rgba(141, 184, 224, .25); border-radius: 2px; overflow: hidden; }
.pbar i { display: block; height: 100%; width: 0; background: var(--buoy); }
.pstep.is-active .pbar i, .pstep.is-done .pbar i { width: 100%; }
.is-scrolly .pstep.is-active .pbar i { width: calc(var(--sp, 0) * 100%); }
.is-auto .pstep.is-active .pbar i { animation: fill 4.5s linear both; }
@keyframes fill { from { width: 0; } to { width: 100%; } }
.pnum { font: 500 13px/1 var(--font-mono); color: var(--tide); }
.ptitle { font: 700 17px/1.3 var(--font-display); color: var(--tide); opacity: .75; transition: color .3s, opacity .3s; }
.pstep:hover .ptitle { opacity: 1; }
.pstep.is-active .ptitle { color: var(--white); opacity: 1; }
.pstep.is-active .pnum { color: var(--buoy); }
.pstep:focus-visible { outline: 2px solid var(--tide); outline-offset: 6px; }

/* Large screens: the panel pins while you scroll through the four steps */
.is-scrolly .process-track { height: 380vh; }
.is-scrolly .process-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; padding-block: 28px; }

/* Scene 1: idea */
.scene .draw { stroke-dasharray: 1; }
.scene.is-active .draw { animation: pl-draw 1s ease-out both; }
.scene.is-active .draw.d2 { animation-delay: .5s; }
.scene.is-active .draw.d3 { animation-delay: 1.3s; }
.scene.is-active .dim { animation: fade .6s ease-out 1.6s both; }
.pencil { transform: translate(330px, 288px); }
.scene.is-active .pencil { animation: pencil 2.2s ease-in-out .1s both; }
@keyframes pencil {
  0% { transform: translate(206px, 96px); }
  18% { transform: translate(294px, 96px); }
  30% { transform: translate(290px, 114px); }
  55% { transform: translate(281px, 262px); }
  72% { transform: translate(219px, 262px); }
  85% { transform: translate(210px, 114px); }
  100% { transform: translate(330px, 288px); }
}
.glow { transform-box: fill-box; transform-origin: center; }
.scene.is-active .glow { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 50% { transform: scale(1.25); opacity: .35; } }

/* Scene 2: factory production */
.gear { transform-box: fill-box; transform-origin: center; }
.scene.is-active .gear { animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scene.is-active .press { animation: press 1s ease-in-out infinite; }
@keyframes press { 50% { transform: translateY(12px); } }
.item { transform: translateX(calc(60px + var(--i) * 100px)); }
.scene.is-active .item { animation: conveyor 4s linear infinite; animation-delay: calc(var(--i) * -1s); }
@keyframes conveyor { from { transform: translateX(10px); } to { transform: translateX(450px); } }
.scene.is-active .belt { animation: belt .8s linear infinite; }
@keyframes belt { to { stroke-dashoffset: -20; } }

/* Scene 3: QC & inspection */
.scene.is-active .lens { animation: scan 2.4s ease-in-out infinite alternate; }
@keyframes scan { from { transform: translate(-26px, -30px); } to { transform: translate(24px, 40px); } }
.scene .tick { stroke-dasharray: 1; }
.scene.is-active .tick { animation: pl-draw .4s ease-out .6s both; }
.scene.is-active .tick.t2 { animation-delay: 1.1s; }
.scene.is-active .tick.t3 { animation-delay: 1.6s; }
.stamp { transform-box: fill-box; transform-origin: center; }
.scene.is-active .stamp { animation: stamp .45s cubic-bezier(.2, .9, .3, 1.4) 2.1s both; }
@keyframes stamp { from { opacity: 0; transform: scale(1.8); } }

/* Scene 4: logistics */
.scene.is-active .waves.front { animation: waves 3s linear infinite; }
.scene.is-active .waves.back { animation: waves 5s linear infinite; }
@keyframes waves { to { transform: translateX(-120px); } }
.ship { transform-box: fill-box; transform-origin: center bottom; }
.scene.is-active .ship { animation: ship 2.6s ease-in-out infinite; }
@keyframes ship { 50% { transform: translateY(5px) rotate(1.2deg); } }

/* =========================================================
   FAQ
   ========================================================= */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 0 72px; align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0;
  list-style: none; cursor: pointer; font: 700 18px/1.35 var(--font-display); color: var(--navy);
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex-shrink: 0; width: 9px; height: 9px; margin-right: 6px;
  border-right: 2px solid var(--coast); border-bottom: 2px solid var(--coast);
  transform: translateY(-3px) rotate(45deg); transition: transform .25s ease;
}
.faq-list details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq-list summary:hover { color: var(--coast); }
.faq-list summary:focus-visible { outline: 2px solid var(--coast); outline-offset: 4px; }
.faq-list details p { max-width: 40rem; padding-bottom: 22px; font-size: 16px; line-height: 1.65; color: var(--muted); }

@media (max-width: 960px) {
  .process-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "visual" "nav"; gap: 28px; }
  .process-visual { max-height: none; }
  .pslides { margin-top: 12px; }
  .faq-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .process-sticky { padding-block: 64px; }
  .ptitle { font-size: 13px; }
  .pnode { width: 44px; height: 44px; }
  .ptrack { top: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Value points along the bottom of the hero */
.hero-grid { padding-bottom: 64px; }
.hero-terms { border-top: 1px solid rgba(141, 184, 224, .25); padding-block: 28px 40px; }
.hero-terms strong { color: var(--tide); }
.hero-terms span { color: var(--on-navy); }
@media (max-width: 960px) { .hero-grid { padding-bottom: 48px; } }

/* =========================================================
   Light theme for the top of the page (hero + how it works)
   ========================================================= */
.js:not(.no-preload) .preloader { background: var(--white); }
.pl-word { color: var(--navy); }
.pl-line { background: var(--line); }

.hero { background: var(--white); color: var(--ink); }
.hero h1 { color: var(--navy); }
.hero .lede { color: var(--muted); }
.scroll-cue { color: var(--navy); }
.scroll-cue:hover { color: var(--coast); }
.scroll-cue svg { stroke: var(--coast); }
.order-card {
  border: 1px solid var(--line);
  box-shadow: 0 28px 56px -28px rgba(11, 37, 69, .28), 0 2px 6px rgba(11, 37, 69, .06);
}
.hero-terms { border-top-color: var(--line); }
.hero-terms strong { color: var(--coast); }
.hero-terms span { color: var(--muted); }

.process { background: var(--white); color: var(--ink); border-top: 1px solid var(--line); }
.process-copy h2 { color: var(--ink); }
.pslide-num { color: var(--coast); }
.pslide-num span { color: var(--muted); }
.pslide h3 { color: var(--navy); }
.pslide p { color: var(--muted); }
.process-visual {
  border-radius: 20px; overflow: hidden;
  background: radial-gradient(circle at 55% 45%, #18426f 0%, var(--navy) 72%);
  box-shadow: 0 30px 60px -30px rgba(11, 37, 69, .45);
}
.process-visual::before { display: none; }
.pbar { background: var(--line); }
.pnum { color: var(--muted); }
.ptitle { color: var(--muted); opacity: 1; }
.pstep:hover .ptitle { color: var(--navy); }
.pstep.is-active .ptitle { color: var(--navy); }
.pstep.is-active .pnum { color: var(--coast); }
.pstep:focus-visible { outline-color: var(--coast); }

/* Step timeline: icons on a line that fills as you progress */
.pstep-nav { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.ptrack { position: absolute; left: 12.5%; right: 12.5%; top: 26px; height: 2px; background: var(--line); border-radius: 2px; }
.ptrack i { display: block; height: 100%; width: calc(var(--fp, 0) * 100%); background: var(--coast); border-radius: 2px; transition: width .35s ease; }
.is-scrolly .ptrack i { transition: none; }
.pstep { position: relative; align-items: center; text-align: center; gap: 12px; padding: 0 6px 4px; }
.pnode {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--white); border: 2px solid var(--line); color: var(--muted);
  transition: background .3s, border-color .3s, color .3s, transform .3s;
}
.pnode svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pstep:hover .pnode { border-color: var(--coast); color: var(--coast); }
.pstep.is-done .pnode { border-color: var(--coast); color: var(--coast); }
.pstep.is-active .pnode { background: var(--navy); border-color: var(--navy); color: var(--white); transform: scale(1.08); animation: node-pulse 2.2s ease-out infinite; }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(19, 87, 158, .35); } 100% { box-shadow: 0 0 0 12px rgba(19, 87, 158, 0); } }
.pstep .ptitle { font-size: 15px; }

/* =========================================================
   Vectr-inspired restyle: mist ground, pill buttons, centred hero,
   vertical stepper, icon feature grid
   ========================================================= */
.nowrap { white-space: nowrap; }

/* Buttons: pills, navy primary, soft grey secondary */
.btn { border-radius: 999px; }
.btn-primary, .btn-signal { background: var(--navy); color: var(--white); }
.btn-primary:hover, .btn-signal:hover { background: var(--coast); color: var(--white); }
.btn-ghost { background: rgba(11, 37, 69, .08); color: var(--navy); }
.btn-ghost:hover { background: rgba(11, 37, 69, .14); color: var(--navy); }
.product-more .btn-signal { background: var(--white); color: var(--navy); }
.product-more .btn-signal:hover { background: var(--tide-soft); color: var(--navy); }

/* Loading screen on the mist ground */
.js:not(.no-preload) .preloader { background: var(--mist); }
.pl-line { background: rgba(11, 37, 69, .12); }
.pl-line i { background: var(--coast); }

/* Header: links left, logo centred, pills right */
.site-header { background: var(--mist); border-bottom: 0; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-block: 16px; }
.nav-left { display: flex; gap: 28px; }
.nav-left a { font: 600 12px/1 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.nav-left a:hover { color: var(--coast); }
.header-inner .brand { justify-self: center; }
.nav-right { justify-self: end; display: flex; gap: 10px; }
@media (max-width: 960px) {
  .header-inner { grid-template-columns: auto 1fr; }
  .nav-left { display: none; }
  .header-inner .brand { justify-self: start; }
}
@media (max-width: 560px) { .nav-right .btn-ghost { display: none; } }

/* Hero: centred and quiet */
.hero { background: radial-gradient(120% 90% at 50% 0%, #f4f7fa 0%, var(--mist) 62%); color: var(--ink); }
.hero-center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; padding-block: 96px 64px; }
.hero h1 { max-width: 15ch; color: var(--ink); font-size: clamp(40px, 6.4vw, 86px); line-height: 1.02; letter-spacing: -.035em; }
.hero .lede { max-width: 38rem; color: var(--muted); font-size: clamp(17px, 1.5vw, 20px); }
.hero .hero-actions { justify-content: center; gap: 12px; }
.scroll-cue {
  margin-top: 36px; font: 600 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); text-decoration: underline; text-underline-offset: 7px; text-decoration-color: var(--line-strong);
}
.scroll-cue:hover { color: var(--coast); }

/* How it works: same mist ground, stepper left, animation right */
.process { background: var(--mist); border-top: 0; }
.process-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); grid-template-areas: "copy visual"; gap: 40px 64px; align-items: center; }
.process-copy { gap: 36px; }
.process-head { display: flex; flex-direction: column; gap: 12px; }
.process-copy h2 { color: var(--navy); font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; letter-spacing: -.01em; }
.process-visual { max-height: 70vh; }

.vstep-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.vstep-list .pstep {
  position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 16px; align-items: start;
  width: 100%; padding: 8px 0; border: 0; background: none; text-align: left; cursor: pointer;
}
.vnum {
  width: 40px; height: 32px; display: grid; place-items: center; border-radius: 8px;
  font: 500 12px/1 var(--font-mono); color: var(--muted); transition: background .3s, color .3s, box-shadow .3s, height .3s;
}
.pstep.is-active .vnum { height: 40px; background: var(--white); color: var(--navy); font-size: 13px; box-shadow: 0 8px 18px -10px rgba(11, 37, 69, .45); }
.vbody { display: flex; flex-direction: column; min-width: 0; padding-top: 6px; }
.vtitle { font: 700 15px/1.3 var(--font-display); color: var(--ink); transition: color .3s; }
.pstep.is-active .vbody { padding-top: 4px; }
.pstep.is-active .vtitle { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; color: var(--navy); }
.vlabel { margin-left: 8px; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: middle; }
.vdesc { max-width: 30rem; max-height: 0; opacity: 0; overflow: hidden; font-size: 16px; line-height: 1.6; color: var(--muted); transition: max-height .45s ease, opacity .3s ease, margin-top .45s ease; }
.pstep.is-active .vdesc { max-height: 150px; opacity: 1; margin-top: 10px; }
.vline { position: absolute; left: 19px; top: 56px; bottom: 8px; width: 2px; border-radius: 2px; background: rgba(11, 37, 69, .12); opacity: 0; transition: opacity .3s; overflow: hidden; }
.pstep.is-active .vline { opacity: 1; }
.vline i { display: block; width: 100%; height: 100%; background: var(--navy); transform-origin: top; }
.is-scrolly .pstep.is-active .vline i { transform: scaleY(var(--sp, 0)); }
.is-auto .pstep.is-active .vline i { animation: vfill 4.5s linear both; }
@keyframes vfill { from { transform: scaleY(0); } }
.pstep:hover .vtitle { color: var(--coast); }
.vstep-list .pstep:focus-visible { outline: 2px solid var(--coast); outline-offset: 4px; border-radius: 8px; }

@media (max-width: 960px) {
  .process-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "visual" "steps"; gap: 28px; }
  .process-copy { display: contents; }
  .process-head { grid-area: head; }
  .vstep-list { grid-area: steps; }
  .process-visual { max-height: none; }
}

/* Why Blue Coast: four features, thin dividers, no cards */
.about { background: var(--white); border-block: 1px solid var(--line); }
.about-head { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; margin-bottom: 56px; }
.about-head h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; }
.about-head p:not(.eyebrow) { font-size: 18px; line-height: 1.6; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 0; }
.feature { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 4px 28px 8px; border-left: 1px solid var(--line); }
.feature svg { width: 40px; height: 40px; margin-bottom: 28px; fill: none; stroke: var(--navy); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 18px; line-height: 1.3; }
.feature p { font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: minmax(0, 1fr); } .feature { padding-inline: 20px; } }

/* Continuous carousel: no snapping while it drifts */
.carousel.is-marquee { scroll-snap-type: none; scroll-behavior: auto; }

/* =========================================================
   Accessibility additions
   ========================================================= */
[hidden] { display: none !important; }

/* Pause / play controls for anything that moves on its own */
.i-play { display: none; }
[aria-pressed="true"] .i-pause { display: none; }
[aria-pressed="true"] .i-play { display: block; }
.carousel-btn .i-play { fill: currentColor; stroke: none; }
.stage-pause {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(220, 234, 247, .35); background: rgba(11, 37, 69, .55); color: var(--white);
}
.stage-pause:hover { background: rgba(11, 37, 69, .8); }
.stage-pause:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
.stage-pause svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.stage-pause .i-play { fill: currentColor; stroke: none; }
.process.is-paused .scene, .process.is-paused .scene * { animation-play-state: paused !important; }
.process.is-paused .pstep.is-active .vline i { animation-play-state: paused; }

/* Bigger tap area for the small header links */
.nav-left a { padding-block: 12px; }
