/* ==========================================================================
   Joshos Marine
   --------------------------------------------------------------------------
   1. Fonts & tokens      5. Hero            9.  Process & about
   2. Base                6. Ticker          10. Booking & forms
   3. Shared pieces       7. Services        11. FAQ, contact, footer
   4. Header & menu       8. 12V feature     12. Motion & print
   ========================================================================== */

/* 1. Fonts & tokens ------------------------------------------------------- */

@font-face {
  font-family: "Big Shoulders Display";
  src: url("../assets/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("../assets/fonts/instrument-sans-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../assets/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  /* deep water */
  --ink-950: #030c17;
  --ink-900: #06182a;
  --ink-850: #081f36;
  --ink-800: #0b2843;
  --ink-700: #123757;
  --ink-600: #1d4c72;
  /* foam + instrument glow */
  --foam-100: #e9fbf8;
  --foam-200: #c8f3ed;
  --foam-300: #97e6dc;
  --foam-400: #5fd3c7;
  /* lifebuoy orange */
  --signal-300: #ffb38a;
  --signal-400: #ff8a4c;
  --signal-500: #ff6a2a;
  --signal-600: #e9540f;
  --signal-700: #b93f08;
  /* sailcloth */
  --paper: #fffdf8;
  --sand-50: #f8f3e9;
  --sand-100: #f1e9da;
  --sand-200: #e6dcc8;
  --sand-300: #d3c6ab;

  --text: #0a1e33;
  --text-soft: #46586b;
  --text-light: #dbe7f0;
  --text-light-soft: #9ab0c3;

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(1.25rem, 4.5vw, 3rem);
  --maxw: 1280px;
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius: 20px;
  --radius-sm: 12px;
  --header-h: 76px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --shadow-card: 0 1px 0 rgba(10, 30, 51, .04), 0 18px 40px -22px rgba(10, 30, 51, .35);
}

/* 2. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  background: var(--ink-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a, button, label { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid var(--signal-500);
  outline-offset: 3px;
  border-radius: 4px;
}
::selection { background: var(--signal-500); color: var(--ink-900); }

.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: .75rem 1.1rem; border-radius: 10px;
  background: var(--signal-500); color: var(--ink-900);
  font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.icon {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.icon--fill { fill: currentColor; stroke: none; }

/* 3. Shared pieces -------------------------------------------------------- */

.section { position: relative; padding-block: var(--section-y); }
.section--sand { background: var(--sand-50); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink-900); color: var(--text-light); }
.section--signal { background: var(--signal-500); color: var(--ink-900); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .75em;
  font-family: var(--font-mono);
  font-size: .75rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-soft);
}
.eyebrow--light { color: var(--foam-300); }
.eyebrow--ink { color: var(--ink-900); }
.eyebrow__num {
  display: inline-grid; place-items: center;
  min-width: 2.4em; padding: .3em .55em;
  border: 1px solid currentColor; border-radius: 999px;
  font-size: .92em; letter-spacing: .08em;
}
.eyebrow__led {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--signal-500);
  box-shadow: 0 0 0 4px rgba(255, 106, 42, .18), 0 0 14px 2px rgba(255, 106, 42, .7);
  animation: led-breathe 2.6s ease-in-out infinite;
}

.display {
  margin-top: .32em;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.75rem, 1.4rem + 5.6vw, 5.75rem);
  line-height: .9;
  letter-spacing: -.005em;
  text-transform: uppercase;
  text-wrap: balance;
  color: var(--ink-900);
}
.display em {
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: .9em;
  letter-spacing: -.02em; text-transform: none;
  color: var(--signal-700);
}
.display--light { color: #fff; }
.display--light em { color: var(--signal-500); }
.display--ink em { color: var(--paper); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head__lede {
  margin-top: 1.4rem;
  max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem);
  color: var(--text-soft);
  text-wrap: pretty;
}
.section-head__lede--light { color: var(--text-light-soft); }
.section-head__lede a { color: var(--signal-700); font-weight: 600; text-underline-offset: 3px; }
.section-head--split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1.2fr .8fr; gap: 4rem; }
  .section-head--split .section-head__lede { margin: 0 0 .5rem; }
}

