/* AquaLux Waterscapes — site styles
   Palette pulled from the work itself: wet basalt, pond teal, limestone, moss, and the amber of underwater lights. */

@font-face { font-family: "Marcellus"; src: url("/fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --basalt: #1F2A26;
  --basalt-2: #2A3632;
  --teal: #2E5C58;
  --teal-deep: #234744;
  --limestone: #ECEDE8;
  --paper: #F6F7F3;
  --moss: #6B7A5C;
  --amber: #D4A24C;
  --ink: #1F2A26;
  --ink-soft: #4C5852;
  --rule: #D3D6CE;
  --on-dark: #E8EAE4;
  --on-dark-soft: #AEB7AF;

  --display: "Marcellus", "Trajan Pro", Georgia, serif;
  --body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.9rem);
  --step-0: clamp(1rem, 0.97rem + 0.15vw, 1.08rem);
  --step-1: clamp(1.2rem, 1.13rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.75vw, 1.95rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.5vw, 2.8rem);
  --step-4: clamp(2.4rem, 1.85rem + 2.75vw, 4.2rem);
  --step-5: clamp(2.8rem, 2rem + 4vw, 5.6rem);

  --gutter: clamp(1rem, 0.5rem + 2.5vw, 3rem);
  --max: 1320px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 68ch; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; margin: 0 0 0.5em; letter-spacing: 0.005em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
::selection { background: var(--teal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 0; background: var(--basalt); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  font: 600 var(--step--1)/1 var(--body); letter-spacing: .02em;
  padding: 1rem 1.6rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-solid { background: var(--teal); color: var(--ink); }
.btn-solid:hover { background: var(--teal-deep); }
.btn-light { background: var(--paper); color: var(--basalt); }
.btn-light:hover { background: var(--limestone); }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.on-light .btn-ghost:hover { background: var(--limestone); }
.textlink { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.textlink:hover { color: var(--teal); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--ink);
  transition: background-color .3s, color .3s, box-shadow .3s;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 1.5rem; }
.site-header.is-solid, .site-header.always-solid { background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 var(--rule); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-mark { width: 39px; height: 48px; flex: none; }
.brand-name { font-family: var(--display); font-size: 1.45rem; letter-spacing: .04em; line-height: 1; }
.brand-name small { display: block; font-family: var(--body); font-size: .68rem; letter-spacing: .32em; margin-top: .3rem; opacity: .8; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a { text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.nav .btn { padding: .8rem 1.2rem; }
.site-header:not(.is-solid):not(.always-solid) .nav .btn-solid { background: var(--paper); color: var(--basalt); }
.nav-phone { font-variant-numeric: tabular-nums; }
.menu-toggle { display: none; background: none; border: 0; color: inherit; padding: .5rem; cursor: pointer; }
.menu-toggle svg { width: 28px; height: 28px; }

@media (max-width: 960px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 84px 0 0 0; background: var(--paper); color: var(--ink);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 1rem var(--gutter) 2rem;
    transform: translateX(100%); transition: transform .3s ease; overflow-y: auto;
  }
  .nav a:not(.btn) { font-family: var(--display); font-size: 1.8rem; padding: .6rem 0; width: 100%; border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: 1.5rem; width: 100%; padding: 1.1rem; }
  .site-header .nav .btn-solid { background: var(--teal) !important; color: var(--ink) !important; }
  body.menu-open .nav { transform: none; }
  body.menu-open .site-header { background: var(--paper); color: var(--ink); }
  body.menu-open { overflow: hidden; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; min-height: 86svh; display: grid; align-items: end; color: var(--ink); overflow: hidden; background: var(--basalt); }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; transform-origin: 60% 70%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,25,.55) 0%, rgba(20,28,25,0) 28%, rgba(20,28,25,0) 45%, rgba(20,28,25,.82) 100%); }
.hero-body { position: relative; z-index: 1; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: 140px; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero-lede { font-size: var(--step-1); max-width: 46ch; color: var(--on-dark); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-note { position: absolute; right: var(--gutter); bottom: clamp(3rem, 8vh, 6rem); z-index: 1; font-size: var(--step--1); color: var(--on-dark-soft); text-align: right; max-width: 22ch; }
@media (max-width: 760px) { .hero-note { display: none; } }

/* One orchestrated load moment: image settles, then the headline arrives. */
@media (prefers-reduced-motion: no-preference) {
  .hero-media img { animation: settle 2.6s cubic-bezier(.2,.7,.2,1) both; }
  .hero-body > * { animation: rise 1s cubic-bezier(.2,.7,.2,1) both; }
  .hero-body > *:nth-child(1) { animation-delay: .5s; }
  .hero-body > *:nth-child(2) { animation-delay: .7s; }
  .hero-body > *:nth-child(3) { animation-delay: .9s; }
  @keyframes settle { from { transform: scale(1.08); filter: brightness(.6); } to { transform: none; filter: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: 68svh; display: grid; align-items: end; color: var(--ink); background: var(--basalt); overflow: hidden; }
.page-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,28,25,.5) 0%, rgba(20,28,25,.05) 35%, rgba(20,28,25,.78) 100%); }
.page-hero .wrap { position: relative; z-index: 1; padding-top: 140px; padding-bottom: clamp(2.5rem, 6vh, 4.5rem); }
.page-hero h1 { font-size: var(--step-5); max-width: 16ch; }
.page-hero p { color: var(--on-dark); font-size: var(--step-1); max-width: 50ch; margin: 0; }
.crumb { font-size: var(--step--1); color: var(--on-dark-soft); margin-bottom: 1rem; }
.crumb a { text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.page-plain { padding-top: 150px; padding-bottom: 2rem; }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 9rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-limestone { background: var(--limestone); }
.section-dark { background: var(--basalt); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: var(--ink); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 4rem; align-items: end; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-dark .section-head p { color: var(--on-dark-soft); }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Statement */
.statement { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3rem 5rem; align-items: start; }
.statement-text { font-family: var(--display); font-size: var(--step-3); line-height: 1.2; margin: 0; max-width: 26ch; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.facts li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); display: grid; gap: .15rem; }
.facts strong { font-family: var(--display); font-weight: 400; font-size: var(--step-2); line-height: 1.1; }
.facts span { color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 860px) { .statement { grid-template-columns: 1fr; } }

/* Signature builds: alternating large image rows */
.builds { display: grid; gap: clamp(3.5rem, 8vw, 7rem); }
.build { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 2rem; align-items: center; }
.build-media { grid-column: 1 / span 7; position: relative; overflow: hidden; background: var(--limestone); aspect-ratio: 4 / 3; }
.build-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.build-media:hover img { transform: scale(1.03); }
.build-body { grid-column: 9 / span 4; }
.build:nth-child(even) .build-media { grid-column: 6 / span 7; grid-row: 1; }
.build:nth-child(even) .build-body { grid-column: 1 / span 4; grid-row: 1; }
.build-body h3 { font-size: var(--step-3); }
.build-body p { color: var(--ink-soft); }
.build-body .textlink { display: inline-block; margin-top: .5rem; }
@media (max-width: 860px) {
  .build, .build:nth-child(even) { grid-template-columns: 1fr; gap: 1.5rem; }
  .build .build-media, .build .build-body, .build:nth-child(even) .build-media, .build:nth-child(even) .build-body { grid-column: 1; grid-row: auto; }
}

/* Care services: compact two-column list */
.care { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.care a { display: grid; grid-template-columns: 1fr auto; gap: .4rem 2rem; padding: 1.8rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.care a:nth-child(odd) { padding-right: 3rem; border-right: 1px solid var(--rule); }
.care a:nth-child(even) { padding-left: 3rem; }
.care h3 { margin: 0; font-size: var(--step-2); }
.care p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.care .more { align-self: center; font-size: var(--step--1); font-weight: 600; }
.care a:hover h3 { color: var(--teal); }
@media (max-width: 760px) {
  .care { grid-template-columns: 1fr; }
  .care a:nth-child(odd), .care a:nth-child(even) { padding-left: 0; padding-right: 0; border-right: 0; }
}

/* After dark: the one bold band */
.after-dark { background: var(--basalt); color: var(--on-dark); padding: clamp(4.5rem, 10vw, 9rem) 0; overflow: hidden; }
.after-dark h2 { color: var(--ink); max-width: 14ch; }
.after-dark-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(120px, 14vw, 210px); gap: 10px; margin-top: clamp(2.5rem, 5vw, 4rem); }
.after-dark-grid figure { margin: 0; position: relative; overflow: hidden; background: var(--basalt-2); }
.after-dark-grid img { width: 100%; height: 100%; object-fit: cover; }
.after-dark-grid figcaption { position: absolute; left: 0; bottom: 0; padding: .9rem 1rem; font-size: var(--step--1); color: var(--on-dark); background: linear-gradient(0deg, rgba(20,28,25,.85), rgba(20,28,25,0)); width: 100%; }
.nite-a { grid-column: 1 / span 7; grid-row: span 3; }
.nite-b { grid-column: 8 / span 5; grid-row: span 2; }
.nite-c { grid-column: 8 / span 5; grid-row: span 3; }
.nite-d { grid-column: 1 / span 4; grid-row: span 2; }
.nite-e { grid-column: 5 / span 3; grid-row: span 2; }
.after-dark-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 4rem; align-items: end; }
.after-dark-intro p { color: var(--on-dark-soft); margin: 0; }
.after-dark-intro .amber { color: var(--amber); }
.after-dark .btn-ghost:hover { border-color: var(--amber); color: var(--amber); background: transparent; }
@media (max-width: 860px) {
  .after-dark-intro { grid-template-columns: 1fr; }
  .after-dark-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 44vw; }
  .nite-a { grid-column: 1 / -1; grid-row: span 1; }
  .nite-b, .nite-c, .nite-d, .nite-e { grid-column: span 1; grid-row: span 1; }
  .nite-e { display: none; }
}

/* Work strip (selected projects) */
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 18vw, 260px); gap: 10px; }
.work-grid a { position: relative; overflow: hidden; display: block; background: var(--limestone); }
.work-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.work-grid a:hover img { transform: scale(1.04); }
.w-tall { grid-row: span 2; }
.w-wide { grid-column: span 2; }
@media (max-width: 760px) { .work-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; } }

/* In motion: framed video loops */
.motion { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.25rem; align-items: end; }
.motion figure { margin: 0; }
.motion video { width: 100%; background: var(--basalt); object-fit: cover; }
.motion .v-land video { aspect-ratio: 16/9; }
.motion .v-port video { aspect-ratio: 9/16; max-height: 560px; }
.motion figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: .7rem; }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr 1fr; } .motion .v-land { grid-column: 1 / -1; } }

