/*
Theme Name: Elysen
Theme URI: https://coreconcepts.design/
Author: CoreConcepts Design
Author URI: https://coreconcepts.design/
Description: Elysen, a fictional hotel in Sithonia, Halkidiki. A single-page day from sunrise behind Mount Athos to night: granite, pine and lime, scroll-driven light, GSAP motion, a working reservation-request system and ClientLayer editing.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: elysen
*/

/* ─── Fonts (self-hosted, latin + latin-ext) ─────────────────────────────── */

@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin.woff2") format("woff2");
	font-weight: 200 500;
	font-stretch: 100% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Archivo";
	src: url("assets/fonts/archivo-latin-ext.woff2") format("woff2");
	font-weight: 200 500;
	font-stretch: 100% 125%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Martian Mono";
	src: url("assets/fonts/martian-mono-latin.woff2") format("woff2");
	font-weight: 400;
	font-stretch: 87.5%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "Martian Mono";
	src: url("assets/fonts/martian-mono-latin-ext.woff2") format("woff2");
	font-weight: 400;
	font-stretch: 87.5%;
	font-style: normal;
	font-display: swap;
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ─── Tokens ─────────────────────────────────────────────────────────────── */

:root {
	/* Material palette: lime wash, sand, pine ink, resin, sea, dusk, night. */
	--lime: #eee8df;
	--sand: #e4d9c7;
	--rose: #e9ddd6;
	--ink: #1e2421;
	--ink-soft: #565c58;
	--resin: #864617;
	--resin-light: #e0a27a;
	--gulf: #2d5a63;
	--dusk: #2a2420;
	--night: #121816;
	--night-2: #1a2220;
	--moon: #ece5d8;
	--error: #f2a68e;

	/* The page colour for each hour (read by js/core.js). */
	--tone-dawn: #1e2a3b;
	--tone-dawn-light: var(--rose);
	--tone-light: var(--lime);
	--tone-sand: var(--sand);
	--tone-dusk: var(--dusk);
	--tone-night: var(--night);

	--f-sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "Martian Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--gutter: clamp(16px, 4vw, 56px);
	--maxw: 1480px;
	--hdr-h: 72px;
	--sec-pad: clamp(6rem, 12vw, 12rem);
	--col-gap: clamp(0.75rem, 2.2vw, 2rem);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);

	color-scheme: light;
}

/* ─── Base ───────────────────────────────────────────────────────────────── */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--page-bg, var(--lime));
	color: var(--ink);
	font-family: var(--f-sans);
	font-size: 1.0625rem;
	font-stretch: 100%;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background-color 1.1s var(--ease);
}

main,
.site-footer {
	overflow-x: clip;
}

img,
svg {
	max-width: 100%;
}

img {
	display: block;
	height: auto;
}

figure {
	margin: 0;
}

a {
	color: inherit;
}

button,
input,
select,
textarea {
	font: inherit;
}

h1,
h2,
h3 {
	font-weight: 300;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--maxw));
	margin-inline: auto;
}

.mono {
	font-family: var(--f-mono);
	font-size: 0.7rem;
	font-stretch: 87.5%;
	font-weight: 400;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	line-height: 1.5;
}

.sr-only,
.screen-reader-text {
	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: fixed;
	top: 12px;
	left: 12px;
	z-index: 200;
	padding: 0.8rem 1.2rem;
	background: var(--ink);
	color: var(--lime);
	text-decoration: none;
	transform: translateY(-200%);
}

.skip-link:focus {
	transform: none;
}

:focus-visible {
	outline: 2px solid var(--focus, var(--resin));
	outline-offset: 3px;
}

html:not(.js) [data-js-only] {
	display: none !important;
}

/* ─── Tones: every section sets its own colours ──────────────────────────── */

[data-tone] {
	background: var(--tone-bg);
	color: var(--fg);
	--fg: var(--ink);
	--muted: var(--ink-soft);
	--accent: var(--resin);
	--line: rgba(30, 36, 33, 0.16);
	--focus: var(--resin);
}

[data-tone="dawn-light"] { --tone-bg: var(--tone-dawn-light); }
[data-tone="light"] { --tone-bg: var(--tone-light); }
[data-tone="sand"] { --tone-bg: var(--tone-sand); }

[data-tone="dawn"],
[data-tone="dusk"],
[data-tone="night"] {
	--fg: var(--moon);
	--muted: rgba(236, 229, 216, 0.72);
	--accent: var(--resin-light);
	--line: rgba(236, 229, 216, 0.16);
	--focus: var(--resin-light);
	color-scheme: dark;
}

[data-tone="dawn"] { --tone-bg: var(--tone-dawn); }
[data-tone="dusk"] { --tone-bg: var(--tone-dusk); }
[data-tone="night"] { --tone-bg: var(--tone-night); }

/* With the day cycle running, light hours share one colour that lives on
   <body> and drifts between them. Dusk and night keep their own solid
   ground, so text from a light section never sits on a dark page. */
html.sky main [data-tone="dawn-light"],
html.sky main [data-tone="light"],
html.sky main [data-tone="sand"] {
	background: transparent;
}

.sec {
	position: relative;
	padding-block: var(--sec-pad);
}

.sec-label {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.4rem 0.9rem;
	margin: 0 0 1.5rem;
	font-family: var(--f-mono);
	font-size: 0.66rem;
	font-stretch: 87.5%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--muted);
}

.sec-label .mono {
	font-size: inherit;
	color: var(--accent);
}

.h-display {
	margin: 0 0 0.55em;
	font-size: clamp(2.3rem, 1.15rem + 4.3vw, 5.8rem);
	font-weight: 300;
	font-stretch: 116%;
	line-height: 0.98;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.lede {
	margin: 0;
	max-width: 40ch;
	font-size: clamp(1.06rem, 0.96rem + 0.4vw, 1.28rem);
	line-height: 1.55;
	text-wrap: pretty;
}

/* Split text (js/core.js): words masked for reveals, chars for the hero. */
.split .w {
	display: inline-block;
	overflow: hidden;
	vertical-align: top;
	padding-bottom: 0.1em;
	margin-bottom: -0.1em;
}

.split .wi,
.split .c {
	display: inline-block;
}

.split-plain .w {
	display: inline;
}

/* ─── Buttons & links ────────────────────────────────────────────────────── */

.btn {
	--b-fg: var(--ink);
	--b-on: var(--lime);
	position: relative;
	isolation: isolate;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.8rem;
	min-height: 52px;
	padding: 0 1.5rem;
	overflow: hidden;
	border: 1px solid var(--b-fg);
	border-radius: 0;
	background: transparent;
	color: var(--b-fg);
	font-family: var(--f-sans);
	font-size: 0.95rem;
	font-stretch: 112%;
	font-weight: 500;
	line-height: 1;
	letter-spacing: 0.01em;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color 0.5s var(--ease);
}

/* Liquid fill: rises from the bottom with a curved top that flattens. */
.btn::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	background: var(--b-fg);
	border-radius: 50% 50% 0 0 / 100% 100% 0 0;
	transform: translateY(102%);
	transition: transform 0.65s var(--ease), border-radius 0.65s var(--ease);
}

