/* SeaHome II design system: components
   Version 1.0, 2026-11-26. Only what the home page uses, with the states it has.
   Tones: a component on data-tone="night" (the hero, the closing band) takes the paper
   color for text and teak for focus. */

/* ==== Button ====
   Use when: the one action of a band, "Ask about a week". Not when: moving between
   pages inside a band (use .link). Variants: solid (default), line (outlined on night).
   States: rest, hover and focus invert to outline; at 600 and down it fills the width. */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 220px; min-height: 52px; padding: 13px var(--s-5);
  border: 1px solid transparent; border-radius: var(--radius);
  background: var(--text); color: var(--surface);
  font: var(--w-medium) var(--t-note)/1.3 var(--sans);
  letter-spacing: var(--track-button);
  text-align: center; cursor: pointer;
}
.button:hover, .button:focus-visible {
  background: var(--surface); color: var(--text); border-color: var(--text);
  transition: background-color var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
[data-tone=night] .button { background: var(--text-on-night); color: var(--text); }
[data-tone=night] .button:hover, [data-tone=night] .button:focus-visible {
  background: var(--text); color: var(--text-on-night); border-color: var(--text-on-night);
}
.button[data-variant=line] { background: transparent; color: var(--text-on-night); border-color: var(--text-on-night); }
.button[data-variant=line]:hover, .button[data-variant=line]:focus-visible { background: var(--text-on-night); color: var(--text); }
@media (width <= 600px) {
  .button { width: 100%; min-width: 0; min-height: 48px; }
}

/* ==== Link with drawn underline ====
   Use when: a standalone link under a list or a quote ("More are open into July").
   Not when: a link inside running text (base.css underlines those). The teak line
   draws in from the left on hover and focus. */
.link {
  display: inline-block; min-width: var(--target); padding: var(--s-3) 0;
  font: var(--w-medium) var(--t-small)/20px var(--sans); letter-spacing: .02em;
}
.underline { position: relative; }
.underline::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1px;
  background: var(--accent); transform-origin: 0;
}
@media (prefers-reduced-motion: no-preference) {
  a:hover .underline::after, a:focus-visible .underline::after { animation: draw var(--t-bar) ease-out; }
}

/* ==== Wordmark ====
   Use when: the header and the footer, always the emblem with the word, in currentColor.
   Not when: anywhere a photograph sits behind it without the night tone. Never recolor
   it to teak, never stretch it, never set the name in a font instead of the files. */
.mark { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; color: inherit; }
.mark__emblem, .mark__word {
  display: block; flex: none; background: currentColor;
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
}
.mark__emblem {
  -webkit-mask-image: url("/assets/brand/seahome-ii-emblem.png"); mask-image: url("/assets/brand/seahome-ii-emblem.png");
  aspect-ratio: 240/240; height: 60px;
}
.mark__word {
  -webkit-mask-image: url("/assets/brand/seahome-ii-word.png"); mask-image: url("/assets/brand/seahome-ii-word.png");
  aspect-ratio: 317/46; height: 26px;
}
@media (width <= 600px) {
  .mark { gap: 8px; }
  .mark__emblem { height: 40px; }
  .mark__word { height: 18px; }
}

