/* ==========================================================================
   Stillkite Labs — stillkitelabs.com
   Plain CSS. No framework, no build step, no external requests.
   ========================================================================== */

/* --- Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/instrument-serif-italic-latin.woff2") format("woff2");
}

/* --- Tokens --------------------------------------------------------------- */

:root {
  --paper: #f7f4ed;
  --paper-2: #efeae0;
  --paper-3: #e6e0d3;
  --ink: #15150f;
  --ink-2: #2b2b23;
  --muted: #67655b;
  --line: #d9d3c5;
  --line-strong: #c4bdac;
  --accent: #1e4d42;
  --accent-soft: #dfe8e3;
  --brass: #a97c35;

  --dark: #14150f;
  --dark-2: #1d1e17;
  --on-dark: #f4f0e6;
  --on-dark-muted: #a8a598;
  --dark-line: rgba(244, 240, 230, 0.14);

  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman",
    serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --header-h: 76px;
  --section-y: clamp(64px, 9vw, 128px);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
h4,
p,
figure,
blockquote,
dl,
dd,
ul,
ol {
  margin: 0;
}

ul[class],
ol[class] {
  padding: 0;
  list-style: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

/* --- Base ----------------------------------------------------------------- */

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

::selection {
  background: var(--accent);
  color: var(--paper);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.on-dark :focus-visible,
.footer :focus-visible,
.contact :focus-visible {
  outline-color: var(--paper);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.02;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 600;
}

em {
  font-style: italic;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.9rem;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}

.skip-link:focus {
  transform: translateY(0);
}

/* --- Small type helpers --------------------------------------------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--line-strong);
}

.kicker--plain::before {
  display: none;
}

.mono-num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark svg {
  width: 22px;
  height: 26px;
  flex: none;
  color: var(--accent);
}

.wordmark-text {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: -0.01em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  width: 4px;
  height: 4px;
  margin: 5px auto -9px;
  border-radius: 50%;
  background: var(--accent);
}

.nav .nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  color: var(--ink);
  line-height: 1.2;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.nav .nav-cta:hover {
  background: var(--ink);
  color: var(--paper);
}

.nav .nav-cta[aria-current="page"]::after {
  display: none;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
}

.menu-toggle svg {
  width: 22px;
  height: 14px;
}

.menu-toggle .line {
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
  transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .line-1 {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .line-2 {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .line-3 {
  transform: translateY(-5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* --- Buttons & links ------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border: 1px solid var(--ink);
  border-radius: 100px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.96rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

.btn svg {
  width: 15px;
  height: 15px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.96rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}

.text-link:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.text-link .arrow {
  transition: transform 0.2s var(--ease);
}

.text-link:hover .arrow {
  transform: translateX(3px);
}

.link-underline {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
  transition: text-decoration-color 0.18s var(--ease);
}

.link-underline:hover {
  text-decoration-color: var(--accent);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  padding-top: clamp(56px, 8vw, 104px);
  padding-bottom: clamp(48px, 7vw, 88px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(3.1rem, 7.2vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: -0.025em;
}

.hero h1 em {
  color: var(--accent);
}

.hero-lead {
  margin-top: 30px;
  max-width: 48ch;
  font-size: clamp(1.06rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 36px;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
}

.kite-svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.kite-float {
  animation: kite-float 9s ease-in-out infinite;
}

.kite-tail {
  transform-origin: 160px 300px;
  animation: kite-sway 6.5s ease-in-out infinite;
}

.hero-art-caption {
  margin-top: -6px;
  padding-left: 4px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}

/* A quiet entrance on load. No scroll-jacking, no reveal-on-scroll. */
.hero-copy > * {
  animation: rise 0.85s var(--ease) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.06s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.12s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.18s;
}

.hero-art {
  animation: rise 1.1s var(--ease) 0.15s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

@keyframes kite-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-10px) rotate(-0.6deg);
  }
}

@keyframes kite-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }
  50% {
    transform: rotate(2.4deg);
  }
}

