@font-face {
  font-family: Pretendard;
  src: url("./assets/pretendard.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  font-family: Pretendard, "Malgun Gothic", sans-serif;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body, h1, h2, h3, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

body {
  --bg: #16100f;
  --surface: #211816;
  --panel: #2b1f1a;
  --ink: #fff4e7;
  --muted: #d0beb3;
  --line: #645047;
  --accent: #efc883;
  --accent-ink: #251912;
  --header: #16100ff7;
  --radius: 0.4rem;
  color-scheme: dark;
  color: var(--ink);
  background: var(--bg);
}

[data-theme="wine"] {
  --bg: #fbf1ee;
  --surface: #fff8f5;
  --panel: #f2dddf;
  --ink: #371f2a;
  --muted: #654b54;
  --line: #c7aab1;
  --accent: #812d4c;
  --accent-ink: #fff8f5;
  --header: #fbf1eef7;
  --radius: 1.1rem;
  color-scheme: light;
}

[data-theme="jade"] {
  --bg: #0d201c;
  --surface: #152b25;
  --panel: #1c362c;
  --ink: #f3f6eb;
  --muted: #bfd2c6;
  --line: #587367;
  --accent: #b3ddc1;
  --accent-ink: #12271e;
  --header: #0d201cf7;
  --radius: 0 1.5rem 0 1.5rem;
}

a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.shell { width: min(100% - 6rem, 76rem); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7.1vw, 7rem); }
main section { scroll-margin-top: 6.25rem; }
.skip-link {
  position: fixed; z-index: 20; inset: 0.5rem auto auto 0.5rem; transform: translateY(-150%);
  padding: 0.75rem 1rem; color: var(--accent-ink); background: var(--accent);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  z-index: 8;
  top: 0;
  background: var(--header);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.header-inner {
  position: relative; display: grid; grid-template-columns: 1fr auto auto;
  min-height: 4.85rem; align-items: center; gap: clamp(1rem, 3vw, 2.6rem);
}
[data-theme="wine"] .header-inner { grid-template-columns: 1fr auto 1fr; }
[data-theme="jade"] .header-inner { min-height: 5.15rem; }
.brand { display: flex; align-items: center; gap: 0.65rem; width: max-content; font-weight: 760; font-size: 1.12rem; }
.brand-mark {
  display: grid; width: 2.15rem; aspect-ratio: 1; place-items: center;
  color: var(--accent); border: 1px solid currentColor; border-radius: var(--radius);
  font-family: Georgia, serif; font-size: 1.18rem; line-height: 1;
}
[data-theme="wine"] .brand-mark { border-radius: 50%; }
.site-nav { display: flex; align-items: center; gap: clamp(1rem, 2.3vw, 2.1rem); }
.site-nav a { color: var(--muted); font-weight: 650; padding: 0.65rem 0; white-space: nowrap; }
.site-nav a:hover, .site-nav a:focus-visible, .site-nav a[aria-current] { color: var(--accent); }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; text-underline-offset: 0.35rem; }
.header-contact { justify-self: end; }
.menu-toggle { display: none; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem;
  min-height: 3.25rem; padding: 0.67rem 1.35rem; border-radius: var(--radius);
  border: 1px solid transparent; font-size: 0.98rem; line-height: 1.3; font-weight: 740;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.button-primary { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover { background: color-mix(in srgb, var(--accent) 83%, var(--accent-ink)); }
.button-secondary { color: var(--ink); background: var(--surface); border-color: var(--line); }
.button-secondary:hover, .button-small:hover { border-color: var(--accent); }
.button-small { color: var(--accent); min-height: 2.65rem; padding: 0.65rem 0.95rem; border-color: var(--line); }
[data-theme="wine"] .button { border-radius: 99rem; }

.hero { isolation: isolate; position: relative; }
.hero-stage { position: relative; display: grid; }
.hero-art { position: relative; min-width: 0; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption, .room-photo figcaption {
  position: absolute; z-index: 1; inset: auto 0.8rem 0.8rem auto;
  padding: 0.2rem 0.55rem; color: #fff9f4; background: #221611e8;
  border-radius: 0.25rem; font-size: 0.78rem;
}
.hero-inner { display: grid; align-items: center; min-width: 0; }
.hero-copy { position: relative; min-width: 0; }
.hero-label { color: var(--accent); font-weight: 740; letter-spacing: 0.045em; }
h1 {
  margin-top: 0.65rem; font-size: clamp(3.3rem, 6vw, 6.2rem);
  font-weight: 760; letter-spacing: -0.08em; line-height: 1.08;
}
h1 span { display: block; }
.hero-tagline { font-size: clamp(1.28rem, 2.6vw, 2.3rem); letter-spacing: -0.058em; font-weight: 680; margin-top: 1.1rem; }
.hero-description { max-width: 28rem; color: var(--muted); margin-top: 1rem; font-size: 1.06rem; text-wrap: pretty; }
.hero .button-row { margin-top: 2rem; }

[data-theme="gold"] .hero-stage { min-height: clamp(35rem, 74svh, 49rem); border-bottom: 1px solid var(--line); }
[data-theme="gold"] .hero-art { position: absolute; inset: 0; z-index: -1; }
[data-theme="gold"] .hero-art img { object-position: 65% 16%; }
[data-theme="gold"] .hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, #17100f 0%, #17100feb 24%, #17100f76 53%, transparent 78%),
    linear-gradient(0deg, #17100f78, transparent 31%);
}
[data-theme="gold"] .hero-inner { width: min(100% - 6rem, 76rem); margin-inline: auto; }
[data-theme="gold"] .hero-copy { max-width: 40rem; padding-block: 5rem; }
[data-theme="gold"] h1 { font-family: "Batang", Georgia, Pretendard, serif; font-weight: 700; }

[data-theme="wine"] .hero {
  width: min(100% - 6rem, 82rem); margin: clamp(1.7rem, 3.3vw, 3rem) auto 0;
}
[data-theme="wine"] .hero-stage {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: clamp(32rem, 63svh, 42rem); background: var(--surface);
  border: 1px solid var(--line); border-radius: 1.6rem 9rem 1.6rem 1.6rem; overflow: hidden;
}
[data-theme="wine"] .hero-art { grid-column: 2; grid-row: 1; }
[data-theme="wine"] .hero-art img { position: absolute; object-position: 50% 11%; }
[data-theme="wine"] .hero-inner { grid-column: 1; grid-row: 1; padding: clamp(1.7rem, 5.4vw, 5rem); }
[data-theme="wine"] .hero-copy, [data-theme="jade"] .hero-copy { container-type: inline-size; }
[data-theme="wine"] h1 { color: var(--ink); font-family: "Batang", Pretendard, serif; font-size: clamp(2.15rem, 17cqi, 5.3rem); }

[data-theme="jade"] .hero { width: min(100% - 6rem, 83rem); margin: 2rem auto 0; }
[data-theme="jade"] .hero-stage {
  grid-template-columns: minmax(0, 1.17fr) minmax(0, 0.83fr);
  min-height: clamp(29rem, 61svh, 40rem); background: var(--surface);
  border: 1px solid var(--line); border-radius: 0 1.8rem 0 1.8rem; overflow: hidden;
}
[data-theme="jade"] .hero-art img { position: absolute; object-position: 48% 44%; }
[data-theme="jade"] .hero-inner {
  padding: clamp(2rem, 4.3vw, 4.8rem);
  background: linear-gradient(132deg, #213d33, var(--surface) 78%);
}
[data-theme="jade"] h1 { font-size: clamp(1.95rem, 14.4cqi, 5rem); letter-spacing: -0.08em; }
[data-theme="jade"] .hero-tagline { font-size: clamp(1.1rem, 2.3vw, 1.9rem); }

.glance { padding-block: clamp(1.8rem, 3.1vw, 2.8rem); }
.gl-wrap { padding: 1.45rem clamp(1rem, 3.4vw, 2.7rem); border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); }
.glance h2 { color: var(--accent); font-size: 1.22rem; letter-spacing: -0.04em; margin-bottom: 0.56rem; }
.glance ol { display: grid; grid-template-columns: minmax(0, 1fr); list-style: none; margin: 0; padding: 0; counter-reset: glance; }
.glance li {
  counter-increment: glance; position: relative; padding: 0.8rem 0 0.8rem 2.3rem;
  border-bottom: 1px solid var(--line); font-size: 1.01rem; line-height: 1.7;
}
.glance li:last-child { border-bottom: 0; }
.glance li::before {
  content: counter(glance, decimal-leading-zero); position: absolute; left: 0; top: 0.94rem;
  color: var(--accent); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.07em;
}
.glance a { font-weight: 760; text-decoration: underline; text-underline-offset: 0.25rem; text-decoration-color: var(--accent); }
.glance a:hover { color: var(--accent); }
[data-theme="wine"] .gl-wrap { background: var(--panel); border: 0; border-inline-start: 0.25rem solid var(--accent); }
[data-theme="jade"] .gl-wrap { border-left: 0.25rem solid var(--accent); }

.section-heading { margin-bottom: 1.7rem; }
.section-heading h2 { font-size: clamp(1.85rem, 4.4vw, 3.65rem); line-height: 1.19; letter-spacing: -0.071em; text-wrap: balance; }
.section-heading p { color: var(--muted); margin-top: 0.75rem; max-width: 48rem; }
.gallery-section { padding-top: clamp(2.2rem, 5vw, 4.85rem); }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 0.9rem; }
.gallery-controls { display: flex; gap: 0.45rem; }
.gallery-controls button {
  display: grid; min-width: 2.75rem; height: 2.75rem; padding: 0;
  place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--accent); font-size: 1.2rem; cursor: pointer;
}
.gallery-controls button:disabled { opacity: 0.5; cursor: default; }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.portrait { position: relative; min-width: 0; overflow: clip; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.portrait a { display: block; }
.portrait a:focus-visible { outline-offset: -3px; }
.portrait img {
  width: 100%; height: auto; aspect-ratio: 6 / 5; object-fit: cover; object-position: 50% 27%;
  transition: filter 200ms;
}
.portrait a:hover img { filter: brightness(1.11); }
.portrait figcaption { padding: 0.85rem 1.15rem; font-weight: 680; }
[data-theme="wine"] .gallery { grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.84fr); align-items: start; gap: clamp(1rem, 4vw, 3.5rem); }
[data-theme="wine"] .portrait { border-radius: 9rem 9rem 1.45rem 1.45rem; }
[data-theme="wine"] .portrait img { aspect-ratio: 5 / 5.8; object-position: 50% 42%; }
[data-theme="wine"] .portrait:nth-child(2) { margin-top: clamp(1.8rem, 6.9vw, 6rem); }
[data-theme="jade"] .gallery { grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); align-items: stretch; }
[data-theme="jade"] .portrait img { aspect-ratio: 1.35; object-position: 50% 33%; }
[data-theme="jade"] .portrait:nth-child(2) img { aspect-ratio: 1.93; }
[data-theme="jade"] .portrait figcaption { padding: 0.65rem 1.15rem; }

.room-section, .faq-section { background: var(--surface); border-block: 1px solid var(--line); }
.room-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.room-photo { position: relative; overflow: hidden; border-radius: var(--radius); }
.room-photo img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; }
.room-details div { padding-block: 0.65rem; border-top: 1px solid var(--line); }
.room-details dt { font-weight: 750; }
.room-details dd { color: var(--muted); }
.room-copy .text-link { margin-top: 0.6rem; }
.text-link {
  display: inline-flex; gap: 0.45rem; align-items: center; color: var(--accent); font-weight: 740;
  padding-block: 0.3rem; text-decoration: underline; text-underline-offset: 0.27rem;
}
[data-theme="wine"] .room-grid { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); }
[data-theme="wine"] .room-photo { grid-column: 2; grid-row: 1; border-radius: 4rem 1rem 4rem 1rem; }
[data-theme="wine"] .room-copy { grid-column: 1; grid-row: 1; }
[data-theme="jade"] .room-photo img { aspect-ratio: 4 / 3; }