.btn:hover,
.btn:focus-visible {
	color: var(--b-on);
}

.btn:hover::before,
.btn:focus-visible::before {
	transform: translateY(0);
	border-radius: 0;
}

.btn .icon-arrow {
	transition: transform 0.5s var(--ease);
}

.btn:hover .icon-arrow {
	transform: translateX(4px);
}

.btn[disabled] {
	opacity: 0.6;
	cursor: progress;
}

.btn-light {
	--b-fg: var(--moon);
	--b-on: var(--night);
}

.btn-dark {
	--b-fg: var(--ink);
	--b-on: var(--lime);
}

.link-arrow {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	color: var(--fg);
	font-weight: 500;
	font-stretch: 110%;
	text-decoration: none;
}

.link-arrow::after {
	content: "";
	position: absolute;
	left: 0;
	right: 1.8rem;
	bottom: 0.55rem;
	height: 1px;
	background: currentColor;
	transform-origin: right;
	transition: transform 0.5s var(--ease);
}

.link-arrow:hover::after {
	transform: scaleX(0);
}

.link-arrow .icon-arrow {
	transition: transform 0.5s var(--ease);
}

.link-arrow:hover .icon-arrow {
	transform: translateX(6px);
}

.icon-arrow {
	flex: none;
	width: 18px;
	height: 18px;
}

.icon-sun {
	flex: none;
	width: 0.9em;
	height: 0.54em;
	color: var(--accent);
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
	--hdr-bg: rgba(238, 232, 223, 0.82);
	--sun: var(--resin);
	position: fixed;
	inset: 0 0 auto;
	z-index: 60;
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	height: var(--hdr-h);
	padding-inline: var(--gutter);
	color: var(--ink);
	transition: transform 0.6s var(--ease), color 0.5s var(--ease);
}

.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--hdr-bg);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid rgba(127, 127, 127, 0.14);
	opacity: 0;
	transition: opacity 0.5s var(--ease);
}

.site-header.is-dark {
	--hdr-bg: rgba(18, 24, 22, 0.72);
	--sun: var(--resin-light);
	--focus: var(--resin-light);
	color: var(--moon);
}

.site-header.is-scrolled::before {
	opacity: 1;
}

.site-header.is-hidden {
	transform: translateY(-100%);
}

.admin-bar .site-header {
	top: 32px;
}

@media (max-width: 782px) {
	.admin-bar .site-header {
		top: 46px;
	}
}

.brand {
	justify-self: start;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	color: inherit;
}

.logo-svg {
	display: block;
	width: clamp(128px, 11vw, 172px);
	height: auto;
}

.brand-img {
	max-height: 34px;
	width: auto;
}

.sunclock {
	justify-self: center;
	display: flex;
	align-items: center;
	gap: 0.65rem;
}

.sunclock-arc {
	width: 46px;
	height: 26px;
	overflow: visible;
}

.sunclock-path,
.sunclock-horizon {
	fill: none;
	stroke: currentColor;
	stroke-width: 1.2;
	opacity: 0.45;
}

.sunclock-horizon {
	opacity: 0.3;
}

.sunclock-sun {
	transform-box: view-box;
	transform-origin: 32px 32px;
}

.sunclock-sun circle {
	fill: var(--sun);
	transition: fill 0.6s;
}

.sunclock-time {
	min-width: 5ch;
	font-size: 0.72rem;
	font-variant-numeric: tabular-nums;
}

.sunclock-label {
	min-width: 12ch;
	font-size: 0.62rem;
	opacity: 0.7;
}

.header-actions {
	justify-self: end;
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.header-cta {
	min-height: 42px;
	padding: 0 1.1rem;
	font-size: 0.85rem;
	--b-fg: var(--ink);
	--b-on: var(--lime);
}

.is-dark .header-cta {
	--b-fg: var(--moon);
	--b-on: var(--night);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
	min-height: 44px;
	padding: 0 0.25rem;
	border: 0;
	background: none;
	color: inherit;
	font-family: var(--f-mono);
	font-size: 0.7rem;
	font-stretch: 87.5%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	cursor: pointer;
}

.menu-toggle-icon {
	display: grid;
	gap: 6px;
	width: 24px;
}

.menu-toggle-icon i {
	display: block;
	height: 1px;
	background: currentColor;
	transition: transform 0.5s var(--ease);
}

.menu-toggle-icon i:last-child {
	width: 70%;
	justify-self: end;
}

.menu-open .menu-toggle-icon i:first-child {
	transform: translateY(3.5px) rotate(35deg);
}

.menu-open .menu-toggle-icon i:last-child {
	width: 100%;
	transform: translateY(-3.5px) rotate(-35deg);
}

.menu-open .site-header {
	color: var(--moon);
	--sun: var(--resin-light);
	transform: none;
}

.menu-open .site-header::before {
	opacity: 0;
}

/* ─── Menu ───────────────────────────────────────────────────────────────── */

.menu {
	position: fixed;
	inset: 0;
	z-index: 55;
	overflow-y: auto;
	overscroll-behavior: contain;
	background: var(--night);
	color: var(--moon);
	--focus: var(--resin-light);
	clip-path: inset(0 0 100% 0);
	transition: clip-path 0.9s var(--ease-in-out);
}

.menu[hidden] {
	display: none;
}

.menu.is-open {
	clip-path: inset(0 0 0 0);
}

.menu-inner {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
	gap: 4vw;
	align-items: center;
	min-height: 100%;
	padding: calc(var(--hdr-h) + 3vh) var(--gutter) 5vh;
}

.menu-nav ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.menu-nav li {
	opacity: 0;
	transform: translateY(28px);
	transition: opacity 0.6s var(--ease), transform 0.8s var(--ease);
}

.menu.is-open .menu-nav li {
	opacity: 1;
	transform: none;
}

.menu.is-open .menu-nav li:nth-child(1) { transition-delay: 0.22s; }
.menu.is-open .menu-nav li:nth-child(2) { transition-delay: 0.26s; }
.menu.is-open .menu-nav li:nth-child(3) { transition-delay: 0.30s; }
.menu.is-open .menu-nav li:nth-child(4) { transition-delay: 0.34s; }
.menu.is-open .menu-nav li:nth-child(5) { transition-delay: 0.38s; }
.menu.is-open .menu-nav li:nth-child(6) { transition-delay: 0.42s; }
.menu.is-open .menu-nav li:nth-child(7) { transition-delay: 0.46s; }
.menu.is-open .menu-nav li:nth-child(8) { transition-delay: 0.50s; }

.menu-nav a {
	display: grid;
	grid-template-columns: 5.2rem minmax(0, 1fr);
	align-items: baseline;
	padding: 0.32em 0;
	border-bottom: 1px solid rgba(236, 229, 216, 0.12);
	color: inherit;
	font-size: clamp(1.6rem, min(0.9rem + 3vw, 6.4vh), 4rem);
	font-stretch: 120%;
	font-weight: 250;
	line-height: 1.05;
	letter-spacing: -0.02em;
	text-decoration: none;
}

.menu-hour {
	color: var(--resin-light);
	font-size: 0.68rem;
	letter-spacing: 0.08em;
}

.menu-title {
	display: inline-block;
	transition: transform 0.6s var(--ease), color 0.3s;
}

.menu-nav a:hover .menu-title,
.menu-nav a:focus-visible .menu-title {
	transform: translateX(0.35em);
	color: var(--resin-light);
}

.menu-aside {
	display: grid;
	gap: 2rem;
	opacity: 0;
	transition: opacity 0.8s var(--ease) 0.4s;
}

.menu.is-open .menu-aside {
	opacity: 1;
}

.menu-preview {
	aspect-ratio: 3 / 4;
	max-height: 58vh;
	overflow: hidden;
	background: var(--night-2);
}

.menu-preview img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s;
}

