/* ==========================================================================
   Editorial layer — the "premium" system that sits on top of styles.css and
   motion.css: oversized type, layered hero, scroll-driven storytelling.
   ========================================================================== */

@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ---------- type upgrade ---------- */
h1 { font-size: clamp(46px, 7.4vw, 112px); line-height: .98; letter-spacing: -.025em; font-weight: 600; }
h2 { font-size: clamp(34px, 5vw, 68px); line-height: 1.02; letter-spacing: -.02em; }
.em { font-style: italic; font-weight: 400; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: .7; }
.center .eyebrow, .eyebrow.center { justify-content: center; }
.signature { font: 400 clamp(44px, 5vw, 68px)/1 "Mrs Saint Delafield", cursive; color: var(--warm); margin: 6px 0 0; }

/* ---------- film grain on dark surfaces ---------- */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.grain > * { position: relative; z-index: 1; }
.grain > .fx-canvas { position: absolute; z-index: 0; }

/* ---------- header: transparent over the home hero, animated links ---------- */
.nav-menu a:not(.btn) { position: relative; }
@media (min-width: 1061px) {
  .nav-menu a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px; background: var(--brass-500); transform: scaleX(0); transform-origin: right; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .nav-menu a:not(.btn):hover::after, .nav-menu a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); transform-origin: left; }
  .nav-menu a[aria-current="page"]:not(.btn) { box-shadow: none; }
  .nav-menu a:not(.btn):hover { background: transparent; }
}
.page-home .site-header:not(.is-scrolled):not(:has(.is-open)) { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.page-home .site-header:not(.is-scrolled):not(:has(.is-open)) .brand { color: var(--bone-100); }
.page-home .site-header:not(.is-scrolled):not(:has(.is-open)) .bars,
.page-home .site-header:not(.is-scrolled):not(:has(.is-open)) .bars::before,
.page-home .site-header:not(.is-scrolled):not(:has(.is-open)) .bars::after { background: var(--bone-100); }
@media (min-width: 1061px) {
  .page-home .site-header:not(.is-scrolled) .nav-menu a:not(.btn) { color: rgba(243,239,230,.82); }
  .page-home .site-header:not(.is-scrolled) .nav-menu a:not(.btn):hover { color: #fff; }
  .page-home .site-header:not(.is-scrolled) .btn-ghost { color: var(--bone-100); }
  .page-home .site-header:not(.is-scrolled) .btn-ghost:hover { background: var(--bone-100); color: var(--evergreen-900); }
  .page-home .site-header:not(.is-scrolled) .btn-primary { background: var(--brass-400); color: var(--evergreen-950); }
}
.page-home main { margin-top: -72px; }

/* arrow buttons */
.btn .arr { display: inline-block; transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.btn:hover .arr { transform: translateX(4px); }
.btn-lg { padding: 18px 28px; font-size: 16px; }

/* ---------- HOME HERO ---------- */
.hx { min-height: 100svh; display: flex; flex-direction: column; overflow: hidden; background: radial-gradient(1200px 700px at 72% 38%, #24483F 0%, var(--evergreen-900) 45%, var(--evergreen-950) 100%); color: var(--bone-100); }
.hx-word {
  position: absolute; right: -2vw; top: 17%; z-index: 1 !important; pointer-events: none; white-space: nowrap;
  font: 700 clamp(160px, 27vw, 460px)/.8 var(--font-display); letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(207,163,90,.45);
  background: linear-gradient(180deg, rgba(207,163,90,.28), rgba(207,163,90,0) 75%); -webkit-background-clip: text; background-clip: text;
}
.hx-word > span { display: inline-block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.hx-grid { flex: 1; display: grid; grid-template-columns: 1.05fr .95fr; align-items: end; gap: 24px; padding-top: 110px; position: relative; z-index: 2 !important; }
.hx-copy { align-self: center; padding-bottom: 40px; }
.hx-copy h1 { color: var(--bone-50); max-width: 11ch; }
.hx-copy h1 .em { color: var(--brass-400); }
.hx-copy .lede { color: #C9D3CF; margin: 26px 0 34px; max-width: 46ch; }
.hx-figure { position: relative; align-self: end; justify-self: center; width: min(100%, 560px); }
.hx-figure img { width: 100%; filter: drop-shadow(0 30px 60px rgba(0,0,0,.45)); position: relative; z-index: 2; }
.hx-figure::before { content: ""; position: absolute; left: 50%; top: 18%; width: 78%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(207,163,90,.35), rgba(207,163,90,0) 68%); z-index: 1; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateX(-50%) scale(1.08); opacity: .8; } }
.hx-card { position: absolute; z-index: 3; background: rgba(250,248,243,.92); color: var(--ink-900); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 16px; padding: 14px 16px; box-shadow: 0 20px 50px rgba(0,0,0,.3); font-size: 13.5px; line-height: 1.35; animation: float 7s ease-in-out infinite; }
.hx-card b { display: block; font: 600 16px/1.2 var(--font-display); color: var(--evergreen-900); }
.hx-card.c1 { left: -6%; top: 30%; }
.hx-card.c2 { right: -2%; top: 58%; animation-delay: -3s; }
.hx-card .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3FA37E; margin-right: 6px; box-shadow: 0 0 0 4px rgba(63,163,126,.2); }

/* spinning badge */
.badge-spin { position: absolute; z-index: 4; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; background: var(--brass-400); color: var(--evergreen-950); text-decoration: none; box-shadow: 0 18px 40px rgba(0,0,0,.3); transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.badge-spin:hover { transform: scale(1.08); }
.badge-spin svg.ring { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); animation: spin 14s linear infinite; }
.badge-spin svg.ring text { font: 800 11px var(--font-body); letter-spacing: .28em; fill: var(--evergreen-950); }
.badge-spin .arrow { width: 34px; height: 34px; transition: transform .4s; }
.badge-spin:hover .arrow { transform: rotate(-45deg); }
.hx .badge-spin { left: -2%; bottom: 12%; }

/* path bar */
.hx-paths { position: relative; z-index: 3 !important; border-top: 1px solid rgba(243,239,230,.14); background: rgba(11,32,28,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hx-paths .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.hx-path { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 22px 20px; text-decoration: none; color: var(--bone-100); border-left: 1px solid rgba(243,239,230,.12); position: relative; overflow: hidden; transition: background .3s; }
.hx-path:first-child { border-left: 0; }
.hx-path::before { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--seg); transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.hx-path:hover { background: rgba(243,239,230,.04); }
.hx-path:hover::before { transform: scaleX(1); }
.hx-path .n { font: 500 14px var(--font-body); color: var(--seg); }
.hx-path b { font: 600 19px/1.2 var(--font-display); display: block; }
.hx-path small { color: #A9B8B3; font-size: 13px; }
.hx-path .go { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(243,239,230,.25); display: grid; place-items: center; transition: all .3s; }
.hx-path:hover .go { background: var(--seg); border-color: var(--seg); color: var(--evergreen-950); transform: rotate(-45deg); }

/* ---------- scroll-filled statement ---------- */
.statement { padding: clamp(90px, 13vw, 190px) 0; }
.statement p.big { font: 500 clamp(30px, 4.4vw, 62px)/1.18 var(--font-display); letter-spacing: -.015em; color: var(--ink); max-width: 22ch; margin: 0; }
.statement .fw { opacity: .16; transition: opacity .35s ease, color .35s; }
.statement .fw.on { opacity: 1; }
.statement .fw.hl.on { color: var(--warm); font-style: italic; }
.statement-foot { display: flex; gap: 40px; align-items: center; margin-top: 56px; flex-wrap: wrap; }
.statement-foot p { max-width: 42ch; margin: 0; }

/* ---------- path panels ---------- */
.panels { display: flex; gap: 14px; height: clamp(520px, 68vh, 680px); }
.panel {
  flex: 1; min-width: 0; position: relative; overflow: hidden; border-radius: 26px; text-decoration: none; color: var(--bone-100);
  display: flex; flex-direction: column; justify-content: space-between; padding: 32px; isolation: isolate;
  transition: flex .7s cubic-bezier(.2,.7,.2,1); background: var(--pbg);
}
.panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.45)); }
.panels:not(:hover):not(:focus-within) .panel:first-child, .panel:hover, .panel:focus-visible { flex: 2.3; }
.panel-life { --pbg: radial-gradient(120% 90% at 80% 10%, #6B5222, #2A2413 55%, #14120C); --seg: var(--brass-400); }
.panel-business { --pbg: radial-gradient(120% 90% at 80% 10%, #2F6B5E, #173A33 55%, #0B201C); --seg: #8FD1BF; }
.panel-health { --pbg: radial-gradient(120% 90% at 80% 10%, #8A4432, #3B211A 55%, #1C110D); --seg: #E3A18B; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; }
.panel-num { font: 500 clamp(60px, 7vw, 110px)/.9 var(--font-display); color: var(--seg); letter-spacing: -.04em; }
.panel-go { width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); display: grid; place-items: center; transition: all .4s; flex: none; }
.panel:hover .panel-go { background: var(--seg); color: #111; border-color: var(--seg); transform: rotate(-45deg); }
.panel-art { position: absolute; right: -8%; top: 12%; width: 72%; max-width: 420px; opacity: .22; z-index: -1; transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); color: var(--seg); }
.panel:hover .panel-art, .panels:not(:hover):not(:focus-within) .panel:first-child .panel-art { opacity: .5; transform: scale(1.06) rotate(-4deg); }
.panel-kicker { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--seg); margin-bottom: 10px; }
.panel h3 { font-size: clamp(22px, 2.1vw, 32px); color: #fff; margin: 0 0 14px; max-width: 18ch; }
.panel-more { max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s cubic-bezier(.2,.7,.2,1), opacity .4s; }
.panel:hover .panel-more, .panel:focus-visible .panel-more, .panels:not(:hover):not(:focus-within) .panel:first-child .panel-more { max-height: 260px; opacity: 1; transition-delay: .15s; }
.panel-more p { color: rgba(255,255,255,.78); max-width: 46ch; }
.panel-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.panel-tags span { font: 600 13px var(--font-body); padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.14); color: #fff; }

/* ---------- pinned Benjy Way ---------- */
.pin { height: 420vh; position: relative; }
.pin-stick { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 5vw, 80px); align-items: center; }
.pin-left .eyebrow { margin-bottom: 8px; }
.pin-num { font: 500 clamp(140px, 22vw, 330px)/.8 var(--font-display); letter-spacing: -.06em; color: var(--warm); display: flex; overflow: hidden; height: .82em; }
.pin-num .roll { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.7,0,.2,1); }
.pin-num .roll span { height: .82em; display: block; }
.pin-title { font: 500 clamp(22px, 2.2vw, 30px)/1.2 var(--font-display); color: var(--ink); margin: 18px 0 22px; }
.pin-bars { display: flex; gap: 8px; }
.pin-bars i { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; position: relative; }
.pin-bars i::after { content: ""; position: absolute; inset: 0; background: var(--warm-fill); transform: scaleX(var(--f, 0)); transform-origin: left; }
.pin-right { position: relative; height: min(560px, 70vh); }
.pin-card { position: absolute; inset: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(26px, 3.4vw, 48px); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(40px) scale(.97); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); pointer-events: none; overflow: auto; }
.pin-card.is-active { opacity: 1; transform: none; pointer-events: auto; }
.pin-card.is-past { opacity: 0; transform: translateY(-40px) scale(.97); }
.pin-card h3 { font-size: clamp(30px, 3.4vw, 50px); margin-bottom: 14px; }
.pin-card .q { font: 700 12px var(--font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--warm); margin-bottom: 18px; }
.pin-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pin-card li { padding: 12px 14px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); font-weight: 600; font-size: 15px; color: var(--ink-2); }
.pin-card .ssca { margin-top: 20px; }

/* ---------- midlife feature book ---------- */
.float-book { position: absolute; right: -6%; bottom: -8%; width: 38%; max-width: 190px; z-index: 3; border-radius: 4px 10px 10px 4px; overflow: hidden; box-shadow: -18px 30px 60px rgba(0,0,0,.6); transform: rotate(8deg); animation: float 6s ease-in-out infinite; }
.seal-wrap { position: relative; width: min(340px, 72vw); margin: 0 auto; }

/* ---------- featured tier: rotating gradient border ---------- */
.tier-featured { border: 2px solid transparent !important; background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(from var(--ang), var(--brass-500), rgba(184,137,59,.1) 25%, var(--evergreen-700) 50%, rgba(184,137,59,.1) 75%, var(--brass-500)) border-box; animation: ang 6s linear infinite; }
@keyframes ang { to { --ang: 360deg; } }

/* ---------- about ---------- */
.about-x { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 90px); align-items: center; }
.about-x .about-portrait { position: relative; border-radius: 30px; }
.about-x .quote { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.2; }

/* ---------- CTA band + footer wordmark ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-band h2 { font-size: clamp(40px, 6vw, 88px); max-width: 14ch; }
.cta-band .badge-spin { position: relative; flex: none; }
.footer-mark { font: 700 clamp(64px, 15.5vw, 250px)/.8 var(--font-display); letter-spacing: -.045em; white-space: nowrap; text-align: center; margin: 48px 0 -0.12em; color: transparent; -webkit-text-stroke: 1px rgba(207,163,90,.35); user-select: none; overflow: hidden; }
.site-footer { padding-bottom: 0; overflow: hidden; }
.footer-base { padding-bottom: 20px; }

/* ---------- section-page heroes: giant word behind the art ---------- */
.page-hero { padding-top: clamp(72px, 10vw, 140px); }
.page-hero h1 { max-width: 13ch; }
.page-hero .hero-word { position: absolute; right: -2%; bottom: -6%; font: 700 clamp(120px, 22vw, 360px)/.8 var(--font-display); letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px rgba(207,163,90,.28); pointer-events: none; z-index: 0; white-space: nowrap; }
.page-hero .wrap { z-index: 1; }

/* magnetic: JS sets --tx/--ty; composes with the badge's hover scale */
.magnetic, .magnetic:hover { transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .2s, color .2s, filter .2s; }
.badge-spin.magnetic:hover { transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(1.08); }
.hx-figure[data-depth], .hx-word [data-depth] { transition: transform .6s cubic-bezier(.2,.7,.2,1); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .panels { flex-direction: column; height: auto; }
  .panel { min-height: 300px; flex: none !important; }
  .panel .panel-more { max-height: none; opacity: 1; }
  .panel .panel-art { opacity: .35; }
}
@media (max-width: 960px) {
  .hx-grid { grid-template-columns: 1fr; padding-top: 100px; }
  .hx-copy { padding-bottom: 0; }
  .hx-figure { width: min(88%, 440px); }
  .hx-word { top: auto; bottom: 20%; right: 50%; transform: translateX(50%); font-size: 44vw; }
  .hx .badge-spin { width: 104px; height: 104px; left: auto; right: -2%; bottom: 20%; }
  .hx-card.c1 { left: -4%; }
  .hx-paths .wrap { grid-template-columns: 1fr; padding: 0; }
  .hx-path { border-left: 0; border-top: 1px solid rgba(243,239,230,.1); padding: 16px var(--gutter); }
  .pin { height: auto; }
  .pin-stick { position: static; height: auto; grid-template-columns: 1fr; padding: var(--section-y) 0; }
  .pin-num, .pin-bars, .pin-title { display: none; }
  .pin-right { height: auto; display: grid; gap: 16px; }
  .pin-card, .pin-card.is-past { position: relative; opacity: 1; transform: none; pointer-events: auto; }
  .about-x { grid-template-columns: 1fr; }
  .float-book { right: -2%; }
}
@media (max-width: 620px) {
  .hx-card { display: none; }
  .pin-card ul { grid-template-columns: 1fr; }
  .statement .fw { opacity: .25; }
  .cta-band .badge-spin { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pin { height: auto; }
  .pin-stick { position: static; height: auto; grid-template-columns: 1fr; padding: var(--section-y) 0; }
  .pin-num, .pin-bars, .pin-title { display: none; }
  .pin-right { height: auto; display: grid; gap: 16px; }
  .pin-card, .pin-card.is-past { position: relative; opacity: 1; transform: none; }
  .statement .fw { opacity: 1; }
  .tier-featured, .badge-spin svg.ring, .hx-figure::before, .hx-card, .float-book { animation: none !important; }
}
