:root {
  --black: #0a0a0b;
  --black-2: #111113;
  --panel: #141416;
  --line: rgba(214, 183, 110, 0.16);
  --gold: #d8af52;
  --gold-soft: #e9cd84;
  --gold-deep: #9c7426;
  --ink: #ece6d8;
  --muted: #8f897c;
  --maxw: 1120px;
  --radius: 14px;
  --grad-gold: linear-gradient(120deg, #b8862f 0%, #e9cd84 45%, #c9a24b 70%, #f4e6bd 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Jost", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--black);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0 0 .5em; font-weight: 400; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 660px; }
.center { text-align: center; }

.eyebrow { text-transform: uppercase; letter-spacing: .3em; font-size: .72rem; font-weight: 400; color: var(--gold); margin-bottom: 1rem; }
.eyebrow.center { text-align: center; }

.gold-text {
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.reg { font-size: .35em; vertical-align: super; letter-spacing: 0; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 10, 11, 0.72);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-dots { display: inline-flex; flex-direction: column; gap: 3px; }
.brand-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--grad-gold); box-shadow: 0 0 6px rgba(216,175,82,.5); }
.brand-name {
  font-family: "Cinzel", serif; letter-spacing: .22em; font-size: 1.02rem; font-weight: 500;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 30px; font-size: .82rem; text-transform: uppercase; letter-spacing: .18em; }
.nav-links a:not(.btn) { color: var(--muted); transition: color .2s; }
.nav-links a:not(.btn):hover { color: var(--gold); }

/* ---- Buttons ---- */
.btn {
  display: inline-block; cursor: pointer; transition: .2s ease;
  font-family: "Jost", sans-serif; font-weight: 400; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .2em;
  padding: 14px 28px; border-radius: 999px;
  color: var(--black); background: var(--grad-gold);
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(216,175,82,.6); }
.btn-sm { padding: 10px 20px; font-size: .72rem; }
.btn-ghost { background: transparent; color: var(--gold); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold); box-shadow: none; }
.btn-block { width: 100%; padding: 16px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 90px 0 110px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(620px 380px at var(--mx, 50%) var(--my, 30%), rgba(216,175,82,.10), transparent 60%);
  transition: background .12s linear;
}
.hero-inner { display: grid; grid-template-columns: 120px 1fr; gap: 48px; align-items: center; position: relative; z-index: 1; }

.spine-logo { display: flex; justify-content: center; }
.spine-logo svg { overflow: visible; }
.spine-logo .thread {
  stroke-dasharray: 360; stroke-dashoffset: 360;
  opacity: .5;
  animation: draw-thread 1.6s ease forwards .3s;
}
@keyframes draw-thread { to { stroke-dashoffset: 0; } }
.spine-logo .hdot {
  opacity: 0; transform-box: fill-box; transform-origin: center;
  animation: pop-dot .5s cubic-bezier(.2,.8,.2,1) forwards;
  filter: drop-shadow(0 0 6px rgba(216,175,82,.55));
  transition: filter .2s, transform .2s;
}
.spine-logo .hdot[data-i="0"] { animation-delay: .35s; }
.spine-logo .hdot[data-i="1"] { animation-delay: .55s; }
.spine-logo .hdot[data-i="2"] { animation-delay: .75s; }
.spine-logo .hdot[data-i="3"] { animation-delay: .95s; }
.spine-logo .hdot[data-i="4"] { animation-delay: 1.15s; }
.spine-logo .hdot.lit { filter: drop-shadow(0 0 16px rgba(233,205,132,.95)); }
@keyframes pop-dot { 0% { opacity: 0; transform: scale(.2); } 100% { opacity: 1; transform: scale(1); } }

