/* ==========================================================================
   Michaël Etiennette — Portfolio
   Design: Light editorial, single committed plum accent
   Typography: Caveat Brush (headings) · Montserrat (body) — unchanged
   ========================================================================== */

/* ---- Design tokens ---- */
:root {
  /* Surfaces — faint plum-tinted neutrals */
  --bg-page:        #f8f7fa;
  --surface:         #ffffff;
  --surface-tint:    #f1eef6;
  --surface-tint-2:  #e8e2f0;

  /* Text */
  --ink:             #14161f;
  --body-text:       #34384a;
  --muted:           #5c6070;

  /* Single committed accent — deep plum, with a lighter tone for tints/borders */
  --accent:          #4D006E;
  --accent-hover:    #37004f;
  --accent-light:    #622599;
  --accent-soft:     rgba(98,37,153,0.09);
  --accent-soft-2:   rgba(98,37,153,0.20);

  /* On dark/accent surfaces */
  --on-accent:       #ffffff;
  --on-accent-muted: rgba(255,255,255,0.72);

  /* Lines — subtle plum tint, per --accent-light */
  --line:            rgba(98,37,153,0.14);
  --line-strong:     rgba(98,37,153,0.32);

  --maxw:          1140px;
  --radius:        12px;
  --shadow-sm:     0 1px 3px rgba(20,23,31,0.07);
  --shadow-md:     0 16px 34px rgba(20,23,31,0.14);

  --font-head:     'Caveat Brush', cursive;
  --font-body:     'Montserrat', system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ---- Skip link (screen readers / keyboard) ---- */
.skip-link {
  position: absolute; top: -999px; left: 8px;
  padding: 10px 18px; border-radius: 0 0 8px 8px;
  background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: .9rem; z-index: 9999;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ---- Global focus-visible ring ---- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
/* Override for elements that have their own outline logic */
.field-input:focus-visible { outline: none; }
button:focus-visible,
a:focus-visible { border-radius: 6px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--body-text);
  background: var(--bg-page);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout helpers ---- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section--mist { background: var(--surface-tint); }
.section--ink {
  background: var(--surface-tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.center { text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; line-height: 1.05; margin: 0 0 .4em; letter-spacing: .5px; color: var(--ink); }
h1 { font-size: clamp(2.8rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.7rem); }
h4 { font-size: 1.3rem; }
p  { margin: 0 0 1rem; color: var(--body-text); }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .8rem;
  display: inline-block;
}

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 9999px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--on-accent);
}
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent);
}
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.center .btn-row { justify-content: center; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  font-family: var(--font-head);
  font-size: 1.7rem;
  color: var(--ink);
  letter-spacing: .5px;
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--accent); }

.nav-links { display: flex; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.nav-links a {
  font-size: .82rem; font-weight: 600; color: var(--body-text);
  padding: 8px 11px; border-radius: 8px; letter-spacing: .01em;
}
.nav-links a:hover { background: var(--accent-soft); color: var(--ink); text-decoration: none; }
.nav-links a.active { color: var(--ink); background: var(--accent-soft-2); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  font-size: 1.6rem; color: var(--ink); line-height: 1;
}

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface);
    flex-direction: column; gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 80vh; overflow-y: auto; padding: 8px 0; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; border-radius: 0; min-height: 48px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: transparent;
  color: var(--ink);
  overflow: hidden;
}
.hero .wrap { padding-top: 90px; padding-bottom: 90px; }
.hero h1 { color: var(--ink); }
.hero .role {
  font-weight: 600; letter-spacing: .04em;
  color: var(--accent);
  text-transform: uppercase; font-size: .9rem; margin-bottom: 1.2rem;
}
.hero .mission { font-size: 1.25rem; max-width: 640px; color: var(--muted); margin-bottom: 1.8rem; }

/* ==========================================================================
   Page banner (interior pages)
   ========================================================================== */
