/* =====================================================================
   VRS Elite Football Group — concept homepage
   Original code. Layout ideas drawn from six reference demos.
   ===================================================================== */

/* ---------- Themes ---------- */
:root,
[data-theme="pitch"] {
	--bg: #07160e;
	--bg-2: #0b2015;
	--surface: #10291c;
	--ink: #eaf4ee;
	--muted: #93ae9f;
	--line: rgba(234, 244, 238, .14);
	--accent: #5beea1;
	--on-accent: #05140b;
	--photo-shade: 7, 22, 14;
	--stroke: rgba(234, 244, 238, .32);
}
[data-theme="gold"] {
	--bg: #0a0d16;
	--bg-2: #0f1320;
	--surface: #161b2b;
	--ink: #f2ede2;
	--muted: #a7a091;
	--line: rgba(242, 237, 226, .14);
	--accent: #d6b36a;
	--on-accent: #15100a;
	--photo-shade: 10, 13, 22;
	--stroke: rgba(242, 237, 226, .3);
}
[data-theme="matchday"] {
	--bg: #f1f3ef;
	--bg-2: #e5e9e3;
	--surface: #ffffff;
	--ink: #0b1a12;
	--muted: #526459;
	--line: rgba(11, 26, 18, .14);
	--accent: #0b7a48;
	--on-accent: #ffffff;
	--photo-shade: 8, 24, 15;
	--stroke: rgba(11, 26, 18, .35);
}
[data-theme="derby"] {
	--bg: #120a0a;
	--bg-2: #1a0e0f;
	--surface: #231315;
	--ink: #f7eeea;
	--muted: #b59e99;
	--line: rgba(247, 238, 234, .14);
	--accent: #ff4a3d;
	--on-accent: #1a0605;
	--photo-shade: 18, 10, 10;
	--stroke: rgba(247, 238, 234, .3);
}

:root {
	--font: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--gutter: clamp(16px, 4vw, 64px);
	--maxw: 1440px;
	--radius: 14px;
	--ease: cubic-bezier(.2, .7, .1, 1);
	--header-h: 76px;
	--on-photo: #f4f7f5;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-stretch: 100%;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
	transition: background-color .5s var(--ease), color .5s var(--ease);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.sr-only {
	position: absolute; 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: 200;
	background: var(--accent); color: var(--on-accent);
	padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(88px, 12vw, 180px); }

/* ---------- Type ---------- */
.display {
	font-style: italic;
	font-weight: 900;
	font-stretch: 125%;
	letter-spacing: -.02em;
	line-height: .9;
}
.h2 { font-size: clamp(2.5rem, 6.4vw, 6rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; font-stretch: 112%; letter-spacing: -.01em; line-height: 1.15; }
.section-head {
	display: flex; flex-wrap: wrap; justify-content: space-between;
	gap: 28px clamp(32px, 6vw, 120px);
	align-items: flex-end;
	margin-bottom: clamp(48px, 7vw, 96px);
}
.section-head .h2 { flex: 0 1 auto; max-width: 100%; }
.section-head .section-intro { flex: 0 1 28em; }
/* Headings that sit in a half-width column */
.dev-grid .h2, .about-grid .h2, .contact-grid .h2 { font-size: clamp(2.3rem, 4.3vw, 4.3rem); line-height: .95; overflow-wrap: anywhere; }
.section-intro { color: var(--muted); font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 34em; line-height: 1.55; }

/* ---------- Buttons ---------- */
.btn {
	--b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line);
	position: relative; isolation: isolate; overflow: hidden;
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	min-height: 52px; padding: 0 26px;
	border-radius: 999px; border: 1px solid var(--b-bd);
	background: var(--b-bg); color: var(--b-fg);
	font-weight: 700; font-size: 1rem; font-stretch: 108%;
	text-decoration: none; cursor: pointer;
	transition: color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: var(--ink);
	transform: translateY(101%); border-radius: inherit;
	transition: transform .45s var(--ease);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--bg); border-color: var(--ink); }
