@charset "utf-8";

/* =========================================================================
   Nautilius — Electrical Solutions
   Static stylesheet. No build step, no dependencies.
   Palette: abyssal teal, electric cyan (#13a8fd, taken from the 2013 site),
   Victorian brass. Display face: OptimusPrinceps, the original brand font.
   ========================================================================= */

/* ---------- Fonts ---------- */

@font-face {
  font-family: 'Princeps';
  src: url('../fonts/OptimusPrinceps.woff2') format('woff2'),
       url('../fonts/OptimusPrinceps.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Princeps';
  src: url('../fonts/OptimusPrincepsSemiBold.woff2') format('woff2'),
       url('../fonts/OptimusPrincepsSemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */

:root {
  --abyss:      #04131a;
  --abyss-deep: #020b10;
  --deep:       #072330;
  --mid:        #0d3547;
  --surface:    #0a2937;

  --current:    #13a8fd;
  --current-lo: #0d7bbd;
  --current-hi: #6fcfff;

  --brass:      #c9974e;
  --brass-hi:   #e9cd94;

  --foam:       #e9f3f7;
  --steel:      #93aebd;
  --steel-dim:  #67818f;

  --line:       rgb(126 190 217 / 14%);
  --line-strong:rgb(126 190 217 / 28%);

  --display: 'Princeps', 'Trajan Pro', 'Optima', 'Palatino Linotype', Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* fluid type scale */
  --t--2: clamp(0.69rem, 0.67rem + 0.10vw, 0.75rem);
  --t--1: clamp(0.81rem, 0.78rem + 0.14vw, 0.89rem);
  --t-0:  clamp(1.00rem, 0.96rem + 0.20vw, 1.13rem);
  --t-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --t-2:  clamp(1.48rem, 1.32rem + 0.78vw, 2.05rem);
  --t-3:  clamp(1.85rem, 1.55rem + 1.48vw, 2.95rem);
  --t-4:  clamp(2.30rem, 1.70rem + 2.95vw, 4.40rem);

  --wrap: 68rem;
  --gut: clamp(1.15rem, 4vw, 2.75rem);
  --bay: clamp(4.5rem, 10vw, 8.5rem);   /* section rhythm */

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 3px;

  --header-h: 4.5rem;
}

/* ---------- Reset-ish ---------- */

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

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

body {
  margin: 0;
  background: var(--abyss);
  color: var(--foam);
  font-family: var(--sans);
  font-size: var(--t-0);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A faint engraved grain over the whole page. ~340 bytes, no request. */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  opacity: 0.30;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--current-hi); text-decoration-color: rgb(111 207 255 / 35%); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }

:where(h1, h2, h3, h4) { margin: 0; font-weight: 400; line-height: 1.12; text-wrap: balance; }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

::selection { background: var(--current); color: var(--abyss-deep); }

.skip {
  position: absolute;
  left: 50%;
  top: 0;
  translate: -50% -150%;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  background: var(--current);
  color: var(--abyss-deep);
  font-weight: 600;
  transition: translate 0.2s var(--ease);
}
.skip:focus { translate: -50% 0; }

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

/* ---------- Shared bits ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--current);
}
.kicker--brass { color: var(--brass); }

.display {
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 400;
}

.lede {
  font-size: var(--t-1);
  line-height: 1.55;
  color: var(--steel);
  max-width: 46ch;
}

.section {
  position: relative;
  padding-block: var(--bay);
}

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__head h2 {
  font-family: var(--display);
  font-size: var(--t-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.section__head p { margin-top: 1.1rem; }

/* Hairline rule with a brass lozenge, echoing the emblem's tick ring */
.rule {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 1.6rem 0;
}
.rule::before, .rule::after {
  content: '';
  height: 1px;
  flex: 1;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
}
.rule span {
  width: 6px; height: 6px;
  rotate: 45deg;
  background: var(--brass);
  flex: none;
}
.rule--left::before { display: none; }
.rule--left { justify-content: flex-start; }
.rule--left::after { max-width: 5rem; }

/* ---------- Buttons ---------- */

.btn {
  --btn-bg: transparent;
  --btn-fg: var(--foam);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: var(--t--1);
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease),
              color 0.28s var(--ease), box-shadow 0.28s var(--ease), translate 0.2s var(--ease);
}
.btn:hover { translate: 0 -1px; }
.btn svg { flex: none; }

.btn--call {
  --btn-bg: var(--current);
  --btn-fg: #02171f;
  --btn-bd: var(--current);
  font-weight: 600;
  box-shadow: 0 0 0 0 rgb(19 168 253 / 45%);
}
.btn--call:hover {
  --btn-bg: var(--current-hi);
  --btn-bd: var(--current-hi);
  box-shadow: 0 8px 34px -8px rgb(19 168 253 / 70%);
}

.btn--ghost:hover {
  --btn-bd: var(--current);
  --btn-fg: var(--current-hi);
  background: rgb(19 168 253 / 7%);
}

.btn--brass {
  --btn-bd: rgb(201 151 78 / 55%);
  --btn-fg: var(--brass-hi);
}
.btn--brass:hover {
  --btn-bd: var(--brass);
  background: rgb(201 151 78 / 10%);
}

/* ---------- The mark (compass ring + Nautilus) ---------- */

/* The hero mark is Peter's raster emblem — lettering is part of its ring, so
   the whole plate bobs and nothing spins. The header and footer emblems
   (same file) stay still. */
.hero img.mark { animation: bob 9s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -2.5px; }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-stuck {
  background: rgb(4 19 26 / 82%);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--foam);
  margin-right: auto;
}
/* flex:none must sit on the <picture> — it is the flex item, and without it
   the long FR/NL nav labels squeeze the emblem down to ~20px. flex:none on
   .brand itself stops the nowrap wordmark spilling over .lang on phones.
   The vw clamps shrink the whole lockup on narrow screens *independently of
   the OS font-size setting* (vw ignores font boost), which is what overlapped
   the language switcher on Android with enlarged text. */
