/* ============================================================
   D' BONE COLLECTOR MUSEUM — Homepage
   "Every Skeleton Has A Story"
   ============================================================ */

:root {
  --ocean:    #061B34;  /* deep ocean blue  */
  --navy:     #0E2E52;  /* museum navy      */
  --navy-2:   #123A66;  /* lifted navy      */
  --ivory:    #F7F5F0;  /* bone ivory       */
  --ivory-2:  #EFEBE2;  /* deeper ivory     */
  --gold:     #D8A75A;  /* museum gold      */
  --gold-2:   #C8954A;
  --white:    #FFFFFF;
  --charcoal: #151515;
  --text:     #E5E5E5;
  --text-dim: #9FB0C4;

  --maxw: 1280px;
  --gut: 48px;

  --f-display: 'Bebas Neue', 'Oswald', sans-serif;
  --f-head:    'Oswald', sans-serif;
  --f-body:    'Inter', -apple-system, sans-serif;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--f-body);
  background: var(--ocean);
  color: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  opacity: .8;
}
.eyebrow.center { justify-content: center; }
.eyebrow.center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  opacity: .8;
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: .92; letter-spacing: .01em; }

.h-xxl { font-size: clamp(56px, 9vw, 150px); }
.h-xl  { font-size: clamp(44px, 6vw, 96px); }
.h-lg  { font-size: clamp(38px, 4.4vw, 72px); }
.h-md  { font-size: clamp(30px, 3vw, 48px); }

.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.65;
  color: var(--text);
  max-width: 60ch;
}

.muted { color: var(--text-dim); }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--f-head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 17px 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .35s var(--ease);
  white-space: nowrap;
}
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

.btn-gold { background: var(--gold); color: var(--ocean); }
.btn-gold:hover { background: var(--white); }

.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(216,167,90,.06); }

