/* ============================================================
   THE STUDIO HOUSE — Screenshot Studios
   Warm, quiet, photo-led. Boutique-hotel calm.
   tokens · reset · type · layout · nav · components · pages
   ============================================================ */

/* ---------- tokens ---------- */
:root {
  /* Brand colours, as supplied: #623a25 / #f8f5f0 / #3e301a */
  --brand:     #623a25;   /* brand brown */
  --cream:     #f8f5f0;   /* brand cream */
  --espresso:  #3e301a;   /* brand dark */

  --bone:      #f8f5f0;
  --sand:      #f1ece4;
  --clay:      #e3dccf;
  --ink:       #3e301a;
  --ink-soft:  #6f6350;
  --ink-faint: #9e9484;
  --line:      rgba(62, 48, 26, 0.14);
  --line-soft: rgba(62, 48, 26, 0.07);

  --olive:     #623a25;   /* accent, used across components */
  --olive-lt:  #8a5f42;
  --brass:     #623a25;
  --brass-lt:  #8a5f42;
  --blush:     #e8d5c9;

  --serif: "Cormorant Garamond", Cormorant, Georgia, "Times New Roman", serif;
  --sans:  "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gut:  clamp(1.25rem, 4.5vw, 4rem);
  --maxw: 1440px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--clay); color: var(--ink); }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--bone);
  padding: 0.8rem 1.25rem; font-size: 0.8rem;
}
.skip-link:focus { left: 0; }

.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;
}

/* ---------- type ---------- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.005em;
}

.display   { font-size: clamp(3.2rem, 10vw, 8.5rem); line-height: 0.94; letter-spacing: -0.02em; }
.h1        { font-size: clamp(2.6rem, 6.5vw, 5rem);  line-height: 1.0; }
.h2        { font-size: clamp(2.1rem, 4.4vw, 3.5rem); line-height: 1.06; }
.h3        { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.14; }

.em { font-style: italic; }
.brass { color: var(--brass); }

.eyebrow {
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--brass);
}
.eyebrow.soft { color: var(--ink-faint); }

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.68;
  color: var(--ink-soft);
  max-width: 56ch;
  font-weight: 300;
}
.body-text { color: var(--ink-soft); max-width: 62ch; }
.body-text + .body-text { margin-top: 1.15em; }
.body-text strong { color: var(--ink); font-weight: 400; }

.num {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

/* pull quote */
.pull {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3.6vw, 3rem);
  line-height: 1.22;
  font-style: italic;
  max-width: 20ch;
}

/* ---------- layout ---------- */
.wrap {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto; padding-inline: var(--gut);
}
.wrap-narrow { max-width: 940px; }

.section       { padding-block: clamp(4.5rem, 11vw, 9.5rem); }
.section-tight { padding-block: clamp(3rem, 7vw, 5.5rem); }
.section-sand  { background: var(--sand); }

.rule { height: 1px; background: var(--line); border: 0; }

.section-head { display: grid; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head .eyebrow { margin-bottom: -0.6rem; }
@media (min-width: 880px) {
  .section-head.split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    align-items: end; gap: 3.5rem;
  }
}

/* ---------- nav ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}
.site-header.scrolled {
  background: rgba(248, 245, 240, 0.95);
  backdrop-filter: blur(16px) saturate(130%);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  border-bottom-color: var(--line-soft);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  height: clamp(70px, 8vw, 96px);
}
.nav-left  { justify-self: start; display: flex; align-items: center; }
.brand     { justify-self: center; }
.nav-right { justify-self: end; }

.brand { display: flex; align-items: center; gap: 0.15rem; line-height: 1; }

/* The supplied SS / STUDIO HOUSE mark. Inlined so it inherits the header's
   colour and can flip to cream over a photo hero. */
.brand-mark {
  display: block;
  height: clamp(38px, 4.4vw, 52px);
  width: auto;
  color: currentColor;
}
.brand-mark path { fill: currentColor; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.brand-sub {
  font-size: 0.56rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-faint);
  transition: color 0.5s var(--ease);
}

