/*
  Sera Weddings · Design system v1.0 for seraweddings.com
  Source: Kraken result #3031 (DESIGN.md), accepted by the owner on 17 Nov 2026.
  Loaded after each page's own <style>, so these rules are the last word; the page
  rules they replaced were deleted, not out-specified.
  Order: tokens, base, type, motion, components, page heroes, reduced motion.
  Light only: the system proves no dark theme.
*/

/* ---------- Tokens ---------- */
:root {
  /* identity colours */
  --sand: #EAD7C3;
  --silk: #F8F1EA;
  --brown: #4A3E37;
  --taupe: #6B584E;
  --clay: #B76F5A;
  --hairline: #D9C7B5;
  --dark-sheet: #332A26;
  --stone: #D8C5B3;
  --stone-rule: rgba(216, 197, 179, 0.3);
  --frame-line: rgba(248, 241, 234, 0.7);

  /* roles */
  --surface: var(--sand);
  --surface-document: var(--silk);
  --on-surface: var(--brown);
  --on-surface-variant: var(--taupe);
  --outline: var(--taupe);
  --outline-strong: var(--brown);
  --outline-variant: var(--hairline);
  --focus-ring: var(--brown);
  --action-underline: var(--brown);
  --next-step: var(--clay);

  /* the pages' own colour names, pointed at the tokens */
  --bg: var(--sand);
  --text: var(--brown);
  --accent: var(--taupe);
  --line: var(--hairline);
  --strong-line: var(--taupe);

  /* type */
  --font-serif: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* motion: draw for arrivals and underlines, bend for changes of state */
  --ease-draw: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bend: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-out: cubic-bezier(0, 0, 0.58, 1);

  /* layout */
  --header-height: 88px;
  --margin: 72px;
  --gutter: 24px;
  --section: 128px;

  /* the shared page spacing (sera_spacing.css), on the 8 px scale */
  --rhythm-gutter: var(--margin);
  --rhythm-cta-gutter: var(--margin);
  --rhythm-hero-top: var(--section);
  --rhythm-hero-bottom: 96px;
  --rhythm-standard-y: var(--section);
  --rhythm-compact-y: 96px;
  --rhythm-dense-y: 64px;
  --rhythm-final-top: var(--section);
  --rhythm-final-bottom: var(--section);
  --rhythm-footer-y: 48px;
  --rhythm-rule-top: 96px;
  --rhythm-rule-bottom: 64px;
  --rhythm-faq-item-y: 48px;
  --rhythm-panel-y: var(--section);
}

@media (max-width: 1023px) {
  :root {
    --header-height: 64px;
    --margin: 20px;
    --section: 64px;
    --rhythm-hero-bottom: 64px;
    --rhythm-compact-y: 48px;
    --rhythm-dense-y: 48px;
    --rhythm-rule-top: 64px;
    --rhythm-rule-bottom: 48px;
    --rhythm-faq-item-y: 32px;
  }
}

/* ---------- Base ---------- */
html {
  scroll-padding-top: calc(var(--header-height) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: clip;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--brown);
  color: var(--silk);
}

/* Focus ring: 2 px, 2 px off, brown on sand and silk, silk on the dark sheet. Never removed, never clay. */
:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.ds-dark {
  --focus-ring: var(--silk);
  --action-underline: var(--clay);
  --link: var(--stone);
}

