/* Hamlet's Painting: site.css (single stylesheet, no build step)
   Palette: Oxblood #6E1F24 · Yew #1F2A24 · Parchment #F4EEE3 · Limewash #E8DFCF · Gilt #B98A3E
   Type: Fraunces (display) + Libre Caslon Text (text/UI) */

/* ---------- Fonts (self-hosted, 2 families / 4 files) ---------- */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/libre-caslon-text-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Libre Caslon Text"; src: url("/assets/fonts/libre-caslon-text-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --ox: #6E1F24;
  --yew: #1F2A24;
  --parch: #F4EEE3;
  --paper: #FBF8F2;
  --lime: #E8DFCF;
  --gilt: #B98A3E;
  --gilt-d: #8A5A1E;
  --ink: #26221E;
  --ink-2: #4A433B;
  --muted: #5E564C;
  --rule: #CFC4B1;
  --line: #8C8273;
  --err: #9B1C1C;
  --ok: #2F5A3A;
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --text: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --g: clamp(1.25rem, 4vw, 4rem);
  --max: 82rem;
  --mast: 5.5rem;
  --navh: 3.25rem;
  --strip: 4.25rem;
  --edge: max(var(--g), calc((100% - var(--max)) / 2));
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 1rem; }
body {
  margin: 0; background: var(--parch); color: var(--ink);
  font-family: var(--text); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.012em; text-wrap: balance; }
h1 em, h2 em { font-weight: 400; font-style: italic; color: var(--ox); }
p { margin: 0 0 1em; }
a { color: var(--ox); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ox); outline-offset: 3px; }
.sec-dark :focus-visible, .site-footer :focus-visible, .mbar :focus-visible, .strip :focus-visible, .cta-strip :focus-visible { outline-color: var(--gilt); }
[hidden] { display: none !important; }
.skip { position: absolute; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: var(--parch); padding: .6rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; color: var(--parch); }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--g)); margin-inline: auto; padding-inline: var(--g); }

/* Placeholder chips: quiet, clearly marked slots for facts still to be supplied */
.ph {
  display: inline-block; font-family: var(--text); font-style: normal; font-weight: 400;
  font-size: .86em; letter-spacing: .01em; line-height: 1.5; color: var(--muted);
  border: 1px dashed var(--line); padding: .02em .45em; vertical-align: baseline;
}
.sec-dark .ph, .site-footer .ph, .strip .ph, .cta-strip .ph { color: #DCD2C1; border-color: rgba(244, 238, 227, .45); }

/* ---------- Header: masthead + ruled nav ---------- */
.site-header { background: var(--parch); position: relative; z-index: 10; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--mast); padding-inline: var(--edge); }
.brand { display: flex; align-items: center; gap: .9rem; color: var(--ink); text-decoration: none; min-width: 0; }
.brand img { width: 3.75rem; height: 3.75rem; flex: none; }
.brand-words { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--display); font-weight: 600; font-size: 2.15rem; line-height: 1; color: var(--ox); letter-spacing: -.01em; }
.brand-sub { font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-top: .45rem; white-space: nowrap; }
.brand:hover .brand-name { color: var(--ink); }
.mast-tools { display: flex; align-items: center; gap: 1.25rem; }
.mast-phone { font-size: .95rem; color: var(--muted); text-decoration: none; }
a.mast-phone { color: var(--ink); font-weight: 700; }
.lang { font-weight: 700; font-size: 1rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--gilt); text-decoration-thickness: 2px; text-underline-offset: .3em; padding: .5rem .2rem; }
.nav { height: var(--navh); border-top: 1px solid var(--rule); border-bottom: 4px double var(--ink); }
.nav ul {
  list-style: none; margin: 0; height: 100%; display: flex; align-items: stretch; justify-content: space-between;
  gap: 1.75rem; padding-inline: var(--edge); overflow-x: auto; overflow-y: hidden; scrollbar-width: none;
}
.nav ul::-webkit-scrollbar { display: none; }
.nav li { display: flex; flex: none; }
.nav a {
  display: flex; align-items: center; padding-top: 3px; border-bottom: 3px solid transparent;
  font-weight: 700; font-size: 1.0625rem; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: color .25s ease, border-color .25s ease;
}
.nav a:hover { color: var(--ox); }
.nav a[aria-current="page"] { color: var(--ox); border-bottom-color: var(--ox); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem; max-width: 100%;
  min-height: 3rem; padding: .75rem 1.6rem; background: var(--ox); color: var(--parch); border: 1px solid var(--ox);
  font-family: var(--text); font-weight: 700; font-size: 1rem; line-height: 1.2; letter-spacing: .02em;
  text-align: center; text-decoration: none; cursor: pointer; transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: var(--yew); border-color: var(--yew); color: var(--parch); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn[disabled]:hover { background: var(--ox); border-color: var(--ox); }
.btn-small { min-height: 2.6rem; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-light { background: var(--parch); color: var(--ox); border-color: var(--parch); }
.btn-light:hover { background: transparent; color: var(--parch); border-color: var(--parch); }
.tlink { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--ox); text-decoration-thickness: 2px; text-underline-offset: .35em; }
.tlink:hover { color: var(--ox); }
.tlink-light { color: var(--parch); text-decoration-color: var(--gilt); }
.tlink-light:hover { color: var(--gilt); }
.kicker { font-weight: 700; font-size: .78rem; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--gilt-d); margin: 0 0 1rem; }

