/*
Theme Name: Sillage
Description: Independent niche perfume house.
Version: 1.0
*/

/* ============================================================
   Sillage's structural principle: the page itself is shaped like
   a fragrance pyramid. Top-note sections run full-width and fast;
   heart-note sections settle to a standard measure; base-note
   sections narrow to a slow, single reading column. Section width
   and rhythm actually change as you scroll — no prior theme in
   this project has varied its own measure like this.
   Palette is aubergine-wine black + warm gold + a blush accent
   used only for glow moments — a hue family not used before.
   ============================================================ */
:root {
	--wine: #1B0E13;
	--wine-raised: #241219;
	--wine-line: rgba(233, 200, 165, 0.14);
	--wine-line-strong: rgba(233, 200, 165, 0.32);
	--bone: #F3E7DC;
	--bone-dim: #C9B6A8;
	--bone-faint: #8C7568;
	--gold: #C9A15A;
	--gold-bright: #E8C888;
	--blush: #E3A6A0;
	--font-display: 'Bodoni Moda', serif;
	--font-body: 'Work Sans', sans-serif;
	--font-mono: 'Overpass Mono', monospace;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background: var(--wine);
	color: var(--bone);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--gold); color: var(--wine); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.05; margin: 0 0 0.45em; color: var(--bone); }
h1 { font-size: clamp(44px, 7vw, 108px); font-optical-sizing: auto; }
h2 { font-size: clamp(28px, 3.6vw, 48px); }
h3 { font-size: clamp(19px, 2vw, 24px); font-style: italic; font-weight: 400; }
p { margin: 0 0 1.1em; color: var(--bone-dim); }
.mono { font-family: var(--font-mono); }

.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--gold); }

.btn { display: inline-flex; align-items: center; gap: 10px; padding: 14px 30px; border: 1px solid var(--gold); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); background: transparent; transition: background 0.3s, color 0.3s; cursor: pointer; }
.btn:hover { background: var(--gold); color: var(--wine); }
.btn.solid { background: var(--gold); color: var(--wine); }
.btn.solid:hover { background: var(--gold-bright); border-color: var(--gold-bright); }

/* ============================================================
   Pyramid zones — the actual layout skeleton
   ============================================================ */
.zone-top { max-width: none; padding: 0 6vw; }
.zone-heart { max-width: 1160px; margin: 0 auto; padding: 0 40px; }
.zone-base { max-width: 640px; margin: 0 auto; padding: 0 34px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ============================================================
   Ambient scent-diffusion canvas (WebGPU, WebGL2 fallback)
   ============================================================ */
#scentCanvas { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; background: radial-gradient(ellipse 80% 55% at 50% 30%, #2c1620 0%, var(--wine) 65%); }
.grain { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.05; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }

/* ============================================================
   Header
   ============================================================ */
.site-head { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 26px 0; transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: rgba(27, 14, 19, 0.86); backdrop-filter: blur(12px); border-color: var(--wine-line); }
.head-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 6vw; }
.logo { font-family: var(--font-display); font-style: italic; font-size: 24px; letter-spacing: 0.02em; color: var(--bone); }
.main-nav ul { list-style: none; display: flex; gap: 32px; margin: 0; padding: 0; }
.main-nav a { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-dim); }
.main-nav a:hover { color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--gold); color: var(--gold); font-size: 11px; letter-spacing: 0.08em; padding: 7px 15px; cursor: pointer; font-family: var(--font-mono); }
.mobile-nav { position: fixed; inset: 0; z-index: 200; background: var(--wine); transform: translateY(-100%); transition: transform 0.4s cubic-bezier(.7,0,.3,1); display: flex; flex-direction: column; }
.mobile-nav.open { transform: translateY(0); }
.mobile-nav ul { list-style: none; margin: auto 0; padding: 0 40px; }
.mobile-nav li { border-bottom: 1px solid var(--wine-line); }
.mobile-nav a { display: block; padding: 18px 0; font-family: var(--font-display); font-style: italic; font-size: 34px; color: var(--bone); }
.mn-close { position: absolute; top: 26px; right: 34px; background: none; border: 1px solid var(--gold); color: var(--gold); font-size: 20px; padding: 4px 13px; cursor: pointer; }
@media (max-width: 900px) { .main-nav { display: none; } .nav-toggle { display: block; } }