/* --- Hero footer line ----------------------------------------------------- */

.hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 40px;
  justify-content: space-between;
  margin-top: clamp(48px, 7vw, 84px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}

.hero-foot span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-foot .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* --- Section scaffolding -------------------------------------------------- */

.section {
  padding-block: var(--section-y);
  border-top: 1px solid var(--line);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
}

.section-head .head-note {
  max-width: 34ch;
  font-size: 0.96rem;
  color: var(--muted);
  padding-bottom: 6px;
}

/* --- App list ------------------------------------------------------------- */

.app-list {
  border-top: 1px solid var(--line-strong);
}

.app-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.15fr) 120px 44px;
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  padding: clamp(24px, 3vw, 36px) 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: padding-inline 0.25s var(--ease), background 0.25s var(--ease);
}

.app-row:hover {
  background: var(--paper-2);
  padding-inline: 16px;
}

.app-index {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.app-name {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  line-height: 1;
  letter-spacing: -0.015em;
}

.app-name .ext {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--sans);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  vertical-align: 0.55em;
  transition: transform 0.2s var(--ease), color 0.2s var(--ease);
}

.app-row:hover .app-name .ext {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.app-desc {
  font-size: 0.96rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 46ch;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  justify-self: start;
  padding: 5px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
}

.status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brass);
}

.status--live {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

.status--live::before {
  background: var(--accent);
}

.app-arrow {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.app-arrow svg {
  width: 15px;
  height: 15px;
}

.app-row:hover .app-arrow {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  transform: translateX(3px);
}

.app-row--static {
  grid-template-columns: 54px minmax(0, 0.9fr) minmax(0, 1.15fr) 120px;
  cursor: default;
}

.app-row--static:hover {
  background: transparent;
  padding-inline: 0;
}

.app-row--static:hover .app-arrow {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
  transform: none;
}

.contact .kicker {
  color: var(--on-dark-muted);
}

.contact .kicker::before {
  background: var(--dark-line);
}

.link-on-dark {
  color: var(--on-dark);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--dark-line);
  transition: text-decoration-color 0.18s var(--ease);
}

.link-on-dark:hover {
  text-decoration-color: var(--on-dark);
}

.app-list-note {
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* --- Principles ----------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
}

.principle {
  padding-top: 22px;
  border-top: 1px solid var(--line-strong);
}

.principle-num {
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.principle h3 {
  margin-top: 18px;
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  line-height: 1.1;
}

.principle p {
  margin-top: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Studio band ---------------------------------------------------------- */

.band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}

.studio-grid h2 {
  font-size: clamp(2.2rem, 4.4vw, 3.8rem);
  line-height: 1;
}

.studio-grid h2 em {
  color: var(--accent);
}

.studio-copy p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.studio-copy p + p {
  margin-top: 18px;
}

.studio-copy .text-link {
  margin-top: 28px;
}

/* --- Contact & footer ----------------------------------------------------- */

.contact {
  background: var(--dark);
  color: var(--on-dark);
  padding-top: clamp(64px, 8vw, 112px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  padding-bottom: clamp(56px, 7vw, 96px);
}

.contact h2 {
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.95;
}

.contact h2 em {
  color: color-mix(in srgb, var(--paper) 70%, var(--accent));
}

.contact-mail {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.4rem);
  line-height: 1.2;
  color: var(--on-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--dark-line);
  padding-bottom: 4px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.contact-mail:hover {
  color: #fff;
  border-color: var(--on-dark);
}

.contact-note {
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
  max-width: 36ch;
}

.contact-note + .contact-note {
  margin-top: 16px;
}

.footer {
  background: var(--dark);
  color: var(--on-dark-muted);
  border-top: 1px solid var(--dark-line);
  padding-block: 32px 40px;
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--on-dark);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.15rem;
}

.footer-brand svg {
  width: 15px;
  height: 18px;
  color: var(--on-dark-muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.footer a {
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.18s var(--ease);
}

.footer a:hover {
  color: var(--on-dark);
}

.footer-legal {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--dark-line);
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--on-dark-muted) 80%, transparent);
}

/* --- Interior pages ------------------------------------------------------- */

.page-head {
  padding-top: clamp(48px, 7vw, 88px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  margin-top: 20px;
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 18ch;
}

.page-head h1 em {
  color: var(--accent);
}

.page-lead {
  margin-top: 26px;
  max-width: 58ch;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-2);
}

.page-body {
  padding-block: clamp(48px, 6vw, 88px);
}

/* --- Apps page ------------------------------------------------------------ */

.app-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 88px);
  padding-block: clamp(44px, 6vw, 76px);
  border-top: 1px solid var(--line);
}