/* ---------- Hero (50/50 split, equal side padding) + centred strip ---------- */
.hero-wrap { background: var(--parch); }
.hero { display: grid; gap: 2rem; padding-block: clamp(1.75rem, 5vw, 2.5rem); padding-inline: var(--edge); }
.hero-text { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.hero-title { font-size: clamp(2.35rem, 9.5vw, 3.25rem); line-height: 1.02; letter-spacing: -.02em; animation: hero-in .45s ease-out both; }
.hero-title em { display: block; color: var(--ox); }
@keyframes hero-in { from { opacity: .01; } to { opacity: 1; } }
.hero-lede { font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; margin: 1.1rem 0 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
.hero-media { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--lime); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.strip { display: flex; align-items: center; justify-content: center; text-align: center; min-height: var(--strip); padding: .85rem var(--g); background: var(--yew); color: var(--parch); }
.strip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: .35rem 0; }
.strip-list li { display: inline-flex; align-items: center; font-family: var(--display); font-style: italic; font-weight: 400; font-size: clamp(1rem, .92rem + .35vw, 1.2rem); line-height: 1.3; }
.strip-list li + li::before { content: ""; flex: none; width: .36rem; height: .36rem; margin: 0 1.1rem; background: var(--gilt); transform: rotate(45deg); }

@media (min-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4.5rem); padding-block: clamp(1.25rem, 3.2vh, 2.5rem); }
  .hero-title { font-size: clamp(2.6rem, min(4.4vw, 6.4vh), 5rem); }
  .hero-media { aspect-ratio: auto; min-height: 20rem; }
  .hero-wrap { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100vh - var(--mast) - var(--navh)); }
  .strip { min-height: var(--strip); }
}
@supports (height: 100svh) {
  @media (min-width: 900px) {
    .hero { padding-block: clamp(1.25rem, 3.2svh, 2.5rem); }
    .hero-title { font-size: clamp(2.6rem, min(4.4vw, 6.4svh), 5rem); }
    .hero-wrap { min-height: calc(100svh - var(--mast) - var(--navh)); }
  }
}

.page-head { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 3.5rem); border-bottom: 1px solid var(--rule); }
.page-head .hero-title { font-size: clamp(2.4rem, 6vw, 4.5rem); }

