/* ==========================================================================
   GLOBAL — Design Tokens, Reset, Typography, Luxury Animation System
   Restore Mindset Theme · Ultra-Luxury Edition
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
	/* Palette */
	--sand:    #ede6db;
	--sand-2:  #e3d9cc;
	--sand-3:  #d0c4b0;
	--cream:   #f8f4ef;
	--sage:    #4e6b4e;
	--sage-2:  #6b8f6b;
	--sage-3:  #9db89d;
	--terra:   #b8795a;
	--terra-2: #e8c4ae;
	--stone:   #6b6055;
	--taupe:   #8a7d70;
	--umber:   #3a3228;
	--forest:  #2c3c2c;
	--ink:     #1e1a16;

	/* Typography */
	--f-display: 'Cormorant', Georgia, serif;
	--f-body:    'PT Serif', Georgia, serif;
	--f-ui:      'Jost', Helvetica, Arial, sans-serif;

	/* Spacing scale */
	--sp-xs:  8px;
	--sp-sm:  16px;
	--sp-md:  32px;
	--sp-lg:  64px;
	--sp-xl:  96px;
	--sp-2xl: 140px;

	/* Layout */
	--container:     1320px;
	--container-sm:  960px;
	--gutter:        24px;

	/* Transitions — luxury timing */
	--ease:        cubic-bezier(0.25, 0.02, 0.15, 1);
	--ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
	--ease-luxury: cubic-bezier(0.22, 0.61, 0.36, 1);
	--dur:         0.45s;
	--dur-fast:    0.28s;
	--dur-slow:    0.7s;
	--dur-cinema:  1.2s;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}

body {
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.9;
	color: var(--ink);
	background-color: var(--sand);
	overflow-x: hidden;
}

img,
picture,
video {
	display: block;
	max-width: 100%;
	height: auto;
}

svg {
	display: block;
	max-width: 100%;
}

a {
	color: inherit;
	text-decoration: none;
}

ul,
ol {
	list-style: none;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
	background: none;
	border: none;
	outline: none;
}

button {
	cursor: pointer;
}

table {
	border-collapse: collapse;
}

/* ---------- Selection ---------- */
::selection {
	background: var(--sage-3);
	color: var(--ink);
}

/* ---------- Scrollbar — Thin luxury ---------- */
::-webkit-scrollbar {
	width: 4px;
}

::-webkit-scrollbar-track {
	background: var(--sand);
}

::-webkit-scrollbar-thumb {
	background: var(--sand-3);
	border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
	background: var(--taupe);
}

/* ---------- Container ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.container--sm {
	max-width: var(--container-sm);
}

/* ---------- Typography ---------- */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	line-height: 1.15;
	color: var(--ink);
}

h1 {
	font-size: clamp(42px, 7vw, 116px);
	letter-spacing: -0.02em;
}

h2 {
	font-size: clamp(32px, 4.5vw, 64px);
	letter-spacing: -0.01em;
}

h3 { font-size: clamp(26px, 3vw, 42px); }
h4 { font-size: clamp(22px, 2.2vw, 32px); }
h5 { font-size: 22px; }
h6 { font-size: 18px; }

p {
	font-family: var(--f-body);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.9;
	color: var(--ink);
}

/* Eyebrow / Labels */
.eyebrow {
	font-family: var(--f-ui);
	font-size: 9px;
	font-weight: 300;
	letter-spacing: 0.30em;
	text-transform: uppercase;
	color: var(--sage);
	line-height: 1;
}

.eyebrow--light {
	color: var(--sage-3);
}

.product-name {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	line-height: 1.25;
}

.price,
.product-price {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: normal;
	color: var(--stone);
}

.ui-text {
	font-family: var(--f-ui);
	font-size: 13px;
	font-weight: 300;
	letter-spacing: 0.04em;
}

blockquote {
	font-family: var(--f-display);
	font-size: clamp(22px, 2.8vw, 36px);
	font-weight: 300;
	font-style: italic;
	line-height: 1.55;
	color: var(--ink);
}

/* ---------- Contrast helpers ---------- */
.bg-sand,
.bg-sand-2,
.bg-cream {
	color: var(--ink);
}

