/* ==========================================================================
   CAVE — editorial luxury, espresso + linen.
   Motion: strong ease-out for entrances, iOS drawer curve for panels.
   ========================================================================== */

:root {
	--bg: #12100e;
	--surface: #1a1714;
	--raise: #231e1a;
	--ink: #ede4d6;
	--muted: #a99b89;
	--accent: #c9a27c;
	--on-accent: #12100e;
	--line: rgba(237, 228, 214, 0.1);
	--line-strong: rgba(237, 228, 214, 0.2);
	--shell: rgba(237, 228, 214, 0.035);
	--highlight: inset 0 1px 0 rgba(255, 255, 255, 0.06);
	--glass: rgba(22, 19, 17, 0.62);
	--scrim: rgba(8, 7, 6, 0.6);
	--shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.7);
	--err: #e8998c;
	--ok: #a9c4a0;

	--serif: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
	--sans: "Jost", "Avenir Next", system-ui, sans-serif;

	--ease-out: cubic-bezier(0.23, 1, 0.32, 1);
	--ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
	--ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

	--gutter: clamp(16px, 4vw, 64px);
	--max: 1440px;
	--r-outer: 28px;
	--r-inner: 22px;
	--section: clamp(96px, 13vw, 176px);
	color-scheme: dark;
}

.theme-light {
	--bg: #efe8dc;
	--surface: #f6f1e9;
	--raise: #e6dccb;
	--ink: #181412;
	--muted: #6a5d50;
	--accent: #7a5538;
	--on-accent: #f6f1e9;
	--line: rgba(24, 20, 18, 0.1);
	--line-strong: rgba(24, 20, 18, 0.2);
	--shell: rgba(24, 20, 18, 0.035);
	--highlight: inset 0 1px 0 rgba(255, 255, 255, 0.55);
	--glass: rgba(239, 232, 220, 0.7);
	--scrim: rgba(24, 20, 18, 0.4);
	--shadow: 0 40px 80px -40px rgba(70, 48, 30, 0.35);
	--err: #a2362b;
	--ok: #3f6b3a;
	color-scheme: light;
}

/* A linen section that flips the palette, whichever scheme is active. */
.invert {
	--bg: #ece4d6;
	--surface: #f5efe6;
	--raise: #e2d7c5;
	--ink: #181412;
	--muted: #66594c;
	--accent: #7a5538;
	--on-accent: #f5efe6;
	--line: rgba(24, 20, 18, 0.12);
	--line-strong: rgba(24, 20, 18, 0.22);
	--shell: rgba(24, 20, 18, 0.04);
	--highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6);
	color: var(--ink);
	background: var(--bg);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font: 300 16px/1.65 var(--sans);
	letter-spacing: 0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 1.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
em { font-style: italic; }
.sr, .screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); transform: translateY(-160%); transition: transform 0.3s var(--ease-out); }
.skip:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.muted { color: var(--muted); }

/* Film grain, fixed and inert. */
.grain {
	position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.055;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.theme-light .grain { opacity: 0.045; }

/* ---------- Type ---------- */
.display {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(3.1rem, 7.6vw, 8.2rem);
	line-height: 0.92;
	letter-spacing: -0.025em;
}
.display em, .h2 em { font-weight: 400; color: var(--accent); }
.h2 {
	font-family: var(--serif);
	font-weight: 500;
	font-size: clamp(2.4rem, 5.2vw, 4.9rem);
	line-height: 0.98;
	letter-spacing: -0.02em;
}
.lede { font-size: clamp(1.02rem, 1.25vw, 1.2rem); line-height: 1.7; color: var(--muted); max-width: 46ch; }
.eyebrow { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 400; }
.serif-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 2.2vw, 2.1rem); line-height: 1.2; }

