/* Iron Circle — public site. Design system from Kadin's HTM alpha. */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Barlow:wght@400;500;600&family=Barlow+Condensed:wght@400;500;600&display=swap');

:root {
  --black: #0a0a0a; --iron: #1a1a1a; --steel: #2a2a2a; --ash: #3d3d3d;
  --smoke: #6b6b6b; --silver: #a8a8a8; --white: #f0ede8;
  --gold: #c9a84c; --gold-dim: #7a6330; --red: #8b1a1a; --amber: #d4800a;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--black); color: var(--white); font-family: 'Barlow', sans-serif; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* Nav */
nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 2.5rem; background: rgba(10,10,10,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--steel); }
.nav-brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .22em; color: var(--white); }
.nav-brand span { color: var(--gold); }
.nav-links { display: flex; gap: 2rem; font-family: 'Barlow Condensed', sans-serif; font-size: .95rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--silver); }
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { font-family: 'Barlow Condensed', sans-serif; letter-spacing: .18em; text-transform: uppercase; font-size: .9rem;
  border: 1px solid var(--gold); color: var(--gold); padding: .5rem 1.4rem; transition: all .2s; }
.nav-cta:hover { background: var(--gold); color: var(--black); }

/* Hero */
.hero { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 4rem 1.5rem; position: relative;
  background: radial-gradient(ellipse at 50% 35%, #1c1a14 0%, var(--black) 65%); }
.hero-label { font-family: 'Barlow Condensed', sans-serif; letter-spacing: .45em; text-transform: uppercase;
  color: var(--gold); font-size: .95rem; margin-bottom: 1.4rem; }
.hero h1 { font-family: 'Bebas Neue', sans-serif; font-size: clamp(4rem, 13vw, 9.5rem); letter-spacing: .08em;
  line-height: .95; }
.hero h1 .accent { color: var(--gold); }
.hero-sub { max-width: 620px; color: var(--silver); font-size: 1.15rem; margin: 1.8rem 0 2.6rem; }
.hero-verse { font-family: 'Barlow Condensed', sans-serif; color: var(--smoke); letter-spacing: .12em;
  text-transform: uppercase; font-size: .9rem; margin-top: 3.5rem; }
.hero-verse b { color: var(--gold-dim); font-weight: 500; }

/* Buttons */
.btn { display: inline-block; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .2em; text-transform: uppercase;
  font-size: 1rem; padding: .95rem 2.6rem; transition: all .2s; cursor: pointer; }
.btn-gold { background: var(--gold); color: var(--black); border: 1px solid var(--gold); font-weight: 600; }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-ghost { border: 1px solid var(--ash); color: var(--silver); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-row { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }

/* Sections */
section { padding: 6rem 2.5rem; max-width: 1180px; margin: 0 auto; }
.section-label { font-family: 'Barlow Condensed', sans-serif; letter-spacing: .4em; text-transform: uppercase;
  color: var(--gold); font-size: .85rem; margin-bottom: .8rem; }
.section-title { font-family: 'Bebas Neue', sans-serif; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: .06em;
  margin-bottom: 2.6rem; }
.section-intro { color: var(--silver); max-width: 680px; margin: -1.4rem 0 2.8rem; }

/* Card grids */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--iron); border: 1px solid var(--steel); padding: 2rem; transition: border-color .2s; }
.card:hover { border-color: var(--gold-dim); }
.card-num { font-family: 'Bebas Neue', sans-serif; color: var(--gold-dim); font-size: 1.6rem; letter-spacing: .1em; }
.card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.7rem; letter-spacing: .08em; margin: .4rem 0 .7rem; }
.card-body { color: var(--silver); font-size: .98rem; }
.card .verse { display: block; margin-top: 1.1rem; font-family: 'Barlow Condensed', sans-serif; color: var(--gold-dim);
  letter-spacing: .1em; text-transform: uppercase; font-size: .85rem; }