.bg-sand   { background-color: var(--sand); }
.bg-sand-2 { background-color: var(--sand-2); }
.bg-cream  { background-color: var(--cream); }

.bg-sage {
	background-color: var(--sage);
	color: var(--cream);
}

.bg-sage .eyebrow { color: var(--sage-3); }

.bg-forest { background-color: var(--forest); color: var(--cream); }
.bg-umber  { background-color: var(--umber); color: var(--cream); }
.bg-ink    { background-color: var(--ink); color: var(--cream); }

.bg-forest .eyebrow,
.bg-umber .eyebrow,
.bg-ink .eyebrow { color: var(--sage-3); }

.overlay-text { color: var(--cream); }

/* ==========================================================================
   PAGE TRANSITION OVERLAY
   ========================================================================== */
.rm-transition {
	position: fixed;
	inset: 0;
	z-index: 10001;
	background-color: var(--forest);
	pointer-events: none;
	transform: translateY(100%);
	will-change: transform;
}

.rm-transition.is-entering {
	pointer-events: all;
	animation: transitionIn 0.6s var(--ease-luxury) forwards;
}

.rm-transition.is-active {
	transform: translateY(0);
}

.rm-transition.is-leaving {
	animation: transitionOut 0.8s var(--ease-out) forwards;
}

.rm-transition__brand {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(20px, 3vw, 36px);
	color: var(--cream);
	opacity: 0.4;
	white-space: nowrap;
}

@keyframes transitionIn {
	0%   { transform: translateY(100%); }
	100% { transform: translateY(0); }
}

@keyframes transitionOut {
	0%   { transform: translateY(0); }
	100% { transform: translateY(-100%); }
}

/* ==========================================================================
   CINEMATIC SCROLL REVEAL SYSTEM
   ========================================================================== */

/* Only hide elements when JS has loaded */
body.js-ready [data-r] {
	opacity: 0;
	transition:
		opacity var(--dur-cinema) var(--ease-luxury),
		transform var(--dur-cinema) var(--ease-luxury),
		clip-path var(--dur-cinema) var(--ease-luxury);
	will-change: opacity, transform;
}

body.js-ready [data-r="u"] {
	transform: translateY(40px);
}

body.js-ready [data-r="l"] {
	transform: translateX(-40px);
}

body.js-ready [data-r="r"] {
	transform: translateX(40px);
}

body.js-ready [data-r="f"] {
	transform: none;
}

/* Clip-path reveal — rectangle opens from center */
body.js-ready [data-r="clip"] {
	clip-path: inset(8% 8% 8% 8%);
	transform: none;
}

/* Scale reveal — zooms in subtly */
body.js-ready [data-r="scale"] {
	transform: scale(0.92);
}

/* Visible state — all types */
[data-r].is-visible {
	opacity: 1 !important;
	transform: translate(0, 0) scale(1) !important;
	clip-path: inset(0 0 0 0) !important;
}

/* Stagger delays — luxury pacing */
body.js-ready [data-d="1"] { transition-delay: 0.12s; }
body.js-ready [data-d="2"] { transition-delay: 0.26s; }
body.js-ready [data-d="3"] { transition-delay: 0.42s; }
body.js-ready [data-d="4"] { transition-delay: 0.6s; }
body.js-ready [data-d="5"] { transition-delay: 0.8s; }

/* Stagger children (used with data-stagger on parent) */
body.js-ready [data-r-child] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s var(--ease-luxury), transform 0.6s var(--ease-luxury);
}

[data-r-child].is-visible {
	opacity: 1 !important;
	transform: translateY(0) !important;
}

/* ---------- Grain Overlay ---------- */
.rm-grain {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	opacity: 0.02;
	z-index: 9999;
	pointer-events: none;
}

/* ==========================================================================
   PAGE LOADER — Cinematic Brand Reveal
   ========================================================================== */
.rm-loader {
	position: fixed;
	inset: 0;
	z-index: 10000;
	background-color: var(--forest);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transition: opacity 0.8s var(--ease-luxury);
}

.rm-loader.is-leaving {
	opacity: 0;
	pointer-events: none;
}

.rm-loader__brand {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(28px, 4vw, 48px);
	color: var(--cream);
	overflow: hidden;
}

