/* =========================================================
   ХВОЯ - кофейня тихоокеанского северо-запада
   ========================================================= */

:root {
  --bg:          #f3efe7;
  --bg-deep:     #e9e1d7;
  --paper:       #fbfaf6;
  --ink:         #252723;
  --ink-soft:    #524234;
  --ink-faint:   #674d3b;
  --line:        #d4c5b7;
  --line-soft:   #e3dacf;
  --contour:     #9a9085;
  --rust:        #c69a5b;
  --rust-deep:   #8a6248;
  --moss:        #496b5d;
  --moss-deep:   #173a32;
  --forest:      #496b5d;
  --forest-deep: #173a32;
  --sage:        #496b5d;

  --font-display: "Fraunces", Georgia, serif;
  --font-body:    "Inter", "Segoe UI", sans-serif;
  --font-hand:    "Caveat", cursive;

  --wrap: 1320px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

ul, ol { list-style: none; }

table { border-collapse: collapse; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 18px;
  z-index: 999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* paper grain overlay -------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* typography ------------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust-deep);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
  margin-right: 10px;
  vertical-align: middle;
}

.eyebrow--moss { color: var(--sage); }

.h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.12;
  color: var(--ink);
}

.handwritten {
  font-family: var(--font-hand);
  font-size: 1.4rem;
  color: var(--rust-deep);
}

/* scroll reveal ----------------------------------------------------------*/
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  width: 30px;
  height: 30px;
  color: var(--rust);
  flex-shrink: 0;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.04em;
}

.brand__sub {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav {
  display: flex;
  gap: clamp(16px, 3vw, 40px);
}

.nav a {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding: 6px 0;
  white-space: nowrap;
  transition: color 0.3s var(--ease);
}

.nav__num {
  font-size: 0.68rem;
  color: var(--line);
  font-variant-numeric: tabular-nums;
  transition: color 0.3s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rust);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover,
.nav a.is-active {
  color: var(--ink);
}
.nav a:hover .nav__num,
.nav a.is-active .nav__num { color: var(--rust-deep); }

.nav a:hover::after,
.nav a.is-active::after { transform: scaleX(1); }

.nav__cta {
  align-self: center;
  padding: 9px 18px;
  background: var(--rust);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  white-space: nowrap;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.nav__cta:hover {
  background: var(--rust-deep);
  color: var(--paper);
  transform: translateY(-1px);
}

.menu-toggle { display: none; }

.burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 9px;
  margin: -14px -9px;
  cursor: pointer;
  z-index: 210;
}
.burger span {
  width: 26px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

/* =========================================================
   BUTTONS / LINKS
   ========================================================= */
.btn {
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn__shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: visible;
}
.btn__shape polygon {
  fill: var(--rust);
  stroke: var(--contour);
  stroke-width: 1;
  transition: fill 0.3s var(--ease);
}
.btn__arrow { width: 18px; transition: transform 0.3s var(--ease); }
.btn:hover { color: var(--paper); transform: translate(2px, -2px); }
.btn:hover .btn__shape polygon { fill: var(--rust-deep); }
.btn:hover .btn__arrow { transform: translateX(4px); }

.text-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid var(--contour);
  background: transparent;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.text-link:hover { background: var(--ink-soft); border-color: var(--ink-soft); color: var(--bg); transform: translate(2px, -2px); }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: center;
}

.hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__media picture,
.hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 58, 50, 0.86) 0%, rgba(23, 58, 50, 0.6) 40%, rgba(23, 58, 50, 0.28) 68%, rgba(23, 58, 50, 0.12) 100%),
    linear-gradient(0deg, rgba(23, 58, 50, 0.35) 0%, rgba(23, 58, 50, 0) 30%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: 36px;
  padding-bottom: 60px;
}

.hero .eyebrow {
  color: var(--rust);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(4.2rem, 15vw, 9.5rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  color: var(--paper);
  margin: 4px 0 18px;
}

.hero__lede {
  max-width: 480px;
  font-size: 1.15rem;
  color: var(--line-soft);
  margin-bottom: 36px;
}

.hero__row {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero .text-link {
  color: var(--paper);
  border-color: rgba(251, 250, 246, 0.5);
}
.hero .text-link:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}

.scroll-cue {
  position: absolute;
  right: 40px;
  bottom: 36px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 250, 246, 0.7);
}