/* Mission / verse blocks */
.mission-block { border-left: 2px solid var(--gold); padding: 1.6rem 2.2rem; background: var(--iron); max-width: 780px; margin: 0 auto; }
.mission-verse { font-family: 'Barlow Condensed', sans-serif; color: var(--gold); letter-spacing: .12em;
  text-transform: uppercase; font-size: .9rem; margin-top: 1rem; }

/* Standards strip */
.standards-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.6rem;
  font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; letter-spacing: .18em; color: var(--silver); }
.standards-strip span::before { content: '· '; color: var(--gold-dim); }
.standards-strip span:first-child::before { content: ''; }

/* Leader cards */
.leader-card { text-align: left; }
.leader-role { font-family: 'Barlow Condensed', sans-serif; color: var(--gold); letter-spacing: .2em;
  text-transform: uppercase; font-size: .85rem; }
.leader-name { font-family: 'Bebas Neue', sans-serif; font-size: 2rem; letter-spacing: .08em; margin: .3rem 0 .8rem; }

/* Testimony */
.testimony { border-left: 2px solid var(--gold-dim); padding-left: 1.6rem; }
.testimony p { color: var(--silver); font-style: italic; }
.testimony footer { margin-top: .9rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .15em;
  text-transform: uppercase; font-size: .85rem; color: var(--smoke); }

/* Forms */
form { max-width: 720px; }
.field { margin-bottom: 1.6rem; }
.field label { display: block; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .15em;
  text-transform: uppercase; font-size: .85rem; color: var(--gold); margin-bottom: .5rem; }
.hint { color: var(--smoke); font-size: .85rem; margin-top: .35rem; }
input, textarea, select { width: 100%; background: var(--iron); border: 1px solid var(--steel); color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 1rem; padding: .8rem 1rem; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--gold); }
textarea { min-height: 110px; resize: vertical; }

/* Step wizard */
.steps { display: flex; gap: .6rem; margin-bottom: 2.4rem; }
.step-dot { flex: 1; height: 3px; background: var(--steel); }
.step-dot.done { background: var(--gold); }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 2rem; }

/* Prohibited / warning */
.warn { border-left: 2px solid var(--red); background: var(--iron); padding: 1.2rem 1.6rem; color: var(--silver); font-size: .95rem; }

/* Footer */
footer.site { border-top: 1px solid var(--steel); padding: 3rem 2.5rem; text-align: center;
  color: var(--smoke); font-family: 'Barlow Condensed', sans-serif; letter-spacing: .15em; text-transform: uppercase; font-size: .85rem; }
footer.site .brand { font-family: 'Bebas Neue', sans-serif; font-size: 1.4rem; letter-spacing: .22em; color: var(--silver); margin-bottom: .6rem; }

/* Utilities */
.center { text-align: center; }
.gold { color: var(--gold); }
.divider { width: 60px; height: 2px; background: var(--gold); margin: 2rem auto; }
.tag { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-size: .78rem; letter-spacing: .2em;
  text-transform: uppercase; border: 1px solid var(--ash); color: var(--smoke); padding: .25rem .8rem; margin: 0 .3rem .5rem 0; }

@media (max-width: 720px) {
  nav { padding: 1rem 1.2rem; } .nav-links { display: none; } section { padding: 4rem 1.2rem; }
}

/* === Added for give/contact/blog pages + index carousel/pillar links === */
[id] { scroll-margin-top: 100px; }

/* Allocation bars (give.html) */
.bar-row { margin-bottom: 1.5rem; }
.bar-label { display: flex; justify-content: space-between; font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; color: var(--silver); margin-bottom: .5rem; }
.bar-track { background: var(--steel); height: 10px; }
.bar-fill { background: var(--gold); height: 100%; }

/* Testimony carousel (index.html) */
.testimony-carousel { display: flex; align-items: center; gap: 1.4rem; }
.testimony-carousel .testimony { flex: 1; min-height: 6.5rem; }
.carousel-arrow { background: transparent; border: 1px solid var(--ash); color: var(--silver); font-size: 1.2rem;
  width: 2.6rem; height: 2.6rem; flex: none; cursor: pointer; transition: all .2s; }
