/* ============================================================
   ROMANS CAPITAL — tasteskill v2
   Direction: name-as-monument (seed 1084823149)
   Palette taken from the subject's material: limestone, graphite, brass.
   ============================================================ */

/* ---------- Faces ---------- */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/general-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --margin: clamp(1rem, 2.4vw, 2rem);
  --gutter: clamp(0.75rem, 1.5vw, 1.5rem);

  --ground: #f4f4f1;
  --surface: #e8e8e3;
  --ink: #12171d;
  --muted: #5f625e;
  --accent: #a87c3f;
  --accent-deep: #6f4c1d;

  --night: #0e1319;
  --night-2: #151c24;
  --night-ink: #f2f2ee;
  --night-muted: #9aa0a3;

  --small: 0.875rem;
  --body: clamp(1.125rem, 1rem + 0.35vw, 1.1875rem);
  --lead: clamp(1.25rem, 1.05rem + 0.8vw, 1.5rem);
  --head: clamp(1.75rem, 1rem + 2.4vw, 3.25rem);
  --display: clamp(2.5rem, 5.2vw, 5.25rem);
  --mega: clamp(4rem, 11vw, 11rem);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --space: clamp(3.5rem, 8vw, 7rem);
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "General Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: var(--body);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
figure,
dl,
dd,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

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

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

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ground);
  color: var(--ink);
  padding: 12px 16px;
}
.skip:focus {
  left: var(--margin);
  top: var(--margin);
}

.wrap {
  padding-inline: var(--margin);
}

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

/* ---------- Controls ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.5rem;
  border: 0;
  border-radius: 0;
  background: var(--accent);
  color: #11161c;
  font-size: var(--small);
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover {
  background: #bd8d4b;
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible {
  outline: 2px solid var(--night-ink);
  outline-offset: 3px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}

.hero__media {
  position: absolute;
  left: var(--margin);
  top: var(--margin);
  bottom: var(--margin);
  width: 47%;
  overflow: hidden;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: brightness(0.68) saturate(0.84);
  transform-origin: center 40%;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 21, 0.44);
}

.hero__nav {
  position: absolute;
  top: calc(var(--margin) + 6px);
  right: var(--margin);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.75rem);
  font-size: var(--small);
}

.hero__nav a {
  color: var(--night-muted);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.hero__nav a:hover,
.hero__nav a:focus-visible {
  color: var(--night-ink);
}
.hero__nav .btn {
  color: #11161c;
  min-height: 40px;
  padding: 0 1.1rem;
}

.hero__menu {
  display: none;
  border: 0;
  background: none;
  color: var(--night-ink);
  padding: 0;
  font-size: var(--small);
}

.hero__line {
  position: absolute;
  left: 55%;
  right: var(--margin);
  top: 44%;
  z-index: 2;
  max-width: 26ch;
  font-size: var(--lead);
  line-height: 1.3;
  text-wrap: pretty;
}

.hero__more {
  display: block;
  width: max-content;
  margin-top: 1.5rem;
  padding-block: 0.4rem;
  font-size: var(--body);
  color: var(--night-ink);
  text-decoration-color: rgba(242, 242, 238, 0.4);
}

.hero__name {
  position: absolute;
  left: var(--margin);
  right: var(--margin);
  bottom: 40px;
  z-index: 2;
  font-size: var(--mega);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  text-wrap: nowrap;
  color: var(--night-ink);
}

.hero__name span {
  display: inline;
}

/* ---------- Sections ---------- */
.section {
  padding-block: var(--space);
}

.section__head {
  font-size: var(--head);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
}

.section__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 4.5rem);
}

.section__top .section__head {
  grid-column: 1 / 6;
  margin-bottom: 0;
}

.section__intro {
  grid-column: 8 / 13;
  font-size: var(--body);
  line-height: 1.45;
  color: var(--ink);
  text-wrap: pretty;
}

/* ---------- Work / register ---------- */
.work {
  padding-top: calc(var(--space) * 0.9);
}