/* buttons */
.btn {
  --btn-bg: var(--signal-500);
  --btn-fg: var(--ink-900);
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  padding: .82em 1.35em;
  border: 2px solid transparent; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 1.1875rem; font-weight: 800;
  letter-spacing: .055em; line-height: 1.1; text-transform: uppercase; text-decoration: none;
  white-space: nowrap;
  transition: transform .25s var(--ease-out), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.btn .icon { transition: transform .3s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }

.btn--primary { box-shadow: 0 10px 26px -12px rgba(255, 106, 42, .85), inset 0 -3px 0 rgba(6, 24, 42, .16); }
.btn--primary:hover { --btn-bg: var(--signal-400); transform: translateY(-2px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(200, 243, 237, .32); }
.btn--ghost:active { border-color: var(--foam-300); background: rgba(151, 230, 220, .1); }
@media (hover: hover) { .btn--ghost:hover { border-color: var(--foam-300); --btn-fg: var(--foam-200); background: rgba(151, 230, 220, .06); } }

.btn--dark { --btn-bg: var(--ink-900); --btn-fg: #fff; }
.btn--dark:hover { --btn-bg: var(--ink-700); transform: translateY(-2px); }

.btn--quiet { --btn-bg: transparent; --btn-fg: currentColor; padding-inline: .6em; opacity: .8; }
.btn--quiet:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }

.btn--sm { font-size: 1.0625rem; padding: .62em 1.05em; border-radius: 10px; }
.btn--lg { font-size: clamp(1.1875rem, 1.1rem + .4vw, 1.375rem); padding: .9em 1.5em; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--font-display);
  font-size: 1.125rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; color: var(--ink-900);
  border-bottom: 2px solid var(--signal-500);
  padding-bottom: .2em;
  transition: gap .25s var(--ease-out), color .2s;
}
.link-arrow:hover { gap: .85em; color: var(--signal-700); }
.link-arrow--light { color: #fff; }
.link-arrow--light:hover { color: var(--signal-400); }

/* status LEDs */
.led {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--foam-400);
  box-shadow: 0 0 10px 1px rgba(95, 211, 199, .8);
}
.led--go { background: var(--signal-500); box-shadow: 0 0 10px 1px rgba(255, 106, 42, .85); animation: led-breathe 2.2s ease-in-out infinite; }

/* textures */
.grain {
  position: absolute; inset: 0; pointer-events: none;
  opacity: .16; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.contours {
  position: absolute; inset: 0; pointer-events: none;
  background: var(--foam-300);
  opacity: .1;
  -webkit-mask: url("../assets/img/contours.svg") center / cover no-repeat;
  mask: url("../assets/img/contours.svg") center / cover no-repeat;
}

/* animated swell used between sections */
.waves {
  position: absolute; left: 0; right: 0; bottom: 100%;
  height: clamp(48px, 7vw, 110px);
  margin-bottom: -1px;
  overflow: hidden; pointer-events: none;
}
.waves svg {
  position: absolute; left: 0; bottom: 0;
  width: 200%; min-width: 1800px; height: 100%;
  animation: swell 22s linear infinite;
}
.waves svg:nth-child(2) { animation-duration: 15s; animation-direction: reverse; }
.waves svg:nth-child(3) { animation-duration: 11s; }
.waves__back { fill: var(--ink-700); opacity: .55; }
.waves__mid { fill: var(--ink-800); }
.waves__front { fill: var(--ink-900); }
.waves--footer .waves__back { fill: var(--ink-800); opacity: 1; }
.waves--footer .waves__front { fill: var(--ink-950); }
.waves--footer svg:nth-child(2) { animation-duration: 13s; animation-direction: reverse; }

/* 4. Header & menu -------------------------------------------------------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  padding-top: env(safe-area-inset-top, 0px);
  color: #fff;
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 1px;
  background: rgba(200, 243, 237, .14); opacity: 0; transition: opacity .3s;
}
.site-header.is-stuck,
.site-header.is-open {
  background: rgba(6, 24, 42, .93);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  backdrop-filter: blur(16px) saturate(1.4);
}
.site-header.is-stuck::after { opacity: 1; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand__mark { width: 40px; height: 40px; color: var(--signal-500); transition: transform .9s var(--ease-out); }
.brand:hover .brand__mark { transform: rotate(240deg); }
.brand__text { display: grid; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-weight: 900; font-size: 1.75rem;
  letter-spacing: .03em; text-transform: uppercase;
}
.brand__sub {
  margin-top: 2px;
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .46em; text-transform: uppercase; color: var(--foam-300);
}
.brand--lg .brand__mark { width: 52px; height: 52px; }
.brand--lg .brand__name { font-size: 2.25rem; }
.brand--lg .brand__sub { font-size: .75rem; letter-spacing: .5em; }

.nav { display: none; }
.nav ul { display: flex; gap: clamp(1.1rem, 2.2vw, 2.25rem); }
.nav a {
  position: relative; display: block; padding: .5rem 0;
  font-size: .9375rem; font-weight: 500; text-decoration: none; color: var(--text-light);
  transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--signal-500);
  transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease-out);
}
.nav a:hover, .nav a[aria-current="true"] { color: #fff; }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: .75rem; }
.header-phone {
  display: none; align-items: center; gap: .5rem;
  font-family: var(--font-mono); font-size: .875rem; font-weight: 500; letter-spacing: .04em;
  text-decoration: none; color: var(--text-light);
}
.header-phone .icon { color: var(--signal-500); width: 1.1em; height: 1.1em; }
.header-phone:hover { color: #fff; }
.header-book { display: none; }
.header-call {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid rgba(255, 106, 42, .55); border-radius: 12px;
  color: var(--signal-500);
  transition: background-color .2s, color .2s;
}
.header-call:active { background: var(--signal-500); color: var(--ink-900); }
@media (hover: hover) { .header-call:hover { background: var(--signal-500); color: var(--ink-900); } }

.nav-toggle {
  display: grid; place-items: center;
  width: 46px; height: 46px; padding: 0;
  border: 1px solid rgba(200, 243, 237, .28); border-radius: 12px;
  background: transparent; color: #fff;
}
.nav-toggle__bars { display: grid; gap: 5px; width: 20px; }
.nav-toggle__bars span {
  height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease-out), opacity .2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 560px) { .header-book { display: inline-flex; } }
@media (min-width: 1000px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
}
@media (min-width: 1180px) {
  .header-phone { display: inline-flex; margin-right: .5rem; }
  .header-call { display: none; }
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
  background:
    radial-gradient(120% 70% at 100% 0%, rgba(29, 76, 114, .55), transparent 60%),
    var(--ink-900);
  color: #fff;
  overflow-y: auto;
  animation: menu-in .35s var(--ease-out);
}
.mobile-menu__nav a {
  display: flex; align-items: baseline; gap: 1rem;
  padding: .35rem 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.5rem, 11vw, 4rem); line-height: 1.05;
  text-transform: uppercase; text-decoration: none; color: #fff;
  border-bottom: 1px solid rgba(200, 243, 237, .12);
}
.mobile-menu__nav a span {
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .1em;
  color: var(--signal-500);
}
.mobile-menu__nav a:hover { color: var(--signal-400); }
.mobile-menu__foot { display: grid; gap: .75rem; }

/* 5. Hero ----------------------------------------------------------------- */

.hero {
  position: relative; isolation: isolate;
  padding: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)) 0 clamp(2rem, 4vw, 3.25rem);
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(70% 60% at 78% 38%, rgba(29, 76, 114, .75), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(18, 55, 87, .7), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900) 45%, var(--ink-850));
}
.hero__bg .contours { opacity: .13; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-900) 0%, rgba(6, 24, 42, .55) 38%, transparent 70%);
}
.hero__glow {
  position: absolute; right: -8%; top: 18%;
  width: min(62vw, 900px); aspect-ratio: 1.5;
  background: radial-gradient(closest-side, rgba(95, 211, 199, .16), transparent);
  filter: blur(10px);
}

.hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero__copy { position: relative; z-index: 2; }

.hero__title {
  margin-top: 1.1rem;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 17vw, 8.25rem);
  line-height: .84;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.hero__line { display: block; white-space: nowrap; }
.hero__title em {
  display: inline-block;
  font-family: var(--font-serif);
  font-style: italic; font-weight: 400;
  font-size: .95em;
  letter-spacing: -.025em; text-transform: none;
  color: var(--signal-500);
  padding-right: .06em;
}

.hero__lede {
  margin-top: clamp(1.4rem, 2.5vw, 2rem);
  max-width: 34rem;
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.3125rem);
  line-height: 1.55;
  color: var(--text-light);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: clamp(1.6rem, 3vw, 2.25rem); }