.carousel-arrow:hover { border-color: var(--gold); color: var(--gold); }
.carousel-dots { display: flex; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.carousel-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--steel); border: none; cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--gold); }

/* Confirmation line (forms) */
.form-confirm { color: var(--gold); margin-top: 1rem; }

/* ============================================================
   Motion layer — premium, quiet, earned. All entrance states are
   gated on .js (added by motion.js) so content is never hidden
   without JavaScript, and everything collapses to static under
   prefers-reduced-motion.
   ============================================================ */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); --ease-expo: cubic-bezier(.16, 1, .3, 1); }

/* The signature: a gold line that forges outward from the center. */
.hero h1 { position: relative; padding-bottom: 1.4rem; }
.hero h1::after { content: ''; position: absolute; left: 50%; bottom: 0; width: min(480px, 78%); height: 2px;
  background: var(--gold); transform: translateX(-50%); }
.section-title { position: relative; padding-bottom: 1rem; }
.section-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 180px; height: 2px;
  background: var(--gold); transform-origin: center; }
.center .section-title::after, section.center .section-title::after { left: 50%; margin-left: -90px; }

/* Centered 2×2 square for four-item groups (leaders, monthly rhythm) */
.grid-4sq { grid-template-columns: repeat(2, minmax(260px, 440px)); justify-content: center; }
@media (max-width: 640px) { .grid-4sq { grid-template-columns: 1fr; } }

/* Micro-feedback (safe at all times) */
.btn:active { transform: scale(.97); }
.nav-links a { position: relative; padding-bottom: 3px; }
.nav-links a::after { content: ''; position: absolute; left: 50%; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: translateX(-50%) scaleX(0); transform-origin: center;
  transition: transform .3s var(--ease-out); }
.nav-links a:hover::after, .nav-links a.active::after { transform: translateX(-50%) scaleX(1); }