/* ==== Top bar ====
   Use when: every page. One primary action, "Ask about a week". Links show from 1181 up;
   below that a disclosure menu (details/summary, no role=menu). Over the hero it is
   clear with paper text (data-over); once the page moves it turns paper (data-pin). */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: var(--s-5);
  height: var(--bar); padding: 0 var(--m);
  background: var(--surface); color: var(--text);
  border-bottom: var(--rule) solid var(--line);
}
.bar[data-over]:not([data-pin]) { background: transparent; color: var(--text-on-night); border-bottom-color: transparent; }
.bar[data-over]:not([data-pin]) :focus-visible { outline-color: var(--focus-on-night); }
.bar a, .bar summary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--target); min-width: var(--target); padding: 0 var(--s-3);
  font: var(--w-medium) var(--t-ui)/1 var(--sans); letter-spacing: var(--track-ui);
  cursor: pointer;
}
.bar .mark { margin-right: auto; padding: 0; }
.bar__nav ul { display: flex; align-items: center; gap: 2px; }
.bar__nav a, .menu__list a { text-decoration: none; }
.bar__nav a:hover { text-decoration: underline 1px; text-underline-offset: 7px; }
.bar__end { display: flex; align-items: center; gap: var(--s-3); }
.bar__ask a {
  min-height: 46px; padding: 0 22px;
  border: 1px solid var(--text); border-radius: var(--radius);
  background: var(--text); color: var(--surface);
}
.bar__ask a:hover, .bar__ask a:focus-visible {
  background: transparent; color: var(--text);
  transition: background-color var(--t-fast), color var(--t-fast);
}
.bar[data-over]:not([data-pin]) .bar__ask a { border-color: var(--text-on-night); background: var(--text-on-night); color: var(--text); }
.bar[data-over]:not([data-pin]) .bar__ask a:hover,
.bar[data-over]:not([data-pin]) .bar__ask a:focus-visible { background: transparent; color: var(--text-on-night); }

/* the menu: a details disclosure, night panel, Escape closes it (page script) */
.menu { display: none; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.bar .menu summary { width: var(--target); padding: 0; }
.menu__icon { position: relative; display: block; width: 20px; height: 14px; border-top: 1.5px solid; border-bottom: 1.5px solid; }
.menu__icon::before { content: ""; position: absolute; top: 50%; left: 0; right: 0; margin-top: -.75px; border-top: 1.5px solid; }
.menu:not([open]) .menu__list { display: none; }
.menu__list {
  position: absolute; top: 100%; right: var(--m);
  min-width: 240px; padding: var(--s-3) var(--s-3) var(--s-4);
  background: var(--surface-night); color: var(--text-on-night);
}
.bar .menu__list a { justify-content: flex-start; width: 100%; }
.menu__list :focus-visible { outline-color: var(--focus-on-night); }
html.motion .bar[data-over] { animation: rise var(--t-reveal) var(--ease) .9s backwards; }

@media (width <= 1180px) {
  .bar__nav { display: none; }
  .menu { display: block; }
}
@media (width <= 900px) {
  .bar { padding: 0 var(--s-3); }
}
@media (width <= 600px) {
  .bar { gap: var(--s-2); }
  .bar .mark { flex: none; }
  .bar .mark__emblem { height: 36px; }
  .bar .mark__word { height: 16px; }
  .bar__end { gap: 2px; }
  .bar__ask a { padding: 0 12px; letter-spacing: 0; white-space: nowrap; }
}
@media (width <= 379px) {
  .bar .mark__emblem { height: 28px; }
  .bar .mark__word { height: 13px; }
}

/* ==== Hero (opening band) ====
   Use when: the home's first band only: a full-window photograph graded to dusk, the
   headline in light serif with one word in italic, the crew's names, one line button,
   and a base line of two doors (rates, open weeks). Not when: an inner page.
   The photograph stays put while the page slides over it. */
.hero {
  position: relative; z-index: 0; overflow: hidden;
  display: flex; flex-direction: column;
  height: 100svh; min-height: 640px;
  padding: var(--bar) var(--m) 20px;
  background: var(--surface-night); color: var(--text-on-night);
  --scrim-o: 0;
}
.hero__media { position: absolute; inset: 0; overflow: hidden; }
.hero__img {
  position: absolute; inset: 0; width: 100%; max-width: none; height: 100%;
  object-fit: cover; object-position: var(--focus-wide, 50% 42%);
}
.hero__scrim { position: absolute; inset: 0; background: var(--surface-night); opacity: var(--scrim-o); }
.hero__lead {
  position: relative; z-index: 2; flex: 1;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  padding-bottom: 64px; text-align: center;
}
.hero__title { font: var(--w-light) var(--t-hero)/var(--lh-tight) var(--serif); letter-spacing: -.005em; }
.hero__mask { display: block; overflow: hidden; margin: -.04em -.12em -.16em; padding: .04em .12em .16em; }
.hero__line { display: block; }
.hero__sub { margin-top: 30px; font: var(--w-regular) var(--t-body)/1.5 var(--sans); }
.hero__names {
  display: inline-block; padding: 10px 0; font-weight: var(--w-medium);
  text-decoration: underline 1px var(--accent); text-underline-offset: 5px;
}
.hero__place { display: block; margin-top: 2px; }
.hero__lead .button { margin-top: 34px; }
.hero__base {
  position: relative; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-2) var(--s-7);
  border-top: var(--rule) solid var(--line-on-night);
}
.hero__door { display: block; padding: 13px 0 10px; font: var(--w-medium) var(--t-note)/20px var(--sans); letter-spacing: .02em; }
.hero__door .underline { display: inline-block; }
.hero__door .underline::after { transform: scaleX(0); }
.hero__door:hover .underline::after, .hero__door:focus-visible .underline::after { transform: scaleX(1); }
.hero__door[data-side=weeks] { text-align: right; }
.hero__cue {
  position: absolute; bottom: calc(100% + 18px); left: 50%;
  width: 1px; height: 60px; margin-left: -.5px; background: var(--line-on-night);
}
.hero__cue::after { content: ""; position: absolute; inset: 0; background: var(--text-on-night); }
.hero :focus-visible { outline-color: var(--focus-on-night); }

