:root {
  --navy: #0E2236;
  --navy-2: #13304A;
  --navy-deep: #0A1A2B;
  --ocean: #1A6FA8;
  --amber: #E8A33D;
  --sky: #8FC1E6;
  --paper: #F4F6F8;
  --white: #FFFFFF;
  --ink-2: #33475B;
  --ink-3: #4A5B6C;
  --mist: #C9D6E2;
  --mist-2: #DCE5EE;
  --placeholder: #DCE3EA;
  --rule: rgba(14, 34, 54, .12);
  --rule-2: rgba(14, 34, 54, .14);

  --f-display: 'IBM Plex Sans Condensed', sans-serif;
  --f-body: 'IBM Plex Sans', system-ui, sans-serif;
  --f-mono: 'IBM Plex Mono', monospace;

  --gutter: clamp(20px, 4vw, 48px);
  --section-y: clamp(56px, 8vw, 112px);
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: var(--f-body);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
a { color: var(--ocean); text-decoration: none; }
a:hover { color: var(--navy); text-decoration: underline; }
::selection { background: var(--amber); color: var(--navy); }
input, select, textarea, button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
img { display: block; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }

/* Type */
.eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ocean);
  margin-bottom: 20px;
}
.eyebrow--light { color: var(--sky); }
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -.015em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0;
  max-width: 34em;
  text-wrap: pretty;
}
.lede--light { color: var(--mist); }

.section-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 24px 56px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 56px);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 2px;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}
.btn--solid { background: var(--navy); color: var(--white); border: 0; padding: 16px 24px; }
.btn--solid:hover { background: var(--ocean); color: var(--white); text-decoration: none; }
.btn--line { border: 1px solid rgba(14, 34, 54, .3); color: var(--navy); padding: 15px 24px; }
.btn--line:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 246, 248, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  padding-top: 14px;
  padding-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
}
.brand { display: flex; align-items: baseline; gap: 10px; color: var(--navy); }
.brand:hover { color: var(--navy); text-decoration: none; }
.brand__mark { font-family: var(--f-display); font-weight: 600; font-size: 24px; letter-spacing: .08em; }
.brand__sub { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 4px 24px; flex-wrap: wrap; font-size: 14px; font-weight: 500; }
.nav a { color: var(--navy); }
.nav .nav__cta { background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 2px; display: inline-flex; align-items: center; gap: 8px; }
.nav .nav__cta:hover { background: var(--ocean); color: var(--white); text-decoration: none; }
.arrow { color: var(--amber); }

/* Hero */
/* Full-width band behind the hero: the cargo-hold photo, greyed and washed out to near paper */
.hero-band { position: relative; isolation: isolate; overflow: hidden; padding-bottom: clamp(8px, 2vw, 24px); }
.hero-band::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to bottom, rgba(244, 246, 248, .84) 0%, rgba(244, 246, 248, .9) 65%, var(--paper) 100%);
}
/* The photos sit under that wash and crossfade, each drifting in slightly as it appears */
.hero-band__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-band__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  filter: grayscale(1);
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s cubic-bezier(.2, .7, .2, 1);
}
.hero-band__slide.is-on { opacity: 1; transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .hero-band__slide { transition: none; transform: none; }
}
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero__copy { padding-bottom: clamp(0px, 2vw, 24px); }
.hero__kicker { display: flex; gap: 10px; align-items: center; margin-bottom: 28px; }
.square { width: 8px; height: 8px; background: var(--amber); display: inline-block; flex: none; }
.hero h1 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: .94;
  letter-spacing: -.02em;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero__intro {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__caption {
  position: absolute;
  left: 0;
  bottom: 0;
  background: var(--navy);
  color: var(--white);
  padding: 14px 18px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
}
/* Planner card: step 1 of the crew-arrival request, in the hero */
.hero__plan {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: clamp(20px, 2.6vw, 32px);
}
.hero__plan-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 24px;
}
.hero__plan-head h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 2.4vw, 32px); line-height: 1.05; margin: 0; }
.hero__plan .plan__form { gap: 24px; }
.hero__plan .plan__fields { grid-template-columns: minmax(0, 1fr); gap: 20px; }
.hero__plan .plan__foot { padding-top: 20px; }
.hero__plan .plan__foot { flex-direction: column; align-items: stretch; }

