/*
  Luna Spiegel — shared layout & component styles
  Companion to tokens.css. Loaded on every page.

  Component names below map to the generative visual system in
  docs/tasks/issue-7-initial-site/04-concept-reviewed.md §2.4:
  Slide Lines, Pulse Bars, Brass Wash, Screen Dot, Timeline Rule.
*/

/* ============ Reset ============ */

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--size-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: var(--size-h1);
  line-height: 1.05;
}

h2 {
  font-size: var(--size-h2);
  line-height: 1.1;
}

h3 {
  font-size: var(--size-h3);
  font-family: var(--font-body);
  font-weight: 600;
  line-height: 1.3;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

/* ============ Utility ============ */

.visually-hidden {
  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: absolute;
  top: -3rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.25rem;
  background: var(--ink);
  color: var(--paper);
  border-radius: 0.25rem;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--motion-fast) var(--ease-out);
}

.skip-link:focus {
  top: 1rem;
}

.wrapper {
  max-width: var(--wrapper-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.measure {
  max-width: var(--measure);
}

.mono-label {
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

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

.section--night :focus-visible {
  outline-color: var(--rose-tint);
}

/* ============ Buttons & links ============ */

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.75em 1.5em;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--motion-fast) var(--ease-out),
    color var(--motion-fast) var(--ease-out),
    transform var(--motion-fast) var(--ease-out);
}

.button--primary {
  background: var(--rose);
  color: var(--paper);
}

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

.section--night .button--primary {
  background: var(--rose-tint);
  color: var(--night);
}

.section--night .button--primary:hover {
  background: var(--paper);
}

.button--ghost {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid currentColor;
}

.section--night .button--ghost {
  color: var(--night-ink);
}

.button--ghost:hover {
  background: var(--ink);
  color: var(--paper);
}

.section--night .button--ghost:hover {
  background: var(--night-ink);
  color: var(--night);
}

.text-link {
  color: var(--brass-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  font-weight: 600;
}

.section--night .text-link {
  color: var(--brass-tint);
}

.text-link:hover {
  color: var(--rose);
}

.section--night .text-link:hover {
  color: var(--rose-tint);
}

/* ============ Header / primary nav ============ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid rgba(27, 23, 18, 0.08);
  transition: padding var(--motion-fast) var(--ease-out);
}

.site-header__inner {
  max-width: var(--wrapper-max);
  margin-inline: auto;
  padding: 1rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-header.is-condensed .site-header__inner {
  padding-block: 0.5rem;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}

.wordmark__mark {
  width: 34px;
  height: 20px;
  flex-shrink: 0;
}

.wordmark__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.site-nav {
  display: flex;
  align-items: center;
}

.nav-disclosure {
  position: relative;
}

.nav-disclosure__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  cursor: pointer;
  list-style: none;
}

.nav-disclosure__button::-webkit-details-marker {
  display: none;
}

.nav-disclosure__icon {
  position: relative;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

.nav-disclosure__icon::before,
.nav-disclosure__icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform var(--motion-fast) var(--ease-out);
}

.nav-disclosure__icon::before {
  top: -7px;
}

.nav-disclosure__icon::after {
  top: 7px;
}

.nav-disclosure[open] .nav-disclosure__icon {
  background: transparent;
}

.nav-disclosure[open] .nav-disclosure__icon::before {
  transform: translateY(7px) rotate(45deg);
}

.nav-disclosure[open] .nav-disclosure__icon::after {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  background: var(--paper);
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 0.75rem;
  padding: 0.5rem;
  min-width: 220px;
  box-shadow: 0 12px 32px rgba(27, 23, 18, 0.12);
}

.nav-list a {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.nav-list a:hover {
  background: var(--paper-rose);
}

.nav-list .nav-cta {
  background: var(--rose);
  color: var(--paper);
  font-weight: 600;
  margin-top: 0.25rem;
  justify-content: center;
}

.nav-list .nav-cta:hover {
  background: var(--ink);
}

/*
  Desktop/tablet nav is a second, always-present <ul class="nav-list
  nav-list--bar"> (a sibling of .nav-disclosure, not nested inside it) —
  a closed native <details> hides its non-summary content in a way that
  cannot be reliably reopened or made keyboard/AT-reachable via CSS alone,
  so the ≥768px nav can't just "reveal" the disclosure's content. It's
  hidden below 768px and swapped in for the disclosure at 768px+, see
  media query below.
*/
.nav-list--bar {
  display: none;
  gap: 0.25rem;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

.lang-switch a {
  padding: 0.4rem 0.3rem;
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.lang-switch a[aria-current="true"] {
  color: var(--rose);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 768px) {
  /* Mobile-only disclosure: fully removed at desktop, replaced by
     .nav-list--bar below. */
  .nav-disclosure {
    display: none;
  }

  .nav-list--bar {
    display: flex;
    flex-direction: row;
    align-items: center;
    border: 0;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    background: transparent;
  }

  .nav-list--bar a {
    padding: 0.5rem 0.9rem;
  }

  .nav-list--bar .nav-cta {
    margin-top: 0;
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
  }
}

/* ============ Mobile disclosure open animation (JS-enhanced) ============ */

.nav-disclosure.js-enhanced .nav-list {
  overflow: hidden;
  max-height: 0;
  padding-block: 0;
  transition: max-height var(--motion-medium) var(--ease-out);
}

.nav-disclosure.js-enhanced[open] .nav-list {
  max-height: 400px;
  padding: 0.5rem;
}

/* ============ Sticky mobile booking bar ============ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem var(--gutter);
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
  background: var(--night);
  transform: translateY(100%);
  transition: transform var(--motion-medium) var(--ease-out);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .button {
  width: 100%;
  justify-content: center;
}

@media (min-width: 768px) {
  .sticky-cta {
    display: none;
  }
}

/* ============ Sections & bands ============ */

.section {
  padding-block: var(--section-padding);
}

.section--paper {
  background: var(--paper);
}

.section--paper-brass {
  background: var(--paper-brass);
}

.section--paper-rose {
  background: var(--paper-rose);
}

.section--night {
  background: var(--night);
  color: var(--night-ink);
  position: relative;
  overflow: hidden;
}

.section__inner {
  max-width: var(--wrapper-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section__eyebrow {
  display: block;
  margin-bottom: 1rem;
  color: var(--brass-deep);
}

.section--night .section__eyebrow {
  color: var(--brass-tint);
}

.section__lede {
  font-size: var(--size-lede);
  max-width: var(--measure);
  margin-top: 1rem;
}

/* ============ Hero ============ */

.hero {
  padding-block: clamp(3.5rem, 12vw, 7rem);
}

.hero__grid {
  display: grid;
  gap: 2rem;
  max-width: 46rem;
}

.hero h1 {
  color: var(--night-ink);
  margin-top: 0.75rem;
}

.hero__sublede {
  font-size: var(--size-lede);
  max-width: 60ch;
  color: var(--night-ink);
  opacity: 0.92;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
  margin-top: 0.5rem;
}

/* ============ Brass Wash ============ */

.brass-wash {
  background: radial-gradient(
      120% 140% at 15% 15%,
      rgba(150, 97, 43, 0.9),
      transparent 60%
    ),
    radial-gradient(120% 140% at 85% 100%, rgba(166, 61, 86, 0.85), transparent 60%),
    linear-gradient(160deg, var(--night) 0%, #241a14 55%, var(--night) 100%);
  background-size: 200% 200%;
  animation: brass-drift 26s ease-in-out infinite alternate;
}

@keyframes brass-drift {
  from {
    background-position: 0% 0%, 100% 100%, 0% 0%;
  }
  to {
    background-position: 15% 10%, 85% 90%, 10% 5%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brass-wash {
    animation: none;
  }
}

/* ============ Screen Dot ============ */

.section--night::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(245, 239, 230, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: 0.5;
}

/* ============ Slide Lines ============ */

.slide-lines {
  width: 100%;
  height: auto;
  overflow: visible;
}

.slide-lines path {
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.slide-lines--reveal path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  transition: stroke-dashoffset var(--motion-slow) var(--ease-out);
}

.slide-lines--reveal.is-visible path {
  stroke-dashoffset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .slide-lines--reveal path {
    stroke-dashoffset: 0;
    transition: none;
  }
}

.hero__lines {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

/* ============ Pulse Bars ============ */

.pulse-bars {
  display: flex;
  align-items: flex-end;
  gap: clamp(3px, 1vw, 6px);
  height: 64px;
}

.pulse-bars__bar {
  flex: 1;
  min-width: 3px;
  max-width: 10px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--rose), var(--brass));
  animation: pulse-bar 5s ease-in-out infinite;
  transform-origin: bottom;
}

.section--night .pulse-bars__bar {
  background: linear-gradient(180deg, var(--rose-tint), var(--brass-tint));
}

.pulse-bars__bar:nth-child(1) { height: 40%; animation-delay: 0s; }
.pulse-bars__bar:nth-child(2) { height: 70%; animation-delay: 0.3s; }
.pulse-bars__bar:nth-child(3) { height: 100%; animation-delay: 0.6s; }
.pulse-bars__bar:nth-child(4) { height: 55%; animation-delay: 0.9s; }
.pulse-bars__bar:nth-child(5) { height: 85%; animation-delay: 1.2s; }
.pulse-bars__bar:nth-child(6) { height: 35%; animation-delay: 1.5s; }
.pulse-bars__bar:nth-child(7) { height: 65%; animation-delay: 1.8s; }
.pulse-bars__bar:nth-child(8) { height: 90%; animation-delay: 2.1s; }
.pulse-bars__bar:nth-child(9) { height: 45%; animation-delay: 2.4s; }
.pulse-bars__bar:nth-child(10) { height: 75%; animation-delay: 2.7s; }
.pulse-bars__bar:nth-child(11) { height: 55%; animation-delay: 3s; }
.pulse-bars__bar:nth-child(12) { height: 95%; animation-delay: 3.3s; }

@keyframes pulse-bar {
  0%, 100% {
    transform: scaleY(0.85);
    opacity: 0.75;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-bars__bar {
    animation: none;
    transform: scaleY(1);
    opacity: 0.9;
  }
}

/* ============ Fact strip ============ */

.fact-strip {
  position: relative;
}

.fact-strip__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.fact-chip {
  border: 1px solid rgba(245, 239, 230, 0.25);
  border-radius: 0.75rem;
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: var(--size-mono);
  letter-spacing: 0.01em;
  color: var(--night-ink);
}

/* ============ Cards ============ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--paper);
  border: 1px solid rgba(27, 23, 18, 0.1);
  border-radius: 1rem;
  padding: 1.75rem;
}

.section--paper-brass .card,
.section--paper-rose .card {
  background: var(--paper);
}

.card--featured {
  border-color: var(--brass);
  border-width: 2px;
}

.card__eyebrow {
  color: var(--brass-deep);
  display: block;
  margin-bottom: 0.5rem;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card--standout {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--paper-brass), var(--paper-rose));
  border: 2px solid var(--brass);
}

/* ============ Reassurance chips ============ */

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.chip {
  border: 1px solid var(--brass);
  color: var(--brass-deep);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ============ Timeline Rule ============ */

.timeline {
  margin-top: 2.5rem;
  border-left: 2px solid rgba(27, 23, 18, 0.15);
  padding-left: 1.75rem;
}

.section--night .timeline {
  border-left-color: rgba(245, 239, 230, 0.2);
}

.timeline__year {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--rose);
  margin: 2.5rem 0 1rem;
  position: relative;
}

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

.timeline__year::before {
  content: "";
  position: absolute;
  left: -2.3rem;
  top: 0.4em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rose);
}

.section--night .timeline__year {
  color: var(--rose-tint);
}

.section--night .timeline__year::before {
  background: var(--rose-tint);
}

.timeline__item {
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(27, 23, 18, 0.08);
}

.section--night .timeline__item {
  border-bottom-color: rgba(245, 239, 230, 0.12);
}

.timeline__item:last-child {
  border-bottom: 0;
}

.timeline__date {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  display: block;
  opacity: 0.75;
  margin-bottom: 0.15rem;
}

/* ============ Empty state ============ */

.empty-state {
  position: relative;
  border-radius: 1.25rem;
  padding: clamp(2rem, 5vw, 3rem);
  margin-top: 2rem;
  background: var(--night);
  color: var(--night-ink);
  overflow: hidden;
}

.empty-state__bars {
  margin-bottom: 1.5rem;
  opacity: 0.85;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
  align-items: center;
}

/* ============ Conversion band ============ */

.conversion-band {
  padding-block: var(--section-padding);
  text-align: left;
}

.conversion-band__inner {
  max-width: var(--wrapper-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.conversion-band h2 {
  color: var(--night-ink);
}

.conversion-band p {
  color: var(--night-ink);
  font-size: var(--size-lede);
  margin-top: 1rem;
  opacity: 0.92;
}

.conversion-band .button {
  margin-top: 1.75rem;
}

/* ============ Footer ============ */

.site-footer {
  background: var(--night);
  color: var(--night-ink);
  padding-block: 3.5rem;
}

.site-footer a {
  text-decoration: none;
}

.site-footer__inner {
  max-width: var(--wrapper-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  gap: 2rem;
}

.footer-nav ul,
.footer-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.footer-nav a,
.footer-legal a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--night-ink);
  opacity: 0.85;
}

.footer-nav a:hover,
.footer-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 1rem;
  min-height: 1px;
  /* Structural placeholder only — no handle is vetted for public use yet.
     See docs/tasks/issue-7-initial-site/06-content-reviewed.md
     (global.footer.social). Populate once a public handle is confirmed. */
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: center;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(245, 239, 230, 0.12);
}

.site-footer .lang-switch a[aria-current="true"] {
  color: var(--rose-tint);
}

/* ============ Forms ============ */

.form-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.form-field label {
  font-weight: 600;
  font-size: 0.9375rem;
}

.form-field .field-hint {
  font-size: 0.875rem;
  opacity: 0.75;
}

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(27, 23, 18, 0.25);
  background: var(--paper);
  color: var(--ink);
  min-height: 44px;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 1px;
  border-color: var(--rose);
}

.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: var(--rose);
}

.field-error {
  color: var(--rose);
  font-size: 0.875rem;
  font-weight: 600;
  display: none;
}

.form-field.has-error .field-error {
  display: block;
}

.form-field--consent {
  gap: 0.5rem;
}

/*
  The consent checkbox sits directly above the submit button. Checking the
  box moves focus there, which blurs the checkbox and (correctly) clears
  its error — but with `display: none/block` that also collapses/expands
  the error line's height right as a user's next click lands, shifting the
  button out from under the pointer mid-click. Reserve the line's height
  here instead, so toggling visibility doesn't reflow the button.
*/
.form-field--consent .field-error {
  display: block;
  visibility: hidden;
  min-height: 1.25em;
}

.form-field--consent.has-error .field-error {
  visibility: visible;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-consent input[type="checkbox"] {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  accent-color: var(--rose);
}

.form-consent label {
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-error-summary {
  display: none;
  border: 1.5px solid var(--rose);
  background: var(--paper-rose);
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 1rem 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.form-error-summary.is-visible {
  display: block;
}

.form-success {
  display: none;
  border: 1.5px solid var(--brass);
  background: var(--paper-brass);
  border-radius: 1rem;
  padding: 2rem;
}

.form-success.is-visible {
  display: block;
}

/*
  Note: the form itself is hidden via the `hidden` attribute set directly
  by site.js on submit (see initBookingForm), not via CSS here. The
  mailto fallback link deliberately stays visible even after a successful
  in-place submission — see 05-storyboard-reviewed.md, Form patterns:
  "A mailto: fallback is always visible near the form."
*/

.form-fallback {
  margin-top: 1.5rem;
  font-size: 0.9375rem;
}

.contact-layout {
  display: grid;
  gap: 3rem;
  margin-top: 2.5rem;
}

.contact-panel {
  background: var(--paper-brass);
  border-radius: 1rem;
  padding: 2rem;
  height: fit-content;
}

.contact-panel dt {
  font-weight: 600;
  margin-top: 1.25rem;
}

.contact-panel dt:first-child {
  margin-top: 0;
}

.contact-panel dd {
  margin: 0.25rem 0 0;
}

@media (min-width: 1024px) {
  .contact-layout {
    grid-template-columns: 1.5fr 1fr;
  }

  .contact-layout .contact-form-wrap {
    order: 1;
  }

  .contact-layout .contact-panel {
    order: 2;
  }
}

/* ============ Embeds (click-to-load facade) ============ */

.embed-card {
  background: var(--night);
  color: var(--night-ink);
  border-radius: 1rem;
  padding: 2rem;
  margin-top: 1.5rem;
}

.embed-card__note {
  font-size: 0.875rem;
  opacity: 0.75;
  margin-top: 1rem;
}

/* ============ Scroll reveal (progressive enhancement) ============ */

.reveal {
  opacity: 1;
  transform: none;
}

.js-reveal .reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-medium) var(--ease-out),
    transform var(--motion-medium) var(--ease-out);
}

.js-reveal .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============ Instrument tags ============ */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.tag {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

.tag--primary {
  background: var(--rose);
  color: var(--paper);
}

.tag--secondary {
  border: 1px solid var(--brass);
  color: var(--brass-deep);
}

/* ============ Legal pages ============ */

.legal-content {
  max-width: var(--measure);
  margin-top: 2rem;
  white-space: pre-wrap;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.legal-content strong {
  font-weight: 700;
}

/* ============ Language gate (root index.html) ============ */

.lang-gate {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--night);
  color: var(--night-ink);
  padding: var(--gutter);
  position: relative;
  overflow: hidden;
}

.lang-gate__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 32rem;
}

.lang-gate h1 {
  color: var(--night-ink);
}

.lang-gate__tagline {
  margin-top: 1rem;
  font-size: var(--size-lede);
  opacity: 0.9;
}

.lang-gate__choices {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.lang-gate__choice {
  min-width: 140px;
  padding: 1rem 1.75rem;
  border-radius: 999px;
  border: 2px solid var(--brass-tint);
  color: var(--night-ink);
  text-decoration: none;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
  font-weight: 700;
}

.lang-gate__choice:hover {
  background: var(--rose-tint);
  color: var(--night);
  border-color: var(--rose-tint);
}

.lang-gate__mark {
  width: 96px;
  height: 56px;
  margin-inline: auto;
  opacity: 0.8;
}

/* ============ Responsive base ============ */

@media (min-width: 768px) {
  .hero__grid {
    max-width: 50rem;
  }

  .contact-layout {
    gap: 3rem;
  }
}

@media (min-width: 1024px) {
  .card-grid--asym {
    grid-template-columns: repeat(3, 1fr);
  }
}