.menu-preview img.is-swapping {
	opacity: 0;
}

.menu-contact p {
	margin: 0 0 0.35rem;
	color: rgba(236, 229, 216, 0.72);
}

.menu-contact a {
	color: var(--moon);
}

/* ─── Hero · dawn ────────────────────────────────────────────────────────── */

.hero {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 540px;
	overflow: hidden;
}

.hero-stage {
	position: absolute;
	inset: 0;
}

.hero-media,
.hero-front {
	position: absolute;
	inset: 0;
}

.hero-front {
	z-index: 2;
	pointer-events: none;
}

.hero-bg,
.hero-fg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 30% 58%;
}

/* Sunrise warmth: grows as the hero scrolls. */
.hero-warm {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 55% at 62% 62%, rgba(255, 178, 122, 0.55), rgba(255, 178, 122, 0) 70%),
		linear-gradient(180deg, rgba(196, 126, 104, 0.12), rgba(196, 126, 104, 0));
	opacity: 0;
}

.hero-title {
	margin: 0;
	font: inherit;
}

/* The wordmark sits behind the cut-out of the mountain and the sea. */
.hero-word {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 44.5%;
	z-index: 1;
	color: #f7efe7;
	font-size: clamp(4rem, 17.5vw, 22rem);
	font-stretch: 125%;
	font-weight: 200;
	line-height: 0.78;
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
	transform-origin: 50% 100%;
}

.hero-line {
	position: absolute;
	left: var(--gutter);
	bottom: clamp(8.5rem, 19vh, 12rem);
	z-index: 3;
	display: block;
	max-width: min(28ch, 78vw);
	font-size: clamp(1.3rem, 0.9rem + 1.3vw, 2.1rem);
	font-stretch: 108%;
	font-weight: 300;
	line-height: 1.16;
	letter-spacing: -0.01em;
	text-wrap: balance;
}

.hero-coords {
	position: absolute;
	top: 50%;
	right: calc(var(--gutter) * 0.6);
	z-index: 3;
	margin: 0;
	color: rgba(236, 229, 216, 0.78);
	font-family: var(--f-mono);
	font-size: 0.62rem;
	font-stretch: 87.5%;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	writing-mode: vertical-rl;
	transform: translateY(-50%) rotate(180deg);
}

.hero-meta {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: clamp(1.25rem, 4vh, 2.5rem);
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
}

.hero-sunrise {
	display: flex;
	align-items: baseline;
	gap: 1rem;
	max-width: 36ch;
	margin: 0;
	color: rgba(236, 229, 216, 0.86);
	font-size: 0.92rem;
	line-height: 1.45;
}

.hero-sunrise .mono {
	color: var(--resin-light);
}

.hero-actions {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.hero-scroll {
	white-space: nowrap;
	display: inline-flex;
	align-items: center;
	gap: 0.8rem;
	min-height: 44px;
	text-decoration: none;
}

.hero-scroll-line {
	position: relative;
	width: 1px;
	height: 44px;
	overflow: hidden;
	background: rgba(236, 229, 216, 0.3);
}

.hero-scroll-line::after {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--moon);
	transform-origin: top;
	animation: drip 2.6s var(--ease-in-out) infinite;
}

@keyframes drip {
	0% { transform: scaleY(0); transform-origin: top; }
	45% { transform: scaleY(1); transform-origin: top; }
	55% { transform: scaleY(1); transform-origin: bottom; }
	100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Entrance, in CSS so the first screen never waits for JavaScript: the
   photo settles, the letters rise from behind the mountain like the sun,
   then the details arrive. Fill "backwards" hands the final state back to
   normal styles, so the scroll scene can take over. */
.hero-chars {
	display: inline-block;
}

.hero-chars .c {
	display: inline-block;
	animation: sunrise 1.9s var(--ease) backwards;
	animation-delay: calc(0.25s + var(--i, 0) * 0.07s);
}

.hero-bg,
.hero-fg {
	animation: settle 2.8s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-meta > *,
.hero-coords {
	animation: arrive 1s var(--ease) 1s backwards;
}

.hero-meta > :last-child {
	animation-delay: 1.12s;
}

@keyframes sunrise {
	from { transform: translateY(125%); }
}

@keyframes settle {
	from { transform: scale(1.14); }
}

@keyframes arrive {
	from { opacity: 0; transform: translateY(16px); }
}

.hero-coords {
	animation-name: arrive-vertical;
}

@keyframes arrive-vertical-top {
	from { opacity: 0; transform: rotate(180deg) translateX(-16px); }
}

@keyframes arrive-vertical {
	from { opacity: 0; transform: translateY(-50%) rotate(180deg) translateX(-16px); }
}

/* ─── 07:00 · Intro ──────────────────────────────────────────────────────── */

.intro {
	padding-bottom: 0;
}

.intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
	gap: 2rem;
}

.sec-label-vertical {
	position: sticky;
	top: 30vh;
	align-self: start;
	writing-mode: vertical-rl;
	transform: rotate(180deg);
}

.kicker-title {
	margin: 0 0 2rem;
	color: var(--accent);
	font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.2rem);
	font-stretch: 112%;
	font-weight: 500;
	letter-spacing: 0.01em;
}