/* Progress: three segments, done / current / to come */
.plan__progress {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.plan__progress li {
  border-top: 3px solid var(--mist-2);
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.plan__progress li.is-done { border-top-color: var(--ocean); color: var(--ocean); }
.plan__progress li.is-current { border-top-color: var(--navy); color: var(--navy); }

/* Both steps share one grid cell, so the card doesn't jump in height between them */
.plan__steps { display: grid; }
.plan__steps > .plan__step { grid-area: 1 / 1; align-content: start; }
.plan__steps > .plan__step[hidden] { display: grid; visibility: hidden; }

.plan__nav { display: flex; gap: 8px; }
.plan__nav [hidden] { display: none; }
.plan__nav .btn { justify-content: center; }
.plan__nav .btn--solid { flex: 1 1 auto; }
.plan__nav .btn--line { background: transparent; font-family: inherit; font-size: 16px; }

/* Photo band: the barge picture, between the hero and Services */
/* Photo band: a small gallery that crossfades between project photos */
.photo-band { position: relative; margin-top: clamp(40px, 6vw, 72px); }
.photo-band__frame { position: relative; aspect-ratio: 21 / 8; overflow: hidden; background: var(--navy); }
@media (max-width: 700px) { .photo-band__frame { aspect-ratio: 4 / 3; } }
.photo-band__slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s; }
.photo-band__slide.is-on { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.photo-band__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 55%; transform: scale(1.08); transition: transform 7s cubic-bezier(.2, .7, .2, 1); }
.photo-band__slide.is-on img { transform: scale(1); }
.photo-band__slide .hero__caption { opacity: 0; transform: translateY(8px); transition: opacity .5s ease .4s, transform .5s cubic-bezier(.2, .7, .2, 1) .4s; }
.photo-band__slide.is-on .hero__caption { opacity: 1; transform: none; }
/* time left on the current photo, along the bottom edge */
.photo-band__progress { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--amber); transform-origin: left; transform: scaleX(0); z-index: 2; }
.photo-band.is-playing .photo-band__progress { animation: band-progress 6.5s linear forwards; }
/* Pause only while the pointer is on the controls, or while someone steps through with the keyboard.
   (A mouse click leaves focus on the button, so plain :focus-within would stop autoplay for good.) */
.photo-band:has(.photo-band__controls:hover) .photo-band__progress,
.photo-band:has(:focus-visible) .photo-band__progress { animation-play-state: paused; }
@keyframes band-progress { to { transform: scaleX(1); } }
.photo-band__controls {
  position: absolute;
  right: var(--gutter);
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--navy);
  padding: 6px;
}
.photo-band__arrow {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--white);
  font-size: 16px;
  cursor: pointer;
  transition: color .16s ease, transform .2s cubic-bezier(.2, .7, .2, 1);
}
.photo-band__arrow:hover { color: var(--amber); }
.photo-band__arrow[data-dir="-1"]:hover { transform: translateX(-2px); }
.photo-band__arrow[data-dir="1"]:hover { transform: translateX(2px); }
.photo-band__dots { display: flex; gap: 6px; padding: 0 6px; }
.photo-band__dots button {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.photo-band__dots button::before {
  content: '';
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  background: rgba(255, 255, 255, .35);
  transition: background-color .2s ease;
}
.photo-band__dots button:hover::before { background: rgba(255, 255, 255, .7); }
.photo-band__dots button[aria-current="true"]::before { background: var(--amber); }
/* Phones: the caption needs the full width, so the controls sit under the photo */
@media (max-width: 700px) {
  .photo-band__controls { position: static; width: max-content; margin-left: auto; }
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  border-top: 1px solid var(--navy);
  margin-top: clamp(32px, 5vw, 56px);
}
.facts > div { padding: 20px 20px 24px; border-right: 1px solid var(--rule-2); }
.facts > div:first-child { padding-left: 0; }
.facts > div:last-child { padding-right: 0; border-right: 0; }
.facts .label { margin-bottom: 8px; }
.facts__value { font-weight: 500; color: var(--navy); }

/* Services */
.services { background: var(--navy); color: var(--white); margin-top: clamp(56px, 8vw, 112px); }
.services .section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.services .h2 { font-size: clamp(36px, 5vw, 68px); }
.svc {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .16);
}
.svc__panel {
  flex: 1 1 380px;
  min-width: 0;
  align-self: flex-start;
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
}
/* Once the two columns wrap, a sticky panel would sit on top of the list. */
@media (max-width: 900px) {
  .svc__panel { position: static; }
  .svc__list { border-right: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
}
.svc__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-2); }
.svc__img img { width: 100%; height: 100%; object-fit: cover; }
.svc__body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 18px; }
.svc__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.svc__points li {
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px;
  line-height: 1.4;
  display: flex;
  gap: 10px;
}
.svc__points li::before { content: '—'; color: var(--sky); }
.svc__note {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--navy);
  background: var(--amber);
  align-self: flex-start;
  padding: 6px 10px;
}
.svc__note[hidden] { display: none; }
.svc__list {
  flex: 1 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid rgba(255, 255, 255, .16);
}
.svc__item { border-bottom: 1px solid rgba(255, 255, 255, .12); }
.svc__item.is-active { background: var(--navy-2); }
.svc__btn {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr auto 20px;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 16px 24px;
  border: 0;
  background: transparent;
  color: var(--white);
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
}
.svc__btn:hover { background: rgba(255, 255, 255, .05); }
.svc__n, .svc__sign { font-family: var(--f-mono); color: var(--sky); }
.svc__n { font-size: 12px; }
.svc__sign { font-size: 16px; text-align: right; }
.svc__sign::before { content: '+'; }
.svc__group { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--sky); }
.is-active .svc__n, .is-active .svc__sign { color: var(--amber); }
.is-active .svc__sign::before { content: '−'; }
.svc__summary { margin: 0; padding: 0 24px 22px 80px; font-size: 16px; line-height: 1.6; color: var(--mist-2); text-wrap: pretty; }

