/* ==========================================================================
   DFAB Next · design system
   Light, warm-neutral surfaces with the DFAB signal red. Dark bands (CTA,
   footer) anchor the page. All text colours meet WCAG AA on their surface.
   ========================================================================== */

:root {
	--bg: #f6f5f1;
	--surface: #ffffff;
	--surface-2: #efede8;
	--surface-3: #e4e1da;
	--ink: #15181d;
	--text: #3a414b;
	--muted: #5d6671;
	--line: rgb(21 24 29 / 0.09);
	--line-2: rgb(21 24 29 / 0.16);

	--signal: #d7372a;
	--signal-hover: #b92e22;
	--signal-ink: #b42d20;
	--signal-soft: #fcebe8;
	--signal-glow: rgb(215 55 42 / 0.28);
	--ok: #16804f;

	--dark: #14171b;
	--dark-2: #1d2127;
	--dark-line: rgb(255 255 255 / 0.1);
	--dark-text: #e7e9ec;
	--dark-muted: #9ba4af;

	--font-display: "Space Grotesk", system-ui, sans-serif;
	--font-body: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;

	--step-0: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
	--step-1: clamp(1.15rem, 1.08rem + 0.4vw, 1.35rem);
	--step-2: clamp(1.45rem, 1.3rem + 0.8vw, 1.9rem);
	--step-3: clamp(1.9rem, 1.55rem + 1.8vw, 2.9rem);
	--step-4: clamp(2.3rem, 1.7rem + 3vw, 4.1rem);

	--gutter: clamp(16px, 4vw, 32px);
	--radius: 14px;
	--radius-lg: 20px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
	--shadow-sm: 0 1px 2px rgb(21 24 29 / 0.06);
	--shadow: 0 1px 2px rgb(21 24 29 / 0.05), 0 14px 34px -14px rgb(21 24 29 / 0.2);
	--shadow-lg: 0 2px 4px rgb(21 24 29 / 0.05), 0 30px 60px -24px rgb(21 24 29 / 0.28);
	--header-h: 72px;

	color-scheme: light;
}

/* ---------- Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font: 400 var(--step-0)/1.65 var(--font-body);
	-webkit-font-smoothing: antialiased;
	overflow-x: clip;
}
img, svg, video, canvas { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 0.5em; color: var(--ink); }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--signal); color: #fff; }

.screen-reader-text, .hp {
	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; left: 16px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--signal); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Buttons & links ---------- */

.btn {
	--b: var(--line-2);
	display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
	min-height: 46px; padding: 0.7em 1.35em;
	border: 1px solid var(--b); border-radius: 999px; background: var(--surface); color: var(--ink);
	font-weight: 600; font-size: 0.95rem; line-height: 1; text-decoration: none; white-space: nowrap;
	transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
}
.btn .icon { width: 1.1em; height: 1.1em; transition: transform 0.25s var(--ease); }
.btn:hover { color: var(--ink); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn--primary { --b: var(--signal); background: var(--signal); color: #fff; box-shadow: 0 10px 24px -10px var(--signal-glow); }
.btn--primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); color: #fff; }
.btn--ghost { background: var(--surface); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--sm { min-height: 38px; padding: 0.55em 1em; font-size: 0.875rem; }
.btn--lg { min-height: 54px; padding: 0.85em 1.6em; font-size: 1rem; }
.btn--block { width: 100%; }

.icon-btn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--ink);
	border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn--solid { background: var(--signal); border-color: var(--signal); color: #fff; }
.icon-btn--solid:hover { background: var(--signal-hover); border-color: var(--signal-hover); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; text-decoration: none; color: var(--ink); }
.link-arrow .icon { width: 1em; height: 1em; color: var(--signal); transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--signal-ink); }
.link-arrow:hover .icon { transform: translateX(4px); }

.eyebrow {
	display: inline-flex; align-items: center; gap: 0.6em; margin-bottom: 1rem;
	font: 600 0.76rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--signal-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--signal); }
.eyebrow--pill { padding: 0.6em 1em; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); letter-spacing: 0.06em; box-shadow: var(--shadow-sm); }
.eyebrow--pill::before { display: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgb(22 128 79 / 0.15); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgb(22 128 79 / 0); } }
.lede { max-width: 60ch; font-size: var(--step-1); line-height: 1.55; color: var(--muted); }

/* ---------- Header ---------- */