.hero__points {
  display: flex; flex-wrap: wrap; gap: .6rem 1.5rem;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: .9375rem; color: var(--text-light-soft);
}
.hero__points li { display: inline-flex; align-items: center; gap: .5rem; }
.hero__points .icon { color: var(--foam-400); width: 1.1em; height: 1.1em; stroke-width: 2.6; }

.hero__art { position: relative; min-width: 0; }

@media (max-width: 479px) {
  .hero__cta .btn { flex: 1 1 100%; }
}
/* phones get a Call button in place of "See what we do" */
.hero__call { display: none; }
.hero__call .icon { color: var(--signal-500); }
@media (max-width: 759px) {
  .hero__call { display: inline-flex; }
  .hero__see { display: none; }
}
@media (max-width: 379px) {
  .eyebrow { font-size: .625rem; letter-spacing: .08em; gap: .6em; }
  .btn { white-space: normal; text-align: center; }
}
@media (min-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(1rem, 2vw, 2.5rem); }
  .hero__title { font-size: clamp(4.25rem, 7.7vw, 7.4rem); }
  .hero__art { margin-right: calc(var(--gutter) * -.6); }
}

/* the rig drawing */
.rig-view { position: relative; }
.rig-svg { width: 100%; height: auto; overflow: visible; --rig-bg: var(--ink-850); }
.rig-view__label {
  position: absolute; top: 0;
  font-family: var(--font-mono); font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(151, 230, 220, .55);
}
.rig-view__label--tl { left: 0; }
.rig-view__label--tr { right: 4%; }
@media (max-width: 559px) { .rig-view__label--tr { display: none; } }

.rg {
  fill: none;
  stroke: var(--rig-stroke, var(--foam-200));
  stroke-width: var(--rig-sw, 2);
  stroke-linecap: round; stroke-linejoin: round;
}
.rg--body { fill: var(--rig-fill, rgba(151, 230, 220, .055)); }
.rg--solid { fill: var(--rig-bg, var(--ink-850)); stroke-width: calc(var(--rig-sw, 2) * 1.25); }
.rg--thin { stroke-width: calc(var(--rig-sw, 2) * .7); }
.rg--faint { stroke-width: calc(var(--rig-sw, 2) * .55); opacity: .5; }
.rg--tube { stroke-width: calc(var(--rig-sw, 2) * 2.2); }
.rg--dash { stroke-dasharray: 5 6; }
.rg--glass { fill: rgba(151, 230, 220, .1); stroke-width: calc(var(--rig-sw, 2) * .7); }
.rg--screen { fill: rgba(255, 106, 42, .16); stroke: var(--signal-500); stroke-width: calc(var(--rig-sw, 2) * .7); }
.rg--lamp { fill: var(--signal-500); stroke: none; filter: drop-shadow(0 0 6px rgba(255, 106, 42, .9)); }
.rg--hub { fill: var(--rig-bg, var(--ink-850)); }
.rg--lug { fill: var(--rig-stroke, var(--foam-200)); stroke: none; }
.rg--hot { stroke: var(--signal-500); }
.rg--flow { stroke-dasharray: 7 7; animation: current 1.1s linear infinite; }
.rg-text {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .16em;
  fill: var(--rig-stroke, var(--foam-200)); opacity: calc(.5 * var(--rig-text, 1));
}
.rg-text--rego { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: calc(.65 * var(--rig-text, 1)); }
.rg-text--hot { fill: var(--signal-500); opacity: var(--rig-text, 1); font-size: 11px; font-weight: 700; letter-spacing: .04em; }

/* pins over the drawing */
.pin {
  position: absolute; left: var(--x); top: var(--y); z-index: 2;
  display: inline-flex; align-items: center; gap: .5rem;
  transform: translate(-14px, -50%);
  text-decoration: none; color: #fff;
}
.pin__dot {
  position: relative; display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--signal-500); color: var(--ink-900);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 700;
  box-shadow: 0 0 0 4px rgba(255, 106, 42, .22);
  transition: transform .25s var(--ease-out);
}
.pin__dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--signal-500);
  animation: ping 2.8s var(--ease-out) infinite;
}
.pin:nth-of-type(2) .pin__dot::after { animation-delay: .7s; }
.pin:nth-of-type(3) .pin__dot::after { animation-delay: 1.4s; }
.pin:nth-of-type(4) .pin__dot::after { animation-delay: 2.1s; }
.pin__label {
  display: none;
  padding: .32rem .6rem;
  border: 1px solid rgba(200, 243, 237, .22); border-radius: 8px;
  background: rgba(6, 24, 42, .78);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  transition: background-color .2s, border-color .2s, color .2s;
}
.pin:hover .pin__dot, .pin:focus-visible .pin__dot { transform: scale(1.15); }
.pin:hover .pin__label, .pin:focus-visible .pin__label { background: var(--signal-500); border-color: var(--signal-500); color: var(--ink-900); }
.pin[data-pin="above"] { flex-direction: column-reverse; transform: translate(-50%, calc(-100% + 14px)); }
.pin[data-pin="below"] { flex-direction: column; transform: translate(-50%, -14px); }
@media (min-width: 640px) { .pin__label { display: block; } }
@media (max-width: 639px) {
  /* on phones the drawing runs a little past both edges so the boat reads bigger */
  .rig-view { width: 118%; margin-left: -9%; }
  .rig-view__label--tl { left: 9%; }
  .rig-svg { --rig-text: 0; }
  .pin, .pin[data-pin="above"], .pin[data-pin="below"] { transform: translate(-50%, -50%); }
  .pin__dot { width: 24px; height: 24px; font-size: .625rem; }
}

