:root {
  --paper: #f3ede3;
  --paper-strong: #e9ded0;
  --surface: #fffaf4;
  --surface-muted: #efe4d8;
  --ink: #171419;
  --ink-soft: rgba(23, 20, 25, 0.72);
  --night: #09090c;
  --night-soft: #111018;
  --night-card: #16141c;
  --night-line: rgba(255, 255, 255, 0.08);
  --accent: #d64135;
  --accent-strong: #ec4f41;
  --accent-soft: #f0b29f;
  --line: rgba(23, 20, 25, 0.1);
  --shadow: 0 28px 80px rgba(20, 16, 24, 0.12);
  --shadow-strong: 0 30px 90px rgba(0, 0, 0, 0.3);
  --site-width: 1180px;
  --header-offset: 5.75rem;
  --font-display: "Proxima Nova", "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.black-sparrow-page {
  background:
    radial-gradient(circle at top left, rgba(214, 65, 53, 0.06), transparent 28%),
    linear-gradient(180deg, #f6f1e8 0%, var(--paper) 100%);
}

img,
iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

p,
ul,
h1,
h2,
h3 {
  margin-top: 0;
}

ul {
  margin-bottom: 0;
  padding-left: 0;
  list-style: none;
}

[id] {
  scroll-margin-top: calc(var(--header-offset) + 1rem);
}

.site-shell {
  position: relative;
  overflow: clip;
}

.section-shell {
  width: min(var(--site-width), calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: clamp(4.5rem, 8vw, 7rem) 0;
}

.eyebrow {
  margin-bottom: 0.95rem;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow--hero,
.eyebrow--light {
  color: var(--accent-soft);
}

.section-heading {
  max-width: 42rem;
}

.section-heading--wide {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-heading h2,
.hero-story__content h1,
.contact-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.98;
}

.section-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.2rem, 4vw, 3.75rem);
}

.section-heading p:last-child {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.78rem 1.3rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.footer-brand:focus-visible,
.site-footer__link:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.button--primary {
  color: #fff8f4;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow: 0 18px 38px rgba(214, 65, 53, 0.24);
}

.button--secondary {
  color: #f7f1e8;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.button--ghost {
  color: #fff8f4;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.button--secondary-dark {
  color: var(--ink);
  border-color: rgba(23, 20, 25, 0.12);
  background: rgba(23, 20, 25, 0.04);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 0.85rem 0;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(10, 10, 12, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.site-header--scrolled .site-header__inner {
  background: rgba(10, 10, 12, 0.92);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand__logo {
  width: clamp(12rem, 23vw, 16.5rem);
  height: auto;
}

.brand__mark {
  width: 3rem;
  flex: 0 0 auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.28));
}

.brand__text {
  display: grid;
  gap: 0.04rem;
}

.brand__name,
.footer-brand__name {
  color: #fff8f4;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand__descriptor,
.footer-brand__descriptor {
  color: rgba(247, 241, 232, 0.74);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  position: relative;
  color: rgba(247, 241, 232, 0.76);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.35rem;
  height: 2px;
  background: var(--accent-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: #fff8f4;
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
}

.hero {
  color: #f7f1e8;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-soft) 100%);
}

.hero__meta-wrap {
  padding-top: calc(var(--header-offset) + 1.7rem);
  padding-bottom: 0.9rem;
}

.hero-carousel {
  position: relative;
  background: #08080b;
}

.hero-carousel__viewport {
  position: relative;
  height: clamp(20rem, 46vw, 35rem);
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transform: scale(1.02);
  pointer-events: none;
  transition:
    opacity 480ms ease,
    transform 480ms ease;
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 12, 0) 0%, rgba(10, 10, 12, 0.06) 52%, rgba(10, 10, 12, 0.48) 100%);
}

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

.hero-carousel__overlay {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  padding: 1rem 0 1.2rem;
}

.hero-carousel__overlay-inner {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 1rem;
}

.hero-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.hero-carousel__status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  min-height: 2.85rem;
  padding: 0.6rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #fff8f4;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(10, 10, 12, 0.52);
  backdrop-filter: blur(10px);
}

.hero-carousel__button {
  width: 2.85rem;
  height: 2.85rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  color: #fff8f4;
  font-size: 1rem;
  font-weight: 700;
  background: rgba(10, 10, 12, 0.52);
  backdrop-filter: blur(10px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.hero-carousel__button:hover,
.hero-carousel__button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.hero-carousel__button:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.hero-story {
  position: relative;
  padding: clamp(2.5rem, 5vw, 3.35rem) 0 clamp(3rem, 6vw, 4rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(214, 65, 53, 0.16), transparent 18%),
    linear-gradient(180deg, #0c0b11 0%, #111018 100%);
}

.hero-story__grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(1.5rem, 4vw, 2.8rem);
  align-items: center;
}

.hero-story__seal-wrap {
  display: flex;
  justify-content: center;
}

.hero-story__seal {
  width: clamp(13rem, 26vw, 18rem);
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, 0.4));
}

.hero-story__content h1 {
  margin-bottom: 1rem;
  color: #fff8f4;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  text-transform: uppercase;
}

.hero-story__lead {
  max-width: 42rem;
  margin-bottom: 1.4rem;
  color: rgba(247, 241, 232, 0.78);
  font-size: 1rem;
}

.hero-story__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.mini-card {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.16);
}

.mini-card h2 {
  margin-bottom: 0.45rem;
  color: #fff8f4;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
}

.mini-card p {
  margin-bottom: 0;
  color: rgba(247, 241, 232, 0.72);
  font-size: 0.9rem;
}

.hero-story__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.video-section {
  position: relative;
  background: #c4c0bb;
}

.video-section__frame {
  position: relative;
  overflow: hidden;
  min-height: clamp(19rem, 52vw, 33rem);
  border-top: 1px solid rgba(23, 20, 25, 0.08);
  border-bottom: 1px solid rgba(23, 20, 25, 0.08);
  background: #bab4ad;
}

.video-section__frame iframe {
  width: 100%;
  height: clamp(19rem, 52vw, 33rem);
  border: 0;
}

.services {
  background:
    radial-gradient(circle at 82% 24%, rgba(233, 222, 208, 0.9) 0%, rgba(243, 237, 227, 0.1) 30%, transparent 58%),
    linear-gradient(180deg, #f5f0e8 0%, #f0e7db 100%);
}

.services::before {
  content: "";
  position: absolute;
  left: -8rem;
  top: 1.5rem;
  width: 24rem;
  height: 34rem;
  border: 26px solid rgba(221, 207, 189, 0.42);
  border-radius: 48% 52% 56% 44% / 58% 42% 58% 42%;
  opacity: 0.7;
  transform: rotate(18deg);
}

.services::after {
  content: "";
  position: absolute;
  right: 2.75rem;
  bottom: 2.25rem;
  width: 4.2rem;
  height: 7rem;
  background-image: radial-gradient(circle, rgba(184, 166, 148, 0.52) 0.18rem, transparent 0.2rem);
  background-size: 1.25rem 1.25rem;
  opacity: 0.7;
}

.services__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 100%;
  padding: 1.55rem;
  border: 1px solid rgba(23, 20, 25, 0.08);
  border-radius: 1.25rem;
  background: rgba(255, 250, 244, 0.95);
  box-shadow: var(--shadow);
}

.service-card__index {
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
}

.service-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.service-card li {
  position: relative;
  padding-left: 1.05rem;
  color: var(--ink-soft);
}

.service-card li + li {
  margin-top: 0.55rem;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

.fleet {
  color: #f7f1e8;
  background:
    radial-gradient(circle at top right, rgba(214, 65, 53, 0.24), transparent 28%),
    linear-gradient(180deg, #0d0d12 0%, #120f17 100%);
}

.fleet .section-heading p:last-child {
  color: rgba(247, 241, 232, 0.72);
}

.fleet__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.fleet-card {
  display: grid;
  gap: 0.95rem;
  padding: 1.45rem;
  border: 1px solid var(--night-line);
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.fleet-card__visual {
  display: grid;
  place-items: center;
  min-height: 12.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background:
    radial-gradient(circle at 50% 42%, rgba(74, 170, 255, 0.38) 0%, rgba(20, 78, 128, 0.5) 34%, rgba(7, 22, 38, 0.95) 68%, rgba(6, 15, 28, 1) 100%);
}

.fleet-card__visual img {
  width: auto;
  max-width: 100%;
  max-height: 10.75rem;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.3));
}

.fleet-card__label {
  margin-bottom: 0;
  color: var(--accent-soft);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.fleet-card h3 {
  margin-bottom: 0;
  color: #fff8f4;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.05;
}

.fleet-card p:last-child {
  margin-bottom: 0;
  color: rgba(247, 241, 232, 0.72);
}

.capability-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.7rem, 4vw, 2.4rem);
}

.capability-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: rgba(247, 241, 232, 0.82);
  font-size: 0.86rem;
  background: rgba(255, 255, 255, 0.04);
}

