/* ==========================================================================
   Homepage hero art — build → go live → bookings loop (driven by assets/js/hero.js)
   The scene is laid out on a fixed 580×496 stage and scaled to the column width.
   State classes on .sfh-stage: is-w1…is-w5 (small card builds), is-live, is-press,
   is-on1…is-on4 (calendar bookings), is-toast.
   ========================================================================== */

.sfh-art {
	--sfh-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
	--sfh-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--sfh-ink: #1E3A32;
	--sfh-brass: #B0874F;
	position: relative;
	width: 100%;
	max-width: 580px;
	margin-inline: auto;
	aspect-ratio: 580 / 496;
	background: var(--color-beige);
}

/* Cards may drift past the art box; the full-width section clips instead, so no sideways scroll. */
.sf-hero { overflow-x: clip; }

.sfh-stage {
	position: absolute;
	left: 0;
	top: 0;
	width: 580px;
	height: 496px;
	transform-origin: 0 0;
	transform: scale(var(--sfh-scale, 1));
}

.sfh-par {
	position: absolute;
	left: 0;
	top: 0;
	will-change: transform;
}

.sfh-blob { fill: #F7921E; }

.sfh-card {
	position: absolute;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 18px 40px -14px rgba(20, 25, 29, 0.35), 0 2px 6px rgba(20, 25, 29, 0.08);
}

.sfh-flt { animation: sfh-float 7s ease-in-out infinite; }

@keyframes sfh-float {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-7px); }
}

/* Paused while off-screen */
.sfh-art.is-paused *,
.sfh-art.is-paused *::after { animation-play-state: paused !important; }

/* --- Browser ------------------------------------------------------------ */
.sfh-browser {
	left: 164px;
	top: 70px;
	width: 400px;
	background: #E4E5E9;
	border-radius: 7px;
	overflow: hidden;
}

.sfh-chrome {
	position: relative;
	height: 24px;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 0 10px;
}

/* macOS window controls (browser and small card) */
.sfh-chrome > i,
.sfh-wf-dots i {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #FF5F57;
	box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.12);
}

.sfh-chrome > i:nth-of-type(2),
.sfh-wf-dots i:nth-child(2) { background: #FEBC2E; }

.sfh-chrome > i:nth-of-type(3),
.sfh-wf-dots i:nth-child(3) { background: #28C840; }

.sfh-url {
	position: absolute;
	left: 50%;
	top: 5px;
	transform: translateX(-50%);
	height: 14px;
	padding: 0 12px;
	border-radius: 7px;
	background: #F4F5F7;
	font: 400 8px/14px var(--font-sans);
	color: #7b8089;
	display: flex;
	align-items: center;
	gap: 4px;
}

.sfh-url svg { width: 7px; height: 7px; }
.sfh-url rect { fill: #9aa0a8; }
.sfh-url path { fill: none; stroke: #9aa0a8; stroke-width: 1; }

.sfh-live {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 5px;
	font: 700 8.5px var(--font-sans);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--color-green);
	opacity: 0;
	transform: translateX(6px);
	transition: opacity 0.5s var(--sfh-ease), transform 0.5s var(--sfh-ease);
}

.sfh-live b {
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--color-green);
	animation: sfh-pulse 1.6s infinite;
}

@keyframes sfh-pulse {
	0%   { box-shadow: 0 0 0 0 rgba(50, 179, 74, 0.6); }
	70%  { box-shadow: 0 0 0 6px rgba(50, 179, 74, 0); }
	100% { box-shadow: 0 0 0 0 rgba(50, 179, 74, 0); }
}

.sfh-vp {
	position: relative;
	height: 276px;
	overflow: hidden;
	background: #fff;
}

.sfh-mist {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 233px;
	overflow: hidden;
	pointer-events: none;
}

.sfh-mist i {
	position: absolute;
	inset: -20% -60%;
	background:
		radial-gradient(ellipse 22% 9% at 30% 62%, rgba(255, 255, 255, 0.5), transparent 70%),
		radial-gradient(ellipse 30% 7% at 70% 74%, rgba(255, 255, 255, 0.4), transparent 70%),
		radial-gradient(ellipse 26% 8% at 52% 50%, rgba(255, 255, 255, 0.3), transparent 70%);
	filter: blur(6px);
	mix-blend-mode: screen;
	animation: sfh-mist 26s linear infinite;
}

.sfh-mist i + i {
	top: -10%;
	opacity: 0.7;
	animation-duration: 38s;
	animation-direction: reverse;
}

@keyframes sfh-mist {
	from { transform: translateX(-12%); }
	to   { transform: translateX(12%); }
}

.sfh-sweep {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, transparent 30%, rgba(255, 214, 160, 0.5) 50%, transparent 70%);
	transform: translateX(-120%);
	mix-blend-mode: soft-light;
	pointer-events: none;
}

.is-live .sfh-live  { opacity: 1; transform: none; }
.is-live .sfh-sweep { transform: translateX(120%); transition: transform 1.8s var(--sfh-ease); }
.is-live .sfh-site  { filter: none; }

/* --- Demo site "Ridgeline" (built at 1200px, scaled to the 400px viewport) */
.sfh-site {
	position: absolute;
	left: 0;
	top: 0;
	width: 1200px;
	transform-origin: 0 0;
	transform: scale(0.333333);
	font-family: var(--font-sans);
	color: #1d2420;
	background: #fff;
	filter: grayscale(1);
	transition: filter 1.6s var(--sfh-ease);
}

.sfs-nav {
	position: absolute;
	left: 0;
	right: 0;
	top: 0;
	height: 84px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 48px;
	color: #fff;
	z-index: 2;
	border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.sfs-links {
	display: flex;
	gap: 30px;
	align-items: center;
	width: 400px;
	font-size: 15px;
}

.sfs-right { justify-content: flex-end; }

.sfs-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 22px;
	letter-spacing: 0.3em;
}

.sfs-logo svg {
	width: 30px;
	height: 20px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linejoin: round;
}

.sfs-btn {
	background: var(--sfh-brass);
	color: #fff;
	padding: 13px 22px;
	font-weight: 700;
}

.sfs-hero {
	position: relative;
	height: 700px;
	overflow: hidden;
}

.sfs-bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center 60%;
}