.pill-tag {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px;
	border: 1px solid var(--line-strong);
	background: var(--shell);
	font-size: 10.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
	color: var(--ink);
	margin-bottom: 26px;
}
.pill-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.pill-tag.on-photo { margin: 0; color: #f4ede2; border-color: rgba(255, 255, 255, 0.28); background: rgba(14, 12, 10, 0.38); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }

/* Wordmark: the Λ is the cave. */
.wordmark { font: 500 19px/1 var(--sans); letter-spacing: 0.42em; margin-right: -0.42em; white-space: nowrap; }
.lambda { display: inline-block; transform: scaleX(1.08); }

/* ---------- Buttons: pill with a nested icon island ---------- */
.btn {
	--btn-bg: var(--ink); --btn-fg: var(--bg); --btn-ico: var(--bg); --btn-ico-fg: var(--ink);
	display: inline-flex; align-items: center; gap: 14px;
	padding: 6px 6px 6px 24px; min-height: 52px;
	border-radius: 999px;
	background: var(--btn-bg); color: var(--btn-fg);
	font: 500 13px/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
	border: 1px solid transparent;
	transition: transform 0.16s var(--ease-out), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, opacity 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}
.btn-icon {
	display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
	background: var(--btn-ico); color: var(--btn-ico-fg); font-size: 17px;
	transition: transform 0.45s var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-ico: var(--shell); --btn-ico-fg: var(--ink); border-color: var(--line-strong); }
.btn-light { --btn-bg: rgba(244, 237, 226, 0.94); --btn-fg: #15120f; --btn-ico: #15120f; --btn-ico-fg: #f4ede2; }
.btn[disabled], .btn.is-loading { opacity: 0.55; pointer-events: none; }
@media (hover: hover) and (pointer: fine) {
	.btn:hover .btn-icon, a:hover > .btn .btn-icon, a:hover .btn-light .btn-icon { transform: translate(3px, -2px) scale(1.06); }
	.btn-ghost:hover { border-color: var(--ink); }
}

.icon-btn {
	position: relative; display: grid; place-items: center;
	width: 42px; height: 42px; border-radius: 50%;
	font-size: 19px; color: var(--ink);
	transition: background-color 0.25s ease, transform 0.16s var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--shell); } }

.textlink { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; border-bottom: 1px solid var(--line-strong); padding-bottom: 3px; transition: border-color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .textlink:hover { border-color: var(--ink); } }