.photo-divider {
  position: relative;
  min-height: clamp(18rem, 42vw, 31rem);
  background: #09090c;
}

.photo-divider img {
  width: 100%;
  height: clamp(18rem, 42vw, 31rem);
  object-fit: cover;
}

.contact {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 30%),
    linear-gradient(180deg, #f4eee4 0%, #efe5d8 100%);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.8fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.contact-card {
  padding: clamp(1.45rem, 4vw, 2rem);
  border: 1px solid rgba(23, 20, 25, 0.08);
  border-radius: 1.45rem;
  background: rgba(255, 250, 244, 0.96);
  box-shadow: var(--shadow);
}

.contact-card__logo {
  width: clamp(12rem, 24vw, 18rem);
  margin: 0 auto 1.1rem;
}

.contact-card h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.35rem);
}

.contact-card > p {
  color: var(--ink-soft);
}

.contact-card__details {
  display: grid;
  gap: 0.8rem;
  margin: 1.5rem 0 1rem;
}

.contact-card__details div {
  padding: 1rem 1.05rem;
  border-radius: 1rem;
  background: var(--surface-muted);
}

.contact-card__details span {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-card__details strong {
  display: block;
  font-size: 1rem;
  line-height: 1.5;
}

.contact-card__note {
  margin-bottom: 1.2rem;
  color: rgba(23, 20, 25, 0.62);
  font-size: 0.9rem;
}

.quote-form {
  margin-top: 1.2rem;
}

.quote-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.quote-form__full {
  grid-column: 1 / -1;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field label {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.quote-form__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.82rem 0.95rem;
  border: 1px solid rgba(23, 20, 25, 0.12);
  border-radius: 0.9rem;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.quote-form__input:focus {
  border-color: rgba(214, 65, 53, 0.5);
  outline: none;
  box-shadow: 0 0 0 0.22rem rgba(214, 65, 53, 0.12);
  background: #fff;
}

.quote-form__textarea {
  min-height: 8.5rem;
  resize: vertical;
}

.quote-form__actions {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.quote-form__submit {
  width: auto;
  justify-self: start;
}

.quote-form__note {
  margin-bottom: 0;
  color: rgba(23, 20, 25, 0.62);
  font-size: 0.88rem;
}

.form-alert {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 0.95rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-alert--success {
  color: #0d4d29;
  background: rgba(83, 174, 114, 0.14);
  border: 1px solid rgba(83, 174, 114, 0.28);
}

.form-alert--error,
.validation-summary-errors {
  color: #8c231c;
  background: rgba(214, 65, 53, 0.1);
  border: 1px solid rgba(214, 65, 53, 0.22);
}

.validation-summary-valid {
  display: none;
}

.validation-summary-errors ul {
  margin: 0;
  padding-left: 1rem;
}

.field-validation {
  min-height: 1.1rem;
  color: #8c231c;
  font-size: 0.82rem;
}

.input-validation-error {
  border-color: rgba(214, 65, 53, 0.54);
  background: rgba(255, 245, 244, 0.92);
}

.site-footer {
  color: rgba(247, 241, 232, 0.76);
  background: #09090c;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 0;
  font-size: 0.9rem;
}

.site-footer__left {
  display: grid;
  gap: 0.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand__logo {
  width: clamp(12rem, 21vw, 16rem);
}

.site-footer__left p {
  margin-bottom: 0;
}

.site-footer__link {
  color: #fff8f4;
  font-weight: 700;
}

.js-reveal {
  opacity: 0;
  transform: translate3d(0, 1.15rem, 0);
  transition:
    opacity 720ms ease,
    transform 720ms cubic-bezier(0.2, 1, 0.22, 1);
}

.js-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 1080px) {
  .hero-story__grid,
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero-story__seal-wrap {
    justify-content: flex-start;
  }

  .services__grid,
  .fleet__grid,
  .hero-story__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  :root {
    --header-offset: 5.2rem;
  }

  .site-header {
    padding-top: 0.7rem;
  }

  .site-nav,
  .site-header__cta {
    display: none;
  }

  .hero-carousel__overlay-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-carousel__controls {
    justify-content: flex-start;
  }

  .hero-story__content h1 {
    font-size: clamp(2.15rem, 9vw, 3.4rem);
  }

  .services::before {
    left: -12rem;
    top: 4rem;
    width: 22rem;
    height: 28rem;
  }
}

@media (max-width: 640px) {
  .section-shell {
    width: min(var(--site-width), calc(100% - 1.25rem));
  }

  .brand__mark {
    width: 2.75rem;
  }

  .brand__logo,
  .footer-brand__logo {
    width: min(14.5rem, calc(100vw - 3rem));
  }

  .button {
    width: 100%;
  }

  .hero-carousel__controls {
    width: 100%;
  }

  .hero-carousel__controls {
    justify-content: space-between;
  }

  .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .quote-form__submit {
    width: 100%;
    justify-self: stretch;
  }

  .services__grid,
  .fleet__grid,
  .hero-story__cards {
    grid-template-columns: 1fr;
  }

  .hero-story__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .site-footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .button,
  .site-header__inner,
  .site-nav a::after,
  .hero-slide,
  .hero-carousel__button,
  .js-reveal {
    transition: none;
  }

  .js-reveal {
    opacity: 1;
    transform: none;
  }
}