.brand { --brand-fs: clamp(0.85rem, 4.3vw, 1.3rem); flex: none; }
.brand picture { flex: none; display: block; }
.brand .mark { width: clamp(34px, 11vw, 48px); height: auto; flex: none; }
/* The brand text mirrors the hero lockup: gradient NAUTILIUS over cyan
   ELECTRICAL SOLUTIONS on one line, both spanning the same width so the
   block reads justified. Ratios from the font's glyph advances:
   NAUTILIUS = 6.618em at 0.16em tracking; ELECTRICAL SOLUTIONS = 15.53em
   at 0.2em tracking; 6.618 / 15.53 = 0.426. */
.brand b {
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--brand-fs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(175deg, #ffffff 0%, #cfe9f4 42%, #6ea6bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand i {
  display: block;
  font-style: normal;
  font-family: var(--display);
  font-size: calc(var(--brand-fs) * 0.426);
  letter-spacing: 0.2em;
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--current);
  margin-top: 0.3rem;
}

.nav { display: flex; gap: clamp(0.85rem, 1.8vw, 1.7rem); }
.nav a {
  position: relative;
  color: var(--steel);
  text-decoration: none;
  font-size: var(--t--1);
  letter-spacing: 0.05em;
  padding-block: 0.4rem;
  transition: color 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--current);
  scale: 0 1;
  transform-origin: left;
  transition: scale 0.35s var(--ease);
}
.nav a:hover { color: var(--foam); }
.nav a:hover::after { scale: 1 1; }

.lang {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.12em;
}
.lang a {
  color: var(--steel-dim);
  text-decoration: none;
  padding: 0.3rem 0.42rem;
  border-radius: 2px;
  transition: color 0.2s, background 0.2s;
}
.lang a:hover { color: var(--foam); background: rgb(126 190 217 / 8%); }
.lang a[aria-current='true'] { color: var(--current); }
.lang span { color: var(--line-strong); }

