/* =========================================================
   jack-c.com  —  shared stylesheet
   Theme: sleek modern dark
   Edit the colors below to re-skin the whole site at once.
   ========================================================= */

:root {
  /* the powered-on temple: near-black midnight stone + glowing circuit green */
  --bg:        #0a0f1a;   /* page background (drum dark)      */
  --bg-soft:   #0f1626;   /* cards / panels (powered stone)   */
  --bg-soft-2: #131c30;   /* hover panels                     */
  --line:      #1d2a42;   /* subtle borders                   */
  --text:      #e8f4f1;   /* main text, faint teal cast       */
  --muted:     #94a9ad;   /* secondary text                   */
  --accent:    #4ee7d0;   /* primary accent (circuit teal)    */
  --accent-2:  #35c9a0;   /* secondary accent (deep green)    */
  --accent-3:  #9ff5e0;   /* tertiary accent (pale glow)      */
  --glow:      rgba(78,231,208,0.45);
  --radius:    18px;
  --maxw:      1080px;
  --font-head: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Animated background ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: float 18s ease-in-out infinite;
}
.orb.a { width: 460px; height: 460px; background: var(--accent);   top: -120px; left: -80px; }
.orb.b { width: 520px; height: 520px; background: var(--accent-2); bottom: -160px; right: -120px; animation-delay: -6s; }
.orb.c { width: 360px; height: 360px; background: var(--accent-3); top: 40%; left: 55%; animation-delay: -11s; opacity: 0.35; }

@keyframes float {
  0%,100% { transform: translate(0,0) scale(1); }
  33%     { transform: translate(60px,-40px) scale(1.08); }
  66%     { transform: translate(-40px,50px) scale(0.95); }
}

/* faint grid/noise overlay for texture */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(78,231,208,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(78,231,208,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 80%);
}

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.page-enter { animation: pageIn 0.6s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* fade used by JS during link navigation */
body.is-leaving { opacity: 0; transition: opacity 0.28s ease; }

/* ---------- ambient colonnade behind every page ---------- */
/* soft light that follows the cursor across every page */
#cursor-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--cursor-x, 50%) var(--cursor-y, 28%),
    rgba(78,231,208,0.09), transparent 62%);
}
@media (prefers-reduced-motion: reduce) { #cursor-glow { display: none; } }

#bg-pillars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.38;
  animation: bgpIn 0.8s ease both;   /* pillars stand back up on each page */
}
@keyframes bgpIn { from { opacity: 0; } to { opacity: 0.38; } }
#bg-pillars .bgp-col {
  position: absolute; bottom: -6px; height: 88vh;
  --cw: 64px; width: var(--cw); margin-left: calc(var(--cw) / -2);
  display: flex; flex-direction: column; align-items: center;
}
/* a ruin's irregular skyline — each pillar its own height */
#bg-pillars .bgp-col:nth-child(1) { height: 66vh; }
#bg-pillars .bgp-col:nth-child(2) { height: 77vh; }
#bg-pillars .bgp-col:nth-child(3) { height: 54vh; }
#bg-pillars .bgp-col:nth-child(4) { height: 72vh; }
@media (max-width: 800px) {
  /* keep just the outer pair on small screens */
  #bg-pillars .bgp-col:nth-child(2), #bg-pillars .bgp-col:nth-child(3) { display: none; }
}
/* permanently in the powered-on (dark + teal) state */
#bg-pillars svg { display: block; }
#bg-pillars svg .cap-stone  { fill: #0f1626; stroke: rgba(78,231,208,0.40); stroke-width: 1; }
#bg-pillars svg .cap-shade  { fill: rgba(78,231,208,0.10); }
#bg-pillars svg .cap-spiral { fill: none; stroke: rgba(78,231,208,0.85); stroke-width: 1.8; }
#bg-pillars svg .cap-egg    { fill: #0d1422; stroke: rgba(78,231,208,0.45); }
#bg-pillars svg .cap-dart   { stroke: rgba(78,231,208,0.5); stroke-width: 1.2; }
#bg-pillars svg .cap-eye    { fill: rgba(78,231,208,0.9); }
#bg-pillars .capital { filter: drop-shadow(0 0 8px rgba(78,231,208,0.18)); }
#bg-pillars .drum {
  background: repeating-linear-gradient(90deg, #0a0f1a 0px, #111a2c 5px, #0a0f1a 10px);
  box-shadow: inset 0 0 0 1px rgba(78,231,208,0.14), 0 0 18px rgba(78,231,208,0.06);
  border-bottom-color: rgba(78,231,208,0.18);
}
#bg-pillars .drum::before { opacity: 0.25; }
#bg-pillars .col-base span {
  background: linear-gradient(#0f1626, #0a0f1a);
  box-shadow: inset 0 0 0 1px rgba(78,231,208,0.20), 0 0 14px rgba(78,231,208,0.08);
}
/* on transition, the glowing cracks race up from the base (lower pieces
   fracture first), then the pieces fall */