.banner {
  position: relative;
  background-color: var(--accent);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-bottom: 1px solid var(--line);
  color: var(--on-accent); padding: 60px 0; min-height: 220px;
  overflow: hidden;
}
.banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(45,0,64,0.82);
  pointer-events: none;
}
.banner .wrap { position: relative; z-index: 1; }
.banner h1 { color: var(--on-accent); margin-bottom: .2em; }
.banner p { color: var(--on-accent-muted); max-width: 700px; margin: 0; }
.breadcrumb { font-size: .8rem; color: rgba(255,255,255,0.55); margin-bottom: 1rem; letter-spacing: .03em; }
.breadcrumb a { color: var(--on-accent-muted); }

.photo-placeholder {
  margin-top: 28px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-tint);
  color: var(--muted);
  font-size: .85rem;
}
.photo-placeholder .icon { font-size: 2rem; }

/* ==========================================================================
   Impact dashboard / stat cards
   ========================================================================== */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px; }
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 20px; text-align: center;
}
.stat .num {
  font-family: var(--font-head);
  font-size: 2.6rem; line-height: 1;
  color: var(--accent);
}
.stat .label { font-size: .82rem; color: var(--muted); margin-top: 6px; }

.stat--light {
  background: var(--surface);
  border: 1px solid var(--line);
}
.stat--light .num { color: var(--accent); }
.stat--light .label { color: var(--muted); }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 22px; }
.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(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--body-text);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.card h3 { color: var(--ink); margin-bottom: .25em; }
.card p { color: var(--body-text); }
.card a { color: var(--accent); }
.card .tag {
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  padding: 4px 10px; border-radius: 9999px; margin-bottom: 12px;
}
.card p:last-child { margin-bottom: 0; }

/* feature card — single-color top border */
.feature { border-top: 3px solid var(--accent); }

/* ==========================================================================
   Value chips
   ========================================================================== */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 9999px;
  padding: 10px 20px; font-weight: 600; font-size: .92rem; color: var(--ink);
}

/* ==========================================================================
   Timeline
   ========================================================================== */
.timeline { position: relative; margin-top: 30px; padding-left: 0; }
.timeline::before {
  content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--accent);
  border-radius: 3px;
}
.tl-item { position: relative; padding: 0 0 34px 56px; }
.tl-item::before {
  content: ""; position: absolute; left: 9px; top: 4px;
  width: 21px; height: 21px; border-radius: 50%;
  background: var(--surface);
  border: 4px solid var(--accent);
}
.tl-item:hover::before { border-color: var(--accent-hover); }
.tl-item .when { font-weight: 700; color: var(--accent); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; }
.tl-item h3 { margin: 2px 0 .3em; color: var(--ink); }
.tl-item p { color: var(--muted); }

/* ==========================================================================
   Phase / structured detail blocks (Scouting journey, projects, modules)
   ========================================================================== */
.detail-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 22px; overflow: hidden;
}
.detail-block > summary {
  list-style: none; cursor: pointer; padding: 22px 26px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.detail-block > summary::-webkit-details-marker { display: none; }
.detail-block > summary h3 { margin: 0; color: var(--ink); }
.detail-block > summary .sub { font-size: .85rem; color: var(--muted); font-weight: 600; }
.detail-block > summary .chev { font-size: 1.4rem; color: var(--accent); transition: transform .2s ease; }
.detail-block[open] > summary .chev { transform: rotate(45deg); }
.detail-body { padding: 0 26px 26px; border-top: 1px solid var(--line); }
.detail-body .field { margin-top: 16px; }
.detail-body .field-label {
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 3px;
}
.detail-body p { color: var(--body-text); }

/* sub-grid of labelled fields */
.field-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 16px; }

/* ==========================================================================
   Case study callout
   ========================================================================== */