.is-silk,
.ds-silk,
.ds-action--on-silk {
  --action-underline: var(--clay);
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 100;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 16px;
  background: var(--silk);
  border: 1px solid var(--taupe);
  color: var(--brown);
  font: 500 14px/1.4 var(--font-sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus-visible {
  transform: none;
}

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

/* Icons: Lucide 1.73.0, 1.5 px stroke, round caps and joins. */
.ds-icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.ds-icon--20 {
  width: 20px;
  height: 20px;
}

/* ---------- Type ---------- */
.t-display,
.t-headline-lg,
.t-headline-md,
.t-headline-sm,
.t-question {
  color: var(--on-surface);
  font-family: var(--font-serif);
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: none;
  font-variation-settings: normal;
}

.t-display {
  font-size: 96px;
  line-height: 1.04;
}

.t-headline-lg {
  font-size: 64px;
  line-height: 1.04;
}

.t-headline-md {
  font-size: 44px;
  line-height: 1.1;
}

.t-headline-sm {
  font-size: 32px;
  line-height: 1.1;
}

.t-question {
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.1;
}

/* Everything practical is left-aligned; only the title card is centred.
   (Text blocks sit at the left of their column instead of being centred in it.) */
.t-display,
.t-headline-lg,
.t-headline-md,
.t-headline-sm,
.t-question,
.t-lead,
.t-body-lg,
.t-body,
.t-data,
.t-label {
  margin-right: 0;
  margin-left: 0;
  text-align: left;
}

/* An italic phrase inside a headline keeps the headline's size, at weight 400. */
:is(.t-display, .t-headline-lg, .t-headline-md, .t-headline-sm) :is(em, i, .is-italic) {
  font-size: inherit;
  font-style: italic;
  font-weight: 400;
}

.t-lead,
.t-body-lg,
.t-body,
.t-data {
  color: var(--on-surface);
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
}

.t-lead {
  font-size: 24px;
  line-height: 1.5;
  font-variation-settings: "opsz" 24;
}

.t-body-lg {
  font-size: 20px;
  line-height: 1.5;
  font-variation-settings: "opsz" 20;
}

.t-body,
.t-data {
  font-size: 17px;
  line-height: 1.45;
  font-variation-settings: "opsz" 14;
}

.t-data {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.t-label,
.t-nav {
  font-family: var(--font-sans);
  font-style: normal;
  font-weight: 500;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
}

.t-label {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.22em;
}

.t-nav {
  color: var(--on-surface);
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.18em;
}

/* Secondary text is taupe; dates and counts take tabular figures. */
.t-secondary {
  color: var(--on-surface-variant);
}

time,
.t-tnum {
  font-variant-numeric: tabular-nums;
}

/* Phones: display and headline-lg take headline-md's 44 px; headline-md takes 32 px. */
@media (max-width: 1023px) {
  .t-display,
  .t-headline-lg {
    font-size: 44px;
    line-height: 1.1;
  }

  .t-headline-md {
    font-size: 32px;
  }
}

/* ---------- Links ---------- */
/* Brown words with a 1 px brown underline; hover and focus draw a 2 px underline from the left in 300 ms. */
a {
  color: inherit;
  text-decoration: none;
}

.ds-link,
.body-link {
  color: var(--link, var(--brown));
  opacity: 1;
  border: 0;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: 0 100%, 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px, 0 2px;
  padding-bottom: 1px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 300ms var(--ease-draw);
}

/* (Each "gradient" here is one flat colour: a 1 px and a 2 px line, so the 2 px one can draw from the left.) */
.ds-link:hover,
.ds-link:focus-visible,
.body-link:hover,
.body-link:focus-visible {
  background-size: 100% 1px, 100% 2px;
}

/* A link to where you are now (a page's own contents list) keeps its 2 px line. */
.ds-link[aria-current="true"] {
  background-size: 100% 1px, 100% 2px;
}

/* Standalone links are at least 24 px tall. */
.ds-link--standalone {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
}

/* ---------- Text action: the next step ---------- */
/* Question type on pages, body-md in documents. Brown words, 2 px underline 6 px below:
   clay on silk and the dark sheet, brown on sand. At least 48 px tall. No filled buttons. */
.ds-action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  color: var(--brown);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-decoration: none;
  text-transform: none;
}

.ds-action__words {
  padding-bottom: 6px;
  background-image: linear-gradient(var(--action-underline), var(--action-underline));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.ds-action:hover .ds-action__words {
  animation: ds-underline-draw 300ms var(--ease-draw);
}

.ds-action:active .ds-action__words {
  animation: none;
}

.ds-action[aria-busy="true"] {
  cursor: progress;
}

.ds-action__busy {
  color: var(--taupe);
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
}

.ds-action--document {
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  line-height: 1.45;
}

.ds-dark .ds-action {
  color: var(--silk);
}

@keyframes ds-underline-draw {
  from {
    background-size: 0 2px;
  }

  to {
    background-size: 100% 2px;
  }
}

/* ---------- Motion: only section headlines arrive (18 Nov) ----------
   A headline rises 24 px over 600 ms the moment it enters the screen; one it was scrolled or jumped past is
   simply there. Everything else (blocks, tables, photos, labels, paragraphs) never waits: the pages' older
   reveal classes are neutral. The system script marks headlines .is-arrived. */
.ds-arrive,
.text-load-reveal,
.fade-up,
.animate-on-scroll {
  opacity: 1;
  transform: none;
  transition: none;
  will-change: auto;
}

.ds-js .ds-opener__title,
.ds-js .hero-title-layer .display-title {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 600ms var(--ease-draw),
    transform 600ms var(--ease-draw);
}

.ds-js .ds-opener__title.is-arrived,
.ds-js .hero-title-layer .display-title.is-arrived {
  opacity: 1;
  transform: none;
}

.ds-js .is-arrived.is-arrived--at-once {
  transition: none;
}

/* ---------- Header ---------- */
.ds-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--margin);
  background: var(--surface);
  color: var(--on-surface);
}

.ds-wordmark {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--brown);
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.ds-nav ul {
  display: flex;
  align-items: center;
  gap: 46px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-nav__inquire {
  padding-left: 46px;
  border-left: 1px solid var(--taupe);
}

.ds-nav a,
.ds-header__link {
  position: relative;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--brown);
  text-decoration: none;
  white-space: nowrap;
}

/* The current page: a 1 px brown underline 6 px below. Hover and focus draw 2 px from the left. */
.ds-nav a::before,
.ds-nav a::after,
.ds-header__link::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
  background: var(--brown);
  pointer-events: none;
}

