/* ==========================================================================
   Sillage — design tokens
   ========================================================================== */
:root {
	/* Smoke (dark sections + base ground) */
	--smoke-950: #14120f;
	--smoke-900: #1a1815;
	--smoke-850: #211e1a;
	--smoke-800: #2b2722;
	--smoke-700: #3d3831;

	/* Fragrance-pyramid accents — top/heart/base notes, reused as a
	   recurring 3-stage motif across sections (not just the mist shader) */
	--note-top: #9cb88f;    /* green/citrus */
	--note-heart: #c98a9c;  /* rose/floral */
	--note-base: #b98a52;   /* amber/musk */

	--glass: #faf5ee;
	--glass-dim: #efe7db;
	--ink: #1c1815;
	--ink-dim: #5c5348;
	--ink-soft: #8c8175;

	--paper: var(--glass);
	--paper-dim: rgba(250, 245, 238, 0.68);
	--paper-faint: rgba(250, 245, 238, 0.42);

	--glassbg: rgba(26, 24, 21, 0.6);
	--line: rgba(28, 24, 21, 0.12);
	--line-dark: rgba(250, 245, 238, 0.14);

	--font-display: 'Bodoni Moda', Georgia, serif;
	--font-body: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

	--fs-sm: 0.875rem;
	--fs-base: 1rem;
	--fs-md: 1.25rem;
	--fs-lg: 1.75rem;
	--fs-xl: 2.5rem;
	--fs-2xl: 3.6rem;
	--fs-3xl: 5.4rem;

	--sp-1: 8px;
	--sp-2: 16px;
	--sp-3: 24px;
	--sp-4: 32px;
	--sp-5: 48px;
	--sp-6: 64px;
	--sp-7: 96px;
	--sp-8: 140px;

	--radius: 2px;
	--radius-lg: 4px;
	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-in: cubic-bezier(.5, 0, .75, 0);
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.55;
	-webkit-font-smoothing: antialiased;
	position: relative;
	font-weight: 300;
}
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2000;
	opacity: .035;
	mix-blend-mode: multiply;
	background-image: url('../img/grain.png');
	background-size: 220px 220px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.005em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
.container { max-width: 1280px; margin-inline: auto; padding-inline: var(--sp-4); }
@media (max-width: 780px) { .container { padding-inline: var(--sp-3); } }

.eyebrow {
	display: inline-flex; align-items: center; gap: .6em;
	font-size: .74rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
	color: var(--note-heart); font-family: var(--font-body);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--note-heart); }
.on-dark .eyebrow { color: var(--note-top); }
.on-dark .eyebrow::before { background: var(--note-top); }

.lede { font-size: var(--fs-md); color: var(--ink-dim); max-width: 56ch; line-height: 1.6; font-family: var(--font-display); font-style: italic; }
.on-dark .lede { color: var(--paper-dim); }
.on-dark, .on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--paper); }

.section { padding-block: var(--sp-7); position: relative; }
@media (max-width: 780px) { .section { padding-block: var(--sp-6); } }
.section.on-dark { background: var(--smoke-900); color: var(--paper); }
.section[data-bg] { background-size: cover; background-position: center; position: relative; overflow: hidden; }
.section[data-bg]::before { content: ''; position: absolute; inset: -8% 0; background: inherit; background-size: cover; background-position: center; z-index: 0; opacity: .55; will-change: transform; }
.section[data-bg] > .container { position: relative; z-index: 1; }
.section[data-bg]::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.65), rgba(20,18,15,.85)); z-index: 0; }

.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-5); margin-bottom: var(--sp-6); flex-wrap: wrap; }
.section__head h2 { font-size: var(--fs-2xl); }
@media (max-width: 780px) { .section__head { flex-direction: column; align-items: flex-start; gap: var(--sp-3); } .section__head h2 { font-size: var(--fs-xl); } }

.btn {
	display: inline-flex; align-items: center; gap: .6em;
	padding: .9em 1.7em; border-radius: var(--radius);
	font-family: var(--font-body); font-weight: 500; font-size: .92rem; letter-spacing: .04em; text-transform: uppercase;
	transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--note-heart); transform: translateY(-2px); }
