/* Used by every page: tokens, base styles, buttons, reveals, header, hexagon field and footer. */
@font-face { font-family: "Bebas Neue"; font-weight: 400; font-display: swap; src: url("fonts/bebas-neue-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400 700; font-display: swap; src: url("fonts/inter-latin-variable.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 500 600; font-display: swap; src: url("fonts/jetbrains-mono-latin-variable.woff2") format("woff2"); }

:root {
	color-scheme: light;
	--blue: #008cf8;      /* the logo's blue: large text, fills and shapes */
	--blue-text: #0066c2; /* small text and links on light backgrounds */
	--ink: #03192e;
	--ink-soft: #3b5166;
	--page: #eaf5ff;
	--tint: #bfe2ff;
	--white: #fff;
	--line: rgba(3, 25, 46, 0.14);
	--todo: #fff1a8;
	--display: "Bebas Neue", Impact, sans-serif;
	--body: "Inter", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, monospace;
	--gutter: clamp(16px, 4vw, 40px);
	--ease: cubic-bezier(0.2, 0.75, 0.25, 1);
	/* Corner cuts follow the logo's 30 degree edges: height = width x 0.577 */
	--chamfer: polygon(0 0, calc(100% - 46px) 0, 100% 27px, 100% 100%, 46px 100%, 0 calc(100% - 27px));
	--chamfer-large: polygon(0 0, calc(100% - 84px) 0, 100% 48px, 100% 100%, 84px 100%, 0 calc(100% - 48px));
	--hexagon: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: clip; background: var(--page); color: var(--ink); font: 400 17px/1.6 var(--body); }
img { display: block; max-width: 100%; }
a { color: inherit; }
p, ul, figure { margin: 0; padding: 0; }
ul { list-style: none; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; text-wrap: balance; }
::selection { background: var(--ink); color: var(--white); }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.wrap { width: min(100% - var(--gutter) * 2, 1240px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 60; padding: 10px 16px; background: var(--white); }
.todo { padding: 0 0.3em; background: var(--todo); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--blue-text); font: 600 12px/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: none; width: 22px; height: 1px; background: currentColor; }
.mini { display: block; margin-bottom: 2px; color: var(--ink-soft); font: 600 11px/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.checks { display: grid; gap: 8px; }
.checks li { position: relative; padding-left: 21px; line-height: 1.45; }
.checks li::before { content: ""; position: absolute; left: 0; top: 0.32em; width: 11px; height: 12.7px; background: var(--accent, var(--blue)); clip-path: var(--hexagon); }

/* Buttons: a diagonal fill sweeps in at the logo's angle */
.btn { --c: 12px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 28px; overflow: hidden; border: 0; background: var(--btn-bg); color: var(--btn-ink); font: 600 16px/1 var(--body); text-decoration: none; cursor: pointer; clip-path: polygon(0 0, calc(100% - var(--c)) 0, 100% 7px, 100% 100%, var(--c) 100%, 0 calc(100% - 7px)); transition: color 0.25s, transform 0.3s var(--ease); }
.btn::before { content: ""; position: absolute; inset: -1px -24%; z-index: -1; background: var(--btn-hover-bg); transform: translateX(-112%) skewX(-30deg); transition: transform 0.5s var(--ease); }
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(-30deg); }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-ink); }
.btn:focus-visible { outline-offset: -5px; }
.btn i { font-style: normal; transition: transform 0.3s var(--ease); }
.btn:hover i { transform: translate(3px, -3px); }
.btn-ink { --btn-bg: var(--ink); --btn-ink: var(--white); --btn-hover-bg: var(--white); --btn-hover-ink: var(--ink); }
.btn-white { --btn-bg: var(--white); --btn-ink: var(--ink); --btn-hover-bg: var(--ink); --btn-hover-ink: var(--white); }
.btn-blue { --btn-bg: var(--blue); --btn-ink: var(--ink); --btn-hover-bg: var(--ink); --btn-hover-ink: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 14.5px; }

