/* ===================================================================
   Settmacher Ventures — design system
   Institutional, restrained, dark. One accent (champagne), used sparingly.
   =================================================================== */

:root {
	--abyss:     #0A0E14;                  /* base background — midnight navy */
	--surface:   #121822;                  /* raised sections */
	--platinum:  #ECEAE3;                  /* primary text — warm off-white */
	--mist:      #818B9C;                  /* secondary text, labels */
	--champagne: #C6A968;                  /* the single accent */
	--line:      rgba(236, 234, 227, 0.10);/* hairline dividers */

	--font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
	--font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

	--shell:   1200px;
	--gutter:  clamp(1.25rem, 5vw, 4rem);
	--section: clamp(6rem, 14vh, 11rem);   /* vertical rhythm between sections */
}

/* ---- Reset ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	background: var(--abyss);
	color: var(--platinum);
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.7;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---- Helpers -------------------------------------------------------- */
.sv-shell {
	width: 100%;
	max-width: var(--shell);
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.sv-display {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.02;
	letter-spacing: -0.015em;
}

.sv-eyebrow {
	font-family: var(--font-body);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.74rem;
	font-weight: 500;
	color: var(--mist);
}

/* Accessibility: skip link + visible focus ---------------------------- */
.sv-skip-link {
	position: fixed;
	top: -100%;
	left: 1rem;
	z-index: 200;
	background: var(--surface);
	color: var(--platinum);
	padding: 0.75rem 1.25rem;
	border: 1px solid var(--line);
	border-radius: 2px;
}
.sv-skip-link:focus { top: 1rem; }

:focus-visible {
	outline: 2px solid var(--champagne);
	outline-offset: 3px;
	border-radius: 1px;
}

/* ---- Reveal-on-scroll ---------------------------------------------- */
.sv-reveal {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
	will-change: opacity, transform;
}
.sv-reveal.is-visible { opacity: 1; transform: none; }

/* ===================================================================
   Header
   =================================================================== */
.sv-header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	padding-block: 1.5rem;
	background: linear-gradient(to bottom, rgba(10, 14, 20, 0.55), transparent);
	transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}
.sv-header.is-scrolled {
	padding-block: 1rem;
	background: rgba(10, 14, 20, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--line);
}
.sv-header__inner { display: flex; align-items: center; }
.sv-logo { display: inline-flex; }
.sv-logo__img { height: 26px; width: auto; }

/* ===================================================================
   1 — Hero
   =================================================================== */
.sv-hero {
	position: relative;
	min-height: 100svh;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	padding-block-end: clamp(5rem, 12vh, 8rem);
}
.sv-hero__media {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	z-index: 0;
	/* No runtime filter: the desaturated/contrast grade is baked into the
	   video file itself, so playback stays smooth (no per-frame repaint).
	   Legibility is handled by the overlay below. */
}
.sv-hero__video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}
.sv-hero__video.is-playing { opacity: 1; }
.sv-hero__scrim {
	position: absolute;
	inset: 0;
	z-index: 1;
	/* The grade no longer darkens the footage, so the overlay carries
	   legibility: a quiet global wash + a strong base under the headline. */
	background:
		linear-gradient(to bottom, rgba(10,14,20,0.50) 0%, rgba(10,14,20,0.28) 42%, rgba(10,14,20,0.90) 100%),
		radial-gradient(130% 90% at 50% 28%, rgba(10,14,20,0) 32%, rgba(10,14,20,0.50) 100%);
}
.sv-hero__content { position: relative; z-index: 2; }
.sv-hero__title {
	font-size: clamp(2.75rem, 8vw, 7.5rem);
	font-weight: 500;
	max-width: 16ch;
}
.sv-hero__sub {
	margin-top: 1.5rem;
	max-width: 46ch;
	font-size: clamp(0.8rem, 1.4vw, 0.95rem);
	color: var(--platinum);
	opacity: 0.82;
}