/* ---------- Sections ---------- */
.sec { padding-block: clamp(3.75rem, 8vw, 7.5rem); }
.sec-alt { background: var(--lime); }
.sec-dark { background: var(--yew); color: var(--parch); }
.sec-dark h2, .sec-dark h3 { color: var(--parch); }
.sec-dark .sec-num, .sec-dark .roman { color: var(--gilt); }
.sec-dark .lede { color: #E2D9C9; }
.sec-dark .small-note { color: #D3C9B8; }
.sec-rule { padding-top: 0; }
.sec-rule > .wrap { position: relative; padding-top: clamp(3.75rem, 8vw, 7.5rem); }
.sec-rule > .wrap::before { content: ""; position: absolute; top: 0; left: var(--g); right: var(--g); border-top: 1px solid var(--rule); }

.sec-head { max-width: 50rem; margin: 0 0 clamp(2rem, 4.5vw, 3.5rem); }
.sec-head.is-center { text-align: center; margin-inline: auto; }
.sec-head.is-center .sec-num { justify-content: center; }
.sec-head.is-center .lede { margin-inline: auto; }
.sec-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .7rem; margin: 0 0 1rem; font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gilt-d); }
.roman { font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.65rem; line-height: 1; letter-spacing: 0; text-transform: none; color: var(--ox); }
.sec-head h2, .split-text h2, .form-intro h2, .sheet-panel h2 { font-size: clamp(1.95rem, 1.2rem + 3vw, 3.5rem); }
.lede { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--ink-2); max-width: 38em; margin: 1.1rem 0 0; }
.mini-head { font-family: var(--text); font-weight: 700; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gilt-d); margin: 2rem 0 .75rem; }
.ruled { list-style: none; margin: 0; padding: 0; }
.ruled li { padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.small-note { font-size: .92rem; color: var(--muted); margin: 1rem 0 0; }
.center-note { text-align: center; margin-top: 2rem; }

/* ---------- Editorial ---------- */
.ed { display: grid; gap: 2rem; }
.ed .sec-head { margin: 0; }
.ed-body { max-width: 40rem; }
.ed-body > p { font-size: 1.1rem; line-height: 1.72; }
.dropcap::first-letter { float: left; font-family: var(--display); font-weight: 600; font-size: 4.6em; line-height: .82; padding: .06em .12em 0 0; color: var(--ox); }
.ed-aside { margin-top: 2.25rem; border-top: 2px solid var(--ink); }
.ed-aside .mini-head { margin-top: 1rem; }
.ed-aside .ruled li { font-family: var(--display); font-weight: 600; font-size: 1.2rem; line-height: 1.3; }
@media (min-width: 900px) {
  .ed { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem clamp(3rem, 6vw, 7rem); align-items: start; }
}

/* ---------- Image accordion ---------- */
.acc { display: grid; gap: 1.5rem; }
.acc-panel { position: relative; display: flex; flex-direction: column; background: var(--parch); border: 1px solid var(--rule); }
.acc-media { aspect-ratio: 3 / 2; overflow: hidden; background: var(--yew); }
.acc-media img { width: 100%; height: 100%; object-fit: cover; }
.acc-body { padding: 1.25rem 1.4rem 1.5rem; }
.acc-num { font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1; color: var(--ox); margin: 0 0 .35rem; }
.acc-title { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); hyphens: auto; }
.acc-title a { color: inherit; text-decoration: none; }
.acc-title a::after { content: ""; position: absolute; inset: 0; z-index: 3; }
.acc-panel:focus-within { outline: 2px solid var(--ox); outline-offset: 3px; }
.acc-title a:focus-visible { outline: none; }
.acc-more p { margin: .6rem 0 .8rem; color: var(--ink-2); }
.acc-go { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ox); }
.acc-go .ico { width: 1.1rem; height: 1.1rem; }
@media (min-width: 600px) and (max-width: 899px) { .acc { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .acc { display: flex; gap: 0; height: clamp(30rem, 66vh, 40rem); background: var(--yew); }
  .acc-panel { flex: 1 1 0; min-width: 0; overflow: hidden; border: 0; border-left: 4px solid var(--lime); background: var(--yew); color: var(--parch); transition: flex-grow .45s cubic-bezier(.3, .6, .2, 1); }
  .acc-panel:first-child { border-left: 0; }
  .acc-panel.is-open { flex-grow: 4.2; }
  .acc:hover .acc-panel:not(:hover) { flex-grow: 1; }
  .acc .acc-panel:hover { flex-grow: 4.2; }
  .acc-media { position: absolute; inset: 0; aspect-ratio: auto; }
  .acc-media img { opacity: .5; transition: opacity .45s ease; }
  .acc-panel.is-open .acc-media img, .acc .acc-panel:hover .acc-media img { opacity: 1; }
  .acc:hover .acc-panel:not(:hover) .acc-media img { opacity: .5; }
  .acc-panel::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to top, rgba(20, 27, 23, .95) 0%, rgba(20, 27, 23, .72) 40%, rgba(20, 27, 23, .06) 74%); }
  .acc-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 1.5rem 1.1rem 1.75rem; }
  .acc-panel.is-open .acc-body { padding-inline: 1.6rem; }
  .acc-num { color: var(--gilt); }
  .acc-title { color: var(--parch); font-size: 1.15rem; }
  .acc-panel.is-open .acc-title, .acc .acc-panel:hover .acc-title { font-size: clamp(1.6rem, 1rem + 1.2vw, 2.2rem); }
  .acc:hover .acc-panel:not(:hover) .acc-title { font-size: 1.15rem; }
  .acc-more { width: min(28rem, 34vw); max-height: 0; overflow: hidden; opacity: 0; transition: opacity .35s ease .1s; }
  .acc-panel.is-open .acc-more, .acc .acc-panel:hover .acc-more { max-height: 14rem; opacity: 1; }
  .acc:hover .acc-panel:not(:hover) .acc-more { max-height: 0; opacity: 0; }
  .acc-more p { color: #EDE5D8; }
  .acc-go { color: var(--parch); }
  .acc-panel:focus-within { outline-color: var(--gilt); outline-offset: -4px; }
}