.app-detail:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.app-detail h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.app-detail .status {
  margin-top: 20px;
}

.app-detail-meta {
  margin-top: 26px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.7;
}

.app-detail-meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 18px;
}

.app-detail-meta dd {
  margin: 4px 0 0;
  color: var(--ink-2);
}

.app-detail-body > p {
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.app-detail-body > p + p {
  margin-top: 18px;
}

.feature-list {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.feature-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  line-height: 1.55;
}

.feature-list li::before {
  content: "—";
  color: var(--brass);
}

.note {
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}

.note strong {
  color: var(--ink-2);
}

.app-detail-cta {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  align-items: center;
}

/* --- About page ----------------------------------------------------------- */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(32px, 6vw, 88px);
}

.about-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
}

.about-copy p {
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.about-copy p + p {
  margin-top: 20px;
}

.about-copy h2 {
  margin-top: 40px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}

.about-aside {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  align-self: start;
  padding: 26px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}

.about-aside h2 {
  font-size: 1.3rem;
}

.fact-list {
  margin-top: 20px;
}

.fact-list div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.5;
}

.fact-list dt {
  color: var(--muted);
}

.fact-list dd {
  color: var(--ink-2);
}

.about-aside .text-link {
  margin-top: 20px;
  font-size: 0.9rem;
}

/* --- Prose (privacy, terms) ----------------------------------------------- */

.prose {
  max-width: 72ch;
}

.prose .legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.prose h2 {
  margin-top: 52px;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.15;
}

.prose h2:first-of-type {
  margin-top: 0;
}

.prose h3 {
  margin-top: 30px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}

.prose p,
.prose li {
  font-size: 0.99rem;
  line-height: 1.72;
  color: var(--ink-2);
}

.prose p {
  margin-top: 16px;
}

.prose ul,
.prose ol {
  margin-top: 16px;
  padding-left: 22px;
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 8px;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose strong {
  color: var(--ink);
}

.prose .callout {
  margin-top: 28px;
  padding: 20px 22px;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.prose table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 11px 12px 11px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose th {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* --- Contact page --------------------------------------------------------- */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.contact-block {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
}

.contact-block h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.2rem);
}

.contact-block p {
  margin-top: 12px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--muted);
  max-width: 40ch;
}

.big-mail {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.2;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  padding-bottom: 3px;
}

.big-mail:hover {
  border-color: var(--accent);
}

.contact-extra {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 80px);
}

.contact-extra h2 {
  font-size: 1.45rem;
}

.contact-extra p,
.contact-extra li {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--muted);
}

.contact-extra p + p {
  margin-top: 14px;
}

.contact-extra h2 + p {
  margin-top: 10px;
}

.contact-extra ul {
  margin-top: 14px;
  padding-left: 18px;
}

.contact-extra li + li {
  margin-top: 7px;
}

/* --- 404 ------------------------------------------------------------------ */

.notfound {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: 64px;
}

.notfound svg {
  width: 92px;
  height: auto;
  margin: 0 auto 32px;
  opacity: 0.9;
}