.sv-scrollcue {
	position: absolute;
	left: 50%;
	bottom: 1.75rem;
	transform: translateX(-50%);
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.5rem;
	color: var(--champagne);
}
.sv-scrollcue__line {
	width: 1px;
	height: 2.5rem;
	background: linear-gradient(to bottom, transparent, var(--champagne));
}
.sv-scrollcue__arrow { font-size: 0.85rem; line-height: 1; animation: sv-nudge 2.4s ease-in-out infinite; }
@keyframes sv-nudge {
	0%, 100% { transform: translateY(0); opacity: 0.7; }
	50%      { transform: translateY(4px); opacity: 1; }
}

/* ===================================================================
   2 — Statement
   =================================================================== */
.sv-statement {
	padding-block: var(--section);
	display: flex;
	align-items: center;
	min-height: 88svh;
}
.sv-statement__text {
	font-size: clamp(1.5rem, 3.4vw, 2.85rem);
	line-height: 1.22;
	letter-spacing: -0.01em;
	max-width: 22ch;
	margin-inline: auto;
	text-align: center;
	text-wrap: balance;
}

/* ===================================================================
   3 — Approach
   =================================================================== */
.sv-approach { padding-block: var(--section); }
.sv-approach__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(2.5rem, 6vw, 5.5rem);
}
.sv-pillar__word {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	margin-block: 0.85rem 1rem;
}
.sv-pillar__body { color: var(--mist); max-width: 26ch; }

/* ===================================================================
   4 — Global Presence (the signature map)
   =================================================================== */