/* ---------- Playbill (dramatis personae) ---------- */
.playbill { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.playbill li { display: grid; gap: .35rem; padding: 1.6rem 0; border-bottom: 1px solid var(--rule); }
.pb-name { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.5rem); }
.pb-role { font-family: var(--display); font-style: italic; font-size: 1.15rem; line-height: 1.35; color: var(--ox); margin: 0; }
.pb-text { margin: 0; color: var(--ink-2); }
@media (min-width: 900px) {
  .playbill li { grid-template-columns: minmax(0, 4fr) minmax(0, 3fr) minmax(0, 5fr); gap: 2.5rem; align-items: baseline; padding: 2rem 0; }
}

/* ---------- Ledger (numbered big-word rows) ---------- */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger li { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); gap: .4rem 1rem; align-items: baseline; padding: clamp(1.25rem, 3vw, 2.2rem) 0; border-bottom: 1px solid var(--rule); }
.lg-idx { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--ox); }
.lg-word { font-size: clamp(2.2rem, 1rem + 5vw, 5.5rem); line-height: .95; letter-spacing: -.035em; transition: color .3s ease; }
.ledger li:hover .lg-word { color: var(--ox); }
.lg-text { grid-column: 2; margin: 0; color: var(--ink-2); max-width: 36em; }
@media (min-width: 900px) {
  .ledger li { grid-template-columns: 4rem minmax(0, 1fr) minmax(0, 26rem); gap: 2rem; align-items: center; }
  .lg-text { grid-column: auto; }
}