/* ============================================================
   Structural device: FORMULA NO. + the top/heart/base note bar,
   used in place of every prior theme's numeral/timecode/folio.
   ============================================================ */
.pyramid-bar { display: flex; flex-wrap: wrap; gap: 22px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bone-faint); margin-bottom: 22px; }
.pyramid-bar .pb-formula { color: var(--gold); }
.pyramid-bar .pb-note b { color: var(--blush); font-weight: 400; }

/* ============================================================
   Hero (top notes) — full-bleed, fast, minimal
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
.hero-inner { position: relative; z-index: 2; width: 100%; text-align: center; }
.hero h1 { margin-top: 20px; }
.hero-lede { max-width: 560px; margin: 26px auto 0; font-size: 18px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }

/* ============================================================
   Fragrance wheel — a real radial SVG nav element (industry
   "fragrance family wheel" convention), first radial layout in
   this project.
   ============================================================ */
.wheel-section { padding: 60px 0 130px; text-align: center; }
.wheel-wrap { position: relative; width: min(560px, 88vw); aspect-ratio: 1; margin: 50px auto 0; }
.wheel-wrap svg { width: 100%; height: 100%; overflow: visible; }
.wheel-seg { cursor: pointer; transition: opacity 0.25s; }
.wheel-seg:hover { opacity: 0.82; }
.wheel-seg text { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; fill: var(--wine); }
.wheel-center { font-family: var(--font-display); font-style: italic; font-size: 20px; fill: var(--bone); }

/* ============================================================
   Section rhythm within the heart zone
   ============================================================ */
.section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 50px; }
.zone-heart .section-head, .zone-top .section-head { margin-left: auto; margin-right: auto; text-align: center; }

/* ============================================================
   Scent counter — horizontal scroll-snap gallery, the fragrances
   arranged like bottles along a counter, not a card grid.
   ============================================================ */
.counter-rail { display: flex; gap: 30px; overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 6vw 30px; -webkit-overflow-scrolling: touch; }
.counter-rail::-webkit-scrollbar { height: 6px; }
.counter-rail::-webkit-scrollbar-thumb { background: var(--wine-line-strong); }
.counter-card { scroll-snap-align: start; flex: 0 0 260px; }
.counter-card .cc-bottle { position: relative; aspect-ratio: 3/4; border: 1px solid var(--wine-line-strong); background: var(--wine-raised); overflow: hidden; }
.counter-card .cc-bottle img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.18) saturate(1.05); transition: transform 0.6s; }
.counter-card:hover .cc-bottle img { transform: scale(1.05); }
.counter-card .cc-family { position: absolute; top: 10px; left: 10px; background: var(--wine); color: var(--gold); font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border: 1px solid var(--gold); }
.counter-card .cc-name { font-family: var(--font-display); font-style: italic; font-size: 22px; margin-top: 16px; }
.counter-card .cc-meta { font-family: var(--font-mono); font-size: 11px; color: var(--bone-faint); margin-top: 6px; letter-spacing: 0.03em; }

/* ============================================================
   Base notes: narrow, slow, single-column editorial
   ============================================================ */
.zone-base .section { padding: 90px 0; }
.zone-base h2 { text-align: left; }
.zone-base .dropcap p:first-of-type::first-letter { font-family: var(--font-display); font-style: italic; float: left; font-size: 3.6em; line-height: 0.75; padding: 8px 10px 0 0; color: var(--gold); }
.notes-band { display: flex; flex-direction: column; gap: 40px; }
.note-card { border-top: 1px solid var(--wine-line-strong); padding-top: 20px; }
.note-card .nc-role { font-family: var(--font-mono); font-size: 10px; color: var(--gold); text-transform: uppercase; letter-spacing: 0.08em; }
.note-card blockquote { font-family: var(--font-display); font-style: italic; font-size: 22px; margin: 12px 0; line-height: 1.35; color: var(--bone); }
.note-card cite { font-style: normal; font-size: 13px; color: var(--bone-faint); }