/* Process: the permit's route through three lanes */
.route {
  position: relative;
  display: grid;
  grid-template-columns: 190px repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(3, 104px) auto;
  border-top: 1px solid var(--navy);
}
.route__lane {
  grid-column: 1 / -1;
  grid-row: var(--lane);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.route__lane:nth-of-type(2) { background: rgba(14, 34, 54, .03); }
.route__lane span {
  width: 190px;
  padding-right: 16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.route__lane:first-of-type span { color: var(--ocean); }
.route__path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.route__path path { fill: none; stroke: var(--mist); stroke-width: 2; stroke-dasharray: 4 5; transition: stroke .35s ease; }
.route__path path.is-done { stroke: var(--ocean); stroke-dasharray: none; }
.route__steps { display: contents; list-style: none; margin: 0; padding: 0; }
.route__steps li {
  grid-row: var(--lane);
  grid-column: calc(var(--col) + 1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}
.route__node {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 0;
  border: 0;
  background: none;
  color: var(--navy);
  cursor: pointer;
}
.route__dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1.5px solid rgba(14, 34, 54, .3);
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--ink-3);
  transition: transform .2s var(--ease-out, ease), background-color .25s ease, border-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.route__title {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color .2s ease;
}
.route__node:hover .route__dot, .route__node:focus-visible .route__dot { transform: scale(1.08); border-color: var(--navy); color: var(--navy); }
.route__node:hover .route__title { color: var(--navy); }
.route__steps li.is-done .route__dot { border-color: var(--ocean); color: var(--ocean); background: var(--white); }
.route__steps li.is-active .route__dot { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 0 0 6px rgba(232, 163, 61, .35); }
.route__steps li.is-active .route__title { color: var(--navy); font-weight: 600; }
.route__text { display: none; }
.route__detail {
  grid-column: 2 / -1;
  grid-row: 4;
  display: grid;
  grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 8px 32px;
  align-items: baseline;
  padding: 32px 0 8px;
  min-height: 112px;
}
.route__meta { display: flex; flex-direction: column; gap: 6px; }
.route__meta #route-who { color: var(--ocean); }
.route__copy { margin: 0; font-size: 22px; font-weight: 500; line-height: 1.4; max-width: 30em; text-wrap: pretty; }
.route__copy.is-changing { animation: fade-up .3s var(--ease-out, ease); }

/* Phones and narrow tablets: a vertical timeline with every step written out */
@media (max-width: 900px) {
  .route { display: block; border-top: 1px solid var(--navy); padding-top: 24px; }
  .route__lane, .route__path, .route__detail { display: none; }
  .route__steps { display: block; }
  .route__steps li { display: block; padding: 0 0 28px; }
  .route__steps li::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 48px;
    bottom: 4px;
    width: 2px;
    background: var(--mist-2);
  }
  .route__steps li:last-child::before { display: none; }
  .route__node { justify-content: flex-start; align-items: center; gap: 16px; cursor: default; text-align: left; }
  .route__title { position: static; transform: none; font-size: 18px; font-weight: 600; color: var(--navy); white-space: normal; }
  .route__text { display: block; margin: 6px 0 0 60px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
  .route__who { display: block; margin-bottom: 4px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ocean); }
}

/* Under the route: the document checklist and what else Titan handles */
.permit-extras {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px clamp(36px, 5vw, 72px);
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 40px;
  border-top: 1px solid var(--rule-2);
}
.permit-extras__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.permit-extras h3 { font-family: var(--f-display); font-weight: 600; font-size: 26px; margin: 0; }
.docs__hint { margin: 8px 0 20px; font-size: 15px; color: var(--ink-3); }
.docs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
  column-gap: 24px;
  border-top: 1px solid var(--navy);
}
.docs__list li { border-bottom: 1px solid var(--rule); }
.doc-item { display: flex; align-items: center; gap: 12px; padding: 14px 0; font-size: 16px; }
/* A small page with a folded corner, drawn in CSS */
.doc-item__icon {
  width: 16px;
  height: 20px;
  flex: none;
  position: relative;
  border: 1.5px solid var(--ocean);
  border-radius: 1px;
  background: linear-gradient(var(--ocean), var(--ocean)) 3px 8px / 7px 1.5px no-repeat,
              linear-gradient(var(--ocean), var(--ocean)) 3px 12px / 7px 1.5px no-repeat;
  clip-path: polygon(0 0, 65% 0, 100% 28%, 100% 100%, 0 100%);
}
.docs__list li { transition: background-color .16s ease; }
.docs__list li:hover { background: rgba(14, 34, 54, .03); }