.btn-dark { background: var(--ocean); color: var(--white); }
.btn-dark:hover { background: var(--navy); }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 26px 0;
  transition: background .4s var(--ease), padding .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav-inner {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gut);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav.scrolled {
  background: rgba(6,27,52,.92);
  backdrop-filter: blur(14px);
  padding: 16px 0;
  border-bottom-color: rgba(216,167,90,.18);
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo img { height: 132px; width: auto; transition: height .4s var(--ease); }
.nav.scrolled .nav-logo img { height: 96px; }
.nav-links { display: flex; align-items: center; gap: 30px; flex-shrink: 0; }
.nav-links a {
  font-family: var(--f-head);
  font-weight: 500;
  font-size: 13.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  position: relative;
  padding: 4px 0;
  white-space: nowrap;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--gold); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { padding: 12px 26px; font-size: 13px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media image-slot { position: absolute; inset: 0; width: 100%; height: 120%; top: -10%; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 30%, rgba(6,27,52,.30) 0%, rgba(6,27,52,.72) 60%, rgba(6,27,52,.95) 100%),
    linear-gradient(180deg, rgba(6,27,52,.55) 0%, rgba(6,27,52,.15) 35%, rgba(6,27,52,.85) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 120px var(--gut) 0; max-width: 1100px; }
.hero h1 { color: var(--white); margin: 22px 0 34px; line-height: .95; text-shadow: 0 4px 60px rgba(0,0,0,.5); }
.hero h1 .gold { color: var(--gold); }
.hero-lead { margin: 0 auto 38px; color: #EDEFF2; }
.hero .btn-row { justify-content: center; }

.scroll-cue {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-head); font-size: 11px; letter-spacing: .3em; text-transform: uppercase;
  color: var(--text-dim);
}
.scroll-cue .line { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; top: -50%; left: 0; width: 100%; height: 50%;
  background: var(--white); animation: scrolldrop 2.2s var(--ease) infinite;
}
@keyframes scrolldrop { 0% { top: -50%; } 60%,100% { top: 100%; } }

/* ---------- Section scaffolding ---------- */
section { position: relative; }
.pad { padding: clamp(80px, 11vh, 150px) 0; }
.sec-head { max-width: 760px; }
.sec-head.center { margin: 0 auto; text-align: center; }
.sec-head h2 { margin: 18px 0 22px; }

.on-dark { background: var(--ocean); color: var(--text); }
.on-navy { background: var(--navy); color: var(--text); }
.on-ivory { background: var(--ivory); color: var(--charcoal); }
.on-ivory .eyebrow { color: var(--gold-2); }
.on-ivory .eyebrow::before, .on-ivory .eyebrow.center::after { background: var(--gold-2); }
.on-ivory h2 { color: var(--ocean); }
.on-ivory .lead, .on-ivory p { color: #4A4A46; }
.on-ivory .muted { color: #7A766C; }

/* ---------- Stats ---------- */
.stats {
  background:
    linear-gradient(180deg, var(--ocean), var(--navy) 50%, var(--ocean));
  border-top: 1px solid rgba(216,167,90,.16);
  border-bottom: 1px solid rgba(216,167,90,.16);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat { text-align: center; padding: 18px 28px; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 76px; background: rgba(255,255,255,.1);
}
.stat .num {
  font-family: var(--f-display); font-size: clamp(50px, 5vw, 84px); line-height: 1;
  color: var(--gold); letter-spacing: .02em;
}
.stat .label {
  font-family: var(--f-body); font-size: 14px; color: var(--text-dim);
  margin-top: 12px; line-height: 1.5; max-width: 22ch; margin-inline: auto;
}

/* ---------- Why visit / feature cards ---------- */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; }
.fcard {
  background: var(--white);
  display: flex; flex-direction: column;
  border: 1px solid var(--ivory-2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.fcard:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(6,27,52,.4); }
.fcard .ph { height: 280px; overflow: hidden; }
.fcard image-slot { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.fcard:hover image-slot { transform: scale(1.06); }
.fcard .body { padding: 34px 32px 38px; }
.fcard .num-tag { font-family: var(--f-display); font-size: 22px; color: var(--gold-2); letter-spacing: .08em; }
.fcard h3 { font-family: var(--f-head); font-weight: 600; font-size: 23px; line-height: 1.2; text-transform: none; color: var(--ocean); margin: 10px 0 14px; letter-spacing: 0; }
.fcard p { font-size: 16px; color: #5A564E; line-height: 1.65; }

/* ---------- Immersive full-bleed feature ---------- */
.immersive {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  overflow: hidden;
}
.immersive image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.immersive .veil {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(6,27,52,.92) 0%, rgba(6,27,52,.62) 42%, rgba(6,27,52,.15) 75%, rgba(6,27,52,.45) 100%);
}
.immersive .veil.bottom {
  background: linear-gradient(0deg, rgba(6,27,52,.95) 0%, rgba(6,27,52,.35) 45%, rgba(6,27,52,.1) 100%);
}
.immersive .content { position: relative; z-index: 2; padding: 0 var(--gut) clamp(70px,9vh,120px); max-width: var(--maxw); margin: 0 auto; width: 100%; }
.immersive .content .inner { max-width: 620px; }
.immersive h2 { color: var(--white); margin: 18px 0 22px; }
.immersive p { color: #DDE3EA; margin-bottom: 30px; max-width: 54ch; }

/* ---------- Conservation (turtle) ---------- */
.turtle { background: var(--charcoal); overflow: hidden; }
.turtle .grid { display: grid; grid-template-columns: 1.05fr .95fr; min-height: 88vh; }
.turtle .media { position: relative; overflow: hidden; }
.turtle .media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.turtle .media .tint { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(21,21,21,0) 60%, rgba(21,21,21,.85) 100%); }
.turtle .copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(60px,8vh,110px) clamp(48px,6vw,96px); background: var(--charcoal); }
.turtle .eyebrow { color: var(--gold); }
.turtle h2 { color: var(--white); margin: 22px 0 26px; font-size: clamp(46px, 5.5vw, 92px); }
.turtle p { color: #C9C9C6; margin-bottom: 18px; max-width: 46ch; }
.turtle .accent { color: var(--gold); font-style: italic; }
.turtle .btn-row { margin-top: 24px; }
/* real-case callout */
.casefile {
  border-left: 2px solid var(--gold);
  background: rgba(216,167,90,.06);
  padding: 22px 26px; margin: 26px 0 28px; max-width: 48ch;
}
.casefile .cf-tag {
  font-family: var(--f-head); font-weight: 600; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 12px;
}
.casefile .cf-body { color: #D9D9D6; margin: 0 0 14px; font-size: 16px; }
.casefile .cf-body strong, .casefile .cf-stat strong { color: var(--white); }
.casefile .cf-stat { color: #B7B7B3; font-size: 15px; margin: 0; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.1); }

/* ---------- Collection grid ---------- */
.col-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 60px; }
.col-card {
  position: relative; aspect-ratio: 4/3.4; overflow: hidden; cursor: pointer;
  background: var(--navy);
}
.col-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .9s var(--ease); }
.col-card:hover image-slot { transform: scale(1.08); }
.col-card .grad {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(6,27,52,.94) 0%, rgba(6,27,52,.45) 45%, rgba(6,27,52,.05) 100%);
  transition: background .5s var(--ease);
}
.col-card:hover .grad { background: linear-gradient(0deg, rgba(6,27,52,.96) 0%, rgba(6,27,52,.55) 55%, rgba(6,27,52,.2) 100%); }
.col-card .cc-body { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; }
.col-card h3 { font-family: var(--f-head); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: 26px; color: var(--white); line-height: 1.1; }
.col-card .cc-desc {
  font-size: 15px; color: #C5D0DD; line-height: 1.55; margin-top: 12px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .5s var(--ease), margin .5s var(--ease);
}
.col-card:hover .cc-desc { max-height: 120px; opacity: 1; }
.col-card .cc-line { width: 38px; height: 2px; background: var(--gold); margin-top: 16px; transition: width .4s var(--ease); }
.col-card:hover .cc-line { width: 64px; }

/* ---------- Split (education / founder) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.split.rev .split-media { order: 2; }
.split-media { position: relative; min-height: 560px; overflow: hidden; }
.split-media image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.split-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(64px,8vh,120px) clamp(48px,5.5vw,96px); }
.split-copy h2 { margin: 18px 0 24px; }
.split-copy p { margin-bottom: 18px; }
.split-copy .btn-row { margin-top: 22px; }

/* founder badge */
.founder-badge {
  position: absolute; z-index: 3; left: 32px; bottom: 32px;
  background: rgba(6,27,52,.82); backdrop-filter: blur(8px);
  border: 1px solid rgba(216,167,90,.3);
  padding: 18px 26px;
}
.founder-badge .nm { font-family: var(--f-head); font-weight: 600; font-size: 19px; color: var(--white); text-transform: none; }
.founder-badge .rl { font-size: 13px; color: var(--gold); letter-spacing: .12em; text-transform: uppercase; margin-top: 2px; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 60px; }
.tcard {
  border: 1px solid rgba(216,167,90,.18); background: rgba(255,255,255,.03);
  padding: 38px 38px 34px; position: relative;
}
.tcard .q { font-family: var(--f-display); font-size: 60px; line-height: .5; color: var(--gold); opacity: .5; }
.tcard p { font-size: 18px; color: #DDE3EA; line-height: 1.6; margin-top: 14px; }
.tcard .who { margin-top: 22px; font-family: var(--f-head); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; color: var(--gold); }

/* ---------- Plan visit ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.visit-info { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 0; margin: 32px 0 36px; }
.visit-info li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--ivory-2); font-family: var(--f-head); font-weight: 400; font-size: 17px; color: var(--ocean); }
.visit-info li .dot { width: 7px; height: 7px; background: var(--gold); flex-shrink: 0; transform: rotate(45deg); }
.map-card { position: relative; aspect-ratio: 1/1.05; overflow: hidden; border: 1px solid var(--ivory-2); }
.map-card image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-pin {
  position: absolute; z-index: 2; left: 28px; bottom: 28px; right: 28px;
  background: var(--white); padding: 22px 26px; box-shadow: 0 24px 50px -24px rgba(6,27,52,.5);
}
.map-pin .city { font-family: var(--f-head); font-weight: 600; font-size: 20px; color: var(--ocean); text-transform: none; }
.map-pin .addr { font-size: 15px; color: #6B675E; margin-top: 4px; }

/* ---------- Final CTA ---------- */
.final {
  position: relative; min-height: 84vh; display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}
.final image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.final .veil {
  position: absolute; inset: 0;
  background: radial-gradient(100% 90% at 50% 50%, rgba(6,27,52,.7), rgba(6,27,52,.93) 70%, var(--ocean) 100%);
}
.final .inner { position: relative; z-index: 2; padding: 0 var(--gut); max-width: 900px; }
.final h2 { color: var(--white); margin-bottom: 26px; }
.final p { color: #DDE3EA; margin: 0 auto 14px; max-width: 56ch; }
.final .btn-row { justify-content: center; margin-top: 38px; }

/* ---------- Footer ---------- */
.footer { background: #04132A; border-top: 1px solid rgba(216,167,90,.16); padding: 80px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
.footer-brand img { height: 150px; margin: 0 0 24px -6px; }
.footer-brand p { color: var(--text-dim); font-size: 15px; max-width: 34ch; }
.footer-col h4 { font-family: var(--f-head); font-weight: 600; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.footer-col a, .footer-col p { display: block; color: var(--text-dim); font-size: 15px; margin-bottom: 12px; transition: color .3s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bot {
  margin-top: 64px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.08);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-dim); letter-spacing: .04em;
}
.footer-bot .built-by { color: var(--text-dim); transition: color .3s var(--ease); }
.footer-bot .built-by:hover { color: var(--gold); }
.footer-bot .tag { font-family: var(--f-head); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* ---------- Reveal animation ----------
   Default state is VISIBLE. JS only "arms" (hides) elements that are
   below the fold, so anything in the initial viewport always shows even
   if scripts are slow/disabled or transitions are paused. */
.reveal { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.armed { opacity: 0; transform: translateY(34px); }
.reveal.armed.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal.armed { opacity: 1; transform: none; transition: none; }
  .scroll-cue .line::after { animation: none; }
}

/* ---------- Responsive (desktop-first, graceful down) ---------- */
@media (max-width: 1024px) {
  :root { --gut: 32px; }
  .nav-links { display: none; }
  .cards-3, .col-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .stat:nth-child(3)::before { display: none; }
  .turtle .grid, .split, .visit-grid, .testi-grid, .footer-top { grid-template-columns: 1fr; }
  .turtle .media { min-height: 50vh; }
  .split.rev .split-media { order: 0; }
  .split-media { min-height: 50vh; }
  .visit-grid { gap: 40px; }
}
@media (max-width: 600px) {
  .cards-3, .col-grid, .visit-info { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat::before { display: none !important; }
  .scroll-cue { display: none; }
}
