/* ==========================================================================
   Calibre — design tokens
   ========================================================================== */
:root {
	/* Bench (dark sections + base ground) */
	--gunmetal-950: #0d1014;
	--gunmetal-900: #12161b;
	--gunmetal-850: #181d24;
	--gunmetal-800: #212832;
	--gunmetal-700: #313a47;

	/* Blued-steel (secondary accent — the color a heated steel screw turns) */
	--blued-500: #3d6a95;
	--blued-400: #5586b3;
	--blued-300: #7ea6cc;

	/* Brass / champagne gold (primary accent — movement plates) */
	--brass-600: #a8813f;
	--brass-500: #c9a961;
	--brass-400: #e0c384;
	--brass-300: #efdcae;

	/* Jewel bearing (rare, small-area accent only) */
	--ruby-500: #a13a3a;
	--ruby-400: #c25252;

	--paper: #f4efe4;
	--paper-dim: rgba(244, 239, 228, 0.68);
	--paper-faint: rgba(244, 239, 228, 0.42);
	--ink: #181611;
	--ink-dim: #5a5548;
	--ink-soft: #8a8474;

	--glass: rgba(24, 29, 36, 0.6);
	--glass-light: rgba(244, 239, 228, 0.08);
	--line: rgba(24, 22, 17, 0.12);
	--line-dark: rgba(244, 239, 228, 0.14);

	--font-display: 'Cormorant Garamond', Georgia, serif;
	--font-body: 'Public Sans', -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.2rem;

	--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: 4px;
	--radius-lg: 12px;
	--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;
}
body::before {
	content: '';
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 2000;
	opacity: .04;
	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: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
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: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
	color: var(--brass-600); font-family: var(--font-body);
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: var(--brass-600); }
.on-dark .eyebrow { color: var(--brass-400); }
.on-dark .eyebrow::before { background: var(--brass-400); }

.lede { font-size: var(--fs-md); color: var(--ink-dim); max-width: 56ch; line-height: 1.6; font-family: var(--font-display); }
.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(--gunmetal-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; 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(13,16,20,.82), rgba(13,16,20,.9)); 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: 600; font-size: .95rem; letter-spacing: .01em;
	transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn--primary { background: var(--brass-500); color: var(--gunmetal-950); }
.btn--primary:hover { background: var(--brass-400); transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--line-dark); color: var(--paper); }
.btn--ghost:hover { border-color: var(--brass-400); color: var(--brass-400); }
.on-light .btn--ghost { border-color: var(--line); color: var(--ink); }
.on-light .btn--ghost:hover { border-color: var(--brass-600); color: var(--brass-600); }

.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]::before { opacity: .55; filter: sepia(.25) saturate(1.15); }
.section[data-bg]::after { background: linear-gradient(180deg, rgba(13,16,20,.62), rgba(13,16,20,.82)); }
.section[data-bg="bench"]::before { background-image: url('../img/bg-bench.jpg'); }
.section[data-bg="loupe"]::before { background-image: url('../img/bg-loupe.jpg'); }
.section[data-bg="vault"]::before { background-image: url('../img/bg-vault.jpg'); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
	position: fixed; top: 0; left: 0; right: 0; z-index: 100;
	background: rgba(13, 16, 20, 0.72);
	backdrop-filter: blur(14px) saturate(1.15);
	border-bottom: 1px solid var(--line-dark);
}
.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: 600; font-size: 1.35rem; color: var(--paper); }
.brand__mark {
	width: 26px; height: 26px; border-radius: 50%;
	background: conic-gradient(from 200deg, var(--brass-300), var(--brass-600), var(--blued-500), var(--brass-300));
	display: inline-block; box-shadow: inset 0 0 0 2px rgba(13,16,20,.4);
}
.primary-nav__list { display: flex; align-items: center; gap: var(--sp-4); }
.primary-nav__list > li > a { font-size: .92rem; font-weight: 500; color: var(--paper-dim); transition: color .25s var(--ease); }
.primary-nav__list > li > a:hover { color: var(--brass-400); }
.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(--paper); }
/* position:fixed, not static — .mobile-nav lives inside .site-header, which
   is itself position:fixed, so a static/max-height panel here just grows
   the fixed header's box without ever pushing the page content in normal
   flow beneath it, leaving expanded nav items visually overlapping the
   hero instead of covering it. Sizing this to the viewport below the
   header bar and opacity/transform-animating it (not max-height) fixes
   that outright. */
