/* Unitive Mind: shared styles. Tokens and rules from _work/design-plan.md.
   Corners: surfaces 3px (11 mod 5 = 1), buttons 3px (7 mod 3 = 1). */

@font-face { font-family: "Marcellus"; src: url("../fonts/marcellus.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("../fonts/sourceserif-italic.woff2") format("woff2"); font-weight: 300 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Jost"; src: url("../fonts/jost.woff2") format("woff2"); font-weight: 300 600; font-style: normal; font-display: swap; }
/* Metric-matched fallbacks so nothing jumps when the web fonts arrive */
@font-face { font-family: "Marcellus Fallback"; src: local("Georgia"); size-adjust: 103%; ascent-override: 94%; descent-override: 27%; line-gap-override: 0%; }
@font-face { font-family: "Serif Fallback"; src: local("Georgia"); size-adjust: 91.7%; ascent-override: 106%; descent-override: 34%; line-gap-override: 0%; }
@font-face { font-family: "Jost Fallback"; src: local("Arial"); size-adjust: 99.4%; ascent-override: 111%; descent-override: 39%; line-gap-override: 0%; }

:root {
  --abyss: #120D1C;
  --aubergine: #2A1D42;
  --aubergine-2: #34264F;
  --dusk: #5B4A80;
  --dusk-text: #BDB2D2;
  --gold: #C99A3A;
  --gold-hi: #E0B865;
  --gold-deep: #7A5718;
  --mist: #ECE8F0;
  --mist-2: #E2DCE8;
  --ink: #1E1730;
  --ink-soft: #4A4060;
  --line-dark: rgba(201, 154, 58, .28);
  --line-light: rgba(42, 29, 66, .16);

  --display: "Marcellus", "Marcellus Fallback", Georgia, serif;
  --serif: "Source Serif 4", "Serif Fallback", Georgia, serif;
  --sans: "Jost", "Jost Fallback", Arial, sans-serif;

  --r: 3px;
  --gutter: clamp(20px, 5.5vw, 88px);
  --max: 1440px;
  --sec: clamp(88px, 11vw, 168px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 104px;
  --media-cap: min(76vh, 760px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--abyss); }
body { margin: 0; font-family: var(--serif); font-size: clamp(1.03rem, .98rem + .22vw, 1.15rem); line-height: 1.62; color: var(--ink); background: var(--mist); font-optical-sizing: auto; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .22em; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.1; letter-spacing: -.01em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--abyss); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 200; background: var(--gold); color: var(--abyss); padding: 12px 18px; border-radius: var(--r); text-decoration: none; font-family: var(--sans); font-weight: 600; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
.display { font-size: clamp(2.7rem, 6.2vw, 6.4rem); line-height: 1.04; letter-spacing: -.02em; }
.h2 { font-size: clamp(2rem, 3.5vw, 3.6rem); line-height: 1.08; }
.h3 { font-size: clamp(1.35rem, 1.8vw, 1.9rem); line-height: 1.18; }
.lede { font-size: clamp(1.1rem, 1rem + .3vw, 1.24rem); line-height: 1.55; }
.label { display: block; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.on-dark .label { color: var(--gold); }
.gold { color: var(--gold-deep); }
.on-dark .gold { color: var(--gold); }
.quote { font-style: italic; }
.meta { font-family: var(--sans); font-size: .95rem; letter-spacing: .02em; color: var(--ink-soft); }
.on-dark .meta { color: var(--dusk-text); }

.on-dark { color: #EEE9F4; }
.on-dark p { color: #D8D0E6; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 54px; padding: 0 28px; border-radius: var(--r); border: 1px solid transparent; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .04em; text-decoration: none; cursor: pointer; position: relative; overflow: hidden; isolation: isolate; transition: color .4s var(--ease), border-color .4s var(--ease), background-color .4s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 100%; transition: transform .5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: scaleY(1); }
.btn .i-arrow { width: 22px; height: 12px; flex: none; transition: transform .45s var(--ease); }
.btn:hover .i-arrow { transform: translateX(5px); }
.btn--gold { background: var(--gold); color: var(--abyss); }
.btn--gold::before { background: var(--gold-hi); }
.btn--ink { background: var(--aubergine); color: #F3EEF8; }
.btn--ink::before { background: var(--abyss); }
.btn--ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn--ghost::before { background: rgba(201, 154, 58, .16); }
.btn--sm { min-height: 46px; padding: 0 22px; font-size: .95rem; }
.btns { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; }

.tlink { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-family: var(--sans); font-weight: 500; letter-spacing: .03em; text-decoration: none; color: var(--gold-deep); }
.on-dark .tlink { color: var(--gold); }
.tlink span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease); }
.tlink:hover span { background-size: 0 1px; background-position: 100% 100%; }
.tlink .i-arrow { width: 22px; height: 12px; transition: transform .45s var(--ease); }
.tlink:hover .i-arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 90; color: #F1ECF6; background-image: linear-gradient(180deg, rgba(18, 13, 28, .6) 0%, rgba(18, 13, 28, 0) 100%); transition: background-color .5s var(--ease), box-shadow .5s var(--ease), color .5s var(--ease); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); padding-inline: var(--gutter); max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; transition: height .5s var(--ease); }
.brand { display: block; flex: none; position: relative; height: 70px; aspect-ratio: 1177 / 236; transition: height .5s var(--ease); }
.brand img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity .4s var(--ease); }
.brand__dark { opacity: 0; }
.site-header.is-solid { background: rgba(18, 13, 28, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line-dark); }
.site-header.is-solid .site-header__inner { height: 80px; }
.site-header.is-solid .brand { height: 54px; }
.site-header--light:not(.is-solid) { color: var(--ink); background-image: linear-gradient(180deg, rgba(236, 232, 240, .85) 0%, rgba(236, 232, 240, 0) 100%); }
.site-header--light:not(.is-solid) .brand__light { opacity: 0; }
.site-header--light:not(.is-solid) .brand__dark { opacity: 1; }
html.menu-open .site-header .brand__light { opacity: 1; }
html.menu-open .site-header .brand__dark { opacity: 0; }

.nav__list { display: flex; align-items: center; gap: clamp(8px, 1.5vw, 26px); }
.nav__link { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .03em; text-decoration: none; position: relative; }
.nav__link::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 8px; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .5s var(--ease); }
.nav__link:hover::after, .nav__link.is-current::after, .nav__link[aria-expanded="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav__chev { width: 11px; height: 8px; transition: transform .4s var(--ease); }
.nav__link[aria-expanded="true"] .nav__chev { transform: rotate(180deg); }
.nav__item--drop { position: relative; }
.nav__item--cta { margin-left: 10px; }

.drop { position: absolute; top: calc(100% + 10px); left: 50%; width: 360px; margin-left: -180px; padding: 12px; background: var(--abyss); border: 1px solid var(--line-dark); border-radius: var(--r); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .7); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .35s var(--ease), visibility 0s .35s; color: #F1ECF6; }
.drop.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .3s var(--ease), transform .45s var(--ease), visibility 0s; }
.drop__link { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--r); text-decoration: none; transition: background-color .3s var(--ease); }
.drop__link strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.drop__link span { font-family: var(--sans); font-size: .9rem; color: var(--dusk-text); }
.drop__link:hover, .drop__link:focus-visible { background: rgba(201, 154, 58, .12); }

.burger { display: none; align-items: center; gap: 12px; min-height: 48px; padding: 0 4px; background: none; border: 0; cursor: pointer; font-family: var(--sans); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; }
.burger__lines { display: grid; gap: 7px; width: 28px; }
.burger__lines span { display: block; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
.burger[aria-expanded="true"] .burger__lines span:first-child { transform: translateY(4.25px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.mmenu { position: fixed; inset: 0; z-index: 80; background: var(--abyss); color: #F1ECF6; overflow-y: auto; visibility: hidden; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease), visibility 0s .7s; }
.mmenu[hidden] { display: none; }
.mmenu.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path .7s var(--ease), visibility 0s; }
.mmenu__inner { padding: 108px var(--gutter) 48px; display: grid; gap: 6px; }
.mmenu__list > li > a { display: flex; align-items: center; min-height: 52px; font-family: var(--display); font-size: 1.7rem; text-decoration: none; border-bottom: 1px solid rgba(201, 154, 58, .14); }
.mmenu__h { display: block; margin: 18px 0 4px; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.mmenu__sub a { display: flex; align-items: center; min-height: 46px; padding-left: 14px; font-family: var(--display); font-size: 1.3rem; text-decoration: none; border-left: 1px solid var(--line-dark); }
.mmenu__cta { justify-self: start; margin-top: 26px; }
.mmenu__places { margin-top: 18px; font-family: var(--sans); color: var(--dusk-text); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 760px) {
  :root { --header-h: 84px; }
  .brand { height: 50px; }
  .site-header.is-solid .site-header__inner { height: 70px; }
  .site-header.is-solid .brand { height: 44px; }
  .burger__label { display: none; }
}
@media (max-width: 359px) {
  .brand { height: 42px; }
  .site-header__inner { gap: 12px; }
}

/* ---------- Sections and frames ---------- */
.sec { position: relative; padding-block: var(--sec); }
.sec--dark { background: var(--abyss); color: #EEE9F4; }
.sec--aub { background: var(--aubergine); color: #EEE9F4; }
.sec--mist { background: var(--mist); }
.sec__head { display: grid; gap: 22px; margin-bottom: clamp(40px, 5vw, 72px); }

.frame { position: relative; border-radius: var(--r); overflow: clip; background: var(--aubergine); isolation: isolate; }
.frame img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 50%; }
/* The offset gold rule that sits behind a framed photo, fully inside its section */
.offset { position: relative; }
.offset::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 1px solid var(--gold); border-radius: var(--r); opacity: .7; pointer-events: none; }
.offset--left::before { inset: 18px 18px -18px -18px; }
.offset::before { animation: offset-drift 7s ease-in-out infinite alternate; }
@keyframes offset-drift { from { transform: translate(0, 0); } to { transform: translate(-8px, -8px); } }
.offset--left::before { animation-name: offset-drift-l; }
@keyframes offset-drift-l { from { transform: translate(0, 0); } to { transform: translate(8px, -8px); } }

.rule { display: block; height: 1px; background: var(--gold); transform-origin: 0 50%; }

.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--abyss); color: #E9E3F1; padding: clamp(80px, 9vw, 130px) 0 34px; overflow: clip; isolation: isolate; }
.site-footer__glow { position: absolute; right: -6vw; bottom: -12vw; width: min(52vw, 720px); opacity: .07; z-index: -1; pointer-events: none; }
.site-footer__glow img { width: 100%; }
.site-footer__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 48px clamp(28px, 4vw, 64px); }
.site-footer__logo { display: block; width: min(100%, 330px); margin-bottom: 26px; }
.site-footer__line { color: #CFC6DE; margin-bottom: 28px; font-size: 1.05rem; }
.site-footer__h { position: relative; font-family: var(--sans); font-weight: 500; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; padding-bottom: 12px; overflow: clip; }
.site-footer__h::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-dark); }
.site-footer__glint { position: absolute; left: 0; bottom: 0; width: 50%; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); animation: foot-glint 4s linear infinite; }
@keyframes foot-glint { from { transform: translateX(-100%); } to { transform: translateX(200%); } }
.site-footer__col:nth-child(3) .site-footer__glint { animation-delay: -1.6s; }
.site-footer__col:nth-child(4) .site-footer__glint { animation-delay: -3.2s; }
.site-footer__col li { margin-bottom: 4px; }
.site-footer__col a, .site-footer__places { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--sans); font-size: 1rem; text-decoration: none; color: #E9E3F1; transition: color .3s var(--ease); }
.site-footer__places { color: #CFC6DE; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__base { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 32px; margin-top: clamp(56px, 7vw, 96px); padding-top: 26px; font-family: var(--sans); font-size: .95rem; color: #BDB2D2; }
.site-footer__base p { margin: 0; }
.site-footer__base a { display: inline-flex; align-items: center; min-height: 44px; color: #E9E3F1; }
.site-footer__credit { margin-left: auto !important; }
.site-footer__rule { position: absolute; left: var(--gutter); right: var(--gutter); top: 0; height: 1px; background: var(--line-dark); overflow: hidden; }
.site-footer__rule span { position: absolute; top: 0; bottom: 0; width: 30%; background: linear-gradient(90deg, transparent, var(--gold-hi), transparent); animation: shimmer 7s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(440%); } }
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__credit { margin-left: 0 !important; }
}

/* ---------- Holding pages: one compact opener (about half a screen), the page's own photo ---------- */
.hold { position: relative; background: var(--aubergine); color: #EEE9F4; padding: calc(var(--header-h) + clamp(18px, 2.2vw, 34px)) 0 clamp(36px, 3.6vw, 56px); overflow: clip; isolation: isolate; }
.hold__grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.hold__copy { display: grid; gap: 18px; }
.hold__copy h1 { font-size: clamp(2.2rem, 3.4vw, 3.4rem); }
.hold__frame { height: min(30vh, 300px); }
.hold__note { position: relative; background: var(--mist); padding: clamp(64px, 7vw, 110px) 0; overflow: clip; isolation: isolate; }
.hold__glyph { position: absolute; right: -8vw; top: 50%; width: min(46vw, 620px); margin-top: calc(min(46vw, 620px) / -2); opacity: .11; z-index: -1; animation: glyph-turn 40s linear infinite; pointer-events: none; }
.hold__glyph img { width: 100%; }
@keyframes glyph-turn { to { transform: rotate(360deg); } }
.hold__offset { width: 100%; }
.hold__cover { position: relative; display: grid; border-top: 1px solid var(--line-light); }
.hold__cover::before { content: ""; position: absolute; left: 0; top: -1px; width: 22%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: shimmer 6s linear infinite; }
.hold__cover li { position: relative; padding: 12px 0 12px 28px; border-bottom: 1px solid var(--line-light); }
.hold__cover li::before { content: ""; position: absolute; left: 2px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: 1px solid var(--gold-deep); transform: rotate(45deg); }
.hold__meanwhile { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); }
.hold .btn--ghost { color: #F1ECF6; border-color: rgba(241, 236, 246, .55); }
.hold__note-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.hold__note-grid > div:first-child { display: grid; gap: 18px; }
.hold__links { display: grid; gap: 12px; }
.hold-link { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line-light); border-radius: var(--r); text-decoration: none; background: #F5F2F8; transition: border-color .4s var(--ease), transform .5s var(--ease); }
.hold-link:hover { border-color: var(--gold); transform: translateX(6px); }
.hold-link .frame { height: 72px; }
.hold-link strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.3rem; }
.hold-link span { display: block; font-size: .98rem; color: var(--ink-soft); }
.hold-link .i-arrow { width: 22px; height: 12px; color: var(--gold-deep); }
@media (max-width: 860px) {
  .hold-link { grid-template-columns: 72px minmax(0, 1fr); }
  .hold-link .i-arrow { display: none; }
  .hold__grid, .hold__note-grid { grid-template-columns: 1fr; }
  .hold__frame { height: 22vh; }
}

/* ---------- Reveal start states: only when motion is on; no-JS and reduced motion show everything ---------- */
html.js:not(.rm):not(.no-motion) [data-rise],
html.js:not(.rm):not(.no-motion) [data-rise-kids] > * { opacity: 0; transform: translateY(34px); }
html.js:not(.rm):not(.no-motion) [data-reveal] { clip-path: inset(100% 0 0 0); }
html.js:not(.rm):not(.no-motion) [data-rule] { transform: scaleX(0); }
html.js:not(.rm):not(.no-motion) [data-split]:not(.is-split) { visibility: hidden; }

/* Split heading line masks: padded so descenders never clip, pulled back so layout does not move */
[data-split] { display: flow-root; }
[data-split].has-lines { display: flex; flex-direction: column; }
[data-split] .ln-mask { display: block; padding: .22em .15em .5em; margin: -.22em -.15em -.5em; overflow: clip; }
[data-split] .ln { display: block; }

/* Web fonts arriving: hold first-screen text back (at most 1.5 s) so nothing jumps */
html.wf .site-header__inner, html.wf [data-fs] { visibility: hidden; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

/* Phones: comfortable tap targets */
@media (max-width: 760px) {
  .site-footer a, .tlink, .prose a { min-height: 44px; }
}