/* instrument strip */
.readout {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2rem, 4vw, 3.5rem);
  border: 1px solid rgba(200, 243, 237, .16); border-radius: 14px;
  background: rgba(3, 12, 23, .45);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-family: var(--font-mono);
}
.readout__cell { padding: .9rem 1.1rem; border-color: rgba(200, 243, 237, .14); border-style: solid; border-width: 0; }
.readout__cell:nth-child(odd) { border-right-width: 1px; }
.readout__cell:nth-child(-n + 2) { border-bottom-width: 1px; }
.readout dt { font-size: .625rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-light-soft); }
.readout dd {
  display: flex; align-items: center; gap: .55rem; margin-top: .25rem;
  font-size: clamp(.8125rem, .75rem + .3vw, .9375rem); font-weight: 500; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
@media (min-width: 820px) {
  .readout { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .readout__cell { padding: 1rem 1.4rem; border-bottom-width: 0 !important; border-right-width: 1px; }
  .readout__cell:last-child { border-right-width: 0; }
}

/* 6. Ticker --------------------------------------------------------------- */

.ticker {
  position: relative; z-index: 1;
  overflow: hidden;
  background: var(--signal-500); color: var(--ink-900);
  border-block: 2px solid var(--ink-900);
}
.ticker__track { display: flex; width: max-content; animation: ticker 38s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker ul { display: flex; flex: none; }
.ticker li {
  display: flex; align-items: center;
  padding: .7rem 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
}
.ticker li::after {
  content: ""; width: .5em; height: .5em; margin-inline: 1.1em;
  background: var(--ink-900);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}

/* 7. Services ------------------------------------------------------------- */

.svc-grid { display: grid; gap: clamp(1.25rem, 2.2vw, 2rem); }
@media (min-width: 860px) { .svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.svc {
  display: flex; flex-direction: column;
  border: 1px solid var(--sand-200); border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  scroll-margin-top: calc(var(--header-h) + 20px);
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.svc:hover { transform: translateY(-6px); border-color: var(--ink-900); box-shadow: 0 30px 60px -30px rgba(10, 30, 51, .55); }
.svc:target { border-color: var(--signal-500); box-shadow: 0 0 0 3px rgba(255, 106, 42, .35), var(--shadow-card); }

.svc__art { background: var(--ink-950); }
.svc__view {
  position: relative; aspect-ratio: 1.95;
  background:
    linear-gradient(rgba(151, 230, 220, .07) 1px, transparent 1px) 0 0 / 100% 28px,
    linear-gradient(90deg, rgba(151, 230, 220, .07) 1px, transparent 1px) 0 0 / 28px 100%,
    radial-gradient(90% 120% at 70% 30%, var(--ink-700), var(--ink-900) 70%);
  overflow: hidden;
}
.svc__view svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  --rig-sw: 1.35; --rig-bg: #0b2a45;
  transition: transform .9s var(--ease-out);
}
.svc:hover .svc__view svg { transform: scale(1.05); }
.svc__view::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  background:
    linear-gradient(var(--foam-300) 0 0) left top / 14px 1.5px,
    linear-gradient(var(--foam-300) 0 0) left top / 1.5px 14px,
    linear-gradient(var(--foam-300) 0 0) right top / 14px 1.5px,
    linear-gradient(var(--foam-300) 0 0) right top / 1.5px 14px,
    linear-gradient(var(--foam-300) 0 0) left bottom / 14px 1.5px,
    linear-gradient(var(--foam-300) 0 0) left bottom / 1.5px 14px,
    linear-gradient(var(--foam-300) 0 0) right bottom / 14px 1.5px,
    linear-gradient(var(--foam-300) 0 0) right bottom / 1.5px 14px;
  background-repeat: no-repeat;
  opacity: .55;
}
.svc__tag {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .7rem clamp(1.4rem, 3vw, 2.25rem);
  border-top: 1px solid rgba(200, 243, 237, .16);
  font-family: var(--font-mono); font-size: .625rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-light-soft);
}
.svc__tag b { font-weight: 500; color: var(--signal-400); }
.nb { white-space: nowrap; }

.svc__body {
  position: relative; display: flex; flex-direction: column; flex: 1;
  padding: clamp(1.4rem, 3vw, 2.25rem);
}
.svc__num {
  position: absolute; top: clamp(1.1rem, 2.6vw, 1.9rem); right: clamp(1.4rem, 3vw, 2.25rem);
  font-family: var(--font-display); font-weight: 900; font-size: clamp(3rem, 6vw, 4.5rem); line-height: .8;
  color: transparent; -webkit-text-stroke: 1.5px var(--sand-300);
  transition: -webkit-text-stroke-color .3s, color .3s;
}
.svc:hover .svc__num { -webkit-text-stroke-color: var(--signal-500); color: var(--signal-500); }
.svc__title {
  max-width: 11ch;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 1.5rem + 2vw, 2.875rem); line-height: .92;
  text-transform: uppercase; color: var(--ink-900);
}
.svc__lede { margin-top: .9rem; max-width: 30rem; color: var(--text-soft); text-wrap: pretty; }

.ticks {
  display: grid; gap: .55rem 1.5rem;
  margin: 1.5rem 0 1.75rem; padding-top: 1.5rem;
  border-top: 1px dashed var(--sand-300);
  font-size: .9375rem; font-weight: 500; line-height: 1.35;
}
.ticks li { position: relative; padding-left: 1.5rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: .7rem; height: .4rem;
  border: solid var(--signal-600); border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg); transform-origin: center;
}
@media (min-width: 440px) { .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.svc .link-arrow { margin-top: auto; align-self: flex-start; }

.notsure {
  display: grid; gap: 1.5rem; align-items: center;
  margin-top: clamp(1.25rem, 2.2vw, 2rem);
  padding: clamp(1.5rem, 3vw, 2.25rem) clamp(1.4rem, 3vw, 2.5rem);
  border: 2px dashed var(--sand-300); border-radius: var(--radius);
}
.notsure__title {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  line-height: 1; text-transform: uppercase;
}
.notsure > * { min-width: 0; }
.notsure .btn { justify-self: start; max-width: 100%; }
.notsure p { margin-top: .5rem; max-width: 40rem; color: var(--text-soft); }
@media (min-width: 800px) { .notsure { grid-template-columns: 1fr auto; } }

/* 8. 12V feature ---------------------------------------------------------- */

.electrical { overflow: hidden; isolation: isolate; }
.electrical__bg { position: absolute; inset: 0; z-index: -1; }
.electrical__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(55% 60% at 85% 35%, rgba(255, 106, 42, .12), transparent 70%),
    radial-gradient(60% 70% at 70% 45%, rgba(29, 76, 114, .55), transparent 70%),
    linear-gradient(180deg, var(--ink-950), var(--ink-900));
}
.electrical__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
@media (min-width: 1000px) { .electrical__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); } }

.specs { display: grid; gap: 0; margin-top: clamp(2rem, 4vw, 3rem); }
.specs li {
  display: grid; grid-template-columns: auto 1fr; gap: 1.1rem; align-items: start;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(200, 243, 237, .14);
}
.specs li:last-child { border-bottom: 1px solid rgba(200, 243, 237, .14); }
.specs__k {
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: 1px solid var(--signal-500); border-radius: 8px;
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; color: var(--signal-500);
}
.specs h3 {
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.05;
  letter-spacing: .02em; text-transform: uppercase; color: #fff;
}
.specs p { margin-top: .3rem; font-size: 1rem; color: var(--text-light-soft); max-width: 32rem; }