.extras__list { margin: 0; border-top: 1px solid var(--navy); }
.extras__list > div {
  display: grid;
  grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
  transition: background-color .16s ease;
}
.extras__list > div:hover { background: rgba(14, 34, 54, .03); }
.extras__list dt { color: var(--ocean); }
.extras__list dd { margin: 0; font-size: 16px; line-height: 1.5; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--rule); padding: 24px; }
.card .label { margin-bottom: 12px; }
.card__text { font-size: 15px; line-height: 1.6; }

/* Plan a crew arrival */
.plan__form { display: flex; flex-direction: column; gap: clamp(32px, 4vw, 48px); }
.plan__fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 32px clamp(28px, 4vw, 56px);
  align-items: start;
}
.plan__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px 24px;
  flex-wrap: wrap;
  border-top: 1px solid var(--navy);
  padding-top: 24px;
}
.plan__tally { font-family: var(--f-mono); font-size: 13px; letter-spacing: .04em; color: var(--ink-2); }
.plan__foot .btn { font-size: 16px; }
.plan__field { border: 0; margin: 0; padding: 0; min-width: 0; }
.plan__field legend { padding: 0; margin-bottom: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(14, 34, 54, .25);
  border-radius: 2px;
  background: #F9FAFB;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.chip input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }
.plan__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 20px; }
.plan__input { display: flex; flex-direction: column; gap: 8px; }
.plan__input input {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 34, 54, .25);
  border-radius: 2px;
  background: #F9FAFB;
  color: var(--navy);
}

