/* Barlow Condensed and Source Sans 3 are used under the SIL Open Font License. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/barlow-condensed-700.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-400.woff2") format("woff2");
}

@font-face {
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../assets/fonts/source-sans-3-600.woff2") format("woff2");
}

:root {
  --black: #000000;
  --ink: #12181f;
  --muted: #3a4654;
  --navy: #071525;
  --paper: #e7eef2;
  --white: #ffffff;
  --line: #d3dde6;
  --orange: #ff5c00;
  --orange-ink: #9a3412;
  --focus: #ff5c00;
  color-scheme: light;
  --header-h: 5.15rem;
}

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

html {
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.nav-open {
  overflow: hidden;
}

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

h1,
h2,
h3 {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  text-wrap: balance;
  font-weight: 700;
}

h1 {
  margin: 0 0 0.9rem;
  color: var(--white);
  font-size: clamp(2.7rem, 5vw, 4.55rem);
  line-height: 0.92;
  letter-spacing: -0.015em;
}

.missing h1 {
  color: var(--ink);
}

h2 {
  margin: 0 0 0.75rem;
  font-weight: 600;
  font-size: clamp(2.25rem, 4vw, 3.45rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1;
  font-weight: 600;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 80;
  background: var(--orange);
  color: var(--navy);
  font-weight: 600;
  padding: 0.55rem 0.8rem;
  text-decoration: none;
}

.skip:focus {
  top: 0.6rem;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.section {
  padding: 4.25rem 0;
}

[id] {
  scroll-margin-top: 6rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow .num {
  color: var(--orange-ink);
  letter-spacing: 0.08em;
}

.intro {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 3px solid var(--orange);
}

.bar {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.45rem 1.25rem;
}

.logo {
  margin-right: auto;
  line-height: 0;
  text-decoration: none;
  background: var(--black);
}

.logo img {
  height: 4.05rem;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.nav a {
  color: var(--white);
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.45rem 0.42rem;
}

.nav a:hover {
  color: var(--orange);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 4.5rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 1.05rem;
  cursor: pointer;
}

.hero {
  display: grid;
  background: var(--navy);
}

.hero-media {
  background: #0c314f;
}

.hero-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center 40%;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.4rem, 3vw, 3.2rem);
}

.hero .eyebrow {
  color: #d7e2ec;
}

.hero .eyebrow::before {
  content: "";
  width: 1.5rem;
  height: 2px;
  background: var(--orange);
}

.hero .intro {
  color: #d7e2ec;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.65rem 1.05rem;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
}

.button-primary {
  background: var(--orange);
  color: var(--navy);
}

.button-primary:hover {
  background: #ff7a33;
}

.button-primary:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--navy);
}

.button-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.button-ghost:hover {
  color: var(--orange);
  border-color: var(--orange);
}

.spec {
  margin: 1.6rem 0 0;
}

.spec div {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.spec dt {
  margin: 0;
  color: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spec dd {
  margin: 0;
  color: var(--white);
}

.standards {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.standard {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 1.35rem 1.3rem 1.45rem;
}

.standard .code {
  margin: 0 0 0.55rem;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 3.6rem);
  letter-spacing: 0.04em;
  line-height: 0.9;
}

.standard p {
  margin: 0;
  color: var(--muted);
}

.service-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 1.35rem 1.3rem 1.5rem;
}

.service-card h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 2vw, 1.9rem);
  line-height: 1.05;
}

.service-card p {
  margin: 0;
  color: var(--muted);
}

.note {
  margin-top: 1.5rem;
}

.std-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
}

.std-list li {
  margin: 0;
  padding: 0.85rem 0.8rem;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
  border-top: 3px solid var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.scope {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  background: var(--navy);
  color: var(--white);
}

.scope li {
  padding: 1.15rem 1.15rem 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.scope li:first-child {
  border-top: 0;
}

.scope .n {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.12em;
  font-size: 0.92rem;
}

.scope strong {
  display: block;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  font-size: 1.55rem;
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.scope p {
  margin: 0.35rem 0 0;
  color: #d7e2ec;
}

.section-navy {
  background:
    radial-gradient(880px 420px at 100% 0%, rgba(255, 92, 0, 0.1), transparent 55%),
    var(--navy);
  color: #e7eef3;
}

.section-navy h2,
.section-black h2 {
  color: var(--white);
}

.section-navy .eyebrow,
.section-black .eyebrow {
  color: #d7e2ec;
}

.section-navy .eyebrow .num,
.section-black .eyebrow .num {
  color: var(--orange);
}

.section-navy .intro {
  color: #d7e2ec;
}

.section-white {
  background: var(--white);
}

.section-black {
  background: var(--black);
  color: #d7e2ec;
}

.section-black .intro {
  color: #d7e2ec;
}

.software-grid,
.why-grid,
.contact-grid {
  display: grid;
  gap: 1.75rem;
}

.points {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
}

.points li {
  display: grid;
  grid-template-columns: 2.4rem 1fr;
  gap: 0.65rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.points span {
  color: var(--orange);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.points p {
  margin: 0;
}

.record {
  background: var(--white);
  color: var(--ink);
  border-top: 4px solid var(--orange);
}

.record-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: var(--black);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.record dl {
  margin: 0;
}

.record dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
}

.record dt {
  color: var(--muted);
}

.record dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.record-note {
  margin: 0;
  padding: 0.85rem 1rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.frame img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #c5d0d8;
}

figcaption {
  display: grid;
  grid-template-columns: 0.7rem 1fr;
  gap: 0.6rem;
  align-items: start;
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

figcaption::before {
  content: "";
  height: 2px;
  margin-top: 0.55rem;
  background: var(--orange);
}

.vessel-split,
.loc-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.6rem;
}

.vessel,
.loc {
  padding: 1.4rem 1.3rem 1.5rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.vessel-next {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.kicker {
  margin: 0 0 0.4rem;
  color: var(--orange-ink);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.vessel h3,
.loc h3 {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  line-height: 0.9;
  margin-bottom: 0.75rem;
}

.vessel p,
.loc p {
  margin: 0;
  color: var(--muted);
  max-width: 36rem;
}

.vessel-next .kicker {
  color: var(--orange);
}

.vessel-next h3,
.vessel-next p {
  color: #d7e2ec;
}

.vessel-next h3 {
  color: var(--white);
}

.loc-grid {
  list-style: none;
  padding: 0;
}

.loc {
  background: var(--paper);
  border: 0;
  border-top: 4px solid var(--navy);
}

.loc-wide {
  border-top-color: var(--orange);
}

.names {
  list-style: none;
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 0;
  padding: 0;
}

.names li {
  margin: 0;
  padding-top: 0.7rem;
  border-top: 2px solid var(--orange);
  color: var(--white);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 700;
  font-size: clamp(3.1rem, 8vw, 5.4rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.gallery-grid {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.6rem;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  object-position: center;
  background: #c5d0d8;
}

.wide img {
  aspect-ratio: 16 / 10;
  object-position: center 40%;
}

.portrait img {
  aspect-ratio: 3 / 4;
  object-position: center;
}

.details a,
.site-footer p a {
  overflow-wrap: anywhere;
}

.details {
  margin: 1.4rem 0 0;
}

.details div {
  padding: 0.65rem 0;
  border-top: 1px solid var(--line);
}

.details dt {
  color: var(--muted);
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.details dd {
  margin: 0.15rem 0 0;
  font-size: 1.15rem;
}

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--orange);
  padding: 1.25rem 1.15rem 1.35rem;
}

.form h3 {
  margin-bottom: 0.45rem;
}

.hint {
  color: var(--muted);
  font-size: 0.98rem;
}

.fields {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.form-row {
  display: grid;
  gap: 0.85rem;
}

.field {
  display: grid;
  gap: 0.3rem;
}

.field label {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #6d7f90;
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.form .button {
  margin-top: 0.35rem;
}

.form-status:empty {
  margin: 0;
}

.form-status:not(:empty) {
  margin: 0.9rem 0 0;
  padding: 0.75rem 0.8rem;
  background: var(--paper);
  border-left: 3px solid var(--orange);
}

.site-footer {
  background: var(--black);
  color: #d7e2ec;
  border-top: 3px solid var(--orange);
  padding: 2.8rem 0 1.6rem;
}

.footer-grid {
  display: grid;
  gap: 1.8rem;
}

.site-footer a {
  color: var(--white);
  text-underline-offset: 0.15em;
}

.site-footer .logo {
  display: inline-block;
  margin-bottom: 0.9rem;
}

.footer-nav {
  display: grid;
  gap: 0.35rem;
}

.footer-nav a {
  text-decoration: none;
  font-family: "Barlow Condensed", sans-serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

.footer-nav a:hover,
.site-footer a:hover {
  color: var(--orange);
}

.fine {
  margin-top: 1.8rem;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #d7e2ec;
  font-size: 0.95rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 720px) {
  .standards,
  .gallery-grid,
  .service-grid,
  .std-list {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid .wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 800px) {
  .section {
    padding: 6rem 0;
  }

  .scope,
  .std-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .scope li {
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
  }

  .scope li:first-child {
    border-left: 0;
  }

  .software-grid,
  .why-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: center;
  }

  .vessel-split {
    grid-template-columns: 1fr 1fr;
    gap: 0;
  }

  .vessel + .vessel {
    border-left: 0;
  }

  .loc-grid,
  .names,
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 2.5rem;
    align-items: start;
  }
}

main:focus,
main:focus-visible {
  outline: none;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    min-height: calc(100svh - var(--header-h) - 3px);
  }

  .hero-copy {
    order: 1;
  }

  .hero-media {
    order: 2;
    position: relative;
    min-height: 34rem;
  }

  .hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
  }
}

@media (max-width: 860px) {
  .bar {
    flex-wrap: wrap;
  }

  .nav {
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0 0 0.7rem;
  }

  .nav a {
    padding: 0.75rem 0.15rem;
    font-size: 1.3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--black);
    border-bottom: 3px solid var(--orange);
    padding: 0.2rem 1.25rem 0.8rem;
    z-index: 40;
  }

  .js .nav.is-open {
    display: flex;
  }
}

@media (max-width: 600px) {
  .form .button {
    width: 100%;
  }

  .spec div {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  a,
  button,
  .button {
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .nav-toggle {
    display: none !important;
  }

  .nav {
    display: flex !important;
    position: static !important;
  }

  .button-ghost {
    display: none;
  }
}
