/*
 * Home page (front-page.php), section by section. Journal cards come from blog.css.
 */

.home-section { padding: var(--section-pad) var(--gutter); }
.home-inner { max-width: var(--max-w); margin: 0 auto; }

.home-section .section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.home-section .section-head .eyebrow { display: block; margin-bottom: 16px; }
.home-section .section-head:not(.split) { text-align: center; }
.home-section .section-head.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 5vw, 96px); align-items: end; }
.home-section .section-head .section-text { font-size: var(--fs-body); line-height: var(--lh-text); color: var(--ink-soft); max-width: 48ch; }

.home-cta { margin-top: clamp(32px, 4vw, 48px); text-align: center; }


/* ---------- Hero: video behind the headline ---------- */

.home-hero {
	position: relative;
	min-height: min(760px, 92vh);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(120px, 14vw, 180px) var(--gutter) clamp(80px, 9vw, 120px);
	background: var(--dark);
	color: var(--paper);
	text-align: center;
	overflow: hidden;
}
.home-hero-poster, .home-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Stacking, bottom to top: poster (0), video (1), the dark overlay (2), the words (3). */
.home-hero-video { z-index: 1; }
.home-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	z-index: 2;
	background: radial-gradient(ellipse 70% 65% at center, rgb(61 49 40) 0%, rgba(15, 10, 6, .6) 40%, rgba(15, 10, 6, .32) 75%, rgba(15, 10, 6, .18) 100%);
	pointer-events: none;
}
.home-hero-inner { position: relative; z-index: 3; max-width: 820px; }
.home-hero h1 { font-size: clamp(2.8rem, 6.4vw, 5rem); line-height: 1.02; letter-spacing: -.015em; margin-bottom: 26px; }
.home-hero .lead { max-width: 54ch; margin: 0 auto 36px; }
.home-hero .btn-row { justify-content: center; }


/* ---------- Awards: a slow ribbon of logos ---------- */

.home-awards { padding: clamp(32px, 4vw, 48px) 0; background: var(--surface-soft); text-align: center; overflow: hidden; }
.home-awards .eyebrow { display: block; margin-bottom: 28px; }
.awards-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.awards-track { display: flex; align-items: center; gap: clamp(48px, 6vw, 110px); width: max-content; padding: 0 clamp(24px, 3vw, 55px); animation: awards-scroll 42s linear infinite; }
.awards-marquee:hover .awards-track { animation-play-state: paused; }
.award-logo { display: flex; align-items: center; justify-content: center; width: 150px; height: 120px; flex-shrink: 0; }
.award-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
@keyframes awards-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.awards-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
	.award-logo[aria-hidden] { display: none; }
}


/* ---------- Focus areas ---------- */

.focus-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.focus-card { display: flex; flex-direction: column; min-width: 0; }
.focus-media { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-photo); background: var(--surface-warm); }
.focus-media img,
.focus-media video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.focus-card:hover .focus-media img,
.focus-card:hover .focus-media video { transform: scale(1.04); }
.focus-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 22px; }
.focus-body .h3 { display: block; }
.focus-blurb { font-size: var(--fs-small); line-height: var(--lh-text); color: var(--ink-soft); }
.focus-body .link-arrow { margin-top: 6px; }
.focus-card:hover .link-arrow { gap: 20px; }

.guide-callout {
	margin-top: clamp(40px, 5vw, 64px);
	padding: clamp(28px, 3.5vw, 48px) clamp(24px, 4vw, 56px);
	background: var(--dark);
	color: var(--paper);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 32px;
}
.guide-callout h3 { margin-bottom: 10px; }
.guide-callout p { font-size: var(--fs-body); max-width: 60ch; }
.guide-callout .btn { flex-shrink: 0; }


/* ---------- Founder ---------- */

