@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700&display=swap");

:root {
  --paper: #eee9df;
  --paper-light: #f8f4eb;
  --ink: #181715;
  --muted: #706d66;
  --red: #d7432f;
  --red-dark: #a92f20;
  --blue: #315f93;
  --yellow: #e8b83f;
  --line: rgba(24, 23, 21, 0.18);
  --shadow: 0 24px 70px rgba(18, 17, 15, 0.18);
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 94px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
}

body.dialog-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

a {
  color: inherit;
}

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

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-200%);
  background: var(--ink);
  color: white;
  padding: 10px 14px;
}

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

.translation {
  display: none;
  color: var(--muted);
  border-left: 2px solid var(--blue);
  padding-left: 0.9rem;
}

body.show-english .translation {
  display: block;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 78px;
  padding: 10px clamp(20px, 4vw, 68px);
  background: rgba(238, 233, 223, 0.94);
  border-bottom: 1px solid var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  text-decoration: none;
}

.brand > span:last-child {
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: 0.72rem;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.brand-mark {
  position: relative;
  display: block;
  width: 39px;
  height: 39px;
  background: var(--red);
  overflow: hidden;
}

.brand-mark i:nth-child(1) {
  position: absolute;
  width: 22px;
  height: 22px;
  background: var(--ink);
  transform: rotate(32deg);
  left: -6px;
  bottom: -8px;
}

.brand-mark i:nth-child(2) {
  position: absolute;
  width: 8px;
  height: 50px;
  background: var(--paper-light);
  transform: rotate(-38deg);
  right: 5px;
  top: -8px;
}

.brand-mark i:nth-child(3) {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--yellow);
  right: 4px;
  bottom: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 44px);
  font-size: 0.82rem;
  font-weight: 700;
}

.main-nav a {
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: currentColor;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 14px;
}

.text-button,
.icon-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--ink);
  text-align: left;
}

.language-toggle span {
  font-family: var(--display);
  font-size: 0.76rem;
}

.language-toggle small {
  font-size: 0.66rem;
  line-height: 1.1;
}

.language-toggle[aria-pressed="true"] {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.icon-button {
  padding: 9px 12px;
  background: var(--ink);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, 0.95fr);
  min-height: calc(100vh - 78px);
  padding: clamp(70px, 9vw, 130px) clamp(24px, 7vw, 120px);
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1.15rem;
  color: var(--red-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2,
.method-title-block h2,
.privacy-content h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.hero h1 {
  font-size: clamp(4.25rem, 10vw, 9.5rem);
}

.hero h1 em {
  color: var(--red);
  font-style: normal;
}

.hero-lead {
  max-width: 640px;
  margin: 2.5rem 0 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
}

.hero .translation {
  max-width: 640px;
  font-size: 0.92rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 2.2rem;
}

.primary-button,
.secondary-button,
.record-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.15rem;
  border: 1px solid var(--ink);
  border-radius: 0;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button {
  background: var(--ink);
  color: white;
}

.secondary-button {
  background: transparent;
  color: var(--ink);
}

.primary-button:hover,
.secondary-button:hover,
.record-button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 4px 4px 0 var(--red);
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover {
  transform: none;
  box-shadow: none;
}

.hero-composition {
  position: relative;
  min-height: 480px;
}

.hero-circle {
  position: absolute;
  width: min(34vw, 520px);
  aspect-ratio: 1;
  top: 50%;
  left: 52%;
  transform: translate(-50%, -50%);
  border: clamp(24px, 3.5vw, 56px) solid var(--ink);
  border-radius: 50%;
}

.hero-square {
  position: absolute;
  width: min(20vw, 300px);
  aspect-ratio: 1;
  top: 44%;
  left: 46%;
  background: var(--red);
  transform: translate(-50%, -50%) rotate(16deg);
  mix-blend-mode: multiply;
}

.hero-line {
  position: absolute;
  width: min(48vw, 700px);
  height: clamp(18px, 2vw, 30px);
  top: 48%;
  left: 47%;
  background: var(--blue);
  transform: translate(-50%, -50%) rotate(-38deg);
  mix-blend-mode: multiply;
}

.hero-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 0.72rem;
  writing-mode: vertical-rl;
}

.hero-caption span {
  display: inline-block;
  width: 1px;
  height: 60px;
  background: var(--ink);
}

.gallery-section,
.method-section,
.timeline-section {
  padding: clamp(72px, 9vw, 140px) clamp(24px, 6vw, 100px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 460px);
  align-items: end;
  gap: 40px;
  margin-bottom: 3rem;
}

.section-heading h2,
.method-title-block h2 {
  font-size: clamp(3rem, 6.5vw, 6rem);
}

.section-intro {
  margin: 0;
  padding-left: 20px;
  border-left: 3px solid var(--red);
  font-size: 1rem;
}

.quick-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.quick-start li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 12px;
  min-height: 88px;
  padding: 16px 18px;
  background: var(--paper-light);
  border: 1px solid var(--line);
}