.casestudy {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px; display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.casestudy h3 { color: var(--ink); grid-column: 1 / -1; }
.casestudy .cs-field .field-label { color: var(--accent); }

/* ==========================================================================
   Cluster tabs (Wood Badge)
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tab-btn {
  font-family: var(--font-body); font-weight: 600; font-size: .9rem;
  padding: 10px 18px; border-radius: 9999px; cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--body-text);
  transition: all .15s ease;
}
.tab-btn:hover { border-color: var(--accent); color: var(--ink); }
.tab-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ==========================================================================
   Gallery
   ========================================================================== */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gphoto {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--surface-tint);
  border: 1px solid var(--line);
}
.gphoto .ph {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft-2);
  color: var(--accent); font-family: var(--font-head); font-size: 2rem;
}
.gphoto img { width: 100%; height: 100%; object-fit: cover; }
.gphoto .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.80));
  color: #fff; padding: 30px 16px 14px; font-size: .85rem; line-height: 1.4;
}

/* ==========================================================================
   Resources / media lists
   ========================================================================== */
.res-list { display: grid; gap: 14px; }
.res-item {
  display: flex; align-items: center; gap: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
}
.res-item .ic {
  flex: 0 0 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.res-item .meta { flex: 1; }
.res-item .meta h4 { margin: 0 0 2px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--ink); }
.res-item .meta p { margin: 0; font-size: .85rem; color: var(--muted); }

/* ==========================================================================
   Contact
   ========================================================================== */
