:root {
  --bg: #f4efe6;
  --bg-strong: #e7ddcf;
  --surface: rgba(255, 250, 244, 0.75);
  --surface-strong: #fffaf4;
  --text: #1f1b18;
  --muted: #6d645c;
  --line: rgba(31, 27, 24, 0.12);
  --accent: #b84c2a;
  --accent-soft: rgba(184, 76, 42, 0.12);
  --shadow: 0 20px 50px rgba(37, 21, 12, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(184, 76, 42, 0.16), transparent 28%),
    radial-gradient(circle at right, rgba(29, 123, 120, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f2eb 0%, #efe6da 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 75%);
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  padding: 48px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: rgba(255, 248, 241, 0.7);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 20px;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
  color: var(--accent);
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.home-link:hover,
.home-link:focus-visible {
  transform: translateY(-1px);
  background: rgba(184, 76, 42, 0.12);
  border-color: rgba(184, 76, 42, 0.28);
}

.home-link svg {
  width: 18px;
  height: 18px;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 244, 0.72);
}

.lang-button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.lang-button.is-active {
  background: rgba(184, 76, 42, 0.16);
  color: var(--accent);
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0 0 12px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

h1 {
  max-width: 11ch;
  font-size: clamp(3.6rem, 10vw, 7.2rem);
}

.hero-banner {
  display: block;
  width: min(100%, 680px);
  margin: 4px 0 10px;
}

.hero-banner.is-en {
  width: min(100%, 580px);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.lead,
.contact,
.section-heading p,
.card-copy,
.prompt-text,
.sound-hint,
.gallery-card p {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.lead {
  max-width: 100%;
  margin: 28px 0 20px;
}

.contact {
  margin: 0;
}

a {
  color: var(--text);
  text-decoration-color: rgba(184, 76, 42, 0.45);
  text-underline-offset: 0.2em;
}

.gallery-section {
  margin-top: 28px;
  padding: 32px 0 0;
}

.video-section {
  width: min(100%, 860px);
  margin-top: 36px;
  margin-left: auto;
  margin-right: auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: #fff8f1;
  box-shadow: var(--shadow);
  display: grid;
  justify-items: center;
}

.video-copy {
  width: min(100%, 760px);
  margin-bottom: 18px;
}

.video-lead {
  max-width: 720px;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--text);
}

.video-frame {
  width: min(100%, 760px);
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(31, 27, 24, 0.1);
  background: #ffffff;
}

.feature-video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.section-heading {
  margin-bottom: 26px;
}

.section-eyebrow {
  margin-left: 6px;
  color: var(--accent);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gallery-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(255, 250, 244, 0.8);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gallery-card:hover,
.gallery-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(184, 76, 42, 0.35);
  box-shadow: 0 24px 50px rgba(37, 21, 12, 0.18);
}

.gallery-card:focus-visible,
.hotspot:focus-visible,
.ghost-button:focus-visible,
.modal-close:focus-visible {
  outline: 2px solid rgba(184, 76, 42, 0.5);
  outline-offset: 4px;
}

.gallery-visual,
.visual-placeholder {
  position: relative;
  min-height: 280px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.48);
  background-size: cover;
  background-position: center;
}

.gallery-visual::after,
.visual-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 0%, rgba(21, 14, 12, 0.06) 100%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 40%);
}

.sample-modal {
  width: min(1240px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  padding: 0;
  border: 0;
  border-radius: 30px;
  background: transparent;
  overflow: auto;
}

.sample-modal::backdrop {
  background: rgba(21, 14, 12, 0.6);
  backdrop-filter: blur(8px);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.92);
  color: var(--text);
  font-size: 1.6rem;
  cursor: pointer;
}

.modal-panel {
  position: relative;
  margin: 12px auto;
  padding: 26px;
  border-radius: 30px;
  background: rgba(250, 244, 237, 0.98);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.24);
  transform-origin: center top;
}

.sample-modal[open] .modal-panel {
  animation: modal-pop 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.sample-modal[open]::backdrop {
  animation: backdrop-fade 220ms ease;
}

.modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.ghost-button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.modal-content {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 20px;
  align-items: start;
}

.visual-stage {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}

.visual-placeholder {
  min-height: 560px;
}

.hotspot-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hotspot {
  position: absolute;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 250, 244, 0.85);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.12),
    0 0 0 18px rgba(184, 76, 42, 0.08);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hotspot:hover {
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.16),
    0 0 0 24px rgba(184, 76, 42, 0.12);
}

.hotspot.interactive-active {
  background: rgba(255, 242, 230, 0.98);
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.18),
    0 0 0 24px rgba(184, 76, 42, 0.18);
}

.hotspot.interactive-active::before {
  background: #8f3116;
}

.sound-hint {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #1d7b78;
  box-shadow: 0 0 0 8px rgba(29, 123, 120, 0.12);
}

.prompt-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

.prompt-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  height: fit-content;
}

.card-copy {
  margin: 0;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.tag {
  appearance: none;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.94rem;
  border: 1px solid transparent;
  font: inherit;
}

.interactive-chip {
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.interactive-chip:hover,
.interactive-chip.interactive-active {
  background: rgba(184, 76, 42, 0.18);
  border-color: rgba(184, 76, 42, 0.35);
  color: #7b2c17;
  transform: translateY(-1px);
}

.prompt-text {
  appearance: none;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(31, 27, 24, 0.08);
  color: #40352f;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.prompt-text:hover,
.prompt-text.interactive-active {
  background: rgba(184, 76, 42, 0.12);
  border-color: rgba(184, 76, 42, 0.28);
  color: #7b2c17;
  transform: translateY(-1px);
}


@media (max-width: 980px) {
  .section-heading,
  .modal-content {
    grid-template-columns: 1fr;
  }

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

  .visual-placeholder {
    min-height: 420px;
  }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 18px;
    padding-bottom: 32px;
  }

  .hero,
  .modal-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-top {
    flex-direction: column;
    align-items: start;
  }

  .sample-modal {
    width: min(100% - 12px, 100%);
    max-height: calc(100dvh - 12px);
  }

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

  .gallery-visual {
    min-height: 240px;
  }

  .visual-placeholder {
    min-height: 320px;
  }

  .modal-top {
    align-items: start;
    flex-direction: column;
  }
}

@keyframes modal-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes backdrop-fade {
  from {
    background: rgba(21, 14, 12, 0);
  }

  to {
    background: rgba(21, 14, 12, 0.6);
  }
}

@keyframes prompt-pop {
  from {
    opacity: 0.72;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(-1px) scale(1);
  }
}
