/* Taylor Lane shared stylesheet.
 * Sections contain their own responsive rules. Within each section, source
 * order preserves the established cascade. Gallery-page styles live in gallery.css.
 */
/* 1. Foundations and shared utilities */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

img {
  display: block;
  max-width: 100%;
  object-fit: cover;
}

button {
  font: inherit;
  touch-action: manipulation;
}

a {
  color: inherit;
  text-underline-offset: 5px;
  touch-action: manipulation;
}

h3 {
  margin: 0;
  line-height: 1.1;
}

h1 {
  margin: 0;
  line-height: 1.1;
  font-size: clamp(54px,5.6vw,86px);
  letter-spacing: -.055em;
  font-weight: 650;
}

h2 {
  margin: 0;
  line-height: 1.1;
  font-size: 34px;
  letter-spacing: -.03em;
}

p {
  margin: 0;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  background: #203f63;
  color: white;
  padding: 15px 24px;
  border: 0;
  text-decoration: none;
  cursor: pointer;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  z-index: 20;
  background: white;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid #608fc3;
  outline-offset: 4px;
}

[hidden] {
  display: none!important;
}

:root {
  --navy: #0a2443;
  --blue: #507fb8;
  --pale: #eaf3fc;
}

.shell {
  margin-inline: auto;
  width: min(1400px,calc(100% - 80px));
}

.button:hover {
  filter: brightness(.92);
}

section[id] {
  scroll-margin-top: 25px;
}

@media(max-width:800px) {
  .shell {
    width: calc(100% - 36px);
  }
}

body {
  margin: 0;
  background: #fff;
  font: 16px/1.6 Arial,sans-serif;
  font-family: Arial,Helvetica,sans-serif;
  color: #09213e;
}

@media(prefers-reduced-motion:no-preference) {
  .button {
    transition: background-color 180ms ease,box-shadow 180ms ease,transform 180ms ease;
  }
}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #173b601c;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}

.eyebrow {
  display: block;
  color: #416c9c;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 17px;
  line-height: 1.4;
}

@media(max-width:800px) {
  .eyebrow {
    font-size: 11px;
    margin-bottom: 12px;
  }
}

.yard-dates legend {
  font-size: 14px;
  padding: 0;
  margin-bottom: 6px;
}

.yard-date-fields {
  gap: 18px;
}

@media(max-width:380px) {
  .yard-date-fields {
    gap: 12px;
  }
}

.yard-date-fields {
  grid-template-columns: repeat(2,minmax(0,1fr));
}

@media(max-width:800px) {
  .yard-date-fields {
    grid-template-columns: minmax(0,1fr);
    gap: 16px;
  }

  .yard-dates {
    width: 100%;
    max-width: 100%;
  }
}

.yard-dates {
  border: 0;
  padding: 0;
  margin: 0 0 16px;
  min-width: 0;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.yard-date-fields {
  display: grid;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.capability-list {
  margin: 22px 0 0;
  padding: 18px 0 0 20px;
  border-top: 1px solid #e0eaf4;
  color: #38546e;
  font-size: 16px;
  line-height: 1.6;
}

.capability-list li {
  padding-left: 3px;
  margin-bottom: 9px;
}

.capability-list li::marker {
  color: #6e9bc9;
}

.yard-dimension small {
  font-size: .7em;
  font-weight: 400;
}

.yard-dimension {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yard-dimension strong {
  font-size: 30px;
}

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

/* 2. Header and navigation */

.nav {
  display: flex;
}

.menu-toggle {
  display: none;
}

.site-header {
  background: white;
  position: relative;
  z-index: 5;
  border-bottom: 0;
}

.header-inner {
  height: 168px;
  min-height: 0;
  width: calc(100% - 88px);
  gap: 32px;
}

.nav {
  margin-left: auto;
  gap: 34px;
}

.nav a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 400;
}

.header-phone {
  display: flex;
  gap: 20px;
  font-size: 20px;
  font-weight: 700;
  padding-left: 40px;
  margin-left: 20px;
}

@media(min-width:801px) and (max-width:1585px) {
  .header-inner {
    height: 10.59vw;
    min-height: 110px;
    width: calc(100% - 5.55vw);
  }

  .nav {
    gap: 2.14vw;
  }

  .nav a {
    font-size: clamp(13px,1.01vw,16px);
  }

  .header-phone {
    font-size: 1.26vw;
    gap: 1.26vw;
    padding-left: 2.52vw;
    margin-left: 1.26vw;
  }
}

@media(max-width:1100px) and (min-width:801px) {
  .header-phone {
    display: none;
  }

  .header-inner {
    gap: 24px;
  }

  .nav {
    gap: 20px;
  }
}

@media(max-width:800px) {
  .header-inner {
    height: 95px;
    min-height: 95px;
    width: calc(100% - 36px);
  }

  .header-phone {
    display: none;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    background: white;
    padding: 25px;
    box-shadow: 0 15px 20px #152d4620;
    top: 95px;
    margin: 0;
    gap: 20px;
  }

  .nav a {
    font-size: 16px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .nav a {
    transition: color 180ms ease;
  }
}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .nav a:hover {
    color: #507fb8;
  }
}

.header-inner {
  display: flex;
  justify-content: space-between;
  max-width: 1498px;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  line-height: 0;
}

.brand img {
  display: block;
  aspect-ratio: 754.36 / 108.18;
  object-fit: contain;
  width: 430px;
  max-width: 100%;
  height: auto;
}

.header-inner>.nav {
  align-self: center;
}

.header-phone {
  white-space: nowrap;
  border-left: 1px solid #bacde3;
  text-decoration: none;
  align-items: center;
  align-self: center;
}

@media(min-width:801px) and (max-width:1585px) {
  .brand img {
    width: 27.1vw;
  }
}

@media(max-width:1100px) and (min-width:801px) {
  .brand img {
    width: 30vw;
  }
}

@media(max-width:800px) {
  .brand {
    max-width: calc(100% - 80px);
  }

  .brand img {
    width: 280px;
  }

  .menu-toggle {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 7px;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--navy);
    cursor: pointer;
  }

  .menu-line {
    display: block;
    width: 25px;
    height: 2px;
    background: currentColor;
    transition: transform .22s ease;
  }

  .menu-toggle[aria-expanded="true"] .menu-line:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] .menu-line:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .menu-toggle:hover {
    background: #eaf3fc;
  }

  .nav.open {
    display: flex;
  }

  .nav.open a {
    padding-block: 8px;
  }
}

@media(prefers-reduced-motion:reduce) {
  .menu-line {
    transition: none;
  }
}

.header-phone svg {
  width: 32px;
  height: 36px;
  color: #5688bd;
  flex: none;
  transform-origin: 50% 55%;
}

@media(prefers-reduced-motion:no-preference) {
  .header-phone:focus-visible svg {
    animation: phone-ring .55s ease-in-out;
  }
}

@media(hover:hover) and (prefers-reduced-motion:no-preference) {
  .header-phone:hover svg {
    animation: phone-ring .55s ease-in-out;
  }
}

.services-nav {
  position: relative;
  align-self: center;
}

.services-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
}

.services-toggle:hover,
.services-toggle[aria-expanded=true] {
  color: #507fb8;
}

.services-toggle svg {
  transition: transform .18s;
}

