/* Solas Bathrooms - site styles
   Stone surfaces, navy ink, one gold accent. Cormorant for display, Jost for everything else. */

@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 400 500; font-display: swap; src: url('/assets/fonts/cormorant-garamond-italic.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('/assets/fonts/jost.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #010b1f;
  --navy-2: #06142c;
  --navy-3: #0d1f3d;
  --ink: #0b1628;
  --ink-2: #3d4657;
  --ink-3: #6b7280;
  --stone: #f4f0e8;
  --stone-2: #ebe4d7;
  --stone-3: #ded5c4;
  --gold: #d6b17c;
  --gold-deep: #8a6a3a;
  --on-navy: #ece7de;
  --on-navy-2: #a9b0bf;
  --line: rgba(11, 22, 40, 0.14);
  --line-navy: rgba(236, 231, 222, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;

  --wrap: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(88px, 12vw, 168px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--gold); outline-offset: 4px; }
::selection { background: var(--gold); color: var(--navy); }

.skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: var(--gold); color: var(--navy); padding: 10px 16px; }
.skip:focus { left: 12px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- Type ---------- */

.display, h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.4vw, 6.75rem); line-height: 0.98; }
h2 { font-size: clamp(2.35rem, 4.8vw, 4.25rem); line-height: 1.04; }
h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; letter-spacing: -0.005em; }
h1 em, h2 em, h3 em { font-style: italic; color: var(--gold-deep); }
.on-navy h1 em, .on-navy h2 em, .on-navy h3 em { color: var(--gold); }
p { text-wrap: pretty; }
/* Keyword line sits inside the h1 for search, styled as the eyebrow above the display line */
h1 .eyebrow { display: flex; width: fit-content; font-family: var(--sans); line-height: 1.5; letter-spacing: 0.28em; margin-bottom: 28px; text-wrap: wrap; }
h1 .h1-main { display: block; }
.prose { max-width: 42em; }
.prose h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); margin: 56px 0 18px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--ink-2); font-weight: 300; }
.prose p + p { margin-top: 16px; }
.prose ul { margin-top: 16px; border-top: 1px solid var(--line); }
.prose ul li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 8px; height: 1px; background: var(--gold-deep); }
.prose a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--gold-deep), var(--gold-deep)) left bottom / 100% 1px no-repeat; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); margin-top: 24px; }
.compare > div { padding: 28px; }
.compare > div + div { border-left: 1px solid var(--line); }
.compare h3 { margin-bottom: 14px; }
.compare li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--ink-2); font-weight: 300; }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 1px solid var(--line); } }
.related { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.related a { padding: 28px 24px 28px 0; text-decoration: none; display: block; }
.related a + a { padding-left: 24px; border-left: 1px solid var(--line); }
.related .num { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-deep); }
.related h3 { margin: 10px 0 6px; transition: color .3s; }
.related a:hover h3 { color: var(--gold-deep); }
.related p { font-size: 0.95rem; color: var(--ink-3); font-weight: 300; }
@media (max-width: 800px) { .related { grid-template-columns: 1fr; } .related a + a { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }
.areas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 clamp(24px, 4vw, 64px); border-top: 1px solid var(--line); }
.areas li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.areas h3 { margin-bottom: 8px; }
.areas p { color: var(--ink-2); font-weight: 300; font-size: 0.98rem; }
@media (max-width: 700px) { .areas { grid-template-columns: 1fr; } }
.notfound { min-height: 100svh; display: flex; align-items: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.on-navy .eyebrow { color: var(--gold); }

.lede { font-size: clamp(1.05rem, 1.35vw, 1.2rem); line-height: 1.7; color: var(--ink-2); font-weight: 300; max-width: 34em; }
.on-navy .lede { color: var(--on-navy-2); }

.star { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 30px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #e4c594; }
.btn-navy { background: var(--navy); color: var(--on-navy); }
.btn-navy:hover { background: var(--navy-3); }
.btn-line { border-color: currentColor; }
.on-navy .btn-line { color: var(--on-navy); border-color: rgba(236,231,222,.4); }
.on-navy .btn-line:hover { border-color: var(--gold); color: var(--gold); }
.btn-line:hover { color: var(--gold-deep); }

.link {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  text-decoration: none; padding-bottom: 6px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .3s;
}
.link:hover { color: var(--gold-deep); background-size: 40% 1px; }
.on-navy .link:hover { color: var(--gold); }
.link svg { width: 18px; height: 10px; transition: transform .4s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--on-navy);
  transition: background-color .5s var(--ease), border-color .5s, transform .5s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .site-header.is-open { background: rgba(1, 11, 31, 0.96); border-bottom-color: var(--line-navy); backdrop-filter: blur(10px); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: 92px; transition: height .5s var(--ease); }
.is-solid .header-inner { height: 76px; }
.brand { display: block; width: 168px; flex: none; }
.brand img { width: 100%; }
.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); }
.nav a:not(.btn) {
  font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; text-decoration: none;
  color: var(--on-navy-2); padding: 6px 0; position: relative; transition: color .3s;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--on-navy); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { min-height: 44px; padding: 0 22px; }