.contact-grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
@media (max-width: 800px){ .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  color: var(--body-text);
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.contact-card__icon { font-size: 1.8rem; margin-bottom: 12px; }
.contact-card h3 { color: var(--ink); margin-bottom: .35em; }
.contact-card p { color: var(--body-text); margin-bottom: 18px; }

.contact-card--photo { padding: 14px; display: flex; flex-direction: column; }
.contact-card--photo .contact-card__img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: calc(var(--radius) - 6px); display: block; margin-bottom: 14px;
}
.contact-card--photo h3 { margin-bottom: .2em; }
.contact-card--photo p { margin-bottom: 0; }
.field-input {
  width: 100%; font-family: var(--font-body); font-size: .95rem;
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface);
  color: var(--ink); margin-bottom: 14px;
}
.field-input::placeholder { color: var(--muted); }
.field-input:focus { outline: 2px solid var(--accent); border-color: var(--accent); }
textarea.field-input { resize: vertical; min-height: 130px; }
.social-row { display: flex; flex-direction: column; gap: 12px; }
.social-link {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface);
  font-weight: 600; color: var(--ink);
}
.social-link { transition: transform .15s ease, border-color .15s ease; }
.social-link:hover { text-decoration: none; border-color: var(--accent); transform: translateX(4px); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--accent);
  border-top: 1px solid var(--accent);
  color: var(--on-accent-muted); padding: 50px 0 30px;
}
.footer-grid { display: grid; gap: 30px; grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: var(--on-accent); font-family: var(--font-body); font-weight: 700; font-size: .95rem; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { color: var(--on-accent-muted); font-size: .9rem; }
.site-footer a:hover { color: var(--on-accent); text-decoration: none; }
.site-footer p { color: var(--on-accent-muted); }
.site-footer .btn { background: var(--on-accent); color: var(--accent); }
.site-footer .btn:hover { background: var(--on-accent-muted); color: var(--accent); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-brand { font-family: var(--font-head); font-size: 2rem; color: var(--on-accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.18); margin-top: 36px; padding-top: 20px; font-size: .8rem; color: var(--on-accent-muted); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* footer nav-links override (inside footer, different context) */
.site-footer .nav-links {
  position: static; background: transparent; flex-direction: column;
  max-height: none; overflow: visible; padding: 0; border: none; box-shadow: none;
}
.site-footer .nav-links a { color: var(--on-accent-muted); padding: 4px 0; border-radius: 0; font-size: .9rem; }
.site-footer .nav-links a:hover { color: var(--on-accent); background: transparent; }

/* ==========================================================================
   Utilities & reveal animation
   ========================================================================== */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* stack helpers */
.split { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 820px){ .split { grid-template-columns: 1fr; } }
.portrait-ph {
  aspect-ratio: 4/5; border-radius: var(--radius);
  background: var(--accent-soft-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-family: var(--font-head); font-size: 2.4rem; text-align: center; padding: 20px;
}

/* ==========================================================================
   Scout Method — interactive radial diagram
   ========================================================================== */
.scout-method { margin: 8px 0 4px; }
.sm-intro { color: var(--muted); max-width: 720px; margin: 0 auto 8px; text-align: center; }
.sm-foot { color: var(--muted); font-size: .85rem; max-width: 720px; margin: 18px auto 0; text-align: center; }

.sm-diagram {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 18px auto 0;
  aspect-ratio: 1 / 1;
}

/* SVG spokes + ring */
.sm-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sm-ring { fill: none; stroke: var(--line-strong); stroke-width: 2; stroke-dasharray: 4 7; opacity: .8; }
.sm-spoke {
  stroke: var(--line-strong); stroke-width: 2; transition: stroke .25s ease, stroke-width .25s ease;
}
.sm-spoke.active { stroke: var(--accent); stroke-width: 4; }
.sm-spoke.glow   { stroke: var(--accent); stroke-width: 3; opacity: .6; }

/* central hub */
.sm-hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 34%; aspect-ratio: 1/1; border-radius: 50%; cursor: pointer;
  border: none; color: var(--on-accent); font-family: var(--font-body);
  background: var(--accent);
  box-shadow: var(--shadow-md);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  z-index: 3; padding: 6px;
}
.sm-hub:hover { transform: translate(-50%, -50%) scale(1.04); }
.sm-hub.all { box-shadow: 0 0 0 6px var(--accent-soft-2), var(--shadow-md); }
.sm-hub.dimmed { opacity: .85; }
.sm-hub-title { font-family: var(--font-head); font-size: clamp(1.2rem, 4.4vw, 1.9rem); color: var(--on-accent); line-height: 1; }
.sm-hub-sub { font-size: clamp(.5rem, 1.7vw, .68rem); letter-spacing: .04em; text-transform: uppercase; color: var(--on-accent-muted); margin-top: 4px; }

/* element nodes */
.sm-nodes { position: absolute; inset: 0; z-index: 2; }
.sm-node {
  position: absolute; transform: translate(-50%, -50%);
  width: 23%; aspect-ratio: 1/1; border-radius: 50%; cursor: pointer;
  border: 3px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-body); padding: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.sm-node:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: var(--shadow-md); border-color: var(--accent); }
.sm-node.active {
  background: var(--accent);
  color: var(--on-accent); border-color: var(--accent);
  transform: translate(-50%, -50%) scale(1.12); box-shadow: var(--shadow-md);
}
.sm-node.glow { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow-sm); }
.sm-node-num {
  font-family: var(--font-head); font-size: clamp(.7rem, 2.4vw, 1rem); line-height: 1;
  color: var(--accent);
  background: var(--accent-soft); border-radius: 9999px;
  padding: 1px 8px; margin-bottom: 3px; min-width: 22px;
}
.sm-node.active .sm-node-num { background: rgba(255,255,255,0.22); color: var(--on-accent); }
.sm-node-title { font-size: clamp(.5rem, 1.7vw, .72rem); font-weight: 700; line-height: 1.1; text-align: center; }

/* detail panel */
.sm-detail { max-width: 620px; margin: 22px auto 0; }
.sm-detail.in .sm-detail-card { animation: smPop .25s ease; }
.sm-detail-card {
  position: relative;
  background: var(--surface);
  color: var(--body-text);
  border-radius: var(--radius); padding: 26px 28px; box-shadow: var(--shadow-md);
}
.sm-detail-card h3 { color: var(--ink); margin: 6px 0 .4em; }
.sm-detail-card p { margin: 0; color: var(--body-text); }
.sm-num {
  display: inline-block; font-family: var(--font-head); font-size: 1rem;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 9999px; padding: 2px 14px; letter-spacing: .05em;
}
.sm-close {
  position: absolute; top: 14px; right: 14px; background: var(--surface-tint-2); color: var(--ink);
  border: none; border-radius: 9999px; padding: 6px 14px; font-family: var(--font-body);
  font-size: .8rem; font-weight: 600; cursor: pointer; transition: background .15s ease;
}
.sm-close:hover { background: var(--line-strong); }
@keyframes smPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  .sm-node { width: 26%; border-width: 2px; }
  .sm-detail-card { padding: 22px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sm-hub, .sm-node, .sm-spoke { transition: none; }
  .sm-detail.in .sm-detail-card { animation: none; }
}

/* ==========================================
   DYNAMIC WOOD BADGE CONTENT
========================================== */

#woodbadge-content {
  margin-top: 24px;
}