.header .btn { padding: 0.6rem 1.05rem; }

.burger {
  display: none;
  width: 42px; height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  color: var(--foam);
}
.burger i {
  display: block;
  width: 17px; height: 1px;
  margin: 4px auto;
  background: currentColor;
  transition: translate 0.3s var(--ease), rotate 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded='true'] i:nth-child(1) { translate: 0 5px; rotate: 45deg; }
.burger[aria-expanded='true'] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] i:nth-child(3) { translate: 0 -5px; rotate: -45deg; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: calc(var(--header-h) + 3rem) 7rem;
  text-align: center;
  overflow: hidden;
  isolation: isolate;
}

/* The 2013 plate is used as underwater *texture*, not as a second logo:
   blurred and sunk behind a scrim so the crisp mark above it is the only emblem. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url('../img/hero-1920.jpg');  /* fallback for no image-set */
  background-image: image-set(url('../img/hero-1920.webp') type('image/webp'),
                              url('../img/hero-1920.jpg') type('image/jpeg'));
  background-size: cover;
  background-position: center 38%;
  scale: 1.14;
  filter: blur(5px) brightness(0.72) saturate(1.15);
  animation: drift 40s ease-in-out infinite alternate;
}
@media (min-width: 801px) and (max-width: 1280px) {
  .hero__bg {
    background-image: url('../img/hero-1280.jpg');
    background-image: image-set(url('../img/hero-1280.webp') type('image/webp'),
                                url('../img/hero-1280.jpg') type('image/jpeg'));
  }
}
@media (max-width: 800px) {
  .hero__bg {
    background-image: url('../img/hero-800.jpg');
    background-image: image-set(url('../img/hero-800.webp') type('image/webp'),
                                url('../img/hero-800.jpg') type('image/jpeg'));
    background-position: center 32%;
    filter: blur(3px) brightness(0.7) saturate(1.15);
  }
}
@keyframes drift {
  from { scale: 1.14; background-position: center 38%; }
  to   { scale: 1.22; background-position: center 45%; }
}

/* Scrims: sink the baked-in emblem, and fade the bottom edge into the page. */
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 80% at 50% 30%, rgb(3 15 21 / 18%) 0%, rgb(3 15 21 / 72%) 58%, rgb(3 15 21 / 95%) 100%),
    linear-gradient(to bottom, rgb(4 19 26 / 62%) 0%, rgb(4 19 26 / 40%) 32%, rgb(4 19 26 / 90%) 80%, var(--abyss) 100%);
}

/* Slow shafts of light from the surface */
.hero__rays {
  position: absolute;
  inset: -20% -10% auto;
  height: 130%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
  background:
    conic-gradient(from 178deg at 47% -10%,
      transparent 0deg, rgb(120 220 255 / 9%) 4deg, transparent 9deg,
      transparent 14deg, rgb(120 220 255 / 6%) 17deg, transparent 22deg,
      transparent 27deg, rgb(120 220 255 / 11%) 31deg, transparent 36deg);
  animation: sway 17s ease-in-out infinite alternate;
  mix-blend-mode: screen;
}
@keyframes sway {
  from { rotate: -1.6deg; opacity: 0.34; }
  to   { rotate: 1.6deg;  opacity: 0.62; }
}

.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero .mark {
  /* Same visual width as the NAUTILIUS wordmark below it: 5.338em of ink
     + 8 letter-gaps of 0.16em = 6.62em at the wordmark's own font size. */
  width: calc(var(--t-4) * 6.62);
  height: auto;
  margin-bottom: clamp(1.7rem, 3.2vw, 2.6rem);
  opacity: 0.92;
  filter: drop-shadow(0 0 26px rgb(19 168 253 / 24%));
}

