/**
 * Culture page cinematic shell.
 * Page-specific styles are split across shell, content, and responsive files.
 */

body.culture-page {
  overflow-x: hidden;
  background: #fff8ed;
  color: #17130f;
}

.culture-page :focus-visible {
  outline: 3px solid rgba(216, 184, 97, 0.74);
  outline-offset: 4px;
}

.culture-hero {
  position: relative;
  min-height: 92svh;
  margin-top: calc(-1 * var(--header-height));
  padding: calc(var(--header-height) + 5rem) 4.5rem 5rem;
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  color: #fff8ed;
  background: #050403;
}

.culture-hero::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
  border-top: 4rem solid rgba(5, 4, 3, 0.93);
  border-bottom: 4rem solid rgba(5, 4, 3, 0.93);
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 237, 0.09),
    inset 0 -1px 0 rgba(255, 248, 237, 0.09);
}

.culture-hero-media,
.culture-hero-scrim {
  position: absolute;
  inset: 0;
}

.culture-hero-media {
  z-index: -3;
  background-image: var(--culture-hero-image, linear-gradient(135deg, #062d27, #7a282c));
  background-size: cover;
  background-position: center 42%;
  filter: saturate(0.92) contrast(1.05);
  transform: scale(1.035);
  animation: cultureHeroDrift 20s ease-in-out infinite alternate;
}

.culture-hero-scrim {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 4, 3, 0.86), rgba(5, 4, 3, 0.24) 48%, rgba(6, 45, 39, 0.82)),
    linear-gradient(180deg, rgba(5, 4, 3, 0.12), rgba(5, 4, 3, 0.84)),
    radial-gradient(circle at 78% 20%, rgba(122, 40, 44, 0.28), transparent 34%);
}

.culture-hero-inner {
  position: relative;
  z-index: 8;
  width: min(100%, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 25rem);
  align-items: end;
  gap: 3rem;
}

.culture-hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 68rem;
}

.culture-kicker,
.culture-section-kicker,
.culture-panel-kicker,
.culture-guide-label,
.tradition-origin,
.phrase-card-top p,
.etiquette-index {
  margin: 0;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.culture-kicker,
.culture-panel-kicker,
.culture-section-kicker,
.culture-guide-label,
.tradition-origin {
  color: #d8b861;
}

.culture-hero-title {
  width: min(100%, 12ch);
  margin: 0;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 6.25rem;
  font-weight: 500;
  line-height: 0.9;
  text-wrap: balance;
  text-shadow: 0 28px 90px rgba(0, 0, 0, 0.72);
}

.culture-hero-subtitle {
  width: min(45rem, 100%);
  margin: 0;
  color: rgba(255, 248, 237, 0.8);
  font-family: var(--font-display);
  font-size: 1.42rem;
  line-height: 1.35;
}

.culture-hero-actions,
.culture-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
}

.culture-hero-actions {
  margin-top: 0.45rem;
}

.culture-hero-panel {
  padding: 1.25rem;
  border: 1px solid rgba(216, 184, 97, 0.36);
  border-radius: 8px;
  background: rgba(6, 45, 39, 0.72);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px) saturate(1.12);
  -webkit-backdrop-filter: blur(20px) saturate(1.12);
}

.culture-panel-title {
  margin: 0.45rem 0 1rem;
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 1.58rem;
  font-weight: 500;
  line-height: 1.08;
}

.culture-panel-nav {
  display: grid;
  gap: 0.65rem;
}

.culture-panel-nav a {
  display: grid;
  grid-template-columns: 2.25rem 1fr;
  gap: 0.8rem;
  min-height: 4.5rem;
  padding: 0.8rem;
  border: 1px solid rgba(255, 248, 237, 0.14);
  border-radius: 8px;
  color: #fff8ed;
  text-decoration: none;
  background: rgba(255, 248, 237, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.culture-panel-nav a:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 184, 97, 0.58);
  background: rgba(216, 184, 97, 0.13);
}

.culture-panel-nav span {
  grid-row: 1 / span 2;
  color: #d8b861;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.2;
}

.culture-panel-nav strong,
.culture-panel-nav small {
  grid-column: 2;
  display: block;
}

.culture-panel-nav strong {
  color: #fff8ed;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.18;
}

.culture-panel-nav small {
  margin-top: 0.25rem;
  color: rgba(255, 248, 237, 0.68);
  font-family: var(--font-primary);
  font-size: 0.88rem;
  line-height: 1.35;
}

.culture-hero-scroll {
  position: absolute;
  z-index: 8;
  right: 4.5rem;
  bottom: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 248, 237, 0.74);
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
}

.culture-hero-scroll svg {
  width: 1.1rem;
  height: 1.1rem;
  color: #d8b861;
  animation: cultureScrollCue 1.8s ease-in-out infinite;
}

.culture-main {
  position: relative;
  background:
    linear-gradient(180deg, #fff8ed 0%, #f7ebd8 44%, #fff8ed 100%);
}

.culture-container {
  width: min(100% - 3rem, 1180px);
  margin: 0 auto;
}

.culture-section {
  padding: 6.5rem 0;
}

.culture-opening {
  padding-top: 7.5rem;
}

.culture-section-header {
  display: grid;
  gap: 0.8rem;
  max-width: 50rem;
  margin-bottom: 2.4rem;
}

.culture-section-header:not(.culture-section-header-light) {
  color: #17130f;
}

.culture-section-header-light {
  color: #fff8ed;
}

.culture-section-title {
  margin: 0;
  color: inherit;
  font-family: var(--font-display);
  font-size: 3.45rem;
  font-weight: 500;
  line-height: 0.98;
  text-wrap: balance;
}

.culture-section-subtitle {
  margin: 0;
  color: rgba(23, 19, 15, 0.72);
  font-family: var(--font-primary);
  font-size: 1.1rem;
  line-height: 1.68;
}

.culture-section-header-light .culture-section-subtitle {
  color: rgba(255, 248, 237, 0.74);
}

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

.culture-enhanced .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.culture-enhanced .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes cultureHeroDrift {
  from {
    transform: scale(1.035) translate3d(-0.6%, -0.4%, 0);
  }

  to {
    transform: scale(1.075) translate3d(0.8%, 0.6%, 0);
  }
}

@keyframes cultureScrollCue {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(5px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .culture-hero-media,
  .culture-hero-scroll svg,
  .culture-enhanced .reveal {
    animation: none;
    transition: none;
  }
}