.services-toggle[aria-expanded=true] svg {
  transform: rotate(180deg);
}

.services-links[hidden] {
  display: none;
}

.services-links {
  position: absolute;
  top: 100%;
  left: -18px;
  min-width: 260px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d6e1ed;
  border-radius: 8px;
  box-shadow: 0 12px 30px #0a24431a;
  z-index: 10;
}

.nav .services-links a {
  display: block;
  font-size: 15px;
  line-height: 1.4;
  padding: 12px 10px;
  border-radius: 4px;
  white-space: nowrap;
}

.nav .services-links a:hover,
.nav .services-links a:focus-visible {
  background: #edf4fc;
  color: #315f92;
}

.nav .services-links .services-overview {
  border-top: 1px solid #d6e1ed;
  border-radius: 0;
  margin-top: 6px;
  padding-top: 16px;
  font-weight: 700;
}

@media(min-width:801px) and (max-width:1585px) {
  .services-toggle {
    font-size: clamp(13px,1.01vw,16px);
  }
}

@media(max-width:800px) {
  .nav.open {
    flex-direction: column;
    gap: 20px;
    padding: 24px 28px 30px;
    border-top: 1px solid #e4edf5;
    box-shadow: 0 16px 24px #0a244312;
    max-height: calc(100dvh - 95px);
    overflow-y: auto;
  }

  .services-nav {
    align-self: stretch;
  }

  .services-toggle {
    width: 100%;
    justify-content: space-between;
    font-size: 16px;
    min-height: 44px;
    padding-block: 8px;
    text-align: left;
  }

  .services-links {
    position: static;
    min-width: 0;
    margin-top: 6px;
    padding: 4px 0 4px 14px;
    border: 0;
    border-left: 2px solid #c4d7e9;
    border-radius: 0;
    box-shadow: none;
  }

  .nav .services-links a {
    font-size: 15px;
    min-height: 44px;
    white-space: normal;
  }
}

@media(prefers-reduced-motion:reduce) {
  .services-toggle svg {
    transition: none;
  }
}

/* 3. Homepage hero */

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 30px;
  font-size: 14px;
}

.subtitle {
  font-size: 20px;
  font-weight: 600;
}

.hero-photo {
  position: relative;
  overflow: hidden;
}

.hero-photo>img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media(max-width:1100px) {
  .hero-actions {
    gap: 16px;
  }
}

.blue-current .hero-photo {
  height: 580px;
  clip-path: polygon(31% 0,100% 0,100% 92%,90% 96%,75% 99%,58% 100%,40% 98%,18% 92%,0 87%,10% 68%,17% 43%,22% 20%);
}

.blue-current .hero-photo img {
  object-position: 65% center;
}