/* the dusk grade: the site darkens the aerial with an SVG filter that sits in the page */
img[data-grade=dusk] { filter: saturate(1.18) url(#dusk); }

@media (prefers-reduced-motion: no-preference) {
  .hero__door .underline::after { transition: transform var(--t-bar) ease-out; }
  .hero__door:hover .underline::after, .hero__door:focus-visible .underline::after { animation: none; }
}
@media (height >= 640px) and (prefers-reduced-motion: no-preference) {
  .hero { position: sticky; top: 0; }
}
html.motion .hero__img { will-change: transform, opacity; animation: fade 1.8s var(--ease) backwards, settle-in 2.6s var(--ease) backwards; }
html.motion .hero__line { animation: line .9s var(--ease-line) .5s backwards; }
html.motion .hero__mask:nth-child(2) .hero__line { animation-delay: .62s; }
html.motion .hero__names { animation: rise var(--t-reveal) var(--ease) .98s backwards; }
html.motion .hero__place { animation: rise var(--t-reveal) var(--ease) 1.06s backwards; }
html.motion .hero__lead .button { animation: rise var(--t-reveal) var(--ease) 1.14s backwards; }
html.motion .hero__base { animation: rise var(--t-reveal) var(--ease) 1.22s backwards; }
html.motion .hero__cue::after { animation: 2.8s cubic-bezier(.6, 0, .4, 1) 2s infinite backwards cue; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) and (pointer: fine) and (width >= 901px) and (height >= 640px) {
    .hero__media { bottom: -7%; animation: linear both drift-up scroll(root); animation-range: 0 100vh; }
    .hero__scrim { animation: linear both dim scroll(root); animation-range: 0 100vh; }
  }
}
@media (width <= 1100px) {
  .hero__ln { display: block; }
  .hero__ln + .hero__ln { margin-top: 2px; }
}
@media (width <= 900px) {
  .hero__img { object-position: var(--focus-tall, var(--focus-wide, 50% 42%)); }
}
@media (width <= 600px) {
  .hero { padding: var(--bar) var(--m) 12px; }
  .hero__lead { text-align: left; align-items: flex-start; padding-bottom: 60px; }
  .hero__title { line-height: 1.08; }
  .hero__sub { margin-top: 18px; font-size: var(--t-small); }
  .hero__lead .button { margin-top: 26px; }
  .hero__base { display: block; }
  .hero__door { padding: 12px 0; }
  .hero__door[data-side=weeks] { text-align: left; border-top: var(--rule) solid var(--line-on-night); }
}

/* ==== Section (paper band) ====
   Use when: every band after the hero: paper, 50 px top and bottom (36 on a phone), the
   page margin at the sides, contents in .wrap. --bleed lets a photograph run off the
   window edge on one side. Not when: the closing photograph band (use .close). */
.sec {
  position: relative; z-index: 2; overflow-x: clip;
  padding: var(--sec) var(--m);
  background: var(--surface); color: var(--text);
  --bleed: calc(var(--m) + max(0px, (100vw - 1440px) / 2));
}

/* ==== Photograph ====
   Use when: any picture in a paper band. A hull-gray frame shows while it loads; data-crop
   fixes the ratio (--ratio) and the focal point (--focus). Grades: br (brochure shots,
   a touch of sepia), ph (phone shots, softened). Caption in quiet sans under it.
   It opens with a top-down wipe as it enters (the signature move), and not at all under
   reduced motion. Not when: the hero or the closing band (they own their photographs). */
.photo { margin: 0; }
.photo__frame { position: relative; overflow: hidden; background: var(--surface-photo); }
.photo img { width: 100%; height: auto; }
.photo[data-crop] .photo__frame { aspect-ratio: var(--ratio); }
.photo[data-crop] img {
  position: absolute; inset: 0; max-width: none; height: 100%;
  object-fit: cover; object-position: var(--focus, 50% 50%);
}
.photo__caption { margin-top: 10px; font: var(--w-regular) var(--t-note)/1.45 var(--sans); color: var(--text-quiet); }
img[data-grade=br] { filter: sepia(.16) saturate(.94) contrast(1.02); }
img[data-grade=ph] { filter: saturate(.86) contrast(.95) sepia(.07); }
html.motion [data-photo][data-in] .photo__frame { animation: wipe var(--t-wipe) var(--ease-wipe) var(--d, 0s) backwards; }
html.motion [data-photo][data-in] .photo__frame img { animation: settle-in 1.5s var(--ease) var(--d, 0s) backwards; }
@media (width <= 900px) {
  html.motion [data-photo][data-in] .photo__frame { animation: fade .3s var(--ease) var(--d, 0s) backwards; }
  html.motion [data-photo][data-in] .photo__frame img { animation: none; }
}

/* ==== Guest quote ====
   Use when: a guest's own words, quoted exactly, with the month and the kind of trip.
   Variants: plain; data-rule (a teak rule above); data-size=large (closing band).
   Not when: anything the crew or the owner says (that is not a guest quote). */
.guest { margin: 0; }
.guest blockquote p { font: var(--w-regular) var(--t-quote)/1.3 var(--serif); text-wrap: balance; }
.guest figcaption { margin-top: var(--s-2); font: var(--w-regular) var(--t-note)/1.45 var(--sans); color: var(--text-label); }
.guest[data-rule] { padding-top: var(--s-4); border-top: var(--rule) solid var(--accent); }
.guest[data-size=large] blockquote p { font-size: var(--t-title); line-height: 1.25; }
[data-tone=night] .guest figcaption { color: var(--text-on-night); }

/* ==== Ruled list: open dates ====
   Use when: a short list of dates or facts set large in the light serif, ruled above and
   below. Not when: more than about six items (link to the calendar instead). */
.dates { position: relative; padding: 5px 0 7px; }
.dates::before, .dates::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line); transform-origin: 0;
}
.dates::before { top: 0; }
.dates::after { bottom: 0; }
.dates li { font: var(--w-light) var(--t-display)/1.2 var(--serif); }
@media (width <= 600px) {
  .dates li { line-height: 1.3; }
}

