/* ==========================================================================
   The Den Hawai‘i — site styles
   ========================================================================== */

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  font-weight: 500;   /* 500, not 450: the Barlow faces are static subsets at
                         400/500/600, so a half-step just resolves to 500 and
                         makes the CSS describe something it cannot do. */
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
/* `contents` removes picture's own box so the img sizes against the real
   media container. Without this every height:100% below silently collapses. */
picture { display: contents; }
img, video { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }

/* ---- focus --------------------------------------------------------------- */
:focus-visible {
  outline: 3px solid var(--focus-light);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}
.on-dark :focus-visible, .site-nav:not(.is-stuck) :focus-visible {
  outline-color: var(--focus-dark);
}

.skip-link {
  position: absolute; left: var(--sp-4); top: var(--sp-4);
  transform: translateY(-200%);
  background: var(--den-700); color: var(--white);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-pill);
  font-family: var(--font-body); font-size: var(--t-label);
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  z-index: 200; transition: transform var(--dur-std) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ---- layout -------------------------------------------------------------- */
.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }
.section--tight { padding-block: var(--section-y-tight); }
.section--alt    { background: var(--bg-alt); }
.section--invert { background: var(--bg-invert); color: var(--text-on-dark); }
.section--brand  { background: var(--bg-brand); color: var(--text-on-dark); }

/* ---- type ---------------------------------------------------------------- */
.eyebrow {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--den-600); margin-bottom: var(--sp-4);
}
/* Any dark ground gets the light eyebrow. `.bleed` sets its own dark
   background rather than carrying `.section--invert`, so it has to be named
   here too — without it the eyebrow renders --den-600 at 2.41:1. */
.section--invert .eyebrow,
.bleed .eyebrow { color: var(--sky-400); }
.section--brand .eyebrow { color: var(--sky-100); }   /* 5.5:1 on --den-600 */
.section--invert .eyebrow.is-ember,
.bleed .eyebrow.is-ember { color: var(--ember-300); }

.display-1, .display-2, h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700; line-height: 1.06; letter-spacing: -0.015em;
  text-wrap: balance;
}
.display-1 { font-size: var(--t-display-1); line-height: 1.02; letter-spacing: -0.02em; }
.display-2 { font-size: var(--t-display-2); }
.display-3 { font-size: var(--t-display-3); }
h1 { font-size: var(--t-h1); line-height: 1.10; }
h2 { font-size: var(--t-h2); line-height: 1.15; font-weight: 700; }
h3 { font-size: var(--t-h3); line-height: 1.25; font-weight: 700; letter-spacing: 0; }

.lead { font-size: var(--t-body-lg); line-height: 1.6; }
.prose { max-width: var(--measure-wide); }
/* Space every sibling, not just p + p — a list between paragraphs used to
   collapse flush against the next block. */
.prose > * + * { margin-top: var(--sp-5); }
.measure-display { max-width: var(--measure-display); }
.muted { color: var(--text-secondary); }
.section--invert .muted, .section--brand .muted { color: var(--text-on-dark-2); }
.fine { font-size: var(--t-body-sm); color: var(--text-secondary); }

.link {
  color: var(--link); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1.5px;
  transition: color var(--dur-micro) var(--ease-standard);
}
.link:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
/* --link is tuned for light grounds (6.9:1 on white) and drops to 2.4:1 on
   --den-ink. Every dark surface needs the light-blue link instead. */
.nav-panel .link,
.section--invert .link,
.section--brand .link,
.site-footer .link,
.on-dark .link { color: var(--sky-400); }
.nav-panel .link:hover,
.section--invert .link:hover,
.section--brand .link:hover,
.site-footer .link:hover,
.on-dark .link:hover { color: var(--white); }

/* ---- buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 48px; padding: var(--sp-4) var(--sp-6);
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-pill); border: 1.5px solid transparent;
  cursor: pointer; text-align: center;
  transition: background-color var(--dur-std) var(--ease-standard),
              color var(--dur-std) var(--ease-standard),
              border-color var(--dur-std) var(--ease-standard),
              transform var(--dur-micro) var(--ease-standard);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--den-700); color: var(--white); }
.btn--primary:hover { background: var(--den-600); }

.btn--secondary { background: transparent; color: var(--den-700); border-color: var(--den-700); }
.btn--secondary:hover { background: var(--den-700); color: var(--white); }

.btn--on-dark { background: var(--white); color: var(--den-ink); }
.btn--on-dark:hover { background: var(--sky-100); }

.btn--ghost { background: transparent; color: var(--white); border-color: rgb(255 255 255 / 0.55); }
.btn--ghost:hover { background: rgb(255 255 255 / 0.10); border-color: var(--white); }

/* arrow link (tertiary) */
.arrow-link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  min-height: 44px;
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  color: var(--link); padding-block: var(--sp-3);
  position: relative;
}
.arrow-link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-std) var(--ease-out);
}
.arrow-link:hover::after { transform: scaleX(1); }
.arrow-link .arw { transition: transform var(--dur-std) var(--ease-out); }
.arrow-link:hover .arw { transform: translateX(4px); }
.section--invert .arrow-link, .section--brand .arrow-link,
.hero .arrow-link { color: var(--white); }

/* ==========================================================================
   navigation
   ========================================================================== */
.site-nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur-std) var(--ease-standard),
              border-color var(--dur-std) var(--ease-standard);
}
.site-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-5);
}
.site-nav.is-stuck {
  background: var(--white);
  border-bottom-color: var(--border);
}