.menu-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 1px; background: var(--on-navy); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle span + span { margin-top: 8px; }
.is-open .menu-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.is-open .menu-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

@media (max-width: 1020px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: 76px 0 auto 0; height: calc(100svh - 76px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    padding: 32px var(--gutter) 48px; background: var(--navy);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .4s var(--ease), transform .4s var(--ease), visibility .4s;
  }
  .is-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 2rem; letter-spacing: 0; text-transform: none; color: var(--on-navy); padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line-navy); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 32px; width: 100%; min-height: 56px; }
  .header-inner, .is-solid .header-inner { height: 76px; }
  .brand { width: 140px; }
}

/* ---------- Hero (home) ---------- */

.hero {
  position: relative; min-height: 100svh; background: var(--navy); color: var(--on-navy);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 20% 70%, rgba(214,177,124,.10), transparent 70%);
}
.hero-copy {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 160px clamp(20px, 5vw, 80px) clamp(56px, 8vw, 104px) max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.hero-copy h1 { margin: 0 0 32px; }
.hero-copy .lede { max-width: 30em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.hero-media { position: relative; min-height: 100%; overflow: hidden; }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 45%; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(1,11,31,.6) 14%, rgba(1,11,31,0) 40%); }
.hero-caption {
  position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); bottom: clamp(56px, 8vw, 104px);
  display: flex; align-items: center; gap: 12px;
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--on-navy);
}
.scroll-cue { position: absolute; left: 50%; bottom: 0; width: 1px; height: 72px; background: linear-gradient(var(--gold), transparent); z-index: 2; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: 58svh auto; min-height: 0; }
  .hero-media { grid-row: 1; }
  .hero-media::after { background: linear-gradient(0deg, var(--navy) 0%, rgba(1,11,31,.92) 18%, rgba(1,11,31,.25) 55%, rgba(1,11,31,.55) 100%); }
  .hero-copy { grid-row: 2; padding: 8px var(--gutter) 72px; margin-top: -80px; }
  .hero-caption, .scroll-cue { display: none; }
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero { position: relative; background: var(--navy); color: var(--on-navy); padding: clamp(160px, 20vw, 240px) 0 clamp(72px, 9vw, 120px); overflow: hidden; }
.page-hero.has-image { min-height: 78svh; display: flex; align-items: flex-end; }
.page-hero-bg { position: absolute; inset: 0; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(1,11,31,.95) 0%, rgba(1,11,31,.55) 45%, rgba(1,11,31,.35) 100%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { margin: 0 0 28px; max-width: 12em; }
.page-hero .lede { max-width: 36em; }

/* ---------- Sections ---------- */

.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * .6) 0; }
.bg-stone-2 { background: var(--stone-2); }
.bg-navy { background: var(--navy); color: var(--on-navy); }

.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }

