/* Placeholder palette (gold + warm accents). Not yet matched to the customer artwork:
   a human has to confirm the colors, see PROGRESS.md. */
:root {
  --bg: #1b1426;
  --bg-soft: #271c37;
  --text: #f6efe3;
  --muted: #c9bfd4;
  --gold: #d9ae4a;
  --red: #d9503f;
  --blue: #3f7fd9;
  --green: #3fae7a;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--gold); }
a:focus-visible, .button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 0; }

.site-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem;
  justify-content: space-between; padding: .75rem 1.25rem;
  border-bottom: 1px solid var(--gold);
}
.brand { font-weight: 700; letter-spacing: .04em; text-decoration: none; color: var(--gold); }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }
.site-header nav a { color: var(--text); text-decoration: none; }
.site-header nav a:hover { color: var(--gold); }
.lang a { color: var(--muted); text-decoration: none; padding: .2rem .5rem; border: 1px solid transparent; border-radius: 999px; }
.lang a[aria-current="true"] { color: var(--bg); background: var(--gold); }

main { max-width: 60rem; margin: 0 auto; padding: 0 1.25rem; }
section { padding: 3rem 0; }
h1, h2, h3 { line-height: 1.2; }
h1 { font-size: clamp(2.25rem, 8vw, 4rem); margin: 0 0 .5rem; color: var(--gold); }
h2 { font-size: 1.75rem; margin: 0 0 1rem; border-bottom: 3px solid var(--red); display: inline-block; padding-bottom: .15rem; }
h3 { font-size: 1.2rem; margin: 0 0 .4rem; }