.brand { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; min-height: 44px; }
.brand__mark {
  width: 40px; height: 44px;
  background-color: var(--white);
  -webkit-mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
          mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
  transition: background-color var(--dur-std) var(--ease-standard);
}
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem;
  letter-spacing: -0.01em; color: var(--white);
  transition: color var(--dur-std) var(--ease-standard);
}
.is-stuck .brand__mark { background-color: var(--den-blue); }
.is-stuck .brand__name { color: var(--den-ink); }

.nav-links { display: none; gap: var(--sp-6); align-items: center; }
.nav-links > a, .nav-links button {
  display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 44px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--white);
  position: relative;
  transition: color var(--dur-std) var(--ease-standard);
}
.is-stuck .nav-links > a, .is-stuck .nav-links button { color: var(--den-ink); }
.nav-links > a::after, .nav-links button::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur-std) var(--ease-out);
}
.nav-links > a:hover::after, .nav-links button:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--sp-3); flex-shrink: 0; }
.nav-actions .btn { min-height: 42px; padding: var(--sp-3) var(--sp-5); }
/* At 320px the wordmark, Book now and the hamburger together overshoot the
   viewport by about 55px and the whole page scrolls sideways. Tighten the
   button rather than hide it — it is the one action in the header. */
@media (max-width: 360px) {
  .nav-actions { gap: var(--sp-2); }
  .nav-actions .btn { padding: var(--sp-3) var(--sp-4); letter-spacing: 0.04em; }
  .brand__name { font-size: 0.95rem; }
}
.site-nav:not(.is-stuck) .btn--nav { background: var(--white); color: var(--den-ink); }
.site-nav.is-stuck .btn--nav { background: var(--den-700); color: var(--white); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center;
  gap: 5px; width: 44px; height: 44px; padding: 0 10px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle span {
  display: block; height: 2px; width: 100%; background: var(--white);
  transition: background-color var(--dur-std) var(--ease-standard);
}
.is-stuck .nav-toggle span { background: var(--den-ink); }

@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---- mobile overlay ------------------------------------------------------ */
.nav-panel {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg-invert); color: var(--text-on-dark);
  display: flex; flex-direction: column;
  padding: var(--sp-5) var(--gutter) var(--sp-8);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-std) var(--ease-standard), visibility var(--dur-std);
  overflow-y: auto;
}
.nav-panel[data-open="true"] { opacity: 1; visibility: visible; }
.nav-panel__top { display: flex; justify-content: space-between; align-items: center; min-height: var(--nav-h); }
.nav-panel__close {
  width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  color: var(--white); font-size: 1.75rem; line-height: 1;
}
.nav-panel__links { margin-top: var(--sp-8); display: flex; flex-direction: column; gap: var(--sp-4); }
.nav-panel__links a {
  display: flex; align-items: center; min-height: 48px;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.75rem, 8vw, 2.75rem); line-height: 1.1;
}
.js .nav-panel__links a { opacity: 0; transform: translateY(12px); }
.js .nav-panel[data-open="true"] .nav-panel__links a {
  opacity: 1; transform: none;
  transition: opacity var(--dur-enter) var(--ease-out) var(--d, 0ms),
              transform var(--dur-enter) var(--ease-out) var(--d, 0ms);
}
.nav-panel__meta a { display: inline-flex; align-items: center; min-height: 44px; }
.nav-panel__meta {
  margin-top: auto; padding-top: var(--sp-7);
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  font-size: var(--t-body-sm); color: var(--text-on-dark-2);
}
.nav-panel__watermark {
  position: absolute; right: -40px; bottom: -30px;
  width: 320px; color: var(--white); opacity: 0.05; pointer-events: none;
}

/* ==========================================================================
   hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: flex-end;
  overflow: hidden; background: var(--den-ink);
  color: var(--white);
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video {
  width: 100%; height: 100%; object-fit: cover; object-position: center 40%;
}
.hero__video { opacity: 0; transition: opacity var(--dur-hero) var(--ease-standard); }
.hero__video.is-ready { opacity: 1; }
.hero__scrim { position: absolute; inset: 0; z-index: 1; background: var(--scrim-hero); }
@media (max-width: 767px) { .hero__scrim { background: var(--scrim-hero-sm); } }
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding-block: var(--sp-9) clamp(var(--sp-8), 12vh, var(--sp-11));
}
.hero__title { max-width: var(--measure-display); margin-bottom: var(--sp-5); }
.hero__sub { max-width: var(--measure); margin-bottom: var(--sp-7); color: rgb(255 255 255 / 0.88); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: var(--sp-5); right: var(--gutter);
  font-size: var(--t-eyebrow); letter-spacing: 0.16em; text-transform: uppercase;
  color: rgb(255 255 255 / 0.7); display: none;
}
@media (min-width: 900px) { .hero__scroll { display: block; } }
@media (max-width: 599px) { .hero__media img, .hero__media video { object-position: 60% 35%; } }

/* ==========================================================================
   intro offer strip
   ========================================================================== */
.offer {
  background: var(--den-600); color: var(--white);
  padding-block: var(--sp-6);
}
.offer .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-5);
}
.offer__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); }
.offer__lead { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); }
.offer__note { font-size: var(--t-body-sm); color: rgb(255 255 255 / 0.92); }

/* ==========================================================================
   split section (S&T structure)
   ========================================================================== */
.split { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .split { grid-template-columns: 5fr 6fr; gap: var(--sp-10); align-items: start; }
}
.split__aside { position: sticky; top: calc(var(--nav-h) + var(--sp-6)); }
@media (max-width: 899px) { .split__aside { position: static; } }