.hero-actions .button {
  background: linear-gradient(135deg,#527fb4,#4875aa);
  border-radius: 14px;
  font-size: 19px;
  font-weight: 650;
  min-width: 280px;
  justify-content: space-between;
  gap: 32px;
  padding: 18px 26px;
}

.hero-actions>a:last-child {
  font-size: 13px;
}

@supports(clip-path:shape(from 0% 0%,line to 100% 100%,close)) {
  .blue-current .hero-photo {
    clip-path: shape(from 37% 0%,line to 100% 0%,line to 100% 92%,curve to 0% 87% with 65% 112% / 35% 83%,curve to 37% 0% with 20% 65% / 18% 0%,close);
  }
}

@media(max-width:1200px) {
  .blue-current .hero-photo {
    height: 590px;
  }
}

@media(max-width:800px) {
  .hero-actions {
    margin-top: 24px;
  }

  .hero-actions .button {
    min-width: 260px;
    font-size: 17px;
    border-radius: 10px;
    padding: 16px 22px;
  }

  .blue-current .hero-photo {
    height: 300px;
    width: 100%;
    clip-path: ellipse(80% 56% at 61% 44%);
    margin-top: 0;
  }
}

.hull-sweep {
  inset: 0;
  height: 100%;
}

.blue-current .hero-photo {
  border-radius: 0;
  background: #90b6d9;
  position: relative;
  z-index: 1;
}

.hero-visual .hero-photo {
  height: 580px;
}

@media(max-width:1200px) {
  .hero-visual .hero-photo {
    height: 590px;
  }
}

@media(max-width:800px) {
  .hero-visual {
    width: 100%;
    height: 310px;
  }

  .hero-visual .hero-photo {
    height: 300px;
  }
}

.hull-sweep {
  position: absolute;
  width: 100%;
  pointer-events: none;
  z-index: 2;
  overflow: visible;
}

.hero-visual {
  position: relative;
  align-self: stretch;
  min-width: 0;
  overflow: visible;
}

@media(max-width:800px) {
  .hull-sweep {
    top: 8px;
    height: 300px;
    z-index: 2;
  }
}

.blue-current .hero-visual .hero-photo {
  height: 100%;
  width: 100%;
  margin: 0;
  clip-path: url(#hero-hull-clip);
  border-radius: 0;
}

.blue-current .hero-visual .hull-sweep {
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  overflow: visible;
}

@media(max-width:800px) {
  .blue-current .hero-visual .hull-sweep {
    inset: 0;
    height: 100%;
  }
}

.blue-current .hero-copy .hero-actions>a:last-child {
  flex-basis: 100%;
  width: fit-content;
  max-width: fit-content;
  margin-top: 2px;
  margin-bottom: 22px;
}

@media(max-width:800px) {
  .blue-current .hero-copy .hero-actions>a:last-child {
    margin-bottom: 8px;
  }
}

.blue-current .hero {
  display: grid;
  width: 100%;
  gap: 0;
  max-width: 1586px;
  min-height: 0;
  grid-template-columns: 29.2% 70.8%;
  padding: 0;
  margin: auto;
  align-items: start;
}

.blue-current .hero-copy {
  position: relative;
  z-index: 2;
  padding: 51px 0 0 63px;
  margin-right: -65px;
  align-self: start;
}

.blue-current h1 {
  font-family: Arial,Helvetica,sans-serif;
  font-size: 80px;
  font-weight: 700;
  letter-spacing: -4.5px;
  line-height: .98;
}

.blue-current .subtitle {
  font-size: 30px;
  line-height: 1.27;
  font-weight: 400;
  margin-top: 27px;
  letter-spacing: -.5px;
}

.blue-current .hero-copy>p:not(.subtitle) {
  font-size: 20px;
  line-height: 1.4;
  font-weight: 400;
  margin-top: 19px;
  letter-spacing: -.25px;
}

.blue-current .hero-copy .hero-actions {
  align-items: center;
  margin-top: 22px;
  gap: 0;
}

.blue-current .hero-copy .hero-actions>.button {
  flex-basis: auto;
  max-width: none;
  margin: 0;
  min-width: 298px;
  min-height: 66px;
  padding: 16px 36px;
  border-radius: 18px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
  background: #416c9c;
  display: flex;
  gap: 18px;
}

.blue-current .hero-visual {
  position: relative;
  overflow: visible;
  height: 582px;
  align-self: start;
}

@media(min-width:801px) and (max-width:1585px) {
  .blue-current .hero-copy {
    padding: 3.22vw 0 0 3.97vw;
    margin-right: -4.1vw;
  }

  .blue-current h1 {
    font-size: 5.044vw;
    letter-spacing: -.284vw;
  }

  .blue-current .subtitle {
    font-size: 1.89vw;
    margin-top: 1.7vw;
  }

  .blue-current .hero-copy>p:not(.subtitle) {
    font-size: 1.261vw;
    margin-top: 1.2vw;
  }

  .blue-current .hero-copy .hero-actions {
    margin-top: 1.39vw;
  }

  .blue-current .hero-copy .hero-actions>.button {
    min-width: 18.79vw;
    min-height: 4.16vw;
    font-size: 1.324vw;
    padding: 1.01vw 2.27vw;
    border-radius: 1.135vw;
  }

  .blue-current .hero-visual {
    height: 36.7vw;
  }
}

@media(max-width:1100px) and (min-width:801px) {
  .blue-current .hero-copy>p:not(.subtitle) {
    font-size: 15px;
  }

  .blue-current .hero-copy .hero-actions>.button {
    font-size: 16px;
    min-height: 48px;
  }

  .blue-current .hero-visual {
    min-height: 430px;
  }
}

@media(max-width:800px) {
  .blue-current .hero {
    flex-direction: column;
    display: flex;
    min-height: 0;
  }

  .blue-current h1 {
    font-size: clamp(48px,11vw,68px);
    letter-spacing: -2.5px;
    line-height: 1.02;
  }

  .blue-current .hero-copy>p:not(.subtitle) {
    font-size: 16px;
    margin-top: 18px;
  }

  .blue-current .hero-copy .hero-actions>.button {
    min-width: 260px;
    min-height: 58px;
    font-size: 18px;
    padding: 16px 24px;
    border-radius: 14px;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .hero-copy h1 {
    animation: soft-enter 620ms cubic-bezier(.2,.65,.3,1) both;
  }

  .hero-copy .subtitle {
    animation: soft-enter 620ms 90ms cubic-bezier(.2,.65,.3,1) both;
  }

  .hero-copy>p:not(.subtitle) {
    animation: soft-enter 620ms 150ms cubic-bezier(.2,.65,.3,1) both;
  }

  .hero-copy .hero-actions {
    animation: soft-enter 620ms 210ms cubic-bezier(.2,.65,.3,1) both;
  }

  .hero-visual {
    animation: photo-enter 850ms ease-out both;
  }

  .hero-actions .button span {
    transition: transform 180ms ease;
  }
}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .hero-actions .button:hover span {
    transform: translateX(3px);
  }
}

.blue-current .hero-visual .hero-photo img {
  object-position: 58% 48%;
}

@media(prefers-reduced-motion:no-preference) {
  .blue-current .hero-visual .hull-sweep {
    animation: sweep-reveal 1.8s .35s cubic-bezier(.22,.61,.36,1) both;
  }

  .blue-current .hero-visual .hero-photo img {
    animation: hero-ken-burns 4.8s cubic-bezier(.2,.45,.35,1) forwards;
    transform-origin: 58% 48%;
    will-change: auto;
  }
}

@media(max-width:800px) {
  .blue-current .hero-copy {
    margin: 0;
    width: 100%;
    padding: 16px 22px 20px;
  }

  .blue-current .hero-visual {
    width: 100%;
    height: 260px;
    min-height: 0;
    margin-top: 0;
  }

  .blue-current .hero-visual .hero-photo {
    height: 100%;
    clip-path: url(#hero-mobile-clip);
  }

  .blue-current .hero-visual .hero-photo img {
    object-position: 62% 50%;
  }

  .blue-current .hero-copy .hero-actions {
    margin-top: 20px;
  }

  .blue-current .subtitle {
    font-size: 23px;
    margin-top: 20px;
  }
}

/* 4. Berth specifications */

.berth-grid>div {
  display: flex;
  flex-direction: column;
  padding: 0 30px;
  border-right: 1px solid #a6c0dd;
}

.berth-grid>div:last-child {
  border: 0;
  padding-right: 0;
}

@media(max-width:800px) {
  .berth-grid>div {
    padding: 0 15px;
  }

  .berth-grid>div:nth-child(even) {
    border: 0;
    padding-right: 0;
  }
}

.spec-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

@media(max-width:800px) {
  .berth-grid>div:nth-child(odd) {
    padding-left: 0;
  }
}

.spec-icon {
  flex: 0 0 44px;
  color: #608fc3;
  box-sizing: content-box;
  padding-right: 20px;
  border-right: 1px solid #8fafd5;
  flex-basis: 44px;
  width: 44px;
  height: 48px;
  stroke-width: 1.5;
}

.berth-grid>div {
  padding-inline: 28px;
}

.berth-grid>div:first-child {
  padding-left: 0;
}

@media(max-width:1200px) {
  .spec-icon {
    width: 34px;
    flex-basis: 34px;
    padding-right: 14px;
  }
}

@media(max-width:800px) {
  .spec-icon {
    width: 28px;
    flex-basis: 28px;
    height: 36px;
    padding-right: 10px;
  }

  .berth-grid>div {
    padding-inline: 12px;
  }

  .berth-location .spec-icon {
    width: 25px;
    flex-basis: 25px;
  }
}

.berth-band {
  background: linear-gradient(90deg,#eaf4fd,#f5faff);
  margin-top: 0;
}

.berth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: min(1270px,calc(100% - 120px));
  gap: 50px;
  padding-block: 30px;
  min-height: 116px;
}

.berth-grid>div:has(.spec-icon) {
  display: flex;
  flex-direction: row;
  align-items: center;
  border-right: 0;
  padding: 0;
  gap: 38px;
  justify-content: flex-start;
}

.berth-grid .spec-icon {
  padding-right: 38px;
  width: 48px;
  flex-basis: 48px;
  height: 58px;
}

.berth-grid strong {
  line-height: 1.3;
  font-size: 32px;
}

.berth-grid span {
  font-size: 17px;
}

.berth-location strong {
  font-size: 22px;
  line-height: 1.35;
}

@media(max-width:1100px) {
  .berth-grid {
    width: calc(100% - 64px);
    gap: 24px;
  }

  .berth-grid>div:has(.spec-icon) {
    gap: 18px;
  }

  .berth-grid .spec-icon {
    width: 36px;
    flex-basis: 36px;
    padding-right: 18px;
    height: 48px;
  }

  .berth-location strong {
    font-size: 18px;
  }

  .berth-grid span {
    font-size: 14px;
  }
}

@media(max-width:800px) {
  .berth-grid .spec-icon {
    flex-basis: 30px;
  }

  .berth-location strong {
    font-size: 18px;
  }
}

@media(min-width:801px) {
  .berth-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    display: flex;
    justify-content: space-between;
    gap: 32px;
  }

  .berth-grid>div:has(.spec-icon) {
    flex: 0 0 auto;
    min-width: 0;
  }

  .berth-grid .spec-copy {
    min-width: 0;
    flex: 0 0 auto;
  }

  .berth-grid .berth-location strong {
    font-size: clamp(16px,1.38vw,22px);
    white-space: nowrap;
  }
}

@media(min-width:801px) and (max-width:1100px) {
  .berth-grid {
    gap: 22px;
  }

  .berth-grid>div:has(.spec-icon) {
    gap: 14px;
  }

  .berth-grid .spec-icon {
    width: 32px;
    flex-basis: 32px;
    padding-right: 14px;
  }

  .berth-grid strong {
    font-size: 28px;
  }

  .berth-grid .berth-location strong {
    font-size: 16px;
  }

  .berth-grid span {
    font-size: 13px;
  }
}

@media(max-width:800px) {
  .berth-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr);
    width: calc(100% - 44px);
    gap: 0;
    padding-block: 12px;
    min-height: 0;
  }

  .berth-grid>div:has(.spec-icon) {
    display: grid;
    grid-template-columns: 48px minmax(0,1fr);
    gap: 20px;
    justify-content: initial;
    align-items: center;
    padding: 20px 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid #d5e4f2;
  }

  .berth-grid>div:last-child {
    border-bottom: 0;
  }

  .berth-grid .berth-location {
    grid-column: auto;
    justify-content: initial;
  }

  .berth-grid .spec-icon {
    box-sizing: border-box;
    width: 48px;
    height: 44px;
    max-width: none;
    padding-right: 16px;
    border-right: 1px solid #8fafd5;
  }

  .berth-grid .spec-copy {
    gap: 2px;
    min-width: 0;
  }

  .berth-grid strong {
    font-size: 28px;
    line-height: 1.15;
  }

  .berth-grid span {
    font-size: 14px;
    line-height: 1.4;
  }

  .berth-grid .berth-location strong {
    font-size: 19px;
    line-height: 1.35;
    white-space: normal;
  }
}