/* Step 2: the review popup */
.request {
  width: min(600px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  overflow: auto;
  margin: auto;
  background: var(--paper);
  color: var(--navy);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 24px 64px rgba(10, 26, 43, .35);
}
.request[open] { display: flex; flex-direction: column; gap: 20px; }
.request::backdrop { background: rgba(10, 26, 43, .6); }
.request__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.request__head h3 { font-family: var(--f-display); font-weight: 600; font-size: 32px; margin: 0; }
.request__close {
  width: 44px;
  height: 44px;
  flex: none;
  border: 1px solid rgba(14, 34, 54, .25);
  border-radius: 2px;
  background: transparent;
  color: var(--navy);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.request__close:hover { border-color: var(--navy); }
.request__route { margin-top: -8px; }
.request__route span { display: block; margin-top: 4px; color: var(--ocean); text-transform: none; letter-spacing: .02em; font-size: 12px; overflow-wrap: anywhere; }
.request__actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.request__actions .btn { font-size: 16px; }
.request__actions .btn--line { background: transparent; font-family: inherit; }
.request__sum { margin: 0; font-size: 20px; font-weight: 500; line-height: 1.4; }
.request__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.request__list li {
  padding: 10px 0;
  border-top: 1px solid var(--rule);
  font-size: 15px;
  line-height: 1.45;
  display: flex;
  gap: 10px;
}
.request__list li::before { content: '—'; color: var(--ocean); }
.request__path[hidden] { display: none; }
.request__path .label { margin-bottom: 10px; }
.request__path ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--navy); }
.request__path li {
  display: grid;
  grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.request__path li span { font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: 2px; }

/* Team */
.team { padding-bottom: var(--section-y); }
.team__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.team__img { aspect-ratio: 3 / 2; overflow: hidden; background: var(--placeholder); }
.team__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.team__copy { max-width: 36em; }
.team__copy h2 {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 24px;
  text-wrap: balance;
}
.team__copy p { font-size: 17px; line-height: 1.65; color: var(--ink-2); margin: 0 0 16px; text-wrap: pretty; }
.team__copy p:last-child { margin-bottom: 0; }

/* Track record */
.record { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.record__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
}
@media (max-width: 900px) {
  .record__grid { grid-template-columns: minmax(0, 1fr); }
}
.ledger__row {
  display: grid;
  grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.ledger__row:hover { background: var(--paper); }
.ledger__head { padding: 0 0 12px; border-bottom: 1px solid var(--navy); }
.ledger__head:hover { background: none; }
.ledger__op { font-weight: 600; font-size: 16px; }
.ledger__list { font-size: 16px; line-height: 1.5; color: var(--ink-2); }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: start; }
.gallery > div { aspect-ratio: 1; overflow: hidden; background: var(--placeholder); }
.gallery > div:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Offices */
.offices .h2 { margin-bottom: clamp(36px, 5vw, 56px); max-width: 16em; }
.office {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--navy);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.office--gy { border-top-color: var(--ocean); }
.office--sr { border-top-color: var(--amber); }
.office__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.office h3 { font-family: var(--f-display); font-weight: 600; font-size: 32px; margin: 0; }
.office .label { letter-spacing: .08em; }
.office__detail { font-size: 15px; line-height: 1.55; color: var(--ink-2); min-height: 3em; }
.office__email { font-family: var(--f-mono); font-size: 14px; word-break: break-all; }

/* Safety */
.safety { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.safety__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.safety blockquote {
  margin: 0;
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}
.safety__body { font-size: 16px; line-height: 1.65; color: var(--mist); margin: 28px 0 0; max-width: 34em; text-wrap: pretty; }
.safety__docs { display: flex; flex-direction: column; gap: 12px; justify-content: end; }
.safety__docs .eyebrow { margin-bottom: 8px; }
.doc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: var(--white);
}
.doc:hover { background: rgba(255, 255, 255, .06); color: var(--white); text-decoration: none; border-color: var(--amber); }
.doc__title { display: flex; flex-direction: column; gap: 4px; }
.doc__title strong { font-size: 18px; font-weight: 600; }
.doc__title span { font-size: 14px; color: var(--mist); }
.doc__action { font-family: var(--f-mono); font-size: 13px; color: var(--amber); }

/* Contact */
.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.contact .h2 { margin-bottom: 24px; }
.contact .lede { margin-bottom: 36px; max-width: 30em; }
.contact__details { display: flex; flex-direction: column; gap: 20px; border-top: 1px solid var(--navy); padding-top: 24px; }
.contact__details .label { margin-bottom: 6px; }
.contact__address { font-size: 16px; line-height: 1.55; font-style: normal; }
.contact__phone { font-size: 20px; font-weight: 600; color: var(--navy); }
.contact__map { font-size: 15px; }
.form-card { background: var(--white); border: 1px solid var(--rule); padding: clamp(24px, 3vw, 40px); }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 20px; }
.form[hidden] { display: none; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 500; }
.form .full { grid-column: 1 / -1; }
.form input, .form select, .form textarea {
  font-size: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(14, 34, 54, .25);
  border-radius: 2px;
  background: #F9FAFB;
  color: var(--navy);
}
.form textarea { resize: vertical; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.form__submit { font-size: 16px; }
.sent { display: flex; flex-direction: column; gap: 16px; min-height: 360px; justify-content: center; }
.sent[hidden] { display: none; }
.sent .square { width: 10px; height: 10px; }
.sent h3 { font-family: var(--f-display); font-weight: 600; font-size: 36px; margin: 0; }
.sent p { font-size: 16px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.sent button {
  align-self: flex-start;
  background: transparent;
  border: 1px solid rgba(14, 34, 54, .3);
  padding: 12px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-size: 15px;
  color: var(--navy);
}

/* Footer */
.footer { background: var(--navy-deep); color: var(--mist); }
.footer__inner { padding-top: 48px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer__top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-end; }
.footer__mark {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(56px, 10vw, 140px);
  line-height: .85;
  letter-spacing: .04em;
  color: var(--white);
}
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, auto)); gap: 10px 40px; font-size: 15px; }
.footer a { color: var(--white); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .14);
  padding-top: 20px;
  font-family: var(--f-mono);
  font-size: 12px;
}