.wordmark {
  font-family: "Cinzel", serif; font-weight: 500;
  font-size: clamp(2.6rem, 8vw, 5.2rem); line-height: 1; letter-spacing: .08em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rule { width: 56px; height: 1px; background: var(--gold-deep); margin: 22px 0; }
.tagline { font-family: "Cinzel", serif; text-transform: uppercase; letter-spacing: .28em; font-size: clamp(.9rem, 2vw, 1.15rem); color: var(--ink); margin-bottom: .4rem; }
.subtag { color: var(--muted); letter-spacing: .04em; max-width: 460px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-hint { margin-top: 26px; font-size: .75rem; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; opacity: .65; }

/* ---- Sections ---- */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-title { font-family: "Cinzel", serif; font-weight: 400; font-size: clamp(1.6rem, 4vw, 2.5rem); letter-spacing: .02em; color: var(--ink); }
.section-sub { color: var(--muted); max-width: 620px; margin: 0 auto 1.5rem; }

/* ---- Interactive spine section ---- */
.spine-section { padding: 40px 0 96px; border-top: 1px solid var(--line); }
.spine-grid { display: grid; grid-template-columns: 90px 1fr; gap: 30px; }
.spine-rail { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; justify-content: center; }
.rail-track { position: relative; width: 2px; height: 62vh; background: rgba(216,175,82,.16); border-radius: 2px; }
.rail-fill { position: absolute; top: 0; left: 0; width: 100%; height: 0; background: var(--grad-gold); border-radius: 2px; transition: height .25s ease; box-shadow: 0 0 12px rgba(216,175,82,.5); }
.rail-dots { position: absolute; inset: 0; list-style: none; margin: 0; padding: 0; }
.rail-dots li {
  position: absolute; left: 50%; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%); background: #2a2618; border: 1px solid var(--gold-deep);
  transition: .35s ease;
}
.rail-dots li[data-i="0"] { top: 6%; }
.rail-dots li[data-i="1"] { top: 28%; }
.rail-dots li[data-i="2"] { top: 50%; }
.rail-dots li[data-i="3"] { top: 72%; }
.rail-dots li[data-i="4"] { top: 94%; }
.rail-dots li.active { background: var(--grad-gold); border-color: var(--gold-soft); box-shadow: 0 0 18px rgba(233,205,132,.9); transform: translate(-50%, -50%) scale(1.35); }

.stages { padding: 80px 0; }
.stages .eyebrow, .stages .section-title, .stages .section-sub { text-align: left; margin-left: 0; }
.stages .section-sub { margin-left: 0; }
.stage {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 38px; align-items: center;
  padding: 46px 0; margin: 8px 0;
  border-top: 1px solid var(--line);
  opacity: .3; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease;
}
.stage:first-of-type { border-top: none; }
.stage.in { opacity: 1; transform: none; }
.stage:nth-of-type(even) .stage-photo { order: 2; } /* alternate photo side for rhythm */
.stage-photo {
  margin: 0; position: relative; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 26px 60px -26px rgba(0,0,0,.85);
}
.stage-photo::after { content: ""; position: absolute; inset: 0; border-radius: 14px; box-shadow: inset 0 0 0 1px rgba(216,175,82,.2); pointer-events: none; }
.stage-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transform: scale(1.05); transition: transform 1.3s ease; }
.stage.in .stage-photo img { transform: scale(1); }
.stage-icon { color: var(--gold-deep); transition: color .4s ease, filter .4s ease; display: inline-block; }
.stage.in .stage-icon { color: var(--gold); filter: drop-shadow(0 0 10px rgba(216,175,82,.45)); }
.stage-icon .ic { width: 40px; height: 40px; }
.stage-no { display: block; font-family: "Cinzel", serif; font-size: .85rem; letter-spacing: .25em; color: var(--gold); margin-top: 10px; }
.stage h3 { font-family: "Cinzel", serif; font-weight: 400; font-size: clamp(1.5rem, 3.5vw, 2.1rem); color: var(--ink); margin: .3rem 0 .6rem; }
.stage p { color: var(--muted); max-width: 460px; margin: 0; }

