/* ==========================================================================
   ARTANYWAY Residency — main stylesheet
   ========================================================================== */

/* Original ARTANYWAY look: dark charcoal, white type. Fonts: Sora (headings), Inter (body), Prompt (Thai). */
:root {
	--red: #c8d5dc;          /* accent (was the old site's pale blue-grey) */
	--red-dark: #ffffff;
	--cream: #111013;        /* page background */
	--cream-2: #2d2c2f;      /* footer / strips */
	--paper: #272629;        /* cards */
	--ink: #ffffff;
	--ink-soft: #e5e5e5;
	--muted: #818181;
	--forest: #111013;
	--line: rgba(255, 255, 255, .16);

	--font-serif: "Sora", "Prompt", system-ui, sans-serif;
	--font-sans: "Inter", "Prompt", system-ui, -apple-system, sans-serif;

	--container: 1240px;
	--gutter: clamp(16px, 4vw, 56px);
	--header-h: 96px;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

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

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

body {
	margin: 0;
	background: var(--cream);
	color: var(--ink);
	font-family: var(--font-sans);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.75;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 400; line-height: 1.25; margin: 0 0 .5em; }
strong, b { font-weight: 500; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 112px); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; color: #111013; padding: 8px 16px; }
.skip-link:focus { left: 16px; top: 16px; }

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

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

/* ---------- Type helpers ---------- */
.display-2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); color: var(--ink); }
.lead { color: var(--ink-soft); font-size: 1rem; max-width: 34em; }

.eyebrow {
	font-family: var(--font-sans);
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: .2em;
	text-transform: uppercase;
	color: var(--muted);
	margin-bottom: 1.1rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .85); }
.eyebrow--line { display: flex; align-items: center; gap: 18px; }
.eyebrow--line::after { content: ""; width: 44px; height: 1px; background: currentColor; }
.eyebrow--under::after { content: ""; display: block; width: 36px; height: 1px; background: currentColor; margin-top: 12px; }

/* ---------- Buttons & links ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	font-size: .875rem;
	font-weight: 500;
	letter-spacing: .01em;
	border: 1px solid transparent;
	transition: background .25s var(--ease), transform .25s var(--ease);
	white-space: nowrap;
}
.btn--primary { background: transparent; color: #fff; border-color: #fff; font-family: var(--font-serif); font-weight: 600; }
.btn--primary:hover { background: #fff; color: #111013; }
.btn:hover .icon { transform: translateX(3px); }
.btn--lg { padding: 16px 30px; font-size: 1rem; }
.btn .icon { transition: transform .25s var(--ease); }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding-bottom: 6px;
	font-size: .875rem;
	font-weight: 500;
	border-bottom: 1px solid currentColor;
	transition: gap .25s var(--ease), color .25s;
}
.link-arrow:hover { gap: 14px; color: var(--red); }
.link-arrow--light { color: #fff; border-color: rgba(255, 255, 255, .7); }
.link-arrow--light:hover { color: #fff; }
.link-arrow--lg { font-size: 1rem; }

/* ---------- Header ---------- */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 50;
	color: #fff;
	transition: background .35s var(--ease), color .35s, box-shadow .35s;
}
.site-header__inner {
	display: flex;
	align-items: center;
	gap: 32px;
	height: var(--header-h);
	max-width: 1440px;
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.site-header::before {
	/* Solid/blurred bar. Kept on a pseudo-element: backdrop-filter or transform on the header itself
	   would turn it into the containing block of the fixed full-screen mobile menu. */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background: rgba(17, 16, 19, .92); box-shadow: 0 1px 0 var(--line);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	opacity: 0; transition: opacity .35s var(--ease);
}
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-scrolled { color: var(--ink); }
.site-header.is-scrolled { --header-h: 76px; }

.brand { display: inline-flex; align-items: center; gap: 14px; line-height: 1; flex: none; }
.brand__text { display: inline-flex; flex-direction: column; align-items: flex-start; }
.brand__name { font-family: var(--font-serif); font-weight: 300; font-size: 1.4rem; letter-spacing: .14em; }
.brand__sub { font-size: .6rem; letter-spacing: .55em; margin-top: 8px; padding-left: 0; }
.brand__logo { width: 52px; height: 52px; flex: none; border-radius: 50%; transition: width .35s var(--ease), height .35s var(--ease), transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-8deg); }
.site-header.is-scrolled .brand__logo { width: 44px; height: 44px; }
.site-footer .brand__logo { width: 64px; height: 64px; }
@media (max-width: 600px) {
	.site-header__inner { gap: 12px; }
	.brand { gap: 8px; }
	.brand__logo, .site-header.is-scrolled .brand__logo { width: 38px; height: 38px; }
	.brand__name { font-size: 1.05rem; letter-spacing: .1em; }
	.brand__sub { font-size: .5rem; letter-spacing: .45em; margin-top: 6px; }
	.lang-switch summary { padding: 7px 9px; gap: 6px; }
	.nav-toggle { padding: 6px; }
}