.rm-loader__brand span {
	display: inline-block;
	opacity: 0;
	transform: translateY(100%);
	transition: opacity 0.4s var(--ease-luxury), transform 0.4s var(--ease-luxury);
}

.rm-loader__brand span.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.rm-loader__line {
	width: 0;
	height: 1px;
	background-color: var(--sage-3);
	margin-top: 16px;
	transition: width 1.6s var(--ease-out);
}

.rm-loader__line.is-growing {
	width: 120px;
}

/* ==========================================================================
   MAGNETIC CURSOR
   ========================================================================== */
.rm-cursor-dot,
.rm-cursor-ring {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	pointer-events: none;
	z-index: 9998;
}

.rm-cursor-dot {
	width: 5px;
	height: 5px;
	background-color: var(--sage);
	mix-blend-mode: multiply;
	transition: background-color var(--dur-fast) var(--ease);
}

.rm-cursor-ring {
	border: 1px solid var(--sage);
	opacity: 0.4;
	transition: border-color var(--dur-fast) var(--ease),
	            opacity var(--dur-fast) var(--ease);
}

.rm-cursor-dot.is-hover {
	background-color: var(--terra);
}

.rm-cursor-ring.is-hover {
	border-color: var(--terra);
	opacity: 0.25;
}

@media (pointer: coarse) {
	.rm-cursor-dot,
	.rm-cursor-ring {
		display: none !important;
	}
}

/* ---------- Parallax ---------- */
[data-parallax] {
	will-change: transform;
}

/* ---------- Marquee ---------- */
.rm-marquee {
	background-color: var(--sage);
	overflow: hidden;
	padding: 14px 0;
	white-space: nowrap;
}

.rm-marquee__track {
	display: inline-flex;
	animation: marquee 34s linear infinite;
}

.rm-marquee__item {
	font-family: var(--f-ui);
	font-size: 9px;
	font-weight: 300;
	letter-spacing: 0.30em;
	text-transform: uppercase;
	color: var(--cream);
	padding: 0 40px;
	flex-shrink: 0;
}

.rm-marquee__dot {
	width: 3px;
	height: 3px;
	border-radius: 50%;
	background-color: rgba(248, 244, 239, 0.35);
	display: inline-block;
	vertical-align: middle;
}

@keyframes marquee {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* ---------- Horizontal Scroll ---------- */
.rm-hscroll {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	cursor: grab;
}

.rm-hscroll::-webkit-scrollbar { display: none; }

.rm-hscroll.is-dragging {
	cursor: grabbing;
	scroll-snap-type: none;
}

.rm-hscroll > * {
	scroll-snap-align: start;
	flex-shrink: 0;
}

/* ==========================================================================
   IMAGE REVEAL — Cinematic blur-up load
   ========================================================================== */
img[loading="lazy"] {
	transition: opacity 0.6s var(--ease-luxury), filter 0.6s var(--ease-luxury);
}

/* ---------- Utility ---------- */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.text-center { text-align: center; }
.text-cream  { color: var(--cream); }
.text-ink    { color: var(--ink); }
.text-stone  { color: var(--stone); }
.text-sage   { color: var(--sage); }

/* ---------- Section Spacing ---------- */
.section {
	padding: var(--sp-2xl) 0;
}

.section--sm {
	padding: var(--sp-xl) 0;
}

.section--flush {
	padding: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	:root {
		--gutter: 20px;
		--sp-xl: 72px;
		--sp-2xl: 100px;
	}
}

@media (max-width: 768px) {
	:root {
		--gutter: 16px;
		--sp-lg: 48px;
		--sp-xl: 56px;
		--sp-2xl: 72px;
	}

	body { font-size: 14px; }
}

@media (max-width: 480px) {
	:root {
		--gutter: 14px;
		--sp-lg: 40px;
		--sp-xl: 48px;
		--sp-2xl: 56px;
	}
}


/* ── Search Overlay ── */
.rm-search-overlay {
	position: fixed;
	inset: 0;
	z-index: 10002;
	background: rgba(30, 26, 22, 0.95);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s;
}
.rm-search-overlay.is-active {
	opacity: 1;
	visibility: visible;
}
.rm-search-overlay__inner {
	width: 100%;
	max-width: 640px;
	padding: 0 var(--gutter);
	position: relative;
}
.rm-search-overlay__input {
	width: 100%;
	padding: 20px 0;
	font-family: var(--f-display);
	font-size: clamp(24px, 4vw, 48px);
	font-weight: 300;
	font-style: italic;
	color: var(--cream);
	background: none;
	border: none;
	border-bottom: 1px solid rgba(248,244,239,0.2);
	outline: none;
}
.rm-search-overlay__input::placeholder {
	color: rgba(248,244,239,0.3);
}
.rm-search-overlay__close {
	position: absolute;
	top: -40px;
	right: var(--gutter);
	font-size: 32px;
	color: var(--cream);
	background: none;
	border: none;
	cursor: pointer;
}

/* ── Mobile Menu ── */
.rm-mobile-menu {
	position: fixed;
	inset: 0;
	z-index: 999;
	background: var(--sand);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.35s ease, visibility 0.35s;
}
.rm-mobile-menu.is-active {
	opacity: 1;
	visibility: visible;
}
.rm-mobile-menu__nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--sp-sm);
}
.rm-mobile-menu__link {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	font-size: clamp(24px, 5vw, 36px);
	color: var(--ink);
	transition: color 0.3s ease;
}
.rm-mobile-menu__link:hover {
	color: var(--sage);
}