.list-rows { border-top: 1px solid var(--border); }
.section--invert .list-rows { border-top-color: var(--border-dark); }
.list-rows li { border-bottom: 1px solid var(--border); }
.section--invert .list-rows li { border-bottom-color: var(--border-dark); }
.list-row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--sp-5); padding-block: var(--sp-5);
  transition: padding-inline var(--dur-std) var(--ease-out);
}
.list-row:hover { padding-inline-start: var(--sp-3); }
.list-row__name {
  display: block;
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3);
  line-height: 1.25; letter-spacing: -0.01em;
}
.list-row__desc {
  display: block;
  font-size: var(--t-body-sm); font-weight: 500;
  color: var(--text-secondary); margin-top: var(--sp-1);
}
.section--invert .list-row__desc { color: var(--text-on-dark-2); }
.list-row__qual {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-secondary); white-space: nowrap;
}
/* nowrap is what keeps "Haleʻiwa · Pupukea" on one line, but a three-studio
   value cannot shrink and dragged the whole page sideways at 320px. Below
   400px the row stacks and the qual is allowed to wrap. */
@media (max-width: 400px) {
  .list-row { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
  .list-row__qual { white-space: normal; }
}
.section--invert .list-row__qual { color: var(--ember-300); }

/* ==========================================================================
   rails + cards
   ========================================================================== */
.rail-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: var(--sp-5); margin-bottom: var(--sp-7);
}
.rail-nav { display: none; gap: var(--sp-3); }
@media (min-width: 900px) { .rail-nav { display: flex; } }
.rail-btn {
  width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--den-blue); color: var(--white);
  border: 0; cursor: pointer; display: grid; place-items: center;
  transition: background-color var(--dur-std) var(--ease-standard), opacity var(--dur-std);
}
.rail-btn:hover { background: var(--den-600); }
.rail-btn[disabled] { opacity: 0.3; cursor: default; }

.rail {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: min(84%, 380px);
  gap: var(--sp-5);
  overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1);
  padding-bottom: var(--sp-4);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px)  { .rail { grid-auto-columns: min(46%, 380px); } }
/* Stays a scrolling rail at every width (DESIGN.md §8). A fixed track width
   shows ~3.2 cards so the cut card signals there is more to the right;
   `grid-template-columns` would have been overrun by grid-auto-flow anyway. */
@media (min-width: 1100px) {
  .rail { grid-auto-columns: 380px; padding-inline: 0; margin-inline: 0; }
}

/* ---- modality card ------------------------------------------------------- */
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-page); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-std) var(--ease-standard),
              transform var(--dur-std) var(--ease-out);
}
.card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.section--invert .card { background: rgb(255 255 255 / 0.05); color: var(--text-on-dark); }
.card__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--sand); }
.card__media img { width: 100%; height: 100%; object-fit: cover;
                   transition: transform var(--dur-enter) var(--ease-out); }
.card:hover .card__media img { transform: scale(1.03); }
.card__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.card__qual {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--den-600);
}
.card__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-h3); line-height: 1.22; letter-spacing: -0.01em;
}
.loc__name { font-size: var(--t-h2); font-weight: 700; }
.section--invert .card__qual { color: var(--ember-300); }
.card__desc { font-size: var(--t-body-sm); font-weight: 500; color: var(--text-secondary); }
.section--invert .card__desc { color: var(--text-on-dark-2); }
.card__meta {
  margin-top: auto; padding-top: var(--sp-4); border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--sp-3);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.section--invert .card__meta { border-top-color: var(--border-dark); color: var(--text-on-dark-2); }
.card__cta { margin-top: var(--sp-3); }

/* stretched link — real anchor, whole card clickable */
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---- location cards ------------------------------------------------------ */
.loc-grid { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .loc-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-7); } }

.loc {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg-page); border-radius: var(--r-card); overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: box-shadow var(--dur-std) var(--ease-standard), transform var(--dur-std) var(--ease-out);
}
.loc:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.loc__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.loc__media img { width: 100%; height: 100%; object-fit: cover; }
.loc__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-4); flex: 1; }
.loc__title { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.loc__what { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-4); }
.loc__what li {
  display: flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-body-sm); color: var(--text-secondary);
}
/* the real Den mark, tinted via mask so it inherits colour like an icon */
.tick {
  width: 17px; height: 18px; flex-shrink: 0;
  background-color: var(--den-blue);
  -webkit-mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
          mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
}
.soon-mark {
  display: block;
  width: 108px; height: 118px;
  background-color: var(--white);
  -webkit-mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
          mask: url("../img/brand/den-mark.svg") center / contain no-repeat;
}
/* placeholder for a card whose photograph has not landed yet — deliberately
   uses the Coming Soon treatment so it reads as designed, not broken */
.card__placeholder {
  position: absolute; inset: 0;
  background-color: var(--bg-brand-bright);
}
.card__placeholder::after {
  content: ""; position: absolute; inset: 0;
  background-color: rgb(255 255 255 / 0.92);
  -webkit-mask: url("../img/brand/den-mark.svg") center / 34% no-repeat;
          mask: url("../img/brand/den-mark.svg") center / 34% no-repeat;
}
.loc__facts {
  border-top: 1px solid var(--border); padding-top: var(--sp-4);
  display: flex; flex-direction: column; gap: var(--sp-2);
  font-size: var(--t-body-sm); color: var(--text-secondary);
}
.loc__actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); align-items: center; margin-top: var(--sp-2); }

.pill {
  display: inline-block; padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-pill); background: var(--den-700); color: var(--white);
  font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.loc--soon .loc__media::after {
  content: ""; position: absolute; inset: 0; background: var(--scrim-blue);
}
.loc--soon .loc__soon-art {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: var(--bg-brand-bright); color: var(--white);
}
.loc--soon .loc__soon-art .soon-mark { opacity: 0.92; }

/* ==========================================================================
   pricing
   ========================================================================== */