.register {
  font-size: clamp(2.5rem, 5.2vw, 5.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}

.register__item {
  display: inline;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}

.register__item:hover,
.register__item:focus-visible,
.register__item[aria-current="true"] {
  color: var(--ink);
}

.register__thumb {
  display: inline-block;
  width: 1.2em;
  height: 0.8em;
  margin-inline: 0.1em 0.16em;
  overflow: hidden;
  vertical-align: baseline;
  background: var(--surface);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

.register__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.register__item:hover .register__thumb,
.register__item:focus-visible .register__thumb {
  transform: scale(1.6);
}

.register__sep {
  color: var(--muted);
}

.work__note {
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  font-size: var(--small);
  color: var(--muted);
}

.sheet {
  margin-top: clamp(2.5rem, 3.5vw, 3.5rem);
}

.prop {
  display: none;
  grid-template-columns: 7fr 5fr;
  column-gap: clamp(1.5rem, 4vw, 4.5rem);
  align-items: start;
}

.prop.is-default,
.prop.is-selected,
.prop:target {
  display: grid;
}

.sheet:has(.prop:target) .prop.is-default {
  display: none;
}

.sheet[data-active] .prop {
  display: none;
}

.sheet[data-active] .prop.is-selected {
  display: grid;
}

.prop__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface);
}

.prop__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prop__zone {
  font-size: var(--small);
  color: var(--muted);
  margin-top: 0.5rem;
  margin-bottom: clamp(1.25rem, 2vw, 1.75rem);
}

.prop__name {
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.prop__facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.75rem, 2.6vw, 2.5rem);
}

.prop__facts div {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.prop__facts dt {
  font-size: var(--small);
  color: var(--muted);
}

.prop__facts dd {
  font-size: var(--body);
}

.prop__price {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.prop__desc {
  font-size: var(--body);
  line-height: 1.5;
  max-width: 42ch;
  margin-bottom: clamp(1.5rem, 2.4vw, 2rem);
  text-wrap: pretty;
}

.strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gutter);
  margin-top: clamp(4rem, 6vw, 6rem);
}

.strip figure {
  margin: 0;
}

.strip img {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface);
}

.strip figcaption {
  margin-top: 0.6rem;
  font-size: var(--small);
  color: var(--muted);
}

/* ---------- About ---------- */
.about__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
}

.about__facts {
  grid-column: 1 / 4;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about__facts dt,
.about__label {
  font-size: var(--small);
  color: var(--muted);
}

.about__facts dd {
  font-size: var(--body);
  margin-top: 0.15rem;
}

.about__lead {
  grid-column: 4 / 9;
  font-size: var(--lead);
  line-height: 1.3;
  text-wrap: pretty;
}

.about__media {
  grid-column: 10 / 13;
  margin: 0;
}

.about__media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 40%;
  background: var(--surface);
}

.about__record {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 0.25rem;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.about__label {
  grid-column: 1 / -1;
  margin-top: 1.25rem;
  margin-bottom: 0.35rem;
}

.about__label:first-child {
  margin-top: 0;
}

.about__list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
  gap: 0.15rem 2.5rem;
  font-size: var(--small);
}

.about__list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
  padding-block: 0.35rem;
}

.about__list dt {
  color: var(--muted);
  white-space: nowrap;
}

.about__list dd {
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.about__list--plain li {
  padding-block: 0.4rem;
}

/* ---------- How ---------- */
.how__intro {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: start;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.how__intro .section__head {
  grid-column: 1 / 6;
  margin-bottom: 0;
}

.how__intro p {
  grid-column: 7 / 12;
  font-size: var(--body);
  color: var(--ink);
  max-width: 44ch;
  text-wrap: pretty;
}

.stages {
  display: flex;
  height: clamp(26rem, 36vw, 32.5rem);
  overflow: hidden;
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 4.5rem;
  flex: 0 0 auto;
  background: var(--tint);
  color: var(--tint-ink);
  overflow: hidden;
  transition: width 0.5s var(--ease);
}

.stage.is-open {
  width: 58%;
}

.stage__tab {
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  padding: 0;
}

.stage:not(.is-open) .stage__tab {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  width: 4.5rem;
  padding: 1.5rem 0;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: var(--body);
  font-weight: 700;
  letter-spacing: 0;
}

.stage__tab span {
  display: inline-block;
}

.stage.is-open .stage__tab {
  padding: clamp(1.5rem, 2.4vw, 2.25rem) clamp(1.5rem, 2.6vw, 2.5rem) 0;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.stage__content {
  display: flex;
  align-items: stretch;
  flex: 1;
  margin-top: auto;
  padding: 0;
  max-width: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease) 0.12s;
}

.stage.is-open .stage__content {
  opacity: 1;
  visibility: visible;
}

.stage__text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  max-width: 36ch;
  padding: 0 clamp(1.5rem, 2.6vw, 2.5rem) clamp(1.5rem, 2.4vw, 2.25rem);
}

.stage__media {
  width: 42%;
  margin: 0;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.12);
}