.statement {
	margin: 0;
	font-size: clamp(1.65rem, 0.95rem + 2.9vw, 4rem);
	font-stretch: 106%;
	font-weight: 300;
	line-height: 1.16;
	letter-spacing: -0.022em;
	text-wrap: pretty;
}

.inline-fig {
	display: inline-block;
	width: 2.2em;
	height: 0.9em;
	margin: 0 0.1em;
	overflow: hidden;
	vertical-align: -0.06em;
	border-radius: 1em 1em 0 0;
}

.inline-fig img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.facts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 2rem;
	margin: clamp(4rem, 8vw, 7rem) 0 0;
	padding-top: 2rem;
	border-top: 1px solid var(--line);
}

.fact-num {
	font-size: clamp(3rem, 1.9rem + 4vw, 6rem);
	font-stretch: 125%;
	font-weight: 200;
	line-height: 0.9;
	letter-spacing: -0.03em;
	font-variant-numeric: tabular-nums;
}

.fact dd {
	max-width: 24ch;
	margin: 0.9rem 0 0;
	color: var(--muted);
}

.marquee {
	margin-top: clamp(5rem, 10vw, 9rem);
	padding-block: clamp(0.8rem, 1.6vw, 1.4rem);
	overflow: hidden;
	border-block: 1px solid var(--line);
}

.marquee-track {
	display: flex;
	width: max-content;
	animation: marquee 48s linear infinite;
}

.js-marquee .marquee-track {
	animation: none;
}

.marquee-item {
	display: flex;
	align-items: center;
	gap: 0.35em;
	padding-right: 0.35em;
	font-size: clamp(2.6rem, 1.4rem + 5vw, 7.5rem);
	font-stretch: 125%;
	font-weight: 200;
	line-height: 1.02;
	letter-spacing: -0.015em;
	text-transform: uppercase;
	white-space: nowrap;
}

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

/* ─── 09:00 · Architecture ───────────────────────────────────────────────── */

.arch-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 var(--col-gap);
	align-items: start;
}

.arch-media {
	position: relative;
	grid-column: 1 / span 7;
	padding-bottom: 14%;
}

.arch-main {
	aspect-ratio: 4 / 5;
	overflow: hidden;
}

.arch-main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 64% 50%;
}

.arch-inset {
	position: absolute;
	right: -14%;
	bottom: 0;
	width: 42%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	border: clamp(6px, 0.8vw, 12px) solid var(--lime);
}

.arch-inset img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.arch-caption {
	position: absolute;
	left: 0;
	bottom: 0;
	max-width: 28ch;
	margin: 0;
	color: var(--muted);
	font-size: 0.62rem;
}

.arch-copy {
	grid-column: 9 / span 4;
	padding-top: 6vh;
}

.materials {
	margin: 3rem 0 0;
	padding: 0;
	list-style: none;
}

.material {
	position: relative;
	display: grid;
	grid-template-columns: 3rem minmax(0, 1fr);
	gap: 1rem;
	padding: 1.5rem 0;
}

.material::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: var(--line);
	transform-origin: left;
	transform: scaleX(var(--line-x, 1));
}

.material-num {
	padding-top: 0.45rem;
	color: var(--accent);
}

.material h3 {
	margin: 0 0 0.4rem;
	font-size: 1.4rem;
	font-stretch: 115%;
	font-weight: 400;
	line-height: 1.2;
}

.material p {
	margin: 0;
	color: var(--muted);
}

/* ─── 11:00 · Rooms ──────────────────────────────────────────────────────── */

.rooms {
	padding-block: clamp(6rem, 10vw, 10rem) clamp(4rem, 8vw, 8rem);
}

.rooms-pin {
	position: relative;
}

/* Default (touch, small screens, no JS): a native swipe carousel. */
.rooms-track {
	display: flex;
	gap: 1.25rem;
	padding: 0 var(--gutter) 1.5rem;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: var(--gutter);
	scrollbar-width: thin;
	scrollbar-color: var(--line) transparent;
}

.rooms-intro {
	flex: 0 0 auto;
	width: min(84vw, 30rem);
	padding-right: 1rem;
	scroll-snap-align: start;
}

.rooms-hint {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	margin: 2rem 0 0;
	color: var(--muted);
}

.room {
	flex: 0 0 auto;
	display: grid;
	align-content: start;
	gap: 1.25rem;
	width: min(84vw, 26rem);
	scroll-snap-align: start;
}

.room-media {
	aspect-ratio: 4 / 5;
	overflow: hidden;
	transform-style: preserve-3d;
}

.room-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.12);
}

.room-num {
	display: block;
	color: var(--accent);
	font-family: var(--f-mono);
	font-size: 0.7rem;
	letter-spacing: 0.1em;
}

.room-name {
	margin: 0.5rem 0 0.45rem;
	font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.7rem);
	font-stretch: 118%;
	font-weight: 300;
	line-height: 1;
	letter-spacing: -0.02em;
}

.room-specs {
	margin: 0 0 1rem;
	color: var(--muted);
	font-size: 0.64rem;
}

.room-desc {
	max-width: 40ch;
	margin: 0 0 1rem;
}

.rooms-progress {
	display: none;
}

/* Desktop: the section pins and the track walks sideways (js/scenes.js). */
.rooms.is-pinned {
	padding-block: 0;
}

.is-pinned .rooms-pin {
	display: flex;
	align-items: center;
	height: 100vh;
	overflow: hidden;
}

.is-pinned .rooms-track {
	align-items: center;
	gap: clamp(3rem, 6vw, 7rem);
	width: max-content;
	padding: var(--hdr-h) var(--gutter) 0;
	overflow: visible;
	scroll-snap-type: none;
	will-change: transform;
}