#bg-pillars .crumble-piece::after {
  transition: clip-path 0.35s ease var(--crack-delay, 0s),
              opacity 0.2s ease var(--crack-delay, 0s);
}
#bg-pillars.cracking .crumble-piece::after { opacity: 1; clip-path: inset(0 0 0 0); }
/* every capital's crack overlay is clipped to the capital's own shape
   (intro colonnade and background pillars alike), so nothing glows in
   the empty corners above the volutes */
.capital::after {
  -webkit-mask-image: var(--cap-mask, none);
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-image: var(--cap-mask, none);
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center bottom;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(8,12,20,0.6);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand {
  font-family: var(--font-head);
  font-weight: 700; font-size: 1.15rem; letter-spacing: 0.5px;
  text-decoration: none; color: var(--text);
  display: flex; align-items: center; gap: 10px;
}
.brand .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 14px var(--glow);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: 0.7; } }

.nav-links { display: flex; gap: 6px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--muted);
  font-size: 0.95rem; font-weight: 500;
  padding: 8px 14px; border-radius: 10px;
  position: relative; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* mobile menu */
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; transition: 0.25s; }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 12px 24px 20px;
    background: rgba(8,12,20,0.96); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; }
}

/* ---------- Headings & text ---------- */
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; font-weight: 700; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 3px; font-size: 0.78rem;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}
.gradient-text {
  background: linear-gradient(110deg, var(--accent), var(--accent-2) 50%, var(--accent-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.15rem; color: var(--muted); max-width: 60ch; }

/* ---------- Hero ---------- */
.hero { min-height: calc(100vh - 66px); display: flex; align-items: center; position: relative; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 5rem); letter-spacing: -1px; }
.hero .sub { font-size: clamp(1.1rem, 2.4vw, 1.5rem); color: var(--muted); margin-top: 18px; }
.rotator { color: var(--text); font-weight: 600; border-right: 2px solid var(--accent); padding-right: 4px; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---- role words popping up above the background columns (home) ---- */
#col-rotator {
  position: fixed; left: 0; top: 0; z-index: -1;
  transform: translate(0, -100%) translateY(8px);
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  color: var(--accent); text-shadow: 0 0 18px var(--glow);
  white-space: nowrap; pointer-events: none; letter-spacing: 0.5px;
  opacity: 0; transition: opacity 0.35s ease, transform 0.35s ease;
}
#col-rotator.show { opacity: 1; transform: translate(0, -100%) translateY(0); }
#col-rotator .cur {
  display: inline-block; width: 2px; height: 1em; margin-left: 3px;
  background: var(--accent); vertical-align: -2px;
  animation: colcur 1s steps(1) infinite;
}
@keyframes colcur { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #col-rotator { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.97rem;
  padding: 13px 22px; border-radius: 12px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.18s, box-shadow 0.25s, background 0.25s;
}
.btn-primary {
  color: #06121f;
  background: linear-gradient(120deg, var(--accent), var(--accent-3));
  box-shadow: 0 8px 30px -8px var(--glow);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 38px -8px var(--glow); }
.btn-ghost { color: var(--text); border-color: var(--line); background: var(--bg-soft); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--accent); }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }

/* ---------- Section header ---------- */
.section-head { margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.section-head p { color: var(--muted); margin-top: 10px; max-width: 56ch; }

/* ---------- About intro + timeline title ---------- */
.section-head .about-intro { font-size: 1.18rem; line-height: 1.75; color: #ffffff; max-width: none; margin-top: 10px; }
.tl-title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); margin: 38px 0 22px; }