.stage__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage__text p {
  font-size: var(--body);
  line-height: 1.45;
  text-wrap: pretty;
}

/* The open panel repeats the name for small screens; hidden on desktop. */
.stage__content h3 {
  display: none;
}

/* ---------- Territory band ---------- */
.band-sec {
  padding-block: var(--space) 0;
}

.band-sec .section__head {
  margin-bottom: clamp(2rem, 3vw, 3rem);
}

.band {
  height: 34vh;
  min-height: 13rem;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ink);
  color: var(--ground);
}

.band__track {
  display: flex;
  white-space: nowrap;
  animation: band-run 46s linear infinite;
}

.band__track span {
  display: block;
  font-size: 8vw;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  padding-right: 0.45em;
}

@keyframes band-run {
  to {
    transform: translateX(-50%);
  }
}

.band__note {
  margin-top: clamp(1.75rem, 3vw, 3rem);
  font-size: var(--body);
  max-width: 52ch;
  text-wrap: pretty;
}

/* ---------- FAQ ---------- */
.faq {
  padding-block: calc(var(--space) * 0.85);
}

.faq .wrap {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}

.faq__head {
  grid-column: 1 / 10;
  font-size: var(--display);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.faq__aside {
  grid-column: 1 / 4;
  align-self: start;
  font-size: var(--small);
  color: var(--muted);
}

.faq__aside p {
  margin-bottom: 0.4rem;
}

.faq__aside a {
  font-size: var(--body);
  color: var(--accent-deep);
}

.faq__list {
  grid-column: 5 / 13;
}

.q {
  margin-bottom: 1.75rem;
}

.q summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2rem;
  cursor: pointer;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.5rem);
  line-height: 1.3;
  padding: 0.6rem 0.75rem;
  margin-inline: -0.75rem;
  list-style: none;
  transition: background 0.2s var(--ease);
}

.q summary::-webkit-details-marker {
  display: none;
}

.q summary svg {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  transition: transform 0.25s var(--ease);
}

.q[open] summary {
  background: var(--surface);
}

.q[open] summary svg {
  transform: rotate(45deg);
}

.q p {
  font-size: var(--body);
  line-height: 1.5;
  max-width: 52ch;
  padding: 1.25rem 0.75rem 0.5rem;
  margin-inline: -0.75rem;
  background: var(--surface);
  text-wrap: pretty;
}

/* ---------- Contact ---------- */
.contact {
  padding-top: calc(var(--space) * 0.8);
}

.coupon {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(1.5rem, 3.6vw, 3.5rem);
  min-height: clamp(26rem, 38vw, 35rem);
}