/* ---- Humanity: warm cream band ---- */
.band-cream {
  background: linear-gradient(180deg, #f5eee2 0%, #efe5d4 100%);
  color: #221f18; padding: 96px 0; border-top: 1px solid var(--line);
}
.band-cream .eyebrow { color: #a07d2e; }
.band-cream .section-title { color: #221f18; }
.band-cream .section-sub { color: #6b6353; }
.people-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; margin-top: 44px; }
.person { margin: 0; text-align: center; }
.portrait {
  display: block; width: 116px; height: 116px; margin: 0 auto 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #e9cd84, #b8862f 70%, #8a6622);
  position: relative; box-shadow: 0 10px 30px -12px rgba(120,90,30,.55);
}
.portrait::before {
  content: ""; position: absolute; inset: 6px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.45);
  background: linear-gradient(150deg, rgba(255,255,255,.25), rgba(0,0,0,.08));
}
.portrait::after {
  content: attr(data-mono); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; font-size: 1.6rem; color: rgba(34,31,24,.5); letter-spacing: .05em;
}
.person figcaption strong { display: block; font-family: "Cinzel", serif; font-weight: 500; font-size: 1.1rem; color: #221f18; }
.person figcaption span { display: block; color: #6b6353; font-size: .88rem; margin-top: 4px; }
.img-note { text-align: center; margin: 40px 0 0; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #a99877; }
.cream-dots { display: flex; justify-content: center; gap: 12px; margin-top: 38px; }
.cream-dots i { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, #e9cd84, #b8862f); box-shadow: 0 2px 6px rgba(120, 90, 30, .4); }

/* ---- Sub-pages (Our story / Contact) ---- */
.page-hero { position: relative; padding: 84px 0 40px; overflow: hidden; border-bottom: 1px solid var(--line); }
.page-title { font-family: "Cinzel", serif; font-weight: 500; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: .03em; color: var(--ink); max-width: 18ch; margin-bottom: .4em; }
.page-hero .lede { color: var(--muted); max-width: 620px; }
.nav-links a.active { color: var(--gold); }
.textlink { color: var(--gold); border-bottom: 1px solid rgba(216, 175, 82, .4); padding-bottom: 2px; }
.textlink:hover { border-color: var(--gold); }

/* Founder block (sits on the cream band) */
.founder { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.founder-aside { text-align: center; }
.founder-portrait { width: 150px; height: 150px; margin: 0 auto 18px; }
.founder-name { font-family: "Cinzel", serif; font-size: 1.25rem; color: #221f18; margin: 0; }
.founder-role { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: #8a7c55; margin: 4px 0 0; }
.founder-bio .eyebrow { color: #a07d2e; }
.founder-bio .section-title { color: #221f18; text-align: left; }
.founder-bio p { color: #4f4a3e; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 50px; }
.stat { text-align: center; border-top: 1px solid var(--line); padding-top: 26px; }
.stat-num { display: block; font-family: "Cinzel", serif; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--gold); }
.stat-label { display: block; color: var(--muted); font-size: .9rem; margin-top: 8px; }

/* Footer links */
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin: 4px 0 16px; font-size: .8rem; text-transform: uppercase; letter-spacing: .14em; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-email { font-family: "Cinzel", serif; font-weight: 400; font-size: clamp(1.3rem, 3vw, 1.9rem); margin: .2rem 0 1rem; }
.contact-email a { color: var(--gold); }
.contact-note { color: var(--muted); max-width: 420px; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); }
.contact-list a { color: var(--ink); }
.contact-list a:hover { color: var(--gold); }
.ci { flex: none; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--gold-deep); color: var(--gold); font-size: .85rem; }
.contact-dots { flex-direction: row !important; gap: 9px; margin-top: 34px; }
.contact-form { margin-top: 0; }

/* Photo slots: gold placeholder shows until a real image loads (then it fades in). */
.portrait img.slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; z-index: 3; opacity: 0; transition: opacity .45s ease; }
.portrait.has-img img.slot { opacity: 1; }
.portrait.has-img::after { display: none; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.shot { margin: 0; }
.shot-frame {
  display: block; position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  background: linear-gradient(135deg, #e9cd84, #b8862f 60%, #8a6622);
  box-shadow: 0 14px 36px -16px rgba(120, 90, 30, .5);
}
.shot-frame::after {
  content: "Photo"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: "Cinzel", serif; letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; color: rgba(34, 31, 24, .5);
}
.shot-frame.has-img::after { display: none; }
.shot-frame img.slot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s ease; }
.shot-frame.has-img img.slot { opacity: 1; }
.shot figcaption { margin-top: 14px; text-align: center; font-family: "Cinzel", serif; color: #221f18; letter-spacing: .04em; }

/* ---- Cards ---- */
.grid { display: grid; gap: 18px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; transition: .25s ease; }
.card:hover { border-color: var(--gold-deep); transform: translateY(-3px); }
.card h3 { font-family: "Cinzel", serif; font-weight: 400; font-size: 1.15rem; color: var(--gold); }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ---- Interest form ---- */
.interest { background: radial-gradient(800px 400px at 50% 0%, rgba(216,175,82,.06), transparent 70%); }
.eoi { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; }
.field { display: flex; flex-direction: column; }
.field-full { grid-column: 1 / -1; }
.eoi label { font-size: .76rem; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 8px; color: var(--muted); }
.req { color: var(--gold); }
.eoi input, .eoi select, .eoi textarea {
  font: inherit; font-weight: 300; padding: 13px 15px; border-radius: 10px;
  background: var(--black-2); border: 1px solid var(--line); color: var(--ink);
}
.eoi input:focus, .eoi select:focus, .eoi textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(216,175,82,.12); }
.eoi select { color: var(--ink); }
.form-status { margin: 14px 0 0; font-weight: 400; min-height: 1.2em; letter-spacing: .04em; }
.form-status.ok { color: var(--gold-soft); }
.form-status.err { color: #e3a07a; }

/* ---- Footer ---- */
.site-footer { background: #060607; border-top: 1px solid var(--line); padding: 56px 0; }
.footer-inner { text-align: center; }
.footer-dots { flex-direction: row !important; justify-content: center; gap: 7px; margin-bottom: 18px; }
.footer-brand { font-size: 1.3rem; display: inline-block; margin-bottom: 10px; }
.footer-tag { color: var(--muted); letter-spacing: .06em; margin: 0 0 14px; }
.footer-fine { color: rgba(143,137,124,.6); font-size: .78rem; margin: 0; letter-spacing: .04em; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .grid-4, .people-row { grid-template-columns: repeat(2, 1fr); }
  .nav-links a:not(.btn) { display: none; }
  .hero-inner { grid-template-columns: 70px 1fr; gap: 28px; }
  .spine-logo svg { height: 320px; }
  .spine-rail { display: none; }
  .spine-grid { grid-template-columns: 1fr; }
  .stages { padding: 40px 0; }
  .stage { grid-template-columns: 1fr; gap: 22px; }
  .stage:nth-of-type(even) .stage-photo { order: 0; } /* photo always on top when stacked */
  .founder, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 540px) {
  .grid-4, .eoi, .people-row, .gallery, .stats { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 72px; }
  .hero-inner { grid-template-columns: 54px 1fr; }
  .section { padding: 64px 0; }
}

@media (prefers-reduced-motion: reduce) {
  .spine-logo .thread, .spine-logo .hdot { animation: none; opacity: 1; stroke-dashoffset: 0; }
  .stage { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