.site-header {
	position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
	transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease);
	border-bottom: 1px solid transparent;
}
.site-header[data-scrolled] { background: rgb(255 255 255 / 0.88); backdrop-filter: blur(14px) saturate(1.4); border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header[data-hidden] { transform: translateY(-100%); }
.site-header__inner { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: auto; height: 46px; }
.brand__text { font: 700 1.3rem var(--font-display); letter-spacing: 0.02em; color: var(--ink); }
.brand__text b { color: var(--signal); margin-left: 4px; }

.primary-nav { margin-left: auto; }
.primary-nav .menu { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav a { display: block; padding: 10px 12px; font-size: 0.93rem; font-weight: 500; color: var(--text); text-decoration: none; transition: color 0.2s; }
.primary-nav a:hover { color: var(--ink); }
.primary-nav .current-menu-item > a, .primary-nav .current-menu-ancestor > a { color: var(--ink); box-shadow: inset 0 -2px 0 var(--signal); }
.primary-nav .sub-menu {
	position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px; padding: 8px; margin: 0; list-style: none;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: 0.2s var(--ease);
}
.primary-nav .sub-menu a { border-radius: 8px; }
.primary-nav .sub-menu a:hover { background: var(--surface-2); }
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: 0.6; }
.primary-nav__contact { display: none; }

.site-header__actions { display: flex; align-items: center; gap: 10px; }
.primary-nav:not(:empty) + .site-header__actions { margin-left: 8px; }
.header-phone { display: none; align-items: center; gap: 8px; font-size: 0.9rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.header-phone .icon { color: var(--signal); }
.nav-toggle { display: none; }
.nav-toggle__close { display: none; }

@media (min-width: 1280px) { .header-phone { display: inline-flex; } }

@media (max-width: 1080px) {
	.nav-toggle { display: inline-grid; }
	.site-header__actions { margin-left: auto; }
	.site-header__actions .btn { display: none; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 0; margin: 0; padding: 16px var(--gutter) 120px;
		background: var(--surface); overflow-y: auto;
		opacity: 0; visibility: hidden; transform: translateY(-10px); transition: 0.3s var(--ease);
	}
	.nav-open .primary-nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open { overflow: hidden; }
	.nav-open .site-header { background: var(--surface); border-color: var(--line); }
	.nav-open .nav-toggle__open { display: none; }
	.nav-open .nav-toggle__close { display: block; }
	.nav-open [data-search-open] { display: none; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu > li > a { padding: 16px 0; font: 500 var(--step-2) var(--font-display); border-bottom: 1px solid var(--line); box-shadow: none; color: var(--ink); }
	.primary-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; background: none; border: 0; box-shadow: none; padding: 4px 0 12px 12px; }
	.primary-nav .sub-menu a { padding: 8px 0; color: var(--muted); }
	.primary-nav .menu-item-has-children > a::after { display: none; }
	.primary-nav__contact { display: grid; gap: 14px; margin-top: 32px; justify-items: start; }
	.primary-nav__contact .btn { box-shadow: none; }
	.primary-nav__contact a { display: flex; align-items: center; gap: 10px; padding: 0; color: var(--muted); box-shadow: none; }
}

/* ---------- Dialogs ---------- */

dialog { padding: 0; border: 0; color: inherit; background: transparent; max-width: none; max-height: none; }
dialog::backdrop { background: rgb(21 24 29 / 0.45); backdrop-filter: blur(4px); }
dialog[open] { animation: dialog-in 0.35s var(--ease); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(20px) scale(0.98); } }

.search-dialog { width: min(720px, calc(100% - 2 * var(--gutter))); margin-top: 12vh; }
.search-dialog__form { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; box-shadow: var(--shadow-lg); color: var(--ink); }
.search-dialog__form input { flex: 1; min-width: 0; padding: 12px 0; border: 0; background: none; font-size: var(--step-1); outline: none; }

.quote-dialog { width: min(640px, calc(100% - 24px)); margin: auto; }
.quote-dialog__panel { max-height: calc(100dvh - 24px); overflow-y: auto; padding: clamp(20px, 4vw, 36px); background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.quote-dialog__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.quote-dialog__head h2 { font-size: var(--step-2); margin: 0; }
.quote-dialog__head .eyebrow { margin-bottom: 8px; }

/* ---------- Forms ---------- */

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.lead-form--compact { grid-template-columns: 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field--full, .lead-form--compact .field { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.field label span[aria-hidden] { color: var(--signal); }
.field__opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea, .inline-search input {
	width: 100%; min-height: 48px; padding: 12px 14px; color: var(--ink);
	background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
.field input::placeholder, .field textarea::placeholder { color: #8a929c; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus, .inline-search input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgb(215 55 42 / 0.14); }
.field[data-invalid] input { border-color: var(--signal); }
.field__error { margin: 0; font-size: 0.8rem; color: var(--signal-ink); }
.field__error:empty { display: none; }
.lead-form__foot { grid-column: 1 / -1; display: grid; gap: 10px; margin-top: 4px; }
.lead-form__status { margin: 0; font-size: 0.9rem; color: var(--muted); }
.lead-form__status[data-state="ok"] { color: var(--ok); }
.lead-form__status[data-state="error"] { color: var(--signal-ink); }
.lead-form[aria-busy="true"] button[type="submit"] { opacity: 0.7; pointer-events: none; }
@media (max-width: 560px) { .lead-form { grid-template-columns: 1fr; } }

/* ---------- Hero (WebGL) ---------- */

.hero {
	position: relative; min-height: clamp(640px, 100svh, 900px); display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
	padding: calc(var(--header-h) + 40px) 0 88px; overflow: hidden; isolation: isolate;
	background: radial-gradient(60% 70% at 74% 45%, #ffffff 0, #f3f1ec 55%, var(--bg) 100%);
}
.hero__stage { position: absolute; inset: 0; z-index: -1; }
.hero__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; filter: grayscale(0.3); transition: opacity 1.2s; }
.hero--3d .hero__poster { opacity: 0; }
.hero__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1.2s var(--ease); }
.hero--3d .hero__canvas { opacity: 1; }
.hero__stage::after {
	content: ""; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(90deg, var(--bg) 0, rgb(246 245 241 / 0.9) 32%, rgb(246 245 241 / 0) 58%), linear-gradient(0deg, var(--bg) 0, transparent 22%);
}
.hero__grid { display: none; }
.hero__inner { position: relative; }
.hero__copy { max-width: 620px; }
.hero__title { margin: 0.4em 0 0.35em; font-size: clamp(3rem, 5.4vw, 5.6rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; }
.hero__kicker { display: block; margin-bottom: 0.7em; font: 600 clamp(0.95rem, 0.9rem + 0.3vw, 1.15rem)/1.3 var(--font-body); letter-spacing: 0; color: var(--text); }
.hero__line { display: block; }
.hero__title em { font-style: normal; color: var(--signal); }
.hero__lede { max-width: 50ch; font-size: var(--step-1); color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__stats { display: flex; gap: clamp(20px, 5vw, 48px); margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--line-2); }
.hero__stats div { display: flex; flex-direction: column-reverse; }
.hero__stats dt { font-size: 0.82rem; color: var(--muted); }
.hero__stats dd { margin: 0; font: 600 var(--step-3)/1 var(--font-display); color: var(--ink); }
.hero__stages { position: absolute; right: var(--gutter); bottom: 88px; display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hero__stages li { display: flex; align-items: center; gap: 10px; padding: 8px 14px 8px 8px; font-size: 0.82rem; color: var(--muted); background: rgb(255 255 255 / 0.85); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); backdrop-filter: blur(8px); transition: 0.4s var(--ease); }
.hero__stages span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font: 600 0.7rem var(--font-display); background: var(--surface-2); color: var(--ink); }
.hero__stages li[data-active] { color: var(--ink); border-color: rgb(215 55 42 / 0.4); transform: translateX(-6px); }
.hero__stages li[data-active] span { background: var(--signal); color: #fff; }
.hero__scroll { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--signal); animation: scroll-dot 1.8s var(--ease) infinite; }
@keyframes scroll-dot { 60% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 900px) {
	.hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; padding: calc(var(--header-h) + 4px) 0 48px; background: var(--bg); }
	.hero__stage { position: relative; height: 34vh; min-height: 200px; max-height: 280px; background: radial-gradient(60% 80% at 50% 50%, #fff, var(--bg)); }
	.hero__canvas, .hero__poster { height: 100% !important; }
	.hero__stage::after { background: linear-gradient(180deg, transparent 60%, var(--bg)); }
	.hero__stages, .hero__scroll { display: none; }
	.hero__copy { max-width: none; }
	.hero__title { font-size: clamp(2.5rem, 11vw, 3.4rem); margin-top: 0.2em; }
	.hero__actions { display: grid; grid-template-columns: 1fr 1fr; }
	.hero__actions .btn { width: 100%; font-size: 0.92rem; padding-inline: 0.7em; }
	.hero__stats { gap: 16px; justify-content: space-between; margin-top: 28px; }
	.hero__stats dd { font-size: var(--step-2); }
}
@media (max-width: 360px) { .hero__actions { grid-template-columns: 1fr; } }

/* ---------- Cabin type links (crawlable, replaces the decorative marquee) ---------- */

.cabin-links { background: var(--surface); border-block: 1px solid var(--line); }
.cabin-links__inner { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.cabin-links__label { flex: none; font: 600 0.74rem/1 var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.cabin-links__list { display: flex; gap: 8px; margin: 0; padding: 2px; list-style: none; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 92%, transparent); }
.cabin-links__list::-webkit-scrollbar { display: none; }
.cabin-links__list a { display: block; padding: 7px 14px; font-size: 0.85rem; font-weight: 500; white-space: nowrap; color: var(--text); text-decoration: none; border: 1px solid var(--line-2); border-radius: 999px; transition: 0.2s; }
.cabin-links__list a:hover { color: var(--signal-ink); border-color: var(--signal); background: var(--signal-soft); }
@media (max-width: 700px) { .cabin-links__label { display: none; } }

/* ---------- Sections ---------- */

.section { position: relative; padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--alt { background: var(--surface); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-title { font-size: var(--step-4); }
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-row .section-head { margin-bottom: 0; }

.intro__split { display: grid; gap: 36px; align-items: center; }
.intro__copy .section-title { font-size: var(--step-3); max-width: 16ch; }
.intro__copy > p { max-width: 52ch; }
.intro__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 28px 0 24px; padding: 0; list-style: none; }
.intro__facts li { display: grid; gap: 4px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.intro__facts strong { font: 600 0.95rem/1.2 var(--font-display); color: var(--ink); }
.intro__facts span { font-size: 0.8rem; color: var(--muted); }
.intro__media { position: relative; }
.intro__photo { margin: 0; overflow: hidden; border-radius: 18px; background: var(--surface-3); box-shadow: var(--shadow); }
.intro__photo img { width: 100%; height: 100%; object-fit: cover; }
.intro__photo--main { aspect-ratio: 4 / 5; max-height: 560px; }
.intro__photo--inset { position: absolute; left: -6%; bottom: 8%; width: min(46%, 250px); aspect-ratio: 4 / 3; border: 5px solid var(--surface); box-shadow: var(--shadow-lg); }
@media (min-width: 960px) { .intro__split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; } }
@media (max-width: 959px) {
	.intro__photo--main { aspect-ratio: 16 / 10; max-height: none; }
	.intro__photo--inset { display: none; }
}
@media (max-width: 560px) { .intro__facts { grid-template-columns: 1fr; } }

/* ---------- Prose (editor content) ---------- */

.prose { color: var(--text); }
.prose--lg { font-size: var(--step-1); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: var(--step-2); margin-top: 1.6em; }
.prose h3 { font-size: var(--step-1); margin-top: 1.4em; }
.prose strong { color: var(--ink); }
.prose a { color: var(--signal-ink); }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li::marker { color: var(--signal); }
.prose img { border-radius: var(--radius); height: auto; }
.prose blockquote { margin: 1.5em 0; padding-left: 1.2em; border-left: 3px solid var(--signal); color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95em; }
.prose th, .prose td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; }
.prose .alignright { float: right; margin: 0 0 1em 1.5em; max-width: 45%; }
.prose .alignleft { float: left; margin: 0 1.5em 1em 0; max-width: 45%; }
.prose::after { content: ""; display: table; clear: both; }
/* Legacy Bootstrap grid markup inside saved content. */
.prose .row { display: grid; gap: 24px; }
@media (min-width: 768px) { .prose .row:has(> .col-sm-6) { grid-template-columns: 1fr 1fr; } }

/* ---------- Cabin & post cards ---------- */

.cabin-grid { display: grid; grid-template-columns: 1fr; gap: 20px; perspective: 1400px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: clamp(16px, 2vw, 24px); }
@media (min-width: 700px) { .cabin-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .cabin-grid { grid-template-columns: repeat(3, 1fr); } }
.cabin-card, .post-card {
	--rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
	position: relative; display: flex; flex-direction: column; overflow: hidden;
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
	transform: rotateX(var(--rx)) rotateY(var(--ry));
	transition: transform 0.5s var(--ease), border-color 0.3s, box-shadow 0.4s;
}
.cabin-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: radial-gradient(420px circle at var(--mx) var(--my), rgb(255 255 255 / 0.35), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.cabin-card:hover, .post-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.cabin-card:hover::after { opacity: 1; }
[data-tilt].is-tilting { transition: transform 0.12s linear, border-color 0.3s, box-shadow 0.4s; }
.cabin-card__media, .post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-3); }
.post-card__media { aspect-ratio: 4 / 3; }
.cabin-card__media img, .post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.cabin-card:hover .cabin-card__media img, .post-card:hover .post-card__media img { transform: scale(1.05); }
.cabin-card__placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); }
.cabin-card__placeholder .icon { width: 48px; height: 48px; }
.cabin-card__body, .post-card__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.cabin-card__title, .post-card__title { font-size: var(--step-1); margin-bottom: 8px; }
.cabin-card__title a, .post-card__title a { text-decoration: none; }
.cabin-card__title a::before, .post-card__title a::before { content: ""; position: absolute; inset: 0; z-index: 0; }
.cabin-card__body p, .post-card__body p { font-size: 0.93rem; color: var(--muted); }
.cabin-card__actions { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.cabin-card__quote { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.cabin-card:hover .cabin-card__quote, .cabin-card:focus-within .cabin-card__quote { opacity: 1; pointer-events: auto; }
@media (hover: none), (max-width: 699px) { .cabin-card__quote { display: none; } }
.meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 8px; }

/* ---------- Use cases ("Built for") ---------- */

.use-grid { display: grid; gap: 16px; }
@media (min-width: 700px) { .use-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .use-grid { grid-template-columns: repeat(4, 1fr); } }
.use-card { display: flex; flex-direction: column; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.use-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--signal-soft); color: var(--signal-ink); }
.use-card__title { font-size: 1.15rem; margin-bottom: 8px; }
.use-card > p { font-size: 0.93rem; color: var(--muted); }
.use-card__links { display: grid; gap: 2px; margin: auto 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--line); }
.use-card__links a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; font-size: 0.92rem; font-weight: 500; color: var(--ink); text-decoration: none; }
.use-card__links .icon { width: 1em; height: 1em; color: var(--signal); opacity: 0.5; transition: 0.2s var(--ease); }
.use-card__links a:hover { color: var(--signal-ink); }
.use-card__links a:hover .icon { opacity: 1; transform: translateX(3px); }

/* ---------- Process ---------- */

.process-preview { background: var(--surface-2); }
.process-preview__list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: phase; }
.process-phase { position: relative; display: flex; flex-direction: column; height: 100%; margin: 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.process-phase__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--ink); color: #fff; }
.process-phase__icon .icon { width: 20px; height: 20px; }
.process-phase__num { position: absolute; top: 24px; right: 24px; margin: 0; font: 700 1.9rem/1 var(--font-display); color: var(--surface-3); }
.process-phase__title { font-size: 1.15rem; margin-bottom: 8px; }
.process-phase p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
@media (min-width: 900px) { .process-preview__list { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

.process__grid { display: grid; gap: 40px; }
.process__meter { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.process__count { font: 700 var(--step-4)/1 var(--font-display); color: var(--ink); font-variant-numeric: tabular-nums; }
.process__total { color: var(--muted); }
.process__bar { flex-basis: 100%; height: 3px; margin-top: 16px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.process__bar i { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0.08)); transition: transform 0.3s; }
.process__list { margin: 0; padding: 0; list-style: none; position: relative; }
.process__list::before { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.process-step { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 20px 0; }
.process-step__icon { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2); color: var(--muted); transition: 0.4s var(--ease); }
.process-step[data-active] .process-step__icon { background: var(--signal); border-color: var(--signal); color: #fff; box-shadow: 0 10px 24px -8px var(--signal-glow); }
.process-step__num { margin: 4px 0; font: 600 0.75rem var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal-ink); }
.process-step__title { font-size: var(--step-1); margin-bottom: 6px; }
.process-step p:last-child { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
	.process__grid { grid-template-columns: 5fr 7fr; gap: 80px; }
	.process__sticky { position: sticky; top: calc(var(--header-h) + 48px); }
	.process .section-title { font-size: var(--step-3); }
}

/* ---------- Testimonials ---------- */

.testimonial-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 800px) { .testimonial-grid { grid-template-columns: repeat(3, 1fr); } }
.testimonial { position: relative; margin: 0; display: flex; flex-direction: column; padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.testimonial::before { content: "“"; position: absolute; top: 10px; right: 22px; font: 700 4.5rem/1 var(--font-display); color: var(--signal-soft); }
.testimonial blockquote { position: relative; margin: 0 0 28px; color: var(--text); font-size: 1.02rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__who { display: grid; gap: 2px; }
.testimonial__who strong { font: 600 0.95rem/1.2 var(--font-display); color: var(--ink); }
.testimonial__who span { font-size: 0.8rem; color: var(--muted); }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--surface-2); }
.testimonial__avatar--fallback { display: grid; place-items: center; background: var(--ink); font: 600 0.8rem var(--font-display); color: #fff; }

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

.faq__grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .faq__grid { grid-template-columns: 4fr 7fr; gap: 64px; align-items: start; } .faq .section-head { position: sticky; top: calc(var(--header-h) + 40px); } }
.faq .section-title { font-size: var(--step-3); }
.faq__list { border-top: 1px solid var(--line-2); }
.faq__item { border-bottom: 1px solid var(--line-2); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { margin: 0; font-size: 1.1rem; }
.faq__item summary:hover h3 { color: var(--signal-ink); }
.faq__toggle { position: relative; flex: none; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; }
.faq__toggle::before, .faq__toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: var(--ink); translate: -50% -50%; transition: transform 0.25s var(--ease); }
.faq__toggle::after { transform: rotate(90deg); }
.faq__item[open] .faq__toggle { background: var(--ink); border-color: var(--ink); }
.faq__item[open] .faq__toggle::before, .faq__item[open] .faq__toggle::after { background: #fff; }
.faq__item[open] .faq__toggle::after { transform: rotate(0); }
.faq__item p { margin: 0 0 22px; max-width: 64ch; color: var(--text); }

/* ---------- CTA band (dark) ---------- */

.cta-band { position: relative; padding-block: clamp(56px, 8vw, 96px); overflow: hidden; background: var(--dark); color: var(--dark-text); }
.cta-band::before { content: ""; position: absolute; right: -10%; top: -70%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, rgb(215 55 42 / 0.45), transparent 62%); pointer-events: none; }
.cta-band__inner { position: relative; display: grid; gap: 28px; align-items: center; }
.cta-band .eyebrow { color: #ff8a7a; }
.cta-band__title { font-size: clamp(1.8rem, 2vw + 1rem, 2.6rem); max-width: 22ch; margin: 0; color: #fff; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 0.3); box-shadow: none; }
.cta-band .btn--ghost:hover { border-color: #fff; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }

/* ---------- Footer (dark) ---------- */

.site-footer { padding-top: clamp(56px, 8vw, 80px); background: var(--dark); color: var(--dark-text); border-top: 1px solid var(--dark-line); font-size: 0.93rem; }
.site-footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .site-footer__grid { grid-template-columns: 1.1fr 1.5fr 0.8fr 1.3fr; } }
.site-footer__brand p { color: var(--dark-muted); max-width: 32ch; margin-top: 16px; }
.site-footer__title { font: 600 0.76rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--dark-muted); margin-bottom: 16px; }
.site-footer__title--gap { margin-top: 32px; }
.site-footer .muted { color: var(--dark-muted); }
.footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-menu--cols { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.footer-menu a, .contact-list a, .site-footer__legal a { text-decoration: none; color: var(--dark-text); }
.footer-menu a:hover, .contact-list a:hover, .site-footer__legal a:hover { color: #ff8a7a; }
.contact-list { font-style: normal; display: grid; gap: 14px; }
.contact-list p { display: flex; gap: 10px; margin: 0; }
.contact-list .icon { color: #ff8a7a; margin-top: 3px; }
.social { display: flex; gap: 8px; list-style: none; margin: 20px 0 0; padding: 0; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--dark-text); border: 1px solid var(--dark-line); border-radius: 50%; transition: 0.2s; }
.social a:hover { background: var(--signal); border-color: var(--signal); color: #fff; }
.subscribe-form { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.subscribe-form input[type="email"] { flex: 1; min-width: 0; min-height: 46px; padding: 0 16px; color: #fff; background: var(--dark-2); border: 1px solid var(--dark-line); border-radius: 999px; }
.subscribe-form input::placeholder { color: var(--dark-muted); }
.subscribe-form input:focus { outline: none; border-color: var(--signal); }
.subscribe-form .lead-form__status { flex-basis: 100%; color: var(--dark-muted); }
.subscribe-form .lead-form__status[data-state="ok"] { color: #5fd49c; }
.subscribe-form .lead-form__status[data-state="error"] { color: #ff8a7a; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 24px calc(24px + env(safe-area-inset-bottom)); border-top: 1px solid var(--dark-line); color: var(--dark-muted); font-size: 0.85rem; }
.site-footer__base p { margin: 0; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- Floating contact dock (phones) ---------- */

.dock { position: fixed; z-index: 40; display: none; gap: 8px; padding: 6px; background: rgb(255 255 255 / 0.94); border: 1px solid var(--line-2); border-radius: 999px; backdrop-filter: blur(12px); box-shadow: var(--shadow-lg); transition: transform 0.35s var(--ease), opacity 0.3s; }
.dock[data-hidden] { transform: translateY(140%); opacity: 0; }
.dock__btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--ink); font-size: 0.85rem; font-weight: 600; text-decoration: none; }
.dock__btn--wa .icon { color: #1a9e4f; }
.dock__btn--primary { background: var(--signal); color: #fff; }
@media (max-width: 700px) {
	.dock { display: flex; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); justify-content: space-between; }
	.dock__btn { flex: 1; justify-content: center; }
	.site-footer__base { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Inner pages ---------- */

.page-hero, .product-hero { position: relative; padding: calc(var(--header-h) + clamp(40px, 7vw, 88px)) 0 clamp(36px, 5vw, 64px); overflow: hidden; background: radial-gradient(60% 90% at 95% 0%, var(--signal-soft), transparent 60%), var(--bg); border-bottom: 1px solid var(--line); }
.page-hero__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(80% 90% at 100% 0%, #000, transparent 70%); pointer-events: none; }
.page-hero .container, .product-hero .container { position: relative; }
.page-hero__title { font-size: var(--step-4); max-width: 20ch; }
.breadcrumbs { margin-bottom: 20px; font-size: 0.85rem; color: var(--muted); }
.breadcrumbs a { color: var(--text); text-decoration: none; }
.breadcrumbs a:hover { color: var(--signal-ink); }

.product-hero__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .product-hero__grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.checks { display: grid; gap: 10px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text); }
.checks li { display: flex; gap: 10px; align-items: center; }
.checks .icon { color: var(--ok); }

.frame-3d { --rx: 0deg; --ry: 0deg; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.6s var(--ease); }
.frame-3d img { width: 100%; }
.frame-3d--hero { transform: perspective(1200px) rotateY(-6deg) rotateX(3deg); }

.split { display: grid; gap: 40px; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: start; } }
.split__aside { display: grid; gap: 24px; }
.panel { padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.panel--sticky { position: sticky; top: calc(var(--header-h) + 24px); }
.panel__title { font-size: var(--step-1); margin-bottom: 20px; }
.split .lead-form { grid-template-columns: 1fr; }
.fact-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fact-list li { display: flex; gap: 16px; align-items: center; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.fact-list .icon { width: 28px; height: 28px; color: var(--signal); }
.fact-list strong { display: block; font: 600 var(--step-2)/1 var(--font-display); color: var(--ink); }
.fact-list span { font-size: 0.85rem; color: var(--muted); }

.masonry { columns: 3 300px; column-gap: 16px; }
.masonry__item { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.masonry__item img { width: 100%; transition: transform 0.7s var(--ease); }
.masonry__item:hover img { transform: scale(1.04); }
.lightbox { width: 100vw; height: 100dvh; background: rgb(12 14 17 / 0.94); }
.lightbox__inner { display: grid; place-items: center; height: 100%; padding: 56px 16px; }
.lightbox img { max-height: calc(100dvh - 112px); width: auto; border-radius: 8px; }
.lightbox .icon-btn { position: fixed; top: 16px; right: 16px; }
.lightbox__nav { position: fixed; top: 50%; translate: 0 -50%; }
.lightbox__nav--prev { left: 16px; } .lightbox__nav--next { right: 16px; }
.lightbox__nav--prev .icon { transform: rotate(180deg); }

.contact { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact { grid-template-columns: 5fr 7fr; gap: 40px; } }
.contact__cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-content: start; }
.contact-card { --rx: 0deg; --ry: 0deg; display: flex; flex-direction: column; gap: 6px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); text-decoration: none; transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.5s var(--ease), border-color 0.3s; }
a.contact-card:hover { border-color: var(--signal); color: inherit; }
.contact-card > .icon { width: 28px; height: 28px; color: var(--signal); margin-bottom: 8px; }
.contact-card__label { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.1em; }
.contact-card strong { font: 600 var(--step-1) var(--font-display); color: var(--ink); overflow-wrap: anywhere; }
.contact-card address { font-style: normal; margin-bottom: 8px; }
.map { display: grid; place-items: center; min-height: 360px; margin-top: 32px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface) 12px, var(--surface) 24px); }
.map iframe { width: 100%; height: 420px; border: 0; }

.article-cover { margin: 0 0 40px; border-radius: var(--radius-lg); overflow: hidden; }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags a { display: inline-block; padding: 6px 12px; font-size: 0.8rem; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.post-nav a { display: grid; gap: 4px; height: 100%; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--ink); }
.post-nav a:hover { border-color: var(--line-2); }
.post-nav__next { text-align: right; grid-column: 2; }

.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 48px 0 0; padding: 0; list-style: none; }
.pagination a, .pagination span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; }
.pagination .current { background: var(--signal); border-color: var(--signal); color: #fff; }
.pagination a:hover { border-color: var(--ink); }

.inline-search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 40px; }
.empty { display: grid; justify-items: center; gap: 16px; padding: 64px 16px; text-align: center; color: var(--muted); }
.empty > .icon { width: 40px; height: 40px; }
.sitemap { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.sitemap .site-footer__title { color: var(--muted); }
.sitemap ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sitemap a { text-decoration: none; }
.notfound { padding-top: calc(var(--header-h) + 80px); text-align: center; }
.notfound .page-hero__title, .notfound .lede { margin-inline: auto; }
.notfound .hero__actions { justify-content: center; }
.notfound__code { font: 700 clamp(6rem, 25vw, 14rem)/0.9 var(--font-display); margin: 0; color: var(--surface-3); }

.cookie-note { position: fixed; left: 20px; bottom: 20px; z-index: 45; display: flex; align-items: center; gap: 16px; max-width: 420px; padding: 14px 16px; font-size: 0.85rem; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; color: var(--muted); }
@media (max-width: 700px) { .cookie-note { left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ---------- Inner page hero v2 ---------- */

.page-hero { padding-bottom: clamp(40px, 6vw, 80px); }
.page-hero__orb { position: absolute; right: -8%; top: -30%; width: 55vw; max-width: 760px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgb(215 55 42 / 0.12), transparent 62%); animation: orb 14s ease-in-out infinite alternate; pointer-events: none; }
@keyframes orb { to { transform: translate(-6%, 8%) scale(1.08); } }
.page-hero__inner { position: relative; display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .page-hero__inner:not(.page-hero__inner--solo) { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; } }
.page-hero__title { font-size: var(--step-4); max-width: 18ch; }
.page-hero .lede { margin-top: 4px; }
.page-hero__art { position: relative; }
.page-hero__photo { --rx: 0deg; --ry: 0deg; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; transform: perspective(1200px) rotateY(calc(-7deg + var(--ry))) rotateX(calc(3deg + var(--rx))); transition: transform 0.6s var(--ease); }
.page-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__badge { position: absolute; left: -18px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 0.85rem; font-weight: 600; color: var(--ink); background: var(--surface); border-radius: 999px; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite; }
.page-hero__badge .icon { color: var(--ok); }
@keyframes float { 50% { transform: translateY(-8px); } }
@media (max-width: 959px) { .page-hero__art { max-width: 520px; } .page-hero__badge { left: 12px; } }

/* Isometric cabin line art (draws itself in). */
.lineart { width: 100%; max-width: 480px; margin-inline: auto; overflow: visible; }
.page-hero__art .lineart { max-height: min(52svh, 440px); }
.lineart .ln { stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.lineart .ln-face, .lineart .ln-end, .lineart .ln-top { fill: var(--surface); }
.lineart .ln-end { fill: var(--surface-2); }
.lineart .ln-top { fill: #fbfaf8; }
.lineart .ln-roof { fill: #474d56; stroke: var(--ink); }
.lineart .ln-ribs { stroke: var(--line-2); stroke-width: 1; }
.lineart .ln-win { fill: #f3dcae; }
.lineart .ln-door { fill: var(--signal); stroke: var(--ink); }
.lineart .ln-stripe { stroke: var(--signal); stroke-width: 4; }
.lineart .ln-shadow { fill: rgb(21 24 29 / 0.07); }
.lineart .ln-mull { stroke-width: 1.2; }
.lineart .ln-plot { fill: #efece5; stroke: var(--line-2); }
.lineart .ln-plot-grid { stroke: rgb(21 24 29 / 0.08); stroke-width: 1; }
.lineart .ln-route { stroke: var(--signal); stroke-width: 2.5; }
.lineart .ln-pin { fill: var(--signal); stroke: var(--ink); }
.lineart .ln-pin-dot { fill: #fff; stroke: var(--ink); }
.lineart .ln-sheet { fill: #eef3f8; stroke: #9fb3c8; }
.lineart .ln-sheet-grid { stroke: rgb(63 109 154 / 0.18); stroke-width: 1; }
.lineart .ln-plan { stroke: #3f6d9a; stroke-width: 2; }
.lineart .ln-pencil { fill: #f2c94c; }
.lineart .ln-pencil-end { fill: #d9b03a; }
.lineart .ln-frame { fill: #2b3038; stroke: var(--ink); }
.lineart .ln-sling { stroke: var(--ink); stroke-width: 1.2; }
.lineart .ln-cable { stroke: var(--ink); stroke-width: 2; }
.js .lineart .ln { stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; animation-delay: calc(0.2s + var(--d) * 0.09s); fill-opacity: 0; }
@keyframes draw { 60% { fill-opacity: 0; } to { stroke-dashoffset: 0; fill-opacity: 1; } }
.lineart { animation: float 6s ease-in-out 2s infinite; }

/* ---------- Stats band ---------- */

.stats-band { background: var(--dark); color: var(--dark-text); }
.stats-band__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; padding-block: 8px; }
@media (min-width: 800px) { .stats-band__grid { grid-template-columns: repeat(4, 1fr); } }
.stats-band__grid > div { display: grid; gap: 6px; padding: clamp(20px, 3vw, 36px) 12px; }
.stats-band strong { font: 700 clamp(2.2rem, 1.6rem + 2.5vw, 3.6rem)/1 var(--font-display); color: #fff; }
.stats-band span { font-size: 0.88rem; color: var(--dark-muted); }

/* ---------- Article layout (long text + sticky aside) ---------- */

.article-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 1000px) {
	.article-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 72px; }
	.article-layout--toc { grid-template-columns: 260px minmax(0, 1fr); }
}
.article-layout__aside { display: grid; gap: 20px; align-self: stretch; align-content: start; }
@media (max-width: 999px) { .article-layout--toc .article-layout__aside { display: none; } }
.prose--article { max-width: 70ch; font-size: 1.06rem; line-height: 1.8; }
.prose--article > p:first-child { font-size: var(--step-1); line-height: 1.6; color: var(--ink); }
/* Legacy content uses bold lines as sub-headings: give them heading styling. */
.prose--article .lead-head { display: block; margin: 1.1em 0 0.25em; font: 600 1.25rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.prose--article .lead-head + br { display: none; }
.prose--article h2 { padding-top: 0.4em; border-top: 1px solid var(--line); }
.prose--article li { margin-bottom: 0.4em; }
.panel__actions { display: grid; gap: 10px; margin-top: 20px; }
.toc { display: grid; gap: 10px; }
.toc[hidden] { display: none; }
.article-layout--toc.article-layout--plain { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
.article-layout--plain .article-layout__aside { display: none; }
.prose--article .lead-head--section { margin-top: 1.6em; padding-top: 0.6em; font-size: 1.4rem; border-top: 1px solid var(--line); }
.panel .toc { margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.toc__title { margin: 0; font: 600 0.76rem var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.toc ol { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.toc a { display: block; padding: 6px 0 6px 12px; font-size: 0.9rem; color: var(--text); text-decoration: none; border-left: 2px solid var(--line); transition: 0.2s; }
.toc .toc__sub a { padding-left: 24px; font-size: 0.85rem; }
.toc a:hover { color: var(--ink); border-color: var(--line-2); }
.toc a[aria-current] { color: var(--signal-ink); border-color: var(--signal); font-weight: 600; }

/* ---------- Products: filter + promo ---------- */

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.chip-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; font-size: 0.9rem; font-weight: 500; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); border-radius: 999px; transition: 0.2s; }
.chip-btn span { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; font-size: 0.75rem; border-radius: 999px; background: var(--surface-2); }
.chip-btn:hover { border-color: var(--ink); }
.chip-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn[aria-pressed="true"] span { background: rgb(255 255 255 / 0.18); }
.cabin-card[hidden] { display: none; }
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: var(--ease); }

.promo { position: relative; display: grid; gap: 24px; align-items: center; padding: clamp(28px, 5vw, 56px); overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow); }
.promo::before { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; background: radial-gradient(circle, var(--signal-soft), transparent 65%); }
.promo > * { position: relative; }
.promo__title { font-size: var(--step-3); max-width: 18ch; }
.promo__copy p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
@media (min-width: 900px) { .promo { grid-template-columns: 1.1fr 0.9fr; } }

/* ---------- Cabin 3D preview ---------- */

.preview__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .preview__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; } }
.preview__copy .section-title { font-size: var(--step-3); }
.preview__stage { position: relative; min-height: 380px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); background: radial-gradient(60% 70% at 50% 45%, #fff, var(--surface-2)); cursor: grab; }
@media (min-width: 960px) { .preview__stage { min-height: 520px; } }
.preview__fallback img { width: 100%; height: 100%; object-fit: cover; }
.no-webgl .preview__fallback { opacity: 1; }

/* ---------- Contact extras ---------- */

.next-steps { background: var(--surface); border-bottom: 1px solid var(--line); }
.next-steps__list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
@media (min-width: 800px) { .next-steps__list { grid-template-columns: repeat(3, 1fr); } }
.next-steps__list li { display: flex; gap: 16px; padding: 24px 20px; }
@media (min-width: 800px) { .next-steps__list li + li { border-left: 1px solid var(--line); } }
.next-steps__list span { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--signal); color: #fff; font: 600 0.9rem var(--font-display); }
.next-steps__list strong { font: 600 1rem var(--font-display); color: var(--ink); }
.next-steps__list p { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.contact-card strong { font-size: 1.05rem; }
.map { position: relative; background: linear-gradient(135deg, #e9e6df, #f6f5f1); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 40px 40px; }
.map__card { display: flex; align-items: center; gap: 16px; max-width: min(520px, calc(100% - 32px)); padding: 18px 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.map__card > .icon { width: 32px; height: 32px; color: var(--signal); }
.map__card strong { color: var(--ink); }
.map__card p { margin: 2px 0 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- Blog cards ---------- */

.post-card__placeholder { display: grid; place-items: center; height: 100%; padding: 16px; background: radial-gradient(70% 80% at 50% 50%, #fff, var(--surface-2)); }
.post-card__placeholder .lineart { max-width: 220px; animation: none; }
@media (min-width: 900px) {
	.post-card--featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.2fr 1fr; }
	.post-card--featured .post-card__media { aspect-ratio: auto; min-height: 340px; }
	.post-card--featured .post-card__body { padding: 36px; justify-content: center; }
	.post-card--featured .post-card__title { font-size: var(--step-2); }
}

/* ---------- Gallery ---------- */

.masonry__item { position: relative; }
.masonry__zoom { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: var(--ink); opacity: 0; transform: scale(0.8); transition: 0.3s var(--ease); }
.masonry__item:hover .masonry__zoom { opacity: 1; transform: none; }
.masonry__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(21 24 29 / 0.35), transparent 45%); opacity: 0; transition: opacity 0.3s; }
.masonry__item:hover::after { opacity: 1; }

/* ---------- Pinned 3D build (scroll-driven) ---------- */

.build { position: relative; background: var(--surface-2); border-block: 1px solid var(--line); }
.js .build { height: 420vh; }
.build__sticky { padding-block: clamp(56px, 8vw, 96px); }
.js .build__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-block: calc(var(--header-h) + 12px) 24px; overflow: hidden; }
.build__grid { display: grid; gap: 28px; align-items: center; width: 100%; }
.build__copy .section-title { font-size: var(--step-3); max-width: 14ch; }
.build__phases { display: grid; gap: 4px; margin: 8px 0 20px; padding: 0; list-style: none; }
.build__phase { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid transparent; transition: background 0.4s, border-color 0.4s, opacity 0.4s; }
.js .build__phase { opacity: 0.45; }
.js .build__phase[data-active] { opacity: 1; background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-sm); }
.js .build__phase[data-done] { opacity: 0.7; }
.build__num { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); font: 600 0.8rem var(--font-display); color: var(--ink); transition: 0.4s var(--ease); }
.build__phase[data-active] .build__num { background: var(--signal); border-color: var(--signal); color: #fff; }
.build__phase[data-done] .build__num { background: var(--ink); border-color: var(--ink); color: #fff; }
.build__phase h3 { font-size: 1.05rem; margin: 2px 0 4px; }
.build__phase p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.js .build__phase:not([data-active]) p { display: none; }
.build__meter { height: 3px; margin: 0 0 20px; background: var(--line-2); border-radius: 3px; overflow: hidden; }
.build__meter i { display: block; height: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--p, 0)); }
.build__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(60% 70% at 50% 45%, #fff, var(--surface-2)); }
.build__canvas, .config__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; opacity: 0; transition: opacity 1s var(--ease); }
.is-3d .build__canvas, .is-3d .config__canvas { opacity: 1; }
.build__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 1s; }
/* Fallbacks and labels sit above the canvas visually but must never swallow the drag. */
.build__fallback, .preview__fallback, .config__dims, .config__hint { pointer-events: none; }
.is-3d .build__fallback { opacity: 0; }
.build .build__meter i { transform: scaleX(var(--p, 0)); }
@media (min-width: 960px) {
	.build__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; }
	.build__stage { aspect-ratio: auto; height: min(78svh, 680px); }
}
@media (max-width: 959px) {
	.js .build { height: 380vh; }
	.build__grid { gap: 16px; }
	.build__copy { display: contents; }
	.build__copy > .eyebrow, .build__copy > .section-title { order: -2; margin-bottom: 0; }
	.build__copy .section-title { font-size: var(--step-2); max-width: none; }
	.build__stage { order: -1; height: 40svh; aspect-ratio: auto; }
	.js .build__phase:not([data-active]) { display: none; }
	.build__meter { margin: 0; }
}

/* ---------- 3D configurator ---------- */

.config__grid { display: grid; gap: 28px; align-items: stretch; }
@media (min-width: 960px) { .config__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; } }
.config__stage { position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: radial-gradient(60% 70% at 50% 45%, #fff, var(--surface-2)); border: 1px solid var(--line); cursor: grab; }
.config__stage:active { cursor: grabbing; }
@media (min-width: 960px) { .config__stage { min-height: 560px; } }
.config__dims { position: absolute; left: 16px; top: 16px; margin: 0; padding: 8px 14px; font: 600 0.9rem var(--font-display); color: var(--ink); background: rgb(255 255 255 / 0.9); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm); }
.config__hint { position: absolute; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 6px; margin: 0; font-size: 0.8rem; color: var(--muted); }
.hint-touch { display: none; }
@media (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } }
.config__panel { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.config__panel .section-title { font-size: var(--step-3); margin-bottom: 0; }
.config__panel > .muted { margin: 0; }
.config__panel .eyebrow { margin-bottom: 0; }
.config__field { margin: 0; padding: 0; border: 0; min-width: 0; }
.config__field legend { margin-bottom: 10px; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.config__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input, .swatch input, .toggle input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: block; padding: 9px 16px; font-size: 0.9rem; font-weight: 500; border: 1px solid var(--line-2); border-radius: 999px; cursor: pointer; transition: 0.2s; }
.chip:hover span { border-color: var(--ink); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span, .swatch input:focus-visible ~ *, .toggle input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.config__ranges { display: grid; gap: 14px; }
.range { display: grid; gap: 8px; }
.range > span { display: flex; justify-content: space-between; font-size: 0.85rem; font-weight: 600; color: var(--ink); }
.range output { font-family: var(--font-display); color: var(--signal-ink); }
.range input { width: 100%; accent-color: var(--signal); height: 22px; }
.swatches { display: flex; gap: 10px; }
.swatch { position: relative; display: block; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / 0.15); transition: transform 0.2s; }
.swatch:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }
.swatch:hover { transform: scale(1.08); }
.swatch--white { background: #e8eaed; } .swatch--grey { background: #8f979f; } .swatch--sand { background: #d6c7a6; } .swatch--blue { background: #3f6d9a; }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: 600; color: var(--ink); cursor: pointer; }
.toggle span { position: relative; width: 42px; height: 24px; border-radius: 999px; background: var(--surface-3); transition: background 0.2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.25s var(--ease); }
.toggle input:checked + span { background: var(--signal); }
.toggle input:checked + span::after { transform: translateX(18px); }

/* No WebGL: keep the photo/text fallbacks, hide 3D-only UI. */
.no-webgl .config { display: none; }
.no-webgl .js .build, .no-webgl.js .build { height: auto; }

/* ---------- Scroll motion ---------- */

/* Reading progress bar under the header. */
.site-header::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--signal); transform-origin: left; transform: scaleX(var(--scroll, 0)); }

/* Split-word headings rise word by word. */
[data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.06em; margin-bottom: -0.06em; }
[data-split] .w > span { display: inline-block; }
.js [data-split]:not(.is-in) .w > span { transform: translateY(105%); }
.js [data-split] .w > span { transition: transform 0.9s var(--ease); transition-delay: calc(var(--wi, 0) * 55ms); }

/* Parallax: elements drift against the scroll by --speed. */
[data-parallax] { transform: translate3d(0, calc((var(--p, 0.5) - 0.5) * var(--speed, 40px)), 0); will-change: transform; }

/* Cards tip up in 3D as they enter. */
.js .cabin-card[data-reveal]:not(.is-in), .js .use-card[data-reveal]:not(.is-in), .js .testimonial[data-reveal]:not(.is-in) { transform: perspective(900px) rotateX(14deg) translateY(40px); }
.use-card { transition: transform 0.5s var(--ease), box-shadow 0.4s, border-color 0.3s; }
.use-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.use-card:hover .use-card__icon { background: var(--signal); color: #fff; }
.use-card__icon { transition: background 0.3s, color 0.3s; }

/* Cross-document page transitions (Chrome, Edge, Safari 18.2+; ignored elsewhere). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 0.25s var(--ease) both vt-out; }
::view-transition-new(root) { animation: 0.35s var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
.site-header { view-transition-name: site-header; }

/* ---------- Motion ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-tilt][data-reveal].is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }
.js .hero__line { opacity: 0; transform: translateY(0.35em); animation: line-in 0.9s var(--ease) forwards; }
.js .hero__line + .hero__line { animation-delay: 0.1s; }
@keyframes line-in { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
	.js [data-reveal], .js .hero__line { opacity: 1; transform: none; }
	.js [data-split] .w > span, [data-parallax] { transform: none !important; }
	.js .lineart .ln { stroke-dashoffset: 0; fill-opacity: 1; animation: none; }
	.js .build { height: auto; }
	.js .build__sticky { position: static; height: auto; }
	.js .build__phase, .js .build__phase:not([data-active]) { display: grid; opacity: 1; }
	.js .build__phase:not([data-active]) p { display: block; }
}

@media print {
	.site-header, .dock, .cta-band, .site-footer, .cookie-note, .hero__stage { display: none !important; }
	body { background: #fff; color: #000; }
}

/* "Coded By" credit in the footer */
.site-credit { color: inherit; font-weight: 600; text-decoration: none; }
.site-credit:hover { text-decoration: underline; }
