/* ==========================================================================
   Home — ported from the "Home" artboards on the design canvas.
   Desktop first, with the canvas's single 920px breakpoint plus a couple of
   intermediate steps the canvas didn't cover.
   ========================================================================== */

.frame--tall  { height: 720px; }
.frame--wide  { height: 600px; }
.frame--tile  { height: 500px; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  height: 96vh;
  min-height: 700px;
  max-height: 980px;
  background: var(--marine-soft);
  overflow: hidden;
}
/* --------------------------------------------------------------------------
   Hero — a slow crossfade between three frames, the whole stack drifting.
   Cycle: 24s, three slides of 8s with a 2.4s crossfade between them.
   -------------------------------------------------------------------------- */

.hero__media {
  position: absolute;
  inset: 0;
  transform-origin: center center;
  animation: heroZoom 26s cubic-bezier(0.25, 0.1, 0.25, 1) forwards;
}

.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: heroFade 24s cubic-bezier(0.4, 0, 0.2, 1) infinite backwards;
  animation-delay: calc( var(--i) * 8s );
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: sepia(.12) saturate(.96) contrast(.98);
}

/* Fade up, hold, fade away — then wait out the other two. */
@keyframes heroFade {
  0%     { opacity: 0; }
  10%    { opacity: 1; }
  33.33% { opacity: 1; }
  43.33% { opacity: 0; }
  100%   { opacity: 0; }
}

@keyframes heroZoom {
  from { transform: scale(1) translateX(0); }
  to   { transform: scale(1.18) translateX(-3.5%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__media { animation: none; }
  /* No cycling: hold the first frame. */
  .hero__slide { animation: none; opacity: 0; }
  .hero__slide:first-child { opacity: 1; }
}

.hero__scrim { position: absolute; inset: 0; background: rgba(18, 36, 46, .28); }

.hero__copy {
  position: absolute;
  left: 100px; right: 100px;
  bottom: 170px;
  max-width: 760px;
}
.hero__copy .display { color: var(--on-marine); margin: 0 0 22px; }
.hero__lede {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(247, 243, 236, .92);
  max-width: 560px;
  margin: 0 0 38px;
}

/* Tide strip ------------------------------------------------------------- */

.tide-strip {
  position: absolute;
  inset: auto 0 0 0;
  background: rgba(18, 36, 46, .55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tide-strip__inner {
  max-width: var(--page);
  margin-inline: auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}
.tide-strip__cell { padding: 0 24px; border-left: 1px solid rgba(247, 243, 236, .18); }
.tide-strip__cell:first-child { padding-left: 0; padding-right: 24px; border-left: 0; }
.tide-strip__cell:last-child { padding-right: 0; }

.tide-strip__label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .65);
  margin-bottom: 6px;
}
.tide-strip__value {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--on-marine);
}
.tide-strip__note {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247, 243, 236, .65);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
   Welcome
   -------------------------------------------------------------------------- */

.welcome {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 96px;
  align-items: center;
  padding-block: 140px;
}
.welcome__copy { max-width: 660px; }
.welcome__copy .h2 { margin: 0 0 34px; }
.welcome__copy .body { margin: 0 0 24px; }
.welcome__copy .body:last-of-type { margin-bottom: 40px; }

.welcome__signoff {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  color: var(--marine);
  margin: 0;
}
.welcome__byline { color: var(--taupe); margin-top: 12px; }

.welcome__figure { margin: 0; }
.welcome__figure figcaption { margin-top: 14px; }

/* --------------------------------------------------------------------------
   Facilities
   -------------------------------------------------------------------------- */

.facilities {
  border-top: 1px solid var(--stone);
  padding-block: 130px 150px;
}
.facilities__inner {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 100px;
  align-items: start;
}

.facilities__rail { position: sticky; top: 150px; }
.facilities__rail .h2 { margin: 0 0 40px; }
.facilities__rail em { font-style: italic; }

.facilities__jump { display: block; }
.facilities__jump button {
  display: flex;
  align-items: baseline;
  gap: 20px;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  border-top: 1px solid var(--stone);
  padding: 16px 0;
  cursor: pointer;
  opacity: .38;
  transition: opacity .4s ease;
}
.facilities__jump button:last-child { border-bottom: 1px solid var(--stone); }
.facilities__jump button.is-active,
.facilities__jump button:hover { opacity: 1; }

.facilities__n {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .16em;
  color: var(--coral);
}
.facilities__name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  color: var(--marine);
}

.facilities__list { display: flex; flex-direction: column; gap: 120px; }
.facility__head { display: flex; align-items: baseline; gap: 22px; margin-top: 28px; }
.facility__head .h3 { margin: 0; }
.facility__body { max-width: 580px; margin-top: 16px; }
.facility__link { margin-top: 26px; }