.nav-links { display: none; align-items: center; gap: clamp(1.5rem, 2.8vw, 2.6rem); list-style: none; }
.nav-links a {
  font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft);
  position: relative; padding-block: 0.45rem;
  transition: color 0.35s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-links a[aria-current="page"] { color: var(--ink); }



/* Bars are stacked in a single grid cell and offset with translate, so the
   open state can bring them onto one line and cross cleanly. */
.nav-toggle {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  margin-left: -10px;
  position: relative;
}
.nav-toggle span {
  grid-area: 1 / 1;
  display: block; width: 22px; height: 1px; background: var(--ink);
  transition: transform 0.45s var(--ease), opacity 0.25s var(--ease), background 0.5s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-6px); }
.nav-toggle span:nth-child(3) { transform: translateY(6px); }
/* With the overlay open the header sits on cream, so the photo-hero
   light treatment has to be undone or the mark disappears into it. */
body.nav-open .site-header,
  border-color: var(--line); color: var(--ink);
}
  background: var(--ink); color: var(--bone); border-color: var(--ink);
}
body.nav-open .nav-toggle span { background: var(--ink) !important; }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(0) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

.nav-panel {
  position: fixed; inset: 0; z-index: 90;
  background: var(--bone);
  padding: calc(clamp(70px, 8vw, 96px) + 2.5rem) var(--gut) 3rem;
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-1.5%);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), visibility 0.5s;
}
body.nav-open .nav-panel { opacity: 1; visibility: visible; transform: none; }
.nav-panel ol { list-style: none; display: grid; gap: 0.1rem; }
.nav-panel ol a {
  font-family: var(--serif); font-size: clamp(2.3rem, 8vw, 4.2rem);
  line-height: 1.22; display: flex; align-items: baseline; gap: 1.1rem;
  transition: color 0.4s var(--ease);
}
.nav-panel ol a:hover { color: var(--olive); }
@media (min-width: 900px) {
  .nav-panel { padding-inline: clamp(2rem, 8vw, 7rem); }
  .nav-panel ol { max-width: 20ch; }
}
.nav-panel .panel-foot {
  display: grid; gap: 0.35rem;
  padding-top: 2rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft);
}

/* No persistent link bar at any width -- the overlay menu carries navigation,
   and a single BOOK button carries intent at every breakpoint. */
.nav-links { display: none !important; }
.nav-cta { display: inline-flex; }
@media (max-width: 430px) {
  .nav-cta { padding: 0.6rem 0.85rem; font-size: 0.56rem; letter-spacing: 0.14em; }
}

.nav-right { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.5rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.65rem;
  padding: 1rem 1.9rem;
  font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--ink);
  background: var(--ink); color: var(--bone);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.btn:hover { background: transparent; color: var(--ink); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { background: var(--ink); color: var(--bone); border-color: var(--ink); }

.btn-sm { padding: 0.72rem 1.3rem; font-size: 0.64rem; }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink); padding-bottom: 3px;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.4s var(--ease), gap 0.4s var(--ease), color 0.4s var(--ease);
}
.link-arrow:hover { border-bottom-color: var(--ink); gap: 0.95rem; }

/* ---------- media ---------- */
.media { position: relative; overflow: hidden; background: var(--clay); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.media-16x9 { aspect-ratio: 16 / 9; }
.media-3x2  { aspect-ratio: 3 / 2; }
.media-4x3  { aspect-ratio: 4 / 3; }
.media-1x1  { aspect-ratio: 1 / 1; }
.media-2x3  { aspect-ratio: 2 / 3; }
.media-3x4  { aspect-ratio: 3 / 4; }
.media-tall { aspect-ratio: 3 / 4.4; }
a:hover > .media img, .card:hover .media img, .room-card:hover .media img { transform: scale(1.04); }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(100svh, 940px);
  display: flex; align-items: flex-end;
  padding-top: clamp(130px, 18vw, 200px);
  /* signature height (line-height .9) + its offset + a clear gap */
  padding-bottom: calc(var(--sig-h) * 0.9 + var(--gut) + clamp(4rem, 9vw, 6.5rem));
  overflow: hidden;
}
/* Cream margin around the photograph, so the background reads as part of the
   composition rather than something the image is covering up. */