.on-dark .btn--primary { background: var(--paper); color: var(--smoke-950); }
.on-dark .btn--primary:hover { background: var(--note-heart); color: var(--paper); }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--note-heart); color: var(--note-heart); }
.on-dark .btn--ghost, .hero .btn--ghost, .page-hero .btn--ghost { border-color: var(--line-dark); color: var(--paper); }
.on-dark .btn--ghost:hover, .hero .btn--ghost:hover, .page-hero .btn--ghost:hover { border-color: var(--note-top); color: var(--note-top); }

.reveal { opacity: 0; transform: translateY(28px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }
.magnetic { will-change: transform; }

/* ==========================================================================
   Section backdrop system (real photos + duotone overlay)
   ========================================================================== */
.section[data-bg="atelier"]::before { background-image: url('../img/bg-atelier.jpg'); }
.section[data-bg="organ"]::before { background-image: url('../img/bg-organ.jpg'); }
.section[data-bg="cellar"]::before { background-image: url('../img/bg-cellar.jpg'); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: rgba(250, 245, 238, 0.72);
	backdrop-filter: blur(14px) saturate(1.1);
	border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; font-style: italic; color: var(--ink); }
.brand__mark {
	width: 24px; height: 24px; border-radius: 50%;
	background: conic-gradient(from 160deg, var(--note-top), var(--note-heart), var(--note-base), var(--note-top));
	display: inline-block; filter: blur(.3px);
}
.primary-nav__list { display: flex; align-items: center; gap: var(--sp-4); }
.primary-nav__list > li > a { font-size: .88rem; font-weight: 400; letter-spacing: .03em; color: var(--ink-dim); transition: color .25s var(--ease); }
.primary-nav__list > li > a:hover { color: var(--note-heart); }
.header-actions { display: flex; align-items: center; gap: var(--sp-2); }
.mobile-nav-toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; color: var(--ink); }
.mobile-nav {
	position: fixed; top: 65px; left: 0; right: 0; height: calc(100vh - 65px); z-index: 150;
	overflow-y: auto; background: var(--glass); border-top: 1px solid var(--line);
	opacity: 0; visibility: hidden; transform: translateY(-8px);
	transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.mobile-nav nav { padding: var(--sp-3) var(--sp-4) var(--sp-4); }
.mobile-nav__list { display: grid; gap: var(--sp-2); }
.mobile-nav__list a { font-size: 1.05rem; font-weight: 400; color: var(--ink); }
@media (max-width: 900px) {
	.primary-nav { display: none; }
	.mobile-nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) { .header-actions > .btn { display: none; } }
@media (min-width: 901px) { .mobile-nav { display: none; } }

.skip-link:focus {
	position: fixed; left: var(--sp-3); top: var(--sp-2); width: auto; height: auto; overflow: visible;
	background: var(--ink); color: var(--paper); padding: .7em 1.2em; border-radius: var(--radius);
	z-index: 10000; font-weight: 500;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative; min-height: 100vh; display: flex; align-items: center; padding-top: 90px; overflow: clip;
	background: radial-gradient(120% 100% at 50% -10%, var(--smoke-800) 0%, var(--smoke-950) 65%);
	color: var(--paper);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.2fr; gap: var(--sp-6); align-items: center; }
@media (max-width: 980px) { .hero__grid { grid-template-columns: 1fr; gap: var(--sp-5); } }

.hero__title { font-size: clamp(2.6rem, 5.4vw, var(--fs-3xl)); margin-block: .35em .3em; color: var(--paper); font-style: italic; }
.hero__sub { font-size: var(--fs-md); color: var(--paper-dim); max-width: 46ch; margin-bottom: var(--sp-4); font-family: var(--font-display); font-style: italic; }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero__stage {
	position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 40px 80px -32px rgba(0,0,0,.6);
}
.hero__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,15,.15), rgba(20,18,15,.55)); }

/* Mist-wisp seams: thin drifting canvas dividers between dark sections,
   carrying the hero's raymarched-fog motif to the rest of the page. */