.home-founder { padding-top: clamp(16px, 2vw, 32px); } /* the focus areas above already end with a full gap */
.founder-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.founder-photo { overflow: hidden; border-radius: var(--radius-photo); }
.founder-photo img { width: 100%; height: auto; }
.founder-copy .eyebrow { display: block; margin-bottom: 16px; }
.founder-copy h2 { margin-bottom: 22px; }
.founder-copy > p { font-size: var(--fs-body); max-width: 54ch; margin-bottom: 24px; }
.founder-copy blockquote::before { content: '\201C'; }
.founder-copy blockquote::after { content: '\201D'; }
.founder-copy blockquote { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.4; border-left: 2px solid var(--gold); padding-left: 22px; max-width: 46ch; margin-bottom: 32px; }
.founder-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 24px clamp(28px, 4vw, 56px); margin-bottom: 36px; }
.founder-stats dt { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.founder-stats dd { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }


/* ---------- Feature: a dark section with a video ---------- */

.home-feature { background: var(--dark); color: var(--paper); }
.feature-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.feature-video { position: relative; overflow: hidden; border-radius: var(--radius-photo); background: #000; aspect-ratio: 16 / 9; }
.feature-video video { width: 100%; height: 100%; object-fit: cover; }
.feature-sound {
	position: absolute;
	left: 18px;
	bottom: 18px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 16px;
	background: rgba(61, 49, 40, .85);
	color: var(--paper);
	font-family: var(--ui);
	font-size: var(--fs-label);
	font-weight: var(--label-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
	border: 1px solid var(--rule-on-dark);
}
.feature-sound:hover { background: var(--paper); color: var(--ink); }
.feature-sound-icon { width: 0; height: 0; border-left: 10px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.feature-sound[aria-pressed="true"] .feature-sound-icon { width: 10px; height: 12px; border: 0; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.feature-copy .eyebrow { display: block; margin-bottom: 16px; }
.feature-copy h2 { margin-bottom: 22px; }
.feature-copy > p { font-size: var(--fs-body); max-width: 52ch; margin-bottom: 26px; }
.feature-sub { padding-top: 22px; border-top: 1px solid var(--rule-on-dark); margin-bottom: 26px; }
.feature-sub .label { display: block; margin-bottom: 10px; }
.feature-sub p { font-size: var(--fs-small); line-height: var(--lh-text); max-width: 52ch; }
.feature-points { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px clamp(24px, 3vw, 48px); margin-bottom: 36px; }
.feature-points dt { font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.1; }
.feature-points dd { font-size: var(--fs-small); margin-top: 4px; }


/* ---------- Results ---------- */

.results-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.result-tile { display: flex; flex-direction: column; min-width: 0; }
.result-image { display: block; aspect-ratio: 1; overflow: hidden; border: 1px solid var(--rule); background: var(--surface-warm); transition: border-color .3s ease; }
.result-image img { width: 100%; height: 100%; object-fit: cover; }
.result-tile:hover .result-image { border-color: var(--gold); }
.result-title { display: block; margin-top: 14px; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.2; }
.result-caption { display: block; margin-top: 4px; font-size: var(--fs-small); color: var(--ink-soft); }


/* ---------- The Javan Way ---------- */

.home-way { background: var(--dark); color: var(--paper); }
.way-head { text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.way-head h2 { font-size: clamp(2.6rem, 5.5vw, 4.6rem); line-height: 1; letter-spacing: -.015em; margin-bottom: 14px; }
.way-sub { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.2; margin-bottom: 18px; }
.way-text { font-size: var(--fs-body); max-width: 58ch; margin: 0 auto; }
/* The points sit on a line, each under its own dot, like stops on a timeline. */
.way-points { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); padding-top: 52px; text-align: center; }
.way-points::before { content: ''; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: var(--gold); }
.way-point { position: relative; }
.way-point::before { content: ''; position: absolute; top: -57px; left: 50%; width: 11px; height: 11px; border-radius: 50%; background: var(--gold); transform: translateX(-50%); }
.way-point h3 { font-size: var(--fs-h4); margin-bottom: 12px; }
.way-point p { font-size: var(--fs-small); line-height: var(--lh-text); }


/* ---------- Team: a row that scrolls sideways; a card turns over to show its review ---------- */

.home-team { background: var(--surface-warm); }
.team-scroller { position: relative; }
.team-track {
	display: flex;
	gap: clamp(18px, 2vw, 28px);
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	padding-bottom: 4px;
}
.team-track::-webkit-scrollbar { display: none; }
.team-card { flex: 0 0 250px; scroll-snap-align: start; position: relative; display: flex; flex-direction: column; }
.team-face { position: relative; }
.team-photo { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-photo); background: var(--surface-soft); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-flip {
	position: absolute;
	left: 12px;
	bottom: 12px;
	padding: 9px 14px;
	background: var(--dark);
	color: var(--paper);
	font-family: var(--ui);
	font-size: var(--fs-label);
	font-weight: var(--label-weight);
	letter-spacing: var(--label-tracking);
	text-transform: uppercase;
}
.team-flip:hover { background: var(--gold-surface); color: var(--on-gold); }
.team-review {
	position: absolute;
	inset: 0;
	display: none;
	flex-direction: column;
	padding: 22px 20px;
	background: var(--dark);
	color: var(--paper);
	border-radius: var(--radius-photo);
	aspect-ratio: 4 / 5;
	bottom: auto;
}
.team-card.flipped .team-review { display: flex; }
.team-card.flipped .team-face { visibility: hidden; }
.team-stars { color: var(--gold-light); letter-spacing: 2px; font-size: var(--fs-small); margin-bottom: 12px; }
.team-review p { font-family: var(--serif); font-size: var(--fs-body); line-height: 1.4; flex: 1; overflow: auto; }
.team-reviewer { font-size: var(--fs-small); margin-top: 12px; }
.team-review .team-flip.back { position: static; align-self: flex-start; margin-top: 14px; background: var(--paper); color: var(--ink); }
.team-name { display: block; margin-top: 16px; font-family: var(--serif); font-size: var(--fs-h4); line-height: 1.2; }
.team-role { display: block; margin-top: 4px; font-family: var(--ui); font-size: var(--fs-label); font-weight: var(--label-weight); letter-spacing: var(--label-tracking); text-transform: uppercase; color: var(--ink-soft); }

.scroller-btn {
	position: absolute;
	top: 150px;
	z-index: 2;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--gold-surface);
	border: 1px solid var(--gold-surface);
	box-shadow: var(--shadow);
}
.scroller-btn::before { content: ''; position: absolute; top: 50%; left: 50%; width: 11px; height: 11px; border-left: 2px solid var(--on-gold); border-bottom: 2px solid var(--on-gold); transform: translate(-35%, -50%) rotate(45deg); }
.scroller-btn.next::before { transform: translate(-65%, -50%) rotate(-135deg); }
.scroller-btn.prev { left: -24px; }
.scroller-btn.next { right: -24px; }
.scroller-btn:hover { background: var(--ink); border-color: var(--ink); }
.scroller-btn:hover::before { border-color: var(--paper); }
.scroller-btn[disabled] { opacity: .35; cursor: default; }


/* ---------- Locations ---------- */

.loc-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 36px); }
.loc-card { display: flex; flex-direction: column; background: var(--surface-warm); border-radius: var(--radius-photo); overflow: hidden; }
.loc-photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.loc-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.loc-card:hover .loc-photo img { transform: scale(1.04); }
.loc-body { display: flex; flex-direction: column; align-items: flex-start; padding: 26px 28px 30px; flex: 1; }
.loc-body .eyebrow { display: block; margin-bottom: 10px; }
.loc-body h3 { margin-bottom: 10px; }
.loc-address { font-size: var(--fs-small); color: var(--ink-soft); margin-bottom: 6px; }
.loc-phone { font-family: var(--ui); font-size: var(--fs-button); letter-spacing: var(--label-tracking); margin-bottom: 22px; }
.loc-phone:hover { color: var(--link); }
.loc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: auto; }


/* ---------- Journal ---------- */

.home-journal { background: var(--surface-soft); }
.home-journal .post-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }


/* ---------- Concierge ---------- */

.home-concierge { background: var(--surface-warm); scroll-margin-top: var(--header-h, 0px); }
.concierge-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.concierge-intro .eyebrow { display: block; margin-bottom: 16px; }
.concierge-intro h2 { margin-bottom: 20px; }
.concierge-intro > p { font-size: var(--fs-body); max-width: 50ch; margin-bottom: 30px; }
.concierge-facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 20px clamp(28px, 4vw, 56px); margin-bottom: 34px; }
.concierge-facts dt { font-family: var(--serif); font-size: var(--fs-h3); line-height: 1.1; }
.concierge-facts dd { font-size: var(--fs-small); color: var(--ink-soft); margin-top: 4px; }
.concierge-direct { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; background: var(--surface); }
.concierge-direct span { font-family: var(--serif); font-size: var(--fs-h4); }
.concierge-form { padding: clamp(24px, 3vw, 40px); background: var(--surface); }
.concierge-form .concierge-regarding { margin: 0 0 20px; }


/* ---------- Smaller screens ---------- */

@media (max-width: 1100px) {
	.way-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; padding-top: 0; }
	.way-points::before,
	.way-point::before { display: none; }
	.way-point { padding-top: 22px; border-top: 1px solid var(--gold); }
	.results-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.home-section .section-head.split { grid-template-columns: 1fr; align-items: start; }
	.focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.founder-grid,
	.feature-grid,
	.concierge-grid { grid-template-columns: 1fr; }
	.founder-photo { max-width: 520px; }
	.loc-row { grid-template-columns: 1fr; max-width: 560px; }
	.home-journal .post-cards { grid-template-columns: 1fr; max-width: 560px; }
	.guide-callout { flex-direction: column; align-items: flex-start; }
	.scroller-btn.prev { left: 0; }
	.scroller-btn.next { right: 0; }
}
@media (max-width: 640px) {
	.home-hero { min-height: 0; }
	.home-hero .btn-row { flex-direction: column; align-items: stretch; }
	.way-points { grid-template-columns: 1fr; }
	.results-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.founder-stats,
	.feature-points,
	.concierge-facts { grid-template-columns: repeat(2, auto); }
	.team-card { flex-basis: 220px; }
	.scroller-btn { top: 120px; }
}
@media (max-width: 420px) {
	.focus-grid { grid-template-columns: 1fr; }
	.results-row { grid-template-columns: 1fr; }
}