.hero-bg {
  position: absolute;
  inset: calc(var(--marq-h) + clamp(70px, 8vw, 96px)) var(--gut) var(--gut);
  z-index: 0;
  overflow: hidden;
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom,
      rgba(62,48,26,0.46) 0%, rgba(62,48,26,0.20) 26%,
      rgba(62,48,26,0.44) 58%, rgba(62,48,26,0.62) 78%, rgba(62,48,26,0.84) 100%),
    linear-gradient(to right,
      rgba(62,48,26,0.46) 0%, rgba(62,48,26,0.20) 46%,
      rgba(62,48,26,0.04) 72%, transparent 100%);
}
.hero-inner {
  position: relative; z-index: 1; width: 100%; color: var(--bone);
  padding-inline: calc(var(--gut) + clamp(1.25rem, 3vw, 2.75rem));
}
.hero-inner .eyebrow {
  color: rgba(248, 245, 240, 0.95);
  text-shadow: 0 1px 12px rgba(62, 48, 26, 0.55);
}
.hero-inner .display,
.hero-inner .lede { text-shadow: 0 1px 22px rgba(62, 48, 26, 0.32); }
.hero .display { margin-block: 1.4rem 1.6rem; }
.hero .lede { color: rgba(248, 245, 240, 0.86); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 0.4rem 2rem;
  margin-top: 2.75rem; padding-top: 1.5rem;
  border-top: 1px solid rgba(248, 245, 240, 0.28);
  font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(248, 245, 240, 0.82);
}

/* ---------- stat strip ---------- */
.facts {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.facts > div {
  padding: clamp(1.5rem, 3vw, 2.5rem) clamp(0.75rem, 2vw, 1.5rem);
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.facts > div:nth-child(2n) { border-right: 0; }
.fact-n { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: 1; }
.fact-l {
  margin-top: 0.55rem; font-size: 0.66rem;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}
@media (min-width: 860px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts > div { border-bottom: 0; }
  .facts > div:nth-child(2n) { border-right: 1px solid var(--line); }
  .facts > div:last-child { border-right: 0; }
}

/* ---------- room cards ---------- */
.rooms { display: grid; gap: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 2.5vw, 2rem); }
@media (min-width: 700px)  { .rooms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1120px) { .rooms { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.room-card { display: block; }
.room-card .media { margin-bottom: 1.1rem; }
.room-card .room-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; padding-bottom: 0.55rem; border-bottom: 1px solid var(--line);
}
.room-card h3 { font-size: 1.55rem; }
.room-card p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.75rem; }

/* ---------- alternating feature ---------- */
.feature { display: grid; gap: clamp(1.75rem, 4vw, 3rem); align-items: center; }
@media (min-width: 940px) {
  .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .feature.reverse > :first-child { order: 2; }
}
.feature-body { display: grid; gap: 1.5rem; justify-items: start; }

/* stacked/offset image pair */
.pair { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(0.75rem, 1.6vw, 1.25rem); }
.pair > :last-child { margin-top: clamp(2rem, 6vw, 4.5rem); }

/* ---------- room detail (house page) ---------- */
.room-block { padding-block: clamp(3rem, 7vw, 6rem); border-top: 1px solid var(--line); }
.room-block:first-of-type { border-top: 0; }
.room-intro { display: grid; gap: 1.25rem; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
@media (min-width: 880px) {
  .room-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3.5rem; align-items: end; }
}
/* Every frame keeps its own proportions -- nothing is cropped to a common
   height, so a room is never cut off. Portrait and landscape mix freely and
   flow into columns. */
.room-strip {
  columns: 1;
  column-gap: clamp(0.6rem, 1.4vw, 1rem);
}
@media (min-width: 640px)  { .room-strip { columns: 2; } }
@media (min-width: 1060px) { .room-strip { columns: 3; } }
.room-strip .media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  break-inside: avoid;
  margin-bottom: clamp(0.6rem, 1.4vw, 1rem);
}
.room-strip .media img { width: 100%; height: auto; object-fit: fill; }

.spec-list { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.spec {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); border: 1px solid var(--line);
  padding: 0.35rem 0.75rem; border-radius: 999px;
}

