@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --paper: #fafaf9;
  --sheet: #ffffff;
  --fg: #1a1c20;
  --muted: #5c6370;
  --line: #e6e4e1;
  --dash: #c9c4c0;
  --drawing: #3f4248;
  --accent: #2a2d33;
  --accent-soft: rgba(42, 45, 51, 0.08);
  --edge: rgba(28, 24, 26, 0.08);
  --shadow: 0 1px 0 rgba(28, 24, 26, 0.04), 0 8px 28px rgba(28, 24, 26, 0.045);
  --brand-text: #474a50;
  --brand-tm: #9a9da2;
  --color-brand-text: #474a50;
  --color-mind: #6d28d9;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.22, 0.8, 0.22, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  background: var(--paper); scroll-behavior: smooth;
  text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
}
body {
  margin: 0; color: var(--fg); background: var(--paper);
  font-family: "Inter", system-ui, sans-serif;
  font-feature-settings: "cv11", "ss01", "ss03";
  font-variation-settings: "opsz" 18;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
button, input, textarea { font: inherit; }
.page { max-width: 78rem; margin: 0 auto; padding: 0 22px; width: 100%; }
@media (min-width: 640px) { .page { padding: 0 40px; } }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Soft section entrance — no content-visibility (it collapses gaps into the hero) */
html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}

.label {
  font-family: var(--mono); font-size: 10.5px; line-height: 16px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.cap { font-family: var(--mono); font-size: 12px; line-height: 18px; color: var(--muted); margin: 0; }
.cap a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--dash); }
.cap a:hover { text-decoration-color: var(--fg); }

h1, h2 {
  font-weight: 450; text-wrap: balance; margin: 0; letter-spacing: -0.032em;
  font-variation-settings: "opsz" 48, "wght" 450;
}
h2 { font-size: 32px; line-height: 38px; }
@media (min-width: 640px) { h2 { font-size: 42px; line-height: 48px; } }

/* Header */
.chrome {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 250, 249, 0.78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .28s var(--ease);
  contain: layout style;
}
.chrome.scrolled { border-bottom-color: var(--line); }
.bar { height: 60px; display: flex; align-items: center; justify-content: space-between; }
.bar-right { display: flex; align-items: center; gap: 22px; }
.contact-open {
  appearance: none; -webkit-appearance: none;
  font: 500 13px/1 "Inter", system-ui, sans-serif; color: var(--fg);
  background: transparent; border: 0; cursor: pointer; padding: 8px 0;
  letter-spacing: 0.01em;
}
.contact-open:hover { color: var(--accent); }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-encephlian {
  color: var(--brand-text);
  font-weight: 700;
  font-size: 17px;
  line-height: 1;
  letter-spacing: -0.02em;
  font-feature-settings: "ss01", "cv11";
  white-space: nowrap;
}
@media (min-width: 768px) {
  .brand-encephlian { font-size: 18px; }
}
.brand-encephlian [data-letter] {
  color: color-mix(in oklch, var(--color-brand-text), var(--color-mind) var(--heat, 0%));
}
.tm {
  margin-left: 0.02em;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--brand-tm);
  vertical-align: 1.2em;
}
.bar .short { display: none; }

.enceph-logo {
  display: block;
  flex: 0 0 auto;
}
.enceph-logo .enceph-d1,
.enceph-logo .enceph-d2,
.enceph-logo .enceph-d3,
.enceph-logo .enceph-spark {
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes enceph-ember-rise {
  0% { transform: translateY(100%); opacity: 0; }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { transform: translateY(-100%); opacity: 0; }
}
@keyframes enceph-dot-pulse {
  0%, 100% { opacity: 0.55; transform: scale(0.85); }
  50% { opacity: 1; transform: scale(1.15); }
}
@keyframes enceph-spark-shine {
  0%, 100% { opacity: 0.65; transform: scale(0.92) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.08) rotate(45deg); }
}
.enceph-logo-animated .enceph-ember {
  animation: enceph-ember-rise 3.6s ease-in-out infinite;
}
.enceph-logo-animated .enceph-d1 {
  animation: enceph-dot-pulse 2.4s ease-in-out infinite;
}
.enceph-logo-animated .enceph-d2 {
  animation: enceph-dot-pulse 2.4s ease-in-out infinite;
  animation-delay: 0.4s;
}
.enceph-logo-animated .enceph-d3 {
  animation: enceph-dot-pulse 2.4s ease-in-out infinite;
  animation-delay: 0.8s;
}
.enceph-logo-animated .enceph-spark {
  animation: enceph-spark-shine 3.2s ease-in-out infinite;
  animation-delay: 1.2s;
}
@media (prefers-reduced-motion: reduce) {
  .enceph-logo-animated .enceph-ember,
  .enceph-logo-animated .enceph-d1,
  .enceph-logo-animated .enceph-d2,
  .enceph-logo-animated .enceph-d3,
  .enceph-logo-animated .enceph-spark {
    animation: none;
  }
}