.schematic {
  position: relative;
  padding: clamp(1rem, 2.4vw, 1.75rem);
  border: 1px solid rgba(200, 243, 237, .18); border-radius: var(--radius);
  background:
    linear-gradient(rgba(151, 230, 220, .05) 1px, transparent 1px) 0 0 / 100% 24px,
    linear-gradient(90deg, rgba(151, 230, 220, .05) 1px, transparent 1px) 0 0 / 24px 100%,
    rgba(3, 12, 23, .62);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.schematic__head, .schematic__foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem;
  font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-light-soft);
}
.schematic__head { margin-bottom: .9rem; }
.schematic__foot { margin-top: .9rem; }
.schematic__live { display: inline-flex; align-items: center; gap: .5rem; color: var(--signal-400); }
.schematic__foot span { display: inline-flex; align-items: center; gap: .6rem; }
.schematic__foot b { color: var(--signal-500); font-size: 1.1em; }
.schematic__foot i { width: 18px; border-top: 2px dashed var(--foam-400); opacity: .7; }
.schematic svg { width: 100%; height: auto; overflow: visible; }
.schematic__svg--wide { display: none; }
.schematic__svg--tall { max-width: 440px; margin-inline: auto; }
@media (min-width: 620px) {
  .schematic__svg--wide { display: block; }
  .schematic__svg--tall { display: none; }
}

.sc { fill: none; stroke: var(--foam-200); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sc--box { fill: rgba(11, 40, 67, .82); }
.sc--line { stroke-width: 1.6; }
.sc--neg { stroke: var(--foam-400); stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .55; }
.sc--pos { stroke: var(--signal-500); stroke-width: 2.5; opacity: .35; }
.sc--pos-thin { stroke: var(--signal-500); stroke-width: 1.6; }
.sc--flow { opacity: 1; stroke-dasharray: 8 10; animation: current 1s linear infinite; filter: drop-shadow(0 0 4px rgba(255, 106, 42, .8)); }
.sc--key { fill: var(--foam-200); stroke: none; }
.sc--fuse rect { fill: rgba(255, 106, 42, .14); stroke: var(--signal-500); stroke-width: 1.4; }
.sc--screw circle { fill: var(--foam-200); stroke: none; opacity: .5; }
.sc--rocker { fill: var(--ink-950); stroke-width: 1.4; }
.sc--paddle { fill: var(--foam-200); stroke: none; }
.sc-led { fill: var(--signal-500); filter: drop-shadow(0 0 6px var(--signal-500)); animation: sc-led 4.8s ease-in-out infinite; animation-delay: calc(var(--i) * .5s); }
.sc-branch .sc--flow { animation-delay: calc(var(--i) * -.2s); }
.sc-cap { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; letter-spacing: .12em; fill: var(--foam-100); }
.sc-cap--dim { fill: var(--text-light-soft); }
.sc-num { font-family: var(--font-display); font-size: 34px; font-weight: 900; letter-spacing: .02em; fill: #fff; }
.sc-num--sm { font-size: 30px; }
.schematic__svg--tall .sc-cap { font-size: 11px; }

.popular {
  display: grid; gap: 1rem; align-items: start;
  margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(200, 243, 237, .14);
}
.popular__label {
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--foam-300); padding-top: .55rem;
}
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .45rem .9rem;
  border: 1px solid rgba(200, 243, 237, .22); border-radius: 999px;
  font-size: .9375rem; color: var(--text-light);
  transition: border-color .2s, color .2s, background-color .2s;
}
.chips li:hover { border-color: var(--signal-500); color: #fff; background: rgba(255, 106, 42, .1); }
@media (min-width: 900px) { .popular { grid-template-columns: 11rem 1fr; } }

/* 9. Process & about ------------------------------------------------------ */

.route { position: relative; display: grid; gap: 0; counter-reset: stop; }
.route__stop {
  position: relative;
  padding: 0 0 2.25rem 3.25rem;
}
.route__stop::before {
  content: ""; position: absolute; left: 11px; top: 26px; bottom: -2px;
  border-left: 2px dashed var(--sand-300);
}
.route__stop:last-child { padding-bottom: 0; }
.route__stop:last-child::before { display: none; }
.route__stop::after {
  content: ""; position: absolute; left: 0; top: 0;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--sand-50); border: 2px solid var(--ink-900);
  box-shadow: inset 0 0 0 5px var(--sand-50), inset 0 0 0 12px var(--signal-500);
}
.route__wp {
  display: block;
  font-family: var(--font-mono); font-size: .75rem; font-weight: 500; letter-spacing: .14em;
  color: var(--signal-700); line-height: 24px;
}
.route h3 {
  margin-top: .6rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem); line-height: .98; text-transform: uppercase;
}
.route p { margin-top: .6rem; color: var(--text-soft); max-width: 30rem; text-wrap: pretty; }

@media (min-width: 900px) {
  .route { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.5rem); }
  .route__stop { padding: 3rem 0 0; }
  .route__stop::before {
    left: 24px; right: calc(clamp(1.5rem, 2.5vw, 2.5rem) * -1); top: 11px; bottom: auto;
    border-left: 0; border-top: 2px dashed var(--sand-300);
  }
  .route__wp { position: absolute; top: 0; left: 36px; padding-right: .75rem; background: var(--sand-50); z-index: 1; }
  .route h3 { margin-top: 0; }
}

