/* ==========================================================================
   Remote Doers — Ocean brand guidelines
   Motion-graphics scroll experience.

   Everything here animates on transform/opacity/clip-path only, so the whole
   page composites on the GPU and never triggers layout during scroll.
   Entrances are driven by an IntersectionObserver adding .is-in; CSS owns the
   choreography, JS only says "now".
   ========================================================================== */

/* -------------------------------------------------------------- foundations */

:root {
	--primary: #1D6FE0;
	--ink: #08172A;
	--paper: #FFFFFF;
	--highlight: #8FE9FF;
	--hover: #A9C8FF;
	--badge: #FFD98A;
	--secondary: #CFF2FF;
	--rating: #F5A623;
	--canvas: #EFF7FF;
	--alt-canvas: #E4EEFF;

	--grey: #5A6B7F;
	--rule: rgba(8, 23, 42, 0.10);
	--rule-dark: rgba(255, 255, 255, 0.12);

	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-back: cubic-bezier(0.34, 1.4, 0.5, 1);

	--pad: clamp(20px, 5vw, 80px);
	--maxw: 1280px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
	scroll-behavior: smooth;
	/* the sticky rail is 64px; keep anchored sections clear of it */
	scroll-padding-top: 90px;
}

body {
	font-family: "Inter", system-ui, sans-serif;
	background: var(--paper);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

h1, h2, h3, h4, .display {
	font-family: "Syne", system-ui, sans-serif;
	font-weight: 800;
	letter-spacing: -0.035em;
	line-height: 0.98;
}

a { color: inherit; }

.mono {
	font-family: ui-monospace, "SF Mono", Menlo, monospace;
	font-variant-numeric: tabular-nums;
	letter-spacing: -0.02em;
}

.wrap {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 var(--pad);
}

section {
	position: relative;
	padding: clamp(80px, 12vh, 150px) 0;
}

.sec-dark { background: var(--ink); color: var(--paper); }
.sec-canvas { background: var(--canvas); }
.sec-alt { background: var(--alt-canvas); }

/* ------------------------------------------------------------- motion base */

.rv {
	opacity: 0;
	transform: translateY(30px);
	transition:
		opacity 0.75s var(--ease) var(--d, 0s),
		transform 0.75s var(--ease) var(--d, 0s);
	will-change: transform, opacity;
}
.rv.is-in { opacity: 1; transform: none; }

/* a hard edge sliding across, the way a motion-graphics wipe reads */
.wipe {
	clip-path: inset(0 100% 0 0);
	transition: clip-path 0.9s var(--ease) var(--d, 0s);
}
.wipe.is-in { clip-path: inset(0 0 0 0); }

/* type that pushes up from behind a mask */
.mask { overflow: hidden; display: block; }
.mask > * {
	display: block;
	transform: translateY(105%) rotate(2deg);
	transition: transform 0.95s var(--ease) var(--d, 0s);
}
.mask.is-in > * { transform: none; }

.pop {
	opacity: 0;
	transform: scale(0.82);
	transition:
		opacity 0.5s var(--ease) var(--d, 0s),
		transform 0.6s var(--ease-back) var(--d, 0s);
}
.pop.is-in { opacity: 1; transform: none; }

/* colour chips grow out of nothing, then settle */
.grow {
	transform: scaleY(0);
	transform-origin: bottom;
	transition: transform 0.8s var(--ease) var(--d, 0s);
}
.grow.is-in { transform: none; }

/* ------------------------------------------------------- scroll progress */

.progress {
	position: fixed;
	inset: 0 0 auto 0;
	height: 3px;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: 0 50%;
	z-index: 200;
}

/* ------------------------------------------------------------------ rail */

.rail {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 150;
	display: flex;
	align-items: center;
	gap: 24px;
	padding: 14px var(--pad);
	background: rgba(255, 255, 255, 0.82);
	-webkit-backdrop-filter: saturate(180%) blur(16px);
	backdrop-filter: saturate(180%) blur(16px);
	border-bottom: 1px solid var(--rule);
	transform: translateY(-100%);
	transition: transform 0.5s var(--ease);
}
.rail.is-up { transform: none; }

.rail__mark {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 17px;
	letter-spacing: -0.035em;
	white-space: nowrap;
}
.rail__mark span { color: var(--primary); }

.rail__nav {
	display: flex;
	gap: 4px;
	margin-left: auto;
	list-style: none;
	overflow-x: auto;
	scrollbar-width: none;
}
.rail__nav::-webkit-scrollbar { display: none; }
.rail__nav a {
	display: block;
	padding: 6px 11px;
	border-radius: 99px;
	font-size: 12.5px;
	font-weight: 500;
	color: var(--grey);
	text-decoration: none;
	white-space: nowrap;
	transition: background 0.2s, color 0.2s;
}
.rail__nav a:hover { background: rgba(8, 23, 42, 0.06); color: var(--ink); }
.rail__nav a.is-active { background: var(--primary); color: #fff; }

/* ------------------------------------------------------------------ hero */

.hero {
	min-height: 100svh;
	background: var(--ink);
	color: var(--paper);
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
	padding: 120px 0 0;
}

/* slow-drifting light, the ambient layer under everything */
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.5;
	pointer-events: none;
	animation: drift 22s ease-in-out infinite alternate;
}
.blob--1 { width: 46vw; height: 46vw; background: var(--primary); top: -14%; right: -8%; }
.blob--2 { width: 34vw; height: 34vw; background: #0E4B9E; bottom: -14%; left: -8%; animation-delay: -8s; }
.blob--3 { width: 22vw; height: 22vw; background: var(--highlight); top: 42%; left: 34%; opacity: 0.18; animation-delay: -14s; }

@keyframes drift {
	0%   { transform: translate3d(0, 0, 0) scale(1); }
	50%  { transform: translate3d(4%, -6%, 0) scale(1.12); }
	100% { transform: translate3d(-5%, 5%, 0) scale(0.95); }
}

.hero__inner { position: relative; z-index: 2; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--highlight);
	margin-bottom: 28px;
}
.hero__eyebrow i {
	width: 7px; height: 7px; border-radius: 50%;
	background: var(--highlight);
	animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
	0%   { box-shadow: 0 0 0 0 rgba(143, 233, 255, 0.6); }
	70%  { box-shadow: 0 0 0 12px rgba(143, 233, 255, 0); }
	100% { box-shadow: 0 0 0 0 rgba(143, 233, 255, 0); }
}

.hero h1 {
	font-size: clamp(52px, 12vw, 168px);
	line-height: 0.86;
	margin-bottom: 34px;
}
.hero h1 .tint { color: var(--primary); }

.hero__sub {
	font-size: clamp(16px, 1.5vw, 20px);
	color: #93AECC;
	max-width: 46ch;
	margin-bottom: 44px;
}

.hero__meta {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(24px, 5vw, 64px);
	margin-bottom: 56px;
}
.hero__meta div { font-size: 12px; color: #6E8AA8; letter-spacing: 0.05em; }
.hero__meta b {
	display: block;
	font-family: "Syne", sans-serif;
	font-size: 19px;
	font-weight: 700;
	color: #fff;
	letter-spacing: -0.02em;
	margin-top: 4px;
}

/* the palette strip: ten bars that rise like an equaliser */
.strip {
	display: flex;
	height: clamp(90px, 14vh, 150px);
	width: 100%;
}
.strip span {
	flex: 1;
	position: relative;
	transition: flex 0.5s var(--ease);
}
.strip span::after {
	content: attr(data-hex);
	position: absolute;
	left: 50%; bottom: 12px;
	transform: translateX(-50%) translateY(6px);
	font-family: ui-monospace, Menlo, monospace;
	font-size: 10px;
	color: var(--ink);
	opacity: 0;
	transition: opacity 0.25s, transform 0.25s;
	pointer-events: none;
	white-space: nowrap;
}
.strip:hover span { flex: 0.75; }
.strip span:hover { flex: 2.4; }
.strip span:hover::after { opacity: 0.85; transform: translateX(-50%); }

.scrollcue {
	position: absolute;
	right: var(--pad); bottom: clamp(165px, 20vh, 210px);
	writing-mode: vertical-rl;
	z-index: 3;
	font-size: 10.5px;
	letter-spacing: 0.22em;
	text-transform: uppercase;
	color: #5E7B99;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}
.scrollcue::after {
	content: "";
	width: 1px; height: 46px;
	background: linear-gradient(#5E7B99, transparent);
	animation: cue 2s ease-in-out infinite;
	transform-origin: top;
}
@keyframes cue {
	0%, 100% { transform: scaleY(0.3); opacity: 0.3; }
	50%      { transform: scaleY(1); opacity: 1; }
}

/* --------------------------------------------------------------- headings */

.sec-head { margin-bottom: clamp(40px, 6vw, 72px); }

.sec-num {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 13px;
	letter-spacing: 0.16em;
	color: var(--primary);
	display: block;
	margin-bottom: 16px;
}
.sec-dark .sec-num { color: var(--highlight); }

.sec-head h2 {
	font-size: clamp(34px, 5.4vw, 68px);
	max-width: 20ch;
}

.lede {
	font-size: clamp(16px, 1.6vw, 20px);
	color: var(--grey);
	max-width: 62ch;
	margin-top: 22px;
	line-height: 1.55;
}
.sec-dark .lede { color: #93AECC; }

/* ------------------------------------------------------------- swatch grid */

.sw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: clamp(16px, 2vw, 28px);
}
/* five accents want five columns — at the default minimum they wrap to 4 + 1
   and leave an orphan sitting alone on its own row */
.sw-grid--5 { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

.sw {
	border-radius: 18px;
	overflow: hidden;
	background: var(--paper);
	border: 1px solid var(--rule);
	transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
	cursor: pointer;
}
.sw:hover {
	transform: translateY(-6px);
	box-shadow: 0 22px 50px rgba(8, 23, 42, 0.14);
}
.sec-dark .sw { background: rgba(255,255,255,.04); border-color: var(--rule-dark); }

.sw__chip {
	height: 168px;
	position: relative;
	display: flex;
	align-items: flex-end;
	padding: 20px;
	overflow: hidden;
}
.sw__chip::before {
	content: "";
	position: absolute;
	inset: 0;
	background: inherit;
	transform: translateY(101%);
	transition: transform 0.85s var(--ease) var(--d, 0s);
}
.sw.is-in .sw__chip::before { transform: none; }

.sw__role {
	position: relative;
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 21px;
	letter-spacing: -0.02em;
	z-index: 1;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .5s var(--ease) calc(var(--d, 0s) + .45s),
	            transform .5s var(--ease) calc(var(--d, 0s) + .45s);
}
.sw.is-in .sw__role { opacity: 1; transform: none; }

.sw__body { padding: 18px 20px 20px; }
.sw__note { font-size: 13.5px; color: var(--grey); min-height: 42px; }
.sec-dark .sw__note { color: #93AECC; }

.sw__hex {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid var(--rule);
	font-size: 14px;
	font-weight: 600;
}
.sec-dark .sw__hex { border-color: var(--rule-dark); }
.sw__copy { font-size: 11px; color: var(--grey); letter-spacing: .04em; }
.sw:hover .sw__copy { color: var(--primary); }

.sw__specs {
	margin-top: 12px;
	font-size: 11.5px;
	color: var(--grey);
	display: grid;
	gap: 3px;
}
.sw__specs span { display: flex; justify-content: space-between; gap: 12px; }

/* ---------------------------------------------------------- proportion bar */

.prop {
	display: flex;
	border: 1px solid var(--rule);
	height: clamp(90px, 13vw, 150px);
	border-radius: 16px;
	overflow: hidden;
	margin-top: 12px;
}
.prop span + span { box-shadow: -1px 0 0 rgba(8, 23, 42, .12); }
.prop span {
	flex-grow: 0;
	flex-basis: 0;
	display: flex;
	align-items: flex-end;
	padding: 18px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	overflow: hidden;
	transition: flex-grow 1.1s var(--ease) var(--d, 0s);
}
.prop.is-in span { flex-grow: var(--w); }

/* ------------------------------------------------------------- contrast */

.ct { display: grid; gap: 10px; }

.ct__row {
	display: grid;
	grid-template-columns: 56px minmax(0, 1.5fr) minmax(0, 2fr) 96px 74px;
	gap: clamp(10px, 1.6vw, 22px);
	align-items: center;
	padding: 13px 16px;
	border-radius: 12px;
	background: var(--paper);
	border: 1px solid var(--rule);
}
.ct__row.is-bad { background: #FFF6F6; border-color: #F3D4D4; }

.ct__aa {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 40px;
	border-radius: 9px;
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 15px;
	border: 1px solid var(--rule);
}
.ct__name { font-weight: 600; font-size: 14.5px; }
.ct__where { font-size: 13px; color: var(--grey); }

.ct__meter { position: relative; }
.ct__val { font-size: 15px; font-weight: 700; }
.ct__track {
	height: 4px;
	border-radius: 4px;
	background: rgba(8, 23, 42, 0.09);
	margin-top: 5px;
	overflow: hidden;
}
.ct__fill {
	height: 100%;
	border-radius: 4px;
	background: var(--primary);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 1s var(--ease) var(--d, 0s);
}
.ct__row.is-in .ct__fill { transform: scaleX(var(--p)); }
.ct__row.is-bad .ct__fill { background: #D14343; }

.tag {
	justify-self: end;
	padding: 5px 10px;
	border-radius: 7px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.03em;
	background: var(--secondary);
	color: #0B4A6B;
}
.tag--bad { background: #FBDCDC; color: #96201F; }

/* ------------------------------------------------------------ before/after */

.fix { display: grid; gap: clamp(28px, 4vw, 48px); }
.fix__card {
	background: var(--paper);
	border: 1px solid var(--rule);
	border-radius: 18px;
	padding: clamp(22px, 3vw, 34px);
}
.fix__row {
	display: flex;
	align-items: center;
	gap: clamp(14px, 2.5vw, 30px);
	margin-top: 22px;
	flex-wrap: wrap;
}
.fix__demo { flex: 1 1 190px; min-width: 170px; }
.fix__box {
	height: 92px;
	border-radius: 12px;
	border: 1px solid var(--rule);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 26px;
	letter-spacing: 0.08em;
	margin-bottom: 10px;
}
.fix__arrow {
	font-size: 22px;
	color: #B9C7D6;
	padding-bottom: 34px;
	animation: nudge 1.8s ease-in-out infinite;
}
@keyframes nudge {
	0%, 100% { transform: translateX(0); }
	50%      { transform: translateX(6px); }
}
.fix__label { font-size: 13px; font-weight: 600; }
.fix__meta { font-size: 12px; color: var(--grey); }

/* ---------------------------------------------------------------- shots */

.shot {
	width: 100%;
	display: block;
	border-radius: 16px;
	border: 1px solid var(--rule);
	box-shadow: 0 30px 70px rgba(8, 23, 42, 0.13);
}
figure { margin: 0; }
figcaption { font-size: 13px; color: var(--grey); margin-top: 14px; max-width: 70ch; }
.sec-dark figcaption { color: #93AECC; }

.parallax { will-change: transform; }

/* ------------------------------------------------------------ components */

.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: 16px;
	padding: 0 34px;
	height: 58px;
	border-radius: 99px;
	border: 0;
	cursor: pointer;
	transition: transform 0.25s var(--ease-back), box-shadow 0.25s var(--ease);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(8, 23, 42, 0.2); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--hover); color: var(--ink); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--primary); }
.btn--soft { background: var(--secondary); color: var(--ink); }

.chip {
	display: inline-block;
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: 14px;
	padding: 8px 18px;
	border-radius: 9px;
	transition: transform 0.25s var(--ease-back);
}
.chip:hover { transform: translateY(-3px) rotate(-1.5deg); }

.stack { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

.block {
	border-radius: 16px;
	padding: 28px;
	min-height: 180px;
	transition: transform 0.4s var(--ease);
}
.block:hover { transform: translateY(-6px); }
.block h4 { font-size: 19px; margin-bottom: 8px; }
.block p { font-size: 13.5px; color: var(--grey); }

/* ------------------------------------------------------------- tint grid */

.tints {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
	gap: 10px;
}
.tint {
	opacity: 0;
	transform: scale(0.6) translateY(14px);
	transition:
		opacity 0.45s var(--ease) var(--d, 0s),
		transform 0.55s var(--ease-back) var(--d, 0s);
}
.tint.is-in { opacity: 1; transform: none; }
.tint span {
	display: block;
	height: 58px;
	border-radius: 10px;
	border: 1px solid var(--rule);
	transition: transform 0.3s var(--ease-back);
}
.tint:hover span { transform: scale(1.14); }
.tint b {
	display: block;
	font-family: ui-monospace, Menlo, monospace;
	font-size: 10px;
	font-weight: 500;
	margin-top: 6px;
	color: var(--ink);
}
.tint i {
	display: block;
	font-style: normal;
	font-size: 9px;
	color: #9FB0C2;
}

/* --------------------------------------------------------------- marquee */

.marquee {
	overflow: hidden;
	padding: 22px 0;
	background: var(--primary);
	color: #fff;
	white-space: nowrap;
	border-top: 1px solid rgba(255,255,255,.14);
	border-bottom: 1px solid rgba(255,255,255,.14);
}
.marquee__track {
	display: inline-flex;
	gap: 44px;
	animation: slide 38s linear infinite;
}
.marquee span {
	font-family: "Syne", sans-serif;
	font-weight: 700;
	font-size: clamp(15px, 2vw, 22px);
	letter-spacing: -0.01em;
	display: inline-flex;
	align-items: center;
	gap: 44px;
}
.marquee span::after {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: rgba(255,255,255,.5);
}
@keyframes slide {
	from { transform: translateX(0); }
	to   { transform: translateX(-50%); }
}

/* ------------------------------------------------------------- type page */

.type-row {
	display: grid;
	grid-template-columns: minmax(150px, 200px) 1fr;
	gap: clamp(20px, 4vw, 50px);
	padding: clamp(24px, 4vw, 40px) 0;
	border-top: 1px solid var(--rule);
	align-items: baseline;
}
.type-row__meta b {
	display: block;
	font-family: "Syne", sans-serif;
	font-size: 19px;
	font-weight: 700;
}
.type-row__meta span { font-size: 12.5px; color: var(--grey); }

.specimen {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: clamp(30px, 5vw, 62px);
	line-height: 1.02;
	letter-spacing: -0.04em;
}
.specimen--serif {
	font-family: "Times New Roman", Times, serif;
	font-weight: 400;
	letter-spacing: -0.01em;
}
.specimen--inter {
	font-family: "Inter", sans-serif;
	font-weight: 400;
	font-size: clamp(16px, 1.7vw, 20px);
	line-height: 1.55;
	letter-spacing: -0.005em;
	color: var(--grey);
	max-width: 54ch;
}

.scale-table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.scale-table td { padding: 11px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.scale-table td:first-child { font-weight: 600; }
.scale-table td:last-child { text-align: right; color: var(--grey); font-size: 13px; }

/* ----------------------------------------------------------------- code */

.code {
	background: var(--ink);
	color: #BFD8F5;
	border-radius: 16px;
	padding: clamp(20px, 3vw, 32px);
	font-family: ui-monospace, Menlo, monospace;
	font-size: 13px;
	line-height: 1.8;
	overflow-x: auto;
	position: relative;
}
.code .k { color: #7FB2F0; }
.code .v { color: var(--badge); }
.code .c { color: #5E7B99; }

.copybtn {
	position: absolute;
	top: 16px; right: 16px;
	background: rgba(255,255,255,.1);
	color: #fff;
	border: 0;
	border-radius: 8px;
	padding: 7px 13px;
	font-size: 12px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s;
}
.copybtn:hover { background: rgba(255,255,255,.2); }

/* ------------------------------------------------------------- do / don't */

/* two columns exactly: each Do must sit beside the Don't it answers */
.dd { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 30px) clamp(20px, 3vw, 44px); }
@media (max-width: 720px) { .dd { grid-template-columns: 1fr; } }
.dd__item {
	border-top: 3px solid;
	padding-top: 18px;
}
.dd__item.do { border-color: #1F9254; }
.dd__item.dont { border-color: #C23934; }
.dd__tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.do .dd__tag { color: #1F9254; }
.dont .dd__tag { color: #C23934; }
.dd__item p { font-size: 14.5px; margin-top: 7px; color: var(--grey); }

/* ---------------------------------------------------------------- limits */

.limit { display: grid; gap: 30px; }
.limit__item { display: grid; grid-template-columns: 54px 1fr; gap: 20px; align-items: start; }
.limit__n {
	font-family: "Syne", sans-serif;
	font-weight: 800;
	font-size: 34px;
	color: var(--primary);
	line-height: 1;
}
.sec-dark .limit__n { color: var(--highlight); }

.callout {
	background: var(--canvas);
	border-radius: 16px;
	padding: clamp(20px, 3vw, 30px);
	margin-top: 32px;
}
.sec-dark .callout { background: rgba(255,255,255,.05); }
.callout h4 { font-size: 17px; margin-bottom: 8px; }
.callout p { font-size: 14px; color: var(--grey); }
.sec-dark .callout p { color: #93AECC; }

/* ----------------------------------------------------------------- footer */

.foot {
	background: var(--ink);
	color: #93AECC;
	padding: clamp(60px, 9vw, 110px) 0 46px;
}
.foot__top {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 30px;
	flex-wrap: wrap;
	padding-bottom: 34px;
	border-bottom: 1px solid var(--rule-dark);
}
.foot h3 { font-size: clamp(30px, 5vw, 62px); color: #fff; }
.foot__dots { display: flex; gap: 9px; }
.foot__dots span {
	width: 34px; height: 34px; border-radius: 9px;
	animation: bob 3.6s ease-in-out infinite;
}
.foot__dots span:nth-child(2) { animation-delay: .2s; }
.foot__dots span:nth-child(3) { animation-delay: .4s; }
.foot__dots span:nth-child(4) { animation-delay: .6s; }
@keyframes bob {
	0%, 100% { transform: translateY(0); }
	50%      { transform: translateY(-9px); }
}
.foot__bot {
	display: flex;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	margin-top: 26px;
	font-size: 12.5px;
}

/* ------------------------------------------------------------------ toast */

.toast {
	position: fixed;
	left: 50%; bottom: 34px;
	transform: translate(-50%, 16px);
	background: var(--ink);
	color: #fff;
	padding: 12px 22px;
	border-radius: 11px;
	font-size: 13.5px;
	font-weight: 500;
	opacity: 0;
	pointer-events: none;
	z-index: 300;
	transition: opacity 0.25s, transform 0.25s var(--ease);
	box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ------------------------------------------------------------ responsive */

@media (max-width: 860px) {
	.ct__row {
		grid-template-columns: 46px 1fr 86px;
		grid-template-areas: "aa name val" "aa where tag";
		row-gap: 4px;
	}
	.ct__aa   { grid-area: aa; }
	.ct__name { grid-area: name; }
	.ct__where{ grid-area: where; }
	.ct__meter{ grid-area: val; }
	.tag      { grid-area: tag; }
	.type-row { grid-template-columns: 1fr; }
	.limit__item { grid-template-columns: 1fr; gap: 8px; }
	.rail__mark { display: none; }
	.rail__nav { margin-left: 0; }
}

/* ------------------------------------------------------- reduced motion */

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
	.rv, .pop, .tint { opacity: 1; transform: none; }
	.wipe { clip-path: none; }
	.mask > * { transform: none; }
	.grow { transform: none; }
	.sw__chip::before { transform: none; }
	.sw__role { opacity: 1; transform: none; }
	.prop span { flex-grow: var(--w); }
	.ct__fill { transform: scaleX(var(--p)); }
}

/* ==========================================================================
   Live product frames

   The application shots are not images — they are the real site in an iframe,
   pinned to the Ocean palette with the demo chrome switched off. A frame is
   laid out at its true 1440px width and scaled down with a transform, because
   scaling is the only way to shrink a page without changing the breakpoint it
   renders at. JS writes --s from the container width.
   ========================================================================== */

.live {
	position: relative;
	width: 100%;
	border-radius: 16px;
	overflow: hidden;
	border: 1px solid var(--rule);
	box-shadow: 0 30px 70px rgba(8, 23, 42, 0.13);
	background: var(--canvas);
	/* height is set by JS to frameHeight * scale; this holds the space until then */
	aspect-ratio: var(--ar, 16 / 10);
}
.sec-dark .live { border-color: var(--rule-dark); }

.live iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--fw, 1440px);
	height: var(--fh, 900px);
	border: 0;
	transform: scale(var(--s, 1));
	transform-origin: 0 0;
	display: block;
}

/* a browser bar, so a live page reads as a page and not as a stray panel */
.live--chrome { padding-top: 34px; background: #dfe7f1; }
.live--chrome::before {
	content: "";
	position: absolute;
	top: 12px; left: 14px;
	width: 38px; height: 9px;
	border-radius: 99px;
	background:
		radial-gradient(circle 4.5px at 4.5px 4.5px, #F5A29B 98%, transparent) 0 0/14px 9px no-repeat,
		radial-gradient(circle 4.5px at 4.5px 4.5px, #F7CE7E 98%, transparent) 14px 0/14px 9px no-repeat,
		radial-gradient(circle 4.5px at 4.5px 4.5px, #A6D69B 98%, transparent) 28px 0/14px 9px no-repeat;
}
.live--chrome::after {
	content: attr(data-url);
	position: absolute;
	top: 9px; left: 64px; right: 14px;
	height: 16px;
	border-radius: 99px;
	background: rgba(255, 255, 255, .85);
	font-family: ui-monospace, Menlo, monospace;
	font-size: 9.5px;
	line-height: 16px;
	text-align: center;
	color: #6E8AA8;
	overflow: hidden;
	white-space: nowrap;
}
.live--chrome iframe { top: 34px; }

.live__note {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: 14px;
	font-size: 12px;
	color: var(--grey);
}
.sec-dark .live__note { color: #93AECC; }
.live__note i {
	width: 6px; height: 6px; border-radius: 50%;
	background: #3FBF7F;
	animation: pulse 2.4s ease-out infinite;
}