.scroll-cue i {
  width: 1px;
  height: 46px;
  background: rgba(251, 250, 246, 0.3);
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--rust);
  animation: cueDrip 2.6s ease-in-out infinite;
}
@keyframes cueDrip {
  0%   { top: -100%; }
  60%  { top: 100%; }
  100% { top: 100%; }
}

/* =========================================================
   SECTION SHARED
   ========================================================= */
section { padding: 88px 0; }

.section-head { margin-bottom: 44px; max-width: 640px; }

.section-head--commerce {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  max-width: none;
}

/* =========================================================
   ABOUT
   ========================================================= */
.about {
  position: relative;
  border-bottom: 1px solid var(--line-soft);
}

.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.05;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='170' height='170'%3E%3Cg fill='none' stroke='%23496b5d' stroke-width='1'%3E%3Cpath d='M30 150V96M30 106l-11 7M30 106l11 7M30 120l-11 7M30 120l11 7M30 134l-9 6M30 134l9 6'/%3E%3Cpath d='M135 140V80M135 92l-12 8M135 92l12 8M135 108l-12 8M135 108l12 8M135 124l-10 7M135 124l10 7'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 170px 170px;
}

.about > .wrap { position: relative; z-index: 1; }

.about__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.about__lede {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  line-height: 1.4;
  color: var(--ink);
  margin: 16px 0 18px;
}

.about__text {
  color: var(--ink-soft);
  max-width: 52ch;
  margin-bottom: 32px;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feature-list li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.feature-list__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  color: var(--sage);
}

.about__col--art .art-block::before,
.about__col--art .art-block::after { border-color: var(--sage); }

.feature-list h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.feature-list p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 46ch;
}

.art-block {
  position: relative;
  border: 1px solid var(--line);
  background: var(--bg-deep);
  color: var(--moss-deep);
  overflow: hidden;
}
.art-block::before,
.art-block::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--rust);
  opacity: 0.7;
  z-index: 2;
}
.art-block::before { top: -1px; left: -1px; border-right: none; border-bottom: none; }
.art-block::after   { bottom: -1px; right: -1px; border-left: none; border-top: none; }

.art-block svg { position: relative; width: 100%; height: auto; }
.art-block svg rect:first-child { fill: none; stroke: none; }

.art-block--tall svg { height: 100%; aspect-ratio: 320 / 420; object-fit: cover; }

.art-block figcaption {
  position: absolute;
  left: 20px;
  bottom: 18px;
  right: 20px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--ink);
}

.gallery__item figcaption {
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  padding: 10px 18px;
  font-size: 0.95rem;
}

.quote-mark {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--sage);
  margin-right: 4px;
}

.quote-mark--close {
  margin-right: 0;
  margin-left: 4px;
}

/* =========================================================
   TEAM
   ========================================================= */
.team { border-bottom: 1px solid var(--line-soft); }

.team__layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  align-items: start;
}

.team__photo { position: relative; aspect-ratio: 4 / 5; }
.team__photo picture { display: block; width: 100%; height: 100%; }
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(45%) contrast(0.97) brightness(0.98);
  transition: filter 0.5s var(--ease);
}
.team__photo:hover img { filter: grayscale(0%) contrast(1) brightness(1); }
.team__photo figcaption {
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--paper);
  padding: 10px 18px;
  font-size: 0.95rem;
}

.team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  gap: 56px;
}

.team__portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--sage);
}

.team__initial {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--moss-deep);
}

.team__sprig { width: 24px; height: 12px; opacity: 0.7; }

.team__member h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 2px;
}

.team__role {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 10px;
}

.team__note {
  color: var(--ink-soft);
  font-size: 0.92rem;
  max-width: 40ch;
}

/* =========================================================
   MENU
   ========================================================= */
.menu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 64px;
}

.menu-cat {
  position: relative;
  z-index: 0;
  padding-bottom: 32px;
}

.menu-cat::before {
  content: "";
  position: absolute;
  inset: 0 -22px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.35s var(--ease);
}

.menu-cat:hover::before { opacity: 1; }

.menu-cat__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.menu-cat__icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  color: var(--sage);
  transition: color 0.35s var(--ease), transform 0.35s var(--ease);
}