.seg { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg label {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill);
  border: 1.5px solid var(--border); cursor: pointer;
  font-size: var(--t-label); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 500;
  color: var(--text-secondary);
  transition: background-color var(--dur-std) var(--ease-standard),
              color var(--dur-std) var(--ease-standard),
              border-color var(--dur-std) var(--ease-standard);
}
.seg label:hover { border-color: var(--den-blue); color: var(--den-600); }
.seg input:checked + label { background: var(--den-700); border-color: var(--den-700); color: var(--white); }
.seg input:focus-visible + label { outline: 3px solid var(--focus-light); outline-offset: 2px; }

.price-group + .price-group { margin-top: var(--sp-9); }
.price-group__title {
  font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-secondary); margin-bottom: var(--sp-5);
}
.price-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 700px)  { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }

.plan {
  display: flex; flex-direction: column;
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: var(--r-card); overflow: hidden;
}
.plan--featured { border: 2px solid var(--den-blue); box-shadow: var(--shadow-2); }
.plan__ribbon {
  background: var(--den-600); color: var(--white);
  padding: var(--sp-2) var(--sp-5);
  font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.plan--featured .plan__ribbon { background: var(--den-ink); }
.plan__body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-3); flex: 1; }
.plan__price { display: flex; align-items: baseline; gap: var(--sp-3); flex-wrap: wrap; }
.plan__amount {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.plan__cents { font-size: 0.45em; vertical-align: super; font-weight: 600; }
.plan__unit { font-size: var(--t-body-sm); color: var(--text-secondary); border-left: 1px solid var(--border); padding-left: var(--sp-3); }
.plan__per { font-size: var(--t-body-sm); color: var(--den-600); font-weight: 500; }
.plan__desc { font-size: var(--t-body-sm); color: var(--text-secondary); }
.plan__terms { font-size: 0.8125rem; color: var(--text-secondary); opacity: 0.85; margin-top: auto; padding-top: var(--sp-4); }
.plan__cta { margin-top: var(--sp-4); }
.plan__cta .btn { width: 100%; }

/* ==========================================================================
   full-bleed break (ember)
   ========================================================================== */
.bleed { position: relative; min-height: 78vh; display: flex; align-items: flex-end;
         overflow: hidden; color: var(--white); background: var(--den-ink); }
.bleed__media { position: absolute; inset: 0; z-index: 0; }
.bleed__media img { width: 100%; height: 100%; object-fit: cover; }
.bleed__scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgb(21 31 42 / 0.25) 0%, rgb(21 31 42 / 0.08) 28%, rgb(21 31 42 / 0.82) 100%); }
.bleed__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--sp-9); }

/* A link in a table cell is not "inline in a sentence", so WCAG 2.5.8's
   exception does not cover it — give it a real 24px target. */
.price-table th a,
.price-table td a {
  display: inline-flex; align-items: center; min-height: 24px;
}

/* ==========================================================================
   journal — long-form reading
   ========================================================================== */
/* Narrower measure and more leading than .prose. These are essays people
   actually read start to finish, not scannable page copy. */
.article { max-width: var(--measure); margin-inline: auto; }
.article > * + * { margin-top: var(--sp-5); }
.article p { font-size: var(--t-body-lg); line-height: 1.72; }
.article h2 {
  font-size: var(--t-h3); margin-top: var(--sp-8);
  letter-spacing: 0; line-height: 1.3;
}
.article strong { font-weight: 600; color: var(--text-primary); }
/* A pulled-out line, used where the source writing lands a point. */
.article blockquote {
  margin: var(--sp-7) 0; padding-left: var(--sp-5);
  border-left: 2px solid var(--den-blue);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em;
  color: var(--text-primary);
}
/* Journal photography. The article column is the measure, so a single figure
   fills it and a row divides it. Family-album scans are all different shapes,
   so a row crops them to one ratio or the tops and bottoms stagger. */
.article > figure { margin-top: var(--sp-7); }
.article figure img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-card); background: var(--bg-alt);
}
.article figcaption {
  margin-top: var(--sp-3);
  font-size: var(--t-body-sm); line-height: 1.45; color: var(--text-secondary);
}
.fig-row { display: grid; gap: var(--sp-3); grid-template-columns: repeat(2, 1fr); }
.fig-row--3 { grid-template-columns: repeat(3, 1fr); }
.fig-row img {
  width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-md);
}
@media (max-width: 520px) { .fig-row--3 { grid-template-columns: repeat(2, 1fr); } }

.article__sign {
  margin-top: var(--sp-8); padding-top: var(--sp-5);
  border-top: 1px solid var(--border);
  font-size: var(--t-body-sm); color: var(--text-secondary);
}

/* index */
.post-list { list-style: none; margin: 0; padding: 0; }
.post-list li { border-top: 1px solid var(--border); }
.post-list li:last-child { border-bottom: 1px solid var(--border); }
.post-list a {
  display: block; padding: var(--sp-6) 0; color: inherit;
}
.post-list a:hover .post-list__title { color: var(--den-600); }
.post-list__meta {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary);
}
.post-list__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-h2); line-height: 1.18; letter-spacing: -0.015em;
  margin-top: var(--sp-2); max-width: var(--measure-display);
}
.post-list__standfirst {
  margin-top: var(--sp-3); color: var(--text-secondary); max-width: var(--measure);
}