.visit-steps { margin: 0; padding: 0; list-style: none; counter-reset: guide; display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 1rem; }
.visit-steps li {
  counter-increment: guide; position: relative; min-width: 0; padding: clamp(1.15rem, 3vw, 2rem);
  border: 1px solid var(--line); border-top: 2px solid var(--accent); background: var(--surface); border-radius: var(--radius);
}
.visit-steps li::before { content: counter(guide, decimal-leading-zero); display: block; color: var(--accent); font-weight: 800; margin-bottom: 0.4rem; }
.visit-steps h3, .notes-grid h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.05em; }
.visit-steps p, .notes-grid article > p { margin-top: 0.65rem; color: var(--muted); }
[data-theme="gold"] .visit-steps { grid-template-columns: minmax(0, 1fr); }
[data-theme="gold"] .visit-steps li { padding-left: 4.3rem; }
[data-theme="gold"] .visit-steps li::before { position: absolute; left: 1.55rem; top: 1.48rem; }
[data-theme="wine"] .visit-steps li { border: 0; background: var(--panel); }
[data-theme="jade"] .visit-steps li { background: transparent; }

.notes-section { background: var(--panel); border-block: 1px solid var(--line); }
.notes-grid { display: grid; grid-template-columns: repeat(3,minmax(0, 1fr)); gap: 1rem; }
.notes-grid article { padding: clamp(1.25rem, 2.45vw, 2rem); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.notes-grid article .section-summary {
  color: var(--ink); margin-top: 1rem; padding: 0.72rem 0.85rem;
  border-inline-start: 0.2rem solid var(--accent); border-radius: 0.25rem; background: var(--bg);
}
.section-summary strong { display: block; color: var(--accent); font-size: 0.82rem; padding-bottom: 0.16rem; }
[data-theme="wine"] .notes-grid article { background: var(--bg); border: 0; }
[data-theme="wine"] .notes-grid article .section-summary { background: var(--surface); }
[data-theme="jade"] .notes-grid { grid-template-columns: minmax(0, 1fr); }
[data-theme="jade"] .notes-grid article { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); column-gap: 1.4rem; }
[data-theme="jade"] .notes-grid h3, [data-theme="jade"] .notes-grid article > p { grid-column: 1; }
[data-theme="jade"] .notes-grid article .section-summary { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }

.faq-layout { display: grid; grid-template-columns: minmax(0, 0.68fr) minmax(0, 1.32fr); gap: 2.4rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 0.7rem;
  padding-block: 1.0rem; font-weight: 740; line-height: 1.5; list-style: none; cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); padding: 0 1.1rem 1rem 0; max-width: 45rem; }
[data-theme="wine"] .faq-layout { grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 61rem; }

.contact-panel {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 1.9rem; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.45rem, 4.4vw, 3.55rem);
}
.contact-panel .section-heading { margin-bottom: 0.9rem; }
.contact-panel address { font-style: normal; font-weight: 680; }
.contact-actions { justify-self: end; max-width: 100%; }
.contact-actions > p { color: var(--muted); }
.phone {
  display: inline-block; margin: 0.14rem 0 0.85rem; color: var(--ink);
  font-size: clamp(1.65rem, 4vw, 3.2rem); line-height: 1.15; letter-spacing: -0.04em; font-weight: 790; white-space: nowrap;
}
.phone:hover { color: var(--accent); }
[data-theme="jade"] .contact-panel { border-inline-start: 0.3rem solid var(--accent); }
[data-theme="jade"] .contact-section { padding-top: 0; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.4rem; }
.footer-inner p, .footer-inner > a:last-child { color: var(--muted); font-size: 0.9rem; }
.mobile-contact { display: none; }

