/* ============================================================
   VALUES — interactive mandala of values (IV)
   ============================================================ */
.values {
  background: var(--prussian-deep);
  color: var(--parchment);
  padding: 80px 48px;
  position: relative;
  overflow-x: clip;
}
.values::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 35% 40%, rgba(28, 58, 95, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%, rgba(184, 150, 58, 0.07) 0%, transparent 40%);
  pointer-events: none;
}
.values-inner {
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}
.values .section-head {
  border-color: rgba(184, 150, 58, 0.18);
  margin-bottom: 24px;
}
.values .section-head::after { background: var(--antique-gold); }
.values .section-numeral { color: var(--burnished-gold); }
.values .section-label { color: rgba(250, 247, 242, 0.55); }

.values-brand {
  margin: 0 0 18px;
}
.values-wordmark {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--parchment);
}
.values-wordmark em {
  font-style: italic;
  color: var(--antique-gold);
}
.values-motto {
  font-family: var(--body);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--burnished-gold);
  margin-top: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(184, 150, 58, 0.35);
  display: inline-block;
}

.values-headline {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(20px, 2.4vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--parchment);
  max-width: 780px;
  margin: 0 0 36px;
}
.values-headline em {
  font-style: italic;
  color: var(--burnished-gold);
}

.values-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(240px, 0.75fr);
  gap: 40px 56px;
  align-items: center;
}

/* —— Compass —— */
.values-compass-wrap {
  width: 100%;
  max-width: 720px;
  padding: 40px 72px 12px;
  position: relative;
  justify-self: center;
}
.values-compass {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1;
  margin: 0 auto;
}
.values-rings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.values-rings circle {
  fill: none;
  stroke: rgba(28, 58, 95, 0.55);
  stroke-width: 0.5;
}
.values-rings .ring-outer {
  stroke: rgba(184, 150, 58, 0.18);
  stroke-dasharray: 1 3;
}

/* Logo sized to inner ring — slight oversize so gold edges meet the stroke */
.values-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 51%;
  height: 51%;
  display: grid;
  place-items: center;
  z-index: 2;
  pointer-events: none;
}
.values-center-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(184, 150, 58, 0.12);
  filter: blur(18px);
}
.values-lotus {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  transform-origin: 50% 50%;
  filter: drop-shadow(0 0 28px rgba(184, 150, 58, 0.28));
  transition: transform 2.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

/* —— Tab buttons —— */
.values-tab {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 108px;
  min-height: 38px;
  padding: 8px 10px;
  background: var(--prussian);
  border: 1px solid rgba(184, 150, 58, 0.25);
  border-radius: 0;
  color: rgba(250, 247, 242, 0.72);
  cursor: pointer;
  transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, color 0.3s;
}
.values-tab:hover {
  background: var(--admiralty);
  border-color: var(--burnished-gold);
  color: var(--parchment);
}
.values-tab:hover .values-tab-icon {
  color: var(--burnished-gold);
  transform: scale(1.08);
}
.values-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px var(--prussian-deep), 0 0 0 3px var(--burnished-gold);
}
.values-tab.is-active {
  background: var(--admiralty);
  border-color: var(--burnished-gold);
  box-shadow: 0 0 18px rgba(184, 150, 58, 0.28);
  color: var(--parchment);
}
.values-tab.is-active .values-tab-icon {
  color: var(--burnished-gold);
}

