/* v4: no helix, a product collage in the hero, start-here row, G vs S, FAQ, and a polish layer. */

/* ---------- Background: soft gold dust only ---------- */
#bg { opacity: .9; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%); }
@media (max-width: 900px) { #bg { opacity: .55; } }

/* ---------- Hero collage (wide screens only) ---------- */
.hero-visual { display: none; }
@media (min-width: 1360px) {
    .hero-visual { display: block; position: absolute; z-index: 1; right: max(24px, calc((100vw - 1240px) / 2)); top: 50%; width: 400px; height: 500px; transform: translateY(-48%); pointer-events: none; }
    .hv-card { position: absolute; border-radius: 26px; overflow: hidden; background: #EFEDE8; border: 1px solid rgba(255,255,255,.9); box-shadow: 0 50px 80px -40px rgba(26,26,26,.5), 0 0 0 1px rgba(229,225,216,.9); opacity: 0; transform: translateY(30px) rotate(var(--r, 0deg)); animation: hvIn 1.2s var(--ease) forwards, hvFloat 9s ease-in-out infinite; animation-delay: var(--dl, 1.6s), calc(var(--dl, 1.6s) + 1.2s); }
    .hv-card img.ph { width: 100%; height: 100%; }
    .hv-a { --r: -5deg; --dl: 1.7s; width: 250px; height: 250px; left: 0; top: 20px; z-index: 2; }
    .hv-b { --r: 4deg; --dl: 1.9s; width: 220px; height: 220px; right: 0; top: 150px; z-index: 3; }
    .hv-c { --r: -2deg; --dl: 2.1s; width: 200px; height: 200px; left: 44px; bottom: 6px; z-index: 1; }
    .hv-b { animation-duration: 1.2s, 11s; }
    .hv-c { animation-duration: 1.2s, 10s; }
    .hv-tag { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.95); border: 1px solid var(--accent); font-size: 12px; font-weight: 500; color: var(--dark); box-shadow: 0 14px 26px -16px rgba(0,0,0,.4); opacity: 0; animation: hvIn 1s var(--ease) 2.5s forwards; white-space: nowrap; }
    .hv-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
    .hv-tag-s i { background: #9aa38b; }
    .hv-tag-g { left: -18px; top: 292px; }
    .hv-tag-s { right: -6px; bottom: 74px; }
}
@keyframes hvIn { to { opacity: 1; transform: translateY(0) rotate(var(--r, 0deg)); } }
@keyframes hvFloat { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-10px) rotate(var(--r, 0deg)); } }
.hv-tag { opacity: 0; }