.is-pinned .rooms-intro {
	width: clamp(22rem, 30vw, 32rem);
}

.is-pinned .room {
	grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
	align-items: end;
	gap: clamp(1.5rem, 3vw, 3rem);
	width: clamp(34rem, 54vw, 58rem);
}

.is-pinned .room:nth-of-type(even) {
	align-items: start;
	margin-top: 12vh;
}

.is-pinned .room-media {
	max-height: 70vh;
}

.is-pinned .rooms-progress {
	position: absolute;
	left: var(--gutter);
	right: var(--gutter);
	bottom: 5vh;
	display: block;
	height: 1px;
	background: var(--line);
}

.rooms-progress span {
	display: block;
	height: 100%;
	background: var(--fg);
	transform: scaleX(0);
	transform-origin: left;
}

/* ─── 13:00 · The day ────────────────────────────────────────────────────── */

.days-head {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 var(--col-gap);
	margin-bottom: clamp(3rem, 6vw, 5rem);
}

.days-head .sec-label {
	grid-column: 1 / -1;
}

.days-head .h-display {
	grid-column: 1 / span 7;
}

.days-head .lede {
	grid-column: 9 / span 4;
	align-self: end;
	margin-bottom: 0.6em;
}

.days-list {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--line);
}

.day {
	position: relative;
	display: grid;
	grid-template-columns: 7rem minmax(0, 1fr) minmax(8rem, auto) 7rem;
	grid-template-areas: "hour title place img";
	align-items: center;
	gap: 1.5rem;
	padding: clamp(1rem, 1.8vw, 1.6rem) 0;
	border-top: 1px solid var(--line);
}

.day-hour {
	grid-area: hour;
	color: var(--accent);
	font-size: 0.78rem;
	font-variant-numeric: tabular-nums;
}

.day-title {
	grid-area: title;
	margin: 0;
	font-size: clamp(1.45rem, 0.85rem + 2.5vw, 3.5rem);
	font-stretch: 116%;
	font-weight: 300;
	line-height: 1.04;
	letter-spacing: -0.02em;
	transition: transform 0.7s var(--ease), color 0.4s;
}

.day-place {
	grid-area: place;
	color: var(--muted);
	font-size: 0.64rem;
	text-align: right;
}

.day-img {
	grid-area: img;
	display: block;
	aspect-ratio: 1;
	overflow: hidden;
}

.day-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mouse: images follow the cursor instead of sitting in the rows. */
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
	.day {
		grid-template-columns: 7rem minmax(0, 1fr) minmax(10rem, auto);
		grid-template-areas: "hour title place";
	}

	.day-img {
		display: none;
	}

	.day:hover .day-title {
		transform: translateX(1.4rem);
		color: var(--accent);
	}
}

.days-float {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 40;
	width: clamp(15rem, 21vw, 23rem);
	aspect-ratio: 4 / 5;
	overflow: hidden;
	pointer-events: none;
	clip-path: inset(50% 50% 50% 50%);
	transition: clip-path 0.7s var(--ease);
}

.days-float.is-on {
	clip-path: inset(0 0 0 0);
}

.days-float img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform: scale(1.15);
	transition: transform 1.2s var(--ease);
}

.days-float.is-on img {
	transform: scale(1);
}

/* ─── 16:00 · Lithos ─────────────────────────────────────────────────────── */

.lithos {
	padding-top: 0;
}

.lithos-stage {
	position: relative;
	height: 100vh;
	height: 100svh;
	min-height: 560px;
	overflow: hidden;
}

.lithos-word {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5%;
	z-index: 0;
	margin: 0;
	font-size: clamp(4rem, 17vw, 22rem);
	font-stretch: 125%;
	font-weight: 200;
	line-height: 0.8;
	letter-spacing: -0.01em;
	text-align: center;
	text-transform: uppercase;
	white-space: nowrap;
}

.lithos-figure {
	position: absolute;
	inset: 0;
	z-index: 1;
	clip-path: inset(9% 33% 0% 33% round 40vw 40vw 0vw 0vw);
}

.lithos-figure img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: 50% 40%;
}

.lithos-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 var(--col-gap);
	padding-top: clamp(4rem, 8vw, 7rem);
}

.lithos-copy {
	grid-column: 1 / span 6;
}

.treatments {
	grid-column: 8 / span 5;
	align-self: end;
	margin: 0;
	padding: 0;
	list-style: none;
}

.treatments li {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 1rem;
	padding: 1.1rem 0;
	border-top: 1px solid var(--line);
	font-size: 1.15rem;
	font-stretch: 108%;
}

.treatments li .mono {
	flex: none;
	color: var(--muted);
	font-size: 0.64rem;
}

/* ─── 19:30 · Pefko ──────────────────────────────────────────────────────── */

/* Dusk falls over the top of the section, from the afternoon sand. */
.table {
	background: linear-gradient(180deg, var(--tone-sand) 0, var(--tone-dusk) calc(var(--sec-pad) * 0.55), var(--tone-dusk));
}

.table-head .h-display {
	max-width: 15ch;
}

.table-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 0 var(--col-gap);
	margin-top: clamp(2rem, 5vw, 4rem);
}

.table-media {
	position: sticky;
	top: calc(var(--hdr-h) + 5vh);
	grid-column: 1 / span 6;
	align-self: start;
	height: calc(100vh - var(--hdr-h) - 12vh);
	overflow: hidden;
}

.table-fig {
	position: absolute;
	inset: 0;
	overflow: hidden;
	clip-path: inset(100% 0 0 0);
}

.table-fig.is-active,
.table-fig:first-child {
	clip-path: inset(0 0 0 0);
}

.table-fig img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.table-chapters {
	grid-column: 8 / span 5;
}

.chapter {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 72vh;
	padding: 4vh 0;
}

.chapter-num {
	margin: 0;
	color: var(--accent);
}

.chapter h3 {
	margin: 0.6rem 0 1rem;
	font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
	font-stretch: 118%;
	font-weight: 300;
	line-height: 1.02;
	letter-spacing: -0.02em;
}

.chapter p {
	max-width: 42ch;
	margin: 0;
	color: var(--muted);
	font-size: 1.08rem;
}

/* ─── 21:00 · Sithonia ───────────────────────────────────────────────────── */

.place {
	background: linear-gradient(180deg, var(--tone-dusk) 0, var(--tone-night) calc(var(--sec-pad) * 0.55), var(--tone-night));
}

.place-grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem var(--col-gap);
	align-items: center;
}