.notfound h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
}

.notfound p {
  margin: 18px auto 0;
  max-width: 40ch;
  color: var(--muted);
}

.notfound .hero-actions {
  justify-content: center;
}

/* --- Reveal on scroll ----------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* --- Responsive ----------------------------------------------------------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 32px;
  }

  .app-row {
    grid-template-columns: 44px minmax(0, 1fr) 110px 40px;
  }

  .app-row--static {
    grid-template-columns: 44px minmax(0, 1fr) 110px;
  }

  .app-desc {
    grid-column: 2 / -1;
    grid-row: 2;
    margin-top: -8px;
  }

  .status {
    grid-column: 3;
    grid-row: 1;
  }

  .app-arrow {
    grid-column: 4;
    grid-row: 1;
  }

  .app-row--static .app-arrow {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .mobile-nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--header-h) 0 auto;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    z-index: 99;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 32px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
      visibility 0.22s;
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .mobile-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
    text-decoration: none;
  }

  .mobile-nav a[aria-current="page"] {
    color: var(--accent);
  }

  .mobile-nav a:last-child {
    border-bottom: 0;
  }

  .mobile-nav .nav-cta {
    margin-top: 12px;
    border: 1px solid var(--ink);
    border-radius: 100px;
    padding: 12px 20px;
    justify-content: center;
  }

  .mobile-nav-foot {
    margin-top: auto;
    padding-top: 26px;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
    color: var(--muted);
  }

  .mobile-nav-foot p {
    margin-bottom: 6px;
  }

  .mobile-nav-foot a {
    display: inline;
    padding: 0;
    border: 0;
    font-size: 0.9rem;
    color: var(--accent);
  }

  .hero-grid,
  .studio-grid,
  .contact-grid,
  .about-grid,
  .app-detail,
  .contact-page,
  .contact-extra {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    padding-top: 48px;
  }

  .hero-art {
    justify-self: start;
    width: min(100%, 300px);
    margin-top: 8px;
  }

  .hero h1 {
    font-size: clamp(2.9rem, 11vw, 4.4rem);
  }

  .principles {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .principle {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
  }

  .principle-num {
    grid-row: 1 / 3;
    padding-top: 6px;
  }

  .principle h3 {
    margin-top: 0;
  }

  .principle p {
    grid-column: 2;
  }

  .section-head {
    display: block;
  }

  .section-head .head-note {
    margin-top: 18px;
    padding-bottom: 0;
  }

  .about-aside {
    position: static;
  }

  .contact-grid {
    align-items: start;
  }
}

@media (max-width: 620px) {
  :root {
    --header-h: 66px;
  }

  .app-row {
    grid-template-columns: 1fr 40px;
    gap: 8px 16px;
    padding: 24px 0;
  }

  .app-row:hover {
    padding-inline: 0;
    background: transparent;
  }

  .app-index {
    display: none;
  }

  .app-name {
    grid-column: 1;
  }

  .app-desc {
    grid-column: 1 / -1;
    grid-row: 2;
    margin-top: 4px;
  }

  .status {
    grid-column: 1;
    grid-row: 3;
    margin-top: 10px;
  }

  .app-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .app-row--static {
    grid-template-columns: 1fr;
  }

  .hero-foot {
    flex-direction: column;
    gap: 8px;
  }

  .contact h2 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-legal {
    flex-direction: column;
  }

  .page-head h1 {
    max-width: none;
  }

  .prose h2 {
    margin-top: 40px;
  }

  .prose table {
    font-size: 0.84rem;
  }

  .prose th,
  .prose td {
    padding-right: 8px;
  }

  .prose td {
    overflow-wrap: anywhere;
  }
}

/* --- Motion & print ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .contact,
  .footer,
  .hero-art,
  .skip-link {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .prose {
    max-width: none;
  }

  a {
    color: #000;
  }
}