/* ==== Ruled list: crew ====
   Use when: the people aboard, name in the serif and their qualifications under it,
   a hairline between each. Not when: a long team (this is for three to five people). */
.trio li { position: relative; padding: 12px 0 14px; }
.trio li::before, .trio li:last-child::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--line); transform-origin: 0;
}
.trio li::before { top: 0; }
.trio li:last-child::after { bottom: 0; }
.trio__name { font: var(--w-light) var(--t-title)/1.15 var(--serif); }
.trio__qual { margin-top: var(--s-1); font: var(--w-regular) var(--t-small)/1.5 var(--sans); color: var(--text-quiet); }

/* ==== Band: open weeks ====
   Use when: the band right after the hero: dates on the left five columns, a photograph
   bleeding off the right edge. Stacks at 900 and down. */
.weeks { padding-top: var(--sec-open); }
.weeks__text { grid-column: 1 / 6; }
.weeks__text > .label { margin-bottom: 18px; }
.weeks__text > .link { margin-top: var(--s-2); }
.weeks__text > .guest { margin-top: 26px; }
.weeks > .wrap > .photo { grid-column: 6 / 13; align-self: start; margin-right: calc(-1 * var(--bleed)); }
@media (width <= 900px) {
  .weeks__text, .weeks > .wrap > .photo { grid-area: auto / 1 / auto / 13; }
  .weeks > .wrap > .photo { margin: 40px 0 0; }
}