.mobile-nav {
	position: fixed; top: 65px; left: 0; right: 0; height: calc(100vh - 65px); z-index: 150;
	overflow-y: auto; background: var(--gunmetal-900); border-top: 1px solid var(--line-dark);
	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: 500; color: var(--paper); }
@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(--brass-500); color: var(--gunmetal-950); padding: .7em 1.2em; border-radius: var(--radius);
	z-index: 10000; font-weight: 700;
}

/* ==========================================================================
   Hero — the exploded-view movement rig lives here
   ========================================================================== */
.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(--gunmetal-800) 0%, var(--gunmetal-950) 60%);
	color: var(--paper);
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .95fr 1.15fr; 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); }
.hero__sub { font-size: var(--fs-md); color: var(--paper-dim); max-width: 46ch; margin-bottom: var(--sp-4); font-family: var(--font-display); }
.hero__actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; }

.hero__stage {
	position: relative; aspect-ratio: 1 / 1; border-radius: var(--radius-lg);
	background: radial-gradient(circle at 50% 40%, var(--gunmetal-800), var(--gunmetal-950));
	overflow: hidden;
	box-shadow: 0 40px 80px -32px rgba(0,0,0,.6), inset 0 0 0 1px var(--line-dark);
}
.hero__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
.hero__stage.is-live canvas { opacity: 1; }
.hero__stage-fallback {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background: radial-gradient(circle at 50% 40%, var(--gunmetal-700), var(--gunmetal-950));
}
.hero__stage.is-live .hero__stage-fallback { display: none; }
.hero__stage-scrub {
	position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 3;
	display: flex; align-items: center; gap: 10px;
	font-size: .76rem; font-weight: 600; color: var(--paper-dim);
	background: var(--glass); backdrop-filter: blur(8px); border-radius: 999px; padding: 8px 16px;
	opacity: 0; transition: opacity .5s var(--ease);
}
.hero__stage.is-live .hero__stage-scrub { opacity: 1; }
.hero__stage-track { flex: 1; height: 3px; background: var(--line-dark); border-radius: 2px; position: relative; }
.hero__stage-track i { position: absolute; inset: 0; width: 0%; background: var(--brass-500); border-radius: 2px; transform-origin: left; }
.hero__stage-hint { position: absolute; top: 18px; left: 18px; z-index: 3; font-size: .72rem; font-weight: 600; color: var(--paper-dim); background: var(--glass); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .4s; }
.hero__stage.is-live .hero__stage-hint { opacity: 1; }
.hero__stage-labels { position: absolute; top: 18px; right: 18px; z-index: 3; text-align: right; opacity: 0; transition: opacity .4s; }
.hero__stage.is-live .hero__stage-labels { opacity: 1; }
.hero__stage-labels span { display: block; font-size: .7rem; font-weight: 600; color: var(--brass-400); background: var(--glass); padding: 3px 9px; border-radius: 999px; margin-bottom: 4px; }