.hero__kicker {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--steel);
  margin: 0 0 1.4rem;
  padding-left: 0.34em; /* optical: compensate the last letter's tracking */
  text-wrap: balance;
}
@media (max-width: 30rem) {
  .hero__kicker { letter-spacing: 0.2em; padding-left: 0.2em; line-height: 1.9; }
}

.hero h1 { margin: 0; }
.hero .wordmark {
  display: block;
  font-family: var(--display);
  font-size: var(--t-4);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 0.16em;
  background: linear-gradient(175deg, #ffffff 0%, #cfe9f4 42%, #6ea6bd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 22px rgb(19 168 253 / 25%));
}
.hero .wordmark-sub {
  display: block;
  font-family: var(--display);
  /* Spans the same width as NAUTILIUS above: "ELECTRICAL SOLUTIONS" is
     17.47em of ink+tracking at 0.3em spacing; 6.62 / 17.47 = 0.38. */
  font-size: calc(var(--t-4) * 0.38);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--current);
  margin-top: 0.55rem;
  padding-left: 0.3em;
}
.hero .tagline {
  display: block;
  font-family: var(--sans);
  font-size: var(--t-1);
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: var(--foam);
  max-width: 30ch;
  margin: 1.9rem auto 0;
  text-wrap: balance;
}

.hero__lede {
  margin: 1.5rem auto 0;
  max-width: 52ch;
  color: var(--steel);
  font-size: var(--t-0);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: center;
  margin-top: clamp(2rem, 4vw, 2.9rem);
}

/* On a short laptop screen the hint would sit on top of the buttons. */
@media (max-height: 46rem) {
  .hero__scroll { display: none; }
}

.hero__scroll {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  translate: -50% 0;
  color: var(--steel-dim);
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  transition: color 0.3s;
}
.hero__scroll:hover { color: var(--current); }
.hero__scroll::after {
  content: '';
  width: 1px; height: 34px;
  background: linear-gradient(var(--current), transparent);
  animation: sink 2.4s var(--ease) infinite;
}
@keyframes sink {
  0%   { opacity: 0; scale: 1 0.2; transform-origin: top; }
  40%  { opacity: 1; scale: 1 1; transform-origin: top; }
  100% { opacity: 0; scale: 1 1; transform-origin: bottom; }
}

/* ---------- Emergency strip ---------- */

.emergency {
  position: relative;
  z-index: 2;
  border-block: 1px solid rgb(201 151 78 / 22%);
  background:
    linear-gradient(90deg, transparent, rgb(201 151 78 / 7%), transparent);
}
.emergency .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem 1.6rem;
  padding-block: 1.15rem;
  text-align: center;
}
.emergency p {
  margin: 0;
  font-size: var(--t--1);
  color: var(--brass-hi);
  letter-spacing: 0.03em;
}
.emergency .pulse {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.7rem;
  border-radius: 50%;
  background: var(--brass);
  vertical-align: middle;
  animation: beat 2.6s ease-in-out infinite;
}
@keyframes beat {
  0%, 100% { box-shadow: 0 0 0 0 rgb(201 151 78 / 60%); opacity: 1; }
  50%      { box-shadow: 0 0 0 7px rgb(201 151 78 / 0%); opacity: 0.55; }
}
.emergency a.tel {
  font-family: var(--mono);
  font-size: var(--t-0);
  letter-spacing: 0.05em;
  color: var(--foam);
  text-decoration: none;
  border-bottom: 1px solid rgb(201 151 78 / 45%);
  padding-bottom: 2px;
  transition: color 0.25s, border-color 0.25s;
}
.emergency a.tel:hover { color: var(--brass-hi); border-color: var(--brass); }

/* ---------- Services ---------- */

/* Services gets a wider measure so the eight cards land as 4 × 2, with no hole. */
.section--wide > .wrap { max-width: 76rem; }

.grid-services {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 38rem) { .grid-services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 68rem) { .grid-services { grid-template-columns: repeat(4, 1fr); } }