.ds-nav a::before {
  top: calc(50% + 0.7em + 6px);
  height: 1px;
  opacity: 0;
}

.ds-nav a[aria-current="page"]::before {
  opacity: 1;
}

.ds-nav a::after,
.ds-header__link::after {
  top: calc(50% + 0.7em + 6px);
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms var(--ease-draw);
}

.ds-nav a:hover::after,
.ds-nav a:focus-visible::after,
.ds-header__link:hover::after,
.ds-header__link:focus-visible::after {
  transform: scaleX(1);
}

.ds-menu-button {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-right: -12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: var(--surface);
  color: var(--brown);
  cursor: pointer;
}

.ds-menu-button .ds-icon--close,
.ds-menu-button[aria-expanded="true"] .ds-icon--menu {
  display: none;
}

.ds-menu-button[aria-expanded="true"] .ds-icon--close {
  display: inline-block;
}

.ds-menu {
  display: none;
}

.ds-header--landing .ds-header__link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--brown);
  text-decoration: none;
}

@media (max-width: 1023px) {
  .ds-nav {
    display: none;
  }

  .ds-menu-button {
    display: inline-flex;
  }

  .ds-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 59;
    display: block;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px var(--margin) 64px;
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    clip-path: inset(0 0 0 0);
  }

  .ds-menu[hidden] {
    display: none;
  }

  /* The menu opens with the 350 ms draw. */
  .ds-menu.is-opening {
    animation: ds-menu-draw 350ms var(--ease-draw);
  }

  .ds-menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .ds-menu a,
  .ds-menu .ds-menu__group {
    display: flex;
    min-height: 48px;
    align-items: center;
    color: var(--brown);
    text-decoration: none;
  }

  .ds-menu > ul > li > a,
  .ds-menu .ds-menu__group {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    line-height: 1.1;
  }

  .ds-menu > ul > li + li {
    margin-top: 8px;
  }

  .ds-menu__sub {
    margin: 0 0 8px !important;
    padding-left: 16px !important;
    border-left: 1px solid var(--hairline);
  }

  .ds-menu__sub a {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.45;
    font-variation-settings: "opsz" 14;
  }

  .ds-menu a[aria-current="page"] {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
  }

  body.ds-menu-open {
    overflow: hidden;
  }
}

@keyframes ds-menu-draw {
  from {
    clip-path: inset(0 0 100% 0);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

/* ---------- Fields ---------- */
/* Label-md label above in taupe, 8 px gap; silk field, 1 px taupe border, square, 48 px or more,
   16 px padding, body-md value; help below. Error: 2 px brown border, circle-alert and words above. */
.ds-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.ds-field > label,
.ds-field__label {
  color: var(--taupe);
  font-family: var(--font-sans);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.4;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
}

/* (:where keeps this at one class, so the select, textarea and error rules below refine it) */
.ds-field :where(input:not([type="radio"], [type="checkbox"], [type="hidden"]), select, textarea) {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--taupe);
  border-radius: 0;
  background: var(--silk);
  box-shadow: none;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 17px;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
  text-transform: none;
  font-variation-settings: "opsz" 14;
  -webkit-appearance: none;
  appearance: none;
}

.ds-field textarea {
  min-height: 144px;
  resize: vertical;
}

.ds-field select {
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%234A3E37' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  cursor: pointer;
}

.ds-field__help {
  color: var(--taupe);
  font-size: 17px;
  line-height: 1.45;
}

.ds-field__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  color: var(--brown);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
}