.journal-list { display: flex; flex-direction: column; }
.journal-row { display: grid; grid-template-columns: 120px 1fr; gap: 26px; padding: 28px 0; border-bottom: 1px solid var(--wine-line); }
.journal-row .jr-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone-faint); }
.journal-row h3 { margin: 0 0 8px; font-style: normal; font-family: var(--font-display); }
.journal-row p { font-size: 15px; margin: 0; }
@media (max-width: 560px) { .journal-row { grid-template-columns: 1fr; gap: 8px; } }

/* Glance stats — inline, no bordered band */
.glance { display: flex; flex-wrap: wrap; gap: 44px; padding: 40px 0; border-top: 1px solid var(--wine-line-strong); border-bottom: 1px solid var(--wine-line-strong); }
.glance .g-num { font-family: var(--font-display); font-style: italic; font-size: clamp(32px, 3.4vw, 46px); color: var(--gold); }
.glance .g-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-faint); margin-top: 4px; }

.cta-band { padding: 130px 6vw; text-align: center; border-top: 1px solid var(--wine-line-strong); }
.cta-band h2 { max-width: 720px; margin: 0 auto 20px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; }

/* ============================================================
   Footer
   ============================================================ */
.site-foot { padding: 70px 6vw 40px; background: var(--wine-raised); border-top: 1px solid var(--wine-line-strong); }
.foot-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid var(--wine-line); max-width: 1160px; margin: 0 auto; }
.foot-brand .logo { margin-bottom: 14px; display: block; }
.foot-brand p { max-width: 340px; font-size: 15px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bone-faint); margin: 0 0 16px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin: 0; }
.foot-col a { display: block; padding: 5px 0; color: var(--bone-dim); font-size: 15px; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 26px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--bone-faint); flex-wrap: wrap; gap: 12px; max-width: 1160px; margin: 0 auto; }
@media (max-width: 780px) { .foot-top { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ============================================================
   Inner pages / single fragrance
   ============================================================ */
.page-hero { padding: 190px 6vw 60px; border-bottom: 1px solid var(--wine-line-strong); text-align: center; }
.fragrance-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; padding: 70px 6vw; max-width: 1160px; margin: 0 auto; align-items: start; }
.fragrance-plate { position: sticky; top: 110px; aspect-ratio: 3/4; border: 1px solid var(--wine-line-strong); overflow: hidden; background: var(--wine-raised); }
.fragrance-plate img { width: 100%; height: 100%; object-fit: cover; filter: sepia(0.18) saturate(1.05); }
.fragrance-facts dl { display: grid; grid-template-columns: auto 1fr; gap: 12px 20px; margin: 24px 0 0; border-top: 1px solid var(--wine-line); padding-top: 20px; }
.fragrance-facts dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-faint); }
.fragrance-facts dd { margin: 0; font-family: var(--font-mono); font-size: 13px; color: var(--gold); text-align: right; }
@media (max-width: 900px) { .fragrance-layout { grid-template-columns: 1fr; } .fragrance-plate { position: static; } }

.family-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 26px; justify-content: center; }
.family-filter a { padding: 7px 15px; border: 1px solid var(--wine-line-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--bone-dim); }
.family-filter a.active, .family-filter a:hover { border-color: var(--gold); color: var(--gold); }

.simple-page { padding: 190px 6vw 120px; }
.wrap-narrow { max-width: 640px; margin: 0 auto; }
.contact-form { display: grid; gap: 18px; margin-top: 28px; }
.contact-form label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--bone-faint); display: block; margin-bottom: 7px; }
.contact-form input, .contact-form textarea { width: 100%; background: var(--wine-raised); border: 1px solid var(--wine-line-strong); color: var(--bone); padding: 12px 14px; font-family: var(--font-body); font-size: 15px; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--gold); }

.notfound { padding: 220px 6vw; text-align: center; }
.notfound .nf-code { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); }

[data-reveal] { opacity: 0; transform: translateY(20px); }
[data-reveal].shown { opacity: 1; transform: none; transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.2,.7,.3,1); }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1 !important; transform: none !important; } }

#pre { position: fixed; inset: 0; z-index: 999; background: var(--wine); display: flex; align-items: center; justify-content: center; transition: opacity 0.6s, visibility 0.6s; }
#pre .pre-mark { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--gold); }
#pre.done { opacity: 0; visibility: hidden; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--gold); z-index: 300; width: 0%; }
