/* Station sign world. Shared by fahidbhalli.com and kpsn.org: edit this copy,
   then copy it to sites/kpsn.org/public/style.css. */
/* Archivo, self-hosted (Latin subset, variable width and weight). License: /fonts/OFL.txt */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-stretch: 62% 125%; font-display: swap; src: url("/fonts/archivo-latin.woff2") format("woff2"); }
:root {
	--sign: #141414;
	--sign-2: #222220;
	--enamel: #eceeef;
	--paper: #ffffff;
	--ink: #141414;
	--ink-2: #4a4945;
	--rule: #d9d6cf;
	--on-sign-2: #c9c7c1;
	--l-ai: #d9402b;
	--l-infra: #2a5bd7;
	--l-obs: #1f8a4c;
	--l-sec: #f2b705;
	--wide: 76rem;
	--pad: clamp(1.25rem, 4vw, 3rem);
	--ease: cubic-bezier(0.16, 1, 0.3, 1);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--ink-2) var(--enamel); }
body {
	margin: 0;
	background: var(--enamel);
	color: var(--ink);
	font: 400 1.0625rem/1.6 "Archivo", system-ui, sans-serif;
	font-variant-numeric: tabular-nums;
	caret-color: var(--l-ai);
	-webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--paper); }
.sign ::selection { background: var(--paper); color: var(--ink); }
.sign .panel ::selection { background: var(--ink); color: var(--paper); }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 2px; }
.sign :focus-visible { outline-color: var(--paper); }
.sign .panel :focus-visible { outline-color: var(--ink); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--pad); top: 0.75rem; z-index: 10; background: var(--paper); color: var(--ink); padding: 0.5rem 0.75rem; }
.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 var(--pad); }
h1, h2, h3 { font-stretch: 78%; font-weight: 700; line-height: 1.02; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.arrow { width: 1em; height: 1em; flex: none; }

/* Sign band: header and hero are one black sign. */
.sign { background: var(--sign); color: var(--paper); }
.top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-top: 1.1rem; padding-bottom: 1.1rem; border-bottom: 1px solid #3a3a37; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-stretch: 78%; font-weight: 700; font-size: 1.35rem; letter-spacing: 0.01em; text-decoration: none; }
.brand img { display: block; height: 56px; width: auto; }
.top nav ul { display: flex; gap: clamp(0.9rem, 2.5vw, 2rem); list-style: none; margin: 0; padding: 0; }
.top nav a { display: inline-flex; align-items: center; gap: 0.35em; text-decoration: none; font-weight: 500; font-size: 0.98rem; color: var(--on-sign-2); }
.top nav a:hover { color: var(--paper); }
.top nav .arrow { width: 0.8em; height: 0.8em; }

.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-top: clamp(2rem, 4.5vw, 3.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); max-width: 16ch; }
.hero .jump { display: none; }
.pitch { margin-top: 1.5rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--on-sign-2); max-width: 36ch; }