.quick-start li > span {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: var(--red);
  color: white;
  border-radius: 50%;
  font-family: var(--display);
  font-size: 0.8rem;
}

.quick-start strong {
  align-self: end;
  font-family: var(--display);
  font-size: 0.83rem;
}

.quick-start small {
  align-self: start;
  color: var(--muted);
}

.quick-start-translation {
  margin: -1rem 0 2rem;
  font-size: 0.8rem;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.gallery-status {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-button {
  min-height: 38px;
  padding: 0.45rem 0.9rem;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-button.is-active {
  background: var(--ink);
  color: white;
}

.search-field {
  display: flex;
  align-items: center;
  min-width: min(100%, 320px);
  border-bottom: 1px solid var(--ink);
}

.search-field input {
  width: 100%;
  padding: 9px 4px;
  border: 0;
  background: transparent;
  outline: 0;
}

.search-field span:last-child {
  font-size: 1.4rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 46px) clamp(16px, 2.3vw, 34px);
  margin-top: 3.5rem;
}

.art-card {
  grid-column: span 4;
  align-self: start;
}

.art-card:nth-child(5n + 1),
.art-card:nth-child(5n + 4) {
  grid-column: span 5;
}

.art-card:nth-child(5n + 2),
.art-card:nth-child(5n + 5) {
  grid-column: span 3;
}

.art-card:nth-child(5n + 3) {
  grid-column: span 4;
}

.art-card-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.art-card-image {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
  padding: clamp(18px, 2.6vw, 42px);
  background: #d9d3c7;
  overflow: hidden;
}

.art-card-image::after {
  content: "ОТКРЫТЬ";
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 9px;
  background: var(--red);
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.art-card-button:hover .art-card-image::after,
.art-card-button:focus-visible .art-card-image::after {
  opacity: 1;
  transform: translateY(0);
}

.art-card-image img {
  width: 100%;
  height: 100%;
  max-height: 520px;
  object-fit: contain;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.18);
  transition: transform 300ms ease;
}

.image-fallback {
  display: none;
  max-width: 230px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}

.image-fallback small {
  display: inline-block;
  margin-top: 5px;
  font-weight: 500;
}

.art-card-image.is-missing img {
  display: none;
}

.art-card-image.is-missing .image-fallback {
  display: block;
}

.art-card-button:hover img {
  transform: scale(1.018);
}

.art-card:nth-child(4n + 1) .art-card-image {
  background: #c8cfcb;
}

.art-card:nth-child(4n + 2) .art-card-image {
  background: #d7cbb5;
}

.art-card:nth-child(4n + 3) .art-card-image {
  background: #c7c6d1;
}

.art-card:nth-child(4n + 4) .art-card-image {
  background: #d7c1b8;
}

.art-card-info {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 14px;
  border-top: 3px solid var(--ink);
}

.art-card-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(0.9rem, 1.25vw, 1.15rem);
  line-height: 1.25;
}

.art-card-artist,
.art-card-year {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.art-card-year {
  margin: 0;
  color: var(--red-dark);
  font-family: var(--display);
}

.empty-state {
  padding: 70px 0;
  text-align: center;
}

.method-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(50px, 9vw, 140px);
  background: var(--paper-light);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.method-title-block > p:not(.eyebrow) {
  max-width: 450px;
  margin-top: 2rem;
}

.method-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: method;
}

.method-steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--ink);
}

