/* Background video keeps the approved photograph visible until a frame is playing. */
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
}

.hero.has-video .hero-video { opacity: 1; }
.hero.has-video .light-rays,
.hero.has-video .hero-aside { display: none; }

.hero {
  --hero-inset: clamp(32px, 3.25vw, 64px);
  --hero-bottom: clamp(32px, 3.5vw, 64px);
}

.perspective .perspective-photo img { object-position: 50% 65%; }

.perspective-copy h2.section-number {
  margin: 0;
  color: #adc2c4;
  font: 500 10px/1.6 var(--sans);
  letter-spacing: 0.18em;
}

.perspective-quote {
  margin: 24px 0;
  font: 500 clamp(36px, 4.1vw, 66px)/1.03 var(--display);
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.perspective-quote p { margin: 0; }
.perspective-quote .breath-hold { white-space: nowrap; }

.hero h1 > span {
  display: inline-block;
  white-space: nowrap;
}

.hero h1 > em {
  display: block;
}

.final-copy h2 {
  font-size: clamp(40px, 8.2vw, 116px);
  line-height: 0.95;
}

@media (min-width: 781px) {
  .hero-video {
    inset: 0 0 0 auto;
    width: min(53%, 74svh);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 28%);
    mask-image: linear-gradient(90deg, transparent, #000 28%);
  }
}

.hero-video-toggle {
  position: absolute;
  z-index: 5;
  right: var(--hero-inset);
  bottom: var(--hero-bottom);
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 20, 32, 0.35);
  cursor: pointer;
}

.hero-video-toggle[hidden] { display: none; }
.hero-video-toggle:hover { background: rgba(3, 20, 32, 0.7); }
.hero-video-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.hero-video-toggle-icon {
  width: 11px;
  height: 13px;
  border-left: 3px solid currentColor;
  border-right: 3px solid currentColor;
}
.hero-video-toggle[data-state="paused"] .hero-video-toggle-icon {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}

@media (max-width: 780px) {
  .hero-video { object-position: 56% 50%; }
}

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

/* Supplied transparent PNG, including its original symbol and lettering.
   Scale around its transparent margins; keep the entire visible artwork in view. */
.brand .brand-image,
footer .footer-brand .brand-image {
  top: 50%;
  left: 50%;
  width: auto;
  height: 275%;
  max-width: none;
  transform: translate(-50%, -50%);
  filter: none;
}

.site-header.is-scrolled .brand .brand-image,
.site-header.menu-open .brand .brand-image {
  filter: brightness(0) saturate(100%) invert(9%) sepia(21%) saturate(1484%) hue-rotate(158deg) brightness(92%) contrast(97%);
}

/* Refinements following Bright's homepage review. */
.site-header {
  position: fixed;
  z-index: 50;
  height: 94px;
  padding-top: 0;
  padding-bottom: 0;
  background: transparent;
  border-bottom: 1px solid transparent;
  color: #f5f3ed;
  transition: height 0.35s ease, background-color 0.35s ease, border-color 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  height: 76px;
  color: #101916;
  background: rgba(243, 240, 233, 0.94);
  border-bottom-color: rgba(16, 25, 22, 0.18);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 9px 30px rgba(4, 20, 26, 0.08);
}

.brand {
  position: relative;
  flex: 0 0 auto;
  width: 284px;
  height: 72px;
  overflow: hidden;
  transition: width 0.35s ease, height 0.35s ease;
}

.brand-scrim {
  display: none;
}

.brand img {
  position: absolute;
  top: 50%;
  left: -18.5%;
  width: 137%;
  max-width: none;
  transform: translateY(-50%);
  /* Keep the supplied artwork intact; make its transparent-header state white. */
  filter: brightness(0) invert(1) drop-shadow(0 1px 8px rgba(2, 15, 23, 0.34));
  image-rendering: auto;
  transition: filter 0.35s ease;
}

.site-header.is-scrolled .brand,
.site-header.menu-open .brand {
  width: 238px;
  height: 60px;
}

.site-header.is-scrolled .brand img,
.site-header.menu-open .brand img {
  filter: none;
}

.desktop-nav {
  gap: 19px;
  font-size: clamp(12px, 1.08vw, 14px);
}