/* ---------- Double bezel ---------- */
.bezel {
	padding: 6px;
	border-radius: var(--r-outer);
	background: var(--shell);
	box-shadow: 0 0 0 1px var(--line);
}
.bezel-core {
	position: relative;
	height: 100%;
	border-radius: var(--r-inner);
	overflow: hidden;
	background: var(--surface);
	box-shadow: var(--highlight);
}
.bezel-core > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Announcement + floating island nav ---------- */
.announce {
	position: relative; z-index: 2;
	text-align: center; padding: 10px var(--gutter);
	font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted);
	border-bottom: 1px solid var(--line);
}
.island-wrap {
	position: fixed; z-index: 40; left: 0; right: 0; top: 14px;
	display: flex; justify-content: center; padding-inline: 16px;
	pointer-events: none;
	transition: transform 0.5s var(--ease-out);
}
.has-announce .island-wrap { transform: translateY(38px); }
.has-announce .island-wrap.is-stuck { transform: none; }
.island {
	pointer-events: auto;
	display: flex; align-items: center; gap: clamp(12px, 3vw, 40px);
	width: min(1120px, 100%);
	padding: 7px 7px 7px 26px;
	border-radius: 999px;
	background: var(--glass);
	backdrop-filter: blur(22px) saturate(1.3);
	-webkit-backdrop-filter: blur(22px) saturate(1.3);
	box-shadow: 0 0 0 1px var(--line), var(--highlight), 0 20px 50px -30px rgba(0, 0, 0, 0.6);
}
.island-logo { flex: none; display: flex; align-items: center; }
.island-logo .custom-logo { max-height: 30px; width: auto; }
.island-links { flex: 1; display: flex; justify-content: center; }
.island-links .menu { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.island-links a {
	display: block; padding: 10px 16px; border-radius: 999px;
	font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
	transition: color 0.25s ease, background-color 0.25s ease;
}
.island-links .current-menu-item a, .island-links a[aria-current] { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .island-links a:hover { color: var(--ink); background: var(--shell); } }
.island-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.bag-count {
	position: absolute; top: 4px; right: 3px;
	min-width: 17px; height: 17px; padding: 0 5px; border-radius: 999px;
	background: var(--accent); color: var(--on-accent);
	font: 600 10px/17px var(--sans); text-align: center; letter-spacing: 0;
	transition: transform 0.35s var(--ease-out), opacity 0.2s ease;
}
.bag-count[data-count="0"] { transform: scale(0.6); opacity: 0; }
.bag-count.bump { animation: bump 0.45s var(--ease-out); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Burger: two lines that morph into an X. */
.burger { position: relative; width: 42px; height: 42px; border-radius: 50%; display: none; }
.burger-line {
	position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); border-radius: 2px;
	transition: transform 0.45s var(--ease-drawer);
}
.burger-line:nth-of-type(2) { transform: translateY(-4px); }
.burger-line:nth-of-type(3) { transform: translateY(4px); }
.burger[aria-expanded="true"] .burger-line:nth-of-type(2) { transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger-line:nth-of-type(3) { transform: rotate(-45deg); }

/* Full-screen menu */
.menu-overlay {
	position: fixed; inset: 0; z-index: 35;
	background: color-mix(in srgb, var(--bg) 86%, transparent);
	backdrop-filter: blur(30px);
	-webkit-backdrop-filter: blur(30px);
	opacity: 0; visibility: hidden;
	transition: opacity 0.45s var(--ease-out), visibility 0s 0.45s;
}
.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity 0.45s var(--ease-out), visibility 0s; }
.menu-grid { height: 100%; display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gutter); padding: 140px var(--gutter) 40px; max-width: var(--max); margin-inline: auto; }
.menu-links { display: flex; flex-direction: column; }
.big-menu { list-style: none; padding: 0; margin: 20px 0 0; }
.big-menu li { overflow: hidden; }
.big-menu a {
	display: inline-block; padding: 4px 0;
	font: 500 clamp(2.8rem, 7vw, 6rem)/1.02 var(--serif); letter-spacing: -0.02em;
	transform: translateY(105%);
	transition: transform 0.7s var(--ease-out), color 0.25s ease;
}
.menu-open .big-menu a { transform: none; }
.menu-open .big-menu li:nth-child(1) a { transition-delay: 0.08s; }
.menu-open .big-menu li:nth-child(2) a { transition-delay: 0.13s; }
.menu-open .big-menu li:nth-child(3) a { transition-delay: 0.18s; }
.menu-open .big-menu li:nth-child(4) a { transition-delay: 0.23s; }
.menu-open .big-menu li:nth-child(5) a { transition-delay: 0.28s; }
.menu-open .big-menu li:nth-child(6) a { transition-delay: 0.33s; }
@media (hover: hover) and (pointer: fine) { .big-menu a:hover { color: var(--accent); font-style: italic; } }
.menu-foot { margin-top: auto; display: flex; gap: 28px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.menu-media { margin: 0; border-radius: var(--r-outer); overflow: hidden; opacity: 0; transform: scale(0.96); transition: opacity 0.6s var(--ease-out) 0.15s, transform 0.9s var(--ease-out) 0.15s; }
.menu-media img { width: 100%; height: 100%; object-fit: cover; }
.menu-open .menu-media { opacity: 1; transform: none; }
.menu-open { overflow: hidden; }

/* ---------- Entrances ---------- */
.js .rise { opacity: 0; transform: translateY(40px); }
.js .line .rise { display: inline-block; }
.js .line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.js .line .rise { transform: translateY(105%); opacity: 1; }
.js.is-loaded .rise { opacity: 1; transform: none; transition: transform 1.1s var(--ease-out), opacity 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms + 80ms); }
.js .reveal { opacity: 0; transform: translateY(48px); filter: blur(6px); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; transition: transform 1s var(--ease-out), opacity 0.9s var(--ease-out), filter 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal-img { clip-path: inset(14% 0 0 0 round var(--r-outer)); }
.js .reveal-img img { transform: scale(1.14); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--r-outer)); transition: clip-path 1.3s var(--ease-out); }
.js .reveal-img.is-in img { transform: none; transition: transform 1.6s var(--ease-out); }