.about__grid { display: grid; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (min-width: 1000px) { .about__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.about__copy > p:not(.eyebrow) { margin-top: 1.25rem; max-width: 34rem; color: var(--text-soft); }
.about__copy > .about__lede {
  margin-top: 1.6rem;
  font-size: clamp(1.1875rem, 1.1rem + .5vw, 1.4375rem); line-height: 1.45; color: var(--ink-900);
}
.about__copy .btn { margin-top: 2rem; }

.values { display: grid; gap: 1px; background: var(--sand-200); border: 1px solid var(--sand-200); border-radius: var(--radius); overflow: hidden; }
.values__item { position: relative; padding: clamp(1.4rem, 3vw, 2.1rem); background: var(--paper); transition: background-color .3s, color .3s; }
.values__n { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; color: var(--signal-700); transition: color .3s; }
.values h3 {
  margin-top: .9rem;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem);
  line-height: 1; text-transform: uppercase;
}
.values p { margin-top: .6rem; font-size: 1rem; color: var(--text-soft); transition: color .3s; }
.values__item:hover { background: var(--ink-900); color: #fff; }
.values__item:hover p { color: var(--text-light-soft); }
.values__item:hover .values__n { color: var(--signal-500); }
@media (min-width: 560px) { .values { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 10. Booking & forms ----------------------------------------------------- */

.booking { isolation: isolate; padding-top: clamp(3rem, 6vw, 5.5rem); }
.booking__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.booking__bg::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 55% at 12% 20%, rgba(29, 76, 114, .6), transparent 70%),
    linear-gradient(180deg, var(--ink-900), var(--ink-950));
}
.booking__grid { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
@media (min-width: 1000px) {
  .booking__grid { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
  .booking__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

.next { display: grid; gap: .75rem; margin-top: 2.25rem; }
.next li { display: flex; align-items: center; gap: .9rem; font-weight: 500; color: var(--text-light); }
.next span {
  display: grid; place-items: center; width: 1.9rem; height: 1.9rem; flex: none;
  border-radius: 50%; border: 1px solid rgba(200, 243, 237, .3);
  font-family: var(--font-mono); font-size: .75rem; color: var(--foam-300);
}
.booking__alt {
  display: grid; justify-items: start; gap: .5rem;
  margin-top: 2.5rem; padding-top: 2rem;
  border-top: 1px solid rgba(200, 243, 237, .14);
}
.booking__alt p { font-family: var(--font-mono); font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-light-soft); }
.booking__phone {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem);
  line-height: 1; letter-spacing: .02em; text-decoration: none; color: #fff;
  transition: color .2s;
}
.booking__phone .icon { width: .6em; height: .6em; color: var(--signal-500); stroke-width: 2.4; }
.booking__phone:hover { color: var(--signal-400); }
.booking__alt .link-arrow { margin-top: .6rem; font-size: 1rem; }

.booking__card {
  position: relative;
  padding: clamp(1.25rem, 3.2vw, 2.5rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--paper); color: var(--text);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .06);
}

.stepper { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: clamp(1.5rem, 3vw, 2rem); }
.stepper__item {
  position: relative; display: flex; align-items: center; gap: .55rem;
  padding-top: .8rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-soft);
}
.stepper__item::before, .stepper__item::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; border-radius: 4px;
}
.stepper__item::before { right: 0; background: var(--sand-200); }
.stepper__item::after { width: 0; background: var(--signal-500); transition: width .5s var(--ease-out); }
.stepper__item.is-current::after, .stepper__item.is-done::after { width: 100%; }
.stepper__item.is-current, .stepper__item.is-done { color: var(--ink-900); }
.stepper__item span {
  display: grid; place-items: center; width: 1.5rem; height: 1.5rem; flex: none; border-radius: 50%;
  background: var(--sand-100); color: var(--text-soft); font-weight: 700;
  transition: background-color .3s, color .3s;
}
.stepper__item.is-current span { background: var(--ink-900); color: #fff; }
.stepper__item.is-done span { background: var(--signal-500); color: var(--ink-900); }
@media (max-width: 479px) { .stepper__item { font-size: .625rem; letter-spacing: .04em; gap: .4rem; } }

/* With JS on, only the current step shows. Without it, all three stack. */
.js .step:not(.is-active) { display: none; }
.js .step.is-active { animation: step-in .45s var(--ease-out); }
html:not(.js) .step + .step { margin-top: 2.5rem; }
html:not(.js) .step__nav [data-next], html:not(.js) .step__nav [data-prev], html:not(.js) .step__count, html:not(.js) .stepper { display: none; }

.step__legend {
  display: block; width: 100%; padding: 0;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2rem, 1.6rem + 1.8vw, 2.75rem); line-height: .95; text-transform: uppercase;
  color: var(--ink-900);
}
.step__legend:focus { outline: none; }
.step__hint { margin-top: .5rem; color: var(--text-soft); }
.step__nav {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  margin-top: 1.75rem;
}
.step__nav > :last-child { margin-left: auto; }
.step__count { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft); }
@media (max-width: 479px) { .step__count { display: none; } }

/* the switch panel */
.panel {
  position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem;
  margin-top: 1.4rem; padding: 1.5rem 1.1rem;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 30%),
    var(--ink-900);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), inset 0 -8px 20px rgba(0, 0, 0, .35), 0 14px 30px -18px rgba(6, 24, 42, .7);
}
.panel__screw {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c7d6e2, #5f7890 70%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35);
}
.panel__screw::after { content: ""; position: absolute; inset: 4px 1px; background: rgba(6, 24, 42, .7); transform: rotate(35deg); }
.panel__screw:nth-of-type(1) { left: 8px; top: 8px; }
.panel__screw:nth-of-type(2) { right: 8px; top: 8px; }
.panel__screw:nth-of-type(3) { left: 8px; bottom: 8px; }
.panel__screw:nth-of-type(4) { right: 8px; bottom: 8px; }