@media (max-width: 1000px) {
  .shell, [data-theme="gold"] .hero-inner, [data-theme="wine"] .hero, [data-theme="jade"] .hero { width: min(100% - 3rem, 76rem); }
  [data-theme="wine"] .hero-stage { border-top-right-radius: 5.5rem; }
  [data-theme="jade"] .hero-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); }
  .notes-grid { gap: 0.75rem; }
}

@media (max-width: 760px) {
  :root { scroll-padding-block-end: 5rem; }
  .shell, [data-theme="gold"] .hero-inner { width: min(100% - 2.15rem, 42rem); }
  main section { scroll-margin-top: 5.1rem; }
  .section { padding-block: 3.3rem; }
  .header-inner, [data-theme="wine"] .header-inner, [data-theme="jade"] .header-inner {
    grid-template-columns: 1fr auto; min-height: 4.2rem; gap: 0.45rem 0.75rem;
  }
  .header-contact { display: none; }
  .menu-toggle {
    display: block; min-height: 2.75rem; padding: 0.45rem 0.85rem; background: var(--surface);
    color: var(--accent); border: 1px solid var(--line); border-radius: 0.42rem; cursor: pointer;
  }
  .site-nav { grid-column: 1 / -1; flex-wrap: wrap; gap: 0.15rem 1rem; padding-bottom: 0.5rem; }
  .menu-ready .site-nav {
    position: absolute; inset: calc(100% - 0.08rem) 0 auto; display: none; gap: 0.2rem 1rem;
    padding: 0.65rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 0.5rem;
  }
  .menu-ready .site-nav[data-open] { display: flex; }
  [data-theme="gold"] .hero-stage { min-height: max(35rem, 75svh); }
  [data-theme="gold"] .hero-inner { align-items: end; }
  [data-theme="gold"] .hero-art img { object-position: 79% 32%; }
  [data-theme="gold"] .hero-art::after {
    background: linear-gradient(0deg, #17100f 0%, #17100fe9 23%, #17100f9c 50%, #17100f08 76%);
  }
  [data-theme="gold"] .hero-art figcaption { inset: 0.75rem 0.8rem auto auto; }
  [data-theme="gold"] .hero-copy { max-width: 33rem; padding: 14rem 0 2.35rem; }
  [data-theme="gold"] h1 { font-size: clamp(2.9rem, 11vw, 4.75rem); }
  [data-theme="wine"] .hero, [data-theme="jade"] .hero { width: min(100% - 2.15rem, 42rem); margin: 1.1rem auto 0; }
  [data-theme="wine"] .hero-stage, [data-theme="jade"] .hero-stage {
    grid-template-columns: minmax(0, 1fr); min-height: 0;
  }
  [data-theme="wine"] .hero-stage { border-radius: 1rem 4.5rem 1rem 1rem; }
  [data-theme="wine"] .hero-art, [data-theme="jade"] .hero-art { grid-column: 1; grid-row: 1; }
  [data-theme="wine"] .hero-art { height: clamp(14rem, 74vw, 23rem); }
  [data-theme="jade"] .hero-art { height: clamp(12.7rem, 62vw, 22rem); }
  [data-theme="wine"] .hero-inner, [data-theme="jade"] .hero-inner { grid-column: 1; grid-row: 2; padding: 1.45rem 1.25rem 1.7rem; }
  [data-theme="wine"] h1 { font-size: clamp(2.15rem, 16cqi, 4.35rem); }
  [data-theme="jade"] h1 { font-size: clamp(1.9rem, 14.4cqi, 4.25rem); }
  .hero-description { font-size: 1rem; }
  .hero .button-row { margin-top: 1.35rem; }
  .hero .button { min-height: 2.9rem; padding-inline: 0.9rem; }
  .gallery-section { padding-top: 1.65rem; }
  .glance li { font-size: 0.95rem; padding-left: 1.8rem; }
  .gallery-heading { align-items: start; }
  .gallery-controls { align-self: end; }
  [data-theme="gold"] .gallery, [data-theme="jade"] .gallery {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(82%, 23rem);
    gap: 0.8rem; overflow-x: auto; overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory; scrollbar-color: var(--line) var(--bg); padding-bottom: 0.7rem;
  }
  [data-theme="gold"] .portrait, [data-theme="jade"] .portrait { scroll-snap-align: start; }
  [data-theme="jade"] .portrait img, [data-theme="jade"] .portrait:nth-child(2) img { aspect-ratio: 5 / 5.6; }
  [data-theme="wine"] .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0.65rem; }
  [data-theme="wine"] .portrait { border-radius: 3.5rem 3.5rem 0.7rem 0.7rem; }
  [data-theme="wine"] .portrait figcaption { font-size: 0.9rem; padding: 0.65rem; }
  .room-grid, [data-theme="wine"] .room-grid, .visit-steps, .notes-grid, .faq-layout, .contact-panel {
    grid-template-columns: minmax(0,1fr); gap: 1.25rem;
  }
  [data-theme="wine"] .room-photo, [data-theme="wine"] .room-copy { grid-column: auto; grid-row: auto; }
  [data-theme="jade"] .notes-grid article { display: block; }
  [data-theme="jade"] .notes-grid article .section-summary { margin-top: 1rem; }
  .contact-actions { justify-self: start; }
  .contact-actions .button { min-height: 2.85rem; padding-inline: 0.95rem; }
  .site-footer { padding-bottom: calc(4.3rem + env(safe-area-inset-bottom)); }
  .mobile-contact {
    display: grid; position: fixed; z-index: 7; inset: auto 0 0;
    grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0.55rem;
    padding: 0.52rem 0.85rem calc(0.52rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line); background: var(--header);
  }
  .mobile-contact a {
    display: grid; place-items: center; min-height: 2.75rem; border-radius: 0.36rem;
    border: 1px solid var(--line); color: var(--ink); font-weight: 760;
  }
  .mobile-contact a:first-child { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
}

@media (max-width: 360px) {
  .hero .button-row { gap: 0.49rem; }
  .hero .button { padding-inline: 0.72rem; font-size: 0.91rem; }
  .gallery-controls { gap: 0.22rem; }
  .gallery-controls button { min-width: 2.48rem; height: 2.48rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