/* 5. Homepage services */

.work {
  padding-block: 70px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
}

.work img {
  width: 100%;
  height: 250px;
}

.work h2 {
  font-size: 25px;
  margin-top: 22px;
}

.work p {
  font-size: 16px;
}

@media(max-width:800px) {
  .work {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-block: 40px;
  }

  .work img {
    height: 240px;
  }
}

.blue-current .work {
  gap: 25px;
  padding-block: 36px 50px;
}

.blue-current .work article {
  grid-template-columns: 40% 60%;
}

.blue-current .work article>div:last-child {
  padding: 20px;
}

.blue-current .work img {
  height: 100%;
  min-height: 200px;
}

.blue-current .work h2 {
  font-size: 24px;
  margin: 0;
}

.blue-current .work p {
  font-size: 13px;
  line-height: 1.5;
  margin-top: 14px;
}

@media(max-width:1200px) {
  .blue-current .work article {
    grid-template-columns: 1fr;
  }

  .blue-current .work img {
    height: 190px;
    min-height: 0;
  }
}

@media(max-width:800px) {
  .blue-current .work {
    gap: 18px;
    padding-block: 28px;
  }

  .blue-current .work article {
    grid-template-columns: 35% 65%;
  }

  .blue-current .work img {
    height: 100%;
    min-height: 190px;
  }

  .blue-current .work article>div:last-child {
    padding: 20px 16px;
  }

  .blue-current .work h2 {
    font-size: 22px;
  }
}

.section-heading h2 {
  font-size: clamp(32px,3vw,46px);
  font-weight: 700;
  letter-spacing: -.04em;
  max-width: 24ch;
}

.capabilities-section {
  padding-block: 88px 80px;
  background: #fff;
}

.blue-current .capabilities-section .work {
  padding: 36px 0 0;
  gap: 28px;
}

.blue-current .capabilities-section .work article {
  display: block;
  background: #f4f7fb;
  border-radius: 0;
  border-bottom: 3px solid #c4dcf3;
}

.blue-current .capabilities-section .work img {
  height: 100%;
  min-height: 0;
  width: 100%;
  object-fit: cover;
}

.blue-current .capabilities-section .work article>div:last-child {
  padding: 28px 26px 32px;
}

.blue-current .capabilities-section .work h2 {
  font-size: 25px;
  line-height: 1.2;
}

.blue-current .capabilities-section .work p {
  font-size: 16px;
  line-height: 1.6;
  margin-top: 16px;
}

@media(max-width:800px) {
  .capabilities-section {
    padding-block: 50px;
  }

  .blue-current .capabilities-section .work {
    padding-top: 28px;
    gap: 26px;
  }

  .blue-current .capabilities-section .work article {
    display: block;
  }

  .blue-current .capabilities-section .work article>div:last-child {
    padding: 24px;
  }
}

.blue-current .work article {
  border: 0;
  padding: 0;
  display: grid;
  background: #f2f6fb;
  border-radius: 5px;
  overflow: hidden;
  position: relative;
}

/* 6. Yard overview */

.plan {
  padding-block: 55px;
  border-block: 1px solid #becfe0;
  display: grid;
  grid-template-columns: 1fr 1.3fr auto;
  align-items: center;
  gap: 35px;
}

.plan p {
  margin: 0;
}

.berth-note {
  font-size: 13px;
  padding-block: 25px;
  color: #536a80;
}

@media(max-width:1100px) {
  .plan {
    grid-template-columns: 1fr;
  }
}

@media(max-width:800px) {
  .plan {
    padding-block: 35px;
    gap: 20px;
  }
}

.plan h2 {
  font-weight: 750;
}

.planning-section {
  background: #16334f;
  color: white;
  padding-block: 65px 32px;
}

.planning-section .plan {
  border: 0;
  padding: 0;
  grid-template-columns: 1fr 1.15fr auto;
  gap: 48px;
}

.planning-section .eyebrow {
  color: #a9cdee;
}

.planning-section h2 {
  font-size: 38px;
  max-width: 12ch;
  line-height: 1.12;
}

.planning-section .plan p {
  color: #dce8f4;
  font-size: 17px;
  line-height: 1.7;
}

.planning-section .button {
  background: #7eabd7;
  color: #0b2440;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 7px;
}

.planning-section .berth-note {
  margin-top: 36px;
  padding-top: 24px;
  padding-bottom: 0;
  border-top: 1px solid #ffffff26;
  color: #b9ccde;
  font-size: 12px;
  line-height: 1.7;
}

@media(max-width:1100px) {
  .planning-section .plan {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .planning-section .plan>.button {
    justify-self: start;
  }
}

@media(max-width:800px) {
  .planning-section {
    padding-block: 44px 28px;
  }

  .planning-section .plan {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .planning-section h2 {
    font-size: 34px;
    max-width: none;
  }

  .planning-section .berth-note {
    margin-top: 28px;
  }
}

.planning-photo {
  margin-block: 0 44px;
  position: relative;
}

.planning-photo img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center 48%;
  display: block;
}

.planning-photo figcaption {
  position: absolute;
  bottom: 18px;
  left: 22px;
  padding: 8px 14px;
  background: #16334fe8;
  color: #fff;
  font-size: 13px;
  letter-spacing: .03em;
}

@media(max-width:800px) {
  .planning-photo {
    margin-bottom: 30px;
  }

  .planning-photo img {
    height: 240px;
  }

  .planning-photo figcaption {
    left: 12px;
    bottom: 12px;
    font-size: 12px;
  }
}

.yard-overview {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 36px;
  margin-top: 40px;
}

.yard-overview article {
  border-top: 1px solid #7395b7;
  padding-top: 20px;
}

.yard-overview h3 {
  font-size: 21px;
  margin: 0 0 12px;
}

.yard-overview p {
  font-size: 16px;
  line-height: 1.65;
  color: #d6e4f3;
  margin: 0;
}

@media(max-width:800px) {
  .yard-overview {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 28px;
  }
}

#the-yard h2 {
  max-width: none;
}