.rocker {
  position: relative; display: flex; align-items: center; gap: .8rem;
  min-height: 62px; padding: .7rem .85rem;
  border: 1px solid rgba(200, 243, 237, .14); border-radius: 12px;
  background: rgba(255, 255, 255, .03);
  color: var(--text-light); cursor: pointer;
  transition: border-color .25s, background-color .25s, color .25s;
  -webkit-tap-highlight-color: transparent;
}
.rocker--wide { grid-column: 1 / -1; }
.rocker input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.rocker__switch {
  position: relative; flex: none; width: 46px; height: 30px; border-radius: 8px;
  background: #020a13;
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .08);
  overflow: hidden;
}
.rocker__switch span {
  position: absolute; inset: 3px; border-radius: 5px;
  background: linear-gradient(90deg, #233b52 0 50%, #40607c 50% 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  transition: background .25s, transform .25s var(--ease-out);
}
.rocker__switch span::after {
  content: ""; position: absolute; top: 5px; bottom: 5px; left: 7px; width: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .35);
  transition: left .25s var(--ease-out), background-color .25s;
}
.rocker__label {
  font-family: var(--font-display); font-weight: 800; font-size: 1.1875rem; line-height: 1.05;
  letter-spacing: .04em; text-transform: uppercase;
}
.rocker__led {
  width: 9px; height: 9px; margin-left: auto; flex: none; border-radius: 50%;
  background: #1a2f44; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .6);
  transition: background-color .2s, box-shadow .2s;
}
.rocker:hover { border-color: rgba(200, 243, 237, .4); }
.rocker:has(input:checked) { border-color: var(--signal-500); background: rgba(255, 106, 42, .1); color: #fff; }
.rocker input:checked ~ .rocker__switch span { background: linear-gradient(90deg, #ffa066 0 50%, #e9540f 50% 100%); }
.rocker input:checked ~ .rocker__switch span::after { left: calc(100% - 9px); background: rgba(6, 24, 42, .55); }
.rocker input:checked ~ .rocker__led { background: var(--signal-500); box-shadow: 0 0 0 3px rgba(255, 106, 42, .2), 0 0 12px 2px rgba(255, 106, 42, .9); }
.rocker:has(input:focus-visible) { outline: 3px solid var(--signal-500); outline-offset: 2px; }
.panel.is-invalid { box-shadow: 0 0 0 3px #d92d20; }
@media (max-width: 439px) {
  .panel { grid-template-columns: 1fr; }
}

/* fields */
.form { display: block; }
.field { display: grid; gap: .45rem; margin-top: 1.15rem; min-width: 0; }
.field-row { display: grid; gap: 0 1rem; }
@media (min-width: 620px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.field label, .field__label {
  display: flex; align-items: baseline; justify-content: space-between; gap: .5rem;
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-soft);
}
.opt { font-size: .92em; letter-spacing: .08em; opacity: .7; text-transform: none; }

.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: .8rem 1rem;
  border: 1.5px solid var(--sand-300); border-radius: var(--radius-sm);
  background: #fff; color: var(--text);
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
  appearance: none; -webkit-appearance: none;
}
.field textarea { min-height: 124px; resize: vertical; }
.field select {
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1e33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 1.1rem;
}
.field input::placeholder, .field textarea::placeholder { color: #8b98a6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-soft); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--ink-900);
  box-shadow: 0 0 0 4px rgba(255, 106, 42, .28);
}
.field .is-invalid, .field .is-invalid:hover { border-color: #d92d20; background: #fff7f5; }
.field__error {
  display: flex; align-items: center; gap: .4rem;
  margin-top: .5rem;
  font-size: .875rem; font-weight: 600; color: #b42318;
}
.field__error::before { content: "!"; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; flex: none; border-radius: 50%; background: #d92d20; color: #fff; font-size: .75rem; }
.field .field__error { margin-top: 0; }

.segmented { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding: .3rem; border-radius: var(--radius-sm); background: var(--sand-100); }
.segmented label { position: relative; display: block; cursor: pointer; }
.segmented input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; opacity: 0; cursor: pointer; }
.segmented span {
  display: grid; place-items: center; min-height: 46px; padding: .4rem .5rem; border-radius: 9px;
  font-family: var(--font-body); font-size: .9375rem; font-weight: 600; letter-spacing: 0; text-transform: none; text-align: center; line-height: 1.2;
  color: var(--text-soft);
  transition: background-color .2s, color .2s, box-shadow .2s;
}
.segmented label:hover span { color: var(--ink-900); }
.segmented input:checked + span { background: var(--ink-900); color: #fff; box-shadow: 0 6px 14px -8px rgba(6, 24, 42, .8); }
.segmented input:focus-visible + span { outline: 3px solid var(--signal-500); outline-offset: 2px; }

.summary { margin-top: 1.5rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--sand-300); border-radius: var(--radius-sm); background: var(--sand-50); }
.summary__title { font-family: var(--font-mono); font-size: .6875rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft); }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin-top: .7rem; font-size: .9375rem; }
.summary dt { color: var(--text-soft); }
.summary dd { font-weight: 600; overflow-wrap: anywhere; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__status { margin-top: 1.25rem; padding: .85rem 1rem; border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 500; }
.form__status.is-error { background: #fff1ee; border: 1px solid #f5b5aa; color: #912018; }
.form__status a { font-weight: 700; }
.form__fine { margin-top: 1rem; font-size: .8125rem; color: var(--text-soft); }

.btn.is-loading .icon { animation: spin-nudge .7s ease-in-out infinite alternate; }

/* success panel */
.done { text-align: left; animation: step-in .5s var(--ease-out); }
.done:focus { outline: none; }
.done__badge {
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--signal-500); color: var(--ink-900);
  box-shadow: 0 0 0 10px rgba(255, 106, 42, .16);
  animation: pop .6s var(--ease-out);
}
.done__badge .icon { width: 30px; height: 30px; stroke-width: 3; }
.done__title {
  margin-top: 1.75rem;
  font-family: var(--font-display); font-weight: 900; font-size: clamp(2.25rem, 1.8rem + 2vw, 3.25rem); line-height: .95; text-transform: uppercase;
}
.done p { margin-top: .8rem; max-width: 32rem; color: var(--text-soft); font-size: 1.0625rem; }
.done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1.75rem; }
.done--dark p { color: var(--text-light-soft); }

/* dark variant (callback card) */
.form--dark .field label { color: var(--text-light-soft); }
.form--dark .field input, .form--dark .field select {
  border-color: rgba(200, 243, 237, .2); background-color: rgba(255, 255, 255, .05); color: #fff;
}
.form--dark .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8f3ed' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
.form--dark .field select option { color: var(--text); }
.form--dark .field input::placeholder { color: #6f879c; }
.form--dark .field input:hover, .form--dark .field select:hover { border-color: rgba(200, 243, 237, .45); }
.form--dark .field input:focus, .form--dark .field select:focus { border-color: var(--foam-300); box-shadow: 0 0 0 4px rgba(151, 230, 220, .2); }
.form--dark .field .is-invalid { border-color: #ff8a7a; background-color: rgba(217, 45, 32, .12); }
.form--dark .field__error { color: #ffb4a8; }
.form--dark .form__status.is-error { background: rgba(217, 45, 32, .16); border-color: rgba(255, 138, 122, .5); color: #ffd3cc; }
.form--dark .btn { margin-top: 1.5rem; }

/* 11. FAQ, contact, footer ------------------------------------------------ */

.faq__grid { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.faq__head { margin-bottom: 0; }
@media (min-width: 1000px) {
  .faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .faq__head { position: sticky; top: calc(var(--header-h) + 2rem); }
}
.faq { border-top: 2px solid var(--ink-900); }
.faq__item { border-bottom: 1px solid var(--sand-300); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); line-height: 1.08; letter-spacing: .01em; text-transform: uppercase;
  cursor: pointer; list-style: none;
  transition: color .2s;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--signal-700); }
.faq__item summary i {
  position: relative; flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink-900);
  transition: background-color .25s, transform .4s var(--ease-out);
}
.faq__item summary i::before, .faq__item summary i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px;
  background: var(--ink-900); border-radius: 2px; transition: transform .4s var(--ease-out), background-color .25s;
}
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { background: var(--ink-900); transform: rotate(180deg); }
.faq__item[open] summary i::before, .faq__item[open] summary i::after { background: #fff; }
.faq__item[open] summary i::after { transform: rotate(0deg); }
.faq__a { padding: 0 3.5rem 1.6rem 0; color: var(--text-soft); max-width: 44rem; }
@supports (interpolate-size: allow-keywords) {
  .faq__item { interpolate-size: allow-keywords; }
  .faq__item::details-content { block-size: 0; overflow: hidden; transition: block-size .4s var(--ease-out), content-visibility .4s allow-discrete; }
  .faq__item[open]::details-content { block-size: auto; }
}

.contact { overflow: hidden; padding-bottom: calc(var(--section-y) + clamp(48px, 7vw, 110px)); }
.contact::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--ink-900); opacity: .07;
  -webkit-mask: url("../assets/img/contours.svg") center / cover no-repeat;
  mask: url("../assets/img/contours.svg") center / cover no-repeat;
}
.contact__grid { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 1000px) { .contact__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); } }

