/* ==========================================================================
   Cable Hammock: dark, olive-accented single-product store
   ========================================================================== */

:root {
	color-scheme: dark;

	--bg: #000000;
	--bg-2: #0b0c08;           /* banded sections */
	--surface: #15160f;        /* cards, inputs */
	--surface-2: #1d1e17;
	--line: #2a2b22;
	--line-2: #3b3c31;

	--text: #f5f5f0;
	--muted: #a3a596;          /* 7.3:1 on surface */
	--dim: #86887a;            /* 5.8:1 on black: secondary only */

	--accent: #b5c46a;         /* text/links on black, 11:1 */
	--accent-soft: rgba(181, 196, 106, 0.08);
	--btn: #66732a;            /* white text 5.2:1 */
	--btn-hover: #74832f;
	--btn-active: #5a6624;
	--grad: linear-gradient(100deg, #eef3c9 0%, #c9d68a 35%, #a3b452 70%, #7d8d35 100%);

	--font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--wrap: 1080px;
	--gutter: 22px;
	--radius: 28px;
	--radius-sm: 16px;
	--nav-h: 52px;
	--ease: cubic-bezier(0.28, 0.11, 0.32, 1);
}

/* Base ------------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.47;
	letter-spacing: -0.01em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.025em; line-height: 1.08; }
strong { color: var(--text); font-weight: 600; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--btn); color: #fff; }

.screen-reader-text, .visually-hidden {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--text); color: #000; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }
.wrap--store { max-width: calc(1120px + var(--gutter) * 2); }
.center { text-align: center; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* Type ------------------------------------------------------------------- */

.eyebrow { margin: 0 0 12px; font-size: 21px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.display { font-size: clamp(44px, 7.4vw, 88px); line-height: 1.03; letter-spacing: -0.04em; }
.section-title { font-size: clamp(36px, 5vw, 56px); line-height: 1.07; letter-spacing: -0.035em; }
.lead { font-size: clamp(19px, 2.2vw, 24px); line-height: 1.42; color: var(--muted); max-width: 720px; letter-spacing: -0.015em; }

.gradient-text {
	background: var(--grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	/* Keeps descenders from being clipped in Safari. */
	padding-bottom: 0.08em;
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 10px 22px;
	border: 0; border-radius: 980px;
	background: var(--btn); color: #fff;
	font-size: 17px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.1;
	text-decoration: none; cursor: pointer;
	transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--btn-hover); color: #fff; text-decoration: none; }
.btn:active { background: var(--btn-active); transform: scale(0.98); }
.btn--sm { min-height: 30px; padding: 5px 14px; font-size: 13px; font-weight: 500; }
.btn--lg { min-height: 54px; padding: 14px 32px; font-size: 18px; }
.btn--block { width: 100%; }
.btn--light { background: #fff; color: #000; }
.btn--light:hover { background: #e6e8dc; color: #000; }
.btn--light:active { background: #d4d7c6; }

.round-btn {
	display: inline-grid; place-items: center; width: 44px; height: 44px;
	border-radius: 50%; border: 0; background: var(--surface-2); color: var(--text); cursor: pointer;
	transition: background-color 0.2s;
}
.round-btn:hover { background: var(--line-2); }
.round-btn:disabled { opacity: 0.35; cursor: default; }

/* Reveal on scroll (only once JS has confirmed it can reveal) ------------- */

.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { transform: none; transition: opacity 0.4s linear; }
}

/* Nav -------------------------------------------------------------------- */

.site-nav {
	position: sticky; top: 0; z-index: 50;
	background: rgba(0, 0, 0, 0.78);
	-webkit-backdrop-filter: saturate(180%) blur(20px);
	backdrop-filter: saturate(180%) blur(20px);
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
/* On the product page the nav floats transparent over the hero photo and
   picks up its frosted background once the page scrolls. */
.single-product .site-nav { transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), -webkit-backdrop-filter 0.3s, backdrop-filter 0.3s; }
.single-product .site-nav:not(.is-scrolled):not(.is-open) {
	background: transparent; border-bottom-color: transparent;
	-webkit-backdrop-filter: none; backdrop-filter: none;
}
.single-product .hero { margin-top: calc(-1 * var(--nav-h)); }
.single-product .hero__media img { height: min(100svh, 56.25vw); }
.site-nav__inner {
	max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter);
	height: var(--nav-h); display: flex; align-items: center; gap: 24px;
}
.site-nav__logo { display: flex; align-items: center; color: var(--text); padding: 8px 0; margin-right: auto; }
.wordmark {
	display: block; width: 157px; height: 13px; background: currentColor;
	-webkit-mask: url(../img/logo.png) center / contain no-repeat;
	mask: url(../img/logo.png) center / contain no-repeat;
}
.wordmark--dim { color: var(--muted); }
.site-nav__links { display: flex; gap: 28px; font-size: 13px; }
.site-nav__links a { color: rgba(245, 245, 240, 0.82); padding: 8px 0; }
.site-nav__links a:hover { color: var(--text); text-decoration: none; }
.site-nav__actions { display: flex; align-items: center; gap: 14px; }
.site-nav__bag { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: rgba(245, 245, 240, 0.82); }
.site-nav__bag:hover { color: var(--text); }
.site-nav__bag .icon { width: 24px; height: 24px; }
.bag-count {
	position: absolute; right: 0; bottom: 2px; min-width: 16px; height: 16px; padding: 0 4px;
	border-radius: 8px; background: var(--accent); color: #000; font-size: 10px; font-weight: 700; line-height: 16px; text-align: center;
}
.bag-count.is-empty { display: none; }
.site-nav__toggle { display: none; width: 36px; height: 36px; place-items: center; border: 0; background: none; cursor: pointer; color: var(--text); }
.site-nav__secure { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.site-nav__secure .icon { width: 16px; height: 16px; }

@media (max-width: 819px) {
	.site-nav__toggle { display: grid; }
	.site-nav__links {
		position: absolute; left: 0; right: 0; top: var(--nav-h);
		flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
		background: rgba(0, 0, 0, 0.94);
		-webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
		border-bottom: 1px solid var(--line);
		font-size: 21px; font-weight: 600;
		visibility: hidden; opacity: 0; transform: translateY(-8px);
		transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s 0.25s;
	}
	.site-nav__links a { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.site-nav__links a:last-child { border-bottom: 0; }
	.site-nav.is-open .site-nav__links { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
}

/* Hero ------------------------------------------------------------------- */

/* Image first: it fills the screen under the nav; the headline follows it. */
.hero { text-align: center; }
.hero__title { font-size: clamp(56px, 9vw, 112px); line-height: 0.98; letter-spacing: -0.05em; }
.hero__title { margin: 0; font-weight: 700; }
.hero__name { margin: 0 auto; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; font-weight: 600; color: var(--text); letter-spacing: -0.02em; }
.hero__media { max-width: 1600px; margin: 0 auto; overflow: hidden; }
.hero__media img {
	width: 100%;
	height: min(calc(100svh - var(--nav-h, 64px)), 56.25vw);
	object-fit: cover;
	object-position: 55% 50%;
	-webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
	mask-image: linear-gradient(to bottom, #000 0%, #000 72%, transparent 100%);
}
.hero__text { margin-top: clamp(-96px, -5vw, -24px); position: relative; }
.hero__text .hero__lede { margin-top: 20px; }
.hero__lede { max-width: 640px; margin: 0 auto 28px; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.38; color: var(--muted); letter-spacing: -0.015em; }
.hero__buy { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero__price { margin: 0; color: var(--muted); font-size: 17px; }

@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.hero__media img { animation: hero-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
		@keyframes hero-out { to { transform: scale(1.08); opacity: 0.35; } }
		.design__img { animation: float-in linear both; animation-timeline: view(); animation-range: entry 0% cover 50%; }
		@keyframes float-in { from { transform: scale(0.9); opacity: 0.2; } to { transform: none; opacity: 1; } }
	}
}

/* Statement -------------------------------------------------------------- */

.statement { padding: clamp(96px, 14vw, 180px) 0 clamp(64px, 8vw, 120px); }
.statement__text { margin: 0; font-size: clamp(28px, 4.2vw, 48px); line-height: 1.14; font-weight: 600; letter-spacing: -0.03em; color: var(--dim); }
.statement__text strong { color: var(--text); font-weight: 600; }

/* Highlights rail -------------------------------------------------------- */

.highlights { padding: clamp(40px, 6vw, 80px) 0 clamp(96px, 12vw, 160px); }
.highlights__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.highlights__controls { display: flex; gap: 12px; }
.rail {
	list-style: none; margin: 0;
	display: flex; gap: 20px; overflow-x: auto;
	padding: 0 max(var(--gutter), calc((100vw - var(--wrap)) / 2)) 8px;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
	scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
	scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.card {
	flex: 0 0 min(84vw, 600px); scroll-snap-align: start;
	display: flex; flex-direction: column;
	background: var(--surface); border-radius: var(--radius); overflow: hidden;
}
.card__text { margin: 0; padding: 36px 36px 28px; font-size: clamp(19px, 2vw, 24px); line-height: 1.27; font-weight: 600; color: var(--muted); letter-spacing: -0.02em; }
.card__img { margin-top: auto; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Compare ---------------------------------------------------------------- */

.compare { padding-bottom: clamp(96px, 12vw, 160px); }
.compare__grid { margin-top: 56px; display: grid; gap: 20px; }
@media (min-width: 760px) { .compare__grid { grid-template-columns: 1fr 1fr; } }
.compare__panel { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.compare__panel img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.compare__panel figcaption { position: absolute; top: 18px; left: 18px; }
.tag { display: inline-block; padding: 6px 14px; border-radius: 980px; background: rgba(0, 0, 0, 0.66); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); font-size: 14px; font-weight: 600; color: var(--text); }
.tag--accent { background: #fff; color: #000; }

/* Design ----------------------------------------------------------------- */

.design { padding-bottom: clamp(96px, 12vw, 160px); }
.design__stage { display: flex; flex-direction: column-reverse; }
.design__copy { text-align: center; margin-bottom: clamp(16px, 3vw, 40px); }
.design__img {
	width: 100%; max-width: 1440px; margin-inline: auto;
	-webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
	mask-image: linear-gradient(to bottom, transparent 0%, #000 22%, #000 82%, transparent 100%);
}
.design .lead { margin: clamp(40px, 6vw, 72px) 0 0; max-width: none; text-align: left; }
.trio { margin-top: clamp(56px, 8vw, 96px); display: grid; gap: 40px; }
@media (min-width: 760px) { .trio { grid-template-columns: repeat(3, 1fr); } }
.trio__item p { color: var(--muted); }
.trio__stat { display: inline-block; margin-bottom: 12px !important; font-size: clamp(40px, 5vw, 56px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }

/* Fits ------------------------------------------------------------------- */

.fits { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.fits__grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .fits__grid { grid-template-columns: 1.15fr 1fr; gap: 72px; } }
.fits__media { border-radius: var(--radius); overflow: hidden; }
.fits__copy .section-title { margin-bottom: 16px; }
.checklist { list-style: none; margin: 32px 0 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); font-size: 19px; }
.checklist .icon { color: var(--accent); }

/* Install ---------------------------------------------------------------- */

.install { padding: clamp(96px, 12vw, 160px) 0; }
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 32px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step__n { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); font-weight: 600; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--muted); margin: 0; }
.install__media { margin-top: 64px; display: grid; gap: 20px; }
@media (min-width: 760px) { .install__media { grid-template-columns: 1fr 1fr; } }
.install__media figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.install__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Specs ------------------------------------------------------------------ */

.specs { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-2); border-block: 1px solid var(--line); }
.stats { margin-top: 56px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { border-top: 1px solid var(--line-2); padding-top: 20px; }
.stat__label { margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.stat__num { margin: 0; font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.stat__num span { margin-left: 4px; font-size: 0.42em; letter-spacing: -0.01em; color: var(--muted); font-weight: 600; }
.specs__grid { margin-top: 72px; display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .specs__grid { grid-template-columns: 1fr 1.15fr; gap: 72px; } }
.specs__figure { margin: 0; border-radius: var(--radius); overflow: hidden; }
.spec-list { margin: 0; }
.spec-list div { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line-2); }
@media (min-width: 560px) { .spec-list div { grid-template-columns: 160px 1fr; gap: 24px; } }
.spec-list dt { color: var(--muted); font-size: 15px; padding-top: 1px; }
.spec-list dd { margin: 0; }

/* Buy -------------------------------------------------------------------- */

.buy { padding: clamp(96px, 12vw, 160px) 0; }
.buy__grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .buy__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
@media (min-width: 900px) { .buy__panel { position: sticky; top: calc(var(--nav-h) + 24px); } }

.gallery__main { border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.gallery__main img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: opacity 0.25s; }
.gallery__main img.is-swapping { opacity: 0; }
.gallery__thumbs { margin-top: 14px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 14px; overflow: hidden; background: var(--surface); cursor: pointer; transition: border-color 0.2s; }
.gallery__thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; opacity: 0.7; transition: opacity 0.2s; }
.gallery__thumb:hover img, .gallery__thumb[aria-pressed="true"] img { opacity: 1; }
.gallery__thumb[aria-pressed="true"] { border-color: var(--accent); }

.buy__title { font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.035em; }
.buy__from { margin: 10px 0 32px; color: var(--muted); font-size: 19px; }

.packs { margin: 0 0 20px; padding: 0; border: 0; display: grid; gap: 12px; }
.packs__legend { padding: 0; margin-bottom: 14px; font-size: 17px; font-weight: 600; }
.pack {
	position: relative; display: flex; align-items: center; gap: 16px;
	min-height: 72px; padding: 16px 20px;
	border: 1.5px solid var(--line-2); border-radius: var(--radius-sm);
	cursor: pointer; transition: border-color 0.2s, background-color 0.2s;
}
.pack:hover { border-color: #55574a; }
.pack input { position: absolute; opacity: 0; pointer-events: none; }
.pack:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pack:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.pack__body { display: flex; flex-direction: column; gap: 2px; margin-right: auto; }
.pack__name { font-size: 19px; font-weight: 600; }
.pack__note { font-size: 14px; color: var(--muted); }
.pack__save { display: inline-block; margin-top: 6px; padding: 2px 9px; border-radius: 980px; background: #fff; color: #000; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; width: fit-content; }
.pack__price { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }

.buy-form .single_add_to_cart_button { margin-top: 8px; }
.soldout { color: var(--muted); }

/* Stripe (Payment Plugins) express buttons inside the form. */
.buy-form .wc-stripe-product-checkout-container,
.buy-form [class*="wc-stripe-"][class*="-product"] { margin-top: 12px !important; }
.buy-form .wc-stripe-product-checkout-container ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.buy-form apple-pay-button, .buy-form .apple-pay-button { width: 100% !important; }
/* PayPal's product-page buttons, if enabled. */
.buy-form .ppcp-product-payment-buttons, .buy-form [id^="ppcp-"] { margin-top: 12px; }

.assurances { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 0; }
.assurances li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.assurances .icon { color: var(--accent); margin-top: 1px; }

/* FAQ -------------------------------------------------------------------- */

.faq { padding: clamp(96px, 12vw, 160px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.faq__list { margin-top: 40px; }
.faq__item { border-top: 1px solid var(--line-2); }
.faq__item:last-child { border-bottom: 1px solid var(--line-2); }
.faq__item summary {
	display: flex; align-items: center; justify-content: space-between; gap: 20px;
	min-height: 44px; padding: 22px 0; cursor: pointer; list-style: none;
	font-size: 19px; font-weight: 600;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--accent); transition: transform 0.3s var(--ease); }
.faq__item[open] summary .icon { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 40px 24px 0; color: var(--muted); }

/* Closing ---------------------------------------------------------------- */

.closing { padding: clamp(120px, 16vw, 200px) 0; }
.closing__inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 40px; }

/* Mobile buy bar --------------------------------------------------------- */

.buybar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
	padding-bottom: env(safe-area-inset-bottom);
	background: rgba(11, 12, 8, 0.86);
	-webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
	border-top: 1px solid var(--line);
	transform: translateY(110%); transition: transform 0.35s var(--ease);
}
.buybar.is-visible { transform: none; }
.buybar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.buybar__name { margin: 0; font-weight: 600; }
.buybar .btn { min-height: 40px; padding: 8px 22px; font-size: 15px; }
@media (min-width: 820px) { .buybar { display: none; } }

/* Footer ----------------------------------------------------------------- */

.site-footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--muted); }
.site-footer__inner { display: grid; gap: 28px; }
.site-footer__brand p { margin: 12px 0 0; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__links a { color: var(--muted); }
.site-footer__links a:hover { color: var(--text); }
.site-footer__legal { margin: 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--dim); }
@media (max-width: 819px) { .is-landing .site-footer, .single-product .site-footer { padding-bottom: calc(112px + env(safe-area-inset-bottom)); } }

/* Pages (About, Contact, Returns) --------------------------------------- */

.page-shell { padding: clamp(48px, 8vw, 96px) 0 clamp(96px, 12vw, 160px); }
.page__title { font-size: clamp(40px, 6vw, 64px); letter-spacing: -0.04em; margin-bottom: 40px; }
.page-shell--404 { padding-block: clamp(96px, 16vw, 200px); }
.page-shell--404 .display { margin-bottom: 24px; }
.page-shell--404 .btn { margin-top: 16px; }

.entry { color: #d6d7cf; }
.entry > * + * { margin-top: 1.1em; }
.entry h2 { font-size: clamp(26px, 3vw, 32px); margin-top: 1.8em; color: var(--text); }
.entry h3 { font-size: 21px; margin-top: 1.6em; color: var(--text); }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry li + li { margin-top: 0.4em; }
.entry img { border-radius: var(--radius-sm); }
.entry hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.entry blockquote { margin: 0; padding-left: 20px; border-left: 2px solid var(--line-2); color: var(--muted); }
/* Block content made for the previous theme: neutralise its light backgrounds and colours. */
.entry .has-background:not(.wp-block-button__link) { background: var(--surface) !important; border-radius: var(--radius-sm); padding: 28px; }
.entry [class*="has-"][class*="-color"]:not(.wp-block-button__link):not(a) { color: inherit !important; }
.entry .wp-block-button__link, .entry .wp-element-button {
	display: inline-flex; min-height: 44px; align-items: center; padding: 10px 24px;
	border-radius: 980px; background: var(--btn) !important; color: #fff !important; font-weight: 500; text-decoration: none;
}
.entry .wp-block-columns { display: flex; flex-wrap: wrap; gap: 32px; }
.entry .wp-block-column { flex: 1 1 280px; }
.entry .wp-block-cover { border-radius: var(--radius); overflow: hidden; }

/* Forms (Contact Form 7, account, classic fallbacks) -------------------- */

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], select, textarea {
	width: 100%; min-height: 48px; padding: 12px 14px;
	background: var(--surface); color: var(--text);
	border: 1px solid var(--line-2); border-radius: 12px;
	font: inherit; font-size: 17px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181, 196, 106, 0.2); }
label { color: var(--muted); font-size: 15px; }
.wpcf7-form p { margin-bottom: 18px; }
.wpcf7-form label { display: block; }
.wpcf7-form label input, .wpcf7-form label textarea { margin-top: 6px; }
input[type="submit"], button[type="submit"]:not(.single_add_to_cart_button):not([class*="wc-block"]), .button, .woocommerce-Button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
	border: 0; border-radius: 980px; background: var(--btn); color: #fff;
	font: inherit; font-size: 17px; font-weight: 500; cursor: pointer; text-decoration: none;
}
input[type="submit"]:hover, .button:hover { background: var(--btn-hover); color: #fff; text-decoration: none; }
.wpcf7-response-output { border-radius: 12px; padding: 14px 16px !important; margin: 20px 0 0 !important; }
.wpcf7-not-valid-tip { color: #ff9b8a; font-size: 14px; margin-top: 6px; }

/* WooCommerce notices (classic) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	list-style: none; margin: 0 0 24px; padding: 16px 20px; border-radius: 14px;
	background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
}
.woocommerce-error { border-color: #7a3328; }
.woocommerce-message .button, .woocommerce-info .button { min-height: 36px; padding: 6px 16px; font-size: 14px; margin-left: 12px; float: right; }
.is-landing .woocommerce-notices-wrapper, .single-product .woocommerce-notices-wrapper { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 24px auto 0; padding: 0 var(--gutter); }

/* Account + order received (classic templates) */
.woocommerce-account .woocommerce { display: grid; gap: 40px; }
@media (min-width: 900px) { .woocommerce-account.logged-in .woocommerce { grid-template-columns: 220px 1fr; } }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation a { display: block; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.woocommerce-MyAccount-navigation .is-active a { color: var(--text); font-weight: 600; }
.woocommerce form .form-row { margin: 0 0 18px; }
.woocommerce form .form-row label { display: block; margin-bottom: 6px; }
.woocommerce-form-login, .woocommerce-form-register, .woocommerce-ResetPassword { max-width: 440px; }
.shop_table, .woocommerce-table, .woocommerce-orders-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.shop_table th, .shop_table td, .woocommerce-table th, .woocommerce-table td { text-align: left; padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.shop_table th { color: var(--muted); font-weight: 500; }
.woocommerce-order-overview { list-style: none; padding: 0; margin: 0 0 40px; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.woocommerce-order-overview li { padding: 16px 18px; background: var(--surface); border-radius: 14px; color: var(--muted); font-size: 14px; }
.woocommerce-order-overview li strong { display: block; margin-top: 4px; font-size: 17px; }
.woocommerce-thankyou-order-received { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin-bottom: 32px; }
.woocommerce-order-details, .woocommerce-customer-details { margin-top: 48px; }
.woocommerce-order-details__title, .woocommerce-column__title { font-size: 24px; margin-bottom: 16px; }
.woocommerce-customer-details address { font-style: normal; padding: 20px; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }

/* ==========================================================================
   WooCommerce Blocks: cart + checkout on the dark ground
   ========================================================================== */

.page-shell--store .page__title { font-size: clamp(32px, 4vw, 44px); margin-bottom: 32px; }
.is-checkout-shell .page__title { text-align: left; }

.wc-block-cart, .wc-block-checkout { color: var(--text); }
.wp-block-woocommerce-checkout, .wp-block-woocommerce-cart { font-size: 16px; }

/* Text inputs */
body .wc-block-components-text-input input[type],
body .wc-block-components-text-input input[type]:-webkit-autofill,
body .wc-block-components-form .wc-block-components-text-input input[type],
body .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body .wc-blocks-components-select .wc-blocks-components-select__select,
body .wc-block-components-textarea,
body .wc-block-components-totals-coupon__input input {
	background-color: var(--surface) !important;
	color: var(--text) !important;
	border: 1px solid var(--line-2) !important;
	border-radius: 12px !important;
	-webkit-text-fill-color: var(--text);
	box-shadow: none;
}
body .wc-block-components-text-input input[type]:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--surface) inset !important; }
body .wc-block-components-text-input input[type]:focus,
body .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 3px rgba(181, 196, 106, 0.2) !important;
}
body .wc-block-components-text-input label,
body .wc-block-components-combobox .wc-block-components-combobox-control label,
body .wc-blocks-components-select .wc-blocks-components-select__label { color: var(--muted) !important; }
body .wc-blocks-components-select .wc-blocks-components-select__container { background: transparent; }
body .wc-blocks-components-select .wc-blocks-components-select__expand { fill: var(--muted); }
body .components-form-token-field__suggestions-list,
body .wc-block-components-combobox .components-form-token-field__suggestions-list { background: var(--surface-2) !important; color: var(--text); border-color: var(--line-2) !important; }
body .components-form-token-field__suggestion.is-selected { background: var(--line-2) !important; color: var(--text) !important; }

/* Checkboxes and radios */
body .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"],
body .wc-block-components-radio-control__input {
	background: var(--surface) !important; border: 1.5px solid var(--dim) !important;
}
body .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--btn) !important; border-color: var(--btn) !important; }
body .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: #fff; }
body .wc-block-components-radio-control__input:checked { border-color: var(--accent) !important; }
body .wc-block-components-radio-control__input:checked::before { background: var(--accent) !important; }

/* Payment and shipping option panels */
body .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
body .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option { box-shadow: none; }
body .wc-block-components-radio-control--highlight-checked::after,
body .wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body .wc-block-components-radio-control--highlight-checked label.wc-block-components-radio-control__option--checked-option-highlighted {
	box-shadow: inset 0 0 0 1.5px var(--accent) !important;
	border-radius: 12px;
}
body .wc-block-components-radio-control--highlight-checked { border-radius: 12px; }
body .wc-block-components-radio-control-accordion-option,
body .wc-block-components-radio-control__option { border-color: var(--line-2) !important; }
body .wc-block-checkout__payment-method .wc-block-components-radio-control__option-layout,
body .wc-block-components-radio-control__option-layout { color: var(--text); }
body .wc-block-components-radio-control__description,
body .wc-block-components-radio-control__secondary-description,
body .wc-block-components-radio-control__secondary-label { color: var(--muted); }

/* Step titles, panels, dividers */
body .wc-block-components-checkout-step__title,
body .wc-block-components-title.wc-block-components-title { color: var(--text); font-weight: 600; letter-spacing: -0.02em; }
body .wc-block-components-checkout-step__description,
body .wc-block-components-address-card,
body .wc-block-components-checkout-step__heading-content { color: var(--muted); }
body .wc-block-components-checkout-step__container::after { border-color: var(--line) !important; }
body .wc-block-components-address-card { border-color: var(--line-2) !important; border-radius: 12px; }
body .wc-block-components-panel, body .wc-block-components-totals-wrapper,
body .wc-block-components-order-summary, body .wc-block-cart-items, body .wc-block-cart-items td, body .wc-block-cart-items th,
body .wc-block-components-totals-footer-item, body .wc-block-checkout__actions, body .wc-block-components-sidebar-layout .wc-block-components-main { border-color: var(--line) !important; }
body .wc-block-components-totals-wrapper::after, body .wc-block-components-panel::after, body .wc-block-components-panel::before { border-color: var(--line) !important; }
body .wc-block-components-totals-item__description, body .wc-block-components-product-metadata,
body .wc-block-components-order-summary-item__description, body .wc-block-components-product-details { color: var(--muted); }
body .wc-block-components-formatted-money-amount { color: inherit; }
body .wc-block-components-product-badge { border-color: var(--line-2); color: var(--muted); }
body .wc-block-components-order-summary-item__quantity { background: var(--surface-2) !important; border-color: var(--line-2) !important; color: var(--text) !important; box-shadow: none !important; }
body .wc-block-components-order-summary-item__image img,
body .wc-block-cart-item__image img { border-radius: 10px; }
body .wc-block-components-panel__button, body .wc-block-components-totals-coupon-link { color: var(--accent) !important; }

/* Order summary sidebar */
@media (min-width: 700px) {
	body .wc-block-checkout__sidebar,
	body .wc-block-cart__sidebar {
		background: var(--surface); border-radius: 20px; padding: 24px !important; align-self: flex-start;
	}
	body .wc-block-checkout__sidebar .wc-block-components-checkout-order-summary__title { margin-top: 0; }
}

/* Express checkout (Apple Pay / Google Pay / Link) separator */
body .wc-block-components-express-payment--checkout,
body .wc-block-components-express-payment--cart { border-color: var(--line-2) !important; }
body .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::before,
body .wc-block-components-express-payment--checkout .wc-block-components-express-payment__title-container::after { border-color: var(--line-2) !important; }
body .wc-block-components-express-payment__title { color: var(--muted) !important; background: transparent !important; }
body .wc-block-components-express-payment-continue-rule { color: var(--muted); }
body .wc-block-components-express-payment-continue-rule::before, body .wc-block-components-express-payment-continue-rule::after { border-color: var(--line-2) !important; }

/* Primary buttons: Place order, Proceed to checkout */
body .wc-block-components-button:not(.is-link):not(.wc-block-components-totals-coupon__button):not(.wc-block-components-checkout-return-to-cart-button) {
	min-height: 56px; border-radius: 980px !important;
	background: var(--btn) !important; color: #fff !important; border: 0 !important;
	font-size: 17px; font-weight: 600; letter-spacing: -0.01em;
	box-shadow: none !important; text-decoration: none !important;
}
body .wc-block-components-button:not(.is-link):hover { background: var(--btn-hover) !important; }
body .wc-block-components-totals-coupon__button { border-radius: 12px !important; background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; }
body .wc-block-components-checkout-return-to-cart-button { color: var(--accent) !important; }
body .wc-block-checkout__terms { color: var(--muted); font-size: 14px; }

/* Cart quantity stepper */
body .wc-block-components-quantity-selector { border-color: var(--line-2) !important; border-radius: 10px; background: var(--surface); }
body .wc-block-components-quantity-selector::after { border-color: var(--line-2) !important; }
body .wc-block-components-quantity-selector input.wc-block-components-quantity-selector__input,
body .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button { color: var(--text) !important; background: transparent !important; }
body .wc-block-cart-item__remove-link { color: var(--muted) !important; }
body .wc-block-components-product-name { color: var(--text) !important; font-weight: 400; }
body .wc-block-components-order-summary-item .wc-block-components-product-name { font-size: 16px !important; font-weight: 400 !important; line-height: 1.35; }

/* Notices */
body .wc-block-components-notice-banner { background: var(--surface) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important; border-radius: 14px; }
body .wc-block-components-notice-banner.is-error { border-color: #7a3328 !important; }
body .wc-block-components-notice-banner > svg { background: var(--btn); fill: #fff; }
body .wc-block-components-notice-banner.is-error > svg { background: #b0412f; }
body .wc-block-components-validation-error { color: #ff9b8a; }

/* Empty cart */
body .wc-block-cart__empty-cart__title { color: var(--text); }
body .wp-block-woocommerce-empty-cart-block .wp-block-separator { border-color: var(--line); }
body .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link { background: var(--btn); color: #fff; border-radius: 980px; }

/* Loading skeletons */
body .wc-block-components-skeleton__element, body .wc-block-checkout.is-loading .wc-block-components-checkout-step, body .wc-block-cart.is-loading > * { background: var(--surface-2) !important; }

/* Phones: crop the wide renders so the tray fills the frame instead of floating small. */
@media (max-width: 759px) {
	.hero__media img { height: auto; aspect-ratio: 1 / 1; object-fit: cover; object-position: 58% 55%; }
	.design__img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 50%; }
	.hero__text { margin-top: 16px; }
	.hero__text .hero__lede { margin-top: 24px; margin-bottom: 36px; }
	/* Taller frame on phones = the tray is zoomed in and fills more of the screen. */
	.single-product .hero__media img { aspect-ratio: auto; height: 80vw; object-position: 64% 50%; }
	/* Push the photo below the floating nav, and fade its top edge into the black. */
	.single-product .hero__media { position: relative; padding-top: calc(var(--nav-h) + 40px); }
	.single-product .hero__media::before { content: ""; position: absolute; left: 0; right: 0; top: calc(var(--nav-h) + 39px); height: 22%; background: linear-gradient(var(--bg), transparent); z-index: 1; pointer-events: none; }
}

/* Desktop nav: a little larger and roomier. */
@media (min-width: 820px) {
	:root { --nav-h: 68px; }
	.site-nav__links { font-size: 16px; }
	.site-nav .btn--sm { font-size: 16px; min-height: 34px; padding: 6px 16px; }
}

/* About: the Shop Now button matches the white hero/nav Buy buttons. */
.page-shell--about .entry .wp-block-button__link { background: #fff !important; color: #000 !important; }
.page-shell--about .entry .wp-block-button__link:hover { background: #e6e8dc !important; }

/* Install scene ----------------------------------------------------------
   The empty desk is the stage; the tray is a cut-out of the matching shot,
   placed at its exact box in that 1376x768 frame (436,350 670x112).
   site.js sets --t (0 → 1, tray rise) and --z (stage zoom) from scroll.
   Without JS, or with reduced motion, --t stays 1: the finished install. */
.rise { --t: 1; --z: 1; position: relative; margin-top: 24px; }
.rise__sticky { position: relative; overflow: hidden; }
/* Soft photo edges: page-coloured overlays on the stage (more reliable than masks). */
.rise__stage::before, .rise__stage::after { content: ""; position: absolute; left: 0; right: 0; height: 26%; z-index: 2; pointer-events: none; }
.rise__stage::before { top: -1px; background: linear-gradient(var(--bg), transparent); }
.rise__stage::after { bottom: -1px; background: linear-gradient(transparent, var(--bg)); }
.rise__caps { z-index: 3; }
.rise__stage { position: relative; width: min(100%, 1600px); margin: 0 auto; aspect-ratio: 1376 / 538; transform: scale(var(--z)); transform-origin: 56% 33%; will-change: transform; }
.rise__desk { position: absolute; inset: 0; width: 100%; height: 100%; }
.rise__tray {
	position: absolute; left: 31.686%; top: 21.1%; width: 48.692%; height: auto;
	/* The desk underside rises ~1.3deg to the right in the photo; tilt the straight cut-out to match. */
	transform: translateY(calc((1 - var(--t)) * 260%)) rotate(-1.7deg);
	transform-origin: 0% 20%;
	opacity: clamp(0, calc(var(--t) * 3), 1);
	will-change: transform, opacity;
}
.rise__caps { position: absolute; left: 0; right: 0; bottom: clamp(32px, 9vh, 96px); display: grid; text-align: center; pointer-events: none; }
.rise__cap {
	grid-area: 1 / 1; margin: 0; padding: 0 var(--gutter);
	font-size: clamp(32px, 5vw, 64px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05;
	opacity: 0; transform: translateY(12px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.rise__cap.is-on { opacity: 1; transform: none; }

.js .rise.is-live { height: 280vh; }
.js .rise.is-live .rise__sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; align-items: center; }
.js .rise.is-live { margin-top: 0; }

/* Phones: the stage is wider than the screen, centred on the tray. */
@media (max-width: 759px) {
	.rise__stage { width: 165vw; margin-left: calc(50vw - 165vw * 0.56); }
	/* On a tall phone screen, anchor the scene under the nav with the caption right below it. */
	.js .rise.is-live .rise__sticky { grid-template-columns: 100%; align-content: start; align-items: start; padding-top: calc(var(--nav-h) + 14vh); }
	.rise__stage::before, .rise__stage::after { height: 12%; }
	.rise__caps { position: relative; bottom: auto; margin-top: 28px; }
}