#the-yard .button {
  gap: 12px;
}

.blue-current .planning-section {
  padding-block: 44px 24px;
}

.blue-current .planning-photo {
  margin-bottom: 28px;
}

.blue-current .planning-photo img {
  height: 260px;
}

.blue-current .planning-section .plan {
  grid-template-columns: minmax(0,1fr) auto;
  gap: 24px 40px;
}

.blue-current .planning-heading {
  grid-column: 1 / -1;
}

.blue-current .planning-section h2 {
  max-width: none;
  font-size: clamp(24px,2.9vw,42px);
  white-space: nowrap;
}

.blue-current .planning-section .plan p {
  font-size: 16px;
  line-height: 1.6;
}

.blue-current .yard-overview {
  margin-top: 28px;
  gap: 28px;
  padding-top: 24px;
}

.blue-current .yard-overview p {
  font-size: 15px;
  line-height: 1.6;
}

.blue-current .planning-section .berth-note {
  margin-top: 24px;
  padding-top: 16px;
}

@media(max-width:800px) {
  .blue-current .planning-section {
    padding-block: 32px 22px;
  }

  .blue-current .planning-photo {
    margin-bottom: 24px;
  }

  .blue-current .planning-photo img {
    height: 200px;
  }

  .blue-current .planning-section .plan {
    grid-template-columns: minmax(0,1fr);
    gap: 18px;
  }

  .blue-current .planning-section h2 {
    font-size: clamp(28px,7.5vw,34px);
    white-space: normal;
    text-wrap: balance;
  }

  .blue-current .yard-overview {
    margin-top: 24px;
    gap: 20px;
    padding-top: 20px;
  }
}

/* 7. Specialist logos */

.contractor-heading h2 {
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.03em;
  margin-bottom: 14px;
}

.contractor-heading p {
  font-size: 17px;
  line-height: 1.6;
  margin: 0;
}

.contractor-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.contractor-logo {
  margin: 0;
}

.contractor-logo>div {
  display: flex;
}

.contractor-luu-marine img {
  filter: brightness(0) invert(1);
}

.contractor-logo figcaption {
  line-height: 1.4;
}

@media(max-width:800px) {
  .contractor-heading h2 {
    font-size: 30px;
  }

  .contractor-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}

.contractor-section {
  background: #f3f7fb;
  padding-block: 64px;
}

.contractor-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.contractor-grid {
  display: grid;
  gap: 0;
  border-top: 1px solid #d2dfec;
  border-bottom: 1px solid #d2dfec;
}

.contractor-logo {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 24px 22px;
}

.contractor-logo figcaption {
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: #496581;
  padding: 14px 0 0;
}

.contractor-logo:nth-child(-n+3) {
  border-bottom: 1px solid #d2dfec;
}

.contractor-logo:not(:nth-child(3n)) {
  border-right: 1px solid #d2dfec;
}

@media(max-width:800px) {
  .contractor-section {
    padding-block: 44px;
  }

  .contractor-heading {
    margin-bottom: 26px;
  }

  .contractor-logo {
    padding: 18px 10px;
  }

  .contractor-logo figcaption {
    font-size: 11px;
    line-height: 1.45;
  }

  .contractor-logo:nth-child(n) {
    border-right: 0;
  }

  .contractor-logo:nth-child(odd) {
    border-right: 1px solid #d2dfec;
  }
}

.contractor-logo:nth-child(n) {
  border-bottom: 1px solid #d2dfec;
}

.contractor-logo:nth-last-child(-n+3) {
  border-bottom: 0;
}

@media(max-width:800px) {
  .contractor-logo:nth-last-child(-n+3) {
    border-bottom: 1px solid #d2dfec;
  }

  .contractor-logo:last-child {
    border-bottom: 0;
  }
}

@media(min-width:801px) {
  .contractor-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }

  .contractor-logo:nth-child(n) {
    border-right: 1px solid #d2dfec;
  }

  .contractor-logo:nth-child(4n) {
    border-right: 0;
  }
}

@media(max-width:800px) {
  .contractor-logo:nth-last-child(-n+2) {
    border-bottom: 0;
  }
}

.contractor-logo>div {
  align-items: center;
  justify-content: center;
  background: transparent;
  height: 124px;
  padding: 8px;
}

.contractor-logo img {
  display: block;
  object-fit: contain;
  filter: none;
  width: auto;
  height: auto;
  max-height: 92px;
  max-width: 100%;
}

.contractor-luu-marine img {
  max-width: 155px;
  max-height: 112px;
}

.contractor-bishop-marine img {
  max-width: 205px;
  max-height: 66px;
}

.contractor-teakdecking-systems img {
  max-width: 125px;
  max-height: 90px;
}

.contractor-quality-marine img {
  max-width: 220px;
  max-height: 90px;
}

.contractor-american-hydraulic img {
  max-width: 215px;
  max-height: 80px;
}

.contractor-caterpillar img {
  max-width: 225px;
  max-height: 70px;
}

.contractor-detroit-diesel img {
  max-width: 220px;
  max-height: 74px;
}

.contractor-zf img {
  max-width: 86px;
  max-height: 86px;
}

@media(max-width:800px) {
  .contractor-logo>div {
    height: 112px;
    padding: 6px;
  }

  .contractor-logo img {
    max-width: 100%;
  }

  .contractor-luu-marine img {
    max-width: 125px;
    max-height: 100px;
  }

  .contractor-bishop-marine img {
    max-width: 160px;
    max-height: 55px;
  }

  .contractor-teakdecking-systems img {
    max-width: 105px;
    max-height: 80px;
  }

  .contractor-quality-marine img,
.contractor-american-hydraulic img {
    max-width: 170px;
  }

  .contractor-caterpillar img,
.contractor-detroit-diesel img {
    max-width: 175px;
  }

  .contractor-zf img {
    max-width: 78px;
    max-height: 78px;
  }
}

.blue-current .contractor-section {
  padding-block: 40px;
}

.blue-current .contractor-heading {
  max-width: none;
  margin-bottom: 22px;
}

.blue-current .contractor-heading h2 {
  margin-bottom: 8px;
}

.blue-current .contractor-logo {
  padding: 14px 18px;
}

.blue-current .contractor-logo>div {
  height: 112px;
}

.blue-current .contractor-logo figcaption {
  padding-top: 8px;
}

@media(max-width:800px) {
  .blue-current .contractor-section {
    padding-block: 32px;
  }

  .blue-current .contractor-logo {
    padding: 12px 8px;
  }

  .blue-current .contractor-logo>div {
    height: 108px;
  }
}

.contractor-ik-yacht-design img {
  max-width: 220px;
  max-height: 72px;
}

.contractor-steel-marine-towing img {
  max-width: 108px;
  max-height: 108px;
}

.contractor-marine-waste-management img {
  max-width: 185px;
  max-height: 100px;
}

.contractor-northern-lights img {
  max-width: 215px;
  max-height: 76px;
}

.contractor-mtu img {
  max-width: 200px;
  max-height: 96px;
}