.mist-wisp-seam { position: relative; height: 110px; overflow: hidden; pointer-events: none; background: var(--smoke-950); }
.mist-wisp-seam canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 780px) { .mist-wisp-seam { height: 72px; } }

/* ==========================================================================
   House stats band
   ========================================================================== */
.stats-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); }
@media (max-width: 780px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat__value { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 500; font-style: italic; color: var(--note-heart); }
.stat__label { font-size: .85rem; color: var(--paper-dim); margin-top: .4em; }

/* ==========================================================================
   Fragrance pyramid — three-stage asymmetric layout (top/heart/base),
   deliberately staggered rather than three equal columns.
   ========================================================================== */
.pyramid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); padding-top: 40px; }
.pyramid-stage:nth-child(1) { margin-top: 64px; }
.pyramid-stage:nth-child(3) { margin-top: 96px; }
@media (max-width: 900px) {
	.pyramid { grid-template-columns: 1fr; }
	.pyramid-stage:nth-child(1), .pyramid-stage:nth-child(3) { margin-top: 0; }
}
.pyramid-stage { border-radius: var(--radius-lg); padding: var(--sp-4); border: 1px solid var(--line-dark); position: relative; overflow: hidden; }
.pyramid-stage::before { content: ''; position: absolute; inset: 0; opacity: .12; z-index: 0; }
.pyramid-stage--top::before { background: radial-gradient(circle at 30% 20%, var(--note-top), transparent 65%); }
.pyramid-stage--heart::before { background: radial-gradient(circle at 30% 20%, var(--note-heart), transparent 65%); }
.pyramid-stage--base::before { background: radial-gradient(circle at 30% 20%, var(--note-base), transparent 65%); }
.pyramid-stage > * { position: relative; z-index: 1; }
.pyramid-stage__tag { font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .8em; display: block; }
.pyramid-stage--top .pyramid-stage__tag { color: var(--note-top); }
.pyramid-stage--heart .pyramid-stage__tag { color: var(--note-heart); }
.pyramid-stage--base .pyramid-stage__tag { color: var(--note-base); }
.pyramid-stage h3 { font-size: var(--fs-lg); margin-bottom: .4em; font-style: italic; }
.pyramid-stage p { color: var(--ink-dim); font-size: .92rem; line-height: 1.6; }

/* ==========================================================================
   Collection grid
   ========================================================================== */
.family-filter button { padding: .5em 1.1em; border-radius: 999px; border: 1.5px solid var(--line); font-size: .82rem; font-weight: 400; letter-spacing: .02em; transition: all .25s var(--ease); }
.family-filter button.is-active, .family-filter button:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3); }
@media (max-width: 1100px) { .collection-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .collection-grid { grid-template-columns: 1fr; } }

.scent-card { display: block; position: relative; background: var(--glass); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 30px -18px rgba(20,18,15,.28); transition: box-shadow .4s var(--ease), transform .5s var(--ease); }
.scent-card:hover { box-shadow: 0 26px 46px -18px rgba(20,18,15,.4); transform: translateY(-4px); }
.scent-card[hidden] { display: none; }
.scent-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--glass-dim); }
.scent-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.scent-card:hover .scent-card__media img { transform: scale(1.06); }
.scent-card__body { padding: 18px; }
.scent-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.scent-card__title { font-size: 1.15rem; font-style: italic; }
.scent-card__price { font-size: .82rem; color: var(--note-heart); font-weight: 500; white-space: nowrap; }
.scent-card__top { font-style: italic; color: var(--ink-soft); font-size: .85rem; margin-top: .3em; }
.scent-card__conc { font-size: .7rem; color: var(--ink-soft); margin-top: .6em; letter-spacing: .04em; text-transform: uppercase; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonial-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-4); }
@media (max-width: 900px) { .testimonial-strip { grid-template-columns: 1fr; } }
.testimonial { position: relative; padding: var(--sp-4); border: 1px solid var(--line-dark); border-radius: var(--radius-lg); overflow: hidden; }
.testimonial p { font-family: var(--font-display); font-size: 1.2rem; font-style: italic; color: var(--paper); line-height: 1.45; }
.testimonial cite { display: block; margin-top: var(--sp-2); font-style: normal; font-size: .78rem; color: var(--note-heart); letter-spacing: .02em; }
.testimonial::before { content: ''; position: absolute; inset: 0; z-index: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(220px circle at var(--tx,50%) var(--ty,50%), rgba(201,138,156,.16), transparent 65%); }
.testimonial:hover::before { opacity: 1; }
.testimonial > * { position: relative; z-index: 1; }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band { text-align: center; }
.cta-band h2 { font-size: var(--fs-2xl); max-width: 20ch; margin-inline: auto; margin-bottom: var(--sp-4); font-style: italic; }
.cta-band__actions { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--smoke-950); color: var(--paper); padding-block: var(--sp-6) var(--sp-4); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: var(--sp-5); padding-bottom: var(--sp-5); border-bottom: 1px solid var(--line-dark); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--note-heart); font-family: var(--font-body); font-weight: 500; margin-bottom: var(--sp-2); }
.footer__col ul { display: grid; gap: .5em; }
.footer__col a { color: var(--paper-dim); font-size: .9rem; transition: color .25s; }
.footer__col a:hover { color: var(--note-heart); }
.footer__col li:not(:has(a)) { color: var(--paper-dim); font-size: .9rem; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-2); padding-top: var(--sp-4); font-size: .8rem; color: var(--paper-faint); }