.card {
  position: relative;
  padding: clamp(1.5rem, 2.4vw, 1.9rem);
  background: linear-gradient(160deg, var(--deep) 0%, var(--abyss) 100%);
  overflow: hidden;
  transition: background 0.45s var(--ease);
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 70% at 50% 0%, rgb(19 168 253 / 13%), transparent 70%);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.card:hover::before { opacity: 1; }
.card:hover .card__icon { color: var(--current-hi); scale: 1.06; }
.card > * { position: relative; }

.card__icon {
  width: 34px; height: 34px;
  color: var(--current);
  margin-bottom: 1.35rem;
  transition: color 0.35s var(--ease), scale 0.45s var(--ease);
}
.card__icon path, .card__icon circle, .card__icon line, .card__icon rect, .card__icon polyline {
  vector-effect: non-scaling-stroke;
}

.card h3 {
  font-size: var(--t-0);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 0.7rem;
  color: var(--foam);
}
.card p {
  font-size: var(--t--1);
  color: var(--steel);
  line-height: 1.6;
}
.card__no {
  position: absolute;
  top: clamp(1.5rem, 2.4vw, 1.9rem);
  right: clamp(1.5rem, 2.4vw, 1.9rem);
  font-family: var(--mono);
  font-size: var(--t--2);
  color: var(--line-strong);
  letter-spacing: 0.1em;
}

/* ---------- Approach + one-line diagram ---------- */

.approach {
  background:
    radial-gradient(80% 60% at 15% 0%, rgb(13 53 71 / 55%), transparent 65%),
    var(--abyss-deep);
  border-block: 1px solid var(--line);
}
.approach > .wrap { max-width: 76rem; }
.approach__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 4.5vw, 4rem);
  align-items: center;
}
@media (min-width: 62rem) {
  .approach__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

.approach h2 {
  font-family: var(--display);
  font-size: var(--t-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.6rem;
}
.approach .pull {
  font-size: var(--t-1);
  color: var(--foam);
  line-height: 1.5;
}
.approach p { color: var(--steel); }

.aviation {
  margin-top: 2.4rem;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgb(201 151 78 / 25%);
  border-left: 2px solid var(--brass);
  border-radius: var(--radius);
  background: rgb(201 151 78 / 4%);
}
.aviation p { color: var(--steel); font-size: var(--t--1); margin: 0; }
.aviation strong { color: var(--brass-hi); font-weight: 600; }

/* the schematic */
.schematic {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(rgb(126 190 217 / 6%) 1px, transparent 1px) 0 0 / 100% 32px,
    linear-gradient(90deg, rgb(126 190 217 / 6%) 1px, transparent 1px) 0 0 / 32px 100%,
    linear-gradient(160deg, var(--deep), var(--abyss));
  padding: clamp(1.2rem, 2vw, 1.8rem);
}
.schematic svg { width: 100%; height: auto; }
.schematic figcaption {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--t--2);
  line-height: 1.6;
  color: var(--steel-dim);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

.sch-wire  { fill: none; stroke: var(--line-strong); stroke-width: 1.5; }
.sch-bus   { fill: none; stroke: var(--steel-dim); stroke-width: 3; stroke-linecap: round; }
.sch-node  { fill: none; stroke: var(--steel); stroke-width: 1.5; }
.sch-brk   { fill: var(--abyss); stroke: var(--steel); stroke-width: 1.5; }
.sch-label { fill: var(--steel-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.sch-glyph { fill: var(--steel); font-family: var(--display); font-size: 18px; }

/* The pulse of current travelling the bus.
   Gap (700) exceeds the longest path (~630) so exactly one pulse runs per cycle. */
.sch-flow {
  fill: none;
  stroke: var(--current);
  stroke-width: 3;
  stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--current));
  stroke-dasharray: 16 700;
  animation: flow 5.2s linear infinite;
}
.sch-flow--b { animation-delay: -2.6s; }
@keyframes flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -716; }
}