/* Hero block — stage alone; Conversion only after scroll */
.hero {
  position: relative;
  z-index: 2;
  background: var(--paper);
  padding: 12px 0 24px;
  margin-bottom: 0;
  isolation: isolate;
  min-height: calc(100svh - 60px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
.stage {
  width: 100%;
  max-width: 78rem;
  margin: 0 auto;
  padding: 0 22px;
  box-sizing: border-box;
  flex: 0 1 auto;
  min-height: 0;
}
.stage-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1680 / 920;
  overflow: hidden;
  contain: layout paint;
  animation: stage-in 0.9s var(--ease-out) both;
}
@media (min-width: 640px) {
  .hero { padding: 16px 0 28px; }
  .stage { padding: 0 40px; }
  .stage-frame {
    width: min(100%, calc((100svh - 60px - 56px) * 1680 / 920));
    max-height: calc(100svh - 60px - 56px);
    margin: 0 auto;
  }
}
.stage-loop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  mask-image:
    linear-gradient(to right, transparent, #000 4%, #000 96%, transparent),
    linear-gradient(to bottom, transparent, #000 5%, #000 94%, transparent);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
#loop {
  position: absolute; inset: 0; width: 100%; height: 100%; display: block;
}
.stage-text { display: none; }
.stage-cap {
  position: absolute; left: 0; right: 0; bottom: 14px;
  text-align: center; pointer-events: none; z-index: 2;
  margin: 0;
}
/* Phone landscape — full-viewport perpetual loop; tap anywhere to enter the site */
html.loop-cinema,
html.loop-cinema body {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}
html.loop-cinema .chrome,
html.loop-cinema main > :not(.hero),
html.loop-cinema footer {
  display: none !important;
}
html.loop-cinema .hero {
  position: fixed;
  inset: 0;
  z-index: 80;
  min-height: 100svh;
  height: 100svh;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  justify-content: stretch;
  background: var(--paper);
  cursor: pointer;
}
html.loop-cinema .stage {
  flex: 1 1 auto;
  width: 100%;
  max-width: none;
  height: 100%;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
html.loop-cinema .stage-frame {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: 0;
  animation: none;
}
html.loop-cinema .stage-loop {
  -webkit-mask-image: none;
  mask-image: none;
}
html.loop-cinema .stage-cap {
  bottom: 18px;
}

/* Section heads */
.sec-head { max-width: 44rem; }
.sec-lede { margin: 14px 0 0; font-size: 17px; line-height: 27px; color: var(--muted); text-wrap: pretty; }

/* Controls */
.seg {
  display: inline-flex; gap: 3px; padding: 3px;
  border: 1px solid var(--edge); border-radius: 999px;
  background: var(--sheet); box-shadow: var(--shadow);
}
.seg button {
  font: 500 13px/1 "Inter", system-ui, sans-serif; color: var(--muted);
  background: transparent; border: 0; border-radius: 999px; padding: 10px 16px; cursor: pointer;
  transition: color .22s var(--ease), background-color .22s var(--ease);
}
.seg button:hover { color: var(--fg); }
.seg button[aria-pressed="true"] { color: #fff; background: var(--fg); }
.seg button:disabled { opacity: .4; cursor: default; }
.seg.small { box-shadow: none; padding: 3px; }
.seg.small button { font-size: 12px; padding: 7px 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font: 500 14px/1 "Inter", system-ui, sans-serif; color: #fff; background: var(--fg);
  border: 0; border-radius: 999px; padding: 13px 22px; cursor: pointer;
  transition: background-color .18s var(--ease), transform .18s var(--ease-out), opacity .18s var(--ease);
}
.btn:hover { background: #2a2d33; }
.btn:active { transform: translateY(1px) scale(0.985); }
.ghost {
  font: 500 12px/1 "Inter", system-ui, sans-serif; color: var(--muted);
  background: transparent; border: 1px solid var(--edge); border-radius: 999px;
  padding: 8px 12px; cursor: pointer; transition: color .2s, border-color .2s;
}
.ghost:hover { color: var(--fg); border-color: var(--dash); }

/* Proof — own screen below the fold */
.proof {
  margin-top: 0;
  padding-top: 80px;
  padding-bottom: 8px;
  position: relative;
  z-index: 1;
  background: var(--paper);
  min-height: 100svh;
}
.proof .sec-head { max-width: 36rem; }
.proof .sec-head .label { display: block; margin-bottom: 10px; }
.proof .sec-head h2 { font-size: 26px; line-height: 32px; }
.proof-bar {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: 12px 20px; margin: 28px 0 18px;
}
.sec-head .label { display: block; margin-bottom: 12px; }
.proof-stage {
  width: 100%;
  position: relative;
}
.proof-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 6%;
  margin-bottom: 10px;
  font-family: var(--mono); font-size: 11px; line-height: 16px; color: var(--muted);
}
.proof-meta span { min-width: 0; }
#compare {
  width: 100%;
  height: auto;
  aspect-ratio: 2.55 / 1;
  display: block;
  background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.proof-cap { margin-top: 10px; }
.proof .steps { margin-top: 28px; width: 100%; }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: transparent;
}
.steps li {
  padding: 18px 16px 16px;
  border-right: 1px solid var(--line);
  position: relative;
  min-width: 0;
}
.steps li:last-child { border-right: 0; }
.steps p { margin: 8px 0 0; font-size: 14px; line-height: 20px; letter-spacing: -0.015em; }
@media (max-width: 899px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { padding: 14px 12px; border-right: 1px solid var(--line); border-top: 0; }
  .steps li:nth-child(3n) { border-right: 0; }
  .steps li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .steps p { font-size: 13px; line-height: 18px; }
}
@media (max-width: 639px) {
  #compare { aspect-ratio: 1.55 / 1; }
  .proof-meta {
    column-gap: 4%;
    font-size: 10px;
    margin-bottom: 6px;
  }
  .proof-bar { margin: 20px 0 14px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { border-right: 1px solid var(--line); border-top: 0; }
  .steps li:nth-child(2n) { border-right: 0; }
  .steps li:nth-child(3n) { border-right: 1px solid var(--line); }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Viewer */
.viewer {
  display: grid; grid-template-columns: 1fr; gap: 32px;
  margin-top: 0;
  padding-top: max(120px, 18vh);
  scroll-margin-top: 72px; width: 100%;
  background: var(--paper);
  position: relative; z-index: 1;
}
@media (min-width: 1024px) { .viewer { grid-template-columns: 280px minmax(0, 1fr); gap: 56px; } }
.v-side h2 { font-size: 26px; line-height: 32px; margin-top: 10px; }
.v-side #v-sub { margin-top: 8px; }
.back { display: inline-block; margin-top: 12px; }
.back:hover { color: var(--fg); }
#head { display: block; width: 176px; height: 186px; margin: 28px 0 6px; }
.v-hint { margin-top: 18px; opacity: 0.8; }
.v-main { min-width: 0; width: 100%; }
.v-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.v-ctl { display: flex; align-items: center; gap: 8px; }
#trace {
  width: 100%;
  height: auto;
  aspect-ratio: 1180 / 560;
  display: block;
  background: transparent; border: 0; border-radius: 0;
  box-shadow: none;
}

/* Library */
.library {
  padding-top: max(120px, 18vh); width: 100%;
  background: var(--paper);
  position: relative; z-index: 1;
}
.library .sec-head { max-width: 36rem; }
.library .sec-head h2 { font-size: 26px; line-height: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; }
.chips button {
  font: 500 12px/1 "Inter", system-ui, sans-serif; color: var(--muted); background: transparent;
  border: 1px solid var(--edge); border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.chips button:hover { color: var(--fg); }
.chips button[aria-pressed="true"] { color: var(--fg); border-color: var(--accent); background: var(--accent-soft); }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; }
@media (min-width: 640px) { .grid { grid-template-columns: 1fr 1fr; gap: 12px; } }
@media (min-width: 1024px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.tile {
  display: flex; flex-direction: column; gap: 10px; text-align: left; padding: 10px 10px 12px;
  background: transparent; color: var(--fg); border: 1px solid var(--line); border-radius: 0;
  box-shadow: none; cursor: pointer; font: inherit;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.tile:hover { background: rgba(255,255,255,0.55); border-color: var(--dash); }
.tile[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.tile[hidden] { display: none; }
.tile canvas { width: 100%; height: 92px; display: block; }
.tile .meta { display: grid; gap: 3px; padding: 0 2px; }
.tile .name { font-size: 13.5px; line-height: 18px; font-weight: 520; letter-spacing: -0.01em; }

/* Contract */
.contract {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  padding-top: max(120px, 18vh); padding-bottom: 8px;
  background: var(--paper);
  position: relative; z-index: 1;
}
@media (min-width: 900px) { .contract { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.contract .cap { margin-top: 16px; }
.sheet-spec {
  margin: 0; padding: 8px 0; border-top: 1px solid var(--line);
}
.sheet-spec > div {
  display: grid; grid-template-columns: 108px 1fr; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
}
.sheet-spec dt { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.sheet-spec dd { margin: 0; font-size: 15px; line-height: 22px; letter-spacing: -0.01em; }

/* Products */
.products {
  display: grid; grid-template-columns: 1fr; gap: 14px;
  padding-top: max(100px, 14vh); padding-bottom: 112px;
  background: var(--paper);
  position: relative; z-index: 1;
}
@media (min-width: 768px) { .products { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.prod { padding: 24px; background: transparent; border: 1px solid var(--line); border-radius: 0; box-shadow: none; }
.prod p { margin: 0; }
.prod .p-name { font-weight: 600; font-size: 14.5px; margin-bottom: 8px; letter-spacing: -0.015em; }
.prod p:not(.p-name):not(.cap) { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); letter-spacing: -0.01em; }
.prod .cap { margin-top: 14px; }

footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding-top: 22px !important; padding-bottom: 36px !important;
  border-top: 1px solid var(--line);
}
.footer-contact {
  appearance: none; -webkit-appearance: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; padding: 0; margin: 0;
  color: var(--muted); background: transparent; border: 0; border-radius: 0;
  cursor: pointer; transition: color .2s var(--ease);
}
.footer-contact:hover { color: var(--fg); }
.footer-contact svg { display: block; }

/* —— Mobile layout —— */
@media (max-width: 639px) {
  .bar .wide { display: none; }
  .bar .short { display: inline; }
  .page { padding: 0 18px; }
  .hero {
    border-bottom: 1px solid var(--line);
    padding: 8px 0 16px;
    justify-content: center;
  }
  .stage {
    flex: 0 1 auto;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }
  .stage-frame {
    width: 100%;
    /* Match the design board so the full loop fits with no side crop */
    aspect-ratio: 1680 / 920;
    height: auto;
    max-height: min(62svh, 480px);
    min-height: 0;
  }
  /* Soft edge mask eats readable area on a phone-width board */
  .stage-loop {
    -webkit-mask-image: none;
    mask-image: none;
  }
  .stage-cap {
    bottom: 8px;
    font-size: 11px;
  }
  .proof {
    padding-top: 72px;
  }
  .viewer,
  .library,
  .contract {
    padding-top: max(88px, 16vh);
  }
  .products { padding-top: max(72px, 12vh); padding-bottom: 80px; }
  .sec-lede { font-size: 14px; line-height: 22px; }
  .library .sec-lede { display: none; }

  /* Viewer: compact meta + full-bleed trace */
  .viewer {
    gap: 14px;
    scroll-margin-top: 64px;
  }
  .v-side {
    display: grid;
    grid-template-columns: 112px 1fr;
    grid-template-areas:
      "kind kind"
      "title title"
      "sub sub"
      "back back"
      "head map"
      "head hint";
    column-gap: 16px;
    row-gap: 2px;
    align-items: start;
  }
  .v-side > .label { grid-area: kind; }
  .v-side > h2 { grid-area: title; margin-top: 6px; }
  .v-side > #v-sub { grid-area: sub; margin-top: 2px; }
  .v-side > .back { grid-area: back; margin-top: 6px; }
  #head {
    grid-area: head;
    width: 112px; height: 118px;
    margin: 10px 0 0;
  }
  .v-side > #v-map { grid-area: map; align-self: end; margin: 10px 0 0; }
  .v-side > .v-hint { grid-area: hint; margin: 0; opacity: 0.75; }
  .v-bar { margin-bottom: 8px; justify-content: flex-start; }
  #v-settings { display: none; }
  #trace { aspect-ratio: 1.28 / 1; }

  /* Library: full-width rows */
  .chips { margin: 18px 0 16px; gap: 6px; }
  .chips button { padding: 7px 11px; font-size: 11.5px; }
  .grid { gap: 0; border-top: 1px solid var(--line); }
  .tile {
    padding: 12px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    gap: 8px;
  }
  .tile:hover { background: transparent; }
  .tile[aria-current="true"] { background: transparent; }
  .tile canvas { height: 72px; }

  .prod { padding: 18px 0; border-left: 0; border-right: 0; }
  .contract { gap: 24px; }
  .sheet-spec > div { grid-template-columns: 88px 1fr; gap: 12px; }
}

.back[hidden], .sheet[hidden] { display: none; }

/* Modal */
body.locked { overflow: hidden; }
.sheet {
  position: fixed; inset: 0; z-index: 40;
  display: grid; place-items: center;
  padding: 24px;
  pointer-events: none;
}
.sheet-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 28, 32, 0.18);
  animation: fade .28s var(--ease);
  pointer-events: auto;
}
.sheet-panel {
  position: relative;
  width: min(440px, 100%);
  padding: 32px 28px 26px;
  background: #fff;
  border: 1px solid var(--edge); border-radius: 16px;
  box-shadow: 0 18px 60px rgba(28, 24, 26, 0.14);
  animation: rise .32s var(--ease);
  pointer-events: auto;
}
.sheet-panel h2 { font-size: 22px; line-height: 28px; margin-bottom: 6px; letter-spacing: -0.03em; }
.sheet-to { margin-bottom: 22px; }
.honey { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sheet-x {
  position: absolute; top: 16px; right: 16px; width: 32px; height: 32px;
  border: 1px solid var(--edge); border-radius: 999px; background: #fff;
  color: var(--muted); font: 20px/1 "Inter", system-ui, sans-serif; cursor: pointer;
  transition: color .2s, border-color .2s;
}
.sheet-x:hover { color: var(--fg); border-color: var(--dash); }
.sheet-panel form { display: grid; gap: 16px; }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 420px) { .sheet-row { grid-template-columns: 1fr; } }
.sheet-panel label { display: grid; gap: 6px; }
.sheet-panel input, .sheet-panel textarea {
  width: 100%; font: 15px/1.45 "Inter", system-ui, sans-serif; color: var(--fg);
  background: #fff; border: 1px solid var(--edge); border-radius: 9px;
  padding: 11px 12px; outline: none; transition: border-color .2s;
}
.sheet-panel input:focus, .sheet-panel textarea:focus { border-color: var(--accent); }
.sheet-panel textarea { resize: vertical; min-height: 104px; }
.sheet-panel .btn { width: 100%; margin-top: 6px; }
.sheet-panel .btn[disabled] { opacity: 0.45; cursor: wait; }
.sheet-status { margin-top: 14px; text-align: center; min-height: 18px; }
.sheet-status.ok { color: var(--fg); }
.sheet-status.err { color: var(--accent); }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
@keyframes stage-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheet-backdrop, .sheet-panel, .stage { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tile { transition: none; }
}