/* Scroll-linked drift, where supported. No scroll listeners. */
@supports (animation-timeline: view()) {
	[data-drift] { animation: drift linear both; animation-timeline: view(); }
	[data-drift="-1"] { --drift: -70px; }
	[data-drift="1"] { --drift: 70px; }
	@keyframes drift { from { translate: 0 calc(var(--drift) * -1); } to { translate: 0 var(--drift); } }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(150px, 16vw, 200px) 0 clamp(70px, 8vw, 120px); min-height: 100dvh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.hero-copy .display { margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hero-stats { display: flex; gap: clamp(28px, 4vw, 56px); margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; }
.hero-stats dt { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.hero-stats dd { margin: 0; font: 500 2rem/1 var(--serif); }

.hero-stage { position: relative; padding: 6% 12% 10% 6%; }
.hero-main { aspect-ratio: 4 / 4.6; transform: rotate(-1.2deg); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.hero-main .bezel-core img { object-position: 40% 30%; }
.hero-float { position: absolute; z-index: 2; width: 38%; box-shadow: var(--shadow), 0 0 0 1px var(--line); background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero-float .bezel-core { aspect-ratio: 1; }
.hero-float-a { left: -8%; bottom: 0; rotate: -5deg; }
.hero-float-b { right: 0; top: 0; width: 34%; rotate: 4deg; }
.hero-badge { position: absolute; right: 4%; bottom: 4%; z-index: 3; width: 118px; height: 118px; display: grid; place-items: center; }
.hero-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 26s linear infinite; }
.hero-badge text { fill: var(--ink); font: 500 9.6px var(--sans); letter-spacing: 0.32em; }
.hero-badge b { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font: 500 22px/1 var(--sans); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee-track { display: flex; width: max-content; align-items: center; gap: 44px; animation: marquee 48s linear infinite; }
.marquee span { font: italic 400 clamp(1.6rem, 3vw, 2.6rem)/1 var(--serif); white-space: nowrap; }
.marquee i { font-style: normal; color: var(--accent); font-size: 18px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 22px)); } }

/* ---------- Section heads ---------- */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .h2 { max-width: 14ch; }

/* ---------- Collections bento ---------- */
.coll-grid { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: clamp(16px, 2vw, 28px); }
.coll { display: block; }
.coll-men { grid-column: 1 / 8; grid-row: 1 / 3; }
.coll-women { grid-column: 8 / 13; grid-row: 1 / 2; }
.coll-note { grid-column: 8 / 13; grid-row: 2 / 3; display: grid; grid-template-columns: 1fr 0.8fr; gap: 20px; align-items: end; padding: 20px 0 0; }
.coll-men .bezel-core { min-height: 760px; }
.coll-women .bezel-core { aspect-ratio: 5 / 5.4; }
.coll-note-img .bezel-core { aspect-ratio: 4 / 5; }
.coll .bezel-core img { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.coll-men .bezel-core img { object-position: 50% 20%; }
.coll-women .bezel-core img { object-position: 50% 25%; }
.coll-info {
	position: absolute; inset: auto 0 0 0; padding: clamp(22px, 3vw, 40px);
	color: #f4ede2;
	background: linear-gradient(to top, rgba(10, 9, 8, 0.82), rgba(10, 9, 8, 0) );
	display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
}
.coll-info h2 { font: 500 clamp(2rem, 3.4vw, 3.4rem)/1 var(--serif); margin-top: 6px; }
.coll-info p { color: rgba(244, 237, 226, 0.78); max-width: 34ch; }
.coll-info .btn { margin-top: 10px; }
@media (hover: hover) and (pointer: fine) { .coll:hover .bezel-core img { transform: scale(1.045); } }

/* ---------- Statement ---------- */
.statement { padding-block: clamp(80px, 11vw, 150px); }
.statement-text { font: 400 clamp(1.9rem, 4.2vw, 4rem)/1.12 var(--serif); letter-spacing: -0.015em; max-width: 24ch; margin-inline: auto; text-align: center; }
.js .statement-text .w { opacity: 0.16; transition: opacity 0.6s var(--ease-out); transition-delay: calc(var(--w) * 28ms); }
.js .statement-text.is-in .w { opacity: 1; }

/* ---------- Craft rail ---------- */
.rail-nav { display: flex; gap: 8px; }
.rail-nav .icon-btn { box-shadow: 0 0 0 1px var(--line-strong); }
.rail {
	list-style: none; margin: 0; padding: 0 var(--gutter) 10px max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	display: grid; grid-auto-flow: column; grid-auto-columns: clamp(250px, 24vw, 340px); gap: clamp(16px, 2vw, 28px);
	overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
	scrollbar-width: none; overscroll-behavior-x: contain;
}
.rail::-webkit-scrollbar { display: none; }
.rail-card { scroll-snap-align: start; }
.rail-card .bezel-core { aspect-ratio: 4 / 4.4; }
.rail-num { display: block; margin: 22px 0 8px; font-size: 11px; letter-spacing: 0.22em; color: var(--accent); }
.rail-card h3 { font: 500 1.65rem/1.1 var(--serif); margin-bottom: 8px; }
.rail-card p { color: var(--muted); font-size: 15px; }

/* ---------- Details bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: 340px 340px; gap: clamp(16px, 2vw, 28px); }
.t-a { grid-column: 1 / 8; grid-row: 1 / 3; }
.t-b { grid-column: 8 / 13; grid-row: 1 / 2; }
.t-c { grid-column: 8 / 11; grid-row: 2 / 3; }
.t-d { grid-column: 11 / 13; grid-row: 2 / 3; }
.tile .bezel-core img { position: absolute; inset: 0; transition: transform 1.4s var(--ease-out); }
.tile-copy { position: absolute; inset: auto 0 0 0; padding: 24px; color: #f4ede2; background: linear-gradient(to top, rgba(10, 9, 8, 0.78), transparent); }
.tile-copy h3 { font: 500 1.6rem/1.1 var(--serif); }
.tile-copy p { font-size: 14px; color: rgba(244, 237, 226, 0.78); margin-top: 4px; }
.t-d .tile-copy p { display: none; }
@media (hover: hover) and (pointer: fine) { .tile:hover .bezel-core img { transform: scale(1.05); } }

/* ---------- The box (linen) ---------- */
.box-section { position: relative; }
.box-section::before { content: ""; position: absolute; inset: 0; background: #ece4d6; z-index: -1; }
.box-section { --bg: #ece4d6; --surface: #f5efe6; --ink: #181412; --muted: #66594c; --accent: #7a5538; --on-accent: #f5efe6; --line: rgba(24, 20, 18, 0.12); --line-strong: rgba(24, 20, 18, 0.22); --shell: rgba(24, 20, 18, 0.04); --highlight: inset 0 1px 0 rgba(255, 255, 255, 0.6); color: var(--ink); isolation: isolate; }
.box-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.box-copy .lede { margin-top: 26px; }
.box-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.box-list li { display: flex; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15px; }
.box-list span { font-size: 11px; color: var(--accent); letter-spacing: 0.16em; padding-top: 4px; }
.box-media { position: relative; padding-bottom: 14%; }
.box-main .bezel-core { aspect-ratio: 872 / 782; }
.box-card { position: absolute; width: 38%; right: -4%; bottom: 0; rotate: 4deg; box-shadow: 0 40px 80px -40px rgba(60, 40, 20, 0.5), 0 0 0 1px var(--line); background: rgba(245, 239, 230, 0.8); }
.box-card .bezel-core { aspect-ratio: 730 / 884; }

/* ---------- Perks ---------- */
.care .h2 { margin-bottom: clamp(44px, 5vw, 72px); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.6vw, 22px); }
.perk .bezel-core { padding: 30px 26px 32px; min-height: 250px; display: flex; flex-direction: column; }
.perk-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--shell); box-shadow: 0 0 0 1px var(--line); font-size: 22px; color: var(--accent); margin-bottom: auto; }
.perk h3 { font: 500 1.5rem/1.15 var(--serif); margin: 40px 0 8px; }
.perk p { color: var(--muted); font-size: 15px; }

/* ---------- Join ---------- */
.join { padding-top: 0; }
.join-card .bezel-core { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: end; padding: clamp(32px, 6vw, 80px); background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface) 60%); }
.join-card .lede { margin-top: 20px; }