/* Intro */
.intro .split { align-items: start; }
.intro-label { grid-column: 1 / 4; padding-top: 14px; }
.intro-body { grid-column: 4 / 13; }
.intro-body .display { font-size: clamp(1.9rem, 3.6vw, 3.3rem); line-height: 1.14; letter-spacing: -0.01em; }
.intro-body .display em { color: var(--gold-deep); }
.intro-cols { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); margin-top: clamp(40px, 5vw, 72px); padding-top: 32px; border-top: 1px solid var(--line); color: var(--ink-2); font-weight: 300; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 112px); }
.facts li { padding: 28px 24px 0 0; }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.facts strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.1; margin-bottom: 8px; }
.facts span { font-size: 0.9rem; color: var(--ink-3); }

@media (max-width: 900px) {
  .intro-label, .intro-body { grid-column: 1 / -1; }
  .intro-cols { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

/* Section heads */
.head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); align-items: end; margin-bottom: clamp(48px, 6vw, 88px); }
.head > div:first-child { grid-column: 1 / 8; }
.head > div:first-child h2 { margin-top: 24px; }
.head > p, .head > div + div { grid-column: 9 / 13; color: var(--ink-2); font-weight: 300; }
.on-navy .head > p { color: var(--on-navy-2); }
@media (max-width: 900px) { .head > div:first-child, .head > p, .head > div + div { grid-column: 1 / -1; } }

/* The range - editorial mosaic */
.range { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 36px); }
.tile { position: relative; display: block; text-decoration: none; color: inherit; }
.tile-media { position: relative; overflow: hidden; background: var(--stone-3); }
.tile-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover .tile-media img { transform: scale(1.04); }
.tile-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding-top: 20px; }
.tile-meta h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
.tile-meta .num { font-size: 0.72rem; letter-spacing: 0.2em; color: var(--gold-deep); }
.tile p { color: var(--ink-3); font-size: 0.95rem; font-weight: 300; margin-top: 6px; max-width: 30em; }
.t1 { grid-column: 1 / 8; } .t1 .tile-media { aspect-ratio: 4 / 3.2; }
.t2 { grid-column: 9 / 13; margin-top: clamp(40px, 10vw, 160px); } .t2 .tile-media { aspect-ratio: 3 / 4; }
.t3 { grid-column: 1 / 5; } .t3 .tile-media { aspect-ratio: 3 / 4; }
.t4 { grid-column: 5 / 9; margin-top: clamp(40px, 8vw, 120px); } .t4 .tile-media { aspect-ratio: 3 / 4; }
.t5 { grid-column: 9 / 13; } .t5 .tile-media { aspect-ratio: 3 / 4; }
@media (max-width: 900px) {
  .range { grid-template-columns: 1fr 1fr; }
  .t1 { grid-column: 1 / -1; }
  .t2, .t3, .t4, .t5 { grid-column: auto; margin-top: 0; }
  .t4 { margin-top: 0; }
}
@media (max-width: 560px) { .range { grid-template-columns: 1fr; } }

/* Process */
.process { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 112px); align-items: start; }
.process-media { position: sticky; top: 110px; }
.process-media .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 36px 0; border-top: 1px solid var(--line-navy); }
.steps li:last-child { border-bottom: 1px solid var(--line-navy); }
.steps li::before { content: "0" counter(step); font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--on-navy-2); font-weight: 300; max-width: 34em; }
.on-stone .steps li { border-color: var(--line); }
.on-stone .steps li::before { color: var(--gold-deep); }
.on-stone .steps p { color: var(--ink-2); }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr; }
  .process-media { position: static; }
  .process-media .frame { aspect-ratio: 16 / 11; }
  .steps li { grid-template-columns: 52px 1fr; gap: 16px; }
  .steps li::before { font-size: 2rem; }
}

