/* Karya site design system, shared by every page.
   Dark only. One accent (mint). Sharp corners everywhere (radius 0); only things that are round (logo mark, status dots) are round.
   Structure is drawn with 1px rails: every .wrap carries side rails, every .band starts with a full-width hairline. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 300 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: "Space Grotesk"; font-style: normal; font-weight: 300 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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-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: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("../fonts/jetbrains-mono-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; }

:root {
  color-scheme: dark;
  --bg: #07090a;
  --bg-2: #0a0d0e;
  --panel: #0c1011;
  --panel-2: #101517;
  --hover: #141a1c;
  --line: rgba(150,160,165,0.16);
  --line-soft: rgba(150,160,165,0.09);
  --line-strong: rgba(150,160,165,0.32);
  --text: #eef3f4;
  --dim: #aab4b7;
  --muted: #7d888c;
  --accent: #5fd0a0;
  --accent-ink: #06120c;
  --accent-soft: rgba(95,208,160,0.10);
  --accent-line: rgba(95,208,160,0.40);
  /* status colours: only inside product visuals, where they mean something */
  --amber: #cda45c; --amber-soft: rgba(205,164,92,0.12);
  --purple: #b08ce8; --purple-soft: rgba(176,140,232,0.14);
  --blue: #6bc7f0; --blue-soft: rgba(107,199,240,0.12);
  --red: #d98c8c; --red-soft: rgba(217,140,140,0.12);

  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* type scale: six sizes */
  --fs-display: clamp(40px, 5vw, 72px);
  --fs-h2: clamp(30px, 3.4vw, 46px);
  --fs-h3: clamp(19px, 1.5vw, 22px);
  --fs-lead: clamp(17px, 1.35vw, 19px);
  --fs-small: 14px;
  --fs-mono: 12px;

  --wrap: 1240px;
  --gutter: clamp(16px, 3.2vw, 40px);
  --sec: clamp(64px, 8vw, 104px);
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); color: var(--text); }
.ico { width: 16px; height: 16px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acc { color: var(--accent); }
.soft { color: var(--dim); }

/* ── frame: rails and bands ─────────────────────────── */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); border-inline: 1px solid var(--line); }
.band { border-top: 1px solid var(--line); }
.band > .wrap { padding-block: var(--sec); }
.bleed { margin-inline: calc(-1 * var(--gutter)); }
.h2 { font-size: var(--fs-h2); letter-spacing: -0.035em; }
.lead { font-size: var(--fs-lead); color: var(--dim); line-height: 1.55; max-width: 60ch; }

/* ── buttons ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px;
  border: 1px solid var(--line-strong); border-radius: 0; background: transparent; color: var(--text);
  font: 500 15px/1 var(--sans); letter-spacing: -0.005em; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .12s var(--ease);
}
.btn:hover { background: var(--hover); border-color: var(--dim); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn .ico { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(2px); }
.btn-primary, .btn-solid, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn-primary:hover, .btn-solid:hover, .btn-accent:hover { background: #79dcb2; border-color: #79dcb2; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

/* ── nav ─────────────────────────────────────────────── */
.nav-bar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand svg { width: 26px; height: 26px; }
.wordmark { font: 600 14px/1 var(--sans); letter-spacing: .34em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { text-decoration: none; font-size: 14.5px; color: var(--dim); transition: color .15s; }
.nav-links > a:hover, .nav-links > a[aria-current="page"] { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-dd { position: relative; }
.nav-dd > button { all: unset; box-sizing: border-box; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--sans); font-size: 14.5px; color: var(--dim); transition: color .15s; }
.nav-dd:hover > button, .nav-dd.open > button, .nav-dd.cur > button { color: var(--text); }
.nav-dd > button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-dd > button svg { width: 12px; height: 12px; transition: transform .15s; }
.nav-dd:hover > button svg, .nav-dd.open > button svg { transform: rotate(180deg); }
.nav-menu { position: absolute; top: 100%; left: -17px; padding-top: 21px; width: 240px; opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; z-index: 30; }
.nav-dd:hover .nav-menu, .nav-dd:focus-within .nav-menu, .nav-dd.open .nav-menu { opacity: 1; visibility: visible; transform: none; }
.nav-menu-in { display: grid; background: var(--panel); border: 1px solid var(--line-strong); }
.nav-menu a { display: grid; gap: 3px; padding: 14px 16px; text-decoration: none; }
.nav-menu a + a { border-top: 1px solid var(--line); }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--hover); }
.nav-menu a b { font-weight: 500; font-size: 14.5px; line-height: 1.2; color: var(--text); }
.nav-menu a span { font-size: 13px; line-height: 1.3; color: var(--muted); }
.nav-toggle { all: unset; box-sizing: border-box; display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; cursor: pointer; color: var(--text); }
.nav-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.nav-toggle svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.nav-toggle .i-close, .nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.nav-sheet { display: none; }
@media (max-width: 820px) {
  .nav { gap: 10px; }
  .nav-links { display: none; }
  .nav-toggle { display: grid; }
  .nav-sheet { position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; padding: 0 var(--gutter); background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav-sheet.open { display: grid; }
  .nav-sheet a { display: flex; align-items: center; min-height: 54px; font-size: 17px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line-soft); }
  .nav-sheet a[aria-current="page"] { color: var(--accent); }
  .nav-sheet a:last-child { border-bottom: 0; }
}

/* ── footer ──────────────────────────────────────────── */
footer { border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; justify-content: space-between; padding-block: 36px 44px; }
.foot nav { display: flex; gap: 22px; flex-wrap: wrap; }
.foot nav a { font-size: 14px; color: var(--dim); text-decoration: none; }
.foot nav a:hover { color: var(--text); }
.foot .legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 0; font: 400 var(--fs-mono)/1 var(--mono); color: var(--muted); }
.foot .legal a { color: var(--muted); text-decoration: none; }
.foot .legal a:hover, .foot .legal a[aria-current="page"] { color: var(--text); }
@media (max-width: 820px) {
  .foot nav { gap: 0 22px; }
  .foot .legal { gap: 0 18px; }
  .foot nav a, .foot .legal a, .foot .legal span { display: inline-flex; align-items: center; min-height: 44px; }
}

/* ── motion: one short rise as each block enters ─────── */
.rv [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.rv [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .rv [data-reveal] { opacity: 1; transform: none; }
}
