/* ICE Contractors, Inc.
   Brand teal #008F8F is taken from the vector logo (ICE_1c.pdf).
   System colors in the diagrams follow the trade: power (amber), control signal (teal),
   instrument loops (intrinsic-safety blue), fiber (orange), grounding (green). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var.woff2") format("woff2-variations"),
       url("../fonts/archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #061A1C;
  --night-2: #0B2629;
  --night-3: #12353A;
  --teal: #008F8F;
  --teal-text: #00706F;
  --glow: #2ED3C6;
  --power: #FFB23E;
  --instr: #6FC3FF;
  --fiber: #FF8A3D;
  --ground: #47C26B;
  --paper: #F1F5F4;
  --white: #FFFFFF;
  --ink: #0E1D1F;
  --mute: #4C6064;
  --mute-dark: #A6BFBD;
  --line: #CBD7D6;
  --focus: #FFD15C;

  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem; line-height: 1.6;
  color: var(--ink); background: var(--white);
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-text); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; z-index: 50; background: var(--focus); color: var(--ink); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0 0 .45em; line-height: 1.02; text-wrap: balance; }
h1, h2 { font-stretch: 116%; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 4.8vw, 4.25rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
h3 { font-stretch: 100%; font-weight: 750; font-size: 1.375rem; line-height: 1.2; }
p, ul, ol, dl { margin: 0 0 1em; }
p { max-width: 64ch; }
.lede { font-size: clamp(1.15rem, 1.5vw, 1.35rem); line-height: 1.5; }
.dark { background: var(--night); color: var(--white); }
.dark a { color: var(--white); }
.dark .lede, .dark p { color: #D5E4E2; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(140%) blur(10px); -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-top: .7rem; padding-bottom: .7rem; }
.brand img { height: 3.9rem; width: auto; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 2rem; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem; padding: .4rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--teal); color: var(--teal-text); }
.site-nav .nav-cta { border: 2px solid var(--teal-text); padding: .45rem .9rem; color: var(--white); background: var(--teal-text); }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: var(--night); border-color: var(--night); color: var(--white); }

/* ---------- Buttons ---------- */
.btn, .btn-ghost {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.05rem; text-decoration: none;
  padding: .95rem 1.5rem; border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn { background: var(--glow); color: var(--night); }
.btn:hover { background: var(--white); }
.btn-ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.light .btn, .btn.on-light { background: var(--teal-text); color: var(--white); }
.light .btn:hover, .btn.on-light:hover { background: var(--night); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Hero with the live one-line diagram ---------- */
.hero {
  position: relative; overflow: clip; color: var(--white);
  background:
    radial-gradient(70rem 40rem at 70% 70%, rgba(0,143,143,.25), transparent 70%),
    var(--night);
}
.hero-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 1.75rem 4rem; align-items: end; padding-top: clamp(3rem, 6vw, 5rem); padding-bottom: 2.5rem; }
.hero-top h1 { grid-column: 1 / -1; }
.hero h1 { margin: 0; max-width: none; font-size: clamp(2.4rem, 6vw, 5.5rem); }
.hero h1 span { display: block; }
.hero h1 .h1-b { color: var(--glow); }
.hero .lede { color: #D5E4E2; margin: 0; }
.hero .actions { margin-top: 0; justify-content: flex-end; }
@media (max-width: 64rem) { .hero .actions { justify-content: flex-start; } }
.sheet-wrap { max-width: 96rem; margin: 0 auto; padding: 0 var(--gutter) 1.5rem; }
.sheet {
  border-radius: 6px; padding: 10px;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px) 0 0 / 20px 20px,
    #071F22;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08), 0 30px 60px rgba(0,0,0,.35);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sheet .oneline { min-width: 960px; }
.layers { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: 1rem 0 0; }
.layers .lbl { color: var(--mute-dark); font-size: .95rem; margin-right: .5rem; }
.chip {
  all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: .55rem;
  padding: .5rem .85rem; border-radius: 999px; font-size: .95rem; font-weight: 600; color: #E3EEED;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.chip::before { content: ""; width: 1.4rem; height: 4px; border-radius: 2px; background: var(--c); }
.chip:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.chip[aria-pressed="true"] { background: var(--white); color: var(--night); box-shadow: none; }
.chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.sheet-note { color: var(--mute-dark); font-size: .9rem; margin: .75rem 0 0; }

:root { --v138: #FF6B4A; --v24: #FFB23E; --v480: #F3D86A; --ctlc: #2ED3C6; --insc: #6FC3FF; --fibc: #B38CFF; }
.oneline { width: 100%; height: auto; display: block; }
.oneline .frame { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 2; }
.oneline .enclosure { fill: rgba(255,255,255,.025); stroke: rgba(255,255,255,.28); stroke-width: 1.5; stroke-dasharray: 10 6; }
.oneline text { font-family: "Archivo", sans-serif; font-stretch: 78%; font-weight: 600; fill: var(--mute-dark); font-size: 19px; letter-spacing: .03em; }
.oneline .tag { fill: var(--white); font-weight: 700; font-size: 21px; }
.oneline .m { fill: var(--white); font-size: 22px; font-weight: 800; text-anchor: middle; font-stretch: 100%; }
.oneline .in { fill: var(--white); font-size: 16px; font-weight: 700; text-anchor: middle; }
.oneline .w { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.oneline .bus { stroke-width: 10; }
.oneline .v138 .w, .oneline .w.hv { stroke: var(--v138); }
.oneline .v24 .w { stroke: var(--v24); }
.oneline .v480 .w, .oneline .w.v480 { stroke: var(--v480); }
.oneline .w.sig { stroke: var(--insc); stroke-dasharray: 9 7; }
.oneline .w.ctlw { stroke: var(--ctlc); stroke-dasharray: 9 7; }
.oneline .w.eth { stroke: #DCEBEA; stroke-width: 2.5; }
.oneline .w.fiber { stroke: var(--fibc); stroke-width: 6; stroke-dasharray: 2 8; }
.oneline .brk { fill: var(--night-2); stroke: var(--v138); stroke-width: 3; }
.oneline .eq { fill: var(--night-2); stroke: #DCEBEA; stroke-width: 3; }
.oneline .contact { fill: none; stroke: #DCEBEA; stroke-width: 3; }
.oneline .ring { fill: none; stroke: rgba(255,255,255,.35); stroke-width: 2; stroke-dasharray: 6 8; }
.oneline .lamps { fill: none; stroke: #FFE8B0; stroke-width: 3; }
.oneline .plc rect { fill: #2C5A5F; } .oneline .plc .cpu { fill: #3D6B70; }
.oneline .plc path { stroke: #3D6B70; stroke-width: 2; }
.oneline .leds { fill: var(--ctlc); }
.oneline .trend { fill: none; stroke: var(--ctlc); stroke-width: 3; }
.oneline .eqline { stroke: #DCEBEA; stroke-width: 3; fill: none; }
.oneline .ports rect { fill: #3D6B70; }
.oneline .wap { fill: none; stroke: var(--fibc); stroke-width: 3; stroke-linecap: round; }
.oneline .bubble { fill: var(--night-2); stroke: var(--insc); stroke-width: 3; }
.oneline .bubble-t { fill: var(--white); font-size: 16px; font-weight: 700; text-anchor: middle; font-stretch: 85%; }
.oneline .valve path { fill: var(--night-2); stroke: #DCEBEA; stroke-width: 3; }
.oneline .tblock rect { fill: none; stroke: rgba(255,255,255,.3); }
.oneline .tblock text { font-size: 14px; fill: var(--white); font-weight: 700; }
.oneline .tblock .tb2 { fill: var(--mute-dark); font-weight: 600; }
.oneline .pulse { filter: drop-shadow(0 0 6px currentColor); }
.oneline .v138p { fill: var(--v138); color: var(--v138); }
.oneline .v24p { fill: var(--v24); color: var(--v24); }
.oneline .v480p { fill: var(--v480); color: var(--v480); }
.oneline .sigp { fill: var(--insc); color: var(--insc); }
.oneline .ctlp { fill: var(--ctlc); color: var(--ctlc); }
.oneline .fibp { fill: var(--fibc); color: var(--fibc); }
.oneline .rotor { transform-box: fill-box; transform-origin: center; animation: spin 3s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.oneline .led { animation: blink 1.6s steps(2) infinite; }
.oneline .led:nth-child(2n) { animation-delay: .4s; } .oneline .led:nth-child(3n) { animation-delay: .9s; }
@keyframes blink { 50% { opacity: .25; } }

/* layer focus from the legend chips */
.oneline .layer, .oneline .pulse { transition: opacity .35s; }
.oneline[data-focus] .layer, .oneline[data-focus] .pulse { opacity: .12; }
.oneline[data-focus="power"] .v138, .oneline[data-focus="power"] .v24, .oneline[data-focus="power"] .v480,
.oneline[data-focus="power"] .v138p, .oneline[data-focus="power"] .v24p, .oneline[data-focus="power"] .v480p,
.oneline[data-focus="mv"] .v138, .oneline[data-focus="mv"] .v24, .oneline[data-focus="mv"] .v138p, .oneline[data-focus="mv"] .v24p,
.oneline[data-focus="lv"] .v480, .oneline[data-focus="lv"] .v480p,
.oneline[data-focus="controls"] .ctl, .oneline[data-focus="controls"] .ins, .oneline[data-focus="controls"] .sigp, .oneline[data-focus="controls"] .ctlp,
.oneline[data-focus="data"] .fib, .oneline[data-focus="data"] .ctl, .oneline[data-focus="data"] .fibp { opacity: 1; }

/* system groups link into the services page */
.oneline a { cursor: pointer; }
.oneline a .hit { fill: transparent; }
.oneline a .callout { opacity: 0; transition: opacity .2s; pointer-events: none; }
.oneline a .callout rect { fill: var(--white); }
.oneline a .callout text { fill: var(--night); font-size: 19px; font-weight: 700; font-stretch: 100%; letter-spacing: 0; }
.oneline a:hover .callout, .oneline a:focus-visible .callout { opacity: 1; }
.oneline a:focus-visible { outline: none; }
.oneline a:focus-visible .hit { stroke: var(--focus); stroke-width: 3; stroke-dasharray: 6 5; }

/* the drawing-in sequence, one orchestrated moment on load */
.js .oneline .draw { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .oneline .fade { opacity: 0; }
.js .oneline.live .draw { stroke-dashoffset: 0; transition: stroke-dashoffset calc(.9s * var(--pace, 1)) cubic-bezier(.6,0,.3,1) calc(var(--d, 0s) * var(--pace, 1)); }
.js .oneline.live .fade { opacity: 1; transition: opacity .6s ease calc(var(--d, 0s) * var(--pace, 1)); }
.js .oneline .pulses { opacity: 0; }
.js .oneline.live .pulses { opacity: 1; transition: opacity .6s ease calc(3.4s * var(--pace, 1)); }

/* ---------- Nameplate (company facts) ---------- */
.plate-wrap { background: var(--night); padding: 0 0 4.5rem; }
.plate {
  position: relative; margin: 0 auto; max-width: 64rem;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px),
    linear-gradient(180deg, #D9E1E0, #AEB9B8 55%, #C8D1D0);
  color: #1D2B2D; border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(0,0,0,.18), 0 18px 40px rgba(0,0,0,.45);
  padding: 1.6rem 2.4rem;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem 2rem;
}
.plate::before, .plate::after, .plate .rivets::before, .plate .rivets::after {
  content: ""; position: absolute; width: .7rem; height: .7rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F4F7F7, #7C8888 70%);
  box-shadow: 0 1px 1px rgba(0,0,0,.4);
}
.plate .rivets { position: absolute; inset: 0; pointer-events: none; }
.plate::before { top: .6rem; left: .6rem; } .plate::after { top: .6rem; right: .6rem; }
.plate .rivets::before { bottom: .6rem; left: .6rem; } .plate .rivets::after { bottom: .6rem; right: .6rem; }
.plate dt { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #2A3638; font-stretch: 100%; }
.plate dd { margin: .1rem 0 0; font-stretch: 112%; font-weight: 800; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.15;
  text-shadow: 0 1px 0 rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .01em; }

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.light { background: var(--paper); }
.section.dark { background: var(--night); }
.section-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 1rem 4rem; align-items: end; margin-bottom: 3rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--mute); }
.dark .section-head p { color: var(--mute-dark); }

/* ---------- Services as pulled conductors ---------- */
.pulls { list-style: none; margin: 0; padding: 0; }
.pull { position: relative; padding: 2.25rem 0 2.25rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 4rem; }
.pull:last-child { border-bottom: 1px solid var(--line); }
.pull h3 { font-stretch: 112%; font-weight: 800; font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.01em; margin: 0 0 .2rem; }
.pull h3 a { color: inherit; text-decoration: none; }
.pull h3 a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-decoration-color: var(--c); }
.pull .sys { font-size: .85rem; font-weight: 700; color: var(--mute); letter-spacing: .02em; }
.pull p { margin: 0 0 .9rem; color: var(--ink); }
.pull ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.pull li { font-size: .9rem; font-weight: 600; padding: .3rem .7rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; }
.light .pull li { background: var(--white); }
.conductor { grid-column: 1 / -1; height: 1.4rem; position: relative; margin-top: .4rem; }
.conductor::before { /* the cable */
  content: ""; position: absolute; left: 1.4rem; top: 50%; height: 8px; margin-top: -4px; right: 0;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, white), var(--c) 45%, color-mix(in srgb, var(--c) 70%, black));
  border-radius: 4px; transform-origin: left; transform: scaleX(var(--pull, 1));
  transition: transform 1.4s cubic-bezier(.5,0,.2,1);
}
.conductor::after { /* the ring terminal, as in the ICE mark */
  content: ""; position: absolute; left: 0; top: 50%; width: 1.4rem; height: 1.4rem; margin-top: -.7rem;
  border: 4px solid var(--c); border-radius: 50%; background: transparent;
}
.js .pull:not(.in) { --pull: 0; }

/* ---------- Field photos ---------- */
.film { scroll-padding-inline: var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(18rem, 30rem); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1rem; scrollbar-width: thin; }
.film figure { margin: 0; scroll-snap-align: start; position: relative; }
.film img { width: 100%; height: 22rem; object-fit: cover; filter: saturate(1.05) contrast(1.05); }
.film figcaption { margin-top: .6rem; font-size: .95rem; color: var(--mute-dark); }
.film-wrap { max-width: calc(var(--wrap) + 20rem); margin: 0 auto; }

/* ---------- Map ---------- */
.map-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 2rem 4rem; align-items: center; }
.gulf { width: 100%; height: auto; }
.gulf .st { fill: rgba(255,255,255,.035); stroke: rgba(255,255,255,.16); stroke-width: 1; }
.gulf .st.on { fill: rgba(0,143,143,.34); stroke: var(--glow); stroke-width: 1.5; }
.gulf .route { fill: none; stroke: var(--glow); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; animation: march 1.6s linear infinite; }
@keyframes march { to { stroke-dashoffset: -20; } }
.gulf .hq { fill: var(--power); }
.gulf .hq-ring { fill: none; stroke: var(--power); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(2.6); opacity: 0; } }
.gulf .dest { fill: var(--glow); }
.gulf text { fill: var(--white); font-family: "Archivo", sans-serif; font-stretch: 112%; font-weight: 800; font-size: 26px; letter-spacing: -.01em; }
.gulf .hq-label { fill: var(--power); font-size: 17px; font-stretch: 85%; font-weight: 700; letter-spacing: .02em; }
.states-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .25rem 1.5rem; }
.states-list li { font-stretch: 112%; font-weight: 800; font-size: 1.4rem; }

/* ---------- Safety ---------- */
.safety-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2rem 5rem; align-items: start; }
.emr { display: flex; align-items: flex-end; gap: 1.25rem; margin: 1rem 0 1.5rem; }
.emr b { font-stretch: 125%; font-weight: 800; font-size: clamp(4.5rem, 10vw, 8rem); line-height: .82; color: var(--teal-text); letter-spacing: -0.04em; }
.emr > span { max-width: 22ch; font-weight: 600; line-height: 1.35; padding-bottom: .4rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.checks li { background: var(--white); padding: 1.25rem 1.25rem 1.25rem 3.25rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 1.25rem; top: 1.45rem; width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 3px solid var(--ground); }
.checks strong { display: block; font-size: 1.05rem; }
.checks span { color: var(--mute); font-size: .95rem; }

/* ---------- Culture: a terminal strip ---------- */
.strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: #1A3F43; border-radius: 6px; padding: .9rem; gap: .5rem;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.term { all: unset; box-sizing: border-box; cursor: pointer; background: linear-gradient(180deg, #E9EFEE, #C4CFCE); color: var(--night); border-radius: 3px; padding: 1rem .5rem 1.1rem; text-align: center; position: relative; }
.term::before { content: ""; display: block; width: 2rem; height: 2rem; margin: 0 auto .8rem; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #FDFEFE, #8E9A9A 72%);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.term::after { content: ""; position: absolute; left: 50%; top: 1.95rem; width: 1.2rem; height: 3px; margin-left: -.6rem; background: #4A5658; transform: rotate(-35deg); transition: transform .35s; }
.term span { display: block; font-stretch: 100%; font-weight: 800; font-size: 1.05rem; }
.term small { display: block; font-size: .78rem; font-weight: 700; color: #4A5A5C; margin-top: .15rem; }
.term[aria-pressed="true"] { background: linear-gradient(180deg, #FFFFFF, #D7F3F0); box-shadow: 0 0 0 3px var(--glow), 0 0 22px rgba(46,211,198,.45); }
.term[aria-pressed="true"]::after { transform: rotate(55deg); }
.term:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.quote { min-height: 7.5rem; margin-top: 2rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem 2rem; align-items: start; }
.quote .q-name { font-stretch: 116%; font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--glow); }
.quote blockquote { margin: 0; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; color: var(--white); max-width: 36ch; }

/* ---------- Memberships ---------- */
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem 3rem; }
.members img { height: 4rem; width: auto; filter: grayscale(1) brightness(0) invert(1); opacity: .82; transition: filter .25s, opacity .25s; }
.members img:hover { filter: none; opacity: 1; }
.members.on-light img { filter: grayscale(1) contrast(1.1); opacity: .8; }
.members.on-light img:hover { filter: none; opacity: 1; }

/* ---------- CTA ---------- */
.cta { background: var(--teal-text); color: var(--white); position: relative; overflow: hidden; }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem; align-items: center; padding-top: 4.5rem; padding-bottom: 4.5rem; }
.cta h2 { margin: 0 0 .3em; }
.cta p { color: #E4F4F3; margin: 0; }
.cta .actions { justify-content: flex-end; margin: 0; }
.cta .btn { background: var(--white); color: var(--night); }
.cta .btn:hover { background: var(--night); color: var(--white); }
.cta-traces { position: absolute; inset: 0; pointer-events: none; opacity: .22; }

/* ---------- Inner page head ---------- */
.page-head { background: var(--night); color: var(--white); position: relative; overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 85% 0%, rgba(0,143,143,.35), transparent 70%),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 2.5rem 2.5rem,
    var(--night); }
.page-head .wrap { padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(3rem, 6vw, 4.5rem); position: relative; }
.page-head h1 { margin: 0 0 .3em; max-width: 18ch; }
.page-head .lede { color: #D5E4E2; max-width: 52ch; margin: 0; }
.head-trace { position: absolute; left: 0; right: 0; top: 2.2rem; height: 1.4rem; pointer-events: none; }
.head-trace::before { content: ""; position: absolute; left: calc(var(--gutter) + 1.4rem); right: 0; top: 50%; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, var(--glow), rgba(46,211,198,0)); }
.head-trace::after { content: ""; position: absolute; left: var(--gutter); top: 0; width: 1.4rem; height: 1.4rem; border: 3px solid var(--glow); border-radius: 50%; }
.head-trace i { position: absolute; top: 50%; width: 3rem; height: 3px; margin-top: -1.5px; background: linear-gradient(90deg, transparent, var(--white), transparent); left: 0; animation: run 3.2s linear infinite; }
@keyframes run { from { transform: translateX(10vw); } to { transform: translateX(100vw); } }

/* ---------- Services page ---------- */
.svc { padding: clamp(3.5rem, 7vw, 5.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 5rem; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 2.5rem 4rem; align-items: start; }
.svc h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.svc .sys { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: .95rem; color: var(--mute); margin-bottom: .8rem; }
.svc .sys::before { content: ""; width: 2.4rem; height: 8px; border-radius: 4px; background: var(--c); }
.svc figure { margin: 1.5rem 0 0; }
.svc figure img { width: 100%; max-height: 22rem; object-fit: cover; }
.ticks { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 2.5rem; }
.ticks li { break-inside: avoid; padding: .7rem 0 .7rem 2rem; position: relative; border-bottom: 1px solid var(--line); font-weight: 500; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: .85rem; height: .85rem; border: 3px solid var(--c, var(--teal)); border-radius: 50%; }
.sub { font-weight: 800; font-stretch: 112%; font-size: 1.1rem; margin: 1.75rem 0 .4rem; }
.sub:first-child { margin-top: 0; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 2.5rem 5rem; align-items: center; }
.story figure { margin: 0; }
.mission { font-stretch: 112%; font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.25; max-width: 30ch; color: var(--white); margin: 0; }
.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.facts li { background: var(--white); padding: 1.4rem; }
.facts strong { display: block; font-stretch: 112%; font-weight: 800; font-size: 1.15rem; margin-bottom: .25rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem 5rem; align-items: start; }
.contact-list { margin: 0; }
.contact-list dt { font-weight: 700; font-size: .9rem; color: var(--mute); margin-top: 1.5rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-list .phone { font-stretch: 116%; font-weight: 800; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; text-decoration: none; color: var(--ink); letter-spacing: -0.02em; }
.contact-list .phone:hover { color: var(--teal-text); }
form.contact { background: var(--night); color: var(--white); padding: clamp(1.5rem, 3.5vw, 2.75rem); border-radius: 6px; }
form.contact h2 { font-size: 1.9rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; color: #E3EEED; }
.field .opt { font-weight: 400; color: var(--mute-dark); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--white); background: var(--night-2); border: 1px solid #2E5257; padding: .8rem .9rem; border-radius: 3px; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--glow); }
.field textarea { min-height: 9rem; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--mute-dark); margin: 1rem 0 0; }

/* Draft markers: confirm before launch */
.confirm { text-decoration: underline wavy var(--focus); text-decoration-thickness: 2px; text-underline-offset: .18em; text-decoration-skip-ink: none; }

/* ---------- Footer ---------- */
.site-footer { background: #041314; color: #BFD3D1; font-size: .95rem; }
.site-footer a { color: var(--white); }
.site-footer .wrap { padding-top: 4rem; padding-bottom: 2.5rem; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 2rem 3rem; }
.site-footer .logo { height: 5rem; width: auto; margin-bottom: 1.25rem; background: var(--white); padding: .6rem .8rem; border-radius: 4px; box-sizing: content-box; }
.site-footer h2 { font-size: 1rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; color: var(--white); margin: 0 0 .7rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: .2rem 0; }
.site-footer address { font-style: normal; margin-top: .4rem; }
.foot-base { border-top: 1px solid rgba(255,255,255,.12); margin-top: 3rem; padding-top: 1.25rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; color: #8FAAA7; font-size: .875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 64rem) {
  .hero-top { grid-template-columns: 1fr; }
  .section-head, .pull, .map-grid, .safety-grid, .cta .wrap, .svc-grid, .story, .contact-grid { grid-template-columns: 1fr; }
  .cta .actions { justify-content: flex-start; }
  .strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .plate { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 44rem) {
  .site-header .wrap { flex-wrap: wrap; }
  .brand img { height: 2.8rem; }
  .site-nav ul { gap: .1rem 1.1rem; }
  .site-nav .nav-cta { padding: .25rem .6rem; }
  .plate { grid-template-columns: 1fr; padding: 1.4rem 1.6rem; }
  .checks, .facts { grid-template-columns: 1fr; }
  .ticks { columns: 1; }
  .two { grid-template-columns: 1fr; }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote { grid-template-columns: 1fr; }
  .film img { height: 16rem; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .oneline .draw { stroke-dashoffset: 0; }
  .js .oneline .fade, .js .oneline .pulses { opacity: 1; }
  .oneline .pulses { display: none; }
  .js .pull:not(.in) { --pull: 1; }
}

/* ---------- Markets ---------- */
.markets { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2rem 1.75rem; }
.markets li { border-top: 6px solid var(--c); padding-top: 1.1rem; }
.markets b { display: block; font-stretch: 112%; font-weight: 800; font-size: 1.35rem; line-height: 1.15; margin-bottom: .5rem; }
.markets span { display: block; color: var(--mute); font-size: .98rem; line-height: 1.5; }
@media (max-width: 64rem) { .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 44rem) { .markets { grid-template-columns: 1fr; } }

.oneline .end { text-anchor: end; }
.ol-m { display: none; }
@media (max-width: 44rem) {
  .site-header { position: static; }
  .sheet { overflow: visible; padding: 6px; }
  .sheet .oneline { min-width: 0; }
  .ol-d { display: none; }
  .ol-m { display: block; }
  .layers { gap: .4rem; }
  .layers .lbl { width: 100%; }
  .chip { font-size: .85rem; padding: .45rem .7rem; }
  /* photos: a two-column grid instead of a sideways strip */
  .film { grid-auto-flow: row; grid-template-columns: 1fr 1fr; grid-auto-columns: auto; overflow: visible; padding: 0 var(--gutter); gap: .75rem; }
  .film img { height: 9.5rem; }
  .film figcaption { font-size: .85rem; margin-top: .35rem; }
}


/* ---------- Header icons (phone only) ---------- */
.hdr-icon { display: none; }
.hdr-icon svg { width: 1.4rem; height: 1.4rem; }
.nav-call svg { fill: currentColor; }
.nav-toggle svg path { stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; fill: none; transition: transform .25s ease, opacity .2s ease; transform-origin: 12px 12px; }
.site-header.open .nav-toggle .l1 { transform: translateY(5.5px) rotate(45deg); }
.site-header.open .nav-toggle .l2 { opacity: 0; }
.site-header.open .nav-toggle .l3 { transform: translateY(-5.5px) rotate(-45deg); }

/* ---------- Quick-action bar (phone only) ---------- */
.mbar { display: none; }

@media (max-width: 44rem) {
  .site-header .wrap { flex-wrap: wrap; gap: 0 .25rem; padding-top: .5rem; padding-bottom: .5rem; }
  .brand { margin-right: auto; }
  .brand img { height: 2.7rem; }
  .hdr-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2.9rem; height: 2.9rem; border-radius: 6px; color: var(--teal-text);
    background: transparent; border: 0; cursor: pointer; font: inherit;
  }
  .hdr-icon:active { background: var(--paper); }
  html:not(.js) .nav-toggle { display: none; }
  .site-nav { flex-basis: 100%; }
  .js .site-nav ul { display: none; }
  .js .site-header.open .site-nav ul { display: flex; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: .25rem 0 .75rem; }
  .site-nav li { border-top: 1px solid var(--line); }
  .site-nav a { display: flex; align-items: center; min-height: 3rem; padding: 0 .25rem; border-bottom: 0; font-size: 1.05rem; }
  .site-nav .nav-cta { justify-content: center; margin-top: .75rem; padding: 0 1rem; min-height: 3rem; }

  .mbar {
    display: grid; grid-template-columns: 1fr 1.6fr; gap: .5rem;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
    background: rgba(6, 26, 28, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255,255,255,.1);
    transform: translateY(110%); transition: transform .3s cubic-bezier(.2,.7,.2,1);
  }
  .mbar.show { transform: none; }
  .mbar a { justify-content: center; min-height: 3rem; padding: .7rem 1rem; }

  /* highlight buttons sit above the phone drawing and stay in view while it scrolls */
  .sheet-wrap { display: flex; flex-direction: column; }
  .layers { order: -1; position: sticky; top: 0; z-index: 5; padding: .6rem 0; margin: 0 calc(-1 * var(--gutter)) .5rem; padding-left: var(--gutter); padding-right: var(--gutter); background: rgba(6, 26, 28, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
  .layers .lbl { display: none; }
  .chip .long { display: none; }
  .oneline { --pace: .55; }
}
@media (min-width: 44.01rem) { .chip .short { display: none; } }
@media (prefers-reduced-motion: reduce) { .mbar { transition: none; } }