.sv-map {
	background: var(--surface);
	padding-block: var(--section);
	border-block: 1px solid var(--line);
}
.sv-map__head { margin-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.sv-map__title {
	font-size: clamp(1.85rem, 4vw, 3.25rem);
	margin-top: 0.9rem;
	max-width: 18ch;
}
.sv-map__canvas {
	position: relative; /* anchor for the absolutely-positioned tooltip */
	width: 100%;
	max-width: 1360px;
	margin-inline: auto;
	padding-inline: clamp(0.5rem, 2vw, 1.5rem);
}
.sv-map__svg { width: 100%; height: auto; overflow: visible; }

/* continents */
.sv-map__land { fill: var(--mist); fill-opacity: 0.20; }

/* arcs — draw in on reveal */
.sv-map__arcs .sv-arc {
	fill: none;
	stroke: url(#svArcGrad);
	stroke-width: 1.4;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	transition: stroke-dashoffset 1.15s cubic-bezier(0.22, 1, 0.36, 1);
}
.sv-map.is-visible .sv-arc { stroke-dashoffset: 0; }
.sv-map.is-visible .sv-arc:nth-of-type(1) { transition-delay: 0.20s; }
.sv-map.is-visible .sv-arc:nth-of-type(2) { transition-delay: 0.40s; }
.sv-map.is-visible .sv-arc:nth-of-type(3) { transition-delay: 0.60s; }
.sv-map.is-visible .sv-arc:nth-of-type(4) { transition-delay: 0.80s; }

/* beacons */
.sv-beacon {
	opacity: 0;
	transform: scale(0.4);
	transform-box: fill-box;
	transform-origin: center;
	transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
	cursor: pointer;
}
.sv-beacon__hit { fill: transparent; }
.sv-beacon:focus { outline: none; }
.sv-beacon:focus-visible { outline: none; }
.sv-beacon:focus-visible .sv-beacon__dot,
.sv-beacon:hover .sv-beacon__dot { stroke: var(--platinum); stroke-width: 2; }
.sv-beacon:focus-visible .sv-beacon__core { r: 3; }
.sv-map.is-visible .sv-beacon {
	opacity: 1;
	transform: scale(1);
	transition-delay: calc(var(--bi) * 0.18s + 0.25s);
}
.sv-beacon__dot  { fill: var(--champagne); }
.sv-beacon__core { fill: var(--platinum); }
.sv-beacon__ring {
	fill: none;
	stroke: var(--champagne);
	stroke-width: 1.4;
	transform-box: fill-box;
	transform-origin: center;
	opacity: 0;
}
.sv-map.is-visible .sv-beacon__ring {
	animation: sv-pulse 3.2s ease-out infinite;
	animation-delay: calc(var(--bi) * 0.18s + 0.8s);
}
@keyframes sv-pulse {
	0%   { transform: scale(1);   opacity: 0.7; }
	70%  { transform: scale(3.4); opacity: 0; }
	100% { transform: scale(3.4); opacity: 0; }
}

/* beacon labels */
.sv-beacon__label {
	fill: var(--mist);
	font-family: var(--font-body);
	font-size: 26px;
	font-weight: 500;
	letter-spacing: 4px;
	opacity: 0;
	transition: opacity 0.6s ease;
}
.sv-map.is-visible .sv-beacon__label {
	opacity: 1;
	transition-delay: calc(var(--bi) * 0.18s + 0.55s);
}

/* city row beneath the map */
.sv-map__cities {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.85rem;
	margin-top: clamp(2rem, 5vw, 3.25rem);
	text-transform: uppercase;
	letter-spacing: 0.18em;
	font-size: 0.78rem;
	color: var(--mist);
}
.sv-map__cities span[aria-hidden] { color: var(--champagne); }

/* beacon tooltip — a small dark card, positioned by JS */
.sv-tip {
	position: absolute;
	top: 0;
	left: 0;
	z-index: 5;
	max-width: 220px;
	padding: 0.7rem 0.9rem;
	background: var(--surface);
	border: 1px solid var(--champagne);
	color: var(--platinum);
	font-size: 0.82rem;
	line-height: 1.45;
	border-radius: 3px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
	pointer-events: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(4px);
	transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s linear 0.15s;
}
.sv-tip.is-visible {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	transition: opacity 0.15s ease, transform 0.15s ease;
}
.sv-tip__city {
	display: block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.66rem;
	color: var(--champagne);
	margin-bottom: 0.3rem;
}

/* ===================================================================
   5 — Contact
   =================================================================== */
.sv-contact {
	padding-block: var(--section);
	text-align: center;
}
.sv-contact__title {
	font-size: clamp(2rem, 5vw, 3.75rem);
	margin-block: 0.9rem 1.75rem;
}
.sv-contact__body { color: var(--mist); font-size: 1.05rem; }
.sv-mail {
	position: relative;
	color: var(--champagne);
	white-space: nowrap;
}
.sv-mail::after {
	content: '';
	position: absolute;
	left: 0; bottom: -2px;
	width: 100%; height: 1px;
	background: var(--champagne);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.4s ease;
}
.sv-mail:hover::after, .sv-mail:focus-visible::after { transform: scaleX(1); }

/* ===================================================================
   6 — Footer
   =================================================================== */
.sv-footer { padding-block: clamp(3rem, 8vw, 5rem) 2.5rem; }
.sv-footer__copy { font-size: 0.78rem; color: var(--mist); text-align: center; }

/* ===================================================================
   Responsive
   =================================================================== */
@media (max-width: 860px) {
	.sv-approach__grid { grid-template-columns: 1fr; gap: 2.75rem; }
	.sv-pillar__body { max-width: 40ch; }
	.sv-beacon__label { display: none; } /* tiny on small screens; city row covers it */
}

@media (max-width: 480px) {
	.sv-hero { padding-block-end: 6rem; }
}

/* ===================================================================
   Reduced motion — show final state, kill all animation
   =================================================================== */
@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;
	}
	.sv-reveal { opacity: 1; transform: none; }
	.sv-arc { stroke-dashoffset: 0 !important; }
	.sv-beacon { opacity: 1 !important; transform: none !important; }
	.sv-beacon__label { opacity: 1 !important; }
	.sv-beacon__ring { display: none; }
	.sv-scrollcue__arrow { animation: none; }
}