/* ==========================================================================
   Motion: hover states, press feedback and small entrances.
   Short durations, small distances; everything is switched off under
   prefers-reduced-motion at the bottom of this block.
   ========================================================================== */
:root {
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --t-fast: .16s;
  --t-med: .28s;
}

/* Buttons: lift on hover, settle on press, arrow nudges forward */
.btn, .nav .nav__cta {
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out), box-shadow var(--t-med) ease;
}
.btn:hover, .nav .nav__cta:hover { transform: translateY(-1px); }
.btn--solid:hover, .nav .nav__cta:hover { box-shadow: 0 6px 16px rgba(14, 34, 54, .18); }
.btn:active, .nav .nav__cta:active { transform: translateY(0) scale(.98); box-shadow: none; transition-duration: .06s; }
.arrow { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.btn:hover .arrow, .nav__cta:hover .arrow, .doc:hover .doc__action { transform: translateX(3px); }
.btn--line:hover { background: var(--white); }

/* Nav and footer links: a rule grows in from the left instead of a plain underline */
.nav a:not(.nav__cta), .footer__nav a, .contact__map, .office__email {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size var(--t-med) var(--ease-out), color var(--t-fast) ease;
}
.nav a:not(.nav__cta):hover, .footer__nav a:hover, .contact__map:hover, .office__email:hover {
  text-decoration: none;
  background-size: 100% 1px;
}
.nav a:not(.nav__cta):hover { color: var(--ocean); }

/* Chips: colour eases, a press squeezes slightly, a newly picked chip pops */
.chip span { transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
.chip:active span { transform: scale(.96); }
.chip input:checked + span { animation: chip-pick var(--t-med) var(--ease-out); }
@keyframes chip-pick { 40% { transform: scale(1.04); } }

/* Inputs: a soft focus ring in the brand blue */
.plan__input input, .form input, .form select, .form textarea {
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease, background-color var(--t-fast) ease;
}
.plan__input input:hover, .form input:hover, .form select:hover, .form textarea:hover { border-color: rgba(14, 34, 54, .45); }
.plan__input input:focus, .form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ocean);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26, 111, 168, .16);
}

/* Planner: progress fills, the next step slides in */
.plan__progress li { transition: border-color var(--t-med) ease, color var(--t-med) ease; }
.plan__step.is-entering { animation: step-in var(--t-med) var(--ease-out); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
.plan__step.is-entering.from-left { animation-name: step-in-left; }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-12px); } }
.plan__tally { transition: color var(--t-fast) ease; }
.plan__tally.is-bumped { color: var(--ocean); }