/* ==========================================================================
   Sample-request dialog
   ========================================================================== */
dialog.sample-dialog { border: none; border-radius: var(--radius-lg); padding: 0; background: var(--glass); color: var(--ink); max-width: 460px; width: calc(100% - 40px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); }
dialog.sample-dialog::backdrop { background: rgba(20,18,15,.55); backdrop-filter: blur(4px); }
.sample-form { padding: var(--sp-4); display: grid; gap: var(--sp-2); }
.sample-form h3 { font-size: var(--fs-lg); font-style: italic; }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 400; color: var(--ink-dim); }
.field input, .field textarea { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: .7em .9em; color: var(--ink); font: inherit; }
.field textarea { min-height: 70px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; }
.sample-form__status { font-size: .85rem; min-height: 1.2em; color: var(--note-heart); }
.sample-form__actions { display: flex; justify-content: flex-end; gap: var(--sp-2); margin-top: var(--sp-1); }

/* ==========================================================================
   Generic inner-page chrome (page-hero, page-content, comments)
   ========================================================================== */
.page-hero { background: var(--smoke-950); color: var(--paper); padding-top: calc(90px + var(--sp-5)); padding-bottom: var(--sp-5); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 24ch; font-style: italic; }
.page-content { max-width: 68ch; margin-inline: auto; padding-block: var(--sp-6); font-size: 1.05rem; line-height: 1.7; }
.page-content h2 { font-size: var(--fs-lg); margin-top: 1.4em; margin-bottom: .5em; font-style: italic; }
.page-content p { margin-bottom: 1.1em; color: var(--ink-dim); }
.page-content a { color: var(--note-heart); text-decoration: underline; text-underline-offset: 3px; }
.page-links { margin-top: var(--sp-3); font-weight: 500; }
.comments-area { max-width: 68ch; margin-inline: auto; padding-bottom: var(--sp-6); }
.comment-list { display: grid; gap: var(--sp-3); margin-top: var(--sp-3); }
.comment-list, .comment-list ul { list-style: none; padding-left: 0; }
.comment-list ul { margin-top: var(--sp-3); padding-left: var(--sp-4); }
.comment-body { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-3); }
.comment-form { display: grid; gap: var(--sp-2); margin-top: var(--sp-3); }
.comment-form input:not([type=submit]), .comment-form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: .7em .9em; font: inherit; }
.comment-form textarea { min-height: 100px; }
.search-form { display: flex; gap: 8px; }
.search-form input[type=search] { flex: 1; border: 1px solid var(--line); border-radius: var(--radius); padding: .7em .9em; font: inherit; }
.not-found { max-width: 60ch; margin-inline: auto; padding-block: var(--sp-8); text-align: center; }
.post-card { padding-block: var(--sp-4); border-bottom: 1px solid var(--line); }
.post-card__excerpt { color: var(--ink-dim); margin-top: .5em; }