.stroke { display: block; width: min(80%, 26rem); height: auto; margin: 0 auto; opacity: .9; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 36rem; margin: 0 auto 1.5rem; }
.button {
  display: inline-block; padding: .75rem 1.75rem; border-radius: 999px;
  background: var(--gold); color: #1b1426; font-weight: 700; text-decoration: none;
}
.button:hover { background: #ecc467; }

.cards { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.cards li, .two article { background: var(--bg-soft); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--blue); }
.cards li:nth-child(2) { border-top-color: var(--green); }
.cards li:nth-child(3) { border-top-color: var(--red); }
.two { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.note { color: var(--muted); font-size: .95rem; }

footer { text-align: center; padding: 2rem 1.25rem; border-top: 1px solid var(--bg-soft); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: center; }

.legal { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem; }
.placeholder { background: #5a3a00; color: #ffe9b8; padding: 0 .3rem; border-radius: 4px; }

/* Subtle reveal; content stays visible without JS (class is added by site.js). */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Half-moon figure stage ------------------------------------------------
   Seven figure orbs (yellow disc + cut-out figure) sit on a half circle; the
   detail card nests below/inside the arc. CSS trig + container units keep the
   geometry scaling with the stage width. */
:root { --yellow: #f5c630; --yellow-soft: #ffe27a; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stage { text-align: center; padding-top: 2rem; padding-bottom: 1rem; }
.stage-intro .lead { margin-bottom: 1rem; }
.moon {
  container-type: inline-size; width: min(100%, 46rem); margin: 0 auto; position: relative;
  --size: clamp(3.5rem, 13cqw, 6.5rem);
  --R: calc((100cqw - var(--size)) / 2);
  --step: 30deg; /* 180deg / (7 figures - 1) */
}
.arc { list-style: none; margin: 0; padding: 0; position: relative; height: calc(var(--R) + var(--size) + 1.75rem); }
.arc li {
  --a: calc(180deg - var(--i) * var(--step));
  position: absolute;
  left: calc(50% + var(--R) * cos(var(--a)));
  top: calc(var(--size) / 2 + var(--R) * (1 - sin(var(--a))));
  width: var(--size); transform: translate(-50%, -50%);
}
.orb { position: relative; display: block; text-decoration: none; color: var(--text); }
.orb-disc {
  width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden; display: block;
  background: radial-gradient(circle at 35% 28%, var(--yellow-soft), var(--yellow) 65%);
  border: 3px solid var(--gold); box-shadow: 0 6px 16px rgba(0,0,0,.4);
  transition: transform .35s cubic-bezier(.3,1.4,.5,1), box-shadow .35s ease, border-color .35s ease;
}
.orb-disc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 6%; transform: scale(1.25); transform-origin: 50% 12%; display: block; }
.orb-name { position: absolute; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; top: 100%; left: 50%; translate: -50% .3rem; font-size: .85rem; color: var(--muted); transition: color .3s ease; white-space: nowrap; }
.orb:hover .orb-disc, .orb:focus-visible .orb-disc { transform: translateY(-4px) scale(1.06); border-color: #fff3c4; }
.orb:focus-visible { outline: 3px solid var(--gold); outline-offset: 6px; border-radius: 12px; }
.orb[aria-current="true"] .orb-disc { transform: scale(1.12); border-color: #fff3c4; box-shadow: 0 0 0 4px rgba(217,174,74,.35), 0 8px 22px rgba(0,0,0,.5); }
.orb[aria-current="true"] .orb-name { color: var(--gold); }
.moon-hint { display: none; margin: 0 0 .75rem; color: var(--muted); font-size: .9rem; }

.detail { max-width: 34rem; margin: 0 auto; text-align: left; }
.fig { display: grid; grid-template-columns: 6rem 1fr; gap: 1rem; align-items: center; background: var(--bg-soft); border-radius: var(--radius); padding: 1.25rem; border-top: 4px solid var(--gold); margin-bottom: 1rem; }
.fig img { width: 100%; height: auto; max-height: 12rem; object-fit: contain; }
.fig h3 { color: var(--gold); }
.fig p { margin: 0; color: var(--muted); }
.placeholder-text { font-style: italic; }
/* With JS only the chosen card shows; without JS all cards stay visible. */
.js-tabs .moon-hint { display: block; }
.js-tabs .fig:not(.is-active) { display: none; }
.js-tabs .fig.is-active { animation: fig-in .45s ease both; }
@keyframes fig-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.stage-cta { margin: 1.25rem 0 0; }

/* Wide screens: tuck the hint + card up into the half circle. */
@media (min-width: 40em) {
  .arc { height: calc(var(--R) + var(--size) + 2.25rem); }
  .orb-name { clip-path: none; width: auto; height: auto; overflow: visible; }
  .js-tabs .arc { margin-bottom: calc(var(--R) * -0.5); }
  .detail { max-width: 26rem; }
}

/* Staggered entrance: orbs rise along the arc. */
.js-tabs .arc li { animation: orb-in .6s cubic-bezier(.3,1.3,.5,1) both; animation-delay: calc(var(--i) * 70ms); }
@keyframes orb-in { from { opacity: 0; transform: translate(-50%, -30%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* Social links */
/* Contact tiles: one row of channels (wraps on narrow screens), social links only live here. */
.contact-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.social-icons { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .85rem; }
.soc { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; color: #1b1426; background: radial-gradient(circle at 35% 28%, var(--yellow-soft), var(--yellow) 65%); border: 2px solid var(--gold); transition: transform .3s cubic-bezier(.3,1.4,.5,1), box-shadow .3s ease; }
.soc:hover, .soc:focus-visible { transform: translateY(-3px) scale(1.08); box-shadow: 0 6px 14px rgba(0,0,0,.4); }
.soc svg { width: 1.4rem; height: 1.4rem; }
.tile { display: flex; align-items: center; gap: .85rem; height: 100%; padding: .85rem 1rem; background: var(--bg-soft); border: 1px solid transparent; border-radius: var(--radius); color: var(--text); text-decoration: none; transition: border-color .25s ease, transform .25s ease, background .25s ease; }
a.tile:hover, a.tile:focus-visible { border-color: var(--gold); transform: translateY(-2px); background: #30233f; }
.tile-icon { flex: none; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: radial-gradient(circle at 35% 28%, var(--yellow-soft), var(--yellow) 65%); color: #1b1426; }
.tile-text { display: grid; min-width: 0; line-height: 1.3; }
.tile-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tile-value { overflow-wrap: anywhere; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .js-tabs .arc li, .js-tabs .fig.is-active { animation: none; }
  .orb-disc, .tile, .soc { transition: none; }
}

/* Center orb (e.g. balloon bouquets): sits in the middle of the half circle, between the top
   figure and the detail card. Photo fills the disc instead of the cut-out crop. */
.arc li.is-center {
  --csize: calc(var(--size) * 1.2);
  width: var(--csize); left: 50%; top: calc(var(--size) / 2 + var(--R) * .44);
}
.is-center .orb-disc { width: var(--csize); height: var(--csize); }
.is-center .orb-disc img { transform: none; object-position: 50% 50%; }
@media (max-width: 39.99em) {
  .arc li.is-center { top: calc(var(--size) / 2 + var(--R) * .54); }
}

/* Phones: drop the half circle (too tall) and show the figures as a compact wrapped grid
   above the detail card. Names stay screen-reader only; the card shows the name. */
@media (max-width: 39.99em) {
  .moon { --size: clamp(3rem, 17vw, 3.9rem); }
  .arc { height: auto; display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem .8rem; margin: 0 0 .75rem; padding-top: .35rem; }
  .arc li, .arc li.is-center { position: static; transform: none; width: var(--size); }
  .is-center .orb-disc { width: var(--size); height: var(--size); }
  .js-tabs .arc li { animation-name: orb-in-flat; }
  .moon-hint { margin-bottom: .6rem; }
}
@keyframes orb-in-flat { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .js-tabs .arc li { animation: none; } }