.desktop-nav a {
  position: relative;
  padding: 12px 0 10px;
  opacity: 1;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  opacity: 1;
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.hero-media img {
  inset: 0;
  height: 100%;
  object-position: 50% 45%;
  filter: saturate(0.84) brightness(0.82) contrast(1.03);
  transform: scale(1.025);
}

.hero-wash,
.hero.has-video .hero-wash {
  background: linear-gradient(180deg, rgba(4, 17, 28, .6), transparent 27%),
    linear-gradient(0deg, rgba(4, 17, 28, .72), transparent 76%),
    linear-gradient(90deg, rgba(4, 17, 28, .32), transparent 57%);
}

.light-rays {
  opacity: 0.14;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.hero-copy {
  top: auto;
  bottom: var(--hero-bottom);
  left: var(--hero-inset);
  width: min(560px, 43vw);
  max-width: none;
  text-shadow: 0 1px 4px rgba(4, 17, 28, .7);
}

.hero h1 {
  margin: 20px 0 24px;
  font-size: clamp(33px, min(4.4vw, 8.8svh), 72px);
  line-height: .98;
}

.round-link {
  width: auto;
  height: auto;
  display: inline-flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 26px;
  padding: 0 0 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 0;
  font-size: clamp(13px, 1.15vw, 15px);
}

.round-link:hover {
  background: transparent;
  color: inherit;
  opacity: 0.72;
}

.knowledge {
  background: #eef0ea;
}

.carousel-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 16px 28px;
  padding-bottom: clamp(16px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.knowledge-intro h2 {
  max-width: 25ch;
  margin: 14px 0 0;
  font-size: clamp(36px, 5vw, 70px);
  line-height: 1;
  text-wrap: balance;
}

.carousel-controls:not([hidden]) {
  display: flex;
  gap: 8px;
  margin-inline-start: auto;
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: 20px/1 var(--sans);
  cursor: pointer;
}

.carousel-controls button[aria-disabled="true"] {
  opacity: .42;
  cursor: default;
}

.carousel-controls button:not([aria-disabled="true"]):hover {
  background: var(--ink);
  color: #fff;
}

[data-carousel-track] {
  display: grid;
  grid-auto-flow: column;
  padding-bottom: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-color: #8ba09e transparent;
  scrollbar-width: thin;
}

[data-carousel-track]:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 4px;
}

[data-carousel-track] > article {
  min-width: 0;
  scroll-snap-align: start;
}

.knowledge-track {
  grid-auto-columns: 64%;
  gap: clamp(14px, 2vw, 28px);
  margin-top: clamp(16px, 2.8vw, 34px);
}

.knowledge-card {
  background: #f9f8f4;
  border-bottom: 1px solid var(--line);
}

.knowledge-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.knowledge-card-copy {
  padding: clamp(17px, 2.8vw, 36px);
}

.knowledge-intro > .section-number,
.knowledge-card-copy > .section-number,
.learn > .section-number { font-size: clamp(13px, 1.12vw, 15px); }

.knowledge-card h3 {
  margin: 8px 0;
  font-size: clamp(26px, 3.2vw, 46px);
  line-height: 1.06;
}

.knowledge-card-copy > p:last-of-type {
  max-width: 58ch;
  margin: 0;
  color: #435458;
}

.knowledge-card-date {
  display: block;
  margin-top: 14px;
  color: #526367;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

@media (max-width: 780px) {
  .knowledge-track { grid-auto-columns: 82%; }
}

.courses {
  background: #f7f5ef;
}

.courses h2 {
  margin: 0;
  font-size: clamp(40px, 5vw, 70px);
  line-height: 1;
}

.course-grid {
  --course-gap: clamp(16px, 3vw, 40px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--course-gap)) / 3);
  gap: var(--course-gap);
  margin-top: clamp(34px, 5vw, 76px);
}

#course-cards {
  grid-auto-flow: row;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  row-gap: clamp(28px, 5vw, 66px);
}

.course-dialog {
  width: var(--course-dialog-width, 280px);
  height: var(--course-dialog-height, 420px);
  max-width: calc(100% - 24px);
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 5px;
  overflow: hidden;
  color: #fbf8f1;
  background: #082330;
  box-shadow: 0 30px 96px #03141b7d;
  overscroll-behavior: contain;
}