.btn-accent { --b-bg: var(--accent); --b-fg: var(--on-accent); --b-bd: var(--accent); }
.btn-ghost { --b-fg: var(--on-photo); --b-bd: rgba(255, 255, 255, .35); }
.btn-ghost::before { background: var(--on-photo); }
.btn-ghost:hover { color: #0b1a12; border-color: var(--on-photo); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: .95rem; }
.btn-wide { width: 100%; }

.round-btn {
	width: 56px; height: 56px; border-radius: 50%;
	border: 1px solid var(--line); background: transparent; cursor: pointer;
	display: grid; place-items: center;
	transition: background-color .3s, color .3s, border-color .3s;
}
.round-btn svg { width: 22px; height: 22px; }
.round-btn:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
	display: grid; place-items: center;
	position: fixed; inset: 0; z-index: 150; pointer-events: none;
}
.preloader-half { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--bg-2); }
.preloader-top { top: 0; }
.preloader-bottom { bottom: 0; }
.preloader-pitch { position: relative; width: min(42vw, 220px); overflow: visible; }
.preloader-pitch * { fill: none; stroke: var(--accent); stroke-width: 3; }
.preloader-pitch .pl-spot { fill: var(--accent); stroke: none; }
.preloader.is-done { display: none; }

/* ---------- Cursor ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
	.has-cursor .cursor {
		display: grid; place-items: center;
		position: fixed; left: 0; top: 0; z-index: 140; pointer-events: none;
		width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%;
		border: 1.5px solid var(--accent);
		transition: width .3s var(--ease), height .3s var(--ease), margin .3s var(--ease), background-color .3s, opacity .3s;
	}
	.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: color-mix(in srgb, var(--accent) 18%, transparent); }
	.cursor.is-label { width: 92px; height: 92px; margin: -46px 0 0 -46px; background: var(--accent); }
	.cursor-label { font-size: .8rem; font-weight: 700; color: var(--on-accent); opacity: 0; transition: opacity .2s; }
	.cursor.is-label .cursor-label { opacity: 1; }
	.cursor.is-hidden { opacity: 0; }
}

/* ---------- Header ---------- */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header-h);
	display: flex; align-items: center; justify-content: space-between; gap: 24px;
	padding-inline: var(--gutter);
	color: var(--on-photo);
	transition: transform .5s var(--ease), background-color .4s, color .4s, border-color .4s;
	border-bottom: 1px solid transparent;
}
.site-header.is-solid {
	background: color-mix(in srgb, var(--bg) 82%, transparent);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	color: var(--ink); border-color: var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }
.menu-open .site-header { color: var(--ink); background: transparent; border-color: transparent; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.brand { display: block; color: inherit; flex-shrink: 0; }
.brand-lockup { height: 40px; width: auto; display: block; }
.brand-lockup > g { color: var(--accent); }

.main-nav { display: flex; gap: clamp(18px, 2.4vw, 40px); }
.main-nav a {
	position: relative; text-decoration: none; font-weight: 600; font-size: .98rem; padding-block: 6px;
}
.main-nav a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
	transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav a:hover::after, .main-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }

.header-actions { display: flex; align-items: center; gap: 12px; }

