/* =========================================================
   «Пар» — кофейня на Патриарших
   One-page site. No external libraries or assets.
   ========================================================= */

:root {
  --paper: #f4ecdf;
  --paper-deep: #eee3d2;
  --cream: #f8f2e7;
  --sand: #e7dcc7;
  --ink: #211b15;
  --ink-soft: #4b4034;
  --muted: #746553;
  --terracotta: #b65334;
  --terracotta-dark: #964026;
  --mustard: #d8a34b;
  --olive: #5d624c;
  --olive-dark: #464b3a;
  --line: rgba(33, 27, 21, 0.16);
  --line-soft: rgba(33, 27, 21, 0.1);
  --line-light: rgba(244, 234, 216, 0.17);
  --serif: Georgia, "Times New Roman", "DejaVu Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --label: "Trebuchet MS", "Segoe UI", Arial, sans-serif;
  --shell: 1240px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow: 0 30px 70px -48px rgba(58, 34, 19, 0.45);
}

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

html {
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(216, 163, 75, 0.09), transparent 38%),
    var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  position: fixed;
  z-index: 100;
  inset: 0;
  background-image: url("assets/grain.svg");
  background-size: 180px 180px;
  content: "";
  opacity: 0.035;
  pointer-events: none;
  mix-blend-mode: multiply;
}

::selection {
  background: var(--terracotta);
  color: var(--cream);
}

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

img {
  height: auto;
}

a {
  color: inherit;
}

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

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

address {
  font-style: normal;
}

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

.site-footer :focus-visible {
  outline-color: var(--mustard);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--label);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-180%);
  transition: transform 0.25s var(--ease);
}

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