.course-dialog::backdrop { background: #03151fe0; backdrop-filter: blur(5px); }
body:has(.course-dialog[open]) { overflow: hidden; }
.course-dialog-panel { position: relative; isolation: isolate; height: 100%; overflow: hidden; }

.course-dialog-background,
.course-dialog-panel::before {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.course-dialog-background {
  z-index: -2;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.12);
  filter: blur(8px) brightness(.92) saturate(.9);
}

.course-dialog-panel::before {
  z-index: -1;
  content: "";
  background: linear-gradient(115deg, #051d2cbd 0%, #0a273682 61%, #0823324d);
}

.course-dialog-content {
  height: 100%;
  padding: 38px 18px 18px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #cfe4e280 transparent;
}
.course-dialog-heading h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
}
.course-dialog-heading .course-format { margin-top: 8px; font-size: 13px; line-height: 1.45; }
.course-dialog-heading .course-format strong { display: inline; margin-inline-end: .45em; }
.course-dialog-credential {
  margin: 14px 0 0;
  padding: 8px 10px;
  border-inline-start: 2px solid #b4d8db;
  background: rgb(4 28 41 / .54);
  font-size: 13px;
  line-height: 1.4;
}
.course-dialog-outline { margin-top: 14px; border-block: 1px solid #dcebec64; padding-block: 12px; }
.course-dialog-outline h3 { margin: 0 0 6px; font: 600 15px/1.35 var(--sans); }
.course-dialog-outline ol { margin: 0; padding-inline-start: 1.4em; font-size: 13px; line-height: 1.5; }
.course-dialog-outline li + li { margin-top: 3px; }
.course-dialog-locations { margin: 14px 0 0; display: grid; gap: 5px; }
.course-dialog-locations > div { display: grid; grid-template-columns: minmax(60px, 28%) minmax(0, 1fr); gap: 8px; }
.course-dialog-locations dt { color: #b8d6d8; font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.course-dialog-locations dd { margin: 0; font-size: 12px; overflow-wrap: anywhere; }
.course-dialog-price { margin: 12px 0 0; font-size: 16px; font-weight: 600; }
.course-price, .course-dialog-price { white-space: pre-line; }
.course-dialog-close, .course-open > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #f8f7ef80;
  border-radius: 50%;
  color: #fbf8f1;
  background: #082330b0;
}
.course-dialog-close {
  position: absolute;
  z-index: 1;
  top: 6px;
  right: 6px;
  font: 20px/1 var(--sans);
  cursor: pointer;
}
.course-dialog-close:hover, .course-open:hover > span { background: #f8f7ef; color: var(--ink); }
:is(#course-cards, #skill-cards) .course-card { position: relative; }
.course-open {
  display: flex;
  align-items: start;
  justify-content: end;
  position: absolute;
  inset: 0;
  width: min(100%, 280px);
  margin-inline: auto;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.course-open > span { width: 32px; height: 32px; font: 18px/1 system-ui, sans-serif; }
:is(#course-cards, #skill-cards) .course-cover-heading { padding-inline-end: 25px; }

@media (prefers-reduced-motion: no-preference) {
  .course-dialog[open] { animation: course-rise .28s ease-out both; }
  @keyframes course-rise {
    from { opacity: 0; transform: translateY(16px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
}

@media (max-width: 780px) {
  #course-cards { grid-template-columns: minmax(0, 1fr); }
  #skill-cards { grid-auto-columns: 100%; }
}

.course-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.course-cover {
  --cover-gutter: 7%;
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  width: min(100%, 280px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: var(--ink);
  color: #fbf8f1;
}

.course-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-cover::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 19, 30, .92), rgba(4, 19, 30, .72) 23%, transparent 47%),
    linear-gradient(0deg, rgba(4, 19, 30, .99), rgba(4, 19, 30, .83) 19%, transparent 44%);
  content: "";
  pointer-events: none;
}

.course-cover-heading,
.course-cover-locations {
  position: absolute;
  z-index: 1;
  inset-inline: var(--cover-gutter);
  text-align: left;
}

.course-cover-heading {
  top: 6%;
}

.course-cover h3 {
  margin: 0;
  max-width: 16ch;
  font-size: clamp(22px, 10.7cqi, 30px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.012em;
  text-wrap: balance;
  text-transform: uppercase;
}

.course-format {
  margin: 11px 0 0;
  color: #d9e8e8;
  font-size: 13px;
  line-height: 1.35;
}

.course-format strong {
  display: block;
  color: #fbf8f1;
  font-weight: 600;
}

.course-price {
  margin: 0;
  padding-top: 18px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.course-cover-locations {
  bottom: 5%;
  display: grid;
  gap: 5px;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid rgba(233, 244, 243, .42);
  font-size: 11.5px;
  line-height: 1.3;
}

.course-cover-locations::before {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: clamp(24px, 11cqi, 31px);
  aspect-ratio: 1;
  /* Frame the monogram in the transparent horizontal brand artwork. */
  background: url("assets/brand/work-20261109/logo-horizontal-white.png") 15.8% 50% / 487% auto no-repeat;
  content: "";
  pointer-events: none;
}

.course-cover-locations > div {
  display: grid;
  grid-template-columns: 67px minmax(0, 1fr);
  align-items: baseline;
  gap: 6px;
}

.course-cover-locations dt {
  color: #b8d6d8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.course-cover-locations dd {
  margin: 0;
}

.course-photo-first-breath {
  filter: brightness(1.04) contrast(1.09) saturate(.87);
}

.course-cover .course-photo-first-breath {
  object-position: center 23%;
}

.course-photo-into-the-blue {
  object-position: center 72%;
  filter: brightness(1.04) contrast(1.07) saturate(.94);
}

.course-photo-open-water {
  object-position: center 68%;
  filter: brightness(1.07) contrast(1.22) saturate(.86);
}

.skills.section-space {
  padding-top: 0;
}

.photo-gallery {
  container-type: inline-size;
  padding-block: clamp(24px, 4vw, 54px) 28px;
  background: radial-gradient(ellipse at 50% 73%, #a6bcbd73, transparent 65%), #dce6e5;
}

.photo-gallery-track {
  --photo-gap: clamp(6px, .8vw, 12px);
  --photo-width: min(63cqi, clamp(225px, 31cqi, 440px), 47svh);
  --photo-step: var(--photo-width);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  gap: var(--photo-gap);
  padding-inline: calc((100% - var(--photo-step)) / 2);
  padding-block: 4px 10px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
}

.photo-gallery-track[data-gallery-ready] {
  --photo-step: calc(var(--photo-width) * .7);
  padding-top: calc(var(--photo-width) * .25);
  padding-bottom: calc(12px + var(--photo-width) * .15);
}

.photo-gallery-track.is-dragging {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}

.photo-gallery-track:focus-visible { outline-offset: -4px; }

.photo-slide {
  position: relative;
  flex: 0 0 auto;
  width: var(--photo-step);
  height: calc(var(--photo-width) * 4 / 3);
  margin: 0;
  z-index: var(--photo-layer, 0);
  scroll-snap-align: center;
}

.photo-frame {
  --focus: var(--photo-focus, 0);
  position: absolute;
  inset-block: 0;
  left: 50%;
  width: var(--photo-width);
  overflow: hidden;
  border-radius: 4px;
  background: var(--deep);
  opacity: var(--photo-opacity, 1);
  box-shadow: 0 calc(11px + 3px * var(--focus)) calc(17px + 9px * var(--focus))
    rgb(6 26 50 / calc(.18 + .22 * var(--focus)));
  transform: translateX(calc(-50% - var(--photo-scroll-offset, 0px)))
    perspective(var(--photo-camera, 850px))
    translate3d(var(--photo-x, 0px), var(--photo-y, 0px), var(--photo-z, 0px))
    rotateY(var(--photo-turn, 0rad)) scale(calc(1 + .22 * var(--focus)));
  filter: blur(var(--photo-blur, 0px)) brightness(calc(var(--photo-light, 1) * (1 + .055 * var(--focus))));
}

.photo-gallery-track[data-gallery-ready] .photo-frame { opacity: var(--photo-opacity, 0); }

.photo-frame::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(235 250 249 / calc(.38 * var(--focus)));
  border-radius: inherit;
  pointer-events: none;
  content: "";
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(var(--photo-face, 1));
}

.photo-slide--landscape img { object-fit: contain; }

.photo-gallery-footer {
  display: flex;
  justify-content: center;
  padding: 14px var(--pad) 0;
}

.photo-gallery .carousel-controls:not([hidden]) { margin-inline-start: 0; }
.photo-gallery .carousel-controls button { border-color: #627e86; }
.photo-gallery [data-photo-playback] { font-size: 16px; }

a:focus-visible,
button:focus-visible {
  outline: 2px solid #d8bd83;
  outline-offset: 5px;
}

/* A calmer desktop rhythm: generous, but without empty presentation gaps. */
@media (min-width: 781px) {
  .section-space {
    --section-top-padding: clamp(96px, 8vw, 118px);
    padding-top: var(--section-top-padding);
    padding-bottom: clamp(96px, 8vw, 118px);
  }

  #courses { --section-scroll-margin: calc(104px - var(--section-top-padding)); }

  .perspective {
    min-height: 720px;
  }

  .perspective-copy {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  .learn {
    padding-top: 138px;
    padding-bottom: 138px;
  }

  .final-descent {
    min-height: 640px;
  }
}

footer .footer-brand {
  position: relative;
  grid-column: 1 / -1;
  width: clamp(270px, 24vw, 340px);
  height: clamp(68px, 6vw, 86px);
  overflow: hidden;
}

footer .footer-brand img {
  position: absolute;
  top: 50%;
  left: -18.5%;
  width: 137%;
  max-width: none;
  height: auto;
  transform: translateY(-50%);
  filter: brightness(0) invert(1);
}

@media (min-width: 781px) and (max-width: 1100px) {
  .brand {
    width: 244px;
    height: 62px;
  }

  .site-header.is-scrolled .brand,
  .site-header.menu-open .brand {
    width: 220px;
    height: 56px;
  }

  .desktop-nav {
    gap: 12px;
  }
}

@media (max-width: 780px) {
  .site-header {
    height: 78px;
    padding: 0 22px;
  }

  .brand {
    width: 242px;
    height: 60px;
  }

  .site-header.is-scrolled,
  .site-header.menu-open {
    height: 68px;
  }

  .site-header.is-scrolled .brand,
  .site-header.menu-open .brand {
    width: 214px;
    height: 54px;
  }

  .menu-toggle {
    min-width: 48px;
    min-height: 48px;
    justify-content: flex-end;
  }

  .mobile-nav {
    top: 77px;
    color: #101916;
    background: rgba(243, 240, 233, 0.98);
    border-top: 1px solid rgba(16, 25, 22, 0.12);
    box-shadow: 0 20px 30px rgba(4, 20, 26, 0.12);
    transition: top 0.35s ease;
  }

  .site-header.is-scrolled .mobile-nav,
  .site-header.menu-open .mobile-nav {
    top: 67px;
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .hero-media img {
    inset: 0;
    height: 100%;
    object-fit: cover;
    object-position: 62% 45%;
  }

  .hero {
    --hero-inset: 16px;
    --hero-bottom: 18px;
    height: 100svh;
    min-height: 640px;
    background: #0b3245;
  }

  .hero-media {
    inset: 0;
    height: 100%;
    overflow: hidden;
  }

  .hero-copy {
    width: min(430px, calc(100% - 2 * var(--hero-inset)));
  }

  .hero h1 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 8.4vw, 54px);
  }

  .round-link {
    min-height: 44px;
    align-items: center;
  }

  footer .footer-brand {
    width: min(280px, 84vw);
    height: 70px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-media img {
    animation-name: hero-drift-refined;
  }

  @keyframes hero-drift-refined {
    to { transform: scale(1.055) translate3d(-0.35%, 0.25%, 0); }
  }
}

.invitation.section-space {
  padding-block: clamp(52px, 6.4vw, 96px);
}

.invitation-copy > .section-number {
  font-size: clamp(14px, 1.3vw, 17px);
  font-weight: 500;
}

.invitation-copy h2 {
  max-width: 30ch;
  margin: 18px 0 clamp(22px, 3vw, 38px);
  font-size: clamp(36px, 4.6vw, 68px);
  line-height: 1;
  text-wrap: balance;
}

.invitation-intro {
  max-width: 72ch;
  color: #435458;
  font-size: clamp(16px, 1.45vw, 20px);
  line-height: 1.6;
}

.invitation-intro p { margin: 0; }
.invitation-intro p + p { margin-top: 1em; }

/* One dive at a time */
.timeline {
  --timeline-paper: #e5e6df;
  display: grid;
  gap: clamp(32px, 5vw, 84px);
  align-items: start;
  background: var(--timeline-paper);
}

.timeline-heading {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  min-height: clamp(260px, 60vw, 410px);
  padding: clamp(22px, 3.2vw, 52px);
  color: var(--paper);
  background: var(--deep);
}

.timeline-photo, .timeline-heading::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.timeline-photo {
  object-fit: cover;
  object-position: 50% 65%;
}

.timeline-heading::after {
  content: "";
  background: linear-gradient(180deg, rgba(4, 27, 41, .5), transparent 38%, rgba(3, 22, 35, .63));
}

.timeline-heading .section-number {
  color: #f1f3ed;
  font-family: inherit;
  font-weight: inherit;
  font-size: clamp(17px, 1.8vw, 24px);
  line-height: 1.3;
}

.timeline-stages {
  --node-center: 8px;
  --step-padding: clamp(22px, 2.8vw, 44px);
  --node-top: calc(var(--step-padding) + 1rem);
  position: relative;
  min-width: 0;
}

.journey-path {
  list-style: none;
  margin: 0;
  padding: 0;
}

.journey-path li {
  position: relative;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: clamp(14px, 2vw, 32px);
  padding: var(--step-padding) 0 var(--step-padding) clamp(32px, 3.2vw, 52px);
}

.journey-path li > div {
  border-top: 1px solid rgba(15, 62, 72, .22);
  padding-top: 10px;
}

.journey-number {
  padding-top: 12px;
  font-size: 11px;
  letter-spacing: .14em;
  color: #435e62;
  font-variant-numeric: tabular-nums;
}

.journey-path h3 {
  margin: 0 0 7px;
  font-size: clamp(32px, 3.4vw, 55px);
  line-height: 1;
}
.journey-path p {
  margin: 0;
  max-width: 38ch;
  color: #415558;
}

.journey-path li:not(:last-child)::before,
.journey-path li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: var(--node-center);
  top: var(--node-top);
  width: 2px;
  height: 100%;
  transform: translateX(-50%);
  background: #a5b7b5;
}

.journey-path li:not(:last-child)::after {
  background: var(--sea);
  transform-origin: top;
  transform: translateX(-50%) scaleY(var(--step-fill, 0));
}

.journey-node {
  position: absolute;
  z-index: 1;
  left: var(--node-center);
  top: var(--node-top);
  width: 12px;
  height: 12px;
  transform: translate(-50%, -50%);
  border: 2px solid #617f81;
  border-radius: 50%;
  background: var(--timeline-paper);
}

.timeline[data-progress-marker="diver"] .timeline-stages { --node-center: 13px; }
.timeline[data-progress-marker="diver"] .journey-path li::after { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .timeline[data-progress-marker="diver"] .journey-diver:not([hidden]) {
    position: absolute;
    z-index: 2;
    top: var(--node-top);
    left: var(--node-center);
    width: 34px;
    height: 47px;
    transform: translate(-50%, calc(-50% + var(--diver-offset, 0px)));
    color: #164c61;
    pointer-events: none;
  }

  .journey-diver svg {
    display: block;
    overflow: visible;
  }

  .journey-diver .far-leg {
    transform-origin: 18px 24px;
    --hip-angle: calc(-1 * var(--fin-kick, 0deg));
    transform: rotate(var(--hip-angle));
  }

  .journey-diver .near-leg {
    transform-origin: 18px 24px;
    --hip-angle: var(--fin-kick, 0deg);
    transform: rotate(var(--hip-angle));
  }

  .journey-diver .lower-leg {
    transform-origin: 18px 13px;
    transform: rotate(calc(-5deg - .4 * var(--hip-angle)));
  }
}

.timeline-link { margin-top: 22px; }

@media (min-width: 860px) {
  .timeline { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .timeline-heading { min-height: clamp(360px, 62svh, 610px); }
}

@media (prefers-reduced-motion: no-preference) {
  .journey-node { transition: background-color .22s, box-shadow .26s; }
  .journey-path .is-past .journey-node,
  .journey-path [aria-current="step"] .journey-node {
    border-color: var(--sea);
    background: var(--sea);
  }
  .journey-path [aria-current="step"] .journey-node { box-shadow: 0 0 0 5px rgb(29 82 101 / 15%); }
  .journey-path [aria-current="step"] h3 { color: var(--sea); }
}

@media (min-width: 860px) and (min-height: 560px) and (prefers-reduced-motion: no-preference) {
  .timeline-heading { position: sticky; top: 100px; }
  .timeline-photo {
    height: 105%;
    transform: translateY(calc(-4% * var(--journey-progress, 0)));
  }
}

.brand img,
footer .footer-brand img {
  left: -12.5%;
  width: 125%;
}

main section[id]:not(#top),
#training-locations {
  scroll-margin-top: var(--section-scroll-margin, 94px);
}

.hero-media img {
  object-position: 50% 50%;
}

@media (max-width: 780px) {
  main section[id]:not(#top),
  #training-locations {
    scroll-margin-top: 78px;
  }

  .brand {
    width: 220px;
    height: 56px;
  }

  .site-header.is-scrolled .brand,
  .site-header.menu-open .brand {
    width: 198px;
    height: 50px;
  }

  .hero-media img {
    object-position: 67% 48%;
    filter: saturate(0.78) brightness(0.76) contrast(1.04);
  }

}

html[lang="th"] {
  --sans: "Noto Sans Thai", system-ui, sans-serif;
  --display: "Noto Sans Thai", system-ui, sans-serif;
}

html[lang="th"] .hero h1 {
  font-size: clamp(28px, 5.4vw, 76px);
  letter-spacing: -.03em;
  line-height: 1.17;
}

html[lang="th"] h2, html[lang="th"] h3 { letter-spacing: -.025em; }
html[lang="th"] .desktop-nav {
  letter-spacing: .09em;
}

html[lang="th"] .hero .eyebrow {
  font-size: clamp(13px, 1.25vw, 16px);
  letter-spacing: .11em;
}

html[lang="th"] .invitation-intro { line-height: 1.7; }
html[lang="th"] .invitation-intro p { text-wrap: balance; }
.invitation-copy .keep-together,
.learn-ending,
html[lang="th"] .learn-lead { white-space: nowrap; }

html[lang="th"] .learn h2 {
  max-width: 1020px;
  font-size: clamp(30px, 5.8vw, 72px);
  line-height: 1.2;
  text-wrap: balance;
}

html[lang="th"] .learn-ending { display: contents; }
html[lang="th"] .learn-ending em {
  display: block;
  font-size: 1.1em;
}

.learn .learn-cta {
  align-items: center;
  min-height: 50px;
  padding: 12px 26px;
  font-size: clamp(14px, 1.35vw, 18px);
}

html[lang="th"] :is(.course-card, .course-dialog) {
  --display: "Cormorant Garamond", "Noto Sans Thai", Georgia, serif;
  --sans: "DM Sans", "Noto Sans Thai", Arial, sans-serif;
  font-family: var(--sans);
}

html[lang="th"] .course-cover h3 { letter-spacing: -.012em; }
.site-header .language-link { font-weight: 600; }
.mobile-header-actions { display: none; }

@media (max-width: 780px) {
  html[lang="th"] .hero h1 { font-size: clamp(27px, 7.5vw, 58px); }
  html[lang="th"] .mobile-nav { font-size: 14px; }
  html[lang="th"] .perspective-copy > p:not(.section-number) {
    max-width: 36rem;
    line-height: 1.75;
    text-wrap: pretty;
  }
  .perspective-copy .keep-together { white-space: nowrap; }
  .journey-note-invite { display: block; margin-top: .75em; }

  html[lang="th"] .menu-toggle,
  html[lang="th"] .mobile-header-actions .mobile-language { font-size: 12px; }
  .site-header { gap: 8px; }
  .site-header .brand { flex: 0 1 auto; min-width: 0; }
  .site-header .brand .brand-image { width: min(123%, 244px); height: auto; }
  .mobile-header-actions { display: flex; flex: none; align-items: baseline; gap: 3px; }
  .mobile-header-actions :is(.mobile-language, .menu-toggle) {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    line-height: 1.4;
  }

  .mobile-header-actions .menu-icon { transform: translateY(-3px); }

  .mobile-header-actions .mobile-language {
    position: relative;
    justify-content: center;
    min-width: 44px;
    font-size: 11px;
    letter-spacing: .06em;
  }

  .mobile-header-actions .mobile-language::before {
    position: absolute;
    inset: 10px 3px;
    border: 1px solid currentColor;
    border-radius: 100px;
    opacity: .56;
    pointer-events: none;
    content: "";
  }
}

@media (max-width: 360px) {
  html[lang="th"] .learn h2 { font-size: 27px; }
}