/* ---------- Ruled sheet (hover/tap display) ---------- */
.sheet { border: 1px solid var(--ink); background-color: var(--parch); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, rgba(38, 34, 30, .06) 31px, rgba(38, 34, 30, .06) 32px); }
.sheet-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem 2rem; padding: 1rem clamp(1.25rem, 3vw, 2.5rem); border-bottom: 1px solid var(--ink); background: var(--parch); }
.sheet-top .sec-num { margin: 0; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; margin: 0; }
.sheet-meta div { display: flex; gap: .5rem; align-items: baseline; }
.sheet-meta dt { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sheet-meta dd { margin: 0; font-size: .92rem; font-variant-numeric: tabular-nums; }
.sheet-display { display: grid; padding: clamp(1.75rem, 4vw, 3.25rem) clamp(1.25rem, 3vw, 2.5rem); min-height: 17rem; }
.sheet-panel { max-width: 46rem; }
.sheet-panel + .sheet-panel { margin-top: 2rem; padding-top: 2rem; border-top: 1px solid var(--rule); }
.sheet-panel h3 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); margin-bottom: .9rem; }
.sheet-panel p { font-size: 1.08rem; color: var(--ink-2); }
.sheet-hint { display: none; }
.sheet-cells { display: none; }
.sheet.is-live .sheet-hint { display: block; font-size: .92rem; color: var(--muted); margin-top: 1.25rem; }
.sheet.is-live .sheet-panel { grid-area: 1 / 1; margin: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; transition: opacity .15s ease, visibility 0s linear .15s; }
.sheet.is-live .sheet-panel.is-active { opacity: 1; visibility: visible; transition: opacity .34s ease .12s, visibility 0s; }
.sheet.is-live .sheet-cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink); border-top: 1px solid var(--ink); list-style: none; margin: 0; padding: 0; }
.sheet-cells li { display: flex; }
.sheet-cell {
  display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; width: 100%;
  padding: 1.25rem clamp(1rem, 2vw, 1.75rem) 1.4rem; background: var(--parch); color: var(--ink);
  border: 0; border-top: 3px solid transparent; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease;
}
.sheet-cell:hover, .sheet-cell.is-active, .sheet-cell[aria-pressed="true"] { background: var(--paper); border-top-color: var(--ox); }
.sc-num { font-family: var(--display); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem); line-height: 1; color: var(--ox); }
.sc-name { font-weight: 700; font-size: 1rem; line-height: 1.3; }
@media (min-width: 900px) { .sheet.is-live .sheet-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Capability list (dark, backdrop crossfade) ---------- */
.cap { position: relative; overflow: hidden; isolation: isolate; }
.cap-bgs { position: absolute; inset: 0; z-index: -1; }
.cap-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .45s ease; }
.cap-bg.is-active { opacity: .26; }
.cap-bg img { width: 100%; height: 100%; object-fit: cover; }
.cap-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(244, 238, 227, .35); }
.cap-item { border-bottom: 1px solid rgba(244, 238, 227, .35); }
.cap-h { margin: 0; font: inherit; }
.cap-btn {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr) auto; align-items: center; gap: 1rem; width: 100%;
  padding: 1.35rem .25rem 1.35rem 1rem; background: none; border: 0; border-left: 3px solid transparent;
  color: rgba(244, 238, 227, .8); font: inherit; text-align: left; cursor: pointer; transition: color .25s ease, border-color .25s ease;
}
.cap-item.is-active .cap-btn, .cap-btn:hover { color: var(--parch); }
.cap-item.is-active .cap-btn { border-left-color: var(--gilt); }
.cap-n { font-family: var(--display); font-style: italic; font-size: 1.3rem; color: var(--gilt); }
.cap-t { font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 1rem + 2.4vw, 2.75rem); line-height: 1.1; letter-spacing: -.015em; }
.cap-btn .ico { width: 1.6rem; height: 1.6rem; color: var(--gilt); transition: opacity .25s ease; }
.cap.is-live .cap-item:not(.is-active) .cap-btn .ico { opacity: .5; }
.cap-panel { padding: 0 1rem 1.75rem 1rem; max-width: 48rem; }
.cap-panel p { margin: 0; color: #E6DED0; font-size: 1.08rem; }
.cap.is-live .cap-panel:not([hidden]) { animation: fade-in .35s ease both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 700px) { .cap-panel { padding-left: calc(1rem + 3px + 2.5rem + 1rem); } }

/* ---------- Four ruled cells ---------- */
.compass { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.compass li { display: flex; flex-direction: column; background: var(--parch); padding: clamp(1.5rem, 3vw, 2.25rem); }
.cp-mark { font-family: var(--display); font-style: italic; font-size: clamp(2.8rem, 2rem + 3vw, 4.5rem); line-height: 1; color: var(--ox); }
.cp-label { font-size: 1.5rem; margin: .75rem 0 .6rem; }
.compass p { margin: 0; color: var(--ink-2); }
@media (min-width: 600px) { .compass { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .compass { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Split ---------- */
.split { display: grid; gap: 2rem; align-items: center; }
.split-media { margin: 0; padding: .7rem; border: 1px solid var(--ink); background: var(--parch); }
.split-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.split-text h2 { margin-bottom: 1.25rem; }
.split-text p { font-size: 1.08rem; color: var(--ink-2); max-width: 36em; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 6vw, 6rem); }
  .split.is-rev .split-media { order: 2; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.3rem 3rem 1.3rem 0; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.3; transition: color .25s ease; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 50%; margin-top: -.55em; font-family: var(--display); font-style: italic; font-weight: 400; font-size: 1.9rem; line-height: 1; color: var(--ox); }
.faq details[open] summary::after { content: "\2013"; }
.faq summary:hover { color: var(--ox); }
.faq-a { padding: 0 0 1.5rem; }
.faq-a p { margin: 0; color: var(--ink-2); max-width: 42em; }

/* ---------- Even cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); grid-template-columns: minmax(0, 1fr); }
.cards > li { display: flex; }
.card { position: relative; display: flex; flex-direction: column; width: 100%; background: var(--paper); border: 1px solid var(--rule); transition: border-color .25s ease; }
.sec-alt .card { background: var(--parch); }
.card.is-link:hover { border-color: var(--ox); }
.card:focus-within { outline: 2px solid var(--ox); outline-offset: 3px; }
.card-media { margin: 0; aspect-ratio: 3 / 2; overflow: hidden; background: var(--lime); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.2rem 1.35rem 1.4rem; }
.card-cat { font-weight: 700; font-size: .72rem; line-height: 1.3; letter-spacing: .16em; text-transform: uppercase; color: var(--gilt-d); margin: 0 0 .55rem; }
.card-title { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.5rem); line-height: 1.18; margin: 0 0 .6rem; hyphens: auto; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }
.card-title a:focus-visible { outline: none; }
.card.is-link:hover .card-title a { color: var(--ox); }
.card-text { margin: 0; color: var(--ink-2); font-size: .98rem; flex: 1; }
.card-credit { margin: .9rem 0 0; font-size: .78rem; color: var(--muted); letter-spacing: .02em; }
.card-go { margin-top: 1rem; color: var(--ox); }
.card-go .ico { width: 1.4rem; height: 1.4rem; }
@media (min-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Scroll-snap gallery ---------- */
.gallery { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); overscroll-behavior-x: contain; padding-bottom: 1.25rem; scrollbar-color: var(--gilt) transparent; }
.gallery:focus-visible { outline: 2px solid var(--gilt); outline-offset: -2px; }
.gallery-row { list-style: none; margin: 0; padding: 0 var(--edge); display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 30rem); gap: clamp(1rem, 2vw, 1.75rem); width: max-content; }
.gallery-row li { scroll-snap-align: start; }
.gallery figure { margin: 0; }
.gallery-media { aspect-ratio: 3 / 2; overflow: hidden; background: #141B17; }
.gallery-media img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { display: flex; justify-content: space-between; gap: 1rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px solid rgba(244, 238, 227, .3); }
.g-cap { font-family: var(--display); font-style: italic; font-size: 1.1rem; line-height: 1.3; color: var(--parch); }
.g-credit { align-self: center; font-size: .75rem; letter-spacing: .06em; color: #CFC5B4; white-space: nowrap; }

/* ---------- Reviews & credentials placeholders ---------- */
.proof { display: grid; gap: 2rem; }
.proof-quote { margin: 0; padding: 2rem; border: 1px dashed var(--line); }
.proof-mark { display: block; height: 2.6rem; font-family: var(--display); font-style: italic; font-size: 6rem; line-height: .7; color: var(--ox); }
.proof-quote blockquote { margin: 0; }
.proof-quote blockquote p { font-family: var(--display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.2vw, 1.9rem); line-height: 1.3; color: var(--ink); margin: 0 0 1rem; }
.proof-quote figcaption { font-size: .95rem; color: var(--muted); }
.proof-creds { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.proof-creds li { padding: .85rem 0; border-bottom: 1px solid var(--rule); font-weight: 700; }
@media (min-width: 900px) { .proof { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 4rem; align-items: start; } }

/* ---------- Rules list ---------- */
.rules { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; column-gap: clamp(2rem, 5vw, 5rem); border-top: 2px solid var(--ink); }
.rules li { counter-increment: r; display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); line-height: 1.3; }
.rules li::before { content: counter(r, upper-roman) "."; font-style: italic; font-weight: 400; color: var(--ox); }
@media (min-width: 900px) { .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Centred CTA strip ---------- */
.cta-strip { background: var(--ox); color: var(--parch); text-align: center; padding: clamp(3.5rem, 8vw, 6rem) 0; }
.cta-strip h2 { font-size: clamp(1.8rem, 1.2rem + 2.6vw, 3.2rem); max-width: 22em; margin: 0 auto 1rem; color: var(--parch); }
.cta-strip p { max-width: 36em; margin: 0 auto 1.75rem; color: #F0E4DA; }

/* ---------- Forms ---------- */
.form-layout { display: grid; gap: 2.5rem; }
.form-intro h2 { margin-bottom: .5rem; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); padding: .7rem 0; border-bottom: 1px solid var(--rule); }
.steps li::before { content: counter(s, upper-roman) "."; font-family: var(--display); font-style: italic; color: var(--ox); }
.form-card { background: var(--paper); border: 1px solid var(--ink); padding: clamp(1.25rem, 3.5vw, 2.5rem); }
.form { position: relative; }
.form-grid { display: grid; gap: 1.15rem 1.25rem; }
.field { margin: 0; min-width: 0; }
.field > label, .choice-set legend { display: block; margin-bottom: .4rem; font-weight: 700; font-size: .95rem; line-height: 1.35; color: var(--ink); }
.req { color: var(--ox); }
.opt { font-weight: 400; font-size: .88em; color: var(--muted); }
.field input, .field select, .field textarea {
  display: block; width: 100%; min-height: 3rem; padding: .7rem .85rem; margin: 0;
  font-family: var(--text); font-size: 1rem; line-height: 1.4; color: var(--ink);
  background-color: #FFFDF9; border: 1px solid var(--line); border-radius: 0; appearance: none; transition: border-color .2s ease;
}
.field select {
  padding-right: 2.5rem; background-repeat: no-repeat; background-position: right .9rem center;
  background-image: 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='%236E1F24' stroke-width='1.6'/%3E%3C/svg%3E");
}
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--ox); outline-offset: 1px; border-color: var(--ox); }
.field [aria-invalid="true"] { border-color: var(--err); box-shadow: inset 4px 0 0 var(--err); background-color: #FFF6F4; }
.hint { font-size: .85rem; line-height: 1.45; color: var(--muted); margin: .35rem 0 0; }
.choice-set { border: 0; padding: 0; }
.choice-set legend { padding: 0; }
.choices { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.choice { display: inline-flex; align-items: center; gap: .55rem; min-height: 2.75rem; cursor: pointer; }
.choice input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--ox); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.ts-slot { margin-top: 1.25rem; }
.ts-slot:empty { margin-top: 0; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.form-privacy { flex: 1 1 14rem; margin: 0; font-size: .88rem; color: var(--muted); }
.form-note { margin: 1.25rem 0 0; padding: .75rem 1rem; border: 1px dashed var(--line); font-size: .95rem; color: var(--muted); }
.form-status { margin: 1rem 0 0; min-height: 1.6em; font-weight: 700; }
.form-status[data-state="ok"] { color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); }
.form-status[data-state="busy"] { color: var(--muted); }
@media (min-width: 640px) {
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .f-full, .choice-set { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .form-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* ---------- Prose pages ---------- */
.sec-prose { padding-top: clamp(2.5rem, 5vw, 4rem); }
.prose { max-width: 46rem; margin-inline: 0; }
.prose h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 2.5rem 0 .75rem; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .roman { font-size: 1em; margin-right: .2rem; }
.prose p { color: var(--ink-2); font-size: 1.08rem; }
.big-links a { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--ink); text-decoration: none; }
.big-links a:hover { color: var(--ox); }

/* ---------- Footer ---------- */
.site-footer { background: var(--yew); color: #E2D9C9; padding: clamp(3.5rem, 7vw, 5.5rem) 0 2rem; border-top: 4px double var(--gilt); }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-logo { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; margin-bottom: 1.25rem; }
.foot-logo img { width: 3.25rem; height: 3.25rem; }
.foot-logo .brand-name { color: var(--parch); }
.foot-logo .brand-sub { color: #CFC5B4; }
.foot-brand p { max-width: 26em; margin: 0; }
.foot-h { font-family: var(--text); font-weight: 700; font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gilt); margin: 0 0 1rem; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { padding: .3rem 0; }
.foot-col a { color: var(--parch); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; text-decoration-color: var(--gilt); }
.foot-details li { font-size: .95rem; }
.foot-col .tlink { display: inline-block; margin-top: 1rem; text-decoration: underline; text-decoration-color: var(--gilt); }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; margin-top: clamp(2.5rem, 5vw, 4rem); padding-top: 1.25rem; border-top: 1px solid rgba(244, 238, 227, .2); font-size: .88rem; color: #CFC5B4; }
.foot-base p { margin: 0; }
.foot-links { display: flex; gap: 1.5rem; }
.foot-links a { color: var(--parch); }
@media (min-width: 760px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); } }

/* ---------- App-style mobile CTA bar ---------- */
.mbar { display: none; }
@media (max-width: 899px) {
  :root { --mast: 4.5rem; --navh: 3rem; }
  .brand img { width: 2.9rem; height: 2.9rem; }
  .brand { gap: .7rem; }
  .brand-name { font-size: 1.65rem; }
  .brand-sub { font-size: .62rem; letter-spacing: .18em; margin-top: .35rem; }
  .mast-phone, .mast-cta { display: none; }
  .nav ul { justify-content: flex-start; gap: 1.4rem; }
  .nav a { font-size: 1rem; }
  body { padding-bottom: calc(4.4rem + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
    background: var(--yew); border-top: 1px solid var(--gilt); padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  .mbar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem; height: 4.4rem; padding: 0 .2rem;
    color: var(--parch); text-decoration: none; font-weight: 700; font-size: .72rem; line-height: 1.1; text-align: center;
  }
  .mbar a.is-primary { background: var(--ox); }
  .mbar a:active { background: #2B3830; }
  .mbar .ico { width: 1.4rem; height: 1.4rem; }
}
@media (max-width: 599px) {
  h1, h2, h3 { hyphens: auto; -webkit-hyphens: auto; }
}

/* ---------- Motion: opacity-only, opt-in via html.fx (added by site.js) ---------- */
.fx [data-reveal] { transition: opacity .4s ease; }
.fx [data-reveal]:not(.is-in) { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .fx [data-reveal]:not(.is-in) { opacity: 1; }
}