.coupon__intro {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.coupon__lead {
  font-size: clamp(1.75rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
  text-wrap: balance;
}

.coupon__note {
  margin-top: 1.5rem;
  font-size: var(--small);
  color: var(--night-muted);
  max-width: 30ch;
}

.coupon__steps {
  display: grid;
  gap: 0.65rem;
  margin-top: 2rem;
  max-width: 34ch;
  font-size: var(--small);
  line-height: 1.45;
  color: var(--night-ink);
}

.coupon__mark {
  width: clamp(3.5rem, 6vw, 5.5rem);
  height: auto;
  margin-top: auto;
  padding-top: 2rem;
  color: rgba(242, 242, 238, 0.32);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.5rem;
  align-content: start;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: var(--small);
  color: var(--night-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(239, 233, 220, 0.35);
  border-radius: 0;
  color: var(--night-ink);
  font-size: var(--body);
  color-scheme: dark;
}

.field textarea {
  resize: vertical;
  min-height: 6.5rem;
  line-height: 1.45;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-bottom-color: var(--accent);
}

.field input:user-invalid,
.field textarea:user-invalid {
  border-bottom-color: #d08a6a;
}

.form .btn {
  grid-column: 1 / -1;
  justify-self: start;
  margin-top: 0.5rem;
}

.form__status {
  grid-column: 1 / -1;
  font-size: var(--small);
  color: var(--night-muted);
  min-height: 1.2em;
}

.contact__demo {
  margin-top: 1.25rem;
  font-size: var(--small);
  color: var(--muted);
  max-width: 70ch;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--night);
  color: var(--night-ink);
  padding: clamp(2.5rem, 4vw, 4rem) var(--margin) var(--margin);
  overflow: hidden;
}

.footer__wordmark {
  font-size: var(--mega);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}

.footer__row {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  row-gap: 2rem;
}

.footer__places {
  grid-column: 1 / 6;
}

.footer__label {
  font-size: var(--small);
  color: var(--night-muted);
  margin-bottom: 1rem;
}

.footer__places ul {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem 2rem;
}

.footer__places a {
  display: inline-block;
  font-size: 2rem;
  color: var(--accent);
  text-decoration: none;
  padding-block: 0.2rem;
  transition: color 0.2s var(--ease);
}

.footer__places a:hover,
.footer__places a:focus-visible {
  color: var(--night-ink);
}

.footer__cols {
  grid-column: 8 / 13;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.footer__cols a,
.footer__cols button {
  display: block;
  font-size: var(--small);
  color: var(--night-ink);
  text-decoration-color: rgba(239, 233, 220, 0.35);
  padding-block: 0.3rem;
  background: none;
  border: 0;
  text-align: left;
}

.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: var(--small);
  color: var(--night-muted);
  flex-wrap: wrap;
}

.footer__credits {
  max-width: 60ch;
  margin-top: clamp(2rem, 3vw, 3rem);
  font-size: var(--small);
  line-height: 1.5;
  color: var(--night-muted);
}

.footer__legal a {
  color: var(--night-muted);
}

/* ---------- Notification opt-in ---------- */
.consent-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding: clamp(1.25rem, 2vw, 1.75rem);
  background: var(--surface);
}

.consent-panel__title {
  font-size: var(--body);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.35rem;
}

.consent-panel__text {
  font-size: var(--small);
  line-height: 1.45;
  color: var(--muted);
  max-width: 56ch;
}

.consent-panel__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.consent-panel__actions a {
  font-size: var(--small);
  color: var(--accent-deep);
}

/* ---------- Menu dialog ---------- */
.menu {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: var(--margin);
  border: 0;
  background: var(--night);
  color: var(--night-ink);
}

.menu::backdrop {
  background: rgba(10, 14, 19, 0.6);
}

.menu__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--small);
  color: var(--night-muted);
}

.menu__close {
  background: none;
  border: 0;
  color: var(--night-ink);
  padding: 0;
  font-size: var(--small);
}

.menu nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 4rem;
}