.values-tab-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  color: rgba(250, 247, 242, 0.45);
  transition: color 0.3s, transform 0.3s;
}
.values-tab-label {
  font-family: var(--button);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

/* Desktop orbit — pulled out so side labels clear the ring */
.values-tab[data-tab="1"] { top: -2%; left: 50%; transform: translateX(-50%); }
.values-tab[data-tab="2"] { top: 15%; right: -8%; }
.values-tab[data-tab="3"] { top: 50%; right: -14%; transform: translateY(-50%); }
.values-tab[data-tab="4"] { bottom: 15%; right: -8%; }
.values-tab[data-tab="5"] { bottom: -2%; left: 50%; transform: translateX(-50%); }
.values-tab[data-tab="6"] { bottom: 15%; left: -8%; }
.values-tab[data-tab="7"] { top: 50%; left: -12%; transform: translateY(-50%); }
.values-tab[data-tab="8"] { top: 15%; left: -8%; }

.values-caption {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid rgba(184, 150, 58, 0.15);
  text-align: center;
}
.values-caption p {
  font-family: var(--body);
  font-size: 13px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250, 247, 242, 0.55);
  max-width: 420px;
  margin: 0 auto;
}
.values-caption a {
  font-family: var(--button);
  color: var(--burnished-gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(212, 174, 92, 0.35);
  transition: border-color 0.25s, color 0.25s;
}
.values-caption a:hover {
  color: var(--antique-gold);
  border-bottom-color: var(--antique-gold);
}

/* —— Editorial readout —— */
.values-readout {
  position: relative;
  align-self: center;
  padding: 8px 0 8px 28px;
  border-left: 1px solid rgba(184, 150, 58, 0.28);
  max-width: 380px;
}
.values-readout::before {
  content: '';
  position: absolute;
  left: -1px;
  top: 0;
  width: 1px;
  height: 48px;
  background: var(--burnished-gold);
}
.values-panels {
  display: grid;
  position: relative;
  min-height: 220px;
}
.values-panel {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(12px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
  pointer-events: none;
}
.values-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  pointer-events: auto;
}
.values-panel-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.values-panel-index {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
  color: var(--burnished-gold);
  letter-spacing: 0.02em;
  line-height: 1;
}
.values-panel-rule {
  flex: 0 0 28px;
  height: 1px;
  background: rgba(184, 150, 58, 0.45);
}
.values-panel-of {
  font-family: var(--body);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.4);
}
.values-panel h3 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.1;
  color: var(--parchment);
  letter-spacing: -0.01em;
}
.values-panel h3::after {
  content: '';
  display: block;
  width: 40px;
  height: 1px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--antique-gold), transparent);
}
.values-panel p {
  font-family: var(--body);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.68);
  max-width: 34em;
}
.values-readout-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  font-family: var(--button);
  font-size: 13px;
  color: var(--burnished-gold);
  text-decoration: none;
  letter-spacing: 0.02em;
  border-bottom: 1px solid transparent;
  transition: color 0.25s, border-color 0.25s, transform 0.25s;
}
.values-readout-link span {
  transition: transform 0.25s;
}
.values-readout-link:hover {
  color: var(--antique-gold);
  border-bottom-color: rgba(184, 150, 58, 0.45);
}
.values-readout-link:hover span {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .values-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .values-compass-wrap {
    max-width: 620px;
    padding: 28px 48px 0;
    order: 1;
  }
  .values-readout {
    order: 2;
    max-width: none;
    padding: 24px 0 0;
    border-left: none;
    border-top: 1px solid rgba(184, 150, 58, 0.22);
  }
  .values-readout::before {
    left: 0;
    top: -1px;
    width: 48px;
    height: 1px;
  }
  .values-panels {
    min-height: 0;
  }
}

@media (max-width: 768px) {
  .values {
    padding: 64px 14px;
  }
  .values-headline {
    margin-bottom: 24px;
  }

  /*
    Smaller ring + padding around it = tabs sit outside the mandala
    without getting clipped by the screen edge.
  */
  .values-compass-wrap {
    max-width: 100%;
    padding: 40px 72px 36px;
    overflow: visible;
  }
  .values-compass {
    max-width: min(220px, calc(100vw - 200px));
  }
  .values-center {
    width: 51%;
    height: 51%;
  }
  .values-tab {
    box-sizing: border-box;
    width: auto;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    height: auto;
    padding: 8px 6px;
    flex-direction: column;
    gap: 3px;
    overflow: visible;
  }
  .values-tab-icon {
    width: 13px;
    height: 13px;
  }
  .values-tab-label {
    font-family: var(--button);
    font-size: 7px;
    font-weight: 500;
    letter-spacing: 0.03em;
    white-space: nowrap;
    text-align: center;
    line-height: 1.15;
  }

  /* Orbit just outside the ring (r ≈ 58%), tab centers via translate */
  .values-tab[data-tab="1"] {
    top: calc(50% - 58%);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="2"] {
    top: calc(50% - 41%);
    left: calc(50% + 41%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="3"] {
    top: 50%;
    left: calc(50% + 58%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="4"] {
    top: calc(50% + 41%);
    left: calc(50% + 41%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="5"] {
    top: calc(50% + 58%);
    left: 50%;
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="6"] {
    top: calc(50% + 41%);
    left: calc(50% - 41%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="7"] {
    top: 50%;
    left: calc(50% - 58%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }
  .values-tab[data-tab="8"] {
    top: calc(50% - 41%);
    left: calc(50% - 41%);
    right: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
  }

  .values-caption {
    display: none;
  }
  .values-panel h3 {
    font-size: 26px;
  }
  .values-panel p {
    font-size: 14px;
  }
  .values-readout-link {
    margin-top: 20px;
  }
}

@media (max-width: 420px) {
  .values {
    padding: 56px 10px;
  }
  .values-compass-wrap {
    padding: 36px 64px 32px;
  }
  .values-compass {
    max-width: min(190px, calc(100vw - 180px));
  }
  .values-tab {
    padding: 7px 5px;
  }
  .values-tab-label {
    font-size: 6.5px;
    letter-spacing: 0.02em;
  }
}