.sch-live { animation: live 5.2s ease-in-out infinite; }
@keyframes live {
  0%, 55%, 100% { stroke: var(--steel); }
  65%, 82%      { stroke: var(--current-hi); }
}

/* ---------- Credentials ---------- */

.builders {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.6rem, 6vw, 4.5rem);
  padding: clamp(1.8rem, 4vw, 2.6rem) 0;
  border-block: 1px solid var(--line);
}
.builders span {
  font-family: var(--display);
  font-size: clamp(1.05rem, 2.4vw, 1.55rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--steel);
  padding-left: 0.18em;
  transition: color 0.35s var(--ease);
  cursor: default;
}
.builders span:hover { color: var(--foam); }

/* Equipment brands, from the back of Peter's own card ("We are familiar with:").
   Deliberately quieter than .builders — twenty names must not outshout the three
   yards above them. Wording stays "familiar with", never "certified": the card
   makes no certification claim and neither does this. */
.familiar {
  margin-top: clamp(2.2rem, 4.5vw, 3rem);
  text-align: center;
}
.familiar__head {
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
  margin-bottom: clamp(1rem, 2.5vw, 1.4rem);
}
.familiar__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem 2.2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
/* Manufacturer logos, pre-recoloured to --steel by tools/make-brand-logos:
   one colour scheme, mirroring the back of Peter's own business card. */
.familiar__list li { display: flex; }
.familiar__list li img {
  height: 26px;
  width: auto;
  opacity: 0.78;
  transition: opacity 0.35s var(--ease);
}
.familiar__list li:hover img { opacity: 1; }
@media (max-width: 30rem) {
  .familiar__list { gap: 0.9rem 1.6rem; }
  .familiar__list li img { height: 22px; }
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr));
  gap: 1px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--line);
  border: 1px solid var(--line);
}
.stat {
  padding: clamp(1.4rem, 3vw, 2rem) 1.2rem;
  background: var(--abyss);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: var(--t-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--foam);
}
.stat i {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
}

.vessels {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}
.vessels li {
  list-style: none;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: var(--t--1);
  color: var(--steel);
}
.vessels { padding: 0; margin-inline: 0; }

/* ---------- About ---------- */

.about {
  background:
    radial-gradient(70% 70% at 85% 10%, rgb(13 53 71 / 45%), transparent 60%),
    var(--abyss-deep);
  border-block: 1px solid var(--line);
}
.about__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 56rem) {
  .about__grid { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); }
}

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, transparent 0 11px, rgb(126 190 217 / 4%) 11px 12px),
    linear-gradient(160deg, var(--mid), var(--abyss));
  display: grid;
  place-items: center;
  overflow: hidden;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait__ph {
  text-align: center;
  padding: 1.5rem;
  color: var(--steel-dim);
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2;
}
.portrait__ph svg { width: 44px; height: 44px; margin: 0 auto 1rem; opacity: 0.5; }
.portrait::after {
  content: '';
  position: absolute;
  inset: 8px;
  border: 1px solid var(--line);
  pointer-events: none;
}

.about h2 {
  font-family: var(--display);
  font-size: var(--t-3);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.about .role {
  margin: 0.9rem 0 1.8rem;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--current);
}
.about p { color: var(--steel); }
.about p strong { color: var(--foam); font-weight: 600; }

/* ---------- Where ---------- */

.where__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .where__grid { grid-template-columns: 1fr 1fr; }
}