.place-copy {
	grid-column: 1 / span 5;
}

.place-map {
	grid-column: 6 / span 7;
}

.place-copy .h-display {
	font-size: clamp(2.3rem, 1rem + 3.4vw, 4.8rem);
}

.places {
	margin: 2.5rem 0 1rem;
	padding: 0;
	list-style: none;
}

.places li {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.85rem 0;
	border-top: 1px solid var(--line);
}

.places li .mono {
	color: var(--accent);
}

.place-note {
	margin: 0;
	color: var(--muted);
	font-size: 0.6rem;
}

.map-svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
}

.map-land {
	fill: rgba(236, 229, 216, 0.06);
	stroke: rgba(236, 229, 216, 0.4);
	stroke-width: 1;
	vector-effect: non-scaling-stroke;
}

.map-route {
	fill: none;
	stroke: var(--resin-light);
	stroke-width: 2;
	stroke-linecap: round;
}

.map-sightline {
	fill: none;
	stroke: rgba(236, 229, 216, 0.4);
	stroke-dasharray: 2 6;
	vector-effect: non-scaling-stroke;
}

.map-places circle {
	fill: var(--moon);
}

.map-svg text {
	fill: var(--moon);
	font-family: var(--f-mono);
	font-size: 11px;
	font-stretch: 87.5%;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.map-home text {
	fill: var(--resin-light);
	font-size: 15px;
}

.map-home circle:not(.map-pulse) {
	fill: var(--resin-light);
}

.map-pulse {
	fill: none !important;
	stroke: var(--resin-light);
	transform-box: fill-box;
	transform-origin: center;
	animation: pulse 2.8s var(--ease) infinite;
}

@keyframes pulse {
	from { transform: scale(0.6); opacity: 1; }
	to { transform: scale(2.6); opacity: 0; }
}

.map-athos path {
	fill: var(--moon);
}

.map-north path {
	fill: none;
	stroke: rgba(236, 229, 216, 0.6);
	stroke-width: 1.4;
	vector-effect: non-scaling-stroke;
}

.map-svg .map-out {
	fill: rgba(236, 229, 216, 0.6);
}

.place-map figcaption {
	margin-top: 1rem;
	color: var(--muted);
	font-size: 0.6rem;
}

/* ─── 22:40 · Request ────────────────────────────────────────────────────── */

.stay {
	padding-bottom: clamp(9rem, 14vw, 14rem);
	overflow: clip;
}

.stay-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: 2rem var(--col-gap);
	align-items: start;
}

.stay-copy {
	position: sticky;
	top: calc(var(--hdr-h) + 6vh);
	grid-column: 1 / span 5;
}

.stay-panel {
	grid-column: 7 / span 6;
}

.stay-notes {
	display: grid;
	gap: 0.7rem;
	margin: 2.5rem 0 0;
	padding: 0;
	list-style: none;
	color: var(--muted);
	font-size: 0.64rem;
}

.stay-notes li::before {
	content: "";
	display: inline-block;
	width: 0.9rem;
	height: 1px;
	margin-right: 0.7rem;
	vertical-align: middle;
	background: var(--accent);
}

.stay::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: var(--line);
}

/* Booking panel */
.booking {
	position: relative;
	padding: clamp(1.5rem, 3vw, 3rem);
	border: 1px solid var(--line);
	background: var(--night-2);
}

.booking-steps {
	display: none;
	gap: 1.5rem;
	margin-bottom: 2rem;
	color: var(--muted);
	font-size: 0.6rem;
}

.is-stepped .booking-steps {
	display: flex;
}

.booking-steps .is-current {
	color: var(--moon);
}

.booking-steps span {
	position: relative;
	padding-bottom: 0.6rem;
}

.booking-steps span::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.7s var(--ease);
}

.booking-steps .is-current::after {
	transform: scaleX(1);
}

.booking fieldset {
	min-width: 0;
	margin: 0;
	padding: 0;
	border: 0;
}

.booking-step + .booking-step {
	margin-top: 2.5rem;
}

.is-stepped .booking-step + .booking-step {
	margin-top: 0;
}

.is-stepped [data-step="2"],
.is-stepped.on-step-2 [data-step="1"] {
	display: none;
}

.is-stepped.on-step-2 [data-step="2"] {
	display: block;
}

.booking-legend {
	margin-bottom: 1.6rem;
	padding: 0;
	font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem);
	font-stretch: 116%;
	font-weight: 300;
	letter-spacing: -0.015em;
	outline: none;
}

.field-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1.25rem 1.5rem;
	margin-bottom: 1.4rem;
}

.field {
	min-width: 0;
}

.field label,
.rooms-pick legend {
	display: block;
	margin-bottom: 0.5rem;
	padding: 0;
	color: var(--muted);
	font-family: var(--f-mono);
	font-size: 0.6rem;
	font-stretch: 87.5%;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.field input[type="date"],
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.55rem 0 0.6rem;
	border: 0;
	border-bottom: 1px solid rgba(236, 229, 216, 0.36);
	border-radius: 0;
	background: transparent;
	color: var(--moon);
	font-size: 1.1rem;
	line-height: 1.3;
	color-scheme: dark;
	transition: border-color 0.3s, box-shadow 0.3s;
}

.field textarea {
	resize: vertical;
	min-height: 5.5rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
	outline: none;
	border-bottom-color: var(--resin-light);
	box-shadow: 0 1px 0 0 var(--resin-light);
}

.field.is-invalid input,
.field.is-invalid textarea {
	border-bottom-color: var(--error);
}

.field-error {
	margin: 0.45rem 0 0;
	color: var(--error);
	font-size: 0.84rem;
	line-height: 1.4;
}

.field-error:empty {
	display: none;
}

.nights {
	grid-column: 1 / -1;
	min-height: 1.2em;
	margin: -0.3rem 0 0;
	color: var(--resin-light);
	font-size: 0.64rem;
}

.counter-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	border-bottom: 1px solid rgba(236, 229, 216, 0.36);
}