/* Statement */
.statement { position: relative; min-height: 88svh; display: flex; align-items: center; color: var(--on-navy); overflow: hidden; background: var(--navy); }
.statement-bg { position: absolute; inset: -8% 0; }
.statement-bg img { width: 100%; height: 100%; object-fit: cover; }
.statement::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(1,11,31,.88) 0%, rgba(1,11,31,.5) 55%, rgba(1,11,31,.2) 100%); }
.statement .wrap { position: relative; z-index: 1; }
.statement blockquote { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.06; letter-spacing: -0.015em; max-width: 13em; text-wrap: balance; }
.statement blockquote em { color: var(--gold); }
.statement .star { width: 22px; height: 22px; margin-bottom: 36px; }

/* Finance band */
.finance-band { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; }
.finance-band .copy { grid-column: 1 / 7; }
.finance-band .copy h2 { margin: 24px 0 24px; }
.finance-band .card { grid-column: 8 / 13; background: var(--navy); color: var(--on-navy); padding: clamp(32px, 4vw, 56px); position: relative; }
.finance-band .card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(214,177,124,.28); pointer-events: none; }
.finance-band .card ol { counter-reset: f; margin: 8px 0 32px; }
.finance-band .card li { counter-increment: f; display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line-navy); font-weight: 300; }
.finance-band .card li::before { content: counter(f); font-family: var(--serif); color: var(--gold); font-size: 1.4rem; line-height: 1.2; width: 18px; flex: none; }
.finance-band .card .small { color: var(--on-navy-2); }
.small { font-size: 0.8rem; line-height: 1.6; color: var(--ink-3); }
@media (max-width: 900px) { .finance-band .copy, .finance-band .card { grid-column: 1 / -1; } }

/* Inspiration rail */
.rail-wrap { position: relative; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 380px); gap: clamp(16px, 2vw, 28px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scrollbar-width: none; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.rail::-webkit-scrollbar { display: none; }
.rail figure { scroll-snap-align: start; }
.rail .frame { aspect-ratio: 3 / 4; overflow: hidden; background: var(--stone-3); }
.rail img { width: 100%; height: 100%; object-fit: cover; }
.rail figcaption { margin-top: 14px; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); }
.rail-controls { display: flex; gap: 10px; }
.rail-controls button { width: 52px; height: 52px; border: 1px solid var(--line); background: transparent; cursor: pointer; display: grid; place-items: center; transition: border-color .3s, color .3s; }
.rail-controls button:hover { border-color: var(--ink); }
.rail-controls svg { width: 18px; height: 10px; }
.rail-controls .prev svg { transform: scaleX(-1); }

/* Visit */
.visit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(32px, 4vw, 64px); }
.visit-info { grid-column: 1 / 6; }
.visit-info h2 { margin: 24px 0 32px; }
.visit-form { grid-column: 7 / 13; }
.detail-list { border-top: 1px solid var(--line); margin-top: 40px; }
.detail-list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.detail-list .k { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); padding-top: 4px; }
.detail-list a { text-decoration: none; background: linear-gradient(var(--gold-deep), var(--gold-deep)) left bottom / 100% 1px no-repeat; }
.on-navy .detail-list { border-color: var(--line-navy); }
.on-navy .detail-list li { border-color: var(--line-navy); }
.on-navy .detail-list .k { color: var(--on-navy-2); }
@media (max-width: 900px) { .visit-info, .visit-form { grid-column: 1 / -1; } }

