/* nullix.at */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-deep: #ebe7dd;
  --ink: #16130f;
  --ink-soft: #4b463e;
  --muted: #7d766a;
  --line: rgba(22, 19, 15, 0.14);
  --line-strong: rgba(22, 19, 15, 0.55);
  --red: #ff002e;
  --red-deep: #d90027;

  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --gutter: clamp(20px, 4.4vw, 64px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4, p, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul { list-style: none; }
a { color: inherit; }
::selection { background: var(--red); color: #fff; }

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-wide { max-width: 1480px; padding-inline: clamp(10px, 2.2vw, 32px); }

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- Shared type ---------- */

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}
.label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--red);
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 6.2vw, 5.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.display em { font-style: italic; color: var(--red); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s, gap 0.25s var(--ease);
}
.text-link:hover { color: var(--red-deep); border-color: var(--red); gap: 14px; }

/* ---------- Ruler: the "nach Maß" motif ---------- */

.ruler {
  position: relative;
  height: 34px;
  /* --ruler-x is set by site.js so that the zero mark lines up with the page content */
  --x: var(--ruler-x, var(--gutter));
  background:
    linear-gradient(var(--line-strong), var(--line-strong)) 0 0 / 100% 1px no-repeat,
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) var(--x) 0 / 100px 16px repeat-x,
    linear-gradient(90deg, var(--line-strong) 1px, transparent 1px) var(--x) 0 / 50px 11px repeat-x,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) var(--x) 0 / 10px 6px repeat-x;
  overflow: hidden;
}
.ruler span {
  position: absolute;
  top: 17px;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1;
  color: var(--muted);
  transform: translateX(4px);
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
}
.brand img { width: 107px; height: 46px; }
.site-header nav {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  font-size: 15px;
  font-weight: 500;
}
.site-header nav a {
  text-decoration: none;
  position: relative;
  padding-block: 6px;
}
.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.site-header nav a:hover::after { transform: scaleX(1); }

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

.hero {
  padding-top: clamp(40px, 9vh, 110px);
  padding-bottom: clamp(44px, 7vh, 84px);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: clamp(22px, 4vh, 40px);
}
.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.5rem, 13.2vw, 11.75rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
}
.hero-title .line { display: block; }
.hero-title .line:nth-child(2) { padding-left: 0.5em; margin-top: 0.1em; }
/* room for the dots of the Ö below the tight line above */
.hero-title .line:nth-child(3) { margin-top: 0.09em; }

.measure {
  position: relative;
  display: inline-block;
  font-style: italic;
  padding-right: 0.06em;
}
.measure-line {
  position: absolute;
  left: 0.02em;
  right: 0;
  top: -0.1em;
  height: 0.13em;
  border-inline: 2px solid var(--red);
  background: linear-gradient(var(--red), var(--red)) center / 100% 2px no-repeat;
  transform-origin: left center;
}
.measure-line i {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper);
  padding: 0 0.9em;
  font-family: var(--mono);
  font-style: normal;
  font-size: clamp(10px, 0.085em, 14px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  color: var(--red-deep);
}
.hero-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
  margin-top: clamp(40px, 7vh, 76px);
}
.lede {
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  line-height: 1.45;
  max-width: 27em;
  color: var(--ink-soft);
  text-wrap: pretty;
}

/* Hero entrance */
@media (prefers-reduced-motion: no-preference) {
  .js .hero .eyebrow,
  .js .hero-title .line,
  .js .hero-foot {
    animation: rise 0.9s var(--ease) both;
  }
  .js .hero-title .line:nth-child(1) { animation-delay: 0.05s; }
  .js .hero-title .line:nth-child(2) { animation-delay: 0.14s; }
  .js .hero-title .line:nth-child(3) { animation-delay: 0.23s; }
  .js .hero-foot { animation-delay: 0.4s; }
  .js .measure-line { animation: measure 0.9s var(--ease) 0.75s both; }
  .js .measure-line i { animation: fade 0.5s ease 1.45s both; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(0.35em); }
  to { opacity: 1; transform: none; }
}
@keyframes measure {
  from { transform: scaleX(0); opacity: 0; }
  to { transform: scaleX(1); opacity: 1; }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.about { padding-block: clamp(72px, 12vw, 160px); }
.about-head .display { margin-top: 22px; max-width: 13em; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(40px, 7vw, 112px);
  margin-top: clamp(40px, 6vw, 80px);
  align-items: start;
}
.about-text p {
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 36em;
  text-wrap: pretty;
}
.about-text p + p { margin-top: 1.3em; }
.about-text blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 3.5vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-block: 0.9em 0.95em;
  padding-left: 0.75em;
  border-left: 2px solid var(--red);
  max-width: 15em;
  text-wrap: balance;
}

.portrait {
  display: flex;
  align-items: center;
  gap: 18px;
}
.portrait img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line), 0 14px 30px -14px rgba(22, 19, 15, 0.5);
}
.portrait figcaption { font-size: 15px; color: var(--ink-soft); }
.portrait figcaption strong { color: var(--ink); font-weight: 600; }