.ds-field__error[hidden] {
  display: none;
}

.ds-field__error .ds-icon {
  margin-top: 2px;
}

.ds-field :is(input, select, textarea)[aria-invalid="true"] {
  padding: 15px;
  border: 2px solid var(--brown);
}

.ds-field select[aria-invalid="true"] {
  padding-right: 47px;
}

/* Radio rows inside a form: native control, brown, each row at least 48 px. */
.ds-radio {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 16px;
  color: var(--brown);
  font-size: 17px;
  line-height: 1.45;
  cursor: pointer;
}

.ds-radio input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brown);
}

/* ---------- Choice card (the inquiry routes) ---------- */
.ds-choice {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--taupe);
  border-radius: 0;
  background: var(--silk);
  box-shadow: none;
  color: var(--brown);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 32px;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: left;
  text-transform: none;
  transition: none;
}

.ds-choice > span {
  font: inherit;
  color: inherit;
}

.ds-choice[aria-pressed="true"] {
  padding: 31px;
  border: 2px solid var(--brown);
}

.ds-choice .indicator {
  flex: none;
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 9999px;
  background: var(--brown);
  visibility: hidden;
}

.ds-choice[aria-pressed="true"] .indicator {
  visibility: visible;
}

@media (max-width: 1023px) {
  .ds-choice {
    padding: 24px;
  }

  .ds-choice[aria-pressed="true"] {
    padding: 23px;
  }
}

/* ---------- Status lines and detail lists (the guest-stay views) ---------- */
.ds-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.ds-status::before {
  flex: none;
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  content: "";
  border-radius: 9999px;
}

.ds-status--confirmed::before {
  background: var(--brown);
}

.ds-status--waiting {
  font-style: italic;
}

.ds-status--waiting::before {
  border: 1.6px solid var(--brown);
}

.ds-status--next::before {
  width: 11px;
  height: 11px;
  margin: 0 1px 0 2px;
  border-radius: 0;
  background: var(--clay);
  transform: rotate(45deg);
}

.ds-status--next > span {
  padding-bottom: 2px;
  background-image: linear-gradient(var(--clay), var(--clay));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 2px;
}

/* The guest-stay working views are documents Sera sends: silk. */
.visibility-manifest,
.flow-manifest,
.visibility-proof {
  background: var(--silk);
}

/* ---------- Framed still: a 1 px silk line at 70%, 1.3% in ---------- */
.ds-still {
  border-radius: 0;
  box-shadow: none;
}

.ds-still--rel {
  position: relative;
}

/* Margins in % follow the frame's width on all four sides: 14 px in at 1080 px wide.
   (::before, so a page's own tint on ::after stays as it is.) */
.ds-still::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  margin: 1.3%;
  content: "";
  border: 1px solid var(--frame-line);
  opacity: 1;
  pointer-events: none;
}

/* ---------- Closing band: the one dark-sheet block on the site ---------- */
.ds-closing {
  position: relative;
  padding: var(--section) var(--margin);
  background: var(--dark-sheet);
  color: var(--silk);
  text-align: left;
  overflow: visible;
}

.ds-closing > * {
  max-width: 1104px;
}

.ds-closing__label {
  margin: 0 0 24px;
  color: var(--stone);
}

.ds-closing__title {
  margin: 0;
  color: var(--silk);
  font-family: var(--font-serif);
  font-size: 96px;
  font-style: normal;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.04;
  text-transform: none;
}

.ds-closing .ds-closing__title {
  max-width: none;
}

.ds-closing__title > span {
  display: block;
  color: inherit;
  font: inherit;
  text-wrap: balance;
}

.ds-closing__title .is-italic {
  font-style: italic;
  font-weight: 400;
}

.ds-closing__body {
  max-width: 720px;
  margin: 48px 0 0;
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  font-variation-settings: "opsz" 20;
}

.ds-closing__body + .ds-closing__body {
  margin-top: 24px;
}

.ds-closing .ds-action {
  margin-top: 48px;
}

@media (max-width: 1023px) {
  .ds-closing__title {
    font-size: 44px;
    line-height: 1.1;
  }

  .ds-closing__body {
    margin-top: 32px;
  }

  .ds-closing .ds-action {
    margin-top: 32px;
  }
}