/* Process: a real sequence, so numbered */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--ink); padding-top: 1.25rem; }
.steps li::before { content: counter(step); font-family: var(--display); font-size: var(--step-3); color: var(--teal); display: block; line-height: 1; margin-bottom: 1.1rem; }
.steps h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 600; margin-bottom: .5rem; }
.steps p { color: var(--ink-soft); font-size: .97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Service area */
.areas { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem 5rem; }
.areas h3 { font-size: var(--step-2); }
.town-list { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; columns: 2; column-gap: 2rem; }
.town-list li { padding: .45rem 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }
@media (max-width: 760px) { .areas { grid-template-columns: 1fr; } }

/* Contact block */
.contact { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.contact h2 { font-size: var(--step-4); }
.contact-lines { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.25rem; }
.contact-lines span { display: block; font-size: var(--step--1); color: var(--ink-soft); }
.contact-lines a { font-family: var(--display); font-size: var(--step-2); text-decoration: none; line-height: 1.2; word-break: break-word; }
.contact-lines a:hover { color: var(--teal); }
@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }

/* Form */
.form { background: var(--paper); padding: clamp(1.5rem, 3vw, 2.75rem); border: 1px solid var(--rule); }
.section-limestone .form { border-color: transparent; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.25rem; }
.field { display: grid; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; }
.field label .opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: #fff;
  border: 1px solid #BFC4BA; border-radius: var(--radius);
  padding: .85rem .9rem; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: var(--teal); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231F2A26' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-foot p { margin: 0; font-size: var(--step--1); color: var(--ink-soft); }
.form-status { margin-top: 1rem; font-weight: 600; }
.form-status[data-state="error"] { color: #9B2C1F; }
.form-status[data-state="ok"] { color: var(--teal); }
.hp { display: none; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* Gallery page */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filters button { font: 500 .95rem var(--body); padding: .6rem 1.1rem; border: 1px solid var(--rule); background: transparent; color: var(--ink); border-radius: 100px; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--basalt); color: var(--ink); border-color: var(--basalt); }
.filters button:hover:not([aria-pressed="true"]) { border-color: var(--ink); }
.masonry { columns: 3 320px; column-gap: 12px; }
.masonry figure { margin: 0 0 12px; break-inside: avoid; }
.masonry button { display: block; padding: 0; border: 0; background: var(--limestone); cursor: zoom-in; width: 100%; }
.masonry img { width: 100%; height: auto; }
.masonry figure[hidden] { display: none; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(16,22,20,.94); }
.lightbox-inner { width: 100%; height: 100%; display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 3.5rem 4.5rem 1.5rem; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; }
.lightbox p { color: var(--on-dark); margin: 1rem 0 0; text-align: center; }
.lb-btn { position: fixed; background: rgba(255,255,255,.08); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) { .lightbox-inner { padding: 4rem .75rem 1rem; } .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; } }

/* Service detail pages */
.detail { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem clamp(3rem, 6vw, 6rem); }
.detail-body h2 { font-size: var(--step-3); margin-top: 1.5em; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { color: var(--ink); }
.detail-body ul { padding-left: 1.1rem; margin: 0 0 1.5rem; max-width: 64ch; }
.detail-body li { margin-bottom: .5rem; }
.detail-aside { position: sticky; top: 110px; align-self: start; background: var(--limestone); padding: 2rem; }
.detail-aside h3 { font-size: var(--step-2); }
.detail-aside p { color: var(--ink-soft); }
.detail-aside .btn { width: 100%; margin-top: .5rem; }
.detail-aside .phone { display: block; text-align: center; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.detail-aside .phone:hover { color: var(--teal); }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } .detail-aside { position: static; } }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.related a { text-decoration: none; display: block; }
.related .r-img { aspect-ratio: 4/3; overflow: hidden; background: var(--limestone); margin-bottom: 1rem; }
.related img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.related a:hover img { transform: scale(1.04); }
.related h3 { font-size: var(--step-1); margin: 0; }
@media (max-width: 760px) { .related { grid-template-columns: 1fr 1fr; } }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem clamp(3rem, 6vw, 6rem); align-items: start; }
.about-grid figure { margin: 0; }
.values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 3rem; }
.values h3 { font-size: var(--step-2); }
.values p { color: var(--ink-soft); }
@media (max-width: 860px) { .about-grid, .values { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { position: relative; color: var(--ink); background: var(--basalt); overflow: hidden; }
.cta-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.cta-band .wrap { position: relative; padding-top: clamp(4.5rem, 10vw, 8rem); padding-bottom: clamp(4.5rem, 10vw, 8rem); }
.cta-band h2 { max-width: 16ch; }
.cta-band p { color: var(--on-dark); font-size: var(--step-1); max-width: 46ch; }
.cta-band .hero-actions { margin-top: 1.5rem; }

/* Footer */
.site-footer { background: var(--basalt); color: var(--on-dark-soft); padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-footer .brand { color: var(--ink); margin-bottom: 1.2rem; }
.site-footer h4 { font-family: var(--body); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: var(--step--1); }
@media (max-width: 860px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* Sticky mobile call bar */
.callbar { display: none; }
@media (max-width: 760px) {
  .callbar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; inset: auto 0 0 0; z-index: 40; background: var(--paper); border-top: 1px solid var(--rule); }
  .callbar a { padding: 1rem; text-align: center; font-weight: 600; text-decoration: none; font-size: .95rem; }
  .callbar a + a { background: var(--teal); color: var(--ink); }
  body { padding-bottom: 56px; }
  body.menu-open .callbar { display: none; }
}

/* 404 */
.notfound { min-height: 70vh; display: grid; align-content: center; }

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

/* Services band under the hero */
.svc-band { background: var(--basalt); color: var(--on-dark); padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.svc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.5rem; }
.svc-head h2 { color: var(--ink); font-size: var(--step-3); margin: 0; }
.svc-head .textlink { color: var(--on-dark); }
.svc-label { color: var(--amber); font-weight: 600; font-size: var(--step--1); margin: 1.75rem 0 .9rem; }
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.svc-tile { text-decoration: none; display: block; background: var(--basalt-2); }
.svc-img { aspect-ratio: 4 / 3; overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.svc-tile:hover .svc-img img { transform: scale(1.04); }
.svc-tile h3 { color: var(--ink); font-size: var(--step-1); margin: .9rem 1rem .2rem; }
.svc-tile p { color: var(--on-dark-soft); font-size: var(--step--1); margin: 0 1rem 1rem; }
.svc-tile:hover h3 { color: var(--amber); }
.svc-care .svc-img { aspect-ratio: 16 / 9; }
@media (max-width: 860px) { .svc-grid { grid-template-columns: 1fr 1fr; } }

/* Service pages */
.lead-copy { max-width: 72ch; }
.lead-copy p { font-size: var(--step-1); line-height: 1.55; max-width: none; }
.media-stack { display: grid; gap: clamp(3rem, 7vw, 5.5rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.media-row { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2.5rem clamp(2.5rem, 5vw, 5rem); align-items: start; }
.media-row.flip .media-img { order: -1; }
.media-row h2 { font-size: var(--step-3); }
.media-img { margin: 0; position: sticky; top: 110px; background: var(--limestone); }
.media-img img { width: 100%; height: auto; }
@media (max-width: 860px) { .media-row { grid-template-columns: 1fr; } .media-row.flip .media-img { order: 0; } .media-img { position: static; } }
.checklist { list-style: none; padding: 0; margin: 1.25rem 0 1.5rem; display: grid; gap: .85rem; max-width: 66ch; }
.checklist li { position: relative; padding-left: 2rem; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.2 2.2 4.8-4.8' fill='none' stroke='white' stroke-width='1.6'/%3E%3C/svg%3E") center/70% no-repeat; }
.checklist strong { font-weight: 600; }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 3rem; }
@media (max-width: 960px) { .steps-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps-3 { grid-template-columns: 1fr; } }
.how h2 { font-size: var(--step-3); max-width: 24ch; }
.how-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 2.5rem clamp(2.5rem, 5vw, 4rem); align-items: start; margin-top: 1.5rem; }
.diagram { margin: 0; background: #fff; border: 1px solid var(--rule); padding: clamp(1rem, 2.5vw, 2rem); }
.diagram svg { width: 100%; height: auto; display: block; }
.legend { columns: 2 220px; column-gap: 2rem; margin: 1.5rem 0 0; padding-left: 1.4rem; font-size: .97rem; }
.legend li { padding: .3rem 0; break-inside: avoid; }
.legend li::marker { color: var(--teal); font-weight: 700; }
.how-text p { color: var(--ink-soft); }
@media (max-width: 960px) { .how-grid { grid-template-columns: 1fr; } }
.gal-title { font-size: var(--step-3); margin-bottom: 1.5rem; }

.hc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hc-grid figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--limestone); }
.hc-grid img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 760px) { .hc-grid { grid-template-columns: 1fr 1fr; } }

.cta-text p { color: var(--on-dark); font-size: var(--step-1); max-width: 46ch; margin-bottom: .9em; }
.lead-copy p { margin-bottom: 1.1em; }
.media-text p + p, .how-text p + p { margin-top: .2em; }

.diagram-art { position: relative; }
.diagram-art img { width: 100%; height: auto; display: block; }
.mk { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: #fff; font: 700 15px/30px var(--body); text-align: center; box-shadow: 0 0 0 3px #fff; }
@media (max-width: 600px) { .mk { width: 22px; height: 22px; font-size: 12px; line-height: 22px; box-shadow: 0 0 0 2px #fff; } }

/* Bigger photo beside intro and section text */
@media (min-width: 861px) {
  .media-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .intro-row { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); align-items: center; }
}
.intro-row .media-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.intro-row .media-img { position: static; }
.intro-video video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--basalt); }
.intro-video figure { margin: 0; }
.intro-video figcaption { font-size: var(--step--1); color: var(--ink-soft); padding: .6rem 0 0; background: var(--paper); }
/* Centered video section */
.video-band { background: var(--basalt); text-align: center; }
.video-band h2 { color: var(--ink); font-size: var(--step-3); margin-bottom: 2rem; }
.video-frame { margin: 0 auto; }
.video-frame.v-port { max-width: 380px; }
.video-frame.v-land { max-width: 900px; }
.video-frame figure { margin: 0; }
.video-frame video { width: 100%; display: block; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.video-frame.v-port video { aspect-ratio: 9 / 16; object-fit: cover; }
.video-frame figcaption { color: var(--on-dark-soft); font-size: var(--step--1); margin-top: 1rem; }

.page-hero-short { min-height: 48svh; }
.off-label { color: var(--teal); margin-top: 2.5rem; }
.off-label:first-child { margin-top: 0; }
.off-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.off-tile { text-decoration: none; background: #fff; border: 1px solid var(--rule); display: flex; flex-direction: column; }
.off-tile:hover { border-color: var(--teal); }
.off-tile:hover .svc-img img { transform: scale(1.04); }
.off-body { padding: 1rem 1.1rem 1.25rem; display: flex; flex-direction: column; flex: 1; }
.off-body h3 { font-size: var(--step-1); margin-bottom: .4rem; }
.off-body p { font-size: .93rem; color: var(--ink-soft); margin: 0 0 1rem; }
.off-more { margin-top: auto; font-weight: 600; font-size: var(--step--1); color: var(--teal); }
@media (max-width: 1000px) { .off-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .off-grid { grid-template-columns: 1fr 1fr; gap: 12px; } .off-body { padding: .75rem .8rem 1rem; } .off-body h3 { font-size: 1.05rem; } .off-body p { font-size: .85rem; } }

.work-grid { grid-auto-flow: row dense; }

.off-short { display: none; }
@media (max-width: 560px) { .off-long { display: none; } .off-short { display: block; } }

/* Care pages: intro spans the full width in two columns; text and photo rows balanced */
.lead-wide { max-width: none; }
@media (min-width: 861px) { .lead-wide { columns: 2; column-gap: clamp(3rem, 6vw, 6rem); } .lead-wide p { break-inside: avoid; } }
.lead-wide p { font-size: 1.15rem; }
.media-row { align-items: center; }
.media-row .media-img { position: static; }
.media-row .media-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.media-text p { font-size: 1.05rem; }

/* Desktop balance for all pages */
@media (min-width: 961px) {
  .how-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: center; }
  .about-grid { align-items: center; }
}
.how-text p { font-size: 1.05rem; color: var(--ink); }
.about-grid figure img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about-grid p { font-size: 1.05rem; }
.values p { font-size: 1.02rem; }

/* v2: flow chart process */
.flow-title, .benefits h2 { font-size: var(--step-3); margin-bottom: 2rem; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 2.4rem; }
.flow li { position: relative; background: #fff; border: 1px solid var(--rule); border-top: 3px solid var(--teal); padding: 2.2rem 1rem 1.2rem; text-align: center; }
.flow .fn { position: absolute; top: -1.2rem; left: 50%; transform: translateX(-50%); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--teal); color: #fff; font: 700 1.05rem/2.4rem var(--body); }
.flow h3 { font-family: var(--body); font-weight: 600; font-size: 1.02rem; margin-bottom: .4rem; line-height: 1.25; }
.flow p { font-size: .9rem; color: var(--ink-soft); margin: 0 auto; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -1.85rem; top: 50%; width: 1.3rem; height: 1.3rem; transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M3 10h12M10 4l6 6-6 6' fill='none' stroke='%232E5C58' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
@media (max-width: 1100px) {
  .flow { grid-template-columns: 1fr; gap: 2.6rem; max-width: 520px; margin: 0 auto; }
  .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -2.1rem; transform: translateX(-50%) rotate(90deg); }
}
/* v2: key benefits */
.benefits { padding-top: clamp(3.5rem, 7vw, 6rem); }
.ben-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.ben-grid li { padding: 1.5rem 1.4rem; background: var(--basalt); color: var(--on-dark); }
.ben-grid h3 { color: var(--ink); font-size: var(--step-1); margin-bottom: .5rem; }
.ben-grid h3::before { content: ""; display: block; width: 2rem; height: 3px; background: var(--amber); margin-bottom: 1rem; }
.ben-grid p { color: var(--on-dark-soft); font-size: .97rem; margin: 0; }
@media (max-width: 1000px) { .ben-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ben-grid { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .flow { max-width: 640px; margin: 0; gap: 0; position: relative; }
  .flow::before { content: ""; position: absolute; left: 1.2rem; top: 1.2rem; bottom: 1.2rem; width: 2px; background: var(--teal); opacity: .5; }
  .flow li { background: none; border: 0; padding: 0 0 1.6rem 3.6rem; text-align: left; }
  .flow li:last-child { padding-bottom: 0; }
  .flow .fn { left: 0; top: 0; transform: none; }
  .flow h3 { font-size: 1.05rem; padding-top: .45rem; }
  .flow p { margin: 0; }
  .flow li:not(:last-child)::after { display: none; }
}
.flow .fn { text-align: center; }

.ben-grid h3::before { display: none; }
.ben-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(212,162,76,.14); color: var(--amber); margin-bottom: 1rem; }
.ben-icon { width: 28px; height: 28px; }
@media (min-width: 1101px) {
  .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3rem; }
  .flow li:not(:last-child)::after { right: -2.25rem; }
}
.flow h3 { font-size: 1.12rem; }
.flow p { font-size: .97rem; }

/* ================= Dark teal theme (v2) ================= */
:root {
  --paper: #0F2725;        /* page background: deep teal */
  --limestone: #133230;    /* alternate sections */
  --basalt: #0A1C1B;       /* darkest bands, footer */
  --basalt-2: #1A3D3A;     /* cards on dark */
  --card: #173836;
  --teal: #2E5C58;         /* buttons (the request-a-consultation teal) */
  --teal-deep: #244A47;
  --teal-light: #8CC9C1;   /* links and accents on dark */
  --ink: #E8EFED;
  --ink-soft: #A9C0BC;
  --rule: rgba(232, 239, 237, .14);
  --on-dark: #E8EFED;
  --on-dark-soft: #A9C0BC;
}
body { background: var(--paper); color: var(--ink); }
::selection { background: var(--teal-light); color: var(--basalt); }
.btn-light { background: #E8EFED; color: #0F2725; }
.btn-light:hover { background: #fff; }
.btn-solid { background: var(--teal); color: #fff; }
.btn-solid:hover { background: #3A716C; }
.site-header:not(.is-solid):not(.always-solid) .nav .btn-solid { background: #E8EFED; color: #0F2725; }
.site-header.is-solid, .site-header.always-solid { background: rgba(10, 28, 27, .96); backdrop-filter: blur(6px); }
.textlink:hover, .care a:hover h3, .contact-lines a:hover, .detail-aside .phone:hover, .form-status[data-state="ok"] { color: var(--teal-light); }
.off-label, .off-more, .legend li::marker, .steps li::before { color: var(--teal-light); }
.section-dark, .after-dark, .svc-band, .video-band, .site-footer { background: var(--basalt); }
.ben-grid li { background: var(--card); border: 1px solid var(--rule); }
.off-tile, .flow li { background: var(--card); border-color: var(--rule); }
.off-tile:hover { border-color: var(--teal-light); }
.flow li { border-top-color: var(--teal-light); }
.flow .fn { background: var(--teal); box-shadow: 0 0 0 3px var(--paper); }
.section-limestone .flow .fn { box-shadow: 0 0 0 3px var(--limestone); }
.flow li:not(:last-child)::after { filter: brightness(2.4); }
.flow::before { background: var(--teal-light); opacity: .4; }
.svc-tile { background: var(--card); }
.form { background: var(--card); border-color: var(--rule); }
.section-limestone .form { border-color: var(--rule); }
.field input, .field select, .field textarea { background: #0C2120; color: var(--ink); border-color: rgba(232,239,237,.22); }
.field input::placeholder, .field textarea::placeholder { color: #7E9793; }
.field input:focus, .field select:focus, .field textarea:focus { outline-color: var(--teal-light); border-color: var(--teal-light); }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23E8EFED' stroke-width='1.6'/%3E%3C/svg%3E"); }
.form-status[data-state="error"] { color: #F1A08F; }
/* diagrams stay on a light card so the illustrations read cleanly */
.diagram { background: #F6F7F3; border-color: transparent; color: #1F2A26; }
.diagram .legend li::marker { color: #2E5C58; }
.mk { box-shadow: 0 0 0 3px #F6F7F3; }
.filters button { color: var(--ink); border-color: var(--rule); }
.filters button[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.masonry button, .media-img, .build-media, .work-grid a, .related .r-img, .hc-grid figure { background: var(--card); }
.intro-video figcaption { background: transparent; }
.callbar { background: var(--basalt); border-top-color: var(--rule); }
.callbar a { color: var(--ink); }
.callbar a + a { background: var(--teal); color: #fff; }
.checklist li::before { background-color: var(--teal); }
.page-hero::after, .hero::after { background: linear-gradient(180deg, rgba(10,28,27,.55) 0%, rgba(10,28,27,.05) 35%, rgba(15,39,37,.92) 100%); }
.cta-band { background: var(--basalt); }
.facts strong { color: var(--ink); }
@media (max-width: 960px) {
  .nav { background: var(--basalt); color: var(--ink); }
  body.menu-open .site-header { background: var(--basalt); color: var(--ink); }
}
@media (max-width: 1100px) { .flow li { background: none; border: 0; } }
.hero, .page-hero, .cta-band { color: #F3F7F6; }

.field select { background-color: #0C2120; background-repeat: no-repeat; background-position: right 1rem center; background-size: 12px 8px; }
.motion { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; }
.motion video, .motion .v-land video, .motion .v-port video { aspect-ratio: 3 / 4; height: auto; max-height: none; object-fit: cover; }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr 1fr; } .motion .v-land { grid-column: 1 / -1; } .motion .v-land video { aspect-ratio: 16 / 9; } }
@media (max-width: 1100px) {
  .flow::before { display: none; }
  .flow li:not(:last-child)::before { content: ""; position: absolute; left: calc(1.2rem - 1px); top: 2.4rem; bottom: 0; width: 2px; background: var(--teal-light); opacity: .4; }
}
/* backdrop-filter traps the fixed mobile menu inside the header bar; turn it off on small screens */
@media (max-width: 960px) {
  .site-header.is-solid, .site-header.always-solid { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--basalt); }
  .nav { z-index: 60; }
}

.video-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 280px)); justify-content: center; gap: 1.25rem; }
.video-row .video-frame { max-width: none; margin: 0; }
.video-row video { aspect-ratio: 3 / 4; object-fit: cover; width: 100%; }
@media (max-width: 560px) { .video-row { grid-template-columns: 1fr 1fr; gap: .75rem; } .video-row figcaption { font-size: .8rem; } }

.lb-video { max-width: 100%; max-height: calc(100vh - 8rem); background: #000; }
.lightbox img[hidden], .lb-video[hidden] { display: none; }
video[data-full] { cursor: zoom-in; }

.motion { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .motion { grid-template-columns: 1fr 1fr; } }
/* Hide the large center play/pause overlay on mobile browsers; the control bar stays */
.lb-video::-webkit-media-controls-overlay-play-button { display: none !important; }
.lb-video::-internal-media-controls-overlay-cast-button { display: none !important; }

/* Custom video player */
.lb-player { position: relative; max-width: 100%; display: grid; place-items: center; }
.lb-player[hidden] { display: none; }
.lb-player .lb-video { display: block; max-width: 100%; max-height: calc(100vh - 8rem); background: #000; }
.lb-player.is-fs { width: 100vw; height: 100vh; background: #000; }
.lb-player.is-fs .lb-video { max-height: 100vh; width: 100%; height: 100%; object-fit: contain; }
.vp-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .6rem; padding: 1.4rem .8rem .7rem;
  background: linear-gradient(0deg, rgba(0,0,0,.75), rgba(0,0,0,0)); color: #fff; transition: opacity .3s; }
.vp-bar button, .vp-exit { background: none; border: 0; color: #fff; cursor: pointer; display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.vp-time { font-size: .85rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-seek { flex: 1; min-width: 60px; accent-color: #8CC9C1; height: 28px; }
.vp-play .i-play, .lb-player.paused .vp-play .i-pause { display: none; }
.lb-player.paused .vp-play .i-play { display: block; }
.vp-mute .i-mute, .lb-player.muted .vp-mute .i-vol { display: none; }
.lb-player.muted .vp-mute .i-mute { display: block; }
.vp-exit { position: absolute; top: .6rem; right: .6rem; width: auto; height: 40px; padding: 0 .9rem; gap: .4rem; display: none;
  border-radius: 20px; background: rgba(0,0,0,.6); font: 600 .9rem var(--body); grid-auto-flow: column; transition: opacity .3s; }
.lb-player.is-fs .vp-exit { display: grid; }
.lb-player.idle:not(.paused) .vp-bar, .lb-player.idle:not(.paused) .vp-exit { opacity: 0; pointer-events: none; }
.lb-player.idle:not(.paused) { cursor: none; }
.lb-video::-webkit-media-controls { display: none !important; }
@media (max-width: 600px) { .vp-bar { gap: .3rem; padding: 1.2rem .4rem .4rem; } .vp-time { font-size: .78rem; } }

/* Rotate button (phones/tablets only) */
.vp-rot { display: none !important; }
@media (hover: none) { .vp-rot { display: grid !important; } }
.lb-player.rot { position: fixed; top: 50%; left: 50%; width: 100vh; width: 100dvh; height: 100vw; z-index: 10; background: #000;
  max-width: none; max-height: none; transform: translate(-50%, -50%) rotate(90deg); }
.lb-player.rot .lb-video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
.lb-player.rot .vp-exit, .lb-player.is-fs .vp-exit { display: grid; }

/* Lightbox: lock page scroll behind it; keep caption clear of the arrow buttons on phones */
html.lb-lock, html.lb-lock body { overflow: hidden; overscroll-behavior: none; }
.lightbox { height: 100dvh; max-height: 100dvh; overscroll-behavior: contain; touch-action: none; }
.lightbox .vp-seek { touch-action: none; }
@media (max-width: 600px) {
  .lightbox-inner { padding: 4.5rem .75rem 5.5rem; }
  .lightbox p { font-size: .95rem; }
  .lightbox img, .lb-player .lb-video { max-height: calc(100dvh - 12rem); }
}

/* Flowchart cards: darker than the section so they stand out */
@media (min-width: 1101px) { .flow li { background: #0B1F1E; border-color: rgba(140,201,193,.18); border-top-color: var(--teal-light); } }

/* ================= Ocean blue theme (chosen from version 3) ================= */
/* Colors that were hard-coded in v2 now come from variables, so each theme can change them. Values below set ocean blue. */
:root { --header: rgba(10,28,27,.96); --field: #0C2120; --flowcard: #0B1F1E; --btn-hover: #3A716C; --ov: 10,28,27; --ov2: 15,39,37; --btn-text: #fff; --mk-ring: #F6F7F3; }
.site-header.is-solid, .site-header.always-solid { background: var(--header); }
.field input, .field select, .field textarea { background-color: var(--field); }
@media (min-width: 1101px) { .flow li { background: var(--flowcard); } }
.btn-solid, .filters button[aria-pressed="true"], .callbar a + a, .flow .fn { background: var(--teal); color: var(--btn-text); }
.btn-solid:hover { background: var(--btn-hover); }
.btn-light, .site-header:not(.is-solid):not(.always-solid) .nav .btn-solid { color: var(--basalt); }
.page-hero::after, .hero::after { background: linear-gradient(180deg, rgba(var(--ov),.55) 0%, rgba(var(--ov),.05) 35%, rgba(var(--ov2),.92) 100%); }
.vp-seek { accent-color: var(--teal-light); }

:root {
  --paper: #0B2233; --limestone: #0F2A3E; --basalt: #061622; --basalt-2: #16364D; --card: #143349;
  --teal: #1F7A9C; --teal-deep: #186380; --teal-light: #7FD3EE; --btn-hover: #258CB3;
  --ink: #E8F2F7; --ink-soft: #A3BFCD; --on-dark: #E8F2F7; --on-dark-soft: #A3BFCD;
  --header: rgba(6,22,34,.96); --field: #081B29; --flowcard: #061622; --ov: 6,22,34; --ov2: 11,34,51;
}

/* Service cards: never underline the text (some browsers force link underlines) */
.off-tile, .off-tile *, .svc-tile, .svc-tile *, .related a, .related a * { text-decoration: none !important; }

/* Cards: only the link covers the card, so titles and descriptions are plain text (no forced link underlines) */
.svc-tile, .off-tile { position: relative; }
.tile-link { position: absolute; inset: 0; z-index: 1; }
.tile-link-text { text-decoration: none; }
.tile-link-text::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.svc-tile:focus-within, .off-tile:focus-within { outline: 2px solid var(--teal-light); outline-offset: 2px; }
.tile-link:focus, .tile-link-text:focus { outline: none; }
