:root {
  color-scheme: light;
  --ink: #172922;
  --dark: #14251e;
  --light: #f4f0e7;
  --gold: #f1c68d;
  --line: #c8c9b9;
  --gutter: clamp(1.25rem, 6vw, 7rem);
  font-family: "Instrument Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--light);
}
* { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; }
:focus-visible { outline: 3px solid #ad6d23; outline-offset: 4px; }
.skip { position: fixed; z-index: 10; top: 1rem; left: 1rem; background: var(--gold); padding: 1rem; transform: translateY(-200%); }
.skip:focus { transform: none; }
.top, footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem var(--gutter); background: var(--dark); color: var(--light); }
.top img, footer img { object-fit: contain; width: 156px; height: auto; }
nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); }
nav a { text-decoration: none; font-weight: 600; }
.nav-cta { color: var(--gold); }
.hero { background: var(--dark); color: var(--light); }
.hero .k-stage { --k-poster: url(assets/hero-poster.webp); min-height: 39rem; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, #111d16 0%, #111d16e0 22%, #111d1680 44%, transparent 76%), linear-gradient(0deg, #101914b8, transparent 25%); z-index: 1; pointer-events: none; }
.hero-inner { position: absolute; z-index: 2; top: 48%; left: var(--gutter); right: var(--gutter); transform: translateY(-50%); width: fit-content; max-width: calc(100% - 2 * var(--gutter)); }
.eyebrow { font-size: .72rem; font-weight: 750; letter-spacing: .16em; margin: 0 0 1.1rem; }
.hero .eyebrow { color: var(--gold); }
h1, h2 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; margin: 0; line-height: .95; letter-spacing: -.04em; }
h1 { font-size: clamp(4rem, 8vw, 9rem); transform-origin: left bottom; transform: translate(var(--cue-x, 0px), var(--cue-y, 0px)) scale(var(--cue-scale, 1)); }
h1 em { color: var(--gold); font-weight: inherit; }
h2 { font-size: clamp(3rem, 6vw, 6rem); }
h3 { margin: 0; font-weight: 650; }
p { line-height: 1.55; }
.hero-description { max-width: 29ch; font-size: clamp(1rem, 1.5vw, 1.22rem); margin: 1.65rem 0; }
.button { display: inline-flex; align-items: center; justify-content: space-between; gap: 1.2rem; width: fit-content; padding: .85rem 1.1rem; border: 1px solid transparent; border-radius: .25rem; font-weight: 700; text-decoration: none; cursor: pointer; }
.gold { background: var(--gold); color: #24251d; }
.gold:hover { background: #ffda9f; }
.outline { color: inherit; background: transparent; border-color: #a8b39e; }
.outline:hover { background: #ffffff14; }
.hero-next { position: absolute; inset: auto auto 1.6rem var(--gutter); z-index: 2; color: inherit; text-underline-offset: .3rem; font-size: .9rem; }
.hero-next span { margin-left: .5rem; }
.k-static h1, .k-media-failed h1 { transform: none; }
.section { padding: clamp(4rem, 9vw, 8rem) var(--gutter); }
.intro { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.intro > p { max-width: 40ch; margin: 0; }
.fleet-panel { display: grid; grid-template-columns: 1.1fr 1fr; border: 1px solid var(--line); }
.fleet-choices { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.2rem, 4vw, 4rem); }
.seat-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: 1.2rem; }
.seat-options button { border: 1px solid var(--line); border-radius: .2rem; background: transparent; color: inherit; cursor: pointer; display: grid; place-content: center; padding: .7rem .2rem; font: 2.15rem Georgia, serif; }
.seat-options button span { font: .7rem system-ui, sans-serif; }
.seat-options button:hover, .seat-options button[aria-pressed="true"] { background: var(--dark); color: var(--light); }
.text-link { font-weight: 700; text-underline-offset: .3rem; }
.services { background: #e8ebdd; }
.trip-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; margin: 0; }
.trip-list div { border-top: 1px solid #aab2a2; padding: 1.3rem 0; }
.trip-list dt { font-size: 1.2rem; font-weight: 700; }
.trip-list dd { margin: .45rem 0 0; }
.quote { background: var(--dark); color: var(--light); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); }
.quote .eyebrow { color: var(--gold); }
.quote p { max-width: 38ch; }
.fields { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
label { min-width: 0; font-size: .9rem; font-weight: 650; }
input { display: block; width: 100%; min-width: 0; min-height: 2.9rem; padding: .45rem .6rem; margin-top: .35rem; background: #f7f4eb; color: var(--ink); border: 1px solid #cbd2c2; border-radius: .2rem; }
fieldset { padding: 0; border: 0; margin: 1.4rem 0 0; }
legend { font-weight: 650; padding: 0; margin-bottom: .7rem; }
.send-options { display: flex; flex-wrap: wrap; gap: .65rem; }
.form-note { color: #d9dece; font-size: .85rem; }
footer { border-top: 1px solid #ffffff38; font-size: .85rem; }
@media (max-width: 740px) {
  .top img { width: 112px; }
  nav { gap: .75rem; font-size: .8rem; }
  nav a[href="#services"] { display: none; }
  .hero .k-stage { --k-poster: url(assets/hero-m-poster.webp); min-height: 42rem; }
  .shade { background: linear-gradient(180deg, #101914f0 0%, #101914a8 29%, #10191400 55%, #10191495 80%, #101914 100%); }
  .hero-inner { display: contents; }
  .hero-inner > .eyebrow, h1, .hero-description, .hero-inner > .button { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); }
  .hero-inner > .eyebrow { top: 7%; }
  h1 { top: 12%; font-size: clamp(3.35rem, 12vw, 5rem); }
  .hero-description { bottom: 16%; margin: 0; }
  .hero-inner > .button { bottom: 8%; }
  .hero-next { bottom: 2%; }
  .intro, .fleet-panel, .quote { grid-template-columns: 1fr; }
  .intro { gap: 1rem; }
  .trip-list { grid-template-columns: 1fr; }
  footer { flex-wrap: wrap; }
}
.hero.k-media-failed { height: auto !important; }
.k-media-failed .k-stage { position: relative; }
@media (max-height: 700px) {
  .hero .k-stage { min-height: 0; }
}
@media (max-width: 740px) and (max-height: 700px) {
  .hero-description { bottom: 20%; }
  .hero-inner > .button { bottom: 8%; }
}
.skip:not(:focus) { clip-path: inset(50%); }
.top > a, nav a, .text-link, footer > a, .hero-next { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.text-link { align-self: flex-start; gap: .4rem; }
footer > a { gap: .4rem; }
@media (max-width: 740px) {
  .hero .k-stage { background-size: contain; background-color: var(--dark); }
  .hero video[data-k-scrub] { object-fit: contain; }
  .shade { background: linear-gradient(180deg, #101914 0%, #101914bc 17%, #10191400 40%, #10191400 67%, #101914e3 88%, #101914 100%); }
}

/* KHS brand palette */
:root {
  --blue: #014aad;
  --gold: #c8966b;
  --ink: #111;
  --dark: #111;
  --light: #fff;
  --line: #c8d3e2;
  --blue-wash: #f0f5fc;
}
:focus-visible { outline-color: var(--blue); }
.top :focus-visible, .hero :focus-visible, .quote :focus-visible, footer :focus-visible { outline-color: var(--gold); }
.top { border-bottom: 3px solid var(--blue); }
nav { flex-wrap: wrap; }
.nav-cta { color: #fff; background: var(--blue); border-radius: .25rem; padding-inline: .8rem; gap: .4rem; }
.nav-cta:hover { background: #003b8a; }
.shade { background: linear-gradient(90deg, #000 0%, #000d 24%, #0007 46%, transparent 77%), linear-gradient(0deg, #000b, transparent 25%); }
.hero h1 em { color: #fff; }
.hero .eyebrow { color: #fff; }
.gold { background: var(--gold); color: #111; }
.gold:hover { background: #dfb38f; }
.about, .contact { background: var(--blue-wash); }
.section .eyebrow, .text-link, .contact a { color: var(--blue); }
.quote .eyebrow { color: var(--gold); }
.about-history, .contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.about-history > div, .contact-list > div { border-top: 2px solid var(--gold); padding-top: 1rem; }
.about-history strong { display: block; color: var(--blue); font: 3.2rem/1 Georgia, serif; }
.about-history p { max-width: 32ch; }
.fleet-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.fleet-gallery figure { min-width: 0; margin: 0; border-bottom: 2px solid var(--gold); }
.fleet-gallery img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.fleet-gallery figure:first-child img { object-position: center 55%; }
.fleet-gallery figcaption { font-size: .92rem; font-weight: 650; padding: .7rem 0; }
.seat-options button:hover, .seat-options button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.services { background: #fff; }
.trip-list div { border-color: var(--line); }
.trip-list dt, .contact-list dt { color: var(--blue); font-weight: 750; }
.contact-list { margin-bottom: 0; }
.contact-list dd { margin: .5rem 0 0; line-height: 1.6; overflow-wrap: anywhere; }
.contact-list a { display: flex; align-items: center; min-height: 44px; width: fit-content; text-underline-offset: .2em; }
.quote { background: var(--blue); color: #fff; }
.quote input { background: #fff; border-color: var(--line); }
.form-note { color: #fff; }
.outline { border-color: #fff; }
@media (max-width: 740px) {
  .top { align-items: flex-start; flex-direction: column; gap: .3rem; }
  nav { gap: .1rem .6rem; width: 100%; }
  nav a[href="#services"] { display: inline-flex; }
  .nav-cta { margin-left: auto; }
  .shade { background: linear-gradient(180deg, #111 0%, #000d 17%, #0000 40%, #0000 67%, #000e 88%, #111 100%); }
  .about-history, .contact-list { grid-template-columns: 1fr; gap: .8rem; }
  .fleet-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.contact-map { margin-top: 2rem; }
.contact-map > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1.5rem; }
.contact-map a { gap: .4rem; }
.contact-map iframe { display: block; width: 100%; height: clamp(17rem, 38vw, 26rem); margin-top: .5rem; border: 1px solid var(--line); border-radius: .25rem; }

.hero h1 { font-size: clamp(2.6rem, 5.6vw, 6rem); line-height: 1.01; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 7vw, 7rem); align-items: start; }
.about-layout h2 { max-width: 12ch; font-size: clamp(3rem, 5.5vw, 6rem); }
.about-lead { max-width: 42ch; margin: 1.25rem 0 0; font-size: clamp(1rem, 1.6vw, 1.22rem); }
.about-story > div { border-top: 2px solid var(--gold); padding: .9rem 0 1rem; }
.about-story h3 { color: var(--blue); }
.about-story p { margin: .4rem 0 0; max-width: 58ch; }
.fleet-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 740px) {
  .hero h1 { font-size: clamp(1.85rem, 7vw, 3rem); }
  .about-layout { grid-template-columns: 1fr; }
  .fleet-gallery { grid-template-columns: 1fr; }
}
.about-layout h2 { max-width: 18ch; font-size: clamp(2.4rem, 4.8vw, 5.25rem); }

.partners { border-top: 1px solid var(--line); }
.partner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.partner-card { display: flex; flex-direction: column; align-items: flex-start; padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-top: 3px solid var(--gold); }
.partner-logo { display: inline-flex; align-items: center; justify-content: flex-start; width: 13rem; max-width: 100%; height: 5rem; margin-bottom: 1.3rem; }
.partner-logo img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.partner-card p { max-width: 45ch; margin: .55rem 0 1.25rem; }
.partner-link { margin-top: auto; border-color: var(--blue); color: var(--blue); }
.partner-link:hover { color: #fff; background: var(--blue); }
@media (max-width: 740px) {
  .partner-grid { grid-template-columns: 1fr; }
}

.hero-mobile-poster { display: none; }
.fields select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 2.9rem;
  margin-top: .35rem;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  border-radius: .2rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
}
.field-note { font-weight: 400; }
.fields .date-help { grid-column: 1 / -1; max-width: none; margin: -.55rem 0 0; font-size: .85rem; }
@media (max-width: 740px) {
  .hero .k-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "heading" "film" "description" "quote" "fleet";
    grid-template-rows: auto clamp(12rem, 34svh, 22rem) auto auto auto;
    align-content: center;
    height: auto;
    min-height: min(100svh, 43rem);
    gap: 0;
    padding: 1.2rem 0 .65rem;
    background: var(--dark);
  }
  .hero-heading { grid-area: heading; padding: 0 var(--gutter) 1.05rem; }
  .hero-heading .eyebrow { margin-bottom: .55rem; }
  .hero-heading h1 {
    position: static;
    font-size: clamp(1.65rem, 7.1vw, 3rem);
    transform-origin: left top;
    line-height: 1.04;
  }
  .hero-mobile-poster, .hero .k-stage > video[data-k-scrub], .hero .shade { grid-area: film; }
  .hero-mobile-poster {
    display: block;
    background: url(assets/hero-m-poster.webp) center 54% / cover no-repeat;
  }
  .hero .k-stage > video[data-k-scrub] { position: relative; object-fit: cover; object-position: center 54%; }
  .hero .shade {
    position: relative;
    inset: auto;
    background: linear-gradient(180deg, #1116, transparent 18%, transparent 79%, #1118);
  }
  .hero-inner > .hero-description, .hero-inner > .button, .hero .hero-next { position: static; margin-inline: var(--gutter); }
  .hero-inner > .hero-description { grid-area: description; margin-block: .9rem .7rem; max-width: 36ch; }
  .hero-inner > .button { grid-area: quote; justify-self: start; }
  .hero .hero-next { grid-area: fleet; justify-self: start; }
  .fields input, .fields select { font-size: 1rem; }
}

/* Scroll motion in the main page sections. */
.fleet-photo, .gallery-photo { overflow: hidden; position: relative; }
.fleet-photo { min-height: 21rem; max-height: 33rem; }
.gallery-photo { aspect-ratio: 4 / 3; }
.fleet-photo img, .fleet-gallery .gallery-photo img {
  position: absolute;
  inset: -8% 0;
  width: 100%;
  height: 116%;
  aspect-ratio: auto;
  object-fit: cover;
  transform: translateY(var(--photo-shift, 0px));
}
.fleet-photo img { object-position: center 60%; }
.about-story[data-route-progress] {
  --route-progress: 1;
  position: relative;
  padding-left: 1.4rem;
  border-left: 1px solid var(--line);
}
.about-story[data-route-progress]::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 2px;
  background: var(--blue);
  transform: scaleY(var(--route-progress));
  transform-origin: top;
}
.about-story > div { position: relative; }
.about-story > div::before {
  content: "";
  position: absolute;
  top: -5px;
  left: calc(-1.4rem - 5px);
  inline-size: 8px;
  block-size: 8px;
  border: 1px solid var(--blue);
  border-radius: 50%;
  background: var(--light);
}
.k-on [data-k-in]:focus-within { opacity: 1; transform: none; transition: none; }
@media (max-width: 740px) {
  .fleet-photo { height: 16rem; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) {
  [data-photo-parallax] img { transform: none; }
  .about-story[data-route-progress]::before { transform: none; }
}

.worked-with { background: var(--blue-wash); border-top: 1px solid var(--line); }
.worked-with h2 { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.worked-with ul { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; margin: 0; padding: 0; list-style: none; }
.worked-with a {
  display: grid;
  grid-template-rows: 5.5rem 1fr;
  justify-items: center;
  align-items: center;
  gap: .75rem;
  height: 100%;
  padding: 1rem .7rem;
  border: 1px solid var(--line);
  border-top: 2px solid var(--gold);
  background: #fff;
  color: var(--blue);
  text-align: center;
  text-decoration: none;
  font-weight: 650;
}
.worked-with a:hover span, .worked-with a:focus-visible span { text-decoration: underline; text-underline-offset: .2em; }
.worked-with img { width: 100%; height: 100%; max-width: 11rem; object-fit: contain; }
footer { flex-wrap: wrap; }
footer > p { margin: 0; }
.footer-links { width: auto; gap: .25rem 1rem; }
.footer-links a { gap: .25rem; }
@media (max-width: 900px) {
  .worked-with ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 580px) {
  .worked-with ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.worked-with-more { display: flex; align-items: center; gap: .7rem; margin: 1.25rem 0 0; color: var(--blue); font-weight: 650; }
.worked-with-more::before { content: ""; width: 1.75rem; height: 2px; background: var(--gold); }
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .worked-with a { transition: transform .2s ease, box-shadow .2s ease; }
  .worked-with a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgb(1 74 173 / .12); }
}