.primary-nav { margin-left: auto; }
.primary-nav__list { display: flex; gap: clamp(14px, 2vw, 34px); list-style: none; margin: 0; padding: 0; }
.primary-nav__list a { font-size: .8rem; letter-spacing: .02em; position: relative; padding-block: 6px; }
.primary-nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
	background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.primary-nav__list a:hover::after,
.primary-nav__list .is-current > a::after { transform: scaleX(1); }
.primary-nav__cta-mobile { display: none; }

.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 8px; margin-left: auto; cursor: pointer; font-size: 1.5rem; }
.nav-toggle__close { display: none; }

/* ---------- Hero ---------- */
.hero {
	position: relative;
	min-height: min(100svh, 920px);
	display: flex;
	align-items: center;
	color: #fff;
	background: var(--forest) var(--bg) center / cover no-repeat;
	overflow: hidden;
}
.hero__shade {
	position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 16, 12, .6) 0%, rgba(10, 16, 12, .25) 45%, rgba(10, 16, 12, 0) 70%),
		linear-gradient(180deg, rgba(10, 16, 12, .45) 0%, rgba(10, 16, 12, 0) 22%, rgba(10, 16, 12, 0) 75%, rgba(10, 16, 12, .35) 100%);
}
.hero__content { position: relative; padding-top: calc(var(--header-h) + 40px); padding-bottom: 140px; max-width: 1440px; }
.hero__title {
	font-size: clamp(2rem, 4.8vw, 3.9rem);
	font-weight: 300;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 1.18;
	margin-bottom: .55em;
	text-shadow: 0 2px 24px rgba(0, 0, 0, .25);
}
.hero__subtitle { font-family: var(--font-sans); font-weight: 300; font-size: clamp(1rem, 1.5vw, 1.2rem); max-width: 28em; line-height: 1.6; margin-bottom: 2.2em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 28px 40px; }
.hero__scroll {
	position: absolute; left: var(--gutter); bottom: 36px;
	display: flex; align-items: center; gap: 14px; font-size: .75rem; color: rgba(255, 255, 255, .85);
}
@media (min-width: 1440px) { .hero__scroll { left: calc((100vw - 1440px) / 2 + var(--gutter)); } }
.hero__scroll span { width: 1px; height: 46px; background: rgba(255, 255, 255, .6); position: relative; overflow: hidden; }
.hero__scroll span::after {
	content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff;
	animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--cream); position: relative; overflow: hidden; }
.about__media { min-height: 420px; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__body { align-self: center; padding: clamp(48px, 7vw, 96px) var(--gutter); max-width: 560px; position: relative; z-index: 1; }

.member-badge { display: block; width: 200px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); transition: opacity .3s; }
.member-badge img { width: 100%; height: auto; display: block; }
.member-badge:hover { opacity: .85; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: 140px 1fr; gap: 24px; padding-block: 34px; max-width: 1440px; }
.services__label { align-self: center; font-weight: 600; line-height: 1.8; }
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-card { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; color: #fff; background: var(--forest); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.service-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .7)); }
.service-card:hover img { transform: scale(1.05); }
.service-card__body { position: absolute; left: 18px; right: 56px; bottom: 16px; z-index: 1; display: flex; flex-direction: column; }
.service-card__title { font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.25; }
.service-card__text { font-size: .75rem; line-height: 1.45; opacity: .9; max-width: 15em; }
.service-card__arrow { position: absolute; right: 18px; bottom: 18px; z-index: 1; transition: transform .3s var(--ease); }
.service-card:hover .service-card__arrow { transform: translateX(4px); }

/* ---------- Artist stories ---------- */
.stories { display: grid; grid-template-columns: minmax(260px, 28%) 1fr; background: var(--cream-2); margin-top: 34px; }
.stories__intro { padding: clamp(40px, 5vw, 64px) var(--gutter); align-self: center; }
.stories__intro p:not(.eyebrow) { font-size: .85rem; color: var(--ink-soft); max-width: 18em; }
.stories__strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 4px; overflow-x: auto; scrollbar-width: none; }
.stories__strip::-webkit-scrollbar { display: none; }
.story { position: relative; display: block; height: 100%; min-height: 260px; overflow: hidden; background: var(--paper); }
.story img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform .8s var(--ease), opacity .4s; }
.story:hover img { transform: scale(1.04); }
.story__name {
	position: absolute; left: 14px; bottom: 12px; right: 14px; z-index: 1; color: #fff;
	font-family: var(--font-serif); font-size: 1.15rem; opacity: 0; transform: translateY(6px); transition: .35s var(--ease);
}
a.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .65)); opacity: 0; transition: opacity .35s; }
a.story:hover::after,
a.story:hover .story__name,
a.story:focus-visible .story__name { opacity: 1; transform: none; }