.menu nav a {
  font-size: clamp(2rem, 7vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.menu__meta {
  position: absolute;
  left: var(--margin);
  bottom: var(--margin);
  font-size: var(--small);
  color: var(--night-muted);
}

/* ---------- Document pages ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--margin);
  font-size: var(--small);
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 0.875rem;
}

.topbar__brand svg {
  width: 22px;
  height: 22px;
}

.doc {
  padding: clamp(3rem, 6vw, 6rem) var(--margin) var(--space);
}

.doc__inner {
  max-width: 46rem;
}

.doc h1 {
  font-size: var(--head);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.doc__date {
  font-size: var(--small);
  color: var(--muted);
  margin-bottom: 3rem;
}

.doc h2 {
  font-size: 1.25rem;
  line-height: 1.2;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.doc p,
.doc li {
  font-size: var(--body);
  line-height: 1.55;
  margin-bottom: 0.9rem;
  text-wrap: pretty;
}

.doc ul {
  padding-left: 1.1rem;
  list-style: disc;
  margin-bottom: 1.5rem;
}

.doc li {
  margin-bottom: 0.35rem;
}

.doc a {
  color: var(--accent-deep);
}

.doc__blocker {
  margin-top: 2.5rem;
  padding: 1.25rem;
  background: var(--surface);
  font-size: var(--small);
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
      opacity 0.7s var(--ease),
      transform 0.7s var(--ease);
    transition-delay: var(--d, 0ms);
  }

  html.js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .hero__media img {
    animation: hero-drift 26s var(--ease) infinite alternate;
  }

  @keyframes hero-drift {
    from {
      transform: scale(1.06) translateY(0);
    }
    to {
      transform: scale(1) translateY(-1.5%);
    }
  }

  @supports (animation-timeline: scroll()) {
    .hero__name {
      animation: monument linear both;
      animation-timeline: scroll(root);
      animation-range: 0 70vh;
    }

    @keyframes monument {
      from {
        transform: scale(1);
      }
      to {
        transform: scale(0.94);
      }
    }

    .footer__wordmark {
      animation: footer-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 90%;
    }

    @keyframes footer-rise {
      from {
        transform: scale(0.94);
        opacity: 0.6;
      }
      to {
        transform: scale(1);
        opacity: 1;
      }
    }
  }
}

/* ---------- Responsive: tablet ---------- */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100svh;
    padding: var(--margin);
  }

  .hero__nav {
    position: static;
    order: 0;
    margin-bottom: 0.75rem;
    justify-content: flex-end;
  }

  .hero__nav a:not(.btn) {
    display: none;
  }

  .hero__menu {
    display: inline-block;
    margin-right: auto;
  }

  .hero__media {
    position: relative;
    inset: auto;
    width: 100%;
    height: 46svh;
    order: 1;
  }

  .hero__name {
    position: static;
    order: 2;
    margin-top: 1.25rem;
    font-size: 19vw;
    line-height: 0.84;
    white-space: normal;
    text-wrap: initial;
  }

  .hero__name span {
    display: block;
  }

  .hero__line {
    position: static;
    order: 3;
    margin-top: 1.5rem;
    max-width: none;
    font-size: var(--body);
    max-width: 34ch;
  }

  .hero__more {
    margin-top: 1rem;
    font-size: var(--small);
  }

  .section__top .section__head,
  .section__intro,
  .how__intro .section__head,
  .how__intro p {
    grid-column: 1 / -1;
  }

  .section__intro {
    margin-top: 1rem;
  }

  .about__facts {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .about__lead {
    grid-column: 1 / -1;
  }

  .about__media {
    grid-column: 1 / -1;
    margin-top: 2rem;
  }

  .about__media img {
    aspect-ratio: 3 / 2;
  }

  .about__label {
    grid-column: 1 / -1;
  }

  .about__list {
    grid-column: 1 / -1;
  }

  .stages {
    flex-direction: column;
    height: auto;
  }

  .stage {
    display: block;
    width: 100%;
    flex: none;
  }

  .stage:not(.is-open) {
    height: 4rem;
  }

  .stage:not(.is-open) .stage__tab {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0 1.25rem;
    writing-mode: horizontal-tb;
    transform: none;
    display: flex;
    align-items: center;
    font-size: 1.125rem;
  }

  .stage.is-open .stage__tab {
    padding: 1.5rem 1.25rem 0;
    font-size: 1.5rem;
  }

  .stage__content {
    display: block;
    margin-top: 0;
    padding: 0;
    max-width: none;
  }

  .stage__text {
    padding: 0.75rem 1.25rem 1.5rem;
    max-width: 52ch;
  }

  .stage__media {
    display: none;
  }

  .stage__content h3 {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
  }

  .band__track span {
    font-size: 15vw;
  }

  .faq__head {
    grid-column: 1 / -1;
    font-size: 12vw;
  }

  .faq__list {
    grid-column: 1 / -1;
  }

  .coupon {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .coupon__lead {
    max-width: none;
  }

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

  .footer__places,
  .footer__cols {
    grid-column: 1 / -1;
  }

  .footer__places ul {
    gap: 0.1rem 1rem;
  }

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

  .register {
    font-size: 1.875rem;
    line-height: 1.2;
  }

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

  .strip figure:last-child {
    grid-column: 1 / -1;
  }

  .prop {
    grid-template-columns: 1fr;
    row-gap: 2rem;
  }

  .prop__media {
    aspect-ratio: 4 / 3;
  }
}

/* ---------- Responsive: phone ---------- */
@media (max-width: 640px) {
  .hero__media {
    height: 44svh;
  }

  .hero__name {
    font-size: 21vw;
    letter-spacing: -0.04em;
  }

  .register {
    font-size: 1.25rem;
    line-height: 1.5;
  }

  .register__thumb {
    display: none;
  }

  .about__facts {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }

  .about__list {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }

  .about__list div {
    padding-block: 0.35rem;
  }

  .band {
    height: 22vh;
    min-height: 9rem;
  }

  .q summary {
    font-size: 1.125rem;
    gap: 1rem;
    padding-inline: 0.5rem;
    margin-inline: -0.5rem;
  }

  .q p {
    padding-inline: 0.5rem;
    margin-inline: -0.5rem;
    font-size: var(--body);
  }

  .coupon {
    padding: 1.25rem;
  }

  .footer__wordmark {
    font-size: 19vw;
  }
  .footer__legal {
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer__cols a,
  .footer__cols button {
    padding-block: 0.5rem;
  }
}

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

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