/* SAVN site styles. Shared by every page. */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("/assets/fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #F2EFE8; --ink: #0E0E0C; --ink-2: #4A4843; --line: rgba(14,14,12,.14);
  --card: #E9E5DC; --night: #0E0E0C; --signal: #FF5A1F; --signal-text: #C2410C;
  --wide: "Archivo", system-ui, sans-serif;
  --max: 1200px; --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 18px/1.65 var(--wide); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* Header */
header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .3s; }
header.scrolled { border-bottom-color: var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: block; color: var(--ink); line-height: 0; }
.logo svg { height: 22px; width: auto; }
nav ul { display: flex; gap: clamp(16px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
nav a { text-decoration: none; font-size: 15px; color: var(--ink-2); padding: 12px 0; transition: color .2s; }
nav a:hover { color: var(--ink); }

/* Type */
.display { font-stretch: 100%; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; margin: 0; text-wrap: balance; }
.label { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 28px; }
.label::before { content: ""; width: 9px; height: 9px; background: var(--signal); flex: none; }

/* Hero */
.hero { padding-block: clamp(88px, 16vw, 200px) clamp(72px, 10vw, 128px); }
.hero h1 { font-size: clamp(46px, 8.4vw, 120px); max-width: 12ch; }
.hero h1 .sq { display: inline-block; width: .2em; height: .2em; background: var(--signal); vertical-align: top; margin: .1em 0 0 .12em; }
.hero p { font-size: clamp(19px, 2.1vw, 24px); line-height: 1.5; color: var(--ink-2); max-width: 34ch; margin: clamp(32px, 4vw, 48px) 0 0; }

section { border-top: 1px solid var(--line); padding: clamp(72px, 10vw, 128px) 0; }
h2.display { font-size: clamp(32px, 4.6vw, 60px); max-width: 18ch; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 20px; margin-top: clamp(40px, 6vw, 72px); }
.product { background: var(--card); border-radius: 4px; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; min-height: 380px; text-decoration: none; transition: transform .35s cubic-bezier(.2,.7,.2,1); }
a.product:hover { transform: translateY(-4px); }
.product .status { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.product h3 { font-weight: 600; font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.03em; line-height: 1; margin: clamp(72px, 9vw, 120px) 0 16px; }
.product p { margin: 0; color: var(--ink-2); max-width: 38ch; }
.product .go { margin-top: auto; padding-top: 28px; font-size: 15px; display: inline-flex; align-items: center; gap: 8px; color: var(--ink); }
.product .go span { transition: transform .25s; }
a.product:hover .go span { transform: translateX(4px); }

/* Approach */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); }
.points { list-style: none; margin: 0; padding: 0; }
.points li { padding: 28px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 56px minmax(0, 1fr); }
.points li:first-child { border-top: 0; padding-top: 0; }
.points b { font-weight: 400; font-size: 14px; color: var(--signal-text); font-variant-numeric: tabular-nums; padding-top: 4px; }
.points h3 { font-size: 21px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.01em; }
.points p { margin: 0; color: var(--ink-2); }

/* Contact */
.contact h2 { margin-bottom: 40px; }
.mail { font-weight: 600; font-size: clamp(22px, 3.6vw, 44px); letter-spacing: -0.025em; text-decoration: none; border-bottom: 3px solid var(--signal); padding-bottom: 4px; overflow-wrap: anywhere; }
.mail:hover { color: var(--signal-text); }

/* Belief */
.belief blockquote { margin: 0; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; font-size: clamp(28px, 4vw, 52px); max-width: 24ch; text-wrap: balance; }
.belief blockquote em { font-style: normal; color: var(--signal-text); }
.belief .sig { margin: 32px 0 0; color: var(--ink-2); }
.points li { grid-template-columns: 56px minmax(0, 1fr); }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 46ch; margin: 28px 0 0; }

/* A low mountain ridge (Ayiti) as the top edge of the dark band. Kept quiet on purpose. */
.ridges { display: block; width: 100%; height: clamp(40px, 4.4vw, 64px); margin-bottom: -2px; position: relative; z-index: 1; }
.ridges .far { fill: #E8E2D7; } .ridges .near { fill: var(--night); }

/* Dark band under the mountains */
.night { --ink: #F2EFE8; --ink-2: #B5B0A6; --line: rgba(242,239,232,.14); --signal-text: #FF7A45; background: var(--night); color: var(--ink); border-top: 0; }
.belief blockquote em { color: var(--signal-text); }


footer { border-top: 1px solid var(--line); padding: 40px 0 48px; font-size: 14px; color: var(--ink-2); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
footer .logo svg { height: 16px; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } * { transition: none !important; } }

@media (max-width: 760px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  nav li.opt { display: none; }
  .product { min-height: 320px; }
}

/* Text pages (privacy) */
.doc { padding-block: clamp(64px, 10vw, 128px); max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 72px); margin-bottom: 16px; }
.doc .updated { color: var(--ink-2); font-size: 15px; margin: 0 0 clamp(40px, 6vw, 64px); }
.doc h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.015em; margin: 48px 0 12px; }
.doc p, .doc li { color: var(--ink-2); }
.doc a { color: var(--ink); text-decoration-color: var(--signal); text-underline-offset: 3px; }
.doc ul { padding-left: 20px; }

/* 404 */
.lost { min-height: calc(100vh - 72px - 140px); display: grid; align-content: center; padding-block: 64px; }
.lost h1 { font-size: clamp(40px, 8vw, 88px); margin-bottom: 16px; }
.lost h1 .sq { display: inline-block; width: .2em; height: .2em; background: var(--signal); vertical-align: top; margin: .1em 0 0 .12em; }
.lost p { color: var(--ink-2); margin: 0 0 28px; }
.lost a { border-bottom: 2px solid var(--signal); text-decoration: none; padding-bottom: 2px; justify-self: start; }
.defs { position: absolute; }

/* Comfortable tap targets (44px) for small links */
header .logo { padding: 11px 0; }
footer .logo { padding: 14px 0; }
footer .legal a { display: inline-block; padding: 12px 0; }
nav a { display: inline-block; padding: 14px 0; }
.mail { display: inline-block; padding-top: 8px; }