#woodbadge-content .tab-panel {
  display: none;
}

#woodbadge-content .tab-panel.active {
  display: block;
}

.doc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.doc-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
  border-radius: 12px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 600;
  transition: all .2s ease;
}

.doc-card:hover {
  transform: translateY(-2px);
  background: var(--accent-soft-2);
  text-decoration: none;
}

.supporting-docs {
  margin-top: 16px;
}

.supporting-docs h4 {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.95rem;
}

.field-grid {
  display: grid;
  gap: 18px;
}

.field {
  padding: 18px;
  border-radius: 14px;
  background: var(--surface-tint);
  border: 1px solid var(--line);
}

.field-label {
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--accent);
}

.field p {
  line-height: 1.7;
  color: var(--body-text);
}

/* Loading state */
#woodbadge-content p {
  line-height: 1.7;
  color: var(--body-text);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

/* ===== 3D photo card ===== */
.hero-photo {
  perspective: 1000px;
  display: flex;
  justify-content: center;
}

.hero-photo__inner {
  position: relative;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 4 / 5;
  border-radius: 18px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .15s ease-out, box-shadow .3s ease;
  box-shadow: var(--shadow-md);
  will-change: transform;
}

.hero-photo__inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
}

/* moving highlight that sells the 3D tilt */
.hero-photo__shine {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, .35),
    rgba(255, 255, 255, 0) 55%
  );
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.hero-photo__inner:hover .hero-photo__shine { opacity: 1; }

.hero-photo__inner:hover {
  box-shadow: 0 24px 48px rgba(20,23,31,.20);
}

/* Stack on mobile, drop the tilt */
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-photo { order: -1; }
  .hero-photo__inner { max-width: 280px; }
}

/* ===== Photo / Evidence grid ===== */
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 12px;
}
.evidence-card {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .2s ease, box-shadow .2s ease;
}
.evidence-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}
.evidence-card a { display: block; cursor: zoom-in; }
.evidence-card img {
  width: 100%; height: 180px; object-fit: cover; display: block;
}
.evidence-card figcaption {
  padding: 10px 12px; font-size: .85rem; font-weight: 600;
  color: var(--accent);
}

/* Inline evidence thumbnail used inside a dynamic Wood Badge section */
.wb-inline-evidence {
  max-width: 220px;
  margin-top: 14px;
}
.wb-inline-evidence img { height: 130px; }

/* ===== Google Drive folder cards ===== */
.drive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.drive-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.drive-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
  text-decoration: none;
}
.drive-card__icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  color: var(--accent);
}
.drive-card__body { min-width: 0; }
.drive-card__title {
  font-size: .95rem; font-weight: 700;
  color: var(--accent);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.drive-card__label {
  font-size: .78rem; font-weight: 500;
  color: var(--muted);
  margin-top: 2px;
}

/* ===== Link pills ===== */
.link-grid {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px;
}
.link-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 9999px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none; font-weight: 600; font-size: .9rem;
  transition: transform .15s ease, background .15s ease;
}
.link-pill:hover { transform: translateY(-2px); background: var(--accent-hover); text-decoration: none; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(10,11,16,.92);
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 16px; z-index: 1000; padding: 40px;
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: 90vw; max-height: 80vh; object-fit: contain;
  border-radius: 8px; box-shadow: 0 10px 40px rgba(0,0,0,.6); cursor: default;
}
.lightbox__caption { color: #fff; font-size: .95rem; text-align: center; max-width: 80vw; }
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: rgba(255,255,255,.15); color: #fff; border: none;
  font-size: 1.4rem; width: 44px; height: 44px; border-radius: 50%;
  cursor: pointer; line-height: 1;
}
.lightbox__close:hover { background: rgba(255,255,255,.30); }