@media (prefers-reduced-motion: no-preference) {

  /* Hero choreography — one rehearsed entrance per page load */
  .js .hero-label { animation: ic-fade-down .7s var(--ease-out) .1s both; }
  .js .hero h1 { animation: ic-rise .85s var(--ease-expo) .25s both; }
  .js .hero h1::after { transform: translateX(-50%) scaleX(0); transform-origin: center;
    animation: ic-forge-line 2.2s var(--ease-expo) .95s forwards; }
  .js .hero-sub { animation: ic-rise .8s var(--ease-out) .6s both; }
  .js .hero .btn-row { animation: ic-rise .8s var(--ease-out) .75s both; }
  .js .hero-verse { animation: ic-fade .9s var(--ease-out) 1.15s both; }

  /* Section titles: rise, then the line forges out from center */
  .js .section-title { opacity: 0; transform: translateY(16px);
    transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
  .js .section-title::after { transform: scaleX(0); transition: transform 1.4s var(--ease-expo) .35s; }
  .js .section-title.inview { opacity: 1; transform: none; }
  .js .section-title.inview::after { transform: scaleX(1); }

  /* Supporting copy and blocks: quiet rise */
  .js .section-intro, .js .mission-block, .js .testimony-carousel, .js .warn {
    opacity: 0; transform: translateY(14px);
    transition: opacity .8s var(--ease-out) .1s, transform .8s var(--ease-out) .1s; }
  .js .section-intro.inview, .js .mission-block.inview, .js .testimony-carousel.inview, .js .warn.inview {
    opacity: 1; transform: none; }

  /* Grids: sibling stagger, capped by item count (~6 per grid) */
  .js .grid > * { opacity: 0; transform: translateY(18px);
    transition: opacity .65s var(--ease-out) calc(var(--i, 0) * 75ms),
                transform .65s var(--ease-out) calc(var(--i, 0) * 75ms); }
  .js .grid > .inview { opacity: 1; transform: none; }

  /* Standards strip: the six words land one by one */
  .js .standards-strip span { opacity: 0; transform: translateY(10px);
    transition: opacity .55s var(--ease-out) calc(var(--i, 0) * 90ms),
                transform .55s var(--ease-out) calc(var(--i, 0) * 90ms); }
  .js .standards-strip span.inview { opacity: 1; transform: none; }
}

@keyframes ic-rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes ic-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ic-fade-down { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes ic-forge-line { to { transform: translateX(-50%) scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card:hover { transform: none; }
  .btn:active { transform: none; }
}

/* ============================================================
   Gold warm-up — a filament coming up to heat, not a light
   switch. Low intensity, ~0.9s ease-in so nothing arrives
   instantly, and it cools back down almost as slowly.
   --ease-warm starts nearly flat: the first ~200ms is barely
   visible, which is what sells "warming" over "fading".
   ============================================================ */
:root { --ease-warm: cubic-bezier(.65, .02, .55, 1); }

.card {
  transition: border-color .9s var(--ease-warm), box-shadow .9s var(--ease-warm),
              transform .8s var(--ease-out);
}
/* Cards inside a .grid are also targeted by the reveal rule further up, whose
   `transition` shorthand would wipe the warm-up. Restate both there, at higher
   specificity, so the reveal AND the glow keep their own timing. */
.js .grid > .card {
  transition: opacity .65s var(--ease-out) calc(var(--i, 0) * 75ms),
              transform .65s var(--ease-out) calc(var(--i, 0) * 75ms),
              border-color .9s var(--ease-warm), box-shadow .9s var(--ease-warm);
}
.card:hover, details.card[open] {
  border-color: var(--gold-dim);
  box-shadow: 0 0 16px -7px rgba(201,168,76,.30),
              0 10px 28px -22px rgba(201,168,76,.34);
}
/* The open card is the one thing allowed to sit a little brighter. */
details.card[open] { border-color: #8d7538; box-shadow: 0 0 22px -8px rgba(201,168,76,.34); }

.nav-links a { transition: color .8s var(--ease-warm), text-shadow .8s var(--ease-warm); }
.nav-links a:hover, .nav-links a.active { text-shadow: 0 0 9px rgba(201,168,76,.4); }
.nav-links a::after { transition: transform .6s var(--ease-out), box-shadow .8s var(--ease-warm); }
.nav-links a:hover::after, .nav-links a.active::after { box-shadow: 0 0 7px 0 rgba(201,168,76,.45); }
.nav-cta { transition: background .5s var(--ease-out), color .5s var(--ease-out),
                       box-shadow .9s var(--ease-warm), border-color .9s var(--ease-warm); }
.nav-cta:hover { box-shadow: 0 0 16px -4px rgba(201,168,76,.38); }
.btn { transition: background .5s var(--ease-out), color .5s var(--ease-out),
                   border-color .5s var(--ease-out), box-shadow .9s var(--ease-warm); }
.btn-gold:hover { box-shadow: 0 0 18px -6px rgba(201,168,76,.36); }
.nav-brand span { transition: text-shadow .8s var(--ease-warm); }
.nav-brand:hover span { text-shadow: 0 0 9px rgba(201,168,76,.4); }

/* ============================================================
   Expandable cards — pillars, standards, leader bios.
   ponytail: native <details>/<summary>, no accordion JS.
   ============================================================ */
details.card { padding: 0; }
details.card > summary {
  list-style: none; cursor: pointer; padding: 2rem 3.4rem 2rem 2rem; position: relative;
}
details.card > summary::-webkit-details-marker { display: none; }
details.card > summary::after {
  content: '+'; position: absolute; top: 1.5rem; right: 1.6rem; line-height: 1;
  font-family: 'Bebas Neue', sans-serif; font-size: 2rem; color: var(--gold-dim);
  transition: color .25s var(--ease-out), transform .25s var(--ease-out);
}
details.card:hover > summary::after { color: var(--gold); }
details.card[open] > summary::after { content: '\2212'; color: var(--gold); }
details.card > summary:focus-visible { outline: 1px solid var(--gold); outline-offset: -4px; }
details.card > summary .card-body { margin-bottom: 0; }
.detail { border-top: 1px solid var(--steel); margin: 0 2rem; padding: 1.5rem 0 2rem; }
.detail p { color: var(--silver); font-size: .98rem; }
.detail p + p { margin-top: .9rem; }
.detail .detail-label {
  font-family: 'Barlow Condensed', sans-serif; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-size: .78rem; margin: 1.4rem 0 .6rem;
}
.detail ul { list-style: none; margin-top: .4rem; }
.detail li { color: var(--silver); font-size: .95rem; padding-left: 1.1rem; position: relative; margin-bottom: .45rem; }
.detail li::before { content: '\2014'; position: absolute; left: 0; color: var(--gold-dim); }
.detail .verse {
  display: block; margin-top: 1.2rem; font-family: 'Barlow Condensed', sans-serif; color: var(--gold-dim);
  letter-spacing: .1em; text-transform: uppercase; font-size: .85rem;
}
.detail cite { color: var(--white); font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
  details.card[open] > .detail { animation: ic-rise .6s var(--ease-out) .1s both; }
}

/* ============================================================
   Overlay expansion — an opened card covers its row-mates
   instead of shoving the whole page down. Opt-in per grid
   (.grid-expand); a single-column list still expands normally.
   Pair with name="..." on the <details> so only one opens.
   ============================================================ */
.grid-expand { position: relative; grid-auto-rows: 1fr; }   /* 1fr rows = every closed box the same size */
/* Reserve enough room that the opened panel isn't scrolling inside itself.
   Per-grid override with --expand-min when a panel runs longer. */
.grid-expand:has(> details[open]) { min-height: var(--expand-min, 36rem); }
.grid-expand > details.card[open] {
  position: absolute; inset: 0; z-index: 20; overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) {
  /* Opens outward from the middle — reads as spreading over the others, not dropping down. */
  .grid-expand > details.card[open] { animation: ic-spread .6s var(--ease-expo) both; }
}
@keyframes ic-spread { from { opacity: 0; transform: scaleX(.93); } to { opacity: 1; transform: none; } }

/* Five across, centred. Five items in a three-up grid leaves an orphan and
   reads as "one is missing" — this fills the row instead. */
.grid-center { display: flex; flex-wrap: wrap; justify-content: center; }
/* No flex-grow on purpose: a wrapped orphan that stretches wider than its
   row-mates is what made it read as "one is missing". Fixed basis keeps
   every tile identical and lets the row centre itself. */
.grid-center > * { flex: 0 1 200px; }
@media (max-width: 720px) { .grid-center > * { flex-basis: 100%; } }

/* Four marks of a man (index) */
.marks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.4rem; text-align: left; }
.mark { border-left: 2px solid var(--gold-dim); padding: .4rem 0 .4rem 1.4rem; transition: border-color .3s var(--ease-out); }
.marks:hover .mark { border-color: var(--steel); }
.marks .mark:hover { border-color: var(--gold); }
.mark-num { font-family: 'Bebas Neue', sans-serif; color: var(--gold-dim); font-size: 1.2rem; letter-spacing: .1em; }
.mark-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.6rem; letter-spacing: .06em; margin: .1rem 0 .5rem; }
.mark p { color: var(--silver); font-size: .95rem; }
/* Attribution, present but not announcing itself. */
.credit { margin-top: 1.6rem; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .14em;
  text-transform: uppercase; font-size: .72rem; color: var(--ash); }

/* FOCUS acronym strip */
.focus-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 2rem 0; }
.focus-word { text-align: center; padding: 1.2rem .6rem; background: var(--iron); border: 1px solid var(--steel);
  transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.focus-word:hover { border-color: var(--gold); box-shadow: 0 0 24px -8px rgba(201,168,76,.5); }
.focus-letter { font-family: 'Bebas Neue', sans-serif; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.focus-word span { display: block; font-family: 'Barlow Condensed', sans-serif; letter-spacing: .2em;
  text-transform: uppercase; font-size: .82rem; color: var(--silver); margin-top: .4rem; }