/* ==== Band: people ====
   Use when: the crew: a photograph bleeding off the left edge over seven columns, the
   ruled crew list and a ruled guest quote in the right four. Stacks at 900 and down. */
.people .grid { grid-template-rows: auto 1fr; }
.people__head { grid-area: 1 / 9 / auto / 13; }
.people__head .trio { margin-top: 14px; }
.people .grid > .photo { grid-area: 1 / 1 / span 2 / 8; align-self: start; margin-left: calc(-1 * var(--bleed)); }
.people__side { grid-area: 2 / 9 / auto / 13; align-self: end; padding-top: var(--s-5); }
.people__side .link { margin-top: 6px; }
@media (width <= 900px) {
  .people .grid > .photo, .people__head, .people__side { grid-area: auto / 1 / auto / 13; }
  .people .grid > .photo { margin: 28px 0 0; }
  .people__side { max-width: 600px; padding-top: 28px; }
}

/* ==== Band: a day aboard ====
   Use when: three photographs of a day with captions and one quote between them, bottoms
   aligned. Two columns at 900 and down, one at 600 and down. */
.day__three { margin-top: 28px; align-items: end; }
.day__three > .photo:first-child { grid-column: 1 / 5; }
.day__mid {
  grid-column: 5 / 10; align-self: stretch;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0 var(--s-5);
}
.day__mid .guest blockquote p { max-width: 460px; }
.day__mid .photo { margin-top: var(--s-5); }
.day__three > .photo:last-child { grid-column: 10 / 13; }
@media (hover: hover) and (pointer: fine) {
  html.motion .day__three .photo__frame img { transition: transform .8s ease-out; }
  html.motion .day__three .photo:hover .photo__frame img { transform: scale(1.03); }
}
@media (width <= 900px) {
  .day__three > .photo:first-child { grid-column: 1 / 7; }
  .day__three > .photo:last-child { grid-column: 7 / 13; align-self: end; }
  .day__mid { grid-area: 2 / 1 / auto / 13; margin-top: 28px; padding: 0; }
}
@media (width <= 600px) {
  .day__three { display: block; margin-top: 20px; }
  .day__mid, .day__three > .photo:last-child { margin-top: 28px; }
}

/* ==== Band: the boat ====
   Use when: one statement in the display serif, short facts under it, the button, and a
   photograph bleeding off the right edge. The first fact can be set in ink (data-tone=ink)
   to carry the price. Stacks at 900 and down. */