/* ---------- Forms (shared with WooCommerce) ---------- */
.field label, .form-row label { display: block; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.field-row { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--bg); box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow 0.25s ease; }
.field-row:focus-within { box-shadow: 0 0 0 1px var(--ink); }
.field-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 18px; font: 300 16px var(--sans); color: var(--ink); outline: none; }
.field-msg { font-size: 13px; color: var(--muted); margin-top: 12px; padding-left: 18px; min-height: 1.4em; }
.field-msg.is-error { color: var(--err); }
.join-form { position: relative; }
.join-done { display: flex; gap: 14px; align-items: center; font-size: 15px; opacity: 0; transform: translateY(12px); pointer-events: none; position: absolute; inset: auto 0 0 0; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.join-done i { font-size: 28px; color: var(--ok); }
.join-form.is-done .field { opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity 0.3s ease, transform 0.4s var(--ease-out); }
.join-form.is-done .join-done { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- Inner page hero ---------- */
.page-hero { padding-top: clamp(170px, 18vw, 230px); padding-bottom: clamp(40px, 5vw, 70px); }
.page-hero .display { font-size: clamp(2.8rem, 6.4vw, 6.4rem); }
.page-hero .lede { margin-top: 22px; }
.page-hero-tight .display { font-size: clamp(2.6rem, 5vw, 4.6rem); }
.prose { padding-bottom: var(--section); font-size: 17px; }
.prose > * { max-width: 720px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.2em; }
.prose h2 { font: 500 2.2rem/1.1 var(--serif); margin: 1.6em 0 0.5em; }
.prose a { border-bottom: 1px solid var(--line-strong); }
.notfound { min-height: 80dvh; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px 28px; padding-bottom: var(--section); }
.post-card .bezel-core { aspect-ratio: 4 / 5; }
.post-card .post-date { display: block; margin-top: 18px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.post-card h2 { font: 500 1.8rem/1.1 var(--serif); margin: 8px 0; }
.post-card p { color: var(--muted); }
.pager { grid-column: 1 / -1; }
.single-cover { margin: 0 auto 60px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(80px, 9vw, 130px); border-top: 1px solid var(--line); overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-lede { font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.2 var(--serif); max-width: 22ch; }
.socials { display: flex; gap: 6px; margin-top: 26px; }
.socials .icon-btn { box-shadow: 0 0 0 1px var(--line-strong); }
.foot-col h2 { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-col a { transition: color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .foot-col a:hover { color: var(--accent); } }
.foot-mark {
	margin: clamp(60px, 8vw, 110px) 0 0;
	font: 500 clamp(5rem, 24vw, 23rem)/0.8 var(--sans); letter-spacing: 0.12em; margin-right: -0.12em;
	text-align: center; white-space: nowrap;
	background: linear-gradient(to bottom, var(--ink) 10%, transparent 92%);
	-webkit-background-clip: text; background-clip: text; color: transparent;
	opacity: 0.9;
}
.foot-mark .lambda { display: inline; transform: none; }
.foot-legal { display: flex; justify-content: space-between; gap: 20px; padding: 26px 0 32px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); letter-spacing: 0.06em; }

/* ---------- Toast ---------- */
.toast {
	position: fixed; z-index: 70; left: 50%; bottom: 28px;
	display: flex; align-items: center; gap: 12px;
	padding: 14px 22px; border-radius: 999px;
	background: var(--ink); color: var(--bg); font-size: 14px;
	box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
	opacity: 0; transform: translate(-50%, 24px); pointer-events: none;
	transition: opacity 0.3s var(--ease-out), transform 0.4s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--err); color: #1a0f0d; }

/* ---------- Cross-page transitions ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.28s var(--ease-out) both vt-out; }
::view-transition-new(root) { animation: 0.5s var(--ease-out) both vt-in; }
::view-transition-group(*) { animation-duration: 0.55s; animation-timing-function: var(--ease-drawer); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.island-links { display: none; }
	.burger { display: block; }
	.island { width: min(640px, 100%); }
	.perks { grid-template-columns: repeat(2, 1fr); }
	.foot-grid { grid-template-columns: 1fr 1fr 1fr; }
	.foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
	.hero { min-height: 0; }
	.hero-grid, .box-grid, .join-card .bezel-core, .menu-grid { grid-template-columns: 1fr; }
	.menu-media { display: none; }
	.hero-stage { padding: 4% 8% 12% 4%; margin-top: 40px; }
	.coll-grid, .bento { grid-template-columns: 1fr; grid-template-rows: none; }
	.coll-men, .coll-women, .coll-note, .t-a, .t-b, .t-c, .t-d { grid-column: auto; grid-row: auto; }
	.coll-men .bezel-core { min-height: 0; aspect-ratio: 4 / 5; }
	.coll-note { grid-template-columns: 1fr; }
	.coll-note-img { display: none; }
	.tile .bezel-core { aspect-ratio: 4 / 3.4; }
	.t-d .tile-copy p { display: block; }
	.section-head { flex-direction: column; align-items: flex-start; }
	.post-grid { grid-template-columns: 1fr 1fr; }
	.box-card { right: 0; }
}
@media (max-width: 560px) {
	.island-wrap { padding-inline: 10px; }
	.island { padding-left: 20px; }
	.hide-sm { display: none; }
	.hero-stats { gap: 22px; }
	.hero-float-a { left: -2%; }
	.hero-badge { width: 92px; height: 92px; }
	.hero-badge b { width: 40px; height: 40px; font-size: 18px; }
	.perks, .post-grid, .box-list { grid-template-columns: 1fr; }
	.foot-grid { grid-template-columns: 1fr 1fr; }
	.foot-legal { flex-direction: column; }
	.field-row { flex-direction: column; border-radius: 26px; }
	.field-row input { padding: 14px 16px; }
	.field-row .btn { justify-content: space-between; }
}

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .rise, .js .reveal, .js .line .rise { transform: none !important; filter: none !important; }
	.js .reveal-img, .js .reveal-img img { clip-path: none !important; transform: none !important; }
	.marquee-track, .hero-badge svg { animation: none; }
	[data-drift] { animation: none !important; }
	.big-menu a { transform: none; }
	::view-transition-old(root), ::view-transition-new(root) { animation: 0.2s ease both vt-fade; }
	@keyframes vt-fade { from { opacity: 0; } }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.contact-channels { display: grid; gap: 14px; }
.contact-card .bezel-core { display: flex; align-items: center; gap: 18px; padding: 22px 22px 22px 20px; }
.contact-card .perk-icon { margin: 0; flex: none; }
.contact-card .eyebrow { display: block; margin-bottom: 4px; }
.contact-card strong { display: block; font: 500 1.35rem/1.2 var(--serif); word-break: break-word; }
.contact-card small { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.contact-arrow { margin-left: auto; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--shell); transition: transform 0.45s var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .contact-card:hover .contact-arrow { transform: translate(3px, -2px) scale(1.06); } }
.contact-address { padding: 18px 6px 0; }
.contact-address p { margin-top: 8px; font: 400 1.3rem/1.35 var(--serif); }
.contact-form-card .bezel-core { padding: clamp(26px, 4vw, 52px); }
.contact-form { position: relative; }
.contact-form h2 { font: 500 2.2rem/1 var(--serif); margin-bottom: 28px; }
.contact-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.contact-fields .field { margin-bottom: 18px; }
.contact-fields .field-wide { grid-column: 1 / -1; }
.input {
	width: 100%; min-height: 54px; padding: 14px 18px; border: 0; border-radius: 16px;
	background: var(--bg); color: var(--ink); font: 300 16px/1.5 var(--sans);
	box-shadow: 0 0 0 1px var(--line-strong); transition: box-shadow 0.2s ease;
}
.input:focus { outline: none; box-shadow: 0 0 0 1px var(--ink); }
textarea.input { resize: vertical; min-height: 150px; }
.contact-form .field-msg { padding-left: 0; margin: 0 0 14px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-done { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; background: var(--surface); opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }
.contact-done i { font-size: 40px; color: var(--ok); }
.contact-done h2 { margin: 0; }
.contact-done p { color: var(--muted); max-width: 36ch; }
.contact-form.is-done .contact-done { opacity: 1; pointer-events: auto; transform: none; }
.contact-spacer { height: var(--section); }
.contact-grid + .prose { padding-top: var(--section); padding-bottom: 0; }

/* Footer contact + policies */
.foot-contact { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: var(--muted); }
.foot-contact a { transition: color 0.25s ease; }
.foot-policies { display: flex; flex-wrap: wrap; gap: 20px; }
.foot-policies a { transition: color 0.25s ease; }
@media (hover: hover) and (pointer: fine) { .foot-contact a:hover, .foot-policies a:hover { color: var(--ink); } }

/* Policy pages read like a printed booklet. */
.prose h2:first-of-type { margin-top: 0.8em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--accent); }
.prose strong { font-weight: 500; }
.prose em { color: var(--muted); }

@media (max-width: 860px) {
	.contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.contact-fields { grid-template-columns: 1fr; }
	.contact-card .bezel-core { padding: 18px; gap: 14px; }
	.contact-card strong { font-size: 1.15rem; }
}