/* --------------------------------------------------------------------------
   Promo tiles
   -------------------------------------------------------------------------- */

.tiles { padding-block: 120px 140px; }
.tiles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

.tile { display: block; color: inherit; }
.tile__label { color: var(--coral); margin-top: 24px; }
.tile__blurb { font-size: 17px; line-height: 1.75; color: var(--slate); margin-top: 8px; }
.tile:hover .tile__blurb { color: var(--marine); }

/* --------------------------------------------------------------------------
   Closing
   -------------------------------------------------------------------------- */

.closing {
  position: relative;
  height: 620px;
  background: var(--marine-soft);
  overflow: hidden;
  display: flex;
  align-items: center;
}
.closing__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 78%;
}
.closing__scrim { position: absolute; inset: 0; background: rgba(18, 36, 46, .48); }
.closing__copy { position: relative; width: 100%; }
.closing__copy .h1 { color: var(--on-marine); max-width: 640px; margin: 0 0 20px; }
.closing__lede {
  font-size: 17px; line-height: 1.75;
  color: rgba(247, 243, 236, .92);
  max-width: 520px;
  margin: 0 0 40px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

/* Tablet / narrow desktop -------------------------------------------------- */
@media (max-width: 1180px) {
  .welcome { grid-template-columns: 1fr 46vw; gap: 56px; }
  .facilities__inner { grid-template-columns: 320px 1fr; gap: 64px; }
  .frame--tall { height: 60vw; max-height: 720px; }
  .frame--wide { height: 46vw; max-height: 600px; }
  .frame--tile { height: 34vw; max-height: 500px; }
  .hero__copy { left: 56px; right: 56px; }
}

/* The canvas's breakpoint -------------------------------------------------- */
@media (max-width: 920px) {

  /* Hero ---------------------------------------------------------------- */
  /*
   * The slideshow wrapper comes into the flow so the hero has a height again
   * (absolutely positioned slides give it none). The frames keep crossfading
   * inside it; the slow zoom is dropped on small screens.
   */
  .hero { display: grid; grid-template-columns: 1fr; height: auto; min-height: 0; max-height: none; }
  .hero__media, .hero__scrim, .hero__copy { grid-row: 1; grid-column: 1; }
  .hero__media { position: relative; height: auto; min-height: 78vh; animation: none; }
  .hero__scrim { position: relative; inset: auto; height: auto; }
  .hero__copy {
    position: relative;
    left: auto; right: auto; bottom: auto;
    max-width: none;
    align-self: end;
    margin: 0;
    padding: 140px var(--gutter) 44px;
  }
  .hero__lede { max-width: none; margin-bottom: 30px; }

  /* Tide strip becomes a static two-up block under the hero -------------- */
  .tide-strip { grid-row: 2; grid-column: 1; position: relative; background: var(--marine); backdrop-filter: none; }
  .tide-strip__inner {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 18px;
    column-gap: 18px;
    padding: 26px var(--gutter);
    margin-top: 0;
  }
  .tide-strip__cell,
  .tide-strip__cell:first-child { border-left: 0; padding: 0; }

  /* Welcome -------------------------------------------------------------- */
  .welcome { grid-template-columns: 1fr; gap: 40px; padding-block: 64px 72px; }
  .welcome__copy { max-width: none; }

  /* Facilities ----------------------------------------------------------- */
  .facilities { padding-block: 64px 72px; }
  .facilities__inner { grid-template-columns: 1fr; gap: 40px; }
  .facilities__rail { position: static; top: auto; }

  /*
   * The jump list is a scroll-spy for a sticky rail. With the rail static it
   * has nothing to track, and every item it links to is a few swipes away —
   * so it comes out on small screens rather than sitting there inert.
   */
  .facilities__jump { display: none; }

  .facilities__list { gap: 64px; }
  .facility__body { max-width: none; }

  /* Tiles ---------------------------------------------------------------- */
  .tiles { padding-block: 64px 72px; }
  .tiles__grid { grid-template-columns: 1fr; gap: 44px; }
  .frame--tile { height: 62vw; max-height: 420px; }

  /* Closing -------------------------------------------------------------- */
  .closing { height: auto; min-height: 460px; padding-block: 76px; }
  .closing__lede { max-width: none; }
}

/* Phones ------------------------------------------------------------------ */
@media (max-width: 560px) {
  .hero__media { min-height: 68vh; }
  .hero__copy { padding-top: 110px; }
  .frame--tall { height: 88vw; }
  .frame--wide { height: 74vw; }
  .frame--tile { height: 74vw; }
  .facility__head { gap: 14px; }
  .facilities__name { font-size: 20px; }
  .tide-strip__value { font-size: 20px; }
}