.method-steps li:last-child {
  border-bottom: 1px solid var(--ink);
}

.method-steps li > span {
  color: var(--red);
  font-family: var(--display);
  font-size: 1.35rem;
}

.method-steps h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
}

.method-steps p {
  margin: 0.65rem 0 0;
}

.timeline-section {
  background: var(--ink);
  color: var(--paper-light);
}

.section-heading.light .eyebrow {
  color: #ff745e;
}

.section-heading.light .section-intro {
  border-left-color: var(--yellow);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.timeline article {
  position: relative;
  min-height: 350px;
  padding: 34px 26px;
  border-right: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline article:last-child {
  border-right: 0;
}

.timeline article:nth-child(3n) {
  border-right: 0;
}

.timeline article:nth-child(-n + 3) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.timeline article::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 26px;
  width: 13px;
  height: 13px;
  background: var(--red);
  border-radius: 50%;
}

.timeline time {
  color: var(--yellow);
  font-family: var(--display);
  font-size: 0.85rem;
}

.timeline h3 {
  min-height: 72px;
  margin: 1.4rem 0 1rem;
  font-family: var(--display);
  font-size: 1.12rem;
  line-height: 1.35;
}

.timeline p {
  color: rgba(255, 255, 255, 0.73);
  font-size: 0.86rem;
}

.timeline .translation {
  color: rgba(255, 255, 255, 0.58);
  border-left-color: var(--blue);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 560px) auto;
  align-items: end;
  gap: 50px;
  padding: 52px clamp(24px, 6vw, 100px);
  background: var(--red);
  color: white;
}

.footer-brand {
  font-family: var(--display);
  font-size: clamp(1.1rem, 2.3vw, 2rem);
  line-height: 0.95;
}

.site-footer p {
  margin: 0;
  font-size: 0.78rem;
}

.site-footer .text-button {
  border-bottom: 1px solid currentColor;
  color: white;
  font-size: 0.78rem;
}

dialog {
  padding: 0;
  border: 0;
  color: var(--ink);
}

dialog::backdrop {
  background: rgba(14, 14, 13, 0.78);
  backdrop-filter: blur(7px);
}

.artwork-dialog {
  width: min(1480px, calc(100vw - 34px));
  height: min(920px, calc(100vh - 34px));
  max-width: none;
  max-height: none;
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.dialog-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  background: var(--paper-light);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.dialog-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.1fr) minmax(400px, 0.9fr);
  height: 100%;
}

.artwork-viewer {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(28px, 4vw, 60px);
  background: #cfcbc2;
}

.artwork-image-button {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1;
  min-height: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.artwork-image-button img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.23));
}

.artwork-image-button > span:last-child {
  position: absolute;
  left: 0;
  bottom: -28px;
  color: var(--muted);
  font-size: 0.68rem;
}

.artwork-image-button > .dialog-image-fallback {
  position: static;
  max-width: 340px;
  padding: 24px;
  background: rgba(248, 244, 235, 0.72);
  color: var(--ink);
  font-size: 0.9rem;
  cursor: default;
}

.image-credit {
  margin: 12px 0 -20px;
  color: var(--muted);
  font-size: 0.68rem;
}

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

.image-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 36px;
}

.image-nav button {
  width: 42px;
  height: 34px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: pointer;
}

.image-nav span {
  font-family: var(--display);
  font-size: 0.7rem;
}

.artwork-content {
  min-height: 0;
  padding: clamp(36px, 4.5vw, 72px) clamp(28px, 4vw, 62px);
  overflow-y: auto;
}