.specs { margin-top: 34px; border-top: 1px solid var(--line-strong); }
.specs div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.specs dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.specs dd { font-weight: 500; text-align: right; font-size: 16px; }

/* ---------- Projects ---------- */

.projects { padding-bottom: clamp(72px, 10vw, 140px); }
.projects-head { padding-bottom: clamp(36px, 5vw, 64px); }
.projects-head .display { margin-top: 22px; }
.projects-intro {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--ink-soft);
  text-wrap: pretty;
}

.stage {
  --accent: #ff5a4d;
  --accent-2: #ffa23a;
  --stage-bg: #0f0e11;
  --on: #f5f2ee;
  --on-soft: rgba(245, 242, 238, 0.68);
  --on-muted: rgba(245, 242, 238, 0.46);
  --rule: rgba(245, 242, 238, 0.12);

  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--stage-bg);
  color: var(--on);
  border-radius: clamp(22px, 2.6vw, 40px);
  padding: clamp(24px, 4.6vw, 76px);
  box-shadow: 0 50px 90px -50px rgba(22, 19, 15, 0.55);
}
.stage + .stage { margin-top: clamp(16px, 2.2vw, 32px); }
.stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.stage-novis::before {
  background:
    radial-gradient(60% 55% at 88% 8%, rgba(255, 60, 90, 0.26), transparent 70%),
    radial-gradient(45% 40% at 60% 0%, rgba(255, 150, 50, 0.16), transparent 70%),
    radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1.4px) 0 0 / 26px 26px;
  -webkit-mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, 0.35));
  mask-image: linear-gradient(#000 30%, rgba(0, 0, 0, 0.35));
}
.stage-piano {
  --accent: #ffc94f;
  --accent-2: #f59a14;
  --stage-bg: #0e0c16;
}
.stage-piano::before {
  background:
    radial-gradient(55% 50% at 10% 6%, rgba(139, 108, 255, 0.3), transparent 70%),
    radial-gradient(40% 40% at 95% 100%, rgba(64, 210, 190, 0.14), transparent 70%),
    radial-gradient(35% 30% at 45% 0%, rgba(255, 190, 70, 0.1), transparent 70%);
}

.stage-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: clamp(20px, 2.4vw, 30px);
  border-bottom: 1px solid var(--rule);
}
.stage-id {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--on-muted);
}
.stage-id img { width: 44px; height: 44px; border-radius: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--on-soft);
  background: rgba(255, 255, 255, 0.03);
}

.stage-main {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 76px);
}
.stage-main-flip { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }

.stage-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.9rem, 6.4vw, 5.9rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  background: linear-gradient(100deg, #fff 20%, var(--accent-2) 62%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.08em;
}
.stage-piano .stage-title { background-image: linear-gradient(100deg, #fff 35%, var(--accent) 95%); }
.stage-lead {
  margin-top: 22px;
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.42;
  color: var(--on);
  text-wrap: pretty;
}
.stage-copy p:not(.stage-lead):not(.stage-meta) {
  margin-top: 1.1em;
  color: var(--on-soft);
  max-width: 34em;
  text-wrap: pretty;
}
.stage-meta {
  margin-top: 26px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--on-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  padding: 13px 18px 13px 22px;
  border-radius: 999px;
  background: var(--on);
  color: #121014;
  font-weight: 600;
  font-size: 15.5px;
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.2s;
}
.button svg { transition: transform 0.25s var(--ease); }
.button:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 16px 34px -14px var(--accent);
}
.button:hover svg { transform: translate(2px, -2px); }

/* Code window */
.code-win {
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: rgba(20, 19, 23, 0.86);
  box-shadow: 0 40px 80px -40px #000, 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  min-width: 0;
  position: relative;
}
.code-win::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-2), var(--accent), transparent);
}
.code-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.025);
}
.code-dots { display: flex; gap: 7px; }
.code-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e0355a; }
.code-dots i:nth-child(2) { background: #f0b429; }
.code-dots i:nth-child(3) { background: #45c768; }
.code-tabs { display: flex; flex: 1; min-width: 0; }
.code-tabs button {
  font: 600 14px var(--sans);
  color: var(--on-muted);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 14px 13px 12px;
  cursor: pointer;
  transition: color 0.2s;
}
.code-tabs button:hover { color: var(--on); }
.code-tabs button[aria-selected="true"] { color: var(--on); border-bottom-color: #4fc3f7; }
.code-badge {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  color: #7fd4f5;
  background: rgba(79, 195, 247, 0.12);
  padding: 4px 9px;
  border-radius: 7px;
  white-space: nowrap;
}
.code {
  margin: 0;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.75;
  color: #bcbec4;
  overflow-x: auto;
  tab-size: 2;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}
.code code { font: inherit; }
.code .k { color: #cf8e6d; }
.code .s { color: #6aab73; }
.code .c { color: #7a7e85; font-style: italic; }
.code .f { color: #56a8f5; }
.code .v { color: #c77dbb; }
.code .e { color: #ff6b7d; }
.code .b { color: #56a8f5; }
.code-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-soft);
  padding: 9px 20px;
  border-block: 1px solid var(--rule);
  background: rgba(255, 255, 255, 0.035);
  display: flex;
  align-items: center;
  gap: 9px;
}
.code-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45c768;
}
.code-label-error::before { background: #ff6b7d; }
.code-out { background: rgba(0, 0, 0, 0.28); }
.code-note {
  font-size: 13.5px;
  color: var(--on-muted);
  padding: 12px 20px 14px;
  border-top: 1px solid var(--rule);
}
.code-pane[hidden] { display: none; }

/* Screenshots */
.shots { position: relative; padding-bottom: 12%; padding-right: 10%; }
.shot {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 50px 90px -40px #000, 0 0 90px -30px rgba(139, 108, 255, 0.5);
  background: #101320;
}
.shot img { width: 100%; }
.shot-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  border-radius: 6.5% / 6%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 34px 70px -24px #000, 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* Features */
.feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.feats li {
  padding: clamp(22px, 2.6vw, 34px) clamp(18px, 2.4vw, 34px) clamp(22px, 2.6vw, 34px) 0;
  border-bottom: 1px solid var(--rule);
}
.feats li:not(:nth-child(3n + 1)) {
  padding-left: clamp(18px, 2.4vw, 34px);
  border-left: 1px solid var(--rule);
}
.feats h4 {
  font-size: 16.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.feats h4::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  transform: translateY(-1px);
}
.feats p {
  margin-top: 8px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--on-soft);
  text-wrap: pretty;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 48px);
  padding-top: clamp(34px, 4.6vw, 64px);
}
.stats dt {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5.2vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums;
}
.stats dd {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--on-soft);
  max-width: 19em;
  text-wrap: pretty;
}
.stage-foot {
  margin-top: clamp(24px, 3vw, 40px);
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: var(--on-muted);
}

/* ---------- Footer ---------- */

.footer-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px 32px;
  padding-block: clamp(30px, 4vw, 48px) clamp(36px, 5vw, 60px);
  font-size: 15px;
}
.footer-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: start;
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.7rem;
  line-height: 1;
}
.footer-mark img { width: 36px; height: 36px; }
.footer-made { color: var(--ink-soft); }
.footer-links {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
}
.footer-links a {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s, border-color 0.2s;
}
.footer-links a:hover { color: var(--red-deep); border-color: var(--red); }

/* ---------- Impressum ---------- */

.legal {
  padding-top: clamp(40px, 8vh, 96px);
  padding-bottom: clamp(72px, 10vw, 130px);
}
.legal .display {
  margin-top: 22px;
  font-size: clamp(3.2rem, 9vw, 7rem);
}
.legal > * { max-width: 860px; }
.legal-sub { margin-top: 18px; color: var(--ink-soft); font-size: 1.1rem; }
.legal-list {
  margin-block: clamp(36px, 5vw, 60px) clamp(36px, 5vw, 56px);
  border-top: 1px solid var(--line-strong);
}
.legal-list div {
  display: grid;
  grid-template-columns: minmax(130px, 1fr) 3fr;
  gap: 8px 32px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.legal-list dt {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 5px;
}
.legal-list dd { font-size: 1.08rem; }
.legal-list a { text-decoration-color: var(--red); text-underline-offset: 4px; }
.legal-list a:hover { color: var(--red-deep); }

/* ---------- Scroll reveal ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; }
}

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

@media (max-width: 1000px) {
  .stage-main,
  .stage-main-flip { grid-template-columns: minmax(0, 1fr); }
  .stage-main-flip .shots { order: 2; }
  .feats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feats li:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .feats li:nth-child(2n) {
    padding-left: clamp(18px, 2.4vw, 34px);
    border-left: 1px solid var(--rule);
  }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
}

@media (max-width: 820px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-row { grid-template-columns: 1fr; justify-items: start; }
  .footer-links { justify-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .site-header { padding-block: 18px; }
  .brand img { width: 88px; height: 38px; }
  .site-header nav { font-size: 14px; gap: 16px; }
  .hero-title { font-size: 16.4vw; }
  .hero-title .line:nth-child(2) { padding-left: 0.25em; margin-top: 0.17em; }
  .measure-line { top: -0.14em; }
  .hero-title .line:nth-child(3) { margin-top: 0.13em; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feats li:nth-child(n) { padding-left: 0; padding-right: 0; border-left: 0; }
  .code { font-size: 12px; padding: 14px 16px; }
  .code-label, .code-note { padding-inline: 16px; }
  .code-badge { display: none; }
  .legal-list div { grid-template-columns: minmax(0, 1fr); }
  .stage-top { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 420px) {
  .site-header nav a:first-child { display: none; }
}