/* ---------- Footer: dark sheet, stone, nav-sm ----------
   The wordmark in silk, one line in stone, the links in two labelled groups, and a copyright line under a
   1 px stone rule at 30%. The same rule sits over the footer only where it follows the closing band. */
.ds-footer {
  padding: 96px var(--margin) 40px;
  background: var(--dark-sheet);
  color: var(--stone);
}

.ds-footer--after-band {
  border-top: 1px solid var(--stone-rule);
}

.ds-footer__main {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.ds-footer__brand {
  grid-column: 1 / span 5;
}

.ds-footer__wordmark {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--silk);
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 300;
  letter-spacing: 0.2em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.ds-footer__line {
  max-width: 400px;
  margin: 24px 0 0;
  color: var(--stone);
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.45;
  font-variation-settings: "opsz" 14;
}

.ds-footer__nav {
  display: grid;
  grid-column: 7 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.ds-footer__label,
.ds-footer__nav a,
.ds-footer__item,
.ds-footer__base {
  font-family: var(--font-sans);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.18em;
  line-height: 1.4;
  text-transform: uppercase;
  font-variation-settings: "opsz" 14;
}

.ds-footer__label {
  margin: 0 0 16px;
  color: var(--silk);
}

.ds-footer__nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-footer__nav li {
  margin: 0;
  padding: 0;
}

.ds-footer__nav a,
.ds-footer__item {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  color: var(--stone);
  text-decoration: none;
}

.ds-footer__nav a {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 2px;
  transition: background-size 300ms var(--ease-draw);
}

/* the current page keeps a 1 px line, as in the header; hover and focus draw the 2 px line */
.ds-footer__nav a[aria-current="page"] {
  background-size: 100% 1px;
}

.ds-footer__nav a:hover,
.ds-footer__nav a:focus-visible {
  background-size: 100% 2px;
}

.ds-footer__base {
  margin: 80px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--stone-rule);
  color: var(--stone);
}

/* the landing page's footer: its name and the guide's note */
.ds-footer__note {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--stone);
  font-size: 17px;
  line-height: 1.45;
}

@media (max-width: 1023px) {
  .ds-footer {
    padding: 64px var(--margin) 32px;
  }

  .ds-footer__main {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 48px;
  }

  .ds-footer__brand,
  .ds-footer__nav {
    grid-column: 1 / -1;
  }

  /* the path names are the long ones: their column takes 3 parts of 5, so they fit on one line from 375 px */
  .ds-footer__nav {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }

  .ds-footer__wordmark {
    font-size: 28px;
  }

  .ds-footer__base {
    margin-top: 48px;
  }
}

/* ---------- Page heroes sit under the in-flow header ---------- */
.film-hero {
  height: calc(var(--app-vh, 100svh) - var(--header-height));
  min-height: 480px;
}

/* ---------- Section openers: the number, then the headline, 24 px apart ---------- */
.ds-opener__label {
  margin-top: 0;
  margin-bottom: 24px;
}

.ds-opener__title {
  margin-top: 0;
}

/* The title card keeps its live arrival: SERA rises, opacity 0.58 to 1, 550 ms draw.
   (:where keeps the font hold in the home page's own sheet in charge.) */
:where(.hero-title-layer) .display-title.text-load-reveal {
  opacity: 0.58;
  transform: translateY(6px);
  transition:
    opacity 550ms var(--ease-draw),
    transform 550ms var(--ease-draw);
}

:where(.hero-title-layer) .display-title.text-load-reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Shared page layout (moved here from sera_nav.css, which pages no longer load) ---------- */
.timeline-container {
  display: flex;
  width: 100%;
  max-width: none;
  flex-direction: column;
  padding: 0;
  margin: 0;
}

.timeline-container > .path-hero {
  position: relative;
  display: flex;
  min-height: calc(var(--app-vh, 100svh) - var(--header-height));
  flex-direction: column;
  justify-content: center;
  background: var(--surface);
}

.timeline-container > .path-hero .hero-copy {
  width: min(100%, 1104px);
  max-width: 1104px;
}

.timeline-container > .path-hero h1 {
  max-width: 1104px;
  margin: 0;
  text-wrap: balance;
}

.timeline-container > .path-hero .hero-copy p {
  width: min(100%, 720px);
  max-width: none;
  margin: 32px 0 0;
}

.timeline-container > .path-hero .hero-copy p + p {
  margin-top: 16px;
}