.artwork-kicker {
  margin: 0 0 1rem;
  color: var(--red-dark);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.artwork-header h2 {
  max-width: 740px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.dialog-title-en {
  margin: 0.8rem 0 0;
  font-size: 1rem;
}

.artwork-meta {
  margin: 1.1rem 0 0;
  color: var(--muted);
}

.content-tabs {
  display: flex;
  gap: 3px;
  margin: 2.2rem 0 1.7rem;
  border-bottom: 1px solid var(--ink);
}

.content-tab {
  padding: 0.7rem 0.95rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

.content-tab.is-active {
  background: var(--ink);
  color: white;
}

.tab-panel {
  animation: panel-in 220ms ease;
}

@keyframes panel-in {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

.panel-intro {
  margin: 0 0 1.4rem;
  color: var(--muted);
}

.prompt-card {
  border-top: 1px solid var(--ink);
}

.prompt-card:last-child {
  border-bottom: 1px solid var(--ink);
}

.prompt-card button {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 18px 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.prompt-number {
  color: var(--red);
  font-family: var(--display);
  font-size: 0.72rem;
}

.prompt-card button strong {
  font-size: 0.95rem;
}

.prompt-card button > span:last-child {
  font-size: 1.3rem;
  transition: transform 180ms ease;
}

.prompt-card.is-open button > span:last-child {
  transform: rotate(45deg);
}

.prompt-answer {
  display: none;
  margin: 0 0 20px 52px;
  color: var(--muted);
}

.prompt-card.is-open .prompt-answer {
  display: block;
}

.summary-copy p,
.advanced-note p {
  margin: 0 0 1rem;
}

.summary-copy > p:first-child {
  font-size: 1.08rem;
  line-height: 1.65;
}

.advanced-note {
  margin: 1.6rem 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.advanced-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-weight: 800;
  cursor: pointer;
}

.advanced-note summary span {
  color: var(--muted);
  font-size: 0.7rem;
}

.advanced-note > div {
  padding-bottom: 10px;
}

.vocabulary-block h3 {
  margin: 0 0 0.8rem;
  font-family: var(--display);
  font-size: 0.82rem;
}

.vocabulary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vocab-item {
  position: relative;
}

.vocab-button {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: transparent;
  cursor: help;
}

.vocab-gloss {
  position: absolute;
  z-index: 3;
  bottom: calc(100% + 7px);
  left: 50%;
  display: none;
  min-width: 180px;
  padding: 9px 11px;
  background: var(--ink);
  color: white;
  font-size: 0.74rem;
  transform: translateX(-50%);
  box-shadow: 4px 4px 0 var(--red);
}

.vocab-item:hover .vocab-gloss,
.vocab-button:focus + .vocab-gloss,
.vocab-item.is-open .vocab-gloss {
  display: block;
}

.source-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 800;
}

.speak-prompt {
  margin-bottom: 1.5rem;
  padding: 18px;
  background: #e3ddcf;
  border-left: 5px solid var(--red);
}

.speak-prompt h3 {
  margin: 0 0 0.6rem;
  font-family: var(--display);
  font-size: 0.88rem;
}

.speak-prompt p {
  margin: 0;
}

.send-explainer {
  margin: 0 0 1.25rem;
  padding: 16px 18px;
  background: #eef2f5;
  border: 1px solid rgba(49, 95, 147, 0.28);
  border-left: 5px solid var(--blue);
  font-size: 0.79rem;
}

.send-explainer > strong {
  font-family: var(--display);
  font-size: 0.78rem;
}

.send-explainer ol {
  margin: 0.65rem 0;
  padding-left: 1.25rem;
}

.send-explainer li + li {
  margin-top: 0.2rem;
}

.send-explainer p {
  margin: 0.55rem 0 0;
}

.send-explainer a {
  color: var(--blue);
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.recording-form label > span:first-child,
.field-row label > span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.72rem;
  font-weight: 800;
}

.field-row input {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--ink);
  background: var(--paper-light);
}

.recorder {
  margin-top: 15px;
  padding: 16px;
  border: 1px solid var(--ink);
}

.recorder.is-recording {
  border-color: var(--red);
  box-shadow: inset 5px 0 0 var(--red);
}

.recorder-status {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 9px;
}

.record-dot {
  width: 10px;
  height: 10px;
  border: 2px solid var(--muted);
  border-radius: 50%;
}

.recorder.is-recording .record-dot {
  background: var(--red);
  border-color: var(--red);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  50% { opacity: 0.35; }
}

.recording-status,
#recording-timer {
  font-size: 0.82rem;
}

#recording-timer {
  font-family: var(--display);
}

.recorder-actions,
.submission-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 15px;
}