.sfs-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(14, 26, 22, 0.45) 0%, rgba(14, 26, 22, 0.05) 40%, rgba(14, 26, 22, 0.55) 100%);
}

.sfs-hero-text {
	position: absolute;
	left: 0;
	right: 0;
	top: 190px;
	z-index: 1;
	text-align: center;
	color: #fff;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}

.sfs-eye {
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--sfh-brass);
}

.sfs-hero-text .sfs-eye { color: #F3E3C8; }

.sfs-h1 {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 78px;
	line-height: 1;
}

.sfs-sub {
	font-size: 20px;
	line-height: 1.5;
	max-width: 620px;
	color: rgba(255, 255, 255, 0.88);
}

.sfs-book {
	position: absolute;
	left: 120px;
	right: 120px;
	bottom: 64px;
	z-index: 1;
	height: 96px;
	background: #fff;
	display: flex;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.sfs-field {
	flex: 1;
	padding: 18px 26px;
	border-right: 1px solid #e6e2da;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.sfs-label {
	font-size: 13px;
	font-weight: 700;
	color: #6d746f;
}

.sfs-val {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 19px;
	color: #9aa09b;
	white-space: nowrap;
}

.sfs-val svg {
	width: 20px;
	height: 20px;
	flex: none;
	fill: none;
	stroke: var(--sfh-ink);
	stroke-width: 1.6;
}

.sfs-val .is-set { color: #1d2420; }

.sfs-type.is-typing::after {
	content: '';
	display: inline-block;
	width: 2px;
	height: 20px;
	margin-left: 2px;
	vertical-align: -3px;
	background: var(--sfh-brass);
	animation: sfh-blink 0.8s steps(1) infinite;
}

@keyframes sfh-blink { 50% { opacity: 0; } }

.sfs-go {
	width: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--sfh-ink);
	color: #fff;
	font-weight: 700;
	font-size: 18px;
	transition: background 0.2s, transform 0.2s;
}

.is-press .sfs-go { background: var(--sfh-brass); transform: scale(0.97); }

.sfs-sec { padding: 110px 72px 120px; }

.sfs-head {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	margin-bottom: 44px;
}

.sfs-h2 {
	margin-top: 14px;
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 50px;
	line-height: 1.08;
	color: var(--sfh-ink);
}

.sfs-all {
	font-weight: 700;
	font-size: 16px;
	color: var(--sfh-ink);
	border-bottom: 1.5px solid var(--sfh-ink);
	padding-bottom: 4px;
}

.sfs-cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.sfs-img {
	background-size: cover;
	background-position: center;
}

.sfs-card .sfs-img { height: 330px; }

.sfs-meta {
	margin-top: 20px;
	font-size: 14px;
	color: #6d746f;
}

.sfs-h3 {
	margin: 6px 0 12px;
	font-family: var(--font-serif);
	font-weight: 600;
	font-size: 26px;
	color: var(--sfh-ink);
}

.sfs-price {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-top: 14px;
	border-top: 1px solid #e6e2da;
	font-size: 15px;
	color: #4a514c;
}

.sfs-price span { display: flex; align-items: center; gap: 6px; }
.sfs-price b    { font-size: 18px; color: var(--sfh-ink); }

.sfs-price svg,
.sfs-stars svg {
	width: 14px;
	height: 14px;
	fill: var(--sfh-brass);
}

.sfs-stats {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 80px 72px;
	background: var(--sfh-ink);
	color: #fff;
}

.sfs-stats div {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 28px;
	border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.sfs-stats b {
	font-family: var(--font-serif);
	font-weight: 400;
	font-size: 66px;
	line-height: 1;
	color: #E8D3B0;
}

.sfs-stats span { font-size: 16px; color: rgba(255, 255, 255, 0.75); }

.sfs-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 80px;
	align-items: center;
	padding: 110px 72px;
	background: #F3EEE6;
}

.sfs-split .sfs-img { height: 500px; }

.sfs-split-text {
	display: flex;
	flex-direction: column;
	gap: 22px;
}

.sfs-p {
	font-size: 19px;
	line-height: 1.65;
	color: #4a514c;
}

.sfs-outline {
	align-self: flex-start;
	padding: 16px 26px;
	border: 1.5px solid var(--sfh-ink);
	color: var(--sfh-ink);
	font-weight: 700;
	font-size: 16px;
}

.sfs-quote {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
	padding: 120px 160px;
	text-align: center;
}

.sfs-stars { display: flex; gap: 4px; }
.sfs-stars svg { width: 22px; height: 22px; }

.sfs-q {
	font-family: var(--font-serif);
	font-style: italic;
	font-size: 42px;
	line-height: 1.25;
	color: var(--sfh-ink);
}

.sfs-cite {
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #6d746f;
}

.sfs-foot {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding: 80px 72px 110px;
	background: #14211D;
	color: #fff;
}

.sfs-foot > div {
	display: flex;
	flex-direction: column;
	gap: 14px;
	font-size: 16px;
	color: rgba(255, 255, 255, 0.65);
}

.sfs-foot b {
	margin-bottom: 6px;
	font-size: 15px;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #fff;
}

.sfs-foot .sfs-logo {
	flex-direction: row;
	justify-content: flex-start;
	align-items: flex-start;
	color: #fff;
}

/* --- Calendar ----------------------------------------------------------- */
.sfh-cal {
	left: -22px;
	top: 16px;
	width: 165px;
	padding: 9px 9px 8px;
	font-family: var(--font-sans);
}

.sfh-cal-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 3px 6px;
	font-size: 10px;
	font-weight: 700;
	color: var(--color-dark-grey);
}

.sfh-cal-head span { font-size: 11px; color: #6b7078; }

.sfh-cal-grid {
	display: grid;
	grid-template-columns: repeat(7, 21px);
	row-gap: 3px;
}

.sfh-dow {
	padding-bottom: 3px;
	font-size: 7px;
	text-align: center;
	color: #9aa0a8;
}

.sfh-day {
	position: relative;
	height: 19px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 8.5px;
	font-weight: 700;
	color: #3a3f47;
}

.sfh-day em {
	position: relative;
	font-style: normal;
	transition: color 0.3s;
}

.sfh-day.is-muted { color: #c5c8cd; }

.sfh-day i {
	position: absolute;
	inset: 1px;
	background: var(--color-orange);
	border-radius: 9px;
	transform: scale(0);
	transition: transform 0.45s var(--sfh-spring);
}

/* Date ranges grow left to right */
.sfh-rs i { right: -2px; border-radius: 9px 0 0 9px; }
.sfh-rm i { left: -2px; right: -2px; border-radius: 0; transition-delay: 0.18s; }
.sfh-re i { left: -2px; border-radius: 0 9px 9px 0; transition-delay: 0.36s; }

.sfh-rs i,
.sfh-rm i,
.sfh-re i {
	transform: scaleX(0);
	transform-origin: left;
	transition-property: transform;
	transition-duration: 0.35s;
	transition-timing-function: var(--sfh-ease);
}

.sfh-one i { left: 1.5px; right: 1.5px; border-radius: 50%; }
.sfh-ok i  { background: var(--color-green); }

.sfh-day.is-today::after {
	content: '';
	position: absolute;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	border: 1.5px solid var(--color-dark-grey);
}

.is-on1 .sfh-b1 i, .is-on2 .sfh-b2 i, .is-on3 .sfh-b3 i, .is-on4 .sfh-b4 i { transform: scale(1); }
.is-on1 .sfh-b1 em, .is-on2 .sfh-b2 em, .is-on3 .sfh-b3 em, .is-on4 .sfh-b4 em { color: #fff; }
.is-on1 .sfh-b1.sfh-rm em { transition-delay: 0.18s; }
.is-on1 .sfh-b1.sfh-re em,
.is-on3 .sfh-b3.sfh-re em { transition-delay: 0.36s; }

/* --- Small card: wireframe → line drawing → illustration → photo ---------- */
.sfh-wf {
	left: 446px;
	top: 342px;
	width: 150px;
	padding: 8px 10px 10px;
	border: 1px solid #e3e5e8;
}

.sfh-wf-dots { display: flex; gap: 4px; padding-bottom: 6px; }


.sfh-wf-head {
	height: 7px;
	margin-bottom: 6px;
	border-radius: 2px;
	background: #e6e8ec;
}

.sfh-wf-img {
	position: relative;
	height: 56px;
	border-radius: 3px;
	overflow: hidden;
	background: #E9ECF0;
}

.sfh-wf-x {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to top right, transparent calc(50% - 0.5px), #cfd3d9, transparent calc(50% + 0.5px)),
		linear-gradient(to top left, transparent calc(50% - 0.5px), #cfd3d9, transparent calc(50% + 0.5px));
	transition: opacity 0.8s var(--sfh-ease);
}

.sfh-illu {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
}

.sfh-ln {
	stroke-width: 0.8;
	fill-opacity: 0;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.7s var(--sfh-ease), fill-opacity 1.1s var(--sfh-ease);
}

.sfh-sparkle { opacity: 0; transition: opacity 0.6s; }

.sfh-wf-img img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: center 62%;
	clip-path: inset(0 100% 0 0);
	filter: blur(5px) saturate(0.6);
	transition: clip-path 2.4s cubic-bezier(0.45, 0.05, 0.35, 1), filter 2.8s var(--sfh-ease);
}

.sfh-wf-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
	padding-top: 8px;
}

.sfh-wf-cols div { display: flex; flex-direction: column; gap: 4px; }

.sfh-bar {
	height: 4px;
	border-radius: 2px;
	background: #dfe2e6;
	transition: background 0.5s, width 0.7s var(--sfh-ease);
}

.sfh-bar--t { height: 5px; width: 55%; background: #c3c7cd; }

.sfh-pill {
	width: 22px;
	height: 8px;
	margin-top: 3px;
	border-radius: 4px;
	background: #d6dadf;
	transform: scale(0.9);
	transition: background 0.3s, transform 0.45s var(--sfh-spring);
}

.is-w1 .sfh-wf-x { opacity: 0; }
.is-w1 .sfh-ln   { stroke-dashoffset: 0; }
.is-w2 .sfh-ln   { fill-opacity: 1; }
.is-w2 .sfh-sparkle { opacity: 1; }
.is-w2 .sfh-ln:nth-child(3) { transition-delay: 0s, 0.15s; }
.is-w2 .sfh-ln:nth-child(4) { transition-delay: 0s, 0.3s; }
.is-w2 .sfh-ln:nth-child(5) { transition-delay: 0s, 0.45s; }
.is-w3 .sfh-bar  { background: #9ba1a9; }
.is-w3 .sfh-bar--t { width: 70%; background: var(--color-dark-grey); }
.is-w3 .sfh-wf-cols div + div .sfh-bar { transition-delay: 0.25s; }
.is-w4 .sfh-wf-img img { clip-path: inset(0 0 0 0); filter: none; }
.is-w5 .sfh-pill { background: var(--color-green); transform: scale(1.12); }
.is-w5 .sfh-wf-cols div + div .sfh-pill { transition-delay: 0.2s; }

/* --- Notification ------------------------------------------------------- */
.sfh-toast {
	left: 22px;
	top: 412px;
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 10px 14px 10px 10px;
	white-space: nowrap;
	font-family: var(--font-sans);
	opacity: 0;
	transform: translateY(14px) scale(0.96);
	transition: opacity 0.45s var(--sfh-ease), transform 0.55s var(--sfh-spring);
}

.sfh-toast-icon {
	width: 30px;
	height: 30px;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: var(--color-orange);
}

.sfh-toast-icon svg {
	width: 20px;
	height: 20px;
	fill: none;
	stroke: #fff;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.sfh-toast-title { display: block; font-size: 12.5px; color: var(--color-dark-grey); }
.sfh-toast-sub   { font-size: 10.5px; color: #6b7078; }

.is-toast .sfh-toast { opacity: 1; transform: none; }

/* --- Reduced motion: hold the finished scene ----------------------------- */
@media (prefers-reduced-motion: reduce) {
	.sfh-art *,
	.sfh-art *::after { animation: none !important; transition: none !important; }
}