/* The line strip: four services as lines, drawn by one sweep. */
.lines { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 1.25rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 1rem 2.5rem; position: relative; }
.lines::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--paper); transform-origin: left; animation: sweep 1.1s var(--ease) both; }
.lines a { display: inline-flex; align-items: center; gap: 1rem; text-decoration: none; font-stretch: 85%; font-weight: 600; font-size: 1.15rem; }
.lines a:hover .disc, .lines a:focus-visible .disc { transform: scale(1.18); }
/* Only the discs dim, so the line names keep full text contrast. */
body[data-line]:not([data-line="Not sure yet"]) .lines .disc { opacity: 0.3; }
body[data-line="Private AI"] .lines a[href="#private-ai"] .disc, body[data-line="Infrastructure"] .lines a[href="#infrastructure"] .disc,
body[data-line="Observability"] .lines a[href="#observability"] .disc, body[data-line="Security"] .lines a[href="#security"] .disc { opacity: 1; transform: scale(1.3); box-shadow: 0 0 0 3px var(--sign), 0 0 0 5px var(--c); }
.disc { width: 1.35rem; height: 1.35rem; border-radius: 50%; flex: none; background: var(--c); transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.3s var(--ease); }
.l-ai { --c: var(--l-ai); } .l-infra { --c: var(--l-infra); } .l-obs { --c: var(--l-obs); } .l-sec { --c: var(--l-sec); } .l-any { --c: #8a8882; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* The enamel panel set into the sign: the working form. */
.panel { background: var(--paper); color: var(--ink); padding: clamp(1.5rem, 3vw, 2.25rem); border-radius: 4px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.6); }
.panel h2 { font-size: clamp(1.6rem, 2.4vw, 2rem); }
.panel > p { margin-top: 0.5rem; color: var(--ink-2); font-size: 0.98rem; }
form, .contact { display: grid; gap: 1rem; margin-top: 1.25rem; }
.hint { font-size: 0.92rem; color: var(--ink-2); }
.field { display: grid; gap: 0.35rem; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
label, legend { font-weight: 600; font-size: 0.92rem; }
.opt { font-weight: 400; color: var(--ink-2); }
input[type="text"], input[type="email"], textarea {
	font: inherit; color: inherit; width: 100%; padding: 0.65rem 0.75rem; background: var(--paper);
	border: 1.5px solid #b8b5ad; border-radius: 3px; transition: border-color 0.15s;
}
input:hover, textarea:hover { border-color: var(--ink-2); }
input:focus-visible, textarea:focus-visible { outline: none; border-color: var(--sign); box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
input:user-invalid, textarea:user-invalid { border-color: var(--l-ai); }
textarea { min-height: 5rem; resize: vertical; }
::placeholder { color: #6b6964; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.45rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip > span { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.4rem 0.75rem 0.4rem 0.5rem; border: 1.5px solid #b8b5ad; border-radius: 999px; font-size: 0.92rem; font-weight: 500; transition: border-color 0.15s, background 0.15s; }
.chip .disc { width: 0.9rem; height: 0.9rem; }
.chip input:hover + span { border-color: var(--ink-2); }
.chip input:checked + span { border-color: var(--sign); background: var(--sign); color: var(--paper); }
.chip input:focus-visible + span { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.send { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; text-decoration: none; font: inherit; font-weight: 700; font-stretch: 85%; font-size: 1.1rem; padding: 0.85rem 1.25rem; border: 0; border-radius: 3px; background: var(--sign); color: var(--paper); cursor: pointer; transition: background 0.15s; }
.send:hover { background: #000; }
.send:hover .arrow { transform: translateX(4px); }
.send .arrow { transition: transform 0.25s var(--ease); }
.alt { font-size: 0.92rem; color: var(--ink-2); }

/* Service lines: one panel per line, ruled like a platform sign. */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section > .wrap > h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); max-width: 18ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.line { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr) minmax(0, 1.1fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding: clamp(1.75rem, 3vw, 2.5rem) 0; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; transition: background 0.3s var(--ease); }
.line:last-child { border-bottom: 2px solid var(--ink); }
.line .disc { width: 2.5rem; height: 2.5rem; }
.line h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.line .what { margin-top: 0.6rem; color: var(--ink-2); max-width: 44ch; }
.line .proof { font-size: clamp(1.25rem, 1.9vw, 1.55rem); line-height: 1.35; font-weight: 500; }
.proof .fig { display: block; margin-bottom: 0.4rem; font-stretch: 78%; font-weight: 700; font-size: clamp(2.6rem, 4.6vw, 3.75rem); line-height: 1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums lining-nums; }
body[data-line="Private AI"] #private-ai, body[data-line="Infrastructure"] #infrastructure,
body[data-line="Observability"] #observability, body[data-line="Security"] #security { background: color-mix(in oklab, var(--c) 12%, var(--enamel)); }

/* Work: dense two-column case notes on white. */
.work { background: var(--paper); }
.cases { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
.case { border-top: 6px solid var(--sign); padding-top: 1.25rem; }
.case h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); }
.case .tag { display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.75rem; font-size: 0.92rem; font-weight: 600; }
.case .tag .disc { width: 0.85rem; height: 0.85rem; }
.case p { margin-top: 0.9rem; max-width: 62ch; }
.case dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.35rem 1.25rem; margin: 1.25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: 0.98rem; }
.case dt { font-weight: 700; }
.case dd { margin: 0; color: var(--ink-2); }
.note { margin-top: clamp(2rem, 4vw, 3rem); color: var(--ink-2); font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.about-grid p + p { margin-top: 1rem; }
.about-grid h2 { font-size: clamp(2.2rem, 4.5vw, 3.5rem); }
.lockup { display: block; width: 120px; height: auto; margin-bottom: 1.75rem; }
.facts { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.facts li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.facts li span:last-child { color: var(--ink-2); text-align: right; }

/* Closing sign */
.close { padding: clamp(3.5rem, 8vw, 5.5rem) 0 2rem; }
.close h2 { font-size: clamp(2.2rem, 5vw, 4rem); max-width: 16ch; }
.close .pitch { max-width: 44ch; }
.close-row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; margin-top: 2rem; }
.btn-light { display: inline-flex; align-items: center; gap: 0.6rem; padding: 0.85rem 1.25rem; background: var(--paper); color: var(--sign); border-radius: 3px; font-weight: 700; font-stretch: 85%; font-size: 1.1rem; text-decoration: none; }
.btn-light:hover .arrow { transform: translateX(4px); }
.btn-light .arrow { transition: transform 0.25s var(--ease); }
.links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; list-style: none; margin: 0; padding: 0; color: var(--on-sign-2); }
.foot .co { display: inline-flex; align-items: center; gap: 0.85rem; }
.foot .co img { height: 40px; width: auto; }
.foot { margin-top: clamp(3rem, 6vw, 4.5rem); padding-top: 1.25rem; border-top: 1px solid #3a3a37; color: var(--on-sign-2); font-size: 0.9rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 1.5rem; }

/* Thanks and sorry pages */
.status { min-height: 100vh; display: grid; align-content: center; }
.status h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); max-width: 14ch; }

@media (max-width: 960px) {
	.hero, .about-grid, .cases { grid-template-columns: 1fr; }
	.line { grid-template-columns: 2.75rem minmax(0, 1fr); }
	.line .proof { grid-column: 2; }
	.line .disc { width: 2rem; height: 2rem; }
	.hero .jump { display: inline-flex; margin-top: 1.75rem; }
}
@media (max-width: 560px) {
	.top nav { display: none; }
	.row2 { grid-template-columns: 1fr; }
	.lines { grid-template-columns: 1fr; }
	.hero h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