.theme-picker { position: relative; }
.theme-toggle {
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid currentColor;
	border-color: color-mix(in srgb, currentColor 35%, transparent);
	background: transparent; cursor: pointer; display: grid; place-items: center;
}
.theme-dot {
	width: 20px; height: 20px; border-radius: 50%;
	background: conic-gradient(#5beea1 0 25%, #d6b36a 0 50%, #f1f3ef 0 75%, #ff4a3d 0);
	transition: transform .6s var(--ease);
}
.theme-toggle:hover .theme-dot { transform: rotate(90deg); }
.theme-menu {
	position: absolute; right: 0; top: calc(100% + 12px); min-width: 220px;
	background: var(--surface); color: var(--ink);
	border: 1px solid var(--line); border-radius: var(--radius);
	padding: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .55);
}
.theme-menu-title { font-size: .82rem; color: var(--muted); padding: 6px 10px 8px; }
.theme-menu button {
	display: flex; align-items: center; gap: 12px; width: 100%;
	padding: 10px; border: 0; border-radius: 10px; background: transparent;
	text-align: left; cursor: pointer; font-weight: 600;
}
.theme-menu button:hover { background: var(--bg-2); }
.theme-menu button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.sw { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, .35); }
.sw-pitch { background: linear-gradient(135deg, #07160e 50%, #5beea1 50%); }
.sw-gold { background: linear-gradient(135deg, #0a0d16 50%, #d6b36a 50%); }
.sw-matchday { background: linear-gradient(135deg, #f1f3ef 50%, #0b7a48 50%); }
.sw-derby { background: linear-gradient(135deg, #120a0a 50%, #ff4a3d 50%); }

.menu-toggle {
	display: none; align-items: center; gap: 12px;
	background: transparent; border: 0; cursor: pointer; font-weight: 600; padding: 8px 0;
}
.menu-toggle-lines { display: grid; gap: 6px; width: 26px; }
.menu-toggle-lines span { height: 2px; background: currentColor; transition: transform .4s var(--ease); }
.menu-open .menu-toggle-lines span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-open .menu-toggle-lines span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Overlay menu ---------- */
.overlay-menu {
	position: fixed; inset: 0; z-index: 90;
	background: var(--bg-2);
	display: flex; flex-direction: column; justify-content: center;
	padding: calc(var(--header-h) + 24px) var(--gutter) 32px;
	clip-path: circle(0% at calc(100% - 60px) 38px);
	transition: clip-path .8s var(--ease);
}
.overlay-menu.is-open { clip-path: circle(150% at calc(100% - 60px) 38px); }
.overlay-nav { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.overlay-nav a {
	font-style: italic; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em;
	font-size: clamp(1.9rem, 7vw, 4.6rem); line-height: 1.08; text-decoration: none; text-align: center;
	color: var(--ink);
	transition: color .35s, transform .45s var(--ease);
}
.overlay-nav a:hover, .overlay-nav a:focus-visible { color: var(--accent); transform: skewX(-6deg); }
.overlay-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 48px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
	position: relative; min-height: 100svh; overflow: hidden;
	display: flex; align-items: flex-end;
	color: var(--on-photo); background: #06100a;
	padding: calc(var(--header-h) + 48px) 0 clamp(40px, 6vw, 72px);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 110%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(180deg, rgba(var(--photo-shade), .55) 0%, rgba(var(--photo-shade), .35) 40%, rgba(var(--photo-shade), .92) 100%),
		linear-gradient(90deg, rgba(var(--photo-shade), .75) 0%, rgba(var(--photo-shade), 0) 70%);
}
.hero-trail { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-trail img {
	position: absolute; left: 0; top: 0; width: clamp(140px, 13vw, 220px); aspect-ratio: 4 / 5;
	object-fit: cover; border-radius: 10px; opacity: 0; will-change: transform, opacity;
}
.hero-inner { position: relative; z-index: 2; }
.hero-kicker { font-weight: 600; color: var(--accent); margin-bottom: 18px; font-size: 1.05rem; }
[data-theme="matchday"] .hero-kicker { color: #6ee7a8; }
.hero-title {
	font-size: clamp(3.6rem, 13.4vw, 13.5rem);
	line-height: .84;
	margin-left: -.04em;
	text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding: .02em .08em .06em 0; }
.hero-title .line > span { display: inline-block; }
.hero-title .line:nth-child(2) { padding-left: .9em; }
.hero-title .line:nth-child(2) > span { color: transparent; -webkit-text-stroke: max(1.5px, .012em) var(--on-photo); }
.hero-bottom {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 48px;
	margin-top: clamp(28px, 4vw, 48px);
}
.hero-lead { max-width: 33em; font-size: clamp(1.05rem, 1.3vw, 1.2rem); color: rgba(244, 247, 245, .82); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-right: clamp(0px, 14vw, 220px); }

.scroll-circle {
	position: absolute; z-index: 3; right: var(--gutter); bottom: clamp(40px, 6vw, 72px);
	width: clamp(110px, 10vw, 150px); aspect-ratio: 1; color: var(--on-photo);
	display: grid; place-items: center; text-decoration: none;
}
.scroll-circle svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scroll-circle text { fill: currentColor; font-size: 15.5px; font-weight: 600; letter-spacing: .06em; font-stretch: 110%; }
.scroll-circle-arrow {
	width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); color: var(--on-accent);
	display: grid; place-items: center; transition: transform .4s var(--ease);
}
.scroll-circle-arrow svg { position: static; width: 44%; height: 44%; }
.scroll-circle:hover .scroll-circle-arrow { transform: scale(1.12); }

/* ---------- Marquee ---------- */
.marquee {
	overflow: hidden; border-block: 1px solid var(--line);
	padding-block: clamp(18px, 2.4vw, 30px); background: var(--bg);
}
.marquee-track, .footer-band-track { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); width: max-content; will-change: transform; }
.marquee span {
	font-style: italic; font-weight: 900; font-stretch: 125%; letter-spacing: -.01em;
	font-size: clamp(2.2rem, 6vw, 5.4rem); line-height: 1; white-space: nowrap;
	color: transparent; -webkit-text-stroke: 1.3px var(--stroke);
	transition: color .4s, -webkit-text-stroke-color .4s;
}
.marquee span:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.marquee i, .footer-band i {
	flex-shrink: 0; width: clamp(28px, 3vw, 44px); aspect-ratio: 1; border-radius: 50%;
	border: 2px solid var(--accent); position: relative;
}
.marquee i::before, .footer-band i::before { content: ""; position: absolute; left: -30%; right: -30%; top: 50%; height: 2px; margin-top: -1px; background: var(--accent); }
.marquee i::after, .footer-band i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 22%; aspect-ratio: 1; border-radius: 50%; background: var(--accent); transform: translate(-50%, -50%); }

/* ---------- Agency statement ---------- */
.statement {
	font-size: clamp(1.75rem, 4.1vw, 3.7rem); line-height: 1.12; font-weight: 700; font-stretch: 112%;
	letter-spacing: -.02em; max-width: 24ch;
	text-wrap: pretty;
}
.statement .w { color: var(--muted); opacity: .45; transition: color .2s, opacity .2s; }
.statement .w.is-on { color: var(--ink); opacity: 1; }
.facts {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: clamp(64px, 9vw, 130px); border-top: 1px solid var(--line);
}
.fact { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 14px; padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dd { font-size: clamp(3rem, 7vw, 6.5rem); color: var(--accent); }
.fact dt { color: var(--muted); max-width: 16em; }

/* ---------- Representation accordion ---------- */
.representation { background: var(--bg-2); }
.services { border-top: 1px solid var(--line); }
.service { border-bottom: 1px solid var(--line); }
.service h3 { font: inherit; }
.service-head {
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: minmax(0, 1fr) auto 64px; align-items: center; gap: 24px;
	width: 100%; padding: clamp(22px, 3vw, 40px) 0; border: 0; background: transparent;
	text-align: left; cursor: pointer;
	transition: padding .5s var(--ease), color .4s;
}
.service-head::before {
	content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
	background: var(--accent); transform: scaleY(0); transform-origin: bottom;
	transition: transform .5s var(--ease);
}
@media (hover: hover) {
	.service-head:hover { color: var(--on-accent); padding-left: 20px; }
	.service-head:hover::before { transform: scaleY(1); }
	.service-head:hover .service-sub { color: inherit; }
}
.service-title { font-size: clamp(2rem, 5.4vw, 5rem); }
.service-sub { color: var(--muted); font-size: 1rem; max-width: 18em; text-align: right; transition: color .4s; }
.service-icon {
	width: 56px; height: 56px; border-radius: 50%; border: 1px solid currentColor; opacity: .7;
	position: relative; justify-self: end;
}
.service-icon::before, .service-icon::after {
	content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px;
	background: currentColor; transition: transform .5s var(--ease);
}
.service-icon::after { transform: rotate(90deg); }
.service-head[aria-expanded="true"] .service-icon::after { transform: rotate(0); }
.service-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.service-body > .service-body-inner { overflow: hidden; }
.service.is-open .service-body { grid-template-rows: 1fr; }
.service-body-inner {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px clamp(32px, 6vw, 96px);
}
.service-body-inner > p { font-size: clamp(1.05rem, 1.4vw, 1.25rem); max-width: 32em; padding-bottom: 40px; }
.service-body-inner ul { padding-bottom: 40px; }
.service-body-inner li { padding: 12px 0 12px 28px; border-top: 1px solid var(--line); position: relative; color: var(--muted); }
.service-body-inner li::before {
	content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px;
	border-radius: 50%; border: 2px solid var(--accent);
}

/* ---------- Clipper ---------- */
.clipper { padding-block: clamp(24px, 4vw, 64px); }
.clipper-frame {
	position: relative; min-height: min(92svh, 900px); overflow: hidden;
	display: flex; align-items: flex-end; color: var(--on-photo);
	clip-path: inset(0 var(--gutter) round var(--radius));
	--clip-x: var(--gutter); --clip-y: 0px; --clip-r: var(--radius);
}
.js .clipper-frame { clip-path: inset(var(--clip-y) var(--clip-x) round var(--clip-r)); }
.clipper-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clipper-frame::after {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(0deg, rgba(var(--photo-shade), .92) 0%, rgba(var(--photo-shade), .35) 55%, rgba(var(--photo-shade), .15) 100%);
}
.clipper-content { position: relative; z-index: 1; padding-block: clamp(48px, 8vw, 110px); }
.clipper-content > * { max-width: 760px; }
.clipper-kicker { color: var(--accent); font-weight: 700; margin-bottom: 18px; }
[data-theme="matchday"] .clipper-kicker { color: #6ee7a8; }
.clipper-content p:not(.clipper-kicker) { margin: 24px 0 32px; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: rgba(244, 247, 245, .85); max-width: 36em; }

/* ---------- Track record ledger ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { position: relative; border-bottom: 1px solid var(--line); isolation: isolate; }
.ledger-row::before {
	content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink);
	clip-path: inset(50% 0 50% 0); transition: clip-path .55s var(--ease);
}
.ledger-inner {
	display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 16px 40px;
	padding-block: clamp(20px, 2.6vw, 36px);
	transition: color .4s;
}
.ledger-thumb { display: none; }
.ledger-name { font-size: clamp(1.9rem, 4.6vw, 4.8rem); transition: transform .6s var(--ease); }
.ledger-meta { display: flex; flex-direction: column; text-align: right; color: var(--muted); transition: color .4s; }
.ledger-meta span:last-child { font-weight: 700; color: inherit; }
.ledger-link {
	font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 999px;
	border: 1px solid var(--line); white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s;
}
.ledger-link:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (hover: hover) {
	.ledger-row:hover::before { clip-path: inset(0 0 0 0); }
	.ledger-row:hover .ledger-inner, .ledger-row:hover .ledger-meta { color: var(--bg); }
	.ledger-row:hover .ledger-name { transform: translateX(clamp(12px, 3vw, 48px)); }
	.ledger-row:hover .ledger-link { border-color: color-mix(in srgb, var(--bg) 30%, transparent); }
}
.ledger-preview {
	position: fixed; left: 0; top: 0; z-index: 20; pointer-events: none;
	width: clamp(200px, 20vw, 320px); aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden;
	opacity: 0; transform: translate(-50%, -50%) scale(.6) rotate(-6deg);
	transition: opacity .35s var(--ease), transform .45s var(--ease);
}
.ledger-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-3deg); }
.ledger-preview img { width: 100%; height: 100%; object-fit: cover; }

.milestones-title { margin: clamp(80px, 10vw, 140px) 0 28px; }
.milestones { border-top: 1px solid var(--line); }
.milestones li {
	display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr) minmax(0, 1.2fr); gap: 8px 32px;
	align-items: baseline; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.ms-name { font-size: clamp(1.4rem, 2.6vw, 2.3rem); line-height: 1; }
.ms-where { color: var(--accent); font-weight: 700; }
.ms-note { color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery { padding-bottom: clamp(88px, 12vw, 180px); }
.gallery-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.gallery-hint { color: var(--muted); }
.gallery-track {
	display: flex; gap: clamp(12px, 1.6vw, 24px); overflow-x: auto; overscroll-behavior-x: contain;
	padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
	scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery-track.is-dragging img { pointer-events: none; }
.gallery-track figure {
	flex: 0 0 auto; height: clamp(300px, 52vh, 560px); aspect-ratio: 3 / 2;
	border-radius: var(--radius); overflow: hidden; scroll-snap-align: start;
	transition: transform .5s var(--ease);
}
.gallery-track figure.tall { aspect-ratio: 2 / 3; }
.gallery-track figure.square { aspect-ratio: 1; }
.gallery-track.is-dragging figure { transform: scale(.96); }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }

/* ---------- Development ---------- */
.development { background: var(--bg-2); }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 140px); align-items: start; }
.dev-sticky { position: sticky; top: calc(var(--header-h) + 32px); }
.dev-sticky .section-intro { margin-top: 28px; }
.dev-highlight {
	margin-top: 28px; padding: 18px 22px; border-radius: var(--radius);
	background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 1.1rem; max-width: 26em;
}
.dev-photo { margin-top: 32px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 11; max-width: 520px; }
.dev-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.steps { counter-reset: step; padding-top: 8px; }
.step {
	counter-increment: step; position: relative;
	padding: 40px 0 44px 96px; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
	content: counter(step); position: absolute; left: 0; top: 36px;
	width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--accent);
	display: grid; place-items: center;
	font-style: italic; font-weight: 900; font-stretch: 125%; font-size: 1.5rem; color: var(--accent);
	transition: background-color .4s, color .4s;
}
.step.is-active::before { background: var(--accent); color: var(--on-accent); }
.step h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 800; font-stretch: 115%; letter-spacing: -.015em; line-height: 1.1; margin-bottom: 12px; }
.step p { color: var(--muted); max-width: 30em; }

/* ---------- Quotes ---------- */
.quotes-title { margin-bottom: clamp(40px, 6vw, 72px); }
.quote-viewport { display: grid; }
.quote {
	grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateX(40px);
	transition: opacity .6s var(--ease), transform .7s var(--ease), visibility .6s;
}
.quote.is-active { opacity: 1; visibility: visible; transform: none; }
.quote.is-leaving { transform: translateX(-40px); }
.quote blockquote {
	font-size: clamp(1.7rem, 4vw, 3.6rem); line-height: 1.12; font-weight: 700; font-stretch: 110%;
	letter-spacing: -.02em; max-width: 26ch; text-wrap: balance;
}
.quote figcaption { margin-top: 28px; color: var(--accent); font-weight: 700; }
.quote-nav { display: flex; align-items: center; gap: 20px; margin-top: 48px; }
.quote-count { color: var(--muted); min-width: 4.5em; text-align: center; font-variant-numeric: tabular-nums; }

/* ---------- About ---------- */
.about { padding-bottom: 0; }
.about-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 32px clamp(48px, 8vw, 140px); }
.about-text p + p { margin-top: 1.1em; }
.about-text p { color: var(--muted); max-width: 36em; }
.about-text .about-lead { color: var(--ink); font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.3; font-weight: 600; font-stretch: 108%; letter-spacing: -.01em; }
.about-sign { color: var(--ink) !important; font-weight: 700; padding-top: 12px; }
.about-image {
	margin-top: clamp(64px, 9vw, 130px); height: clamp(360px, 80vh, 820px); overflow: hidden;
}
.about-image img { width: 100%; height: 125%; object-fit: cover; }
.principles {
	display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
	padding-block: clamp(64px, 8vw, 120px);
}
.principle { padding: 8px clamp(16px, 3vw, 48px) 8px 0; }
.principle + .principle { padding-left: clamp(16px, 3vw, 48px); border-left: 1px solid var(--line); }
.principle h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-style: italic; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; color: var(--accent); margin-bottom: 14px; }
.principle p { color: var(--muted); max-width: 24em; }

/* ---------- Contact ---------- */
.contact { background: var(--bg-2); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px clamp(48px, 8vw, 140px); align-items: start; }
.contact-info .section-intro { margin-top: 28px; }
.contact-list { margin-top: 48px; border-top: 1px solid var(--line); }
.contact-list > div { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { color: var(--muted); }
.contact-list a { text-decoration-color: var(--accent); text-underline-offset: 4px; }

.contact-form-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(20px, 3vw, 40px); }
.form-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: var(--bg-2); margin-bottom: 32px; }
.form-tabs button {
	border: 0; border-radius: 999px; padding: 12px 14px; background: transparent; cursor: pointer;
	font-weight: 700; color: var(--muted); transition: background-color .35s, color .35s;
}
.form-tabs button[aria-selected="true"] { background: var(--accent); color: var(--on-accent); }
.vrs-form { display: grid; gap: 20px; }
.vrs-form[hidden] { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-weight: 600; font-size: .95rem; }
.field .opt { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	font: inherit; color: var(--ink); background: var(--bg);
	border: 1px solid var(--line); border-radius: 10px;
	transition: border-color .25s, box-shadow .25s;
	color-scheme: dark;
}
[data-theme="matchday"] .field input, [data-theme="matchday"] .field select, [data-theme="matchday"] .field textarea { color-scheme: light; }
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #ff6b5e; }
.field-error { color: #ff8a80; font-size: .9rem; }
[data-theme="matchday"] .field-error { color: #c0261b; }
.form-status { font-weight: 600; min-height: 1.6em; }
.form-status.is-success {
	padding: 16px 18px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 16%, transparent);
	border: 1px solid var(--accent);
}

/* ---------- Footer ---------- */
.site-footer { padding-top: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.footer-band { overflow: hidden; padding-bottom: clamp(48px, 7vw, 96px); }
.footer-band span {
	font-style: italic; font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; white-space: nowrap;
	font-size: clamp(3rem, 11vw, 10rem); line-height: 1; color: var(--accent);
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: 56px; }
.footer-roundel { width: clamp(120px, 12vw, 170px); height: auto; color: var(--accent); }
.footer-col { display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.footer-col h2 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.footer-col a { text-decoration: none; width: fit-content; transition: color .25s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 24px 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem; }
.to-top { font-weight: 700; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 4px; }

/* ---------- View transition for theme change ---------- */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.main-nav { display: none; }
	.menu-toggle { display: inline-flex; }
}
@media (max-width: 900px) {
	:root { --header-h: 66px; }
	.brand-lockup { height: 34px; }
	.section-head, .dev-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
	.dev-sticky { position: static; }
	.service-head { grid-template-columns: minmax(0, 1fr) 48px; }
	.service-sub { display: none; }
	.service-icon { width: 44px; height: 44px; }
	.service-body-inner { grid-template-columns: minmax(0, 1fr); }
	.service-body-inner > p { padding-bottom: 8px; }
	.ledger-inner { grid-template-columns: 72px minmax(0, 1fr); }
	.ledger-thumb { display: block; grid-row: span 3; width: 72px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 8px; align-self: start; }
	.ledger-meta { text-align: left; flex-direction: row; flex-wrap: wrap; gap: 4px 12px; }
	.ledger-link { justify-self: start; }
	.milestones li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
	.principles { grid-template-columns: minmax(0, 1fr); }
	.principle, .principle + .principle { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-roundel { grid-column: 1 / -1; }
	.hero-ctas { margin-right: 0; }
	.scroll-circle { display: none; }
}
@media (max-width: 640px) {
	.header-apply { display: none; }
	.hero-title .line:nth-child(2) { padding-left: .4em; }
	.facts { grid-template-columns: minmax(0, 1fr); }
	.fact, .fact + .fact { padding: 24px 0; border-left: 0; }
	.fact + .fact { border-top: 1px solid var(--line); }
	.field-row { grid-template-columns: minmax(0, 1fr); }
	.step { padding-left: 76px; }
	.step::before { width: 50px; height: 50px; font-size: 1.25rem; }
	.contact-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.hero-ctas .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js .preloader { display: none; }
	.hero-trail, .ledger-preview { display: none; }
}