/* ---------- gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.filter {
  padding: 0.55rem 1.1rem; border: 1px solid var(--line);
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-soft); border-radius: 999px;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink-faint); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bone); }

.masonry { columns: 1; column-gap: clamp(0.6rem, 1.4vw, 1rem); }
@media (min-width: 620px)  { .masonry { columns: 2; } }
@media (min-width: 1060px) { .masonry { columns: 3; } }
.masonry .shot {
  break-inside: avoid; margin-bottom: clamp(0.6rem, 1.4vw, 1rem);
  display: block; width: 100%; position: relative;
  overflow: hidden; background: var(--clay); cursor: zoom-in;
}
.masonry .shot img { width: 100%; transition: transform 1.4s var(--ease); }
.masonry .shot:hover img { transform: scale(1.035); }
.masonry .shot figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 2.5rem 0.9rem 0.8rem;
  font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(to top, rgba(62,48,26,0.72), transparent);
  opacity: 0; transform: translateY(6px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.masonry .shot:hover figcaption, .masonry .shot:focus-visible figcaption { opacity: 1; transform: none; }
.shot[hidden] { display: none; }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(48, 37, 20, 0.95);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; padding: clamp(1rem, 4vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox figure { display: grid; justify-items: center; gap: 1rem; }
.lightbox img { max-width: min(100%, 1180px); max-height: 80vh; object-fit: contain; }
.lightbox-caption {
  font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(248, 245, 240, 0.72);
}
.lightbox-close, .lightbox-nav {
  position: absolute; width: 48px; height: 48px;
  border: 1px solid rgba(248,245,240,0.3); border-radius: 50%;
  display: grid; place-items: center; color: var(--bone);
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease), transform 0.35s var(--ease);
}
.lightbox-close { top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); font-size: 1.1rem; }
.lightbox-close:hover { border-color: var(--bone); transform: rotate(90deg); }
.lightbox-nav { top: 50%; transform: translateY(-50%); }
.lightbox-nav:hover { border-color: var(--bone); background: rgba(248,245,240,0.1); }
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.75rem); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.75rem); }

/* ---------- rates ---------- */
.rates { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 940px) { .rates { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rate {
  background: var(--bone); padding: clamp(1.75rem, 3.4vw, 2.75rem);
  display: grid; gap: 1.3rem; align-content: start;
}
.rate.featured { background: var(--sand); }
.rate .rate-tag {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass);
}
.rate h3 { font-size: 1.8rem; }
.rate .price { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 3.4rem); line-height: 1; }
.rate .price small {
  font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-faint); margin-left: 0.5rem;
}
.rate ul { list-style: none; display: grid; gap: 0.65rem; }
.rate li { position: relative; padding-left: 1.35rem; font-size: 0.9rem; color: var(--ink-soft); }
.rate li::before {
  content: ""; position: absolute; left: 0; top: 0.66em;
  width: 5px; height: 5px; border-radius: 50%; background: var(--brass-lt);
}