.boat__text { grid-column: 1 / 6; align-self: center; padding-right: var(--s-5); }
.boat__line { margin-top: var(--s-4); font: var(--w-light) var(--t-display)/var(--lh-serif) var(--serif); text-wrap: balance; }
.boat__more { max-width: var(--measure); margin-top: 20px; font: var(--w-regular) var(--t-body)/1.55 var(--sans); color: var(--text-quiet); }
.boat__more + .boat__more { margin-top: var(--s-3); }
.boat__more[data-tone=ink] { color: var(--text); }
.boat__text .button { margin-top: var(--s-6); }
.boat .grid > .photo { grid-column: 6 / 13; margin-right: calc(-1 * var(--bleed)); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (width >= 901px) {
    .boat [data-hull] { view-timeline: --hull block; }
    .boat [data-hull] img { transform-origin: 75% 70%; animation: linear both hull --hull; animation-range: entry cover 50%; }
  }
}
@media (width <= 900px) {
  .boat__text, .boat .grid > .photo { grid-area: auto / 1 / auto / 13; }
  .boat__text { padding-right: 0; }
  .boat .grid > .photo { margin: 40px 0 0; }
}

/* ==== Band: closing call ====
   Use when: the last band before the footer: a photograph under a 70% night scrim, the
   large guest quote, the button and one line on what the form asks. Not when: twice on a page. */
.close {
  position: relative; z-index: 2; overflow: hidden;
  display: flex; justify-content: center; align-items: center;
  height: 600px; padding: 0 var(--m);
  background: var(--surface-night); color: var(--text-on-night); text-align: center;
}
.close__photo { position: absolute; inset: 0; max-width: 2048px; margin: 0 auto; overflow: hidden; }
.close__photo img {
  position: absolute; inset: 0; width: 100%; max-width: none; height: 100%;
  object-fit: cover; object-position: 50% 58.6%;
}
.close__scrim { position: absolute; inset: 0; background: var(--scrim); }
.close__body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; max-width: 644px; }
.close .guest blockquote p { font-size: var(--t-title); }
.close .button { margin-top: 56px; }
.close__form { margin-top: var(--s-5); font: var(--w-regular) var(--t-small)/1.5 var(--sans); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (width >= 901px) {
    .close { view-timeline: --close block; }
    .close__photo img { top: -5%; height: 110%; object-position: 50% 60.3%; animation: linear both drift --close; animation-range: cover; }
  }
}
@media (width <= 600px) {
  .close { height: auto; aspect-ratio: 760 / 1000; padding: 0 var(--m); }
  .close__photo img { inset: -18.2% auto auto -84.737%; width: 269.474%; height: auto; object-fit: fill; }
  .close .button { margin-top: 36px; }
  .close__form { margin-top: 18px; }
}

/* ==== Footer ====
   Use when: every page. The wordmark, who and where, the email, and every page in three
   ruled rows (the last row is the legal links). Rows stack into a column on a phone. */
.foot {
  position: relative; z-index: 2;
  padding: 36px var(--m) 28px;
  background: var(--surface); color: var(--text);
  border-top: var(--rule) solid var(--line);
}
.foot__grid {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap);
  max-width: var(--wrap); margin: 0 auto;
}
.foot__who { grid-column: 1 / 4; padding-top: 10px; }
.foot__who p:not(.mark) { margin-top: 10px; font: var(--w-regular) var(--t-note)/1.5 var(--sans); color: var(--text-quiet); text-wrap: balance; }
.foot__who p:not(.mark) + p { margin-top: var(--s-1); color: var(--text-label); }
.foot nav { grid-column: 4 / 13; }
.foot ul { display: flex; flex-wrap: wrap; column-gap: 26px; }
.foot ul + ul { margin-top: var(--s-1); padding-top: var(--s-1); border-top: var(--rule) solid var(--line); }
.foot nav a {
  display: inline-flex; align-items: center; min-height: var(--target); min-width: var(--target);
  font: var(--w-regular) var(--t-note)/1.3 var(--sans); color: var(--text-quiet);
  text-decoration: none;
}
.foot nav a:hover { color: var(--text); }
@media (width <= 900px) {
  .foot__who, .foot nav { grid-area: auto / 1 / auto / 13; }
  .foot nav { margin-top: var(--s-4); }
}
@media (width <= 600px) {
  .foot { padding: 28px var(--m) 24px; }
  .foot ul { flex-direction: column; }
}