.menu-cat:hover .menu-cat__icon {
  color: var(--rust);
  transform: scale(1.1) rotate(-5deg);
}

.menu-cat__title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--moss-deep);
}

.menu-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 4px;
  font-family: var(--font-display);
  border-bottom: 1px dashed var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.menu-list li:hover {
  background: var(--paper);
  padding-left: 10px;
}

.menu-list li.menu-list__filler:hover {
  background: none;
  padding-left: 4px;
}

.menu-list__name {
  flex-shrink: 0;
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.003em;
}

.menu-list li::after {
  content: "";
  flex: 1;
  border-bottom: 1px dotted var(--ink-faint);
  transform: translateY(-4px);
  margin: 0 2px;
}

.menu-list__price {
  flex-shrink: 0;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}

.tag {
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 1.05rem;
  color: var(--rust-deep);
  margin-left: 8px;
  white-space: nowrap;
}

/* =========================================================
   TESTIMONIALS (inside menu section)
   ========================================================= */
.testimonials {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--line-soft);
}

.testimonials__label {
  margin-bottom: 24px;
}

.testimonials__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonials__item {
  border-left: 2px solid var(--line);
  padding-left: 18px;
}

.testimonials__item p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 10px;
}

.testimonials__item cite {
  font-style: normal;
  font-size: 0.85rem;
  color: var(--ink-faint);
}

/* =========================================================
   RIDGE DIVIDER
   ========================================================= */
.ridge {
  color: var(--sage);
  opacity: 0.3;
  line-height: 0;
}
.ridge svg { width: 100%; height: 56px; }

/* =========================================================
   ATMOSPHERE / GALLERY
   ========================================================= */
.atmosphere { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: start;
  gap: 18px;
}

.gallery__item picture { display: block; width: 100%; height: 100%; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(55%) contrast(0.96) brightness(0.98);
  transition: filter 0.6s var(--ease), transform 0.6s var(--ease);
}
.gallery__item:hover img {
  filter: grayscale(0%) contrast(1) brightness(1);
  transform: scale(1.07);
}

.gallery__item .art-block::before,
.gallery__item .art-block::after { border-color: var(--sage); }

.gallery__item--big { grid-column: 1 / -1; }
.gallery__item--big img { aspect-ratio: 16 / 6.5; }

.gallery__item--small { grid-column: span 6; }
.gallery__item--small img { aspect-ratio: 6 / 5; }

.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: 21 / 6.5; }