/* ---------- Positive Kombucha ---------- */
.kombucha { padding-block: clamp(56px, 7vw, 96px); }
.kombucha .container { max-width: 1440px; }
.kombucha__head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 40px; }
.kombucha__head .display-2 { margin: 0; }
.kombucha__intro p { color: var(--ink-soft); max-width: 32em; }
.kombucha__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 20px; }

.flavor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.flavor { background: var(--paper); display: flex; flex-direction: column; }
.flavor__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #1c1b1e; }
.flavor__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.flavor:hover .flavor__media img { transform: scale(1.04); }
.flavor__placeholder {
	position: absolute; inset: 0; display: grid; place-items: center;
	font-family: var(--font-serif); font-weight: 200; font-size: 5rem; color: rgba(255, 255, 255, .18);
	background: radial-gradient(circle at 50% 40%, #3a3830, #1c1b1e 70%);
}
.flavor__badge {
	position: absolute; top: 12px; left: 12px; padding: 4px 10px;
	background: #fff; color: #111013; font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.flavor__body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.flavor__name { font-size: 1.1rem; margin-bottom: .3em; }
.flavor__notes { font-size: .85rem; color: var(--ink-soft); margin-bottom: 1em; }
.flavor__meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.flavor__price { font-family: var(--font-serif); font-size: .95rem; }
.flavor__order { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; }
.flavor__order:hover { color: var(--red); }

@media (max-width: 960px) {
	.kombucha__head { grid-template-columns: 1fr; }
	.flavor-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px) {
	.flavor__body { padding: 14px; }
	.flavor__meta { flex-direction: column; align-items: flex-start; }
}

/* ---------- Residency gallery (homepage mosaic) ---------- */
.moments { padding-top: clamp(56px, 7vw, 96px); }
.moments .container { max-width: 1440px; }
.moments__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.moments__head .display-2 { margin: 0; }
.moments__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 16vw, 230px); gap: 8px; }
.moments__item { position: relative; display: block; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.moments__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.moments__item:nth-child(6) { grid-column: span 2; }
.moments__item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.moments__item:hover img { transform: scale(1.05); opacity: .9; }
@media (max-width: 700px) {
	.moments__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; gap: 6px; }
	.moments__item:nth-child(6) { grid-column: span 1; }
}

/* ---------- Artist gallery + lightbox ---------- */
.artist-gallery { padding-bottom: clamp(56px, 7vw, 96px); }
.artist-gallery .container { max-width: 1440px; }
.artist-gallery__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 40px; margin-bottom: 24px; }
.artist-gallery__head .display-2 { margin: 0; }
.artist-gallery__head .eyebrow { margin: 0; }
.masonry { columns: 4 260px; column-gap: 10px; }
.masonry__item { display: block; margin-bottom: 10px; break-inside: avoid; overflow: hidden; background: var(--paper); cursor: zoom-in; }
.masonry__item img { width: 100%; height: auto; transition: transform .6s var(--ease), opacity .3s; }
.masonry__item:hover img { transform: scale(1.03); opacity: .9; }