/* ---------- Timeline (About) ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2), transparent);
}
.t-item { position: relative; padding-bottom: 42px; }
.t-item::before {
  content: ""; position: absolute; left: -34px; top: 4px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--bg);
  border: 3px solid var(--accent); box-shadow: 0 0 0 4px rgba(78,231,208,0.12);
}
.t-year { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; color: var(--text); margin-bottom: 10px; }
.t-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 18px; margin-bottom: 10px; transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.t-card:hover { transform: translateX(6px); border-color: var(--accent); background: var(--bg-soft-2); }
.t-card p { color: var(--muted); }

/* ---------- Cards / interests ---------- */
.grid { display: grid; gap: 22px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid.cols-3 { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s;
  background: radial-gradient(420px circle at var(--mx,50%) var(--my,0%), rgba(78,231,208,0.10), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 18px 40px -20px var(--glow); }
.card:hover::before { opacity: 1; }
.card h3 { font-size: 1.2rem; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.card .emoji { font-size: 1.25rem; }
.card ul { list-style: none; }
.card ul li {
  color: var(--muted); padding: 7px 0; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.card ul li:last-child { border-bottom: 0; }
.card ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }

/* tag cloud (songs / shows) */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  font-size: 0.9rem; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; transition: transform 0.15s, border-color 0.2s, color 0.2s;
}
.tag:hover { transform: translateY(-3px); border-color: var(--accent-2); color: var(--accent-2); }
.tag .by { color: var(--muted); font-size: 0.82rem; }

details.songs {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 22px;
}
details.songs > summary {
  cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--font-head);
  font-weight: 700; font-size: 1.15rem; display: flex; align-items: center; justify-content: space-between;
}
details.songs > summary::-webkit-details-marker { display: none; }
details.songs > summary .chev { transition: transform 0.25s; color: var(--accent); }
details.songs[open] > summary .chev { transform: rotate(180deg); }
details.songs .tags { padding: 6px 0 22px; }

/* ---------- Interests: stacked chip clouds ---------- */
.interest-group { margin-bottom: 18px; }
.group-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.group-head h3 { font-size: 1.15rem; }
.group-head::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-block; font-size: 0.92rem; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 12px; padding: 9px 14px; text-decoration: none;
  transition: color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
a.chip { cursor: pointer; }
.chip:hover { transform: translateY(-3px); border-color: var(--accent); color: var(--accent); box-shadow: 0 12px 26px -18px var(--glow); }
.chip .by { color: var(--muted); font-size: 0.82rem; }
.chip.tbd { color: var(--muted); border-style: dashed; letter-spacing: 0.06em; }
.chip.tbd:hover { transform: none; color: var(--muted); border-color: var(--line); box-shadow: none; }

/* ---------- Advocacy: article list ---------- */
.article-list { display: grid; gap: 16px; }
.article {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.article:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 18px 40px -22px var(--glow); }
.article .meta {
  color: var(--accent); font-family: var(--font-head); font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.09em;
}
.article h3 { font-size: 1.18rem; line-height: 1.32; margin: 8px 0 0; }
.article h3 a { color: var(--text); text-decoration: none; transition: color 0.2s; }
.article h3 a:hover { color: var(--accent); }
.article .byline { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
.article .pull {
  margin: 14px 0 0; padding-left: 16px; border-left: 2px solid var(--accent-2);
  color: var(--muted); font-style: italic; font-size: 0.95rem; line-height: 1.55;
}

/* ---------- Social landing (connect) ---------- */
.socials { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 40px; }
@media (max-width: 760px) { .socials { grid-template-columns: 1fr; } }
.social-card {
  text-decoration: none; color: var(--text);
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 26px; display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden; transition: transform 0.25s, border-color 0.25s, box-shadow 0.3s;
}
.social-card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 6px; transition: transform 0.25s;
}
.social-card svg { width: 26px; height: 26px; fill: #fff; }
.social-card .label { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; }
.social-card .handle { color: var(--muted); font-size: 0.95rem; }
.social-card .go { margin-top: 8px; color: var(--accent); font-size: 0.9rem; font-weight: 600; opacity: 0; transform: translateX(-6px); transition: 0.25s; }
.social-card:hover { transform: translateY(-8px); box-shadow: 0 22px 50px -24px var(--glow); }
.social-card:hover .ic { transform: scale(1.08) rotate(-4deg); }
.social-card:hover .go { opacity: 1; transform: none; }
.ic.linkedin  { background: linear-gradient(135deg,#0a66c2,#0a66c2); }
.social-card.linkedin:hover  { border-color:#0a66c2; }
.ic.facebook  { background: linear-gradient(135deg,#1877f2,#0c5ad6); }
.social-card.facebook:hover  { border-color:#1877f2; }
.ic.instagram { background: linear-gradient(135deg,#feda75,#d62976 45%,#962fbf 80%,#4f5bd5); }
.social-card.instagram:hover { border-color:#d62976; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
footer p { color: var(--muted); font-size: 0.9rem; }
footer .mini-links { display: flex; gap: 18px; }
footer .mini-links a { color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
footer .mini-links a:hover { color: var(--accent); }

/* =========================================================
   Opening intro — click to reveal the site.
   An Ionic colonnade built by script.js. It starts as white
   marble on a light backdrop; on click the columns power on —
   turning dark and revealing a circuit pattern — then crumble.
   ========================================================= */

#site-intro {
  position: fixed; inset: 0; z-index: 200;
  cursor: pointer; overflow: hidden;
  /* a classical morning: hazy Mediterranean sky with a low warm sun */
  background:
    radial-gradient(340px circle at 76% 18%, rgba(255,214,150,0.55), rgba(255,214,150,0.16) 45%, transparent 68%),
    radial-gradient(900px circle at 76% 20%, rgba(255,236,200,0.30), transparent 60%),
    linear-gradient(180deg, #bcd4ee 0%, #dbe6f4 38%, #efeadf 66%, #f5efe2 100%);
  transition: background 0.7s ease;
}
/* distant hazy hills on the horizon */
#site-intro::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 12%; height: 26%;
  z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 100% at 16% 100%, rgba(138,152,190,0.38), transparent 70%),
    radial-gradient(50% 85% at 52% 100%, rgba(122,138,178,0.26), transparent 72%),
    radial-gradient(70% 100% at 90% 100%, rgba(148,158,196,0.34), transparent 70%);
  transition: opacity 0.7s ease;
}
/* the stylobate — a stepped marble platform the colonnade stands on */
#site-intro::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 12%;
  z-index: 0; pointer-events: none;
  background: linear-gradient(180deg,
    #faf7ef 0%, #ece7d8 30%,
    rgba(23,32,58,0.20) 30.8%, #f0ebdd 32%,
    #e2dccb 63%,
    rgba(23,32,58,0.20) 63.8%, #e8e2d1 65%,
    #d8d1bc 100%);
  box-shadow: 0 -1px 0 rgba(255,255,255,0.85);
  transition: opacity 0.7s ease;
}
#site-intro.darkening { background: radial-gradient(1200px circle at 50% -15%, #0e1524, #0a0d15 70%); }
#site-intro.darkening::before, #site-intro.darkening::after { opacity: 0; }
#site-intro.gone { display: none; }

/* every falling piece shares this motion + the light→dark transition */
.crumble-piece {
  position: relative; overflow: hidden;
  transition: transform 1.05s cubic-bezier(.5,.02,.35,1), opacity 0.9s ease,
              background 0.55s ease, box-shadow 0.55s ease, border-color 0.55s ease;
  will-change: transform, opacity;
}

/* ---------- Ionic colonnade (free-standing, no beam on top) ---------- */
.temple { position: absolute; inset: 0; overflow: hidden; z-index: 1; }

.colonnade {
  /* columns stand on the top step of the stylobate */
  position: absolute; left: 0; right: 0; bottom: 11%; top: 6%;
  display: flex; justify-content: space-evenly; align-items: flex-end; padding: 0 2%;
}
.column {
  --cw: 92px;
  position: relative;
  width: var(--cw); height: 100%;
  display: flex; flex-direction: column; align-items: center;
}

/* Ionic capital — SVG: abacus, canalis, egg-and-dart echinus, spiral volutes */
.capital {
  width: 150%; flex: 0 0 48px;
  position: relative;
  margin-bottom: -1px;                    /* overlap the shaft — no hairline gap */
  display: flex; align-items: flex-end; justify-content: center;
  filter: drop-shadow(0 2px 2px rgba(20,30,60,0.14));
  transition: transform 1.05s cubic-bezier(.5,.02,.35,1), opacity 0.9s ease, filter 0.55s ease;
}
.capital svg { width: 100%; height: 100%; }

/* shared "carved stone" styling for every SVG piece (capitals + statue) */
.temple svg { display: block; }
.temple svg * { transition: fill 0.55s ease, stroke 0.55s ease; }
.temple svg .cap-stone  { fill: url(#marble); stroke: rgba(28,38,68,0.30); stroke-width: 1; }
.temple svg .cap-shade  { fill: rgba(28,38,68,0.10); }
.temple svg .cap-spiral { fill: none; stroke: rgba(28,38,68,0.45); stroke-width: 1.8; }
.temple svg .cap-egg    { fill: #eef1f8; stroke: rgba(28,38,68,0.30); }
.temple svg .cap-dart   { stroke: rgba(28,38,68,0.35); stroke-width: 1.2; }
.temple svg .cap-eye    { fill: rgba(28,38,68,0.5); }
.temple svg .stat-fold  { fill: none; stroke: rgba(28,38,68,0.32); stroke-width: 1.5; stroke-linecap: round; }
.temple svg .stat-staff { fill: none; stroke: rgba(28,38,68,0.50); stroke-width: 2.5; stroke-linecap: round; }
.temple svg .stat-shade { fill: rgba(28,38,68,0.10); stroke: none; }
.temple svg .stat-light { fill: none; stroke: rgba(255,255,255,0.85); stroke-width: 1.6; stroke-linecap: round; }
.temple svg .stat-cut   { fill: rgba(28,38,68,0.16); stroke: rgba(28,38,68,0.25); stroke-width: 0.6; }
/* jagged fracture lines in legs and torsos — each path starts at its lowest
   point, so the dash draw-on grows the crack bottom-to-top like the pillars */
.temple svg .stat-crack {
  fill: none; stroke: rgba(78,231,208,0.9); stroke-width: 1.2;
  stroke-linejoin: round; stroke-linecap: butt;
  stroke-dasharray: 1; stroke-dashoffset: 1;   /* pathLength=1 → fully hidden */
  transition: stroke-dashoffset 0.85s ease var(--crack-delay, 0.2s);
}

/* fluted shaft segments (widths set by script.js for the entasis taper) */
.drum {
  width: 100%; flex: 1 1 0; min-height: 0;
  /* rounded concave flutes: dark fillet → bright crest → dark fillet */
  background: repeating-linear-gradient(90deg, #c7cfe2 0px, #ffffff 5px, #c7cfe2 10px);
  border-bottom: 1px solid rgba(20,30,60,0.10);
}
.drum::before {
  /* cylindrical shading: darker edges, soft off-centre highlight */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg,
    rgba(23,32,58,0.30) 0%, rgba(23,32,58,0.06) 18%,
    rgba(255,255,255,0.55) 38%, rgba(255,255,255,0.10) 55%,
    rgba(23,32,58,0.10) 78%, rgba(23,32,58,0.36) 100%);
  transition: opacity 0.55s ease;
}

/* Attic base: torus / scotia / torus resting on a square plinth */
.col-base {
  width: 145%; flex: 0 0 40px;
  display: flex; flex-direction: column; align-items: center;
}
.col-base span { display: block; transition: background 0.55s ease, box-shadow 0.55s ease; }
.col-base .torus1 { width: 78%; height: 10px; border-radius: 5px;
  background: linear-gradient(#ffffff, #cdd5e6);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.9), inset 0 -3px 3px rgba(23,32,58,0.22); }
.col-base .scotia { width: 70%; height: 7px;
  background: linear-gradient(#c3cbdf, #eef1f8);
  box-shadow: inset 0 2px 3px rgba(23,32,58,0.28); }
.col-base .torus2 { width: 86%; height: 11px; border-radius: 6px;
  background: linear-gradient(#fbfcff, #c8d0e2);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.9), inset 0 -3px 3px rgba(23,32,58,0.25); }
.col-base .plinth { width: 100%; height: 12px; border-radius: 2px;
  background: linear-gradient(#eef1f8, #d3dae9);
  box-shadow: 0 3px 6px rgba(23,32,58,0.18); }

/* ---------- the statue: a draped marble woman on a molded pedestal ---------- */
.statue {
  position: relative;
  align-self: flex-end;
  width: clamp(84px, 11vw, 140px);
  display: flex; flex-direction: column; align-items: center;
}
/* flanking statues — a touch smaller so Aphrodite stays the focal point */
.statue.statue-side { width: clamp(72px, 9.5vw, 118px); }
.statue-figure {
  width: 86%;
  margin-bottom: -1px;                    /* flush on the pedestal cap */
  filter: drop-shadow(0 3px 3px rgba(20,30,60,0.16));
  transition: transform 1.05s cubic-bezier(.5,.02,.35,1), opacity 0.9s ease, filter 0.55s ease;
}
.statue-figure svg { width: 100%; height: auto; }
.pedestal {
  width: 100%; flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center;
}
.pedestal span { display: block; transition: background 0.55s ease, box-shadow 0.55s ease; }
.pedestal .ped-cap  { width: 92%; height: 10px; border-radius: 3px;
  background: linear-gradient(#ffffff, #d3dae9);
  box-shadow: inset 0 2px 2px rgba(255,255,255,0.9), inset 0 -2px 3px rgba(23,32,58,0.20); }
.pedestal .ped-dado { width: 78%; height: 46px;
  background: linear-gradient(90deg, #dfe4f0, #f6f8fd 45%, #d8deec);
  box-shadow: inset 0 0 0 1px rgba(23,32,58,0.10); }
.pedestal .ped-foot { width: 100%; height: 13px; border-radius: 2px;
  background: linear-gradient(#eef1f8, #cfd6e6);
  box-shadow: 0 3px 6px rgba(23,32,58,0.20); }

/* ---------- hazy portico + pediment across the far side of the forum ---------- */
.bg-portico {
  position: absolute; left: 5%; right: 5%; bottom: 12%; height: 38%;
  z-index: 0; opacity: 0.45; pointer-events: none;
  background:
    linear-gradient(rgba(146,156,190,0.60), rgba(146,156,190,0.40)) no-repeat top / 100% 10px,
    linear-gradient(rgba(146,156,190,0.45), rgba(146,156,190,0.45)) no-repeat left 0 top 14px / 100% 4px,
    repeating-linear-gradient(90deg, rgba(146,156,190,0.40) 0 12px, transparent 12px 58px)
      no-repeat left 20px bottom 0 / calc(100% - 40px) calc(100% - 24px);
  filter: blur(0.6px);
  transition: opacity 0.7s ease;
}
.bg-portico::before {
  /* pediment above the centre of the far portico */
  content: ""; position: absolute; top: -44px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 170px solid transparent; border-right: 170px solid transparent;
  border-bottom: 44px solid rgba(146,156,190,0.38);
}
#site-intro.darkening .bg-portico { opacity: 0; }

/* soft ground shadow (not a crumble piece — fades when the columns fall) */
.col-shadow {
  position: absolute; bottom: -7px; left: 50%; transform: translateX(-50%);
  width: 185%; height: 16px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(23,32,58,0.30), transparent 68%);
  transition: background 0.55s ease, opacity 0.6s ease;
}
#site-intro.darkening .col-shadow { background: radial-gradient(ellipse at center, rgba(78,231,208,0.22), transparent 68%); }
#site-intro.falling .col-shadow { opacity: 0; }

/* ---- glowing cracks etched into the stone, growing up from the base ---- */
.crumble-piece::after {
  content: ""; position: absolute; inset: 0; opacity: 0;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='150'%20height='150'%20viewBox='0%200%20150%20150'%3E%3Cg%20fill='none'%20stroke='%234ee7d0'%20stroke-width='1.1'%20stroke-linecap='round'%3E%3Cpath%20d='M22%200L30%2020L18%2040L32%2064L22%2090L36%20116L26%20150'/%3E%3Cpath%20d='M30%2020L50%2028M18%2040L2%2050M32%2064L54%2072M22%2090L4%20102M36%20116L60%20124'/%3E%3Cpath%20d='M116%200L108%2024L126%2046L114%2074L130%20102L116%20132L128%20150'/%3E%3Cpath%20d='M108%2024L88%2032M126%2046L146%2040M114%2074L94%2084M130%20102L150%20110'/%3E%3Cpath%20d='M72%200L80%2028L66%2056L82%2092L70%20132L84%20150'/%3E%3Cpath%20d='M80%2028L98%2022M66%2056L46%2064M82%2092L104%20100'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 130px 130px;
  filter: drop-shadow(0 0 3px rgba(78,231,208,0.55));
  mix-blend-mode: screen;
  clip-path: inset(100% 0 0 0);                 /* revealed from the bottom up */
  transition: clip-path 0.85s ease var(--crack-delay, 0s),
              opacity 0.3s ease var(--crack-delay, 0s);
}
#site-intro.darkening .crumble-piece::after { opacity: 1; clip-path: inset(0 0 0 0); }

/* the statue is assembled from four clipped shards that scatter separately */
.statue-chunk {
  position: absolute; inset: 0;
  transition: transform 1.05s cubic-bezier(.5,.02,.35,1), opacity 0.9s ease;
}
.statue-chunk.chunk-base { position: relative; inset: auto; }  /* gives the figure its height */

/* keep the statues' cracks inside the figure: the overlay is masked by the
   statue's own SVG silhouette (set as --fig-mask by script.js) */
.statue-chunk::after {
  -webkit-mask-image: var(--fig-mask, none);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center bottom;
  mask-image: var(--fig-mask, none);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-position: center bottom;
}

/* ---- powered-on (dark) state ---- */
#site-intro.darkening .capital,
#site-intro.darkening .statue-figure { filter: drop-shadow(0 0 8px rgba(78,231,208,0.25)); }
#site-intro.darkening .temple svg .cap-stone  { fill: #0f1626; stroke: rgba(78,231,208,0.40); }
#site-intro.darkening .temple svg .cap-shade  { fill: rgba(78,231,208,0.10); }
#site-intro.darkening .temple svg .cap-spiral { stroke: rgba(78,231,208,0.85); }
#site-intro.darkening .temple svg .cap-egg    { fill: #0d1422; stroke: rgba(78,231,208,0.45); }
#site-intro.darkening .temple svg .cap-dart   { stroke: rgba(78,231,208,0.5); }
#site-intro.darkening .temple svg .cap-eye    { fill: rgba(78,231,208,0.9); }
#site-intro.darkening .temple svg .stat-fold  { stroke: rgba(78,231,208,0.65); }
#site-intro.darkening .temple svg .stat-staff { stroke: rgba(78,231,208,0.75); }
#site-intro.darkening .temple svg .stat-shade { fill: rgba(78,231,208,0.08); }
#site-intro.darkening .temple svg .stat-light { stroke: rgba(78,231,208,0.45); }
#site-intro.darkening .temple svg .stat-cut   { fill: rgba(78,231,208,0.14); stroke: rgba(78,231,208,0.30); }
#site-intro.darkening .temple svg .stat-crack {
  stroke-dashoffset: 0;                        /* draw on, from the bottom up */
  filter: drop-shadow(0 0 3px rgba(78,231,208,0.55));
}
#site-intro.darkening .drum {
  background: repeating-linear-gradient(90deg, #0a0f1a 0px, #111a2c 5px, #0a0f1a 10px);
  box-shadow: inset 0 0 0 1px rgba(78,231,208,0.14), 0 0 18px rgba(78,231,208,0.08);
  border-bottom-color: rgba(78,231,208,0.18);
}
#site-intro.darkening .drum::before { opacity: 0.3; }
#site-intro.darkening .col-base span,
#site-intro.darkening .pedestal span {
  background: linear-gradient(#0f1626, #0a0f1a);
  box-shadow: inset 0 0 0 1px rgba(78,231,208,0.20), 0 0 14px rgba(78,231,208,0.08);
}

/* ---------- centered prompt (readable on the light backdrop) ---------- */
.intro-prompt {
  position: fixed; inset: 0; z-index: 210; display: grid; place-content: center;
  text-align: center; pointer-events: none; transition: opacity 0.4s ease;
}
.intro-prompt .badge {
  font-family: var(--font-head); font-weight: 700; letter-spacing: 1px;
  font-size: clamp(1.7rem, 5vw, 3rem); color: #16203a;
}
.intro-prompt .hint {
  margin-top: 14px; color: #5a6486; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 10px;
}
.intro-prompt .hint .pointer { font-size: 1.35rem; animation: tap 1.4s ease-in-out infinite; }
@keyframes tap { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.intro-prompt.hide { opacity: 0; }

/* respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  #site-intro, .intro-prompt { display: none !important; }
}