.record-button {
  min-height: 40px;
  background: var(--red);
  color: white;
  border-color: var(--red-dark);
}

.secondary-button.compact {
  min-height: 40px;
  padding: 0.5rem 0.8rem;
}

.text-button.danger {
  color: var(--red-dark);
  font-size: 0.76rem;
  text-decoration: underline;
}

#recording-playback {
  width: 100%;
  margin-top: 14px;
}

.consent-field {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 0.73rem;
}

.consent-field input {
  margin-top: 4px;
}

.submission-actions .primary-button,
.submission-actions .secondary-button {
  min-height: 42px;
  font-size: 0.78rem;
}

.submission-status {
  min-height: 1.5em;
  margin: 0.8rem 0 0;
  font-size: 0.78rem;
}

.submission-status.is-error {
  color: var(--red-dark);
}

.submission-status.is-success {
  color: #2c6c48;
  font-weight: 800;
}

.zoom-dialog {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  background: #161616;
  overflow: hidden;
}

.zoom-dialog .dialog-close {
  color: white;
  background: #161616;
}

.zoom-dialog img {
  width: 100%;
  height: 100%;
  padding: 30px;
  object-fit: contain;
}

.privacy-dialog {
  width: min(620px, calc(100vw - 34px));
  background: var(--paper-light);
  box-shadow: var(--shadow);
}

.privacy-content {
  padding: clamp(38px, 7vw, 78px);
}

.privacy-content h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(2rem, 5vw, 3.5rem);
}

.toast {
  position: fixed;
  z-index: 500;
  right: 20px;
  bottom: 20px;
  max-width: 360px;
  padding: 13px 16px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .main-nav {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr 0.7fr;
  }

  .hero-composition {
    min-height: 400px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .art-card,
  .art-card:nth-child(n) {
    grid-column: span 1;
  }

  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .timeline article {
    min-height: 280px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .timeline article:nth-child(2n) {
    border-right: 0;
  }

  .timeline article:nth-child(2n + 1) {
    border-right: 1px solid rgba(255, 255, 255, 0.25);
  }

  .timeline article:nth-child(-n + 4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .dialog-layout {
    grid-template-columns: minmax(360px, 0.9fr) minmax(400px, 1.1fr);
  }
}

@media (max-width: 780px) {
  html {
    scroll-padding-top: 70px;
  }

  .site-header {
    min-height: 66px;
    padding: 8px 15px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .language-toggle small {
    display: none;
  }

  .hero {
    display: block;
    min-height: auto;
    padding-top: 72px;
  }

  .hero h1 {
    font-size: clamp(3.6rem, 18vw, 6rem);
  }

  .hero-composition {
    min-height: 330px;
    margin-top: 28px;
  }

  .hero-circle {
    width: 300px;
  }

  .hero-square {
    width: 180px;
  }

  .hero-line {
    width: 390px;
  }

  .section-heading,
  .method-section,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .gallery-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .quick-start {
    grid-template-columns: 1fr;
  }

  .search-field {
    min-width: 100%;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .art-card-image {
    min-height: 320px;
  }

  .method-section {
    gap: 45px;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline article,
  .timeline article:nth-child(n) {
    min-height: 220px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .timeline article:last-child {
    border-bottom: 0;
  }

  .site-footer {
    align-items: start;
    gap: 24px;
  }

  .artwork-dialog {
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
  }

  .dialog-layout {
    display: block;
    height: auto;
  }

  .artwork-viewer {
    height: 48dvh;
    padding: 26px;
  }

  .image-credit {
    margin-bottom: -22px;
  }

  .artwork-content {
    height: auto;
    min-height: 52dvh;
    overflow: visible;
  }

  .dialog-close {
    position: fixed;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