/* ── Hamburger ── */
.rm-nav__hamburger {
	display: none;
	width: 24px;
	height: 18px;
	position: relative;
	background: none;
	border: none;
	cursor: pointer;
	margin-left: var(--sp-sm);
}
.rm-nav__hamburger span {
	display: block;
	width: 100%;
	height: 1px;
	background: currentColor;
	position: absolute;
	left: 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}
.rm-nav__hamburger span:nth-child(1) { top: 0; }
.rm-nav__hamburger span:nth-child(2) { top: 50%; }
.rm-nav__hamburger span:nth-child(3) { bottom: 0; }
.rm-nav__hamburger.is-active span:nth-child(1) { transform: rotate(45deg); top: 50%; }
.rm-nav__hamburger.is-active span:nth-child(2) { opacity: 0; }
.rm-nav__hamburger.is-active span:nth-child(3) { transform: rotate(-45deg); bottom: auto; top: 50%; }

.rm-nav__search-btn {
	background: none;
	border: none;
	color: inherit;
	cursor: pointer;
	display: flex;
	align-items: center;
	transition: color 0.3s ease;
}

/* ── Exit Intent Popup ── */
.rm-exit-popup {
	position: fixed;
	inset: 0;
	z-index: 10003;
	background: rgba(30, 26, 22, 0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s;
}
.rm-exit-popup.is-active {
	opacity: 1;
	visibility: visible;
}
.rm-exit-popup__card {
	background: var(--sand);
	max-width: 480px;
	width: 90%;
	padding: var(--sp-xl) var(--sp-lg);
	text-align: center;
	position: relative;
}
.rm-exit-popup__close {
	position: absolute;
	top: var(--sp-sm);
	right: var(--sp-sm);
	font-size: 20px;
	color: var(--stone);
	background: none;
	border: none;
	cursor: pointer;
}
.rm-exit-popup__title {
	font-family: var(--f-display);
	font-weight: 300;
	font-style: italic;
	font-size: 28px;
	color: var(--ink);
	margin-bottom: var(--sp-sm);
}
.rm-exit-popup__text {
	color: var(--stone);
	font-size: 14px;
	font-style: italic;
	margin-bottom: var(--sp-md);
}
.rm-exit-popup__form {
	display: flex;
	gap: 0;
}
.rm-exit-popup__input {
	flex: 1;
	padding: 14px 16px;
	border: 1px solid var(--sand-3);
	background: var(--cream);
	font-family: var(--f-ui);
	font-size: 12px;
	color: var(--ink);
}
.rm-exit-popup__input::placeholder { color: var(--taupe); }

@media (max-width: 768px) {
	.rm-nav__hamburger { display: block; }
	.rm-nav__search-btn { display: none; }
}

/* ── Concern grid mobile override ── */
@media (max-width: 768px) {
	.bg-cream [style*="repeat(5"] {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}
@media (max-width: 480px) {
	.bg-cream [style*="repeat(5"] {
		grid-template-columns: 1fr !important;
	}
}
/* concern-grid-mobile */