/* The scroll cue's segment travels down its line once; nothing loops. */
.scroll-cue-line {
  position: relative;
  overflow: hidden;
}

.scroll-cue-line::after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 42%;
  content: "";
  background: var(--brown);
  opacity: 0;
  animation: ds-scroll-cue 2600ms var(--ease-bend) 600ms 1 both;
}

@keyframes ds-scroll-cue {
  0% {
    opacity: 0;
    transform: translateY(-100%);
  }

  20%,
  75% {
    opacity: 0.55;
  }

  100% {
    opacity: 0;
    transform: translateY(240%);
  }
}

/* Inner heroes with a photograph: the words on sand and the photograph beside them,
   so no text sits on a picture and no gradient is needed. The photograph keeps its own grade. */
.path-hero--image .path-hero-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  z-index: 0;
  width: 40%;
  overflow: hidden;
  pointer-events: none;
}

.path-hero--image .path-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  mix-blend-mode: normal;
}

.timeline-container > .path-hero--image .hero-copy {
  position: relative;
  z-index: 1;
  width: calc(60% - var(--margin) - 48px);
  max-width: 760px;
}

/* The photograph takes the same flat tint as the framed stills. */
.path-hero--image .path-hero-bg::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(234, 215, 195, 0.24);
}

@media (max-width: 1023px) {
  .timeline-container > .path-hero--image {
    justify-content: flex-start;
    padding-top: 48px;
    padding-bottom: calc(clamp(200px, 32svh, 320px) + 48px);
  }

  .path-hero--image .path-hero-bg {
    top: auto;
    width: 100%;
    height: clamp(200px, 32svh, 320px);
  }

  .timeline-container > .path-hero--image .hero-copy {
    width: 100%;
    max-width: 100%;
  }
}

@media (min-width: 1024px) {
  main > .faq-hero,
  main > .direct-hero {
    min-height: clamp(480px, 50vh, 600px);
  }
}

@media (max-width: 1023px) {
  .timeline-container > .path-hero .hero-copy,
  .timeline-container > .path-hero h1,
  .timeline-container > .path-hero .hero-copy p {
    width: 100%;
    max-width: 100%;
  }

  main.content > .hero,
  .timeline-container > .path-hero,
  main:not(.content) > .hero,
  main > .faq-hero,
  main > .direct-hero,
  body.blog-page .blog-hero,
  .blog-detail-page .blog-hero {
    min-height: calc(var(--app-vh, 100svh) - var(--header-height));
  }

  main.inquiry-main > .hero {
    min-height: auto;
  }
}

/* ---------- Page heroes, one template (18 Nov; after the older hero rules so it wins) ----------
   Every inner page starts the same way: the label 96 px under the header (48 px on phones), the words in the
   left 60%, the photograph in the right 40%, at least 640 px tall or one screen, whichever is less. Titles are
   headline-lg (64 px); display (96 px) stays for Home's film title and the closing bands. Only the film keeps
   a scroll cue, and no faint background words sit behind the pages. */
.path-hero.path-hero--image h1 {
  max-width: 1104px;
  margin: 0;
  text-wrap: balance;
}

.path-hero.path-hero--image .hero-copy p {
  width: min(100%, 720px);
  max-width: none;
  margin: 32px 0 0;
}

@media (min-width: 1024px) {
  .path-hero.path-hero--image {
    position: relative;
    display: flex;
    min-height: min(640px, calc(var(--app-vh, 100svh) - var(--header-height)));
    flex-direction: column;
    justify-content: flex-start;
    padding: 96px var(--margin);
  }

  .path-hero.path-hero--image .hero-copy {
    position: relative;
    z-index: 1;
    width: calc(60% - var(--margin) - 48px);
    max-width: 760px;
  }
}

/* A hyphenated word in a title never splits at its hyphen ("adult-only", "room-block"). */
.ds-nowrap {
  white-space: nowrap;
}

/* The side step rail needs the desktop margin; below the breakpoint it goes. */
@media (max-width: 1023px) {
  .sticky-progress {
    display: none;
  }
}


/* ---------- Reduced motion: every duration is 0 ms, the finished state at once ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  ::before,
  ::after {
    animation-duration: 0ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0ms !important;
    transition-delay: 0ms !important;
  }

  .ds-js .ds-opener__title,
  .ds-js .hero-title-layer .display-title {
    opacity: 1;
    transform: none;
  }
}