.counter-btn {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	margin-bottom: 4px;
	border: 1px solid rgba(236, 229, 216, 0.24);
	background: transparent;
	color: var(--moon);
	font-size: 1.15rem;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.counter-btn:hover {
	background: var(--moon);
	color: var(--night);
	border-color: var(--moon);
}

.counter-btn:disabled {
	opacity: 0.3;
	cursor: default;
	background: transparent;
	color: var(--moon);
}

.counter-box input {
	width: 3.2rem;
	min-height: 48px;
	border: 0;
	background: transparent;
	color: var(--moon);
	font-size: 1.35rem;
	font-weight: 300;
	font-stretch: 112%;
	text-align: center;
	-moz-appearance: textfield;
	appearance: textfield;
}

.counter-box input::-webkit-outer-spin-button,
.counter-box input::-webkit-inner-spin-button {
	margin: 0;
	-webkit-appearance: none;
}

.counter-box input:focus-visible {
	outline: 2px solid var(--resin-light);
	outline-offset: -2px;
}

.rooms-pick {
	margin-bottom: 0.5rem !important;
}

.room-options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
	gap: 0.6rem;
}

.rooms-pick .room-option {
	margin: 0;
	color: var(--moon);
	font-family: var(--f-sans);
	font-size: 1rem;
	font-stretch: 100%;
	letter-spacing: 0;
	text-transform: none;
}

.room-option {
	position: relative;
	display: grid;
	gap: 0.3rem;
	padding: 0.85rem 1rem;
	border: 1px solid rgba(236, 229, 216, 0.22);
	cursor: pointer;
	transition: border-color 0.3s, background-color 0.4s var(--ease), color 0.4s;
}

.room-option input {
	position: absolute;
	opacity: 0;
	inset: 0;
	margin: 0;
	cursor: pointer;
}

.room-option:hover {
	border-color: rgba(236, 229, 216, 0.6);
}

.room-option:has(input:checked) {
	border-color: var(--moon);
	background: var(--moon);
	color: var(--night);
}

.room-option:has(input:focus-visible) {
	outline: 2px solid var(--resin-light);
	outline-offset: 2px;
}

.room-option-name {
	font-size: 1rem;
	font-stretch: 108%;
	line-height: 1.2;
}

.room-option-meta {
	color: var(--muted);
	font-family: var(--f-mono);
	font-size: 0.56rem;
	font-stretch: 87.5%;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.room-option:has(input:checked) .room-option-meta {
	color: rgba(18, 24, 22, 0.72);
}

.field-check {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.4rem 0.8rem;
	align-items: start;
	margin: 1.6rem 0 0;
}

.field-check input {
	width: 20px;
	height: 20px;
	margin: 0.15rem 0 0;
	accent-color: var(--resin-light);
}

.field-check label {
	margin: 0;
	color: var(--moon);
	font-family: var(--f-sans);
	font-size: 0.95rem;
	font-stretch: 100%;
	letter-spacing: 0;
	text-transform: none;
}

.field-check .field-error {
	grid-column: 2;
}

.hp-field {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.booking-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-top: 2rem;
}

[data-step="1"] .booking-actions {
	justify-content: flex-end;
}

.btn-text {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 44px;
	padding: 0;
	border: 0;
	background: none;
	color: var(--muted);
	font-weight: 500;
	cursor: pointer;
}

.btn-text .icon-arrow {
	transform: rotate(180deg);
}

.btn-text:hover {
	color: var(--moon);
}

.booking-small {
	margin: 1.2rem 0 0;
	color: var(--muted);
	font-size: 0.82rem;
}

.booking-status {
	margin: 1rem 0 0;
	font-size: 0.95rem;
}

.booking-status:empty {
	display: none;
}

.booking-status.is-error,
.booking-alert {
	color: var(--error);
}

.booking-done {
	outline: none;
}

.booking-done .mono {
	margin: 0 0 1rem;
	color: var(--resin-light);
}

.booking-done h3 {
	margin: 0 0 1rem;
	font-size: clamp(1.8rem, 1.2rem + 2vw, 2.8rem);
	font-stretch: 116%;
	line-height: 1.05;
	letter-spacing: -0.02em;
}

.booking-done p {
	max-width: 44ch;
	color: var(--muted);
}

.booking-done dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.5rem 1.5rem;
	margin: 1.75rem 0 0;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
}

.booking-done dt {
	color: var(--muted);
	font-family: var(--f-mono);
	font-size: 0.6rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	padding-top: 0.25rem;
}

.booking-done dd {
	margin: 0;
}

.booking-done + .booking-form {
	display: none;
}

/* ─── Mobile request bar ─────────────────────────────────────────────────── */

.dock-cta {
	display: none;
}

@media (max-width: 767px) {
	.dock-cta {
		position: fixed;
		left: 16px;
		right: 16px;
		bottom: max(12px, env(safe-area-inset-bottom));
		z-index: 45;
		display: flex;
		align-items: center;
		justify-content: space-between;
		min-height: 54px;
		padding: 0 1.25rem;
		border: 1px solid rgba(236, 229, 216, 0.28);
		background: var(--ink);
		color: var(--lime);
		font-size: 1rem;
		font-stretch: 110%;
		font-weight: 500;
		text-decoration: none;
		transform: translateY(170%);
		transition: transform 0.6s var(--ease);
		--focus: var(--resin-light);
	}

	.dock-cta.is-visible {
		transform: none;
	}
}

/* ─── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
	position: relative;
	padding: clamp(5rem, 10vw, 9rem) 0 2rem;
	background: var(--night);
}

.footer-top .btn {
	flex: none;
}

.footer-top {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 2rem;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	border-bottom: 1px solid var(--line);
}

.footer-line {
	max-width: 17ch;
	margin: 0;
	font-size: clamp(1.9rem, 1rem + 3.3vw, 4.5rem);
	font-stretch: 118%;
	font-weight: 250;
	line-height: 1.02;
	letter-spacing: -0.025em;
	text-wrap: balance;
}

.footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 2.5rem 2rem;
	padding: 3rem 0;
}

.footer-logo {
	display: block;
	color: var(--moon);
}

.footer-logo .logo-svg {
	width: 200px;
}

.footer-col address {
	margin-top: 1.25rem;
	color: var(--muted);
	font-style: normal;
}

.footer-title {
	margin: 0 0 1rem;
	color: var(--accent);
	font-family: var(--f-mono);
	font-size: 0.6rem;
	font-stretch: 87.5%;
	font-weight: 400;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.footer-col p {
	margin: 0 0 0.45rem;
}

.footer-col p:not(:has(a)) {
	color: var(--muted);
}

.footer-col a,
.credit a {
	color: var(--moon);
	text-decoration: none;
	background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
	transition: background-size 0.5s var(--ease);
}

.footer-col a:hover,
.credit a:hover,
.footer-col a:focus-visible,
.credit a:focus-visible {
	background-size: 100% 1px;
}

.footer-nav {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-bottom {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto auto;
	align-items: center;
	gap: 1rem 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.84rem;
}

.footer-bottom p {
	margin: 0;
}

.credit {
	color: var(--muted);
}

/* ─── Plain pages (404, privacy) ─────────────────────────────────────────── */