/* Form */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 24px; }
.form .full { grid-column: 1 / -1; }
.field label { display: block; font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 10px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--stone-3);
  padding: 10px 0 12px; font-size: 1.05rem; font-weight: 300; color: var(--ink); border-radius: 0;
  transition: border-color .3s;
}
.field select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a6a3a'/%3E%3C/svg%3E") right 4px center no-repeat; padding-right: 24px; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold-deep); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.chips input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.chips label { margin: 0; cursor: pointer; padding: 11px 18px; border: 1px solid var(--stone-3); font-size: 0.82rem; letter-spacing: 0.04em; text-transform: none; color: var(--ink-2); transition: all .3s; }
.chips input:checked + label { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.chips input:focus-visible + label { outline: 1px solid var(--gold); outline-offset: 3px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form-status { font-size: 0.9rem; color: var(--gold-deep); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

.map { margin-top: clamp(64px, 8vw, 112px); aspect-ratio: 21 / 8; background: var(--stone-3); filter: grayscale(1) contrast(.95); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 700px) { .map { aspect-ratio: 4 / 3; } }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .eyebrow::before { display: none; }
.cta-band h2 { max-width: 14em; margin: 28px auto 24px; }
.cta-band .lede { margin: 0 auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Inner-page components ---------- */

.chapter { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: center; padding: clamp(56px, 7vw, 104px) 0; border-top: 1px solid var(--line); }
.chapter:first-child { border-top: 0; padding-top: 0; }
.chapter-media { grid-column: 1 / 7; }
.chapter-media .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.chapter-media img { width: 100%; height: 100%; object-fit: cover; }
.chapter-copy { grid-column: 8 / 13; }
.chapter.flip .chapter-media { grid-column: 7 / 13; order: 2; }
.chapter.flip .chapter-copy { grid-column: 1 / 6; order: 1; }
.chapter-copy .num { font-size: 0.72rem; letter-spacing: 0.24em; color: var(--gold-deep); text-transform: uppercase; }
.chapter-copy h2 { font-size: clamp(2.1rem, 3.8vw, 3.4rem); margin: 20px 0 22px; }
.chapter-copy p { color: var(--ink-2); font-weight: 300; }
.chapter-copy p + p { margin-top: 16px; }
.ticks { margin-top: 28px; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.98rem; }
.ticks .star { width: 10px; height: 10px; color: var(--gold-deep); }
@media (max-width: 900px) {
  .chapter-media, .chapter-copy, .chapter.flip .chapter-media, .chapter.flip .chapter-copy { grid-column: 1 / -1; order: 0; }
  .chapter-media .frame { aspect-ratio: 4 / 3.4; }
}

.masonry { columns: 3 300px; column-gap: clamp(16px, 2vw, 28px); }
.masonry figure { break-inside: avoid; margin-bottom: clamp(16px, 2vw, 28px); overflow: hidden; background: var(--stone-3); position: relative; }
.masonry img { width: 100%; transition: transform 1.4s var(--ease); }
.masonry figure:hover img { transform: scale(1.03); }
.masonry figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; background: linear-gradient(0deg, rgba(1,11,31,.7), transparent); color: var(--on-navy); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0; transition: opacity .5s var(--ease); }
.masonry figure:hover figcaption { opacity: 1; }
@media (hover: none) { .masonry figcaption { opacity: 1; } }

.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; padding: 26px 0; font-family: var(--serif); font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--gold-deep); transition: transform .4s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { padding: 0 0 28px; max-width: 44em; color: var(--ink-2); font-weight: 300; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy); color: var(--on-navy-2); padding: clamp(72px, 9vw, 120px) 0 36px; font-size: 0.95rem; }
.footer-top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px clamp(24px, 3vw, 48px); padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line-navy); }
.footer-brand { grid-column: 1 / 4; }
.footer-brand img { width: 210px; }
.footer-brand p { margin-top: 20px; max-width: 22em; font-weight: 300; }
.footer-col { grid-column: span 2; }
.footer-col.wide { grid-column: span 3; }
.footer-h { font-size: 0.7rem; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; transition: color .3s; }
.footer-col a:hover { color: var(--on-navy); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 0.78rem; letter-spacing: 0.04em; }
@media (max-width: 900px) {
  .footer-brand { grid-column: 1 / -1; }
  .footer-col, .footer-col.wide { grid-column: span 6; }
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .reveal-img .frame, .js .reveal-img.tile-media, .js .tile .tile-media { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease); }
  .js .reveal-img.in .frame, .js .reveal-img.in.tile-media, .js .tile.in .tile-media { clip-path: inset(0 0 0 0); }
  .hero-copy > * { animation: rise 1.3s var(--ease) both; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .24s; }
  .hero-copy > *:nth-child(4) { animation-delay: .36s; }
  .hero-media img { animation: settle 2.4s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  @keyframes settle { from { opacity: 0; transform: scale(1.06); } to { opacity: 1; transform: none; } }
}