.lightbox {
	position: fixed; inset: 0; z-index: 100; background: rgba(10, 9, 12, .96);
	display: grid; grid-template-columns: 64px 1fr 64px; align-items: center;
}
.lightbox[hidden] { display: none; }
.lightbox__figure { margin: 0; height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 0; min-width: 0; }
.lightbox__figure img { max-width: 100%; max-height: calc(100svh - 140px); object-fit: contain; user-select: none; }
.lightbox__figure figcaption { color: var(--ink-soft); font-size: .9rem; text-align: center; min-height: 1.4em; }
.lightbox button { background: none; border: 0; color: #fff; cursor: pointer; padding: 12px; font-size: 1.6rem; display: grid; place-items: center; opacity: .75; transition: opacity .2s; }
.lightbox button:hover, .lightbox button:focus-visible { opacity: 1; }
.lightbox__close { position: absolute; top: 12px; right: 12px; z-index: 1; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }
.lightbox__count { position: absolute; top: 22px; left: 24px; margin: 0; font-size: .8rem; letter-spacing: .12em; color: var(--muted); }
body.lightbox-open { overflow: hidden; }
@media (max-width: 600px) {
	.masonry { columns: 2; column-gap: 6px; }
	.masonry__item { margin-bottom: 6px; }
	.lightbox { grid-template-columns: 1fr; }
	.lightbox__nav { position: absolute; bottom: 12px; }
	.lightbox__nav--prev { left: 12px; }
	.lightbox__nav--next { right: 12px; }
	.lightbox__figure { padding: 56px 8px 72px; }
}

/* ---------- CTA band ---------- */
.cta { position: relative; color: #fff; background: var(--forest) var(--bg) center / cover no-repeat; }
.cta::before { content: ""; position: absolute; inset: 0; background: rgba(12, 20, 14, .72); }
.cta__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: clamp(48px, 6vw, 72px); }
.cta__text { padding-right: 40px; border-right: 1px solid rgba(255, 255, 255, .35); flex: 1; max-width: 520px; }
.cta__text .display-2 { color: #fff; }
.cta__text p { margin: 0; font-size: 1rem; opacity: .9; }
.cta__actions { display: flex; align-items: center; gap: 36px; flex: 1; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--paper); padding-block: 40px; }
.site-footer__inner { display: flex; align-items: center; gap: 40px; max-width: 1440px; flex-wrap: wrap; }
.site-footer .brand__name { font-size: 1.25rem; }
.footer-nav { flex: 1; }
.footer-nav__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 0; padding: 0; font-size: .75rem; }
.footer-nav__list a:hover { color: var(--red); }
.site-footer__meta { display: flex; align-items: center; gap: 22px; }
.social { display: flex; gap: 14px; list-style: none; margin: 0; padding: 0 22px 0 0; border-right: 1px solid var(--line); font-size: 1.15rem; }
.social a { display: flex; transition: color .2s; }
.social a:hover { color: var(--red); }
.copyright { margin: 0; font-size: .65rem; color: var(--muted); }

/* ---------- Inner pages ---------- */
.page-hero {
	position: relative; color: #fff; min-height: clamp(360px, 52vh, 560px); display: flex; align-items: flex-end;
	background: var(--forest) var(--bg) center / cover no-repeat;
}
.page-hero .hero__shade { background: linear-gradient(180deg, rgba(17, 16, 19, .55) 0%, rgba(17, 16, 19, .45) 40%, rgba(17, 16, 19, .8) 100%); }
.page-hero__content { position: relative; padding-top: calc(var(--header-h) + 60px); padding-bottom: 56px; }
.page-hero__title { font-size: clamp(1.9rem, 4vw, 3.2rem); font-weight: 300; margin: 0; text-transform: capitalize; }

.prose { max-width: 860px; font-size: 1.02rem; }
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.4em; }
.prose a:not(.btn):not(.link-arrow) { color: var(--red); border-bottom: 1px solid currentColor; }
.prose .figure { margin: 2em 0; }
.prose .figure img { width: 100%; }
.prose blockquote { font-family: var(--font-serif); font-weight: 300; font-size: 1.3rem; line-height: 1.6; border-left: 2px solid var(--red); margin: 2em 0; padding-left: 1.2em; }
.prose ul { padding-left: 1.2em; }
.back-link { margin-top: 3em; }
.prose blockquote cite { display: block; margin-top: .8em; font-family: var(--font-sans); font-size: .8rem; font-style: normal; letter-spacing: .08em; color: var(--muted); }
.prose ol, .prose ul { margin: 0 0 1.4em; }
.prose li { margin-bottom: .3em; }