.shell {
  width: min(calc(100% - clamp(2.5rem, 8vw, 7rem)), var(--shell));
  margin-inline: auto;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  border-bottom: 1px solid rgba(33, 27, 21, 0.08);
  background: rgba(244, 236, 223, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 82px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 46px;
  border-radius: 7px;
  transition: transform 0.5s var(--ease);
}

.brand-word {
  padding-bottom: 4px;
  font-family: var(--serif);
  font-size: 32px;
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.05em;
}

.brand-caption {
  margin-left: 2px;
  padding-left: 12px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--label);
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand:hover .brand-logo {
  transform: translateY(-2px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav a,
.footer-nav a {
  position: relative;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.015em;
  text-decoration: none;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--terracotta);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.35s var(--ease);
}

.site-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left center;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.header-cta svg {
  transition: transform 0.3s var(--ease);
}

.header-cta:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.header-cta:hover svg {
  transform: translateX(3px);
}

/* ---------- Shared type ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--terracotta);
  font-family: var(--label);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.eyebrow-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 5px rgba(182, 83, 52, 0.1);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 4.8vw, 4.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

h2 em {
  color: var(--terracotta);
  font-weight: 400;
}

.section {
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.5fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(3rem, 5.5vw, 5rem);
}

.section-note {
  max-width: 36ch;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-head--dark .eyebrow {
  color: var(--mustard);
}

.section-head--dark h2 {
  color: var(--cream);
}

.section-head--dark h2 em {
  color: var(--mustard);
}

.section-head--dark .section-note {
  border-color: var(--line-light);
  color: rgba(244, 234, 216, 0.68);
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--label);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-decoration: none;
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.button svg {
  flex: 0 0 auto;
  transition: transform 0.3s var(--ease);
}

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

.button--primary:hover {
  background: var(--terracotta);
  transform: translateY(-2px);
}

.button--primary:hover svg {
  transform: translateX(3px);
}

.button--ghost {
  border-color: var(--line);
  color: var(--ink);
}

.button--ghost:hover {
  border-color: var(--ink);
  background: rgba(33, 27, 21, 0.05);
  transform: translateY(-2px);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(2.5rem, 5vw, 4.8rem);
}

.hero::before {
  position: absolute;
  z-index: 0;
  top: -42%;
  right: -18%;
  width: min(62vw, 880px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 75, 0.17) 0%, transparent 66%);
  content: "";
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(390px, 0.85fr);
  align-items: center;
  gap: clamp(2.5rem, 5vw, 4.5rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
  font-family: var(--serif);
  font-size: clamp(2.3rem, 5.8vw, 5.7rem);
  font-weight: 400;
  letter-spacing: -0.048em;
  line-height: 0.98;
}

.hero h1 em {
  color: var(--terracotta);
  font-weight: 400;
}

.hero-lead {
  max-width: 48ch;
  margin-bottom: clamp(1.7rem, 2.6vw, 2.3rem);
  color: var(--ink-soft);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(2rem, 3.3vw, 2.8rem);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 560px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.hero-facts > div {
  min-width: 0;
  padding-inline: 18px;
  border-left: 1px solid var(--line);
}

.hero-facts > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-facts dd {
  color: var(--ink);
  font-family: var(--label);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.hero-art {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 560px;
}

.hero-art-shadow {
  position: absolute;
  z-index: 0;
  inset: 20px -16px -20px 20px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(216, 163, 75, 0.06);
  transform: rotate(2.2deg);
}

.hero-poster {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  border-radius: 30px;
  box-shadow: 0 42px 88px -46px rgba(66, 31, 17, 0.58);
}

.steam {
  opacity: 0.85;
}

@media (prefers-reduced-motion: no-preference) {
  .steam {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: steam-rise 5.6s linear infinite;
  }

  .steam--2 {
    animation-delay: 1.7s;
    animation-duration: 6.3s;
  }

  .steam--3 {
    animation-delay: 3.2s;
    animation-duration: 5.9s;
  }

  .hero-poster {
    animation: poster-in 0.9s var(--ease) both;
  }
}

@keyframes steam-rise {
  0% {
    opacity: 0;
    stroke-dashoffset: 100;
  }
  12% {
    opacity: 0.82;
  }
  72% {
    opacity: 0.5;
  }
  100% {
    opacity: 0;
    stroke-dashoffset: -100;
  }
}

@keyframes poster-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(0.7deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
}

/* ---------- Marquee ---------- */

.marquee {
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 5.5vw, 5rem);
  border-block: 1px solid rgba(216, 163, 75, 0.5);
  background: var(--ink);
  color: var(--cream);
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee-move 34s linear infinite;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex: none;
  align-items: center;
  gap: clamp(1.5rem, 3vw, 3.2rem);
  padding-right: clamp(1.5rem, 3vw, 3.2rem);
  padding-block: 17px;
}

.marquee-group > span:not(.marquee-star) {
  font-family: var(--serif);
  font-size: clamp(17px, 1.9vw, 24px);
  font-style: italic;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.marquee-star {
  color: var(--mustard);
  font-size: 12px;
  line-height: 1;
}

@keyframes marquee-move {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- About ---------- */

.about {
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.about-figure {
  min-width: 0;
}

.figure-media {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: var(--olive);
  box-shadow: var(--shadow);
}

.figure-media img {
  width: 100%;
  aspect-ratio: 760 / 900;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.about-figure:hover .figure-media img {
  transform: scale(1.018);
}

.figure-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 8px 12px;
  border: 1px solid rgba(33, 27, 21, 0.1);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 12px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 9px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about-copy {
  padding-top: clamp(0.5rem, 2vw, 2rem);
}

.about-lead {
  max-width: 26ch;
  margin-bottom: 1.35rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.1vw, 1.9rem);
  letter-spacing: -0.02em;
  line-height: 1.32;
}

.about-copy > p:not(.about-lead):not(.signature) {
  max-width: 54ch;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-block: 2.2rem;
  padding-block: 1.2rem;
  border-block: 1px solid var(--line);
}

.about-stats > div {
  padding-inline: 16px;
  border-left: 1px solid var(--line);
}

.about-stats > div:first-child {
  padding-left: 0;
  border-left: 0;
}

.about-stats dt {
  color: var(--terracotta);
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.2rem);
  line-height: 1;
}

.about-stats dd {
  margin-top: 7px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.signature {
  margin-top: 2rem;
  padding-left: 18px;
  border-left: 2px solid var(--terracotta);
  font-family: var(--serif);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.25;
}

.signature span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- Menu ---------- */

.menu-section {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
  background: var(--ink);
  color: var(--cream);
}

.menu-section::before {
  position: absolute;
  top: -24%;
  right: -12%;
  width: min(58vw, 780px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 75, 0.11), transparent 66%);
  content: "";
  pointer-events: none;
}

.menu-section .shell {
  position: relative;
  z-index: 1;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2.2rem, 4vw, 3.6rem) clamp(2.5rem, 6vw, 5.5rem);
}

.menu-group {
  min-width: 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-light);
}

.menu-group-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.menu-no {
  align-self: start;
  padding-top: 7px;
  color: var(--mustard);
  font-family: var(--label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.menu-group h3 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1;
}

.menu-volume {
  color: rgba(244, 234, 216, 0.58);
  font-family: var(--label);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.menu-list {
  border-top: 1px solid rgba(244, 234, 216, 0.07);
}

.menu-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
  padding-block: 14px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.09);
}

.menu-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  transition: color 0.25s var(--ease);
}