/* Reveal on scroll */
.motion [data-reveal="up"] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease) var(--delay, 0s), transform 0.8s var(--ease) var(--delay, 0s); }
.motion [data-reveal="up"].is-in { opacity: 1; transform: none; }
.motion [data-reveal="words"]:not(.is-split) { visibility: hidden; }
.word { display: inline-block; overflow: hidden; margin-block: -0.1em; padding-block: 0.1em; vertical-align: top; }
.word > span { display: inline-block; transform: translateY(115%) rotate(4deg); transform-origin: 0 100%; transition: transform 0.95s var(--ease); transition-delay: calc(var(--delay, 0s) + var(--n) * 55ms); }
.is-in .word > span { transform: none; }

/* Note for reviewers while this is a mockup */
.concept-chip { position: fixed; right: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 8px; max-width: calc(100vw - 32px); padding: 7px 8px 7px 13px; background: var(--ink); color: var(--white); box-shadow: 0 10px 28px rgba(3, 25, 46, 0.32); font: 500 12px/1.35 var(--mono); }
.concept-chip button { padding: 2px 7px; border: 0; background: transparent; color: var(--white); font: inherit; font-size: 14px; cursor: pointer; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; transition: background-color 0.35s, box-shadow 0.35s; }
.site-header[data-tone="light"], .site-header.menu-open { background: rgba(234, 245, 255, 0.92); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.header-inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: 72px; transition: min-height 0.35s var(--ease); }
[data-tone="light"] .header-inner { min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font: 400 28px/1 var(--display); letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.brand-mark { position: relative; flex: none; width: 32px; aspect-ratio: 744 / 858; }
.brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; transition: opacity 0.35s; }
.mark-white { opacity: 0; }
.brand-word { transition: color 0.35s; color: var(--blue); }
.site-header[data-tone="blue"]:not(.menu-open) .mark-white { opacity: 1; }
.site-header[data-tone="blue"]:not(.menu-open) .mark-blue { opacity: 0; }
.site-header[data-tone="blue"]:not(.menu-open) .brand-word { color: var(--white); }
.nav { position: relative; display: flex; align-items: center; gap: 30px; margin-left: auto; }
.nav a { position: relative; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: 100% 50%; transition: transform 0.35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-dot { position: absolute; left: 0; bottom: -15px; width: 10px; height: 11.5px; background: var(--blue); opacity: 0; clip-path: var(--hexagon); transition: transform 0.55s var(--ease), opacity 0.3s; }
.menu-toggle { display: none; min-height: 42px; margin-left: auto; padding: 0 14px; border: 1px solid currentColor; background: transparent; color: var(--ink); font: 600 14.5px/1 var(--body); cursor: pointer; }

/* Page sections */
.section { padding-block: clamp(64px, 8vw, 116px); }
.section-white { background: var(--white); }

/* Hexagon field */
.hex-field { --field-line: rgba(255, 255, 255, 0.14); --field-fill: #fff; position: absolute; inset: 0; z-index: -1; display: block; width: 100%; height: 100%; }

/* Footer */
.site-footer { overflow: hidden; padding-block: clamp(44px, 5vw, 64px) 24px; background: var(--ink); color: var(--white); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 22px 48px; }
.footer-top p { max-width: 26em; color: rgba(255, 255, 255, 0.76); font-size: 15.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 15px; font-weight: 500; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-word { margin-top: clamp(24px, 3.4vw, 48px); font: 400 min(12.7vw, 183px)/0.86 var(--display); letter-spacing: 0.01em; text-transform: uppercase; white-space: nowrap; }
.footer-word .accent { color: var(--blue); }
.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: clamp(20px, 2.6vw, 32px); padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.76); font-size: 13.5px; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.btn, .btn::before { transition: none; }
}
@media (max-width: 820px) {
	.header-inner { gap: 12px; }
	.header-cta { margin-left: auto; }
	.menu-toggle { display: inline-flex; align-items: center; margin-left: 0; }
	.nav { display: none; position: absolute; top: 100%; left: calc(var(--gutter) * -1); right: calc(var(--gutter) * -1); flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px var(--gutter) 18px; background: var(--white); box-shadow: 0 18px 30px rgba(3, 25, 46, 0.16); }
	.nav.open { display: flex; }
	.nav a { padding: 8px 0; font: 400 38px/1.1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
	.nav a::after, .nav-dot { display: none; }
}
@media (max-width: 480px) {
	.header-cta { display: none; }
	.menu-toggle { margin-left: auto; }
	.brand { gap: 10px; font-size: 25px; }
	.brand-mark { width: 28px; }
}