address {
  font-style: normal;
  font-size: var(--t-1);
  line-height: 1.7;
  color: var(--foam);
}
address .yard { color: var(--current); }
.coords {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.1em;
  color: var(--steel-dim);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.contact-list li { border-bottom: 1px solid var(--line); }
.contact-list a {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  padding: 1.25rem 0.2rem;
  text-decoration: none;
  color: var(--foam);
  transition: padding-left 0.35s var(--ease), color 0.25s;
}
.contact-list a:hover { padding-left: 0.9rem; color: var(--current-hi); }
.contact-list em {
  flex: none;
  width: 6.5rem;
  font-style: normal;
  font-family: var(--mono);
  font-size: var(--t--2);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-dim);
}
.contact-list b {
  font-weight: 400;
  font-family: var(--mono);
  font-size: var(--t-0);
  letter-spacing: 0.02em;
  word-break: break-word;
}
/* Official WhatsApp green, inline with the number */
.contact-list .wa-ico {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  vertical-align: -0.16em;
  margin-right: 0.55rem;
}
.contact-list .note {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--sans);
  font-size: var(--t--2);
  letter-spacing: 0;
  color: var(--steel-dim);
}

/* ---------- Footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--abyss-deep);
  padding-block: clamp(2.5rem, 5vw, 3.5rem) 7rem;
  font-size: var(--t--2);
  color: var(--steel-dim);
}
.footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: center;
  justify-content: space-between;
}
.footer .mark { width: 48px; height: auto; opacity: 0.85; }
.footer p { margin: 0; line-height: 1.8; }
.footer a { color: var(--steel); }

/* ---------- Sticky mobile call bar ---------- */

.callbar {
  position: fixed;
  inset: auto 0 0;
  z-index: 30;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.95rem 1rem calc(0.95rem + env(safe-area-inset-bottom));
  background: var(--current);
  color: #02171f;
  font-weight: 600;
  font-size: var(--t--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 -14px 40px -18px rgb(0 0 0 / 90%);
  translate: 0 110%;
  transition: translate 0.45s var(--ease);
}
.callbar.is-in { translate: 0 0; }

/* ---------- Reveal on scroll ----------
   Gated on .js (set by an inline script in <head>). Without JavaScript the
   content must still be readable, so it never starts at opacity 0. */

.js .reveal {
  opacity: 0;
  translate: 0 14px;
  transition: opacity 0.75s var(--ease), translate 0.75s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ---------- Responsive ---------- */

@media (max-width: 61.99rem) {
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    flex-direction: column;
    gap: 0;
    padding: 1rem var(--gut) 1.8rem;
    background: rgb(4 19 26 / 97%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.45s var(--ease);
  }
  .nav.is-open { clip-path: inset(0 0 0 0); }
  .nav a {
    padding-block: 1rem;
    border-bottom: 1px solid var(--line);
    font-size: var(--t-1);
    font-family: var(--display);
    text-transform: uppercase;
    letter-spacing: 0.12em;
  }
  .nav a::after { display: none; }
  .burger { display: block; }
  .header > .wrap > .btn { display: none; }
  .brand { margin-right: auto; }
  .lang { margin-left: auto; margin-right: 0.4rem; }
}

@media (max-width: 46rem) {
  .callbar { display: flex; }
  .contact-list a { flex-direction: column; gap: 0.35rem; }
  .contact-list em { width: auto; }
  .hero__scroll { display: none; }
  /* Keep the header row inside the viewport on small phones, font boost or
     not: vw-capped switcher, tighter paddings and row gap. */
  .header .wrap { gap: clamp(0.5rem, 2.6vw, 1rem); }
  .lang { font-size: clamp(0.58rem, 2.8vw, 0.72rem); }
  .lang a { padding: 0.3rem 0.28rem; }
}

/* ---------- Motion & contrast preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .hero__bg { scale: 1.16; }
}

@media (prefers-contrast: more) {
  :root {
    --steel: #c2d6e0;
    --steel-dim: #a3bcc9;
    --line: rgb(126 190 217 / 30%);
    --line-strong: rgb(126 190 217 / 55%);
  }
}

/* Someone will print this to take to the boat. */
@media print {
  body { background: #fff; color: #000; }
  .header, .callbar, .hero__scroll, .hero__rays, body::after, .schematic { display: none; }
  .hero { min-height: auto; }
  .hero__bg { display: none; }
  .wordmark { color: #000 !important; -webkit-text-fill-color: #000; }
  a { color: #000; }
}