/* Review popup: fades and rises in over a fading backdrop */
.request[open] { animation: pop-in var(--t-med) var(--ease-out); }
.request[open]::backdrop { animation: fade-in var(--t-med) ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes fade-in { from { opacity: 0; } }
.request__list li { animation: fade-up var(--t-med) var(--ease-out) both; }
.request__list li:nth-child(2) { animation-delay: .04s; }
.request__list li:nth-child(3) { animation-delay: .08s; }
.request__list li:nth-child(4) { animation-delay: .12s; }
.request__list li:nth-child(n+5) { animation-delay: .16s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } }
.request__close { transition: border-color var(--t-fast) ease, transform var(--t-fast) var(--ease-out); }
.request__close:hover { transform: rotate(90deg); }

/* Services: rows ease, the open summary and the panel content fade in */
.svc__btn { transition: background-color var(--t-fast) ease; }
.svc__item { transition: background-color var(--t-med) ease; }
.svc__btn:hover .svc__sign { color: var(--amber); }
.svc__summary:not([hidden]) { animation: fade-up var(--t-med) var(--ease-out); }
.svc__points.is-swapping li { animation: fade-up var(--t-med) var(--ease-out) both; }
.svc__points.is-swapping li:nth-child(2) { animation-delay: .03s; }
.svc__points.is-swapping li:nth-child(3) { animation-delay: .06s; }
.svc__points.is-swapping li:nth-child(n+4) { animation-delay: .09s; }

/* Tables, grids and cards: quiet hover feedback */
.ledger__row { transition: background-color var(--t-fast) ease; }
.ledger__row:not(.ledger__head):hover .ledger__op { color: var(--ocean); }

.client-logo img {
  display: block;
  max-width: 78%;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0);
  opacity: .55;
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.client-logo--flat img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; max-height: 40px; opacity: .7; }
.office, .card { transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) ease, border-color var(--t-med) ease; }
.office:hover, .card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(14, 34, 54, .08); }
.doc { transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.doc__action { display: inline-block; transition: transform var(--t-med) var(--ease-out); }
.facts > div { transition: background-color var(--t-fast) ease; }

/* Pictures: a slow, small zoom on hover */
.gallery img, .team__img img, .svc__img img { transition: transform .9s var(--ease-out); }
.gallery > div:hover img, .team__img:hover img { transform: scale(1.03); }

/* Entrances: content rises in once as it scrolls into view (set up by initMotion in main.js) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); transition-delay: var(--reveal-delay, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .btn:hover, .nav .nav__cta:hover, .office:hover, .card:hover { transform: none; }
  .gallery > div:hover img, .team__img:hover img { transform: none; }
  .photo-band__slide img { transform: none; }
}

/* Clients served since inception: a grid of logos (names where there is no logo) */
.clients { margin-top: clamp(48px, 6vw, 80px); }
.clients .label { margin-bottom: 16px; }
.clients__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr));
  border-top: 1px solid var(--rule-2);
  border-left: 1px solid var(--rule-2);
}
.clients__grid li {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 16px;
  border-right: 1px solid var(--rule-2);
  border-bottom: 1px solid var(--rule-2);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-3);
  transition: background-color .16s ease, color .16s ease;
}
.clients__grid li:has(> a) { padding: 0; display: block; }
.clients__grid a {
  height: 100%;
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  color: inherit;
  text-decoration: none;
}
.clients__grid a::after {
  content: '↗';
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  color: var(--ocean);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: opacity .18s ease, transform .25s cubic-bezier(.2, .7, .2, 1);
}
.clients__grid li:hover { background: var(--paper); color: var(--ocean); }
.clients__grid li:has(> a.client-logo):hover { background: var(--white); }
.clients__grid a:hover, .clients__grid a:focus-visible { color: var(--ocean); text-decoration: none; }
.clients__grid a:hover::after, .clients__grid a:focus-visible::after { opacity: 1; transform: none; }
.clients__grid a:focus-visible { outline-offset: -2px; }
.clients__grid a:hover img, .clients__grid a:focus-visible img { opacity: 1; transform: scale(1.04); }

/* Concept label: remove with the .concept-bar block in index.html at launch */
.concept-bar { background: var(--navy-deep); color: var(--mist); font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; }
.concept-bar__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding-block: 9px; }
.concept-bar__tag { background: var(--amber); color: var(--navy-deep); font-weight: 500; text-transform: uppercase; padding: 2px 8px; border-radius: 2px; }
.concept-bar a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