/* included grid */
.included { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 640px)  { .included { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .included { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.inc { background: var(--bone); padding: clamp(1.4rem, 2.8vw, 2rem); display: grid; gap: 0.5rem; align-content: start; }
.inc h4 { font-family: var(--serif); font-size: 1.3rem; }
.inc p { font-size: 0.88rem; color: var(--ink-soft); }

/* ---------- steps ---------- */
.steps { display: grid; gap: clamp(1.75rem, 3.5vw, 2.75rem); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { display: grid; gap: 0.8rem; align-content: start; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.step h3 { font-size: 1.5rem; }
.step p { color: var(--ink-soft); font-size: 0.92rem; }

/* ---------- quotes ---------- */
.quotes { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { display: grid; gap: 1.4rem; align-content: space-between; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.quote blockquote { font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.45rem); line-height: 1.32; font-style: italic; }
.quote footer { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.quote cite { font-style: normal; color: var(--ink); display: block; letter-spacing: 0.1em; }

/* ---------- faq ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding-block: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  font-family: var(--serif); font-size: clamp(1.2rem, 2vw, 1.55rem);
  transition: color 0.35s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass); }
.faq summary .plus { flex: none; width: 22px; height: 22px; position: relative; }
.faq summary .plus::before, .faq summary .plus::after {
  content: ""; position: absolute; inset: 50% 0 auto 0; height: 1px;
  background: var(--ink-faint); transition: transform 0.4s var(--ease);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] summary .plus::after { transform: rotate(0deg); }
.faq .faq-body { padding-bottom: 1.6rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.6rem; }
.field { display: grid; gap: 0.5rem; }
.field label {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint);
}
.field input, .field select, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--line);
  padding: 0.7rem 0; font-size: 1rem; font-weight: 300; border-radius: 0; width: 100%;
  transition: border-color 0.35s var(--ease);
}
.field select { -webkit-appearance: none; appearance: none; cursor: pointer; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--brass); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-faint); }
.field-row { display: grid; gap: 1.6rem; }
@media (min-width: 700px) { .field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-note { font-size: 0.8rem; color: var(--ink-faint); }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* contact details */
.info { display: grid; gap: 1.8rem; }
.info dt { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 0.35rem; }
.info dd { font-size: 1.02rem; }
.info dd a { border-bottom: 1px solid var(--line); transition: border-color 0.35s var(--ease); }
.info dd a:hover { border-bottom-color: var(--ink); }

/* ---------- page hero ---------- */
.page-hero {
  padding-top: clamp(140px, 20vw, 220px);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.page-hero .h1 { margin-block: 1.2rem 1.4rem; }

/* ---------- cta band ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band .cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-band .cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band .cta-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(62,48,26,0.55), rgba(62,48,26,0.72));
}
.cta-inner {
  position: relative; z-index: 1; color: var(--bone);
  padding-block: clamp(4.5rem, 10vw, 8rem);
  display: grid; gap: 2.25rem; justify-items: center; text-align: center;
}
.cta-inner .eyebrow { color: rgba(248, 245, 240, 0.8); }
.cta-inner .btn { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.cta-inner .btn:hover { background: transparent; color: var(--bone); }
.cta-inner .btn-outline { background: transparent; color: var(--bone); border-color: rgba(248,245,240,0.45); }
.cta-inner .btn-outline:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ---------- footer ---------- */
.site-footer { background: var(--sand); border-top: 1px solid var(--line); }
.footer-top { display: grid; gap: 2.5rem; padding-block: clamp(3rem, 6vw, 5rem); }
@media (min-width: 880px) {
  .footer-top { grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(0, 1fr)); gap: 3rem; }
}
.footer-brand .brand-name { font-size: 1.6rem; }
.footer-brand p { color: var(--ink-soft); max-width: 40ch; font-size: 0.92rem; margin-top: 1rem; }
.footer-col h4 {
  font-family: var(--sans); font-size: 0.64rem; font-weight: 400;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; display: grid; gap: 0.6rem; }
.footer-col a, .footer-col li { color: var(--ink-soft); font-size: 0.92rem; }
.footer-col a { transition: color 0.35s var(--ease); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between;
  padding-block: 1.6rem; border-top: 1px solid var(--line);
  font-size: 0.74rem; letter-spacing: 0.08em; color: var(--ink-faint);
}

/* ---------- motion ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Sona-informed additions: full-bleed hero signature,
   amenity strip, concierge cards, mailing list
   ============================================================ */

/* ---------- hero signature (script wordmark across the base) ---------- */
.hero-signature {
  position: absolute;
  left: var(--gut); right: var(--gut);
  bottom: calc(var(--gut) + clamp(0.5rem, 1.6vw, 1.25rem));
  z-index: 1;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: var(--sig-h);
  line-height: 0.9;
  letter-spacing: 0.06em;
  color: rgba(248, 245, 240, 0.88);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}

/* hero variant that leads with the image, not a headline block */
.hero-quiet { align-items: center; text-align: center; }
.hero-quiet .hero-inner { display: grid; justify-items: center; gap: 1.25rem; }
.hero-quiet .lede { margin-inline: auto; text-align: center; }

/* ---------- amenity strip ---------- */
.amenities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.amenity {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(1.5rem, 3vw, 2.4rem) clamp(0.75rem, 1.6vw, 1.25rem);
  display: grid; gap: 0.85rem; justify-items: center; align-content: start;
  text-align: center;
}
.amenity img {
  height: clamp(46px, 5.4vw, 64px);
  width: auto;
  opacity: 0.92;
}
.amenity span {
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.5;
}
@media (min-width: 700px)  { .amenities { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .amenities { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- centred editorial block ---------- */
.centred {
  display: grid; justify-items: center; text-align: center;
  gap: 1.5rem; max-width: 62ch; margin-inline: auto;
}
.centred .body-text { text-align: center; }
.caps-head {
  font-family: var(--sans);
  font-size: clamp(0.72rem, 1.1vw, 0.84rem);
  font-weight: 400; letter-spacing: 0.3em; text-transform: uppercase;
  line-height: 1.9; color: var(--ink);
}

/* ---------- concierge ---------- */
.concierge { display: grid; gap: clamp(1.75rem, 3.5vw, 3rem); }
@media (min-width: 860px) { .concierge { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.conc { display: grid; gap: 0.9rem; align-content: start; }
.conc .media { margin-bottom: 0.4rem; }
.conc h3 { font-size: 1.45rem; }
.conc p { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- mailing list ---------- */
.signup { background: var(--espresso); color: var(--cream); }
.signup-inner {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  display: grid; gap: clamp(2rem, 4vw, 3.5rem);
  justify-items: center; text-align: center;
}
/* the clip is portrait, so it sits beside the form rather than behind it */

.signup-body { display: grid; gap: 1.5rem; justify-items: center; width: 100%; }
.signup-body > p:not(.form-note) { max-width: 52ch; }

.signup h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 18ch; }
.signup p { color: rgba(245, 245, 239, 0.72); max-width: 48ch; font-size: 0.95rem; }
.signup form {
  display: grid; gap: 0.75rem; width: 100%; max-width: 620px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) { .signup form { max-width: none; } }
@media (min-width: 660px) { .signup form { grid-template-columns: 1fr 1fr auto; } }
.signup input {
  background: var(--cream); color: var(--ink); border: 1px solid transparent;
  padding: 0.95rem 1.1rem; font-size: 0.95rem; width: 100%;
  transition: border-color 0.35s var(--ease);
}
.signup input::placeholder { color: #a2968a; }
.signup input:focus { outline: none; border-color: var(--olive-lt); }
.signup form button {
  background: var(--cream); color: var(--espresso); border: 1px solid var(--cream);
  padding: 0.95rem 1.9rem; font-size: 0.68rem;
  letter-spacing: 0.22em; text-transform: uppercase; white-space: nowrap;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.signup form button:hover { background: transparent; color: var(--cream); }
.signup .form-note { color: rgba(245, 245, 239, 0.5); }

/* ---------- olive button variant ---------- */
.btn-olive { background: var(--olive); border-color: var(--olive); color: var(--bone); }
.btn-olive:hover { background: transparent; color: var(--olive); border-color: var(--olive); }

/* ---------- full-bleed image band ---------- */
.bleed { width: 100%; }
.bleed img { width: 100%; height: clamp(320px, 62vh, 720px); object-fit: cover; }

/* ---------- floorplan ---------- */
.floorplan {
  border: 1px solid var(--line);
  background: var(--cream);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.floorplan img { width: 100%; height: auto; }
.floorplan-legend {
  display: grid;
  gap: 0.6rem 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: clamp(1.25rem, 2.5vw, 1.75rem);
  border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .floorplan-legend { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.floorplan-legend li {
  list-style: none;
  display: flex; align-items: baseline; gap: 0.7rem;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
}
.floorplan-legend .num { flex: none; }

/* brand mark in the footer */
.footer-logo { height: 62px; width: auto; margin-bottom: 1rem; }

/* ============================================================
   Top marquee — the hand-drawn Studio House icons, running
   horizontally across the top of the screen.
   ============================================================ */
:root { --marq-h: 56px; --sig-h: clamp(2.4rem, 9.5vw, 8rem); }
@media (max-width: 640px) { :root { --marq-h: 46px; } }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 120;
  height: var(--marq-h);
  background: var(--espresso);
  border-bottom: 1px solid rgba(248, 245, 240, 0.14);
  overflow: hidden;
  display: flex;
  align-items: center;
}

/* Fade the ends so items enter and leave rather than pop. Overlay gradients
   rather than mask-image: masking a position:fixed element is a known
   compositing weak spot in some engines. */
.topbar::before,
.topbar::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(28px, 5vw, 64px);
  z-index: 2;
  pointer-events: none;
}
.topbar::before { left: 0;  background: linear-gradient(to right, var(--espresso), transparent); }
.topbar::after  { right: 0; background: linear-gradient(to left,  var(--espresso), transparent); }

.marq {
  display: flex;
  align-items: center;
  gap: clamp(1.9rem, 3.8vw, 3.25rem);
  padding-right: clamp(1.9rem, 3.8vw, 3.25rem);
  animation: marq 54s linear infinite;
  will-change: transform;
}
.marq-item { display: flex; align-items: center; gap: 0.7rem; flex: none; }
.marq-item img {
  height: calc(var(--marq-h) - 20px);
  width: auto;
  opacity: 0.95;
}
.marq-item span {
  font-size: 0.54rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.72);
  white-space: nowrap;
}
/* the track holds two copies, so -50% is one seamless lap */
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topbar:hover .marq { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .marq { animation: none; } }

/* everything else sits below the bar */
.site-header { top: var(--marq-h); }
.nav-panel { top: var(--marq-h); }
.hero { padding-top: calc(clamp(130px, 18vw, 200px) + var(--marq-h)); }
.page-hero { padding-top: calc(clamp(140px, 20vw, 220px) + var(--marq-h)); }
html { scroll-padding-top: calc(var(--marq-h) + 96px); }

/* ============================================================
   Chocolate sections — brand dark bands breaking up the cream
   ============================================================ */
.section-dark { background: var(--espresso); color: var(--cream); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--cream); }
.section-dark .eyebrow { color: rgba(248, 245, 240, 0.7); }
.section-dark .body-text,
.section-dark .lede,
.section-dark p { color: rgba(248, 245, 240, 0.74); }
.section-dark .body-text strong { color: var(--cream); }
.section-dark .num { color: rgba(248, 245, 240, 0.5); }
.section-dark .step,
.section-dark .quote { border-top-color: rgba(248, 245, 240, 0.22); }
.section-dark .spec { border-color: rgba(248, 245, 240, 0.28); color: rgba(248, 245, 240, 0.78); }
.section-dark cite { color: var(--cream); }
.section-dark .rule,
.section-dark .disc-list { border-color: rgba(248, 245, 240, 0.22); }

.section-dark .btn {
  background: var(--cream); color: var(--espresso); border-color: var(--cream);
}
.section-dark .btn:hover { background: transparent; color: var(--cream); }
.section-dark .btn-outline {
  background: transparent; color: var(--cream); border-color: rgba(248, 245, 240, 0.4);
}
.section-dark .btn-outline:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.section-dark .link-arrow { color: var(--cream); border-bottom-color: rgba(248, 245, 240, 0.35); }
.section-dark .link-arrow:hover { border-bottom-color: var(--cream); }

/* bordered grids sitting on the dark band */
.section-dark .included,
.section-dark .rates { background: rgba(248, 245, 240, 0.22); border-color: rgba(248, 245, 240, 0.22); }
.section-dark .inc,
.section-dark .rate { background: var(--espresso); }
.section-dark .rate.featured { background: #362a17; }
.section-dark .inc p, .section-dark .rate li { color: rgba(248, 245, 240, 0.72); }
.section-dark .rate li::before { border-color: rgba(248, 245, 240, 0.55); }

/* ---------- footer in brand dark ---------- */
.site-footer { background: var(--espresso); border-top: 0; color: var(--cream); }
.footer-brand p { color: rgba(248, 245, 240, 0.7); }
.footer-col h4 { color: rgba(248, 245, 240, 0.5); }
.footer-col a, .footer-col li { color: rgba(248, 245, 240, 0.78); }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  border-top-color: rgba(248, 245, 240, 0.18);
  color: rgba(248, 245, 240, 0.5);
}
/* the mailing band now sits directly above a dark footer */
.signup { border-bottom: 1px solid rgba(248, 245, 240, 0.16); }

/* ---------- arched frames ----------
   A semicircular top on a 3:4 frame (radius = half the width = 37.5% of the
   height), echoing the doorways and the tub-room window. */
.media.arch { border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; }
.media.arch img { border-radius: inherit; }

/* A quieter line sitting under a display heading: pair it tight to the
   heading, then give it room before the paragraph that follows. */
.sub { color: var(--ink-soft); margin-bottom: 1.6rem; }
.page-hero .h1:has(+ .sub) { margin-bottom: 0.4rem; }

/* Solid light button, for use over a photograph */
.btn-light { background: var(--cream); color: var(--espresso); border-color: var(--cream); }
.btn-light:hover { background: transparent; color: var(--cream); border-color: var(--cream); }

/* ---------- the three Sweenshots locations ---------- */
.locations { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (min-width: 820px) { .locations { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loc {
  background: var(--bone);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: grid; gap: 0.7rem; align-content: start;
  transition: background 0.4s var(--ease);
}
a.loc:hover { background: var(--sand); }
.loc h3 { font-size: 1.5rem; }
.loc p { color: var(--ink-soft); font-size: 0.94rem; line-height: 1.55; }
.loc .link-arrow { margin-top: 0.5rem; justify-self: start; }
.loc-here { background: var(--sand); }
.loc-here .spec { margin-top: 0.5rem; justify-self: start; }

/* the locations count in the facts strip is a link */
.fact-link { display: block; transition: color 0.35s var(--ease); }
.fact-link:hover .fact-n { color: var(--brand); }
.fact-link .fact-l { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); }
.fact-link:hover .fact-l { text-decoration-color: var(--brand); }

/* ---------- full-size room lead ----------
   The first photograph of each room runs the full width of the column and is
   not cropped, so people scouting can see the whole space. */
.room-lead {
  margin: 0 auto clamp(0.6rem, 1.4vw, 1rem);
  background: var(--clay);
  overflow: hidden;
}
.room-lead img { width: 100%; height: auto; display: block; }

/* ---------- room clips ----------
   Short silent loops sitting among the stills. They keep their own
   proportions like every other frame in the strip. */
.video-frame { position: relative; background: var(--clay); overflow: hidden; }
.video-frame video {
  width: 100%;
  height: auto;
  display: block;
}
.video-badge {
  position: absolute;
  left: 0.75rem; bottom: 0.75rem;
  z-index: 2;
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.6rem;
  background: rgba(62, 48, 26, 0.72);
  color: var(--cream);
  font-size: 0.54rem; letter-spacing: 0.22em; text-transform: uppercase;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.video-badge::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--cream); flex: none;
}
/* visitors who ask for less motion get the still and a control instead */
@media (prefers-reduced-motion: reduce) {
  .video-badge { display: none; }
}

/* a plain-language name under a numbered room heading */
.room-sub {
  margin-top: 0.5rem;
  font-size: 0.68rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* inline links inside body copy */
.inline-link {
  border-bottom: 1px solid var(--line);
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.inline-link:hover { border-bottom-color: var(--brand); color: var(--brand); }

/* ---------- room picker in the sign-up ---------- */
.chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.4vw, 1.1rem);
  width: 100%;
  margin-block: clamp(0.5rem, 1.5vw, 1rem);
}
@media (min-width: 560px)  { .chips { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .chips { grid-template-columns: repeat(9, minmax(0, 1fr)); } }
.chip {
  display: grid;
  justify-items: center;
  gap: 0.5rem;
  padding: 0.85rem 0.4rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip img {
  height: clamp(42px, 5.2vw, 58px);
  width: auto;
  opacity: 0.75;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.chip span {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 245, 240, 0.55);
  line-height: 1.4;
  transition: color 0.3s var(--ease);
}
.chip:hover img { opacity: 1; transform: translateY(-2px); }
.chip:hover span { color: rgba(248, 245, 240, 0.9); }
.chip[aria-pressed="true"] {
  background: rgba(248, 245, 240, 0.09);
  border-color: rgba(248, 245, 240, 0.28);
}
.chip[aria-pressed="true"] img { opacity: 1; }
.chip[aria-pressed="true"] span { color: var(--cream); }