/* ==== Page opening ====
   Use when: the top of every page but the home: breadcrumb, title, one lead line, and
   optionally a photograph (bleeds to the right edge) or an aside. The three text pieces
   rise in turn as the page opens. data-fit keeps a tall page's opening short on desktop. */
.opening { position: relative; z-index: 2; overflow-x: clip; background: var(--surface); padding: calc(var(--bar) + 88px) var(--m) var(--s-7); --bleed: calc(var(--m) + max(0px, (100vw - 1440px) / 2)); }
.opening__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); align-items: start; max-width: var(--wrap); margin: 0 auto; }
.opening__text { grid-column: 1 / 9; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-4); padding-bottom: var(--s-2); }
.opening__title { font: var(--w-light) var(--t-display)/var(--lh-serif) var(--serif); text-wrap: balance; max-width: 18ch; margin: 0; }
.opening__lead { max-width: 52ch; color: var(--text-quiet); }
.opening .photo { grid-column: 8 / 13; margin-right: calc(-1 * var(--bleed)); }
.opening:has(.photo) .opening__text, .opening:has(.opening__aside) .opening__text { grid-column: 1 / 7; }
.opening__aside { grid-area: 1 / 8 / auto / 13; align-self: end; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); list-style: none; margin: 0; padding: 0; font: var(--w-regular) var(--t-label)/1.4 var(--sans); color: var(--text-label); }
.crumbs li + li::before { content: "/"; margin-right: var(--s-2); }
.crumbs a { display: inline-block; min-height: var(--target); padding: var(--s-3) var(--s-1); margin: calc(-1 * var(--s-3)) calc(-1 * var(--s-1)); color: inherit; }
.crumbs a:hover { color: var(--text); }
@media (width >= 901px) {
  .opening[data-fit] { padding-top: calc(var(--bar) + 48px); padding-bottom: var(--s-5); }
  .opening[data-fit] .photo { grid-column: 9 / 13; }
  .opening[data-fit] + .sec { padding-top: var(--s-5); }
}
@media (width <= 900px) {
  .opening { padding-top: calc(var(--bar) + 56px); }
  .opening__text, .opening:has(.photo) .opening__text, .opening:has(.opening__aside) .opening__text, .opening .photo, .opening__aside { grid-column: 1 / -1; grid-row: auto; }
  .opening .photo { margin: 40px 0 0; }
  .opening__aside { margin-top: var(--s-6); }
}
@media (width <= 600px) { .opening__title { max-width: none; } }

/* ---- Motion start states, as on the live site: a piece waits unseen until it is
   in view, then plays its entrance. Only under html.motion. ---- */
html.motion [data-reveal]:not([data-in]) { opacity: 0; transform: translateY(14px); }
html.motion [data-rules]:not([data-in])::before, html.motion [data-rules]:not([data-in])::after,
html.motion [data-rules]:not([data-in]) > li::before, html.motion [data-rules]:not([data-in]) > li::after { transform: scaleX(0); }
html.motion [data-photo]:not([data-in]) .photo__frame { clip-path: inset(0 0 100%); }
@media (width <= 900px) { html.motion [data-photo]:not([data-in]) .photo__frame { clip-path: none; opacity: 0; } }
html.motion .hero__mask:nth-child(3) .hero__line { animation-delay: .74s; }
@media (prefers-reduced-motion: no-preference) { summary:hover .underline::after { animation: draw var(--t-bar) ease-out; } }
