/* =========================================================
   Крючок и иероглиф — одностраничный сайт
   ========================================================= */

:root {
  --paper: #f7f1e7;
  --paper-2: #f1e8d9;
  --card: #fffcf6;
  --ink: #211d17;
  --ink-soft: #3a332a;
  --muted: #6e6355;
  --line: #e0d3bf;
  --rust: #be5b3c;
  --jade: #2f5d50;
  --indigo: #35507a;
  --saffron: #c98a1f;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --cjk: "Noto Serif SC", "Songti SC", "STSong", "SimSun", "Source Han Serif SC", "PingFang SC", serif;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --shadow-soft: 0 18px 40px -30px rgba(33, 29, 23, .45);
  --shadow-lift: 0 26px 60px -34px rgba(33, 29, 23, .5);
}

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

html { scroll-behavior: smooth; overflow-x: clip; }

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  opacity: .038;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

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

h1, h2, h3, blockquote {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
  letter-spacing: -.015em;
}

p { margin: 0; }

a { color: inherit; }

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

ul, ol, dl, dd { margin: 0; padding: 0; }

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip:focus { left: 0; }

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

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 241, 231, .82);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, background .25s;
}
.top.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(247, 241, 231, .94);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.brand__text {
  font-family: var(--serif);
  font-size: 1.06rem;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.brand__text em {
  font-style: normal;
  color: var(--rust);
  margin: 0 .18em;
}
.nav {
  display: flex;
  gap: 26px;
}
.nav a {
  text-decoration: none;
  font-size: .86rem;
  color: var(--muted);
  position: relative;
  padding: 4px 0;
  transition: color .18s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { transform: scaleX(1); }
.top__badge {
  font-size: .7rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  white-space: nowrap;
}

/* ---------- hero ---------- */

.hero { padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 88px); }
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}
.eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rust);
  box-shadow: 0 0 0 4px rgba(190, 91, 60, .14);
}
.hero h1 {
  font-size: clamp(2.45rem, 5.4vw, 4.15rem);
  line-height: 1.02;
  letter-spacing: -.03em;
}
.hl {
  font-style: italic;
  color: var(--rust);
  background: linear-gradient(transparent 64%, rgba(190, 91, 60, .17) 64%);
  padding: 0 .06em;
}
.lead {
  margin-top: 22px;
  max-width: 47ch;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.62;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.facts dt {
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1;
  letter-spacing: -.02em;
}
.facts dd {
  font-size: .76rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 6px;
  max-width: 18ch;
}

/* ---------- hero art ---------- */

.hero__art { position: relative; }
.art-frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 26px 26px 16px;
  box-shadow: var(--shadow-lift), inset 0 1px 0 rgba(255, 255, 255, .7);
  transform: rotate(-1.4deg);
  transition: transform .5s cubic-bezier(.2, .8, .3, 1);
}
.art-frame:hover { transform: rotate(-.4deg) translateY(-3px); }
.art-frame canvas {
  display: block;
  margin-inline: auto;
  transition: opacity .35s ease;
}
.tape {
  position: absolute;
  width: 86px;
  height: 26px;
  background: rgba(226, 205, 160, .62);
  border-left: 1px dashed rgba(160, 140, 100, .45);
  border-right: 1px dashed rgba(160, 140, 100, .45);
  box-shadow: 0 1px 3px rgba(33, 29, 23, .09);
  z-index: 2;
}
.tape--a { top: -13px; left: -16px; transform: rotate(-7deg); }
.tape--b { bottom: -12px; right: -14px; transform: rotate(5deg); }
.art-caption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.art-caption__char {
  font-family: var(--cjk);
  font-size: 1.7rem;
  line-height: 1;
}
.art-caption__meta {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  margin-left: auto;
  text-align: right;
}
.art-caption__meta b { font-size: .86rem; font-weight: 600; }
.art-caption__meta span {
  font-size: .74rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.art-hint {
  text-align: center;
  font-size: .74rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 16px;
  opacity: .8;
}

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: #efe6d6;
  transform: rotate(-.8deg) scale(1.02);
  padding: 13px 0;
  margin: 6px 0 0;
}
.marquee__track {
  display: inline-flex;
  white-space: nowrap;
  animation: marquee 46s linear infinite;
  will-change: transform;
}
.marquee__track span {
  font-size: .74rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .78;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */

.sec { padding: clamp(56px, 8vw, 100px) 0; }
.sec--band {
  background: linear-gradient(180deg, #f2e9da 0%, var(--paper) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sec__head { max-width: 760px; }
.sec__num {
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 14px;
}
.sec__head h2 {
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.08;
}
.sec__sub {
  margin-top: 14px;
  color: var(--muted);
  font-size: .98rem;
  max-width: 64ch;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: .82em 1.4em;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-size: .9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: var(--rust); }
.btn--ghost { border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { background: var(--card); border-color: #cfbea4; }
.btn--dark { background: var(--ink); color: var(--paper); }
.btn--dark:hover { background: var(--jade); }
.btn--small {
  padding: .55em .95em;
  font-size: .78rem;
  border-radius: var(--r-sm);
  border-color: var(--line);
  background: var(--card);
}
.btn--small:hover { border-color: #cfbea4; background: #fff; }
.btn--block { width: 100%; margin-top: 12px; }

/* ---------- studio ---------- */

.studio {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: start;
  margin-top: 38px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: 88px;
}

.field + .field { margin-top: 20px; }
.field__label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: .7rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field__label output {
  font-size: .72rem;
  letter-spacing: .04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.field__input {
  width: 100%;
  padding: 9px 12px;
  font-family: var(--cjk);
  font-size: 1.55rem;
  line-height: 1.2;
  text-align: center;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field__input:focus {
  outline: none;
  border-color: var(--rust);
  box-shadow: 0 0 0 3px rgba(190, 91, 60, .13);
}
.field__hint {
  font-size: .7rem;
  color: var(--muted);
  margin-top: 6px;
  text-align: center;
  opacity: .85;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.chip {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cjk);
  font-size: 1.06rem;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.chip:hover { border-color: var(--rust); transform: translateY(-1px); }
.chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.range {
  width: 100%;
  margin: 2px 0 4px;
  accent-color: var(--rust);
  cursor: pointer;
}
.range__scale {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.swatches { display: flex; gap: 9px; }
.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--c, #ccc);
  cursor: pointer;
  box-shadow: 0 0 0 1px var(--line), inset 0 1px 2px rgba(255, 255, 255, .35);
  transition: transform .15s, box-shadow .15s;
}
.swatch:hover { transform: scale(1.06); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }

.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.seg__btn {
  padding: 9px 6px;
  background: transparent;
  border: 0;
  font-size: .78rem;
  color: var(--muted);
  cursor: pointer;
  transition: background .16s, color .16s;
}
.seg__btn + .seg__btn { border-left: 1px solid var(--line); }
.seg__btn.is-on { background: var(--ink); color: var(--paper); }

.switch {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: .84rem;
  cursor: pointer;
  user-select: none;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch__track {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #e3d6c1;
  transition: background .2s;
  flex: none;
}
.switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2);
  transition: transform .2s;
}
.switch input:checked + .switch__track { background: var(--jade); }
.switch input:checked + .switch__track::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--rust); outline-offset: 3px; }

.panel__foot {
  display: flex;
  gap: 8px;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}

.canvas-col { min-width: 0; }
.canvas-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px;
  display: grid;
  place-items: center;
  min-height: 300px;
  box-shadow: var(--shadow-soft);
}
#pattern {
  display: block;
  touch-action: none;
  cursor: crosshair;
}
.canvas-hint {
  margin-top: 12px;
  text-align: center;
  font-size: .76rem;
  color: var(--muted);
}

.side { min-width: 0; }
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.stat__n {
  display: block;
  font-family: var(--serif);
  font-size: 1.45rem;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__l {
  display: block;
  margin-top: 5px;
  font-size: .66rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
}

.instr {
  margin-top: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.instr summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
}
.instr summary::-webkit-details-marker { display: none; }
.instr summary svg { width: 14px; height: 14px; transition: transform .2s; }
.instr[open] summary svg { transform: rotate(180deg); }
.instr__list {
  max-height: 330px;
  overflow: auto;
  padding: 0 14px 8px;
  border-top: 1px dashed var(--line);
  list-style: none;
  scrollbar-width: thin;
}
.instr__list li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px dotted rgba(33, 29, 23, .09);
  font-size: .76rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.instr__list li:last-child { border-bottom: 0; }
.instr__list .row {
  color: var(--rust);
  font-weight: 600;
  font-size: .72rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.instr__note {
  padding: 10px 14px;
  border-top: 1px dashed var(--line);
  font-size: .7rem;
  line-height: 1.45;
  color: var(--muted);
}

/* ---------- legend ---------- */

.legend {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  list-style: none;
}
.legend__item {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 26px 20px 22px;
  transition: transform .22s, box-shadow .22s;
}
.legend__item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-soft);
}
.legend__sym {
  display: block;
  font-family: var(--serif);
  font-size: 2.1rem;
  line-height: 1;
  color: var(--rust);
  margin-bottom: 14px;
}
.legend__item h3 { font-size: 1rem; margin-bottom: 7px; }
.legend__item p { font-size: .82rem; color: var(--muted); line-height: 1.5; }
.legend__tag {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: .62rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
}

/* ---------- gallery ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
  list-style: none;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.card__pic {
  display: grid;
  place-items: center;
  padding: 26px 20px;
  background-color: #f5ecdd;
  background-image: radial-gradient(rgba(33, 29, 23, .1) 1px, transparent 1px);
  background-size: 13px 13px;
  border-bottom: 1px solid var(--line);
}
.card__canvas { display: block; }
.card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 20px;
  flex: 1;
}
.card__kicker {
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--rust);
}
.card__body h3 {
  font-family: var(--cjk);
  font-size: 1.9rem;
  line-height: 1;
}
.card__body p {
  font-size: .84rem;
  line-height: 1.55;
  color: var(--muted);
}
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.card__meta {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
}
.card__link {
  background: none;
  border: 0;
  padding: 0;
  font-size: .76rem;
  color: var(--ink);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(190, 91, 60, .5);
  transition: color .16s, text-decoration-color .16s;
  white-space: nowrap;
}
.card__link:hover { color: var(--rust); text-decoration-color: var(--rust); }

/* ---------- about ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.about__text h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}
.about__text > p {
  color: var(--muted);
  font-size: .96rem;
  line-height: 1.7;
  margin-bottom: 14px;
  max-width: 62ch;
}
.about__list {
  list-style: none;
  margin-top: 26px;
  display: grid;
  gap: 12px;
}
.about__list li {
  position: relative;
  padding-left: 20px;
  font-size: .88rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 7px;
  height: 7px;
  border: 1.5px solid var(--rust);
  border-radius: 2px;
  transform: rotate(45deg);
}
.about__list b { font-weight: 600; color: var(--ink); }

.about__quote blockquote {
  margin: 0;
  padding: 26px 24px;
  background: var(--card);
  border-left: 2px solid var(--rust);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: 1.3rem;
  line-height: 1.35;
  letter-spacing: -.01em;
}
.about__quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-style: normal;
  font-size: .68rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.about__cta {
  margin-top: 18px;
  padding: 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
.about__cta p {
  font-size: .86rem;
  color: var(--muted);
  margin-bottom: 14px;
  line-height: 1.55;
}

/* ---------- footer ---------- */

.foot {
  background: var(--ink);
  color: #e9e0d1;
  padding: 34px 0;
  margin-top: 20px;
}
.foot__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.foot__brand {
  font-family: var(--serif);
  font-size: 1.05rem;
}
.foot__note {
  font-size: .74rem;
  opacity: .55;
  margin-top: 3px;
}
.foot__links { display: flex; gap: 20px; }
.foot__links a {
  font-size: .8rem;
  opacity: .75;
  text-decoration: none;
  transition: opacity .16s;
}
.foot__links a:hover { opacity: 1; }
.foot__domain {
  font-size: .74rem;
  letter-spacing: .08em;
  opacity: .45;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 14px);
  z-index: 60;
  background: var(--ink);
  color: var(--paper);
  padding: 11px 18px;
  border-radius: 999px;
  font-size: .82rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s, transform .22s;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .5);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

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

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.2, .8, .3, 1);
}
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .studio {
    grid-template-columns: 250px minmax(0, 1fr);
  }
  .side { grid-column: 1 / -1; }
  .panel { position: static; }
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .legend { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__art { max-width: 460px; margin-inline: auto; order: 2; }
  .about { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .nav { gap: 16px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .nav { display: none; }
  .top__badge { display: none; }
  .studio { grid-template-columns: 1fr; }
  .panel { order: 1; }
  .canvas-col { order: 2; }
  .side { order: 3; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .legend { grid-template-columns: 1fr; }
  .facts { gap: 12px; }
  .facts dt { font-size: 1.3rem; }
  .foot__in { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (max-width: 420px) {
  .hero h1 { font-size: 2.15rem; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:last-child { grid-column: 1 / -1; }
  .panel__foot { flex-direction: column; }
}

/* ---------- motion / print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

@media print {
  @page { margin: 14mm; }
  body { background: #fff; }
  body::after, .no-print, .top, .hero, .marquee, .sec--band,
  #gallery, #about, .foot, .canvas-hint, .stat-grid,
  .instr__note, .toast, .tape { display: none !important; }
  .sec { padding: 0; }
  .studio { display: block; margin: 0; }
  .canvas-card { border: 0; box-shadow: none; padding: 0 0 12px; }
  #pattern { width: 100% !important; height: auto !important; }
  .sec__head h2 { font-size: 20pt; }
  a[href]::after { content: ""; }
}
