/* Home page (22 Nov 2026): three hero mock-ups that share everything below the hero.
   v1 "Ink": the mark draws itself.  v2 "Candlelight": a glow you move reveals the mark.
   v3 "Through the mark": the mark is a window onto moving silk, and you fly through it on scroll. */

body.home-v { background: var(--cream-parchment); }
body.home-v .site-head { position: fixed; left: 0; right: 0; top: 0; background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; transition: background .4s, border-color .4s, color .4s; }
body.home-v .site-head.scrolled { background: rgba(228, 214, 195, 0.88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: rgba(89,31,43,.1); }
body.home-v.dark-top .site-head:not(.scrolled) { color: var(--cream-parchment); }
body.home-v.dark-top .site-head:not(.scrolled) .head-nav a { color: var(--cream-parchment); }
body.home-v.dark-top .site-head:not(.scrolled) .head-mark { filter: brightness(0) invert(.9) sepia(.2); }
body.home-v.dark-top .site-head:not(.scrolled) .head-cta:hover { background: var(--cream-parchment); color: var(--wine-main) !important; }

.hero-v { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; padding: 110px 24px 80px; }
.hero-v .tag { margin: 0; font: 400 12px/1 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--mauve-taupe); }
.hero-v .name { margin: 18px 0 0; font: 400 clamp(34px, 5.4vw, 64px)/1 var(--serif); letter-spacing: .3em; text-transform: uppercase; color: var(--wine-main); padding-left: .3em; }
.hero-v .name span { display: inline-block; opacity: 0; transform: translateY(18px); }
.hero-v .line { margin: 22px 0 0; font: italic 400 clamp(22px, 2.4vw, 28px)/1.3 var(--serif); color: var(--cocoa); }
.hero-v .actions { margin-top: 34px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 1px; height: 46px; background: linear-gradient(currentColor, transparent); color: var(--wine-main); opacity: .5; animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateX(-50%) scaleY(.4); transform-origin: top; } 50% { transform: translateX(-50%) scaleY(1); transform-origin: top; } }
.fade-in { opacity: 0; transform: translateY(14px); transition: opacity 1s, transform 1s cubic-bezier(.2,.7,.2,1); }
.is-on .fade-in { opacity: 1; transform: none; }
.is-on .fade-in.d1 { transition-delay: .15s; } .is-on .fade-in.d2 { transition-delay: .35s; } .is-on .fade-in.d3 { transition-delay: .55s; }

/* ---- v1 Ink ---- */
.ink .mark-wrap { width: min(30vh, 220px); margin: 0 auto 30px; will-change: transform; }
.ink svg { width: 100%; height: auto; overflow: visible; }
.ink .stroke { fill: none; stroke: var(--wine-main); stroke-width: 2.2; stroke-linejoin: round; }
.ink .fill { fill: var(--wine-main); opacity: 0; transition: opacity 1.4s ease .2s; }
.ink.filled .fill { opacity: 1; }
.ink.filled .stroke { opacity: 0; transition: opacity 1.2s ease .6s; }
.ink.letters .name span { animation: letter .9s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes letter { to { opacity: 1; transform: none; } }
.ink::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 55% 45% at 50% 42%, rgba(180,126,110,.18), transparent 70%); }