.contractor-national-marine-suppliers img {
  max-width: 190px;
  max-height: 108px;
}

@media(min-width:801px) {
  .contractor-logo:nth-child(n) {
    border-bottom: 1px solid #d2dfec;
  }

  .contractor-logo:nth-child(13),
.contractor-logo:nth-child(14) {
    grid-column: auto;
  }

  .contractor-logo:nth-last-child(-n+4) {
    border-bottom: 0;
  }
}

@media(max-width:800px) {
  .contractor-ik-yacht-design img,
.contractor-northern-lights img {
    max-width: 160px;
    max-height: 66px;
  }

  .contractor-steel-marine-towing img {
    max-width: 96px;
    max-height: 96px;
  }

  .contractor-marine-waste-management img {
    max-width: 150px;
    max-height: 90px;
  }

  .contractor-mtu img {
    max-width: 155px;
    max-height: 84px;
  }

  .contractor-national-marine-suppliers img {
    max-width: 150px;
    max-height: 94px;
  }
}

.contractor-kpt-marine-repair img {
  max-width: 108px;
  max-height: 108px;
}

.contractor-lukfuel img {
  max-width: 190px;
  max-height: 90px;
}

@media(max-width:800px) {
  .contractor-kpt-marine-repair img {
    max-width: 96px;
    max-height: 96px;
  }

  .contractor-lukfuel img {
    max-width: 150px;
    max-height: 78px;
  }
}

/* 8. Testimonials */

.captain-word {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-block: 60px;
  border-top: 1px solid #becfe0;
}

.quote-attribution {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.captain-word blockquote {
  margin: 0;
  font-size: 25px;
  line-height: 1.5;
}

details {
  margin-top: 25px;
}

summary {
  cursor: pointer;
}

details figure {
  margin: 25px 0;
}

details blockquote {
  font-size: 19px!important;
}

@media(max-width:800px) {
  .captain-word {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 35px;
  }

  .captain-word blockquote {
    font-size: 22px;
  }
}

.testimonial-section {
  padding-block: 88px 82px;
  background: #fff;
}

.testimonial-section .captain-word {
  border: 0;
  padding: 38px 0 0;
  grid-template-columns: .75fr 2fr;
  gap: 60px;
}

.testimonial-section .captain-word blockquote {
  font-size: clamp(22px,2.2vw,32px);
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -.02em;
  max-width: 48ch;
}

.testimonial-section .quote-attribution {
  padding-top: 8px;
  border-top: 2px solid #82a9d0;
  gap: 7px;
  color: #38546e;
}

@media(max-width:1100px) {
  .testimonial-section .captain-word {
    gap: 35px;
  }
}

@media(max-width:800px) {
  .testimonial-section {
    padding-block: 50px;
  }

  .testimonial-section .captain-word {
    grid-template-columns: 1fr;
    gap: 26px;
    padding-top: 28px;
  }
}

.yard-planning-details {
  padding-block: 0 64px;
}

.yard-planning-details h2 {
  font-size: 32px;
  letter-spacing: -.03em;
}

.yard-planning-details p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 75ch;
}

@media(max-width:800px) {
  .yard-planning-details {
    padding-bottom: 44px;
  }

  .yard-planning-details h2 {
    font-size: 28px;
  }
}

.blue-current .testimonial-section {
  padding-block: 48px;
}

.blue-current .testimonial-section .captain-word {
  padding-top: 24px;
  gap: 36px;
}

.blue-current .testimonial-section .captain-word blockquote {
  font-size: clamp(21px,1.9vw,27px);
  line-height: 1.5;
}

@media(max-width:800px) {
  .blue-current .testimonial-section {
    padding-block: 36px;
  }

  .blue-current .testimonial-section .captain-word {
    gap: 20px;
    padding-top: 20px;
  }
}

/* 9. Contact and inquiry form */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 70px;
}

.contact-info>p {
  max-width: 40ch;
}

.contact-quick {
  display: grid;
  gap: 20px;
  margin-top: 30px;
}

.contact-quick a {
  display: flex;
  gap: 15px;
  text-decoration: none;
}

.contact-quick small,
.contact-quick strong {
  display: block;
}

.quick-icon {
  font-size: 26px;
}

.form-card {
  padding: 35px;
}

.form-card h3 {
  font-size: 25px;
}

.form-card p {
  font-size: 14px;
}

form {
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
}

@media(max-width:800px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 0;
  }

  .form-card {
    padding: 22px;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.contact h2 {
  font-size: 48px;
  font-weight: 750;
}

.form-card {
  background: white;
  border: 1px solid #d8e5f3;
  border-radius: 10px;
}

input {
  font: inherit;
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #aebdce;
  margin-top: 6px;
  background: white;
  color: #152d46;
  border-radius: 4px;
}

textarea {
  font: inherit;
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #aebdce;
  margin-top: 6px;
  background: white;
  color: #152d46;
  resize: vertical;
  border-radius: 4px;
}

@media(max-width:800px) {
  .contact h2 {
    font-size: 40px;
  }
}

.contact {
  background: #edf4fb;
  border-top: 1px solid #dbe7f3;
  padding-block: 88px;
}

.contact .contact-info h2 {
  font-size: clamp(38px,3.5vw,54px);
  letter-spacing: -.04em;
  margin-top: 0;
}

.contact .form-card {
  box-shadow: 0 8px 30px #16334f08;
  border-color: #dbe5ef;
  border-radius: 8px;
}

@media(max-width:800px) {
  .contact {
    padding-block: 50px;
  }
}

.yard-date-fields label {
  min-width: 0;
}

.yard-date-fields input {
  min-width: 0;
  max-width: 100%;
  min-height: 48px;
}

.yard-date-fields input::-webkit-date-and-time-value {
  min-width: 0;
  text-align: left;
}

@media(max-width:800px) {
  .yard-date-fields input[type="date"] {
    min-height: 48px;
  }
}

.yard-date-fields label {
  font-size: 13px;
  margin: 0;
  min-inline-size: 0;
  max-inline-size: 100%;
}

.yard-dates-label {
  font-size: 14px;
  margin-bottom: 6px;
}

.yard-date-fields input[type="date"] {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
  inline-size: 0;
  min-inline-size: 100%;
  max-inline-size: 100%;
  box-sizing: border-box;
  background: #fff;
  font-size: 16px;
}

.yard-date-fields input::-webkit-datetime-edit {
  min-width: 0;
  padding: 0;
}

.form-row>* {
  min-width: 0;
}

.arrival-checklist {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #b8cde2;
}

.arrival-checklist h3 {
  font-size: 25px;
  line-height: 1.2;
  letter-spacing: -.025em;
  margin: 0 0 18px;
}

.arrival-checklist dl {
  margin: 0;
  display: grid;
  gap: 18px;
}

.arrival-checklist dt {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 5px;
}

.arrival-checklist dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: #38546e;
}

.arrival-checklist dd a {
  display: inline-block;
  margin-top: 6px;
  color: #315f92;
  font-weight: 700;
  text-underline-offset: 3px;
}

.contact-info .arrival-checklist-note {
  font-size: 13px;
  line-height: 1.5;
  color: #496581;
  margin: 18px 0 0;
}