/* ==========================================================================
   Atelier 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: 600; color: var(--brass-400); }
.stat__label { font-size: .85rem; color: var(--paper-dim); margin-top: .4em; }

/* ==========================================================================
   Bento-grid spec sections (deliberately asymmetric — see [[theme-effect-scope-feedback]])
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(120px, auto); gap: var(--sp-3); }
.bento__cell { position: relative; border-radius: var(--radius-lg); background: var(--gunmetal-850); border: 1px solid var(--line-dark); padding: var(--sp-4); overflow: hidden; }
.bento__cell--a { grid-column: span 4; grid-row: span 2; }
.bento__cell--b { grid-column: span 2; grid-row: span 1; }
.bento__cell--c { grid-column: span 2; grid-row: span 2; }
.bento__cell--d { grid-column: span 3; grid-row: span 1; }
.bento__cell--e { grid-column: span 3; grid-row: span 1; }
.bento__cell--f { grid-column: span 6; grid-row: span 1; }
@media (max-width: 900px) {
	.bento { grid-template-columns: repeat(2, 1fr); }
	.bento__cell, .bento__cell--a, .bento__cell--b, .bento__cell--c, .bento__cell--d, .bento__cell--e { grid-column: span 2; grid-row: span 1; }
}
.bento__cell h3 { font-size: var(--fs-lg); color: var(--paper); margin-bottom: .3em; }
.bento__cell p { color: var(--paper-dim); font-size: .92rem; line-height: 1.55; }
.bento__cell__tag { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brass-400); margin-bottom: .6em; display: block; }
.bento__cell--a { display: flex; flex-direction: column; justify-content: flex-end; }
.bento__cell--a::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, rgba(201,169,97,.16), transparent 60%); }

/* ==========================================================================
   Horizontal case-gallery (watch families) — pinned, translateX-scrubbed
   ========================================================================== */
.case-gallery { position: relative; }
.case-gallery__track { display: flex; gap: var(--sp-4); will-change: transform; }
.case-gallery__viewport { overflow: hidden; }
.watch-card { display: block; flex: 0 0 320px; background: var(--gunmetal-850); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-dark); transition: border-color .4s var(--ease), transform .4s var(--ease); }
.watch-card:hover { border-color: var(--brass-500); transform: translateY(-4px); }
.watch-card__media { position: relative; aspect-ratio: 4/5; overflow: hidden; background: var(--gunmetal-800); }
.watch-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.watch-card:hover .watch-card__media img { transform: scale(1.05); }
.watch-card__body { padding: var(--sp-3); }
.watch-card__title { font-size: 1.15rem; color: var(--paper); margin-bottom: .2em; }
.watch-card__caliber { font-size: .82rem; color: var(--paper-dim); font-style: italic; font-family: var(--font-display); }
.watch-card__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8em; }
.watch-card__case { font-size: .72rem; color: var(--paper-faint); text-transform: uppercase; letter-spacing: .05em; }
.watch-card__price { font-size: .88rem; color: var(--brass-400); font-weight: 600; }
@media (max-width: 700px) { .case-gallery__viewport { overflow-x: auto; scroll-snap-type: x mandatory; } .watch-card { scroll-snap-align: start; } }

/* ==========================================================================
   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: .8rem; color: var(--brass-400); font-weight: 600; }
.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,169,97,.14), 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); }
.cta-band__actions { display: flex; justify-content: center; gap: var(--sp-2); flex-wrap: wrap; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--gunmetal-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: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brass-400); font-family: var(--font-body); font-weight: 700; 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(--brass-400); }
.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); }

/* ==========================================================================
   Appointment dialog
   ========================================================================== */
dialog.appointment-dialog { border: none; border-radius: var(--radius-lg); padding: 0; background: var(--gunmetal-900); color: var(--paper); max-width: 460px; width: calc(100% - 40px); box-shadow: 0 40px 80px -20px rgba(0,0,0,.6); }
dialog.appointment-dialog::backdrop { background: rgba(13,16,20,.7); backdrop-filter: blur(4px); }
.appointment-form { padding: var(--sp-4); display: grid; gap: var(--sp-2); }
.appointment-form h3 { font-size: var(--fs-lg); }
.field { display: grid; gap: 6px; }
.field label { font-size: .8rem; font-weight: 600; color: var(--paper-dim); }
.field input, .field textarea { background: var(--gunmetal-850); border: 1px solid var(--line-dark); border-radius: var(--radius); padding: .7em .9em; color: var(--paper); font: inherit; }
.field textarea { min-height: 70px; resize: vertical; }
.field--hp { position: absolute; left: -9999px; }
.appointment-form__status { font-size: .85rem; min-height: 1.2em; color: var(--brass-400); }
.appointment-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(--gunmetal-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; }
.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; }
.page-content p { margin-bottom: 1.1em; color: var(--ink-dim); }
.page-content a { color: var(--brass-600); text-decoration: underline; text-underline-offset: 3px; }
.page-links { margin-top: var(--sp-3); font-weight: 600; }
.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; }
