/* Standalone pages (privacy policy, 404) — the site's palette and
   fonts without the animated homepage machinery. */

@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/space-grotesk-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(../fonts/space-grotesk-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: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 600; font-display: swap;
  src: url(../fonts/inter-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;
}

:root {
  --bg: #0c0a06;
  --surface: #16120a;
  --border: rgba(214, 178, 110, 0.16);
  --text: #f4ead7;
  --text-dim: #a99a80;
  --accent: #ffb82e;
  --on-accent: #231603;
}
html[data-theme="light"] {
  --bg: #fbf3e0;
  --surface: #fffaef;
  --border: rgba(150, 110, 35, 0.2);
  --text: #2c2410;
  --text-dim: #7c6638;
  --accent: #b5740c;
  --on-accent: #fffaef;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.7 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}

.page__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 48px;
}

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--text);
  text-decoration: none;
  font: 700 1.3rem 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
}
.logo svg { width: 26px; height: 26px; color: var(--accent); }
.logo em { font-style: normal; color: var(--accent); }

.page__lang { font-size: 0.85rem; color: var(--text-dim); }

h1 {
  font: 700 clamp(1.9rem, 5vw, 2.6rem)/1.15 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
h2 {
  font: 600 1.2rem/1.3 'Space Grotesk', system-ui, sans-serif;
  margin: 40px 0 10px;
}
p, li { color: var(--text); }
.muted { color: var(--text-dim); }
ul { padding-left: 1.2em; }
li + li { margin-top: 6px; }

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.btn {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}

.box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  margin-top: 24px;
}

.center {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
}
.big {
  font: 700 clamp(5rem, 22vw, 9rem)/1 'Space Grotesk', system-ui, sans-serif;
  color: var(--accent);
  letter-spacing: -0.04em;
}

/* ---------- Case-study pages ---------- */
.page--case { max-width: 1000px; }
.page__nav { display: flex; align-items: center; gap: 22px; font-size: 0.9rem; }
.page__nav a { color: var(--text-dim); text-decoration: none; }
.page__nav a:hover { color: var(--accent); }

.case__head { max-width: 760px; }
.case__kicker {
  margin: 0 0 12px;
  font: 500 0.72rem/1 ui-monospace, 'JetBrains Mono', monospace;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.case__head h1 { font-size: clamp(2.4rem, 7vw, 4rem); margin-bottom: 14px; }
.case__lead { font-size: 1.15rem; color: var(--text-dim); margin: 0; }

.case__meta {
  display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin: 30px 0 0; padding: 18px 0 0;
  border-top: 1px solid var(--border);
}
.case__meta dt { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.case__meta dd { margin: 4px 0 0; font-weight: 600; }
.case__meta a { text-decoration: none; }

.case__shot {
  margin: 44px 0 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.case__bar {
  height: 34px;
  display: flex; align-items: center; gap: 7px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.case__bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff6b5f; }
.case__bar i:nth-child(2) { background: #febc2e; }
.case__bar i:nth-child(3) { background: #2bc840; }
.case__bar span {
  margin-left: 12px; padding: 2px 14px; border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  font: 0.75rem ui-monospace, 'JetBrains Mono', monospace; color: var(--text-dim);
}
.case__shot img { display: block; width: 100%; height: auto; }

.case__grid {
  display: grid; grid-template-columns: 1fr; gap: 18px;
  margin-top: 48px;
}
@media (min-width: 860px) { .case__grid { grid-template-columns: 1fr 1.3fr 1fr; } }
.case__block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 24px 26px;
}
.case__block h2 { margin: 0 0 12px; font-size: 1.05rem; color: var(--accent); }
.case__block p { margin: 0; color: var(--text); }
.case__list { margin: 0; padding: 0; list-style: none; }
.case__list li { position: relative; padding-left: 22px; }
.case__list li + li { margin-top: 9px; }
.case__list li::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 9px; height: 9px;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background: var(--accent);
}
.case__visit { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }

.case__cta {
  margin-top: 48px;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 20px;
  text-align: center;
  border: 1px solid var(--border);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 184, 46, 0.14), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(255, 140, 28, 0.12), transparent 55%),
    var(--surface);
}
.case__cta h2 { margin: 0 0 10px; font-size: clamp(1.4rem, 3.4vw, 2rem); }
.case__cta p { margin: 0 auto; max-width: 460px; color: var(--text-dim); }
.case__cta .btn { margin-top: 22px; }

.case__pager {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.case__pager a { display: flex; flex-direction: column; gap: 4px; color: var(--text); text-decoration: none; font-weight: 600; }
.case__pager a:last-child { text-align: right; }
.case__pager span { font-size: 0.78rem; font-weight: 400; color: var(--text-dim); }
.case__pager a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .page__top { flex-wrap: wrap; }
  .case__meta { gap: 12px 26px; }
}

/* ---------- Honey page transition (honey-nav.js) ---------- */
/* arriving: honey covers the first paint until the script drains it;
   if the script never runs the cover still lifts on its own */
html.honey-in::before {
  content: ''; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none;
  background: linear-gradient(180deg, #ffd263 0%, #f4a21f 55%, #b8640a 100%);
  animation: honey-cover-off 0.4s 3s forwards;
}
html.honey-in[data-theme="light"]::before { background: linear-gradient(180deg, #ffd56e 0%, #f2a425 55%, #c4730f 100%); }
@keyframes honey-cover-off { to { opacity: 0; visibility: hidden; } }
canvas.honey-nav { position: fixed; inset: 0; z-index: 2147483001; pointer-events: none; }