/* Gallery */
.prose .gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 1.5em 0 2.5em; }
.prose .gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Table (residency costs) */
.prose .table-wrap { margin: 1.5em 0; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; background: var(--paper); }
.prose thead { border-bottom: 1px solid var(--ink); }
.prose th, .prose td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose thead th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.prose tbody th { font-family: var(--font-serif); font-size: 1rem; font-weight: 400; }
.prose td { font-variant-numeric: tabular-nums; }
.prose .actions { margin: 2em 0; }

/* Map */
.map-embed { aspect-ratio: 16 / 9; margin: 1em 0 2em; background: var(--cream-2); }
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.92) contrast(.9); }

@media (max-width: 600px) {
	.prose .gallery { grid-template-columns: 1fr 1fr; }
}

/* Card grid (Journal / Artists) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 40px 28px; }
.card { background: var(--paper); display: flex; flex-direction: column; }
.card__media { display: block; aspect-ratio: 9 / 7; overflow: hidden; background: var(--cream-2); }
.card-grid--tall .card__media { aspect-ratio: 7 / 9; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px; display: flex; flex-direction: column; align-items: flex-start; flex: 1; }
.card__body p:not(.eyebrow) { font-size: .9rem; color: var(--ink-soft); flex: 1; }
.card__title { font-size: 1.3rem; }
.card__title a:hover { color: var(--red); }
.pagination { margin-top: 48px; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination .page-numbers { padding: 6px 14px; border: 1px solid var(--line); }
.pagination .current { background: #fff; color: #111013; }

/* Forms (Contact Form 7 or core) */
.prose input[type="text"], .prose input[type="email"], .prose input[type="tel"], .prose input[type="date"], .prose select, .prose textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); background: var(--paper); font: inherit;
}
.prose input[type="submit"], .prose button[type="submit"] { background: transparent; color: #fff; border: 1px solid #fff; padding: 14px 28px; font: inherit; cursor: pointer; }

/* ---------- Reveal on scroll ---------- */
.reveal { animation: fadeUp 1s var(--ease) both; }
.reveal:nth-child(2) { animation-delay: .15s; }
.reveal:nth-child(3) { animation-delay: .3s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { animation: none; }
	.hero__scroll span::after { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
	.site-header__cta { display: none; }
	.primary-nav__list { gap: 18px; }
}

/* Menu labels never break mid-word; Chinese/Japanese use tighter spacing. */
.primary-nav__list a { white-space: nowrap; }
.site-header__cta { flex: none; }
.lang-zh .primary-nav__list, .lang-ja .primary-nav__list { gap: clamp(14px, 1.5vw, 24px); }

/* JS measures the header: .nav-tight hides the Book/Apply button, .nav-compact
   switches to the ☰ menu whenever the labels (in any language) don't fit. */
body.nav-tight .site-header__cta { display: none; }
body.nav-compact { --header-h: 76px; }
body.nav-compact .site-header__cta { display: none; }
body.nav-compact .nav-toggle { display: inline-flex; }
body.nav-compact .lang-switch { margin-left: auto; }
body.nav-compact .primary-nav {
	position: fixed; inset: 0; z-index: -1; background: var(--forest); color: #fff; margin: 0;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
	padding: var(--header-h) var(--gutter) 40px;
	opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
body.nav-compact .primary-nav > :first-child { margin-top: auto; }
body.nav-compact .primary-nav > :last-child { margin-bottom: auto; }
body.nav-compact .primary-nav__list { flex-direction: column; gap: 6px; }
body.nav-compact .primary-nav__list a { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; }
body.nav-compact .primary-nav__cta-mobile { display: inline-flex; }
body.nav-compact.nav-open { overflow: hidden; }
body.nav-compact.nav-open .primary-nav { opacity: 1; visibility: visible; }
body.nav-compact.nav-open .site-header { color: #fff; translate: none; }
body.nav-compact.nav-open .site-header::before { opacity: 0; }
body.nav-compact.nav-open .nav-toggle__open { display: none; }
body.nav-compact.nav-open .nav-toggle__close { display: inline; }

@media (max-width: 960px) {
	:root { --header-h: 76px; }
	.nav-toggle { display: inline-flex; }
	.primary-nav {
		position: fixed; inset: 0; z-index: -1; background: var(--forest); color: #fff;
		display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 36px;
		padding: var(--header-h) var(--gutter) 40px;
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
		overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
	}
	.primary-nav > :first-child { margin-top: auto; }
	.primary-nav > :last-child { margin-bottom: auto; }
	.primary-nav__list { flex-direction: column; gap: 6px; }
	.primary-nav__list a { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 300; }
	.primary-nav__cta-mobile { display: inline-flex; }
	body.nav-open { overflow: hidden; }
	body.nav-open .primary-nav { opacity: 1; visibility: visible; }
	body.nav-open .site-header { color: #fff; translate: none; }
	body.nav-open .site-header::before { opacity: 0; }
	body.nav-open .nav-toggle__open { display: none; }
	body.nav-open .nav-toggle__close { display: inline; }

	.about { grid-template-columns: 1fr; }
	.about__media { min-height: 0; aspect-ratio: 4 / 3; }
	.services { grid-template-columns: 1fr; }
	.services__label br { display: none; }
	.services__grid { grid-template-columns: 1fr 1fr; }
	.stories { grid-template-columns: 1fr; }
	.stories__strip { grid-auto-columns: 46%; }
	.story { min-height: 280px; }
	.cta__inner { flex-direction: column; align-items: flex-start; }
	.cta__text { border-right: 0; padding-right: 0; }
	.cta__actions { justify-content: flex-start; }
	.site-footer__inner { flex-direction: column; text-align: center; }
	.site-footer__meta { flex-direction: column; }
	.social { border-right: 0; padding-right: 0; }
}

@media (max-width: 600px) {
	.services__grid { grid-template-columns: 1fr; }
	.hero__content { padding-bottom: 120px; }
	.hero__shade { background: linear-gradient(180deg, rgba(10, 16, 12, .55) 0%, rgba(10, 16, 12, .45) 55%, rgba(10, 16, 12, .25) 100%); }
	.hero__actions { flex-direction: column; align-items: flex-start; }
	.stories__strip { grid-auto-columns: 72%; }
}

/* ==========================================================================
   Motion — all of it is skipped for prefers-reduced-motion and without JS
   ========================================================================== */

/* Background layers: slow zoom (Ken Burns) + parallax via --parallax set in JS */
.hero, .page-hero, .cta { isolation: isolate; overflow: hidden; background-image: none; }
.hero::before, .page-hero::before, .cta::after {
	content: ""; position: absolute; inset: -12% 0; z-index: -2;
	background: var(--bg) center / cover no-repeat;
	translate: 0 var(--parallax, 0px);
	will-change: translate, scale;
}
.hero::before { animation: kenburns 24s cubic-bezier(.25, .1, .25, 1) both; }
.page-hero::before { animation: kenburns 18s cubic-bezier(.25, .1, .25, 1) both; }
.hero__shade { z-index: -1; }
.cta::before { z-index: -1; }
@keyframes kenburns { from { scale: 1.18; } to { scale: 1.02; } }

/* Headline: each line rises out of a mask */
.hero__title.reveal { animation: none; }
.split-line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-line > span { display: inline-block; translate: 0 110%; animation: lineUp 1.2s var(--ease) forwards; animation-delay: calc(.25s + var(--l, 0) * .14s); }
@keyframes lineUp { to { translate: 0 0; } }
.hero .reveal:nth-child(2) { animation-delay: .75s; }
.hero .reveal:nth-child(3) { animation-delay: .95s; }
.hero__scroll { animation: fadeUp 1s 1.4s var(--ease) both; }

/* Scroll reveal (classes added by JS) */
.js [data-reveal] {
	opacity: 0; translate: 0 32px;
	transition: opacity 1s var(--ease), translate 1s var(--ease);
	transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Image mask reveal: wipe up, picture settles from a slight zoom */
.js [data-reveal="mask"] { opacity: 1; translate: none; clip-path: inset(100% 0 0 0); transition: clip-path 1.3s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="mask"] img { scale: 1.18; transition: scale 1.8s var(--ease), transform .8s var(--ease), opacity .3s; transition-delay: calc(var(--i, 0) * 110ms); }
.js [data-reveal="mask"].is-in { clip-path: inset(0 0 0 0); }
.js [data-reveal="mask"].is-in img { scale: 1; }

/* Eyebrow rule draws itself */
.js .eyebrow--line[data-reveal]::after { width: 0; transition: width 1.1s .35s var(--ease); }
.js .eyebrow--line[data-reveal].is-in::after { width: 44px; }

/* Marquee band */
.marquee { overflow: hidden; padding-block: clamp(28px, 4vw, 48px); border-block: 1px solid var(--line); margin-top: 34px; user-select: none; }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex-shrink: 0; }
.marquee__word {
	font-family: var(--font-serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 6rem); line-height: 1;
	letter-spacing: -.01em; text-transform: uppercase; padding-inline: .35em; white-space: nowrap;
}
.marquee__word:nth-child(4n + 1) { color: var(--ink); }
.marquee__word:nth-child(4n + 3) { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .45); }
.marquee__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
@keyframes marquee { to { translate: -50% 0; } }

/* Scroll progress + header hide-on-scroll */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; background: var(--ink); transform-origin: 0 50%; scale: var(--progress, 0) 1; pointer-events: none; opacity: .8; }
.site-header { transition: background .35s var(--ease), color .35s, box-shadow .35s, translate .45s var(--ease); }
.site-header.is-hidden { translate: 0 -100%; }

/* Hover polish */
.flavor, .card { transition: translate .5s var(--ease), box-shadow .5s var(--ease); }
.flavor:hover, .card:hover { translate: 0 -6px; box-shadow: 0 18px 40px rgba(0, 0, 0, .35); }
.link-arrow { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: gap .25s var(--ease), color .25s, background-size .45s var(--ease); }
.link-arrow:hover { background-size: 100% 1px; }
.btn { position: relative; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	.hero::before, .page-hero::before, .marquee__track, .split-line > span, .hero__scroll { animation: none !important; }
	.split-line > span { translate: none; }
	.hero::before, .page-hero::before, .cta::after { translate: none; scale: 1; }
	.js [data-reveal], .js [data-reveal="mask"], .js [data-reveal="mask"] img { opacity: 1; translate: none; clip-path: none; scale: 1; transition: none; }
	.js .eyebrow--line[data-reveal]::after { width: 44px; transition: none; }
	.marquee__track { flex-wrap: wrap; width: auto; }
	.marquee__group + .marquee__group { display: none; }
	.flavor:hover, .card:hover { translate: none; }
	.site-header.is-hidden { translate: none; }
	.progress { display: none; }
}

/* ==========================================================================
   Languages
   ========================================================================== */

/* Switcher (header) */
.lang-switch { position: relative; flex: none; font-size: .78rem; letter-spacing: .06em; }
.lang-switch summary {
	list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
	padding: 8px 12px; border: 1px solid rgba(255, 255, 255, .35); user-select: none;
	transition: border-color .25s, background .25s;
}
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-switch summary:hover, .lang-switch[open] summary { border-color: #fff; background: rgba(255, 255, 255, .06); }
.lang-switch__caret { width: 6px; height: 6px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; rotate: 45deg; translate: 0 -2px; transition: rotate .25s; }
.lang-switch[open] .lang-switch__caret { rotate: 225deg; translate: 0 2px; }
.lang-list { list-style: none; margin: 0; padding: 6px; }
.lang-switch .lang-list {
	position: absolute; right: 0; top: calc(100% + 8px); min-width: 150px; z-index: 5;
	background: rgba(23, 22, 26, .98); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .4);
	animation: langIn .25s var(--ease);
}
@keyframes langIn { from { opacity: 0; translate: 0 -6px; } }
.lang-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; font-size: .9rem; letter-spacing: 0; color: var(--ink-soft); }
.lang-list a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.lang-list a[aria-current]::after { content: "●"; font-size: .55rem; color: var(--red); align-self: center; }
.lang-list a[aria-current] { color: #fff; }
@media (max-width: 960px) {
	.lang-switch { margin-left: auto; }
	.nav-toggle { margin-left: 4px; }
}

/* Thai: taller lines so tone marks are never clipped */
.lang-th { --font-serif: "Sora", "Prompt", system-ui, sans-serif; }
.lang-th h1, .lang-th h2, .lang-th h3, .lang-th .display-2, .lang-th .hero__title, .lang-th .page-hero__title { line-height: 1.45; }
.lang-th .split-line { padding-top: .18em; margin-top: -.18em; }
.lang-th .hero__title { text-transform: none; }

/* Chinese (Simplified) and Japanese: Latin from Sora/Inter, CJK from the system fonts */
.lang-zh {
	--font-serif: "Sora", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
	--font-sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei", sans-serif;
}
.lang-ja {
	--font-serif: "Sora", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Source Han Sans JP", "Yu Gothic", Meiryo, sans-serif;
	--font-sans: "Inter", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Source Han Sans JP", "Yu Gothic", Meiryo, sans-serif;
}
.lang-zh, .lang-ja { font-weight: 400; line-break: strict; }
.lang-zh h1, .lang-zh h2, .lang-zh h3, .lang-ja h1, .lang-ja h2, .lang-ja h3 { line-height: 1.4; letter-spacing: .02em; }
.lang-zh .hero__title, .lang-ja .hero__title { font-weight: 400; letter-spacing: .04em; line-height: 1.35; }
.lang-zh .split-line, .lang-ja .split-line { padding-top: .08em; margin-top: -.08em; }
.lang-zh .eyebrow, .lang-ja .eyebrow { letter-spacing: .12em; }
.lang-zh .prose, .lang-ja .prose { line-height: 1.9; }

/* ==========================================================================
   Forms (Book / Apply, Contact)
   ========================================================================== */
.form-section { padding-bottom: clamp(56px, 8vw, 112px); }
.form-wrap { max-width: 860px; }
.form-wrap > .display-2 { margin: 0 0 28px; }
.form-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.form-tabs a { padding: 12px 18px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); font-size: .9rem; }
.form-tabs a:hover { color: var(--ink); }
.form-tabs a.is-active { color: var(--ink); border-bottom-color: var(--ink); }

.form { display: grid; gap: 22px; background: var(--paper); padding: clamp(20px, 4vw, 40px); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form__field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.form__field label, .form__field legend { font-size: .85rem; color: var(--ink-soft); padding: 0; }
.form__req { color: var(--red); margin-left: 2px; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="number"], .form input[type="date"], .form textarea {
	width: 100%; padding: 13px 14px; font: inherit; font-size: 16px; color: var(--ink);
	background: #1c1b1e; border: 1px solid var(--line); border-radius: 0; color-scheme: dark;
	transition: border-color .2s, background .2s;
}
.form textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--ink); background: #222125; }
.form [aria-invalid="true"], .form [aria-invalid="true"] input { border-color: #e2725b; }
.form input[type="file"] { font-size: .85rem; color: var(--ink-soft); }
.form input[type="file"]::file-selector-button { font: inherit; margin-right: 12px; padding: 10px 16px; background: transparent; color: #fff; border: 1px solid var(--line); cursor: pointer; }
.form input[type="file"]::file-selector-button:hover { border-color: #fff; }
.form__rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form__rooms legend { grid-column: 1 / -1; margin-bottom: 8px; }
.form__rooms .form__error { grid-column: 1 / -1; }
.form__choice { position: relative; display: block; cursor: pointer; }
.form__choice input { position: absolute; opacity: 0; }
.form__choice span { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); background: #1c1b1e; color: var(--ink); transition: border-color .2s, background .2s; }
.form__choice small { color: var(--muted); font-size: .8rem; }
.form__choice input:checked + span { border-color: var(--ink); background: #26252a; box-shadow: inset 0 0 0 1px var(--ink); }
.form__choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__hint { margin: -10px 0 0; font-size: .8rem; color: var(--muted); }
.form__field .form__hint { margin: 0; }
.form__error { margin: 0; font-size: .85rem; color: #f09a86; }
.form__privacy { margin: 0; font-size: .8rem; color: var(--muted); }
.form .btn { justify-self: start; }
.form .btn[disabled] { opacity: .6; cursor: progress; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { padding: 18px 20px; margin-bottom: 22px; border-left: 3px solid; }
.form__notice p { margin: 6px 0 0; color: var(--ink-soft); }
.form__notice--ok { border-color: #7bc69a; background: rgba(123, 198, 154, .08); }
.form__notice--error { border-color: #e2725b; background: rgba(226, 114, 91, .08); }
@media (max-width: 640px) {
	.form__grid, .form__rooms { grid-template-columns: 1fr; }
}