.menu-desc {
  display: block;
  margin-top: 2px;
  color: rgba(244, 234, 216, 0.62);
  font-size: 12px;
  line-height: 1.5;
}

.menu-item:hover .menu-name {
  color: var(--mustard);
}

.menu-price {
  color: var(--cream);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.4;
  white-space: nowrap;
}

.menu-feature {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: clamp(2rem, 4vw, 4rem);
  overflow: hidden;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(1.7rem, 4vw, 3.4rem);
  border-radius: 24px;
  background: var(--mustard);
  color: var(--ink);
}

.feature-copy {
  position: relative;
  z-index: 2;
  max-width: 590px;
}

.feature-copy .eyebrow {
  margin-bottom: 15px;
  color: rgba(33, 27, 21, 0.72);
}

.feature-copy h3 {
  margin-bottom: 12px;
  font-family: var(--serif);
  font-size: clamp(2.25rem, 4vw, 4rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.feature-copy > p:last-child {
  max-width: 53ch;
  font-size: 14px;
  line-height: 1.65;
}

.feature-price {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  padding-left: clamp(1.2rem, 3vw, 2.2rem);
  border-left: 1px solid rgba(33, 27, 21, 0.18);
}

.feature-price strong {
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.feature-price span {
  color: rgba(33, 27, 21, 0.72);
  font-family: var(--label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.feature-orbit {
  position: absolute;
  top: 50%;
  right: -5%;
  width: min(38vw, 360px);
  aspect-ratio: 1;
  border: 1px solid rgba(33, 27, 21, 0.16);
  border-radius: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.feature-orbit::before,
.feature-orbit::after {
  position: absolute;
  border: 1px solid rgba(33, 27, 21, 0.13);
  border-radius: 50%;
  content: "";
}

.feature-orbit::before {
  inset: 15%;
}

.feature-orbit::after {
  inset: 31%;
}

.feature-orbit span {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--terracotta);
}

.feature-orbit span:nth-child(1) {
  top: 12%;
  left: 22%;
}

.feature-orbit span:nth-child(2) {
  right: 16%;
  bottom: 23%;
  width: 5px;
  height: 5px;
}

.feature-orbit span:nth-child(3) {
  right: 31%;
  bottom: 9%;
  width: 3px;
  height: 3px;
  background: rgba(33, 27, 21, 0.45);
}

.menu-footnote {
  margin-top: 1.5rem;
  color: rgba(244, 234, 216, 0.52);
  font-family: var(--label);
  font-size: 8px;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-align: right;
  text-transform: uppercase;
}

.menu-footnote span {
  margin-inline: 4px;
}

/* ---------- Space ---------- */

.space {
  position: relative;
}

.space-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.82fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 20px;
  min-height: 660px;
}

.space-card {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(1.4rem, 3vw, 2.4rem);
  border-radius: 24px;
  transition:
    transform 0.45s var(--ease),
    box-shadow 0.45s var(--ease);
}

.space-card--window {
  grid-row: 1 / 3;
  justify-content: space-between;
  background: var(--olive);
  color: var(--cream);
}

.space-card--window::after {
  position: absolute;
  inset: auto 0 0;
  height: 48%;
  background: linear-gradient(to top, rgba(31, 35, 26, 0.62), transparent);
  content: "";
  pointer-events: none;
}

.space-card--book {
  background: #ede2cf;
  color: var(--ink);
}

.space-card--together {
  background: var(--terracotta);
  color: var(--cream);
}

.space-card-head {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  opacity: 0.82;
  text-transform: uppercase;
}

.space-card-copy {
  position: relative;
  z-index: 3;
  max-width: 33ch;
  margin-top: auto;
}

.space-card--window .space-card-copy {
  max-width: 40ch;
}

.space-card-copy h3 {
  margin-bottom: 9px;
  font-family: var(--serif);
  font-size: clamp(1.75rem, 2.7vw, 2.7rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1;
}

.space-card-copy p {
  max-width: 36ch;
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.82;
}

.space-card--window .space-card-copy p {
  max-width: 36ch;
  color: rgba(244, 234, 216, 0.88);
  opacity: 1;
}

.space-card--book .space-card-copy p {
  color: var(--ink-soft);
  opacity: 1;
}

.space-card--together .space-card-copy p {
  color: rgba(248, 242, 231, 0.9);
  opacity: 1;
}

.space-icon {
  position: absolute;
  z-index: 2;
  top: clamp(3.4rem, 6vw, 4.9rem);
  right: clamp(1.2rem, 3vw, 2.4rem);
  width: clamp(72px, 8vw, 100px);
  height: auto;
  transition: transform 0.5s var(--ease);
}

.space-card--book .space-icon {
  color: var(--terracotta);
  opacity: 0.9;
}

.space-card--together .space-icon {
  color: var(--cream);
  opacity: 0.88;
}

.window-scene {
  position: absolute;
  z-index: 1;
  right: 4%;
  bottom: 0;
  width: min(68%, 440px);
  height: 78%;
  pointer-events: none;
}

.window-arch {
  position: absolute;
  inset: 0 0 22px;
  overflow: hidden;
  border: 10px solid var(--olive-dark);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 44% 44% 0 0;
  background: linear-gradient(180deg, #f6ead3 0%, #ead4ac 100%);
  box-shadow: 0 26px 50px -34px rgba(22, 25, 17, 0.55);
}

.window-sun {
  position: absolute;
  top: 19%;
  right: 22%;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--mustard);
  transition: transform 0.8s var(--ease);
}

.window-hill {
  position: absolute;
  right: -15%;
  bottom: -8%;
  left: -15%;
  height: 32%;
  border-radius: 50% 50% 0 0;
  background: #848a6a;
}

.window-hill--front {
  bottom: -18%;
  height: 39%;
  background: #687156;
}

.window-tree {
  position: absolute;
  bottom: 13%;
  left: 18%;
  width: 50px;
  height: 110px;
  border-radius: 52% 48% 45% 55%;
  background: #4f5943;
  box-shadow:
    24px -15px 0 -8px #4f5943,
    -22px -5px 0 -12px #4f5943;
}

.window-mullion {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 8px;
  margin-left: -4px;
  background: var(--olive-dark);
}

.window-mullion::after {
  position: absolute;
  top: 39%;
  right: -1000px;
  left: -1000px;
  height: 8px;
  background: var(--olive-dark);
  content: "";
}

.window-sill {
  position: absolute;
  right: -8%;
  bottom: 0;
  left: -8%;
  height: 17px;
  border-radius: 4px;
  background: #303628;
  box-shadow: 0 8px 0 rgba(31, 35, 26, 0.22);
}

.window-sill::before {
  position: absolute;
  bottom: 17px;
  left: 16%;
  width: 38px;
  height: 25px;
  border-radius: 3px 3px 12px 12px;
  background: var(--cream);
  content: "";
}

.window-sill::after {
  position: absolute;
  bottom: 22px;
  left: calc(16% + 35px);
  width: 15px;
  height: 14px;
  border: 4px solid var(--cream);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  content: "";
}

.space-card--window:hover .window-sun {
  transform: translateY(-8px);
}

/* ---------- Painting ---------- */

.space-art {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(200px, 0.26fr);
  align-items: end;
  gap: clamp(1.4rem, 3.5vw, 3rem);
  margin-top: 20px;
  padding: clamp(0.9rem, 2vw, 1.5rem);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  background: var(--paper-deep);
}

.space-art-frame {
  overflow: hidden;
  padding: clamp(8px, 1.2vw, 14px);
  border-radius: 16px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.space-art-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  transition: transform 0.9s var(--ease);
}

.space-art:hover .space-art-frame img {
  transform: scale(1.012);
}

.space-art-caption {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 6px;
}

.space-art-caption::before {
  width: 30px;
  height: 1px;
  margin-bottom: 3px;
  background: var(--terracotta);
  content: "";
}

.space-art-kicker {
  color: var(--terracotta);
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.space-art-title {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* ---------- Visit ---------- */

.visit {
  position: relative;
  overflow: hidden;
  padding-block: clamp(5.5rem, 10vw, 9.5rem);
  background:
    radial-gradient(circle at 88% 18%, rgba(216, 163, 75, 0.2), transparent 32%),
    var(--sand);
}

.visit::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 44%;
  height: 100%;
  background-image: linear-gradient(rgba(33, 27, 21, 0.04) 1px, transparent 1px);
  background-size: 100% 42px;
  content: "";
  opacity: 0.5;
  pointer-events: none;
}

.visit .shell {
  position: relative;
  z-index: 1;
}

.visit-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.45fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 5rem);
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.visit-note {
  max-width: 32ch;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.visit-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.contact-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 18px;
  padding-block: 21px;
  border-top: 1px solid var(--line);
}

.contact-row:last-of-type {
  border-bottom: 1px solid var(--line);
}

.contact-label {
  padding-top: 4px;
  color: var(--muted);
  font-family: var(--label);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-row address {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  letter-spacing: -0.015em;
  line-height: 1.35;
}

.contact-row address span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0;
}

.hours-list {
  display: grid;
  gap: 4px;
}

.hours-list > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 240px;
}

.hours-list dt {
  color: var(--muted);
  font-size: 13px;
}

.hours-list dd {
  font-family: var(--label);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.contact-links a {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.3rem);
  text-decoration: none;
  background-image: linear-gradient(var(--terracotta), var(--terracotta));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size 0.35s var(--ease);
}

.contact-links a:hover {
  background-size: 100% 1px;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.metro-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.metro-note span {
  margin-inline: 3px;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #e8ddc8;
  box-shadow: var(--shadow);
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.map-card:hover img {
  transform: scale(1.02);
}

.map-card figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(33, 27, 21, 0.08);
  border-radius: 10px;
  background: rgba(248, 242, 231, 0.92);
  color: var(--ink);
  font-family: var(--label);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.5rem, 8vw, 8rem);
  padding-bottom: 26px;
  background: #19140f;
  color: var(--cream);
}

.site-footer::before {
  position: absolute;
  top: -40%;
  right: -15%;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(216, 163, 75, 0.13), transparent 68%);
  content: "";
  pointer-events: none;
}

.site-footer .shell {
  position: relative;
  z-index: 1;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2.5rem;
  padding-bottom: clamp(4rem, 8vw, 8rem);
  border-bottom: 1px solid var(--line-light);
}

.footer-top .eyebrow {
  color: var(--mustard);
}

.footer-top h2 {
  font-size: clamp(3.2rem, 8.6vw, 8.2rem);
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.footer-top h2 em {
  color: var(--mustard);
}

.footer-round {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: clamp(66px, 7vw, 88px);
  aspect-ratio: 1;
  margin-bottom: 6px;
  border: 1px solid rgba(244, 234, 216, 0.28);
  border-radius: 50%;
  color: var(--cream);
  text-decoration: none;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    transform 0.35s var(--ease);
}

.footer-round:hover {
  background: var(--mustard);
  color: var(--ink);
  transform: translate(3px, -3px);
}

.footer-bottom {
  display: grid;
  grid-template-columns: auto minmax(220px, 1.2fr) auto auto;
  align-items: start;
  gap: 2rem;
  padding-top: 28px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.footer-brand span {
  font-family: var(--serif);
  font-size: 27px;
  font-style: italic;
  letter-spacing: -0.04em;
  line-height: 1;
}

.footer-address,
.footer-copy {
  color: rgba(244, 234, 216, 0.62);
  font-size: 11px;
  line-height: 1.7;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px 20px;
}

.footer-nav a {
  color: rgba(244, 234, 216, 0.68);
  font-size: 11px;
}

.footer-nav a:hover {
  color: var(--cream);
}

.footer-copy {
  text-align: right;
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    gap: 2.5rem;
  }

  .hero-facts {
    max-width: 520px;
  }

  .space-grid {
    min-height: 620px;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(2.6rem, 5vw, 3.8rem);
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 8vw, 5.2rem);
  }

  .hero-art {
    justify-self: center;
    width: min(100%, 500px);
  }

  .hero-art-shadow {
    inset: 16px -14px -16px 16px;
  }

  .hero-facts {
    max-width: 640px;
  }

  .section-head,
  .visit-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
  }

  .section-note,
  .visit-note {
    justify-self: start;
    max-width: 52ch;
  }

  .about-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .about-figure {
    max-width: 620px;
  }

  .about-copy {
    max-width: 700px;
    padding-top: 0;
  }

  .about-lead {
    max-width: 30ch;
  }

  .space-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
    min-height: 0;
  }

  .space-card--window {
    grid-row: auto;
    grid-column: 1 / -1;
    min-height: 500px;
  }

  .space-card--book,
  .space-card--together {
    min-height: 300px;
  }

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

  .map-card {
    min-height: 0;
    aspect-ratio: 760 / 600;
  }

  .footer-bottom {
    grid-template-columns: auto 1fr auto;
  }

  .footer-copy {
    grid-column: 1 / -1;
    text-align: left;
  }
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 1.5rem;
  }

  .site-header {
    position: relative;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
    min-height: 72px;
    gap: 0 16px;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: space-between;
    width: 100%;
    margin-top: 10px;
    padding-block: 10px 13px;
    border-top: 1px solid var(--line);
  }

  .header-cta {
    padding: 10px 14px;
  }

  .menu-feature {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 1.6rem;
  }

  .feature-price {
    flex-direction: row;
    align-items: baseline;
    gap: 10px;
    padding-top: 12px;
    padding-left: 0;
    border-top: 1px solid rgba(33, 27, 21, 0.18);
  }

  .feature-orbit {
    top: auto;
    right: -12%;
    bottom: -34%;
    width: 320px;
    transform: none;
  }

  .menu-footnote {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .menu-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.3rem;
  }

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

  .space-card--window {
    grid-column: auto;
    min-height: 470px;
  }

  .space-card--book,
  .space-card--together {
    min-height: 270px;
  }

  .window-scene {
    right: 0;
    width: min(74%, 390px);
    height: 76%;
  }

  .space-art {
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
  }

  .space-art-caption {
    flex-direction: row;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 2px;
  }

  .space-art-caption::before {
    display: none;
  }

  .space-art-title {
    font-size: clamp(1.35rem, 4vw, 1.7rem);
  }

  .visit-actions .button {
    flex: 1 1 180px;
  }

  .footer-top {
    align-items: flex-start;
  }

  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    gap: 1.8rem;
  }

  .footer-address {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .brand-caption {
    display: none;
  }

  .brand-word {
    font-size: 29px;
  }

  .site-nav {
    gap: 16px;
  }

  .site-nav a {
    font-size: 12px;
  }

  .header-cta {
    font-size: 9px;
  }

  .header-cta svg {
    width: 16px;
    height: 16px;
  }

  .hero {
    padding-top: 1.4rem;
  }

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

  .hero-lead {
    font-size: 15px;
  }

  .hero-actions {
    margin-bottom: 2rem;
  }

  .hero-actions .button {
    flex: 1 1 190px;
  }

  .hero-facts {
    grid-template-columns: 1fr 1fr;
    row-gap: 16px;
  }

  .hero-facts > div:nth-child(3) {
    grid-column: 1 / -1;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .hero-facts dd {
    font-size: 12px;
  }

  .hero-art-shadow {
    display: none;
  }

  .hero-poster {
    border-radius: 22px;
  }

  .marquee-group {
    padding-block: 14px;
  }

  .figure-badge {
    top: 12px;
    right: 12px;
  }

  .about-figure figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .about-stats > div {
    padding-inline: 10px;
  }

  .about-stats dd {
    font-size: 8px;
  }

  .menu-group-head {
    gap: 10px;
  }

  .menu-volume {
    font-size: 7px;
  }

  .menu-feature {
    border-radius: 20px;
  }

  .feature-copy > p:last-child {
    font-size: 13px;
  }

  .space-card {
    border-radius: 20px;
  }

  .space-art {
    border-radius: 20px;
  }

  .space-art-frame {
    border-radius: 14px;
  }

  .space-card--window {
    min-height: 430px;
  }

  .space-card--book,
  .space-card--together {
    min-height: 240px;
  }

  .space-icon {
    width: 72px;
    top: 3.3rem;
  }

  .window-scene {
    width: min(78%, 330px);
    height: 73%;
  }

  .window-sun {
    width: 66px;
    height: 66px;
  }

  .window-tree {
    width: 40px;
    height: 88px;
  }

  .contact-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-block: 18px;
  }

  .contact-label {
    padding-top: 0;
  }

  .contact-row address {
    font-size: 1.25rem;
  }

  .map-card {
    aspect-ratio: 4 / 3;
    border-radius: 20px;
  }

  .map-card figcaption {
    font-size: 8px;
  }

  .footer-top {
    gap: 1rem;
  }

  .footer-round {
    width: 60px;
  }

  .footer-bottom {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-address,
  .footer-copy {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-nav {
    order: 4;
  }

  .footer-copy {
    order: 5;
  }

  .site-footer {
    padding-bottom: 22px;
  }
}

@media (max-width: 390px) {
  .hero h1 {
    font-size: 2.15rem;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 11px;
  }

  .header-cta span {
    display: none;
  }

  .header-cta {
    width: 40px;
    height: 40px;
    justify-content: center;
    padding: 0;
  }

  .hero-actions .button {
    flex-basis: 100%;
  }

  .about-stats {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .about-stats > div {
    padding: 0 0 12px;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .about-stats > div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .menu-item {
    gap: 12px;
  }

  .space-card--window {
    min-height: 450px;
  }

  .window-scene {
    width: 86%;
  }

  .feature-orbit {
    display: none;
  }

  .map-card figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .footer-top h2 {
    font-size: 2.8rem;
  }
}

@media (hover: hover) {
  .space-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px -46px rgba(45, 30, 17, 0.55);
  }

  .space-card:hover .space-icon {
    transform: translateY(-4px) rotate(-2deg);
  }

  .marquee:hover .marquee-track {
    animation-play-state: paused;
  }
}

@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;
  }

  .marquee {
    overflow-x: auto;
  }

  .marquee-track {
    animation: none;
  }
}