/* Two named people side by side, with a caption each. */
.lead-pair { display: flex; flex-wrap: wrap; gap: var(--sp-6); margin-bottom: var(--sp-6); }
.lead-pair__fig { margin: 0; flex: 1 1 200px; max-width: 260px; }
.lead-pair__fig img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-md); background: var(--bg-alt);
}
.lead-pair__fig figcaption {
  margin-top: var(--sp-3); font-size: var(--t-body-sm); line-height: 1.35;
}
.lead-pair__fig figcaption strong { display: block; color: var(--text-primary); font-weight: 600; }
.lead-pair__fig figcaption span { color: var(--text-secondary); }

/* 404 recovery links: a wrapping row, centred, with real gaps. */
.lost-links {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-3) var(--sp-6); margin-top: var(--sp-8);
}

/* ==========================================================================
   team grid (about)
   ========================================================================== */
.team-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px)  { .team-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .team-grid { grid-template-columns: repeat(4, 1fr); } }
/* The portraits are not a uniform crop — heights run 504 to 602 at 400w — so
   the tile sets the ratio and the image covers it. Without this the rows
   stagger. */
.team-member img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--r-md); background: var(--bg-alt);
}

/* ==========================================================================
   community + app
   ========================================================================== */
.quote-grid { display: grid; gap: var(--sp-5); }
@media (min-width: 900px) { .quote-grid { grid-template-columns: repeat(3, 1fr); } }
.quote {
  background: var(--bg-page); border-radius: var(--r-card);
  padding: var(--sp-6); box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--sp-4);
}
.quote p { font-size: var(--t-body-lg); line-height: 1.5; }
.quote__by { font-size: var(--t-label); letter-spacing: 0.1em; text-transform: uppercase; color: var(--den-600); }

.app-split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 900px) { .app-split { grid-template-columns: 1fr 1fr; gap: var(--sp-10); } }
.app-split img { border-radius: var(--r-card); }

/* ==========================================================================
   footer
   ========================================================================== */
.site-footer { background: var(--bg-invert); color: var(--text-on-dark); padding-block: var(--sp-9) var(--sp-7); }
.site-footer .muted { color: var(--text-on-dark-2); }   /* 8.7:1 on --den-ink */
.footer-grid { display: grid; gap: var(--sp-8); }
@media (min-width: 700px)  { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
@media (min-width: 1100px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2, .site-footer h3 {
  font-family: var(--font-body); font-size: var(--t-eyebrow); font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--sky-400);
  margin-bottom: var(--sp-4);
}
.footer-links { display: flex; flex-direction: column; }
.footer-links a {
  display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-on-dark-2); font-size: var(--t-body-sm);
  transition: color var(--dur-micro) var(--ease-standard);
}
.footer-links a:hover { color: var(--white); }
.footer-brand__mark {
  width: 76px; height: 84px; margin-bottom: var(--sp-5);
  background-color: var(--den-sage);
  -webkit-mask: url("../img/brand/den-mark.svg") left top / contain no-repeat;
          mask: url("../img/brand/den-mark.svg") left top / contain no-repeat;
}
.footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom {
  margin-top: var(--sp-9); padding-top: var(--sp-5);
  border-top: 1px solid var(--border-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-4);
  justify-content: space-between;
  font-size: var(--t-body-sm); color: var(--text-on-dark-2);
}

/* ==========================================================================
   sticky mobile booking bar
   ========================================================================== */
.book-bar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  background: var(--white); border-top: 1px solid var(--border);
  padding: var(--sp-3) var(--gutter);
  padding-bottom: calc(var(--sp-3) + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  transform: translateY(110%);
  transition: transform var(--dur-std) var(--ease-out);
}
.book-bar.is-visible { transform: translateY(0); }
.book-bar .btn { min-height: 44px; padding: var(--sp-3) var(--sp-5); }
.book-bar__text { font-size: var(--t-body-sm); font-weight: 500; }
@media (min-width: 900px) { .book-bar { display: none; } }

/* ==========================================================================
   motion
   ========================================================================== */
/* Reveal only hides content when JS is actually running. Without the .js
   guard a scripting failure would leave the entire page invisible. */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--dur-enter) var(--ease-out) var(--d, 0ms),
              transform var(--dur-enter) var(--ease-out) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover, .loc:hover, .btn:hover { transform: none; }
  .card:hover .card__media img { transform: none; }
  .rail { scroll-behavior: auto; }
}

/* ---- utilities ----------------------------------------------------------- */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack-4 > * + * { margin-top: var(--sp-4); }
.stack-5 > * + * { margin-top: var(--sp-5); }
.stack-6 > * + * { margin-top: var(--sp-6); }

/* ==========================================================================
   nav dropdown (Pricing → per studio)
   ========================================================================== */
.nav-item { position: relative; display: inline-flex; }
.nav-menu {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px);
  min-width: 232px; padding: var(--sp-2);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-md); box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden;
  transition: opacity var(--dur-std) var(--ease-standard),
              transform var(--dur-std) var(--ease-out), visibility var(--dur-std);
  z-index: 120;
}
.nav-item[data-open="true"] .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-menu a {
  display: flex; align-items: center; min-height: 44px;
  padding: var(--sp-2) var(--sp-4); border-radius: var(--r-sm);
  color: var(--den-ink); font-size: var(--t-body-sm); font-weight: 500;
}
.nav-menu a:hover { background: var(--bg-alt); color: var(--den-600); }
.nav-caret { transition: transform var(--dur-std) var(--ease-standard); }
.nav-item[data-open="true"] .nav-caret { transform: rotate(180deg); }

.nav-panel__sub { display: flex; flex-direction: column; padding-left: var(--sp-4); }
.nav-panel__sub a {
  font-family: var(--font-body); font-size: var(--t-body-lg);
  font-weight: 500; min-height: 44px; color: var(--text-on-dark-2);
}

/* ==========================================================================
   page header (interior pages — no hero video behind the nav)
   ========================================================================== */