/* ---- v2 Candlelight ---- */
.candle { --x: 50%; --y: 45%; background: radial-gradient(ellipse at 50% 30%, #4a1a24, #2a0d13 70%); color: var(--cream-parchment); cursor: default; }
.candle .glow { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle 32vmax at var(--x) var(--y), rgba(255, 214, 170, .22), rgba(180,126,110,.08) 40%, transparent 70%); mix-blend-mode: screen; }
.candle .giant { position: absolute; left: 50%; top: 50%; height: 118vh; width: auto; transform: translate(-50%, -50%); pointer-events: none; }
.candle .giant .base { fill: rgba(255,255,255,.035); }
.candle .giant .lit { fill: url(#gold); }
.candle .lit-wrap { -webkit-mask-image: radial-gradient(circle 22vmax at var(--x) var(--y), #000 0%, rgba(0,0,0,.5) 45%, transparent 75%); mask-image: radial-gradient(circle 22vmax at var(--x) var(--y), #000 0%, rgba(0,0,0,.5) 45%, transparent 75%); }
.candle .inner { position: relative; z-index: 2; }
.candle .tag { color: rgba(228,214,195,.7); }
.candle h1 { margin: 22px 0 0; font: italic 400 clamp(64px, 11vw, 150px)/.9 var(--serif); color: var(--cream-parchment); text-shadow: 0 0 40px rgba(255,200,150,.25); }
.candle h1 .caps { display: block; margin-top: .3em; font: 400 .2em/1 var(--serif); letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; color: rgba(228,214,195,.85); }
.candle .line { color: rgba(228,214,195,.85); }
.candle .pill { --pc: var(--cream-parchment); --pt: var(--wine-main); }
.candle .pill.ghost { background: transparent; color: var(--cream-parchment); border-color: rgba(228,214,195,.6); }
.candle .pill.ghost::before { background: var(--cream-parchment); }
.candle .pill.ghost:hover { color: var(--wine-main); }
.candle .scroll-cue { color: var(--cream-parchment); }
.candle .hint { position: absolute; bottom: 30px; right: 30px; font: italic 400 16px/1 var(--serif); color: rgba(228,214,195,.5); }
@keyframes flicker { 0%, 100% { opacity: 1; } 47% { opacity: .92; } 50% { opacity: .97; } 53% { opacity: .9; } }
.candle .glow { animation: flicker 3.2s infinite; }

/* ---- v3 Through the mark ---- */
.through { height: 260vh; padding: 0; display: block; overflow: visible; place-items: normal; }
.through .stick { position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.through .window { position: absolute; left: 50%; top: 50%; height: 62vh; width: auto; transform: translate(-50%, -50%); z-index: 1; }
.through .window svg { height: 100%; width: auto; display: block; overflow: visible; }
.through .silk { animation: silk 18s ease-in-out infinite alternate; transform-origin: center; }
@keyframes silk { 0% { transform: translate(-8%, -4%) rotate(0deg) scale(1.1); } 100% { transform: translate(8%, 5%) rotate(25deg) scale(1.3); } }
.through .copy { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; z-index: 2; }
.through .copy > div { pointer-events: auto; }
.through .left, .through .right { position: absolute; top: 50%; transform: translateY(-50%); font: italic 400 clamp(40px, 6.4vw, 92px)/1 var(--serif); color: var(--wine-main); white-space: nowrap; }
.through .left { right: calc(50% + 21vh); text-align: right; }
.through .right { left: calc(50% + 21vh); }
.through .under { position: absolute; left: 0; right: 0; bottom: 9vh; text-align: center; z-index: 2; }
.through .under .tag { margin-bottom: 18px; }
.through .flood { position: absolute; inset: 0; background: var(--wine-main); opacity: 0; z-index: 3; pointer-events: none; }
@media (max-width: 760px) {
  .through .window { height: 46vh; }
  .through .left, .through .right { position: static; transform: none; font-size: 46px; }
  .through .copy { align-content: start; padding-top: 13vh; }
  .through .copy .words { display: flex; flex-direction: column; gap: 52vh; align-items: center; }
  .through .under { bottom: 7vh; }
}

/* ---- Shared home sections ---- */
.mission.dark { background: var(--wine-main); }
.mission.dark .mission-text { color: var(--cream-parchment); }
.mission.dark .mission-text em { color: var(--dusty-rose); }
.mission.dark .eyebrow, .mission.dark .mission-sign { color: rgba(228,214,195,.7); }
.feature-ev { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 50px; align-items: center; }
.feature-ev .poster { border-radius: 24px; }
.feature-ev h3 { margin: 6px 0 0; font: italic 400 clamp(46px, 6vw, 76px)/.95 var(--serif); color: var(--wine-main); }
.feature-ev .kicker { margin: 0; font: 400 12px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--dusty-rose); }
.feature-ev p { color: var(--cocoa); font-size: 17px; }
.feature-ev .meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.feature-ev .meta-row span { padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(89,31,43,.22); font-size: 14px; color: var(--wine-main); }
.feature-ev .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.invite { text-align: center; padding: 100px 0; background: var(--cocoa); color: var(--cream-parchment); }
.invite .script-big { margin: 0; font: italic 400 clamp(40px, 6vw, 76px)/1.08 var(--serif); }
.invite p { margin: 20px auto 30px; max-width: 34em; color: rgba(228,214,195,.85); }
.invite .pill { --pc: var(--cream-parchment); --pt: var(--cocoa); }
.ladder { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid rgba(89,31,43,.22); border-bottom: 1px solid rgba(89,31,43,.22); }
.ladder a { padding: 34px 28px; text-decoration: none; color: inherit; border-right: 1px solid rgba(89,31,43,.22); transition: background .35s; }
.ladder a:last-child { border-right: 0; }
.ladder a:hover { background: #efe5d8; }
.ladder .n { font: italic 400 30px/1 var(--serif); color: var(--dusty-rose); }
.ladder h3 { margin: 10px 0 6px; font: 400 30px/1.1 var(--serif); color: var(--wine-main); }
.ladder p { margin: 0; color: var(--mauve-taupe); font-size: 15.5px; }
.ladder .go { display: inline-block; margin-top: 16px; font: 400 11.5px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--wine-main); }
@media (max-width: 860px) {
  .feature-ev { grid-template-columns: 1fr; gap: 28px; }
  .ladder { grid-template-columns: 1fr; }
  .ladder a { border-right: 0; border-bottom: 1px solid rgba(89,31,43,.22); }
  .ladder a:last-child { border-bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .through { height: auto; }
  .through .stick { position: relative; }
  .scroll-cue, .through .silk, .candle .glow { animation: none; }
}
.candle .inner::before { content: ""; position: absolute; left: 50%; top: 50%; width: 150%; height: 150%; transform: translate(-50%, -50%); z-index: -1; pointer-events: none; background: radial-gradient(ellipse closest-side, rgba(30, 8, 13, .82), rgba(30, 8, 13, .5) 55%, transparent); }
.candle .giant { left: 62%; }
@media (max-width: 760px) { .candle .giant { left: 50%; height: 96vh; } }

/* Quality pass: hint would sit under other controls on phones */
@media (max-width: 760px) { .candle .hint { display: none; } }
.ladder a:hover { background: var(--champagne-stone); }
.ladder .go { min-height: 44px; display: inline-flex; align-items: center; font-size: 12px; }

/* Quality pass: readable colours (these sit after the section styles above) */
.feature-ev .kicker { color: var(--wine-main); }
.ladder .n { color: var(--mauve-taupe); }
.ladder p, .hero-v .tag, .through .under .tag { color: var(--cocoa); }
.candle .tag { color: rgba(228,214,195,.85); }
/* v3 on narrow screens: words above and below the mark, never on it (measured: mark spans 30vh to 70vh) */
@media (max-width: 760px) {
  .through .window { height: 40vh; }
  .through .copy { display: block; padding: 0; }
  .through .copy .words { display: block; }
  .through .left, .through .right { position: absolute; left: 0; right: 0; text-align: center; transform: none; }
  .through .left { top: calc(30vh - 76px); }
  .through .right { top: calc(70vh + 14px); }
}
@media (max-width: 760px) {
  .through .window { top: 42%; }
  .through .left { top: calc(22vh - 62px); }
  .through .right { top: calc(62vh + 12px); }
}

/* Candlelight: the whole mark fits inside the hero, clear of the header (Sarah: "bottom of logo cut off", 23 Nov) */
.candle .giant { margin: 0; height: calc(100% - 136px); max-height: 88vh; top: calc(50% + 36px); }
@media (max-width: 760px) { .candle .giant { height: calc(100% - 150px); max-height: 80vh; top: calc(50% + 34px); } }

/* Apply-only join section (23 Nov): breathing room under the main button */
.join .note { margin-top: 24px; }
/* Join section: one button, a quiet text line under it (Sarah: too many buttons, 23 Nov) */
.join .quiet { margin-top: 20px; font-size: 15px; color: rgba(89,31,43,.7); }
.join .quiet a { display: inline-block; padding: 12px 2px; color: #591f2b; font-weight: 500; text-decoration: none; }
.join .quiet a:hover { opacity: .75; }
/* Trimmed home (23 Nov): the founding invite is the one membership moment; quiet guest line under it */
.invite .quiet { margin: 22px auto 0; font-size: 15px; color: rgba(228,214,195,.7); }
.invite .quiet a { display: inline-block; padding: 12px 2px; color: var(--cream-parchment); font-weight: 500; text-decoration: none; }
.invite .quiet a:hover { opacity: .75; }
.masquerade .sub-link { text-transform: none; letter-spacing: .02em; font-size: 15px; justify-content: center; }
/* "what we do" intro line (23 Nov wording) */
.pillars-lede { margin: -18px auto 40px; max-width: 32em; text-align: center; color: rgba(89,31,43,.75); }