@media(max-width:800px) {
  .arrival-checklist {
    margin-top: 24px;
    padding-top: 22px;
  }

  .arrival-checklist h3 {
    font-size: 24px;
  }

  .arrival-checklist dl {
    gap: 16px;
  }
}

/* 10. Location and directions */

.arrival {
  grid-template-columns: 1fr 1.5fr;
  gap: 50px;
}

address {
  font-style: normal;
  margin-top: 20px;
}

.location-map iframe {
  width: 100%;
  height: 330px;
  border: 0;
}

.arrival {
  display: grid;
  padding-block: 80px;
  align-items: center;
}

.arrival h2 {
  font-size: 38px;
}

.arrival .location-map {
  border: 1px solid #dae5ef;
}

@media(max-width:800px) {
  .arrival {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 50px;
  }
}

.arrival-visual {
  display: grid;
  gap: 18px;
}

.arrival-photo {
  margin: 0;
}

.arrival-photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.arrival-visual .location-map iframe {
  height: 230px;
}

@media(max-width:800px) {
  .arrival-photo img {
    height: 220px;
  }
}

.arrival-contact {
  display: grid;
  gap: 12px;
  margin-block: 24px;
}

.arrival-contact a {
  width: fit-content;
  font-weight: 700;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

/* 11. Yard documents */

.yard-documents {
  padding-block: 64px 72px;
  scroll-margin-top: 30px;
}

.yard-documents-heading {
  max-width: 690px;
}

.yard-documents-heading h2 {
  margin: 16px 0;
}

.yard-documents-heading p {
  color: #496579;
}

.document-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 38px;
}

.document-group>h3 {
  font-size: 23px;
}

.document-group-intro {
  color: #496579;
  font-size: 15px;
  margin-top: 10px;
}

.document-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
  border-top: 1px solid #cbd9e6;
}

.yard-document {
  display: flex;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid #cbd9e6;
}

.yard-document-icon {
  flex: 0 0 42px;
  height: 48px;
  border-radius: 8px;
  background: #eaf2f9;
  color: #507fb8;
  display: grid;
  place-items: center;
}

.yard-document-icon svg {
  width: 25px;
  height: 29px;
}

.yard-document-copy {
  min-width: 0;
}

.yard-document h4 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0;
  color: #102b46;
}

.yard-document p {
  font-size: 15px;
  line-height: 1.55;
  color: #496579;
  margin-top: 7px;
}

.yard-document-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 12px;
  color: #496579;
}

.yard-document-status {
  padding: 3px 10px;
  border: 1px solid #cedbe7;
  border-radius: 20px;
  background: #f3f7fb;
}

.document-help {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  background: #edf4fa;
  border-radius: 10px;
  padding: 26px 30px;
  margin-top: 38px;
}

.document-help h3 {
  font-size: 19px;
}

.document-help p {
  font-size: 15px;
  margin-top: 8px;
  color: #496579;
}

.document-help>a {
  white-space: nowrap;
}

@media(max-width:800px) {
  .yard-documents {
    padding-block: 44px 50px;
  }

  .document-groups {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-top: 28px;
  }

  .yard-document {
    gap: 14px;
    padding: 21px 0;
  }

  .document-help {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px;
    gap: 18px;
  }
}

.document-download {
  display: inline-flex;
  margin-top: 18px;
  gap: 8px;
}

.document-download:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

/* 12. Service pages and photo carousels */

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .service-visual img {
    transition: transform 450ms ease;
  }

  .work article:hover .service-visual img {
    transform: scale(1.025);
  }
}

.blue-current .capabilities-section .work .service-visual {
  height: 220px;
  overflow: hidden;
}

@media(max-width:800px) {
  .blue-current .capabilities-section .work .service-visual {
    height: 210px;
  }
}

.service-visual img[src*="yard-crane"] {
  object-position: center 40%;
}

.service-page {
  font-family: Arial,sans-serif;
}

.service-page .shell {
  width: min(1400px,calc(100% - 80px));
}

.service-breadcrumb {
  padding-block: 20px;
  font-size: 14px;
  color: #506b87;
}

.service-breadcrumb a {
  text-decoration: none;
}

.service-hero {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
  padding-block: 28px 64px;
}

.service-hero h1 {
  font-size: clamp(44px,4.5vw,70px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.service-hero p {
  font-size: 19px;
  line-height: 1.6;
  max-width: 44ch;
  margin: 24px 0 28px;
}

.service-hero img {
  width: 100%;
  height: 450px;
  border-radius: 110px 0 0 0;
  object-fit: cover;
}

.service-hero img[src*="engine-room"] {
  object-position: center 35%;
}

.service-facts {
  background: #eaf3fc;
  padding-block: 24px;
}

.service-facts .shell {
  display: flex;
  gap: 40px;
  justify-content: space-between;
  font-size: 16px;
}

.service-facts strong {
  display: block;
  font-size: 22px;
}

.service-content {
  padding-block: 76px;
}

.service-content>h2 {
  font-size: 36px;
  margin-bottom: 36px;
  letter-spacing: -.035em;
}

.service-features {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 40px;
}

.service-features h3 {
  font-size: 24px;
  letter-spacing: -.025em;
}

.service-features p {
  font-size: 17px;
  line-height: 1.7;
  margin-top: 16px;
}

.service-story {
  background: #0a2443;
  color: white;
  padding-block: 64px;
}

.service-story-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}

.service-story img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.service-story h2 {
  font-size: 38px;
  letter-spacing: -.035em;
}

.service-story p {
  font-size: 18px;
  line-height: 1.7;
  color: #d6e4f3;
  margin: 22px 0 28px;
}

.service-related {
  padding-block: 56px;
}

.service-related h2 {
  font-size: 28px;
  margin-bottom: 24px;
}

.service-related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 36px;
}

.service-related a {
  font-size: 17px;
}

.service-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 15px;
  font-weight: 700;
  color: #315f92;
}

@media(max-width:800px) {
  .service-page .shell {
    width: calc(100% - 36px);
  }

  .service-hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-block: 12px 36px;
  }

  .service-hero h1 {
    font-size: 46px;
  }

  .service-hero p {
    font-size: 17px;
  }

  .service-hero img {
    height: 290px;
    border-radius: 70px 0 0 0;
  }

  .service-facts .shell {
    gap: 20px;
    flex-wrap: wrap;
  }

  .service-facts strong {
    font-size: 20px;
  }

  .service-content {
    padding-block: 44px;
  }

  .service-features {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-story {
    padding-block: 40px;
  }

  .service-story-inner {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .service-story img {
    height: 260px;
  }

  .service-story h2 {
    font-size: 32px;
  }

  .service-related {
    padding-block: 40px;
  }
}

.service-card-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  color: #315f92;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.service-card-link:after {
  content: "";
  position: absolute;
  inset: 0;
}

.service-card-link:focus-visible {
  outline: none;
}

.service-card-link:focus-visible:after {
  outline: 3px solid #608fc3;
  outline-offset: -3px;
}

.blue-current .work article:hover .service-card-link {
  text-decoration: underline;
}

.service-features article {
  padding-top: 22px;
  position: relative;
  border-top: 0;
}

.service-features article:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #86aed5;
  transform-origin: left center;
}

.service-facts small {
  font-size: .7em;
  font-weight: 400;
}