.page-head { padding-block: calc(var(--nav-h) + var(--sp-8)) var(--sp-7); background: var(--bg-alt); }
/* Page intros only. The intro paragraph beside a page title is short, while
   the title column carries a heading and often an address card — top-aligning
   left several hundred pixels of dead space under the paragraph.
   NOT applied to content sections: there the aside is a short sticky heading
   beside a long prose column, and top alignment is the whole point. */
@media (min-width: 900px) {
  .page-head .split,
  .split--intro { align-items: center; }
}
.page-head .display-2 { margin-bottom: var(--sp-4); }
.page-head .lead { max-width: var(--measure); }

/* ==========================================================================
   Mariana Tek embed
   ========================================================================== */
.mt-embed { min-height: 640px; }
.mt-embed mariana-element { display: block; width: 100%; }
.mt-fallback {
  border: 1px dashed var(--border); border-radius: var(--r-card);
  padding: var(--sp-7); text-align: center; color: var(--text-secondary);
}
.mt-switch { margin-bottom: var(--sp-6); }

/* studio switcher on embed pages (real links, so it works without JS state) */
.seg-link {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: var(--sp-2) var(--sp-5); border-radius: var(--r-pill);
  border: 1.5px solid var(--border);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
  transition: background-color var(--dur-std) var(--ease-standard),
              color var(--dur-std) var(--ease-standard),
              border-color var(--dur-std) var(--ease-standard);
}
.seg-link:hover { border-color: var(--den-blue); color: var(--den-600); }
.seg-link[aria-current="true"] {
  background: var(--den-700); border-color: var(--den-700); color: var(--white);
}

/* ==========================================================================
   polaroid wall — real prints, so let them sit like prints
   ========================================================================== */
.polaroids {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-4); margin-top: var(--sp-8);
}
.polaroids li {
  /* 200px max lands 6 per row inside the 1312px container, so the wall reads
     as two deliberate rows rather than an awkward orphan on a third */
  width: clamp(132px, 22vw, 200px);
  border-radius: var(--r-sm); overflow: hidden;
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-std) var(--ease-out);
}
.polaroids li:nth-child(odd)  { transform: rotate(-2.2deg); }
.polaroids li:nth-child(even) { transform: rotate(1.8deg); }
.polaroids li:nth-child(3n)   { transform: rotate(3deg); }
.polaroids li:nth-child(5n)   { transform: rotate(-3.4deg); }
.polaroids li:nth-child(7n)   { transform: rotate(1.2deg); }
.polaroids li:hover { transform: rotate(0deg) scale(1.03); z-index: 2; }
.polaroids img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
@media (prefers-reduced-motion: reduce) { .polaroids li:hover { transform: none; } }

/* wide community feature */
.feature-media {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  aspect-ratio: 16 / 9; background: var(--sand);
}
.feature-media img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 599px) { .feature-media { aspect-ratio: 4 / 3; } }

/* ==========================================================================
   editorial mode — the RVCA shoot is black and white and stays that way
   ========================================================================== */
.editorial { background: var(--den-ink); color: var(--text-on-dark); }
.editorial .eyebrow { color: var(--steel-300); }
.ed-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .ed-grid { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.ed-grid figure { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--den-ink); }
.ed-grid img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.ed-grid figure:first-child { grid-column: span 2; }
.ed-grid figure:first-child img { aspect-ratio: 3 / 2; }
@media (max-width: 599px) { .ed-grid figure:first-child { grid-column: span 2; } }

.offer-list { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .offer-list { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); } }
.offer-card { display: flex; flex-direction: column; gap: var(--sp-3); }
.offer-card__n {
  font-family: var(--font-display); font-weight: 700; font-size: var(--t-h1);
  color: var(--den-blue); line-height: 1;
}

/* ==========================================================================
   FAQ — native <details>, no JS needed
   ========================================================================== */
.faq-group + .faq-group { margin-top: var(--sp-9); }
.faq-group__title {
  font-size: var(--t-eyebrow); font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--den-600); margin-bottom: var(--sp-4);
}
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: var(--sp-5); padding-block: var(--sp-5); cursor: pointer;
  font-family: var(--font-display); font-weight: 700;
  font-size: var(--t-h3); line-height: 1.3; letter-spacing: -0.01em;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: 0 0 16px; height: 16px; margin-top: 6px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur-std) var(--ease-standard);
}
.faq details[open] summary::after { transform: rotate(180deg); }
.faq summary:hover { color: var(--den-600); }
.faq__a { padding-bottom: var(--sp-5); max-width: var(--measure-wide); color: var(--text-secondary); }
.faq__a p + p, .faq__a ul + p, .faq__a p + ul { margin-top: var(--sp-4); }

/* legal / long-form policy pages */
.legal { max-width: var(--measure-wide); }
.legal h2 {
  font-size: var(--t-h2); margin-top: var(--sp-9); margin-bottom: var(--sp-4);
  padding-top: var(--sp-6); border-top: 1px solid var(--border);
}
.legal h2:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.legal h3 { font-size: var(--t-h3); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.legal p, .legal li { color: var(--text-secondary); }
.legal p + p, .legal ul { margin-top: var(--sp-4); }
.legal ul li { position: relative; padding-left: var(--sp-5); margin-top: var(--sp-2); }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.6em;
  width: 8px; height: 2px; background: var(--den-blue);
}
.legal .callout {
  background: var(--bg-alt); border-left: 3px solid var(--den-blue);
  padding: var(--sp-5); border-radius: var(--r-sm); margin-top: var(--sp-6);
}

/* ==========================================================================
   Xplor Connect signup form
   The embed ships its own embed.css using .form-group / .form-control / .btn.
   `.btn` collides with ours, so everything here is scoped to .xpl-form.
   ========================================================================== */