.gallery__item figcaption {
  left: 0;
  right: 0;
  bottom: 0;
  padding: 44px 22px 16px;
  background: linear-gradient(0deg, rgba(23, 39, 32, 0.78) 0%, rgba(23, 39, 32, 0) 100%);
  color: var(--paper);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.gallery__item:hover figcaption { opacity: 1; transform: translateY(0); }

/* =========================================================
   VISIT
   ========================================================= */
.visit__grid {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 64px;
  align-items: start;
}

.hours { margin: 20px 0 16px; width: 100%; max-width: 340px; }
.hours th, .hours td {
  text-align: left;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 400;
}
.hours th {
  font-family: var(--font-display);
  color: var(--ink);
  width: 40%;
}
.hours td { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.visit__note { margin-bottom: 22px; }

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact-list li {
  display: flex;
  gap: 18px;
  font-size: 0.95rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.contact-list li span {
  width: 90px;
  flex-shrink: 0;
  color: var(--ink-faint);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-top: 2px;
}
.contact-list a {
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.contact-list a:hover { border-color: var(--rust); color: var(--rust-deep); }

a.contact-list__action {
  color: var(--rust-deep);
  border-bottom: 1px solid var(--contour);
}
a.contact-list__action:hover { border-color: var(--rust); }

.social-links { display: flex; align-items: center; gap: 16px; }
a.social-links__item {
  display: flex;
  border-bottom: none;
  color: var(--ink-faint);
  transition: color 0.3s var(--ease), transform 0.3s var(--ease);
}
.social-links__item svg { width: 22px; height: 22px; }
a.social-links__item:hover { color: var(--rust-deep); transform: translateY(-2px); }

.visit__cta { margin-top: 28px; }

.visit__map { position: relative; aspect-ratio: 400 / 460; }
.visit__map picture { width: 100%; height: 100%; }
.visit__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(35%) contrast(0.97) brightness(0.96);
  transition: filter 0.5s var(--ease);
}
.visit__map:hover img { filter: grayscale(0%) contrast(1) brightness(1); }

.visit__pin {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 40px;
  height: 46px;
  color: var(--rust);
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
}
.visit__pin svg { width: 100%; height: 100%; }
.visit__pin:hover { transform: translateY(-3px); background: var(--rust); color: var(--ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: var(--bg);
  padding: 40px 0;
}

.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23496b5d' stroke-width='1'%3E%3Cpath d='M20 96V26M20 40l-14 9M20 40l14 9M20 58l-16 10M20 58l16 10M20 76l-12 9M20 76l12 9'/%3E%3Cpath d='M90 100V38M90 50l-12 8M90 50l12 8M90 66l-14 9M90 66l14 9M90 82l-10 8M90 82l10 8'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
  background-position: 0 bottom;
}

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.footer .brand__mark { color: var(--rust); }
.footer .brand__sub { color: #ddc29d; }

.footer__nav { display: flex; flex-wrap: wrap; row-gap: 10px; gap: 28px; }
.footer__nav a {
  white-space: nowrap;
  font-size: 0.88rem;
  color: #e8dac4;
  transition: color 0.3s var(--ease);
}
.footer__nav a:hover { color: var(--paper); }

.footer__copy {
  width: 100%;
  font-size: 0.78rem;
  color: #85998d;
  border-top: 1px solid #264940;
  padding-top: 24px;
  margin-top: 8px;
}

/* =========================================================
   FORM FIELDS
   ========================================================= */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }

.field label {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.field input,
.field select,
.field textarea {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.25s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23c69a5b' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

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

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

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

[data-field-group] { display: none; }
.modal[data-mode="booking"] .field[data-field-group="booking"] { display: flex; }
.modal[data-mode="booking"] .field-row[data-field-group="booking"] { display: grid; }
.modal[data-mode="order"] .field[data-field-group="order"] { display: flex; }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}

.modal.is-open {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0s;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(23, 39, 32, 0.6);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 40px;
  transform: translateY(16px);
  transition: transform 0.35s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0); }

.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-soft);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.modal__close svg { width: 16px; height: 16px; }
.modal__close:hover { color: var(--rust-deep); transform: rotate(90deg); }

.modal__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  margin: 4px 0 22px;
  color: var(--ink);
}

.modal__submit { width: 100%; justify-content: center; margin-top: 8px; }

.modal__hint {
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  text-align: center;
}

.modal__panel--map { max-width: 640px; padding: 40px 40px 0; }

.modal__map {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0 -40px;
}
.modal__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .about__grid,
  .visit__grid,
  .team__layout { grid-template-columns: 1fr; gap: 44px; }
  .about__col--art { order: -1; }
  .team__photo { aspect-ratio: 16 / 9; }
  .art-block--tall { aspect-ratio: 320 / 260; }
  .art-block--tall svg { aspect-ratio: 320 / 260; }
  .menu-grid { grid-template-columns: 1fr; gap: 0; }
  .visit__map { aspect-ratio: 400 / 240; }
  .testimonials__row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    top: 82px;
    width: min(78vw, 320px);
    height: calc(100vh - 82px);
    background: var(--paper);
    border-left: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 40px 30px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease);
  }
  .menu-toggle:checked ~ .nav { transform: translateX(0); }

  .nav__cta {
    align-self: stretch;
    text-align: center;
    margin-top: 4px;
    padding: 14px 18px;
  }

  .burger { display: flex; }
  .menu-toggle:checked ~ .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .menu-toggle:checked ~ .burger span:nth-child(2) { opacity: 0; }
  .menu-toggle:checked ~ .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 22px; }

  .hero__row { flex-direction: column; align-items: flex-start; gap: 20px; }

  .gallery__item--small { grid-column: 1 / -1; }
  .gallery__item--big img,
  .gallery__item--wide img { aspect-ratio: 3 / 2.2; }

  .scroll-cue { display: none; }

  .team__grid { grid-template-columns: 1fr; gap: 36px; }
  .testimonials__row { grid-template-columns: 1fr; gap: 24px; }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