.service-responsibilities {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 64px;
  padding-block: 48px;
  border-bottom: 1px solid #c4d7e9;
}

.service-responsibilities h2 {
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: -.025em;
  max-width: 24ch;
}

.service-responsibilities p {
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.service-responsibilities .responsibility-note {
  margin-top: 16px;
  color: #405e7b;
  font-size: 15px;
}

.service-responsibilities+.service-content {
  padding-top: 48px;
}

@media(max-width:800px) {
  .service-responsibilities {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-block: 32px;
  }

  .service-responsibilities h2 {
    font-size: 28px;
  }

  .service-responsibilities+.service-content {
    padding-top: 36px;
  }
}

.service-gallery {
  padding-top: 40px;
  padding-bottom: 80px;
  min-width: 0;
}

.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.gallery-heading h2 {
  margin: 10px 0 0;
}

.gallery-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
}

.gallery-controls button {
  width: 44px;
  height: 44px;
  border: 1px solid #abc2db;
  border-radius: 50%;
  background: white;
  color: #0c2340;
  font-size: 24px;
  cursor: pointer;
}

.gallery-controls button:hover {
  background: #eaf3fc;
}

.gallery-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  border-radius: 10px;
  background: #edf3f8;
  overscroll-behavior-x: contain;
}

.gallery-track::-webkit-scrollbar {
  display: none;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
  margin: 0;
}

.gallery-slide>img {
  display: block;
  width: 100%;
  height: clamp(260px,43vw,600px);
  object-fit: contain;
}

.gallery-slide figcaption {
  padding: 17px 22px;
  background: #edf3f8;
  font-size: 16px;
  line-height: 1.5;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.gallery-thumb {
  width: 104px;
  height: 72px;
  padding: 3px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
}

.gallery-thumb[aria-pressed=true] {
  border-color: #4e80b7;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

.service-gallery button:focus-visible,
.gallery-track:focus-visible {
  outline: 3px solid #4e80b7;
  outline-offset: 4px;
}

@media(max-width:600px) {
  .service-gallery {
    padding-top: 24px;
    padding-bottom: 48px;
  }

  .gallery-heading {
    align-items: start;
    flex-direction: column;
    gap: 18px;
  }

  .gallery-slide>img {
    height: 280px;
  }

  .gallery-thumb {
    width: 68px;
    height: 52px;
  }

  .gallery-thumbnails {
    gap: 8px;
  }

  .gallery-slide figcaption {
    padding: 14px 16px;
    font-size: 14px;
  }
}

/* 13. Footer and floating contact */

.footer {
  padding-block: 25px;
  border-top: 1px solid #becfe0;
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.persistent-contact {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9;
}

.persistent-call small {
  display: block;
  font-size: 11px;
}

.persistent-call svg {
  width: 24px;
}

@media(max-width:800px) {
  .footer {
    flex-direction: column;
    gap: 12px;
    padding-bottom: 100px;
  }
}

@media print {
  .persistent-contact {
    display: none;
  }
}

.persistent-call {
  color: white;
  padding: 12px 20px;
  display: flex;
  gap: 10px;
  text-decoration: none;
  box-shadow: 0 5px 20px #142b4633;
  border-radius: 16px;
  background: #38597f;
  border: 2px solid white;
}

@media(prefers-reduced-motion:no-preference) {
  .persistent-call {
    transition: background-color 180ms ease,box-shadow 180ms ease,transform 180ms ease;
  }
}

@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
  .persistent-call:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px #173b601c;
  }
}

.service-page .footer {
  padding-bottom: 100px;
}

@media(max-width:800px) {
  .persistent-contact {
    right: 16px;
    bottom: max(16px,env(safe-area-inset-bottom));
    transition: opacity .18s ease,visibility .18s ease;
  }

  .persistent-call {
    width: 52px;
    height: 52px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    box-shadow: 0 4px 16px #142b4626;
  }

  .persistent-call>span {
    display: none;
  }

  .persistent-call svg {
    width: 23px;
    height: 23px;
    flex: none;
  }

  .persistent-contact.form-in-view {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

/* 14. Motion and reduced-motion preferences */

@keyframes soft-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes photo-enter {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .motion-arrived {
    animation: soft-enter 550ms cubic-bezier(.2,.65,.3,1) both;
  }

  .work article:nth-child(2).motion-arrived {
    animation-delay: 60ms;
  }

  .work article:nth-child(3).motion-arrived {
    animation-delay: 120ms;
  }
}

.service-lines-ready .service-features article:before {
  transform: scaleX(.08);
  opacity: .35;
  transition: transform .9s cubic-bezier(.22,.61,.36,1),opacity .7s ease;
}

.service-lines-ready .service-features article.line-visible:before {
  transform: scaleX(1);
  opacity: 1;
}

@media(prefers-reduced-motion:reduce) {
  .service-lines-ready .service-features article:before {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@keyframes sweep-reveal {
  from {
    clip-path: inset(0 100% 0 0);
    opacity: .25;
  }

  to {
    clip-path: inset(0 -5% 0 -5%);
    opacity: 1;
  }
}

@keyframes hero-ken-burns {
  from {
    transform: scale(1);
  }

  to {
    transform: scale(1.045);
  }
}

@keyframes phone-ring {
  0% {
    transform: rotate(0);
  }

  100% {
    transform: rotate(0);
  }

  20% {
    transform: rotate(-13deg);
  }

  40% {
    transform: rotate(11deg);
  }

  60% {
    transform: rotate(-8deg);
  }

  80% {
    transform: rotate(5deg);
  }
}

@keyframes depth-icon-draw {
  from {
    stroke-dashoffset: 1;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes yard-divider-draw {
  from {
    transform: scaleX(.08);
    opacity: .35;
  }

  to {
    transform: scaleX(1);
    opacity: 1;
  }
}

@keyframes specialist-fade {
  from {
    opacity: .35;
  }

  to {
    opacity: 1;
  }
}

@media(prefers-reduced-motion:no-preference) {
  .motion-details-ready .spec-icon path,
.motion-details-ready .spec-icon circle {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
  }

  .motion-details-ready .spec-icon.motion-arrived {
    animation: none;
  }

  .motion-details-ready .spec-icon.motion-arrived path,
.motion-details-ready .spec-icon.motion-arrived circle {
    animation: depth-icon-draw .85s cubic-bezier(.22,.61,.36,1) forwards;
  }

  .motion-details-ready .yard-overview article {
    position: relative;
    border-top-color: transparent;
  }

  .motion-details-ready .yard-overview article::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -1px;
    height: 1px;
    background: #7395b7;
    transform: scaleX(.08);
    transform-origin: left;
    opacity: .35;
  }

  .motion-details-ready .yard-overview article.motion-arrived {
    animation: none;
  }

  .motion-details-ready .yard-overview article.motion-arrived::before {
    animation: yard-divider-draw .8s cubic-bezier(.22,.61,.36,1) forwards;
  }

  .motion-details-ready .contractor-logo.motion-arrived {
    animation: specialist-fade .55s ease-out both;
  }

  .motion-details-ready .contractor-logo:nth-child(3n+2).motion-arrived {
    animation-delay: 50ms;
  }

  .motion-details-ready .contractor-logo:nth-child(3n).motion-arrived {
    animation-delay: 100ms;
  }
}