.xpl-form { max-width: 34rem; }
.xpl-form .form-group { margin-bottom: var(--sp-5); }
.xpl-form label {
  display: block; margin-bottom: var(--sp-2);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--text-secondary);
}
.xpl-form input[type="text"],
.xpl-form input[type="email"],
.xpl-form input[type="tel"],
.xpl-form select,
.xpl-form textarea {
  width: 100%; min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-body); font-size: 16px;   /* 16px stops iOS zoom */
  font-weight: 500; color: var(--text-primary);
  background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--r-md);
  transition: border-color var(--dur-std) var(--ease-standard);
}
.xpl-form input:focus, .xpl-form select:focus, .xpl-form textarea:focus {
  border-color: var(--den-blue); outline: 3px solid var(--focus-light); outline-offset: 1px;
}
.xpl-form input::placeholder { color: var(--steel-400); }

/* Xplor ships forms.prd.xplorcs.com/assets/embed/embed.css with the widget and
   it was winning: 3px corners against our 8px, Barlow 400 against our 500.
   !important is the right tool here — the sheet is not ours to edit. */
.xpl-form input.form-control,
.xpl-form select.form-control,
.xpl-form textarea.form-control {
  border-radius: var(--r-md) !important;
  font-family: var(--font-body) !important;
  font-weight: 500 !important;
}
/* …and the alert box the widget injects, which carried the same 3px. */
.xpl-form #alert, .xpl-form [class*="alert"] { border-radius: var(--r-md) !important; }

/* checkbox rows read as sentences, not form fields */
.xpl-form input[type="checkbox"] {
  width: 20px; height: 20px; margin-right: var(--sp-3);
  accent-color: var(--den-700); flex-shrink: 0;
}
/* fields the embed injects on its own still need to read as sentences */
.xpl-form #bb_mt_terms_and_service_container > div {
  font-size: var(--t-body-sm); font-weight: 500;
  color: var(--text-secondary); text-transform: none; letter-spacing: 0;
  line-height: 1.5;
}
.xpl-form a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }

/* The embed hard-codes a mid-blue fill inline. White on it is only ~4.1:1,
   which fails AA for the button label — so force our accessible fill. */
.xpl-form button[type="submit"],
.xpl-form .btn#bb_submit {
  background-color: var(--den-700) !important;
  border-color: var(--den-700) !important;
  color: var(--white) !important;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: var(--sp-4) var(--sp-7);
  font-family: var(--font-body); font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--r-pill); border-width: 1.5px; border-style: solid;
  cursor: pointer;
  transition: background-color var(--dur-std) var(--ease-standard), transform var(--dur-micro);
}
.xpl-form button[type="submit"]:hover { background-color: var(--den-600) !important; transform: translateY(-1px); }
.xpl-form #alert:not(:empty) {
  padding: var(--sp-4); border-radius: var(--r-md); margin-bottom: var(--sp-5);
  background: var(--sky-50); border-left: 3px solid var(--den-blue);
  font-size: var(--t-body-sm);
}
.xpl-row { display: grid; gap: var(--sp-4); }
@media (min-width: 520px) { .xpl-row { grid-template-columns: 1fr 1fr; } }
.xpl-checks { border: 0; padding: 0; margin: 0 0 var(--sp-6); }
.xpl-checks legend {
  padding: 0; margin-bottom: var(--sp-3);
  font-size: var(--t-label); font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-secondary);
}
.xpl-form .xpl-check,
.xpl-check {
  display: flex !important; align-items: flex-start; gap: var(--sp-3);
  min-height: 44px; padding-block: var(--sp-2); cursor: pointer;
  font-size: var(--t-body-sm); font-weight: 500; line-height: 1.5;
  color: var(--text-secondary); text-transform: none; letter-spacing: 0;
}
.xpl-check span { padding-top: 1px; }

/* ==========================================================================
   compact studio strip — the homepage answers "where / which one",
   /locations.html carries the depth
   ========================================================================== */
.studio-strip { display: grid; gap: var(--sp-6); }
@media (min-width: 800px) { .studio-strip { grid-template-columns: repeat(3, 1fr); gap: var(--sp-7); } }
.studio {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-3);
}
.studio__media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  border-radius: var(--r-card); background: var(--sand); margin-bottom: var(--sp-2);
}
.studio__media img { width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--dur-enter) var(--ease-out); }
.studio:hover .studio__media img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .studio:hover .studio__media img { transform: none; } }
.studio__name { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h2); line-height: 1.15; }
.studio__what {
  font-size: var(--t-label); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--den-600);
}
.studio__addr { font-size: var(--t-body-sm); font-weight: 500; color: var(--text-secondary); }
.studio .arrow-link { margin-top: auto; }
.studio-more {
  display: flex; flex-wrap: wrap; gap: var(--sp-6);
  margin-top: var(--sp-8); padding-top: var(--sp-6);
  border-top: 1px solid var(--border);
}

/* ==========================================================================
   slim app band — a post-conversion nudge, not a section
   ========================================================================== */
.app-band { background: var(--bg-brand); color: var(--text-on-dark); padding-block: var(--sp-7); }
.app-band .container {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: var(--sp-5);
}
.app-band__text { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-3); }
.app-band__lead { font-family: var(--font-display); font-weight: 700; font-size: var(--t-h3); }
.app-band__note { font-size: var(--t-body-sm); color: rgb(255 255 255 / 0.9); max-width: var(--measure); }