/* ---------- Hero tweaks ---------- */
.hero-title { text-wrap: balance; }
.hero-title em { color: #8a6d1d; font-style: italic; }
.stats > div { padding-right: 28px; border-right: 1px solid var(--accent); }
.stats > div:last-child { border-right: 0; }
@media (max-width: 640px) { .stats > div { padding-right: 0; border-right: 0; } }

/* ---------- Second marquee runs the other way ---------- */
.marquee-wrap { padding: 0; }
.marquee { padding: 18px 0; overflow: hidden; }
.marquee-rev { border-top: 1px solid var(--accent); background: var(--dark); padding: 14px 0; }
.marquee-rev .marquee-track { color: #d9d2c2; font-size: .95rem; animation-direction: reverse; animation-duration: 46s; }
.marquee-rev .marquee-track b { color: var(--gold); }

/* ---------- Start here ---------- */
.paths { padding: clamp(70px, 9vw, 120px) 0 clamp(20px, 4vw, 50px); }
.paths-head { max-width: 40rem; margin-bottom: clamp(28px, 4vw, 48px); }
.paths-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .paths-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.path-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 12px; padding: 32px 30px 28px; border-radius: 28px; background: rgba(255,255,255,.9); border: 1px solid var(--accent); color: var(--dark); min-height: 300px; overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s, background .3s, opacity .9s var(--ease); transition-delay: var(--d, 0ms); }
.path-card.done { transition-property: transform, box-shadow, border-color, background; transition-duration: .45s; transition-delay: 0ms; }
.path-card:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -36px rgba(26,26,26,.4); border-color: #cfc9bb; }
.path-card:active { transform: scale(.985); }
.path-n { font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(26,26,26,.22); transition: -webkit-text-stroke-color .3s; }
.path-card:hover .path-n { -webkit-text-stroke-color: var(--gold); }
.path-card h3 { font-size: 1.55rem; line-height: 1.15; max-width: 16ch; }
.path-card p { color: var(--muted); font-size: .92rem; max-width: 26rem; }
.path-go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; }
.path-go svg { transition: transform .35s var(--ease); }
.path-card:hover .path-go svg { transform: translateX(5px); }
.path-dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.path-dark h3 { color: #fff; }
.path-dark p { color: #b9b4a8; }
.path-dark .path-n { -webkit-text-stroke-color: rgba(212,175,55,.6); }
.path-dark:hover { border-color: var(--gold); }
.path-dark .path-go b { color: var(--gold); font-weight: 600; }

/* ---------- G versus S ---------- */
.gs { padding: clamp(60px, 9vw, 120px) 0; }
.gs-head { max-width: 44rem; margin-bottom: clamp(28px, 4vw, 48px); }
.gs-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .gs-grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
.gs-card { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3.4vw, 44px); border-radius: 32px; overflow: hidden; }
.gs-g { background: radial-gradient(circle at 80% 0%, #4a4132 0%, #1b1710 55%, #0a0907 100%); color: #f4e8dc; box-shadow: 0 50px 80px -50px rgba(0,0,0,.7); }
.gs-s { background: linear-gradient(160deg, #fffaf1 0%, #efe0cb 70%, #e4d0b4 100%); color: var(--dark); border: 1px solid #e0d2bb; box-shadow: 0 50px 80px -56px rgba(122,90,60,.55); }
.gs-top { display: flex; align-items: center; gap: 16px; }
.gs-letter { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; font-family: var(--serif); font-size: 2rem; font-weight: 600; }
.gs-g .gs-letter { background: linear-gradient(135deg, #F4E8DC, #D4AF37 50%, #9A7A34); color: #1b1710; }
.gs-s .gs-letter { background: var(--dark); color: #F4E8DC; }
.gs-label { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.gs-lead { font-family: var(--serif); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; max-width: 18ch; }
.gs-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid currentColor; border-color: rgba(128,128,128,.35); }
.gs-list li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; font-size: 14px; border-bottom: 1px solid rgba(128,128,128,.25); }
.gs-list span { opacity: .7; }
.gs-list b { font-weight: 500; text-align: right; }
.gs-card .btn { align-self: flex-start; margin-top: 6px; }
.gs-g .btn-gold:hover { background: #fff; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(40px, 6vw, 80px) 0 clamp(80px, 10vw, 140px); }
.faq-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .faq-grid { grid-template-columns: 4fr 7fr; gap: 80px; } .faq-copy { position: sticky; top: 130px; } }
.faq-copy .muted { margin-bottom: 24px; }
.faq-list { border-top: 1px solid var(--accent); }
.faq-item { border-bottom: 1px solid var(--accent); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--dark); transition: color .2s; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(var(--dark), var(--dark)) center / 100% 1.5px no-repeat, linear-gradient(var(--dark), var(--dark)) center / 1.5px 100% no-repeat; transition: transform .35s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: #8a6d1d; }
.faq-item p { padding: 0 0 24px; color: var(--muted); font-size: .96rem; max-width: 36rem; animation: faqIn .4s var(--ease) both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Polish ---------- */
.container .kicker { display: inline-flex; align-items: center; gap: 12px; }
.container .kicker::before { content: ""; width: 26px; height: 1px; background: var(--gold); }
.lab-head .kicker, .closer .kicker { justify-content: center; }
.btn-light:hover { background: #fff; }
.pcard { transition: box-shadow .45s var(--ease), border-color .3s, transform .45s var(--ease); }
.process-card, .science-card { backdrop-filter: none; }
#site-header.scrolled { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background: rgba(249,248,246,.86); }
.closer { padding-bottom: clamp(90px, 12vw, 160px); }
.closer-title em { color: #8a6d1d; }
.footer-logo { letter-spacing: .01em; }

@media (prefers-reduced-motion: reduce) {
    .hv-card, .hv-tag { animation: none !important; opacity: 1; transform: rotate(var(--r, 0deg)); }
    .marquee-track { animation: none !important; }
    .faq-item p { animation: none; }
}