.site-footer .nav-links { display: grid; gap: 4px; align-items: center; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }

/* ==========================================
   SCOUTING JOURNEY STORY TIMELINE
========================================== */

.scouting-story .lead {
  max-width: 780px;
}

.journey-timeline {
  position: relative;
  margin-top: 48px;
  display: grid;
  gap: 34px;
}

.journey-timeline::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
  opacity: .5;
  border-radius: 999px;
}

.journey-card {
  position: relative;
  margin-left: 64px;
  padding: 28px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.journey-card::before {
  content: "";
  position: absolute;
  left: -52px;
  top: 34px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--surface);
  box-shadow: 0 0 0 3px var(--line-strong);
}

.journey-year {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.journey-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
}

.journey-card p {
  line-height: 1.8;
  margin-bottom: 14px;
}

.journey-card p:last-child {
  margin-bottom: 0;
}

.journey-card--highlight {
  background: var(--accent-soft);
  border: 1px solid var(--accent-soft-2);
}

/* ---- Journey card icon ---- */
.journey-icon {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-tint);
  opacity: .9;
}
.journey-icon svg { width: 28px; height: 28px; }

/* ---- Cubs — amber ---- */
.journey-card--cubs {
  background: rgba(217,119,6,0.07);
  border-color: rgba(180,83,9,0.30);
}
.journey-card--cubs .journey-year { background: rgba(217,119,6,0.16); color: #92400e; }
.journey-card--cubs h3 { color: #92400e; }
.journey-card--cubs::before { background: #d97706; border-color: var(--surface); box-shadow: 0 0 0 3px rgba(180,83,9,0.30); }
.journey-card--cubs .journey-icon { background: rgba(217,119,6,0.14); color: #92400e; }

/* ---- Scout — green ---- */
.journey-card--scout {
  background: rgba(22,163,74,0.06);
  border-color: rgba(21,128,61,0.28);
}
.journey-card--scout .journey-year { background: rgba(22,163,74,0.14); color: #15803d; }
.journey-card--scout h3 { color: #15803d; }
.journey-card--scout::before { background: #16a34a; border-color: var(--surface); box-shadow: 0 0 0 3px rgba(21,128,61,0.28); }
.journey-card--scout .journey-icon { background: rgba(22,163,74,0.14); color: #15803d; }

/* ---- Venture — maroon ---- */
.journey-card--venture {
  background: rgba(190,18,60,0.07);
  border-color: rgba(159,18,57,0.28);
}
.journey-card--venture .journey-year { background: rgba(225,29,72,0.14); color: #9f1239; }
.journey-card--venture h3 { color: #9f1239; }
.journey-card--venture::before { background: #be123c; border-color: var(--surface); box-shadow: 0 0 0 3px rgba(159,18,57,0.28); }
.journey-card--venture .journey-icon { background: rgba(190,18,60,0.14); color: #9f1239; }

/* ---- Blue (Adult / DYSC) ---- */
.journey-card--blue {
  background: rgba(29,78,216,0.06);
  border-color: rgba(29,78,216,0.26);
}
.journey-card--blue .journey-year { background: rgba(29,78,216,0.14); color: #1d4ed8; }
.journey-card--blue h3 { color: #1d4ed8; }
.journey-card--blue::before { background: #2563eb; border-color: var(--surface); box-shadow: 0 0 0 3px rgba(29,78,216,0.26); }
.journey-card--blue .journey-icon { background: rgba(29,78,216,0.14); color: #1d4ed8; }

/* Desktop alternating timeline */
@media (min-width: 900px) {
  .journey-timeline {
    grid-template-columns: 1fr 1fr;
    column-gap: 80px;
  }

  .journey-timeline::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .journey-card {
    margin-left: 0;
  }

  .journey-card:nth-child(odd) {
    grid-column: 1;
  }

  .journey-card:nth-child(even) {
    grid-column: 2;
  }

  .journey-card:nth-child(odd)::before {
    left: auto;
    right: -50px;
  }

  .journey-card:nth-child(even)::before {
    left: -50px;
  }
}