/* stepped lists inside an FAQ answer (e.g. contrast-therapy protocols) */
.faq__list { margin-top: var(--sp-4); display: flex; flex-direction: column; gap: var(--sp-3); }
.faq__list li { position: relative; padding-left: var(--sp-5); }
.faq__list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 2px; background: var(--den-blue);
}
.faq__list strong { color: var(--text-primary); font-weight: 600; }

/* ==========================================================================
   studio detail pages
   ========================================================================== */
.studio-hero { position: relative; }
.fact-grid { display: grid; gap: var(--sp-5); margin-top: var(--sp-6); }
@media (min-width: 700px) { .fact-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); } }
.fact { padding-top: var(--sp-4); border-top: 1px solid var(--border); }
.fact__label {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--den-600); margin-bottom: var(--sp-2);
}
.fact__value { font-size: var(--t-body); font-weight: 500; color: var(--text-primary); }
.fact__value span { display: block; color: var(--text-secondary); font-size: var(--t-body-sm); margin-top: var(--sp-1); }
.rating {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--t-body-sm); font-weight: 500; color: var(--text-secondary);
}
.rating strong { color: var(--text-primary); font-weight: 700; font-size: var(--t-body); }
.gallery { display: grid; gap: var(--sp-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); } }
.gallery figure { margin: 0; border-radius: var(--r-card); overflow: hidden; background: var(--sand); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }

/* ==========================================================================
   crawlable pricing tables
   ========================================================================== */
.price-summary { margin-top: var(--sp-9); padding-top: var(--sp-8); border-top: 1px solid var(--border); }
.table-wrap { overflow-x: auto; }
.price-table { width: 100%; border-collapse: collapse; font-size: var(--t-body-sm); }
.price-table th, .price-table td { text-align: left; padding: var(--sp-3) var(--sp-4); }
.price-table thead th {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-secondary);
  border-bottom: 2px solid var(--den-blue); white-space: nowrap;
}
/* A qualifier inside a column header: same size as the header, lighter, and
   allowed to wrap so it does not widen the column on a phone. */
.price-table thead th .th-note {
  display: block; font-weight: 500; letter-spacing: 0.04em;
  text-transform: none; white-space: normal; color: var(--text-secondary);
}
.price-table tbody th { font-weight: 600; color: var(--text-primary); }
.price-table tbody td { color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.price-table tbody tr { border-bottom: 1px solid var(--border); }
.price-table tbody tr:hover { background: var(--bg-alt); }
.price-table td:nth-child(2) { font-weight: 700; color: var(--text-primary); white-space: nowrap; }

/* booking embeds take a while to hydrate — say so rather than showing a void */
.mt-loading {
  font-size: var(--t-body-sm); color: var(--text-secondary);
  margin-bottom: var(--sp-4);
}
.mt-loading[hidden] { display: none; }

/* ==========================================================================
   studio "at a glance" — address, hours and booking in the first screen
   ========================================================================== */
.studio-quick {
  margin-top: var(--sp-5); padding: var(--sp-5);
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--shadow-1);
}
.studio-quick dl { margin: 0; display: grid; gap: var(--sp-4); }
@media (min-width: 560px) { .studio-quick dl { grid-template-columns: 1fr 1fr; } }
.studio-quick dt {
  font-size: var(--t-eyebrow); font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--den-600); margin-bottom: var(--sp-1);
}
.studio-quick dd { margin: 0; font-size: var(--t-body-sm); font-weight: 500; color: var(--text-primary); }
.studio-quick dd span { display: block; color: var(--text-secondary); font-weight: 500; margin-top: 2px; }
.studio-quick .loc__actions { margin-top: var(--sp-5); }

/* Story photographs sitting inside a prose column. They take the full column
   rather than the 62ch text measure — a photo set to reading width reads as a
   mistake — and carry a caption in the same register as the team figures. */
.story-fig { margin: 0; }
.prose > .story-fig { margin-top: var(--sp-7); }
.story-fig img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-card); background: var(--bg-alt);
}
.story-fig figcaption {
  margin-top: var(--sp-3);
  font-size: var(--t-body-sm); line-height: 1.45; color: var(--text-secondary);
}

/* Three intro offers stacked on the first-timers page. `.offer` itself is
   shared with the homepage banner, so the spacing lives on a wrapper rather
   than on the element — changing .offer would move the homepage too. */
.offer-stack { display: grid; gap: var(--sp-4); }

/* Studios that have not opened yet still belong in the menu — people search
   for them — but the label has to say so, or someone clicks Kahuku expecting
   a schedule. Set in the menu's own colour at reduced weight so it reads as
   a status, not a second link. */
.nav-menu__soon {
  display: inline-block;
  margin-left: var(--sp-2);
  font-size: 0.78em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.62;
}

/* Hot and cold shown together — the pairing is the product, so they sit side
   by side above 700px and stack below it rather than becoming two lonely
   full-width photos on a phone. */
.pair-fig { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 700px) { .pair-fig { grid-template-columns: 1fr 1fr; } }
.pair-fig figure { margin: 0; }
.pair-fig img {
  display: block; width: 100%; height: auto;
  border-radius: var(--r-card); background: var(--bg-alt);
}
.pair-fig figcaption {
  margin-top: var(--sp-3);
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-body-sm); color: var(--text-secondary);
}

/* Three story photos across. They arrive at different aspect ratios and one
   is a 360px square from a phone, so the grid squares them all and keeps the
   display size small enough that the weakest source still holds. */
.trio-fig { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); margin-top: var(--sp-7); }
.trio-fig figure { margin: 0; }
.trio-fig img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-md); background: var(--bg-alt);
}
.trio-fig figcaption {
  margin-top: var(--sp-2);
  font-size: var(--t-body-sm); line-height: 1.35; color: var(--text-secondary);
}