.page-plain {
	min-height: 70vh;
	padding: calc(var(--hdr-h) + 10vh) 0 10vh;
}

.page-content {
	max-width: 72ch;
}

.page-content a {
	color: var(--accent);
}

/* ─── Cursor (fine pointers only, created by js/core.js) ─────────────────── */

.cursor {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 120;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s;
}

.cursor.is-on {
	opacity: 1;
}

.cursor-ring {
	position: absolute;
	top: -20px;
	left: -20px;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
}

.cursor-ring::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 1px solid #fff;
	border-radius: 50%;
	mix-blend-mode: difference;
	transition: transform 0.5s var(--ease), background-color 0.4s, border-color 0.4s;
}

.cursor.is-link .cursor-ring::before {
	transform: scale(0.45);
	background: #fff;
}

.cursor.has-label .cursor-ring::before {
	transform: scale(2.1);
	background: var(--resin-light);
	border-color: transparent;
	mix-blend-mode: normal;
}

.cursor-label {
	position: relative;
	color: var(--night);
	font-family: var(--f-mono);
	font-size: 0.58rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	opacity: 0;
	transition: opacity 0.3s;
}

.cursor.has-label .cursor-label {
	opacity: 1;
}

/* ─── Smooth scroll (Lenis) ──────────────────────────────────────────────── */

html.lenis,
html.lenis body {
	height: auto;
}

.lenis.lenis-smooth {
	scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
	overscroll-behavior: contain;
}

.lenis.lenis-stopped {
	overflow: hidden;
}

/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-aspect-ratio: 1/1) {
	.hero-word {
		bottom: 48.5%;
	}
}

@media (max-width: 1100px) {
	.footer-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 1023px) {
	.arch-media,
	.arch-copy {
		grid-column: 1 / -1;
	}

	.arch-media {
		width: 88%;
		padding-bottom: 18%;
	}

	.arch-inset {
		right: -12%;
		width: 44%;
	}

	.arch-copy {
		padding-top: 3.5rem;
	}

	.days-head .h-display,
	.days-head .lede,
	.lithos-copy,
	.treatments,
	.place-copy,
	.place-map,
	.stay-copy,
	.stay-panel {
		grid-column: 1 / -1;
	}

	.days-head .lede {
		margin-bottom: 0;
	}

	.treatments {
		margin-top: 2.5rem;
	}

	.place-map {
		margin-top: 2rem;
	}

	.stay-copy {
		position: static;
	}

	.stay-panel {
		margin-top: 1.5rem;
	}

	/* The kitchen images become a swipe strip above the chapters. */
	.table-grid {
		display: block;
	}

	.table-media {
		position: relative;
		top: auto;
		display: flex;
		gap: 1rem;
		height: auto;
		margin-inline: calc(var(--gutter) * -1);
		padding: 0 var(--gutter) 0.5rem;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}

	.table-fig {
		position: relative;
		inset: auto;
		flex: 0 0 min(78vw, 30rem);
		aspect-ratio: 4 / 5;
		clip-path: none;
		scroll-snap-align: start;
	}

	.chapter {
		min-height: 0;
		padding: 2.5rem 0 0;
	}

	.chapter + .chapter {
		margin-top: 2.5rem;
		border-top: 1px solid var(--line);
	}
}

@media (max-width: 860px) {
	.menu-inner {
		grid-template-columns: minmax(0, 1fr);
		align-content: start;
		gap: 2.5rem;
	}

	.menu-preview {
		display: none;
	}

	.menu-nav a {
		grid-template-columns: 4.2rem minmax(0, 1fr);
	}
}

@media (max-width: 767px) {
	:root {
		--hdr-h: 64px;
	}

	.header-cta {
		display: none;
	}

	.sunclock-label {
		display: none;
	}

	.logo-svg {
		width: 112px;
	}

	.sunclock {
		gap: 0.4rem;
	}

	.sunclock-arc {
		width: 34px;
		height: 20px;
	}

	.hero-line {
		bottom: 8.6rem;
	}

	.hero-sunrise {
		display: none;
	}

	.hero-actions {
		width: 100%;
		justify-content: space-between;
	}

	.hero-coords {
		top: calc(var(--hdr-h) + 2rem);
		transform: rotate(180deg);
		animation-name: arrive-vertical-top;
	}

	.intro-grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.sec-label-vertical {
		position: static;
		writing-mode: horizontal-tb;
		transform: none;
	}

	.facts {
		grid-template-columns: minmax(0, 1fr);
		gap: 1.5rem;
	}

	.fact {
		display: grid;
		grid-template-columns: 6.5rem minmax(0, 1fr);
		align-items: center;
		gap: 1rem;
	}

	.fact dd {
		margin: 0;
	}

	.fact-num {
		font-size: 3rem;
	}

	.day {
		grid-template-columns: 5.5rem minmax(0, 1fr);
		grid-template-areas:
			"img hour"
			"img title"
			"img place";
		column-gap: 1.1rem;
		row-gap: 0.25rem;
		align-items: start;
	}

	.day-img {
		align-self: center;
	}

	.day-place {
		text-align: left;
	}

	.lithos-figure {
		clip-path: inset(14% 16% 0% 16% round 40vw 40vw 0vw 0vw);
	}

	.lithos-word {
		bottom: auto;
		top: calc(var(--hdr-h) + 1rem);
		font-size: 19vw;
	}

	.field-row {
		grid-template-columns: minmax(0, 1fr);
	}

	.field-guests {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.room-options {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.map-svg .map-place text {
		display: none;
	}

	.map-svg text {
		font-size: 20px;
	}

	.map-home text {
		font-size: 24px;
	}

	.footer-top {
		flex-direction: column;
		align-items: flex-start;
	}

	.footer-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.footer-bottom {
		grid-template-columns: minmax(0, 1fr);
		padding-bottom: 5rem;
	}
}

@media (max-width: 400px) {
	.booking {
		padding: 1.25rem;
	}

	.room-options {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ─── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.marquee-track,
	.hero-chars .c,
	.hero-bg,
	.hero-fg,
	.hero-meta > *,
	.hero-coords {
		animation: none;
	}

	.room-media img {
		transform: none;
	}
}