.contact__phone {
  display: inline-block; margin-top: 1.5rem;
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(2.75rem, 1rem + 8.5vw, 7.5rem); line-height: .9; letter-spacing: .005em;
  text-decoration: none; color: var(--ink-900);
  background: linear-gradient(currentColor 0 0) left bottom / 0 5px no-repeat;
  transition: background-size .5s var(--ease-out);
  white-space: nowrap;
}
.contact__phone:hover { background-size: 100% 5px; }
.contact__list { display: grid; gap: 1.25rem 2.5rem; margin-top: clamp(2rem, 4vw, 3rem); }
.contact__list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact__list .icon { width: 1.5rem; height: 1.5rem; margin-top: .15rem; }
.contact__list div { display: grid; gap: .1rem; min-width: 0; }
.contact__k { font-family: var(--font-mono); font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.contact__list a, .contact__list div > span:not(.contact__k) { font-size: 1.125rem; font-weight: 600; overflow-wrap: anywhere; }
.contact__list a { text-decoration-thickness: 2px; text-underline-offset: 4px; }
.contact__list a:hover { color: var(--paper); }
.contact__list [data-hours] { white-space: pre-line; }
@media (min-width: 620px) { .contact__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.callback {
  padding: clamp(1.4rem, 3.2vw, 2.4rem);
  border-radius: calc(var(--radius) + 4px);
  background: var(--ink-900); color: #fff;
  box-shadow: 0 40px 70px -40px rgba(6, 24, 42, .9);
}
.callback__title { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 1.6rem + 1.6vw, 2.625rem); line-height: .95; text-transform: uppercase; }
.callback__lede { margin-top: .5rem; color: var(--text-light-soft); }

.site-footer {
  position: relative;
  padding: clamp(3rem, 6vw, 5rem) 0 calc(1.5rem + env(safe-area-inset-bottom));
  background: var(--ink-950); color: var(--text-light-soft);
}
.site-footer__top { display: grid; gap: 2.5rem; }
.site-footer__brand p { margin-top: 1.25rem; max-width: 24rem; }
.site-footer__col h2 {
  font-family: var(--font-mono); font-size: .6875rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
  color: var(--foam-300);
}
.site-footer__col ul { display: grid; gap: .55rem; margin-top: 1.1rem; }
.site-footer__col a { text-decoration: none; color: var(--text-light); overflow-wrap: anywhere; transition: color .2s; }
.site-footer__col a:hover { color: var(--signal-400); }
@media (min-width: 620px) { .site-footer__top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .site-footer__brand { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .site-footer__top { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } .site-footer__brand { grid-column: auto; } }

.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid rgba(200, 243, 237, .22); color: #fff;
  transition: background-color .2s, border-color .2s, color .2s, transform .25s var(--ease-out);
}
.socials a:hover { background: var(--signal-500); border-color: var(--signal-500); color: var(--ink-900); transform: translateY(-2px); }

.site-footer > .container { container-type: inline-size; }
.site-footer__word {
  margin: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.25rem, 3vw, 2rem);
  font-family: var(--font-display); font-weight: 900;
  font-size: 15vw; font-size: 16.7cqw; line-height: .8; letter-spacing: -.005em;
  text-transform: uppercase; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1.5px rgba(151, 230, 220, .28);
  user-select: none;
}
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem;
  padding-top: 1.5rem; border-top: 1px solid rgba(200, 243, 237, .12);
  font-size: .875rem;
}
.site-footer__bottom a { text-decoration: none; color: var(--text-light); }
.site-footer__bottom a:hover { color: var(--signal-400); }

/* mobile quick actions */
.quickbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 80;
  display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 6px; padding: 6px;
  border: 1px solid rgba(200, 243, 237, .16); border-radius: 18px;
  background: rgba(6, 24, 42, .9);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .7);
  transform: translateY(160%); opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.quickbar.is-visible { transform: none; opacity: 1; }
.quickbar a {
  display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  border-radius: 12px; text-decoration: none; color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 1.125rem; letter-spacing: .06em; text-transform: uppercase;
}
.quickbar a:active { background: rgba(255, 255, 255, .08); }
.quickbar .quickbar__book { background: var(--signal-500); color: var(--ink-900); }
@media (min-width: 760px) { .quickbar { display: none; } }
@media (max-width: 759px) { .site-footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }

/* 12. Motion & print ------------------------------------------------------ */

.js [data-reveal] { opacity: 0; transform: translateY(26px); }
.js [data-reveal].is-in {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s);
}
/* cards keep their own hover transition once they have appeared */
.js .svc[data-reveal].is-in.is-settled { transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s; }

@keyframes led-breathe { 50% { opacity: .45; } }
@keyframes current { to { stroke-dashoffset: -28; } }
@keyframes ping { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes swell { to { transform: translateX(-50%); } }
@keyframes menu-in { from { opacity: 0; transform: translateY(-12px); } }
@keyframes step-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.08); } }
@keyframes spin-nudge { to { transform: translateX(6px); } }
@keyframes sc-led { 0%, 100% { opacity: 1; } 45% { opacity: 1; } 50% { opacity: .25; } 55% { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .ticker__track, .waves svg { animation: none !important; }
  .rg--flow, .sc--flow { animation: none !important; }
}

@media print {
  .site-header, .quickbar, .ticker, .waves, .mobile-menu { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}
