/* ============================================================
   האגודה לקרימינולוגים קליניים בישראל
   Design system — academic / clinical / prestige
   RTL Hebrew · 2026
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@400;500;700;900&family=Heebo:wght@300;400;500;700;800&family=Assistant:wght@300;400;600;700&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* palette — ink navy + parchment + bronze */
  --ink:        #14233A;   /* deep navy ink */
  --ink-2:      #0C1726;   /* near-black navy */
  --ink-soft:   #2B3F5C;
  --bronze:     #B0894F;   /* prestige accent */
  --bronze-deep:#8C6A38;
  --bronze-soft:#D9C4A0;
  --parchment:  #F7F3EC;
  --stone:      #ECE5DA;
  --stone-2:    #E2D9CB;
  --cream:      #FBF9F5;
  --charcoal:   #1A1A1A;
  --muted:      #5C6675;
  --line:       rgba(20,35,58,0.12);
  --white:      #ffffff;

  /* typography */
  --serif: 'Frank Ruhl Libre', Georgia, serif;
  --sans:  'Heebo', 'Assistant', system-ui, sans-serif;

  /* spacing / shape */
  --radius: 18px;
  --radius-lg: 28px;
  --radius-sm: 12px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  /* motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;

  /* shadow */
  --sh-1: 0 2px 8px rgba(20,35,58,0.06);
  --sh-2: 0 16px 40px -12px rgba(20,35,58,0.18);
  --sh-3: 0 30px 70px -20px rgba(20,35,58,0.28);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--parchment);
  color: var(--charcoal);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 3px; border-radius: 4px; }

/* ---------- Layout helpers ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 130px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* skip link */
.skip-link {
  position: absolute; inset-inline-start: 16px; top: -60px;
  background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 8px;
  z-index: 2000; transition: top .25s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 16px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.18; font-weight: 700; text-wrap: balance; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--sans);
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--bronze-deep);
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 34px; height: 1.5px; background: var(--bronze); display: inline-block; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); margin-top: 18px; font-weight: 900; }
.section-head p { color: var(--muted); font-size: clamp(1.02rem, 1.6vw, 1.18rem); margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: 15px 30px; border-radius: 100px;
  font-weight: 600; font-size: .98rem; letter-spacing: .01em;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn--primary { background: var(--bronze); color: #fff; box-shadow: 0 10px 24px -8px rgba(var(--bronze-rgb),.7); }
.btn--primary:hover { background: var(--bronze-deep); transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(var(--bronze-rgb),.8); }
.btn--primary:hover svg { transform: translateX(-4px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); transform: translateY(-3px); }
.btn--light { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn--lg { padding: 18px 38px; font-size: 1.05rem; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed; inset-inline: 0; top: 0; z-index: 1000;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding-block: 20px;
}
.header.scrolled {
  background: rgba(247,243,236,.82);
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 10px 30px -18px rgba(20,35,58,.3);
  padding-block: 12px;
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; }
.brand__mark {
  width: 48px; height: 48px; flex: none; border-radius: 50%;
  background: #fff; padding: 5px;
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(20,35,58,.16), inset 0 0 0 1px rgba(20,35,58,.06);
  position: relative; overflow: hidden;
}
.brand__mark img, .brand__mark svg { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand__txt strong { font-family: var(--serif); font-weight: 700; font-size: 1.12rem; color: var(--ink); display: block; line-height: 1.1; }
.brand__txt span { font-size: .73rem; color: var(--muted); letter-spacing: .04em; }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  padding: 9px 14px; border-radius: 100px; font-size: .94rem; font-weight: 500; color: var(--ink);
  position: relative; transition: background .3s var(--ease), color .3s var(--ease);
}
.nav__links a:hover { background: rgba(20,35,58,.06); }
.nav__cta { display: flex; align-items: center; gap: 10px; }

/* header over dark hero (top, not scrolled) — switch content to light so it's visible */
.header:not(.scrolled) .brand__txt strong { color: #fff; }
.header:not(.scrolled) .brand__txt span { color: rgba(255,255,255,.7); }
.header:not(.scrolled) .nav__links > a { color: rgba(255,255,255,.92); }
.header:not(.scrolled) .nav__links > a:hover { background: rgba(255,255,255,.14); }
.header:not(.scrolled) .nav__toggle { background: rgba(255,255,255,.16); }
.header:not(.scrolled) .nav__toggle span { background: #fff; }
.header:not(.scrolled) .btn--ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.32); }
.header:not(.scrolled) .btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
/* dropdown links always dark (cream panel) regardless of header state */
.nav__links.open > a { color: var(--ink); }

.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 12px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; background: rgba(20,35,58,.05); }
.nav__toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), opacity .25s; }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 60px;
  background:
    linear-gradient(180deg, rgba(var(--ink-2-rgb),.97) 0%, rgba(var(--ink-2-rgb),.92) 45%, rgba(var(--ink-soft-rgb),.84) 78%, rgba(var(--ink-2-rgb),.95) 100%),
    url('../assets/hero.jpg') center/cover no-repeat;
  color: #fff; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .5;
}
.hero__bg::before { width: 50vw; height: 50vw; background: radial-gradient(circle, rgba(var(--bronze-rgb),.55), transparent 70%); top: -10%; inset-inline-start: -8%; }
.hero__bg::after { width: 42vw; height: 42vw; background: radial-gradient(circle, rgba(var(--ink-soft-rgb),.9), transparent 70%); bottom: -15%; inset-inline-end: -5%; }
.hero__grid-lines { position:absolute; inset:0; z-index:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 80%);
}
.hero .container { position: relative; z-index: 2; }
.hero__inner { max-width: 920px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px; border-radius: 100px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .82rem; font-weight: 500; letter-spacing: .03em; margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero__badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bronze-soft); box-shadow: 0 0 0 4px rgba(217,196,160,.25); }
.hero h1 {
  color: #fff; font-weight: 900;
  font-size: clamp(2.6rem, 6.4vw, 5.4rem); line-height: 1.05; letter-spacing: -.01em;
}
.hero h1 .accent { color: var(--bronze-soft); font-style: italic; font-weight: 700; }
.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: rgba(255,255,255,.82); max-width: 640px;
  margin-top: 28px; font-weight: 300;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }
.hero__scroll {
  position: absolute; inset-inline-start: 50%; bottom: 30px; transform: translateX(50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,.6); font-size: .74rem; letter-spacing: .1em;
}
.hero__scroll .mouse { width: 24px; height: 38px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; top:7px; inset-inline-start:50%; transform:translateX(50%); width:4px; height:7px; background: var(--bronze-soft); border-radius: 4px; animation: scrolldot 1.8s var(--ease) infinite; }
@keyframes scrolldot { 0%{opacity:0; transform:translate(50%,0);} 40%{opacity:1;} 80%{opacity:0; transform:translate(50%,10px);} 100%{opacity:0;} }

/* hero entrance animation — base state is VISIBLE; animation only adds an intro.
   `backwards` fill shows the from-state during the delay, then settles back to the
   visible base, so if the animation never runs the content still shows. */
.reveal-hero > * { animation: heroIn .9s var(--ease) backwards; }
.reveal-hero > *:nth-child(1){ animation-delay:.05s; }
.reveal-hero > *:nth-child(2){ animation-delay:.18s; }
.reveal-hero > *:nth-child(3){ animation-delay:.31s; }
.reveal-hero > *:nth-child(4){ animation-delay:.44s; }
@keyframes heroIn { from { transform: translateY(22px); } to { transform: translateY(0); } }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats {
  background: var(--cream); border-block: 1px solid var(--line);
  position: relative; z-index: 3;
}
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(28px,4vw,48px) 24px; text-align: center; position: relative; }
.stat + .stat::before { content:""; position:absolute; inset-inline-start:0; top:24%; height:52%; width:1px; background: var(--line); }
.stat__num { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; color: var(--ink); line-height: 1; }
.stat__num .suf { color: var(--bronze); }
.stat__label { margin-top: 10px; font-size: .92rem; color: var(--muted); font-weight: 500; }

/* ============================================================
   ABOUT / WHAT IS
   ============================================================ */
.about__layout { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__text h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); font-weight: 900; }
.about__text .lead { font-size: 1.18rem; color: var(--ink-soft); margin-top: 22px; font-weight: 500; }
.about__text p { color: var(--muted); margin-top: 18px; }
.about__pillars { margin-top: 30px; display: grid; gap: 14px; }
.pillar { display: flex; gap: 14px; align-items: flex-start; }
.pillar__icon { flex: none; width: 40px; height: 40px; border-radius: 11px; background: var(--stone); display: grid; place-items: center; color: var(--bronze-deep); }
.pillar__icon svg { width: 20px; height: 20px; }
.pillar strong { display: block; color: var(--ink); font-size: 1.02rem; }
.pillar span { color: var(--muted); font-size: .92rem; }

.about__visual { position: relative; }
.about__photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-3); aspect-ratio: 4 / 3.6; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about__photo-quote { position: absolute; inset-inline: 0; bottom: 0; padding: 64px 32px 30px; background: linear-gradient(transparent, rgba(var(--ink-2-rgb),.55) 35%, rgba(var(--ink-2-rgb),.95)); color: #fff; }
.about__photo-quote p { font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; font-weight: 500; }
.about__photo-quote .src { display: block; margin-top: 14px; font-family: var(--sans); font-size: .82rem; color: var(--bronze-soft); letter-spacing: .03em; }
.about__card {
  background: linear-gradient(160deg, var(--ink), var(--ink-soft)); color: #fff;
  border-radius: var(--radius-lg); padding: 40px; box-shadow: var(--sh-3); position: relative; overflow: hidden;
}
.about__card::before { content:""; position:absolute; inset:0; background: radial-gradient(circle at 80% 0%, rgba(176,137,79,.4), transparent 55%); }
.about__card-q { position: relative; font-family: var(--serif); font-size: 1.5rem; line-height: 1.5; font-weight: 500; }
.about__card-q::before { content:"“"; font-size: 4rem; color: var(--bronze-soft); line-height: 0; display:block; height: 30px; }
.about__card-meta { position: relative; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.15); }
.about__card-meta strong { display:block; }
.about__card-meta span { color: rgba(255,255,255,.6); font-size:.9rem; }
.about__float {
  position: absolute; inset-inline-end: -18px; bottom: -26px; background: var(--bronze); color:#fff;
  padding: 18px 22px; border-radius: 16px; box-shadow: var(--sh-2); max-width: 200px;
}
.about__float strong { font-family: var(--serif); font-size: 1.05rem; display:block; }
.about__float span { font-size:.82rem; opacity:.85; }

/* ============================================================
   BENTO — domains
   ============================================================ */
.domains { background: var(--cream); }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(150px, auto); gap: 16px; }
.bento__cell {
  background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
  position: relative; overflow: hidden;
}
.bento__cell:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: var(--bronze-soft); }
.bento__cell .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--ink); color: var(--bronze-soft); display: grid; place-items: center; }
.bento__cell .ico svg { width: 24px; height: 24px; }
.bento__cell h3 { font-size: 1.22rem; }
.bento__cell p { color: var(--muted); font-size: .94rem; }
.bento__cell--wide { grid-column: span 2; }
.bento__cell--tall { grid-row: span 2; }
.bento__cell--feature {
  grid-column: span 2; grid-row: span 2;
  background: linear-gradient(155deg, var(--ink), var(--ink-soft)); color: #fff; justify-content: flex-end;
}
.bento__cell--feature h3 { color: #fff; font-size: 1.7rem; }
.bento__cell--feature p { color: rgba(255,255,255,.75); font-size: 1rem; }
.bento__cell--feature .ico { background: rgba(255,255,255,.12); }
.bento__cell--bronze { background: linear-gradient(150deg, var(--bronze), var(--bronze-deep)); color:#fff; }
.bento__cell--bronze h3 { color:#fff; } .bento__cell--bronze p { color: rgba(255,255,255,.85); }
.bento__cell--bronze .ico { background: rgba(255,255,255,.18); color:#fff; }

/* ============================================================
   COMMITTEES
   ============================================================ */
.committees__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cmt {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; overflow: hidden;
}
.cmt::before { content:""; position:absolute; top:0; inset-inline-start:0; width:100%; height:3px; background: var(--bronze); transform: scaleX(0); transform-origin: inline-end; transition: transform .45s var(--ease); }
.cmt:hover { transform: translateY(-4px); box-shadow: var(--sh-2); }
.cmt:hover::before { transform: scaleX(1); transform-origin: inline-start; }
.cmt__n { font-family: var(--serif); font-size: 1rem; font-weight: 700; color: var(--bronze); }
.cmt h3 { font-size: 1.24rem; margin-top: 6px; }
.cmt p { color: var(--muted); font-size: .93rem; margin-top: 10px; }
.cmt__chair { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: .88rem; color: var(--ink-soft); }
.cmt__chair b { color: var(--ink); }

/* ============================================================
   LEADERSHIP
   ============================================================ */
.leaders { background: var(--ink); color: #fff; }
.leaders .section-head h2 { color: #fff; }
.leaders .section-head p { color: rgba(255,255,255,.7); }
.leaders .eyebrow { color: var(--bronze-soft); }
.leaders__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.leader {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius);
  padding: 30px 26px; min-height: 168px;
  display: flex; flex-direction: column; gap: 12px; justify-content: flex-end;
  transition: background .4s var(--ease), transform .4s var(--ease), border-color .4s var(--ease);
  position: relative; overflow: hidden;
}
.leader::before {
  content:""; position:absolute; top:0; inset-inline-start:0; width:100%; height:3px;
  background: linear-gradient(90deg, var(--bronze), transparent);
  transform: scaleX(0); transform-origin: inline-end; transition: transform .5s var(--ease);
}
.leader:hover { background: rgba(255,255,255,.08); transform: translateY(-5px); border-color: rgba(176,137,79,.4); }
.leader:hover::before { transform: scaleX(1); transform-origin: inline-start; }
.leader__role { color: var(--bronze-soft); font-size: .82rem; font-weight: 600; letter-spacing: .03em; display: flex; align-items: center; gap: 9px; }
.leader__role::before { content:""; width: 20px; height: 1.5px; background: var(--bronze); flex: none; }
.leader h3 { color: #fff; font-size: 1.2rem; line-height: 1.25; }
.leader--memoriam { border-color: rgba(176,137,79,.35); background: rgba(176,137,79,.06); }
.leader--memoriam h3 { color: var(--bronze-soft); }

/* ============================================================
   TIMELINE — conferences
   ============================================================ */
.timeline { position: relative; max-width: 860px; margin-inline: auto; }
.timeline::before { content:""; position:absolute; inset-inline-start: 120px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--bronze), var(--line)); }
.tl-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 36px; padding-bottom: 36px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-year { font-family: var(--serif); font-size: 1.6rem; font-weight: 900; color: var(--ink); text-align: start; padding-top: 2px; }
.tl-dot { position: absolute; inset-inline-start: 113px; top: 8px; width: 16px; height: 16px; border-radius: 50%; background: var(--bronze); border: 3px solid var(--parchment); box-shadow: 0 0 0 3px var(--bronze-soft); z-index: 2; }
.tl-body { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.tl-body:hover { transform: translateX(-6px); box-shadow: var(--sh-2); }
.tl-body h3 { font-size: 1.18rem; }
.tl-body span { display:block; color: var(--muted); font-size: .88rem; margin-top: 6px; }
.tl-item--featured .tl-body { background: linear-gradient(150deg, var(--ink), var(--ink-soft)); color:#fff; }
.tl-item--featured .tl-body h3 { color:#fff; } .tl-item--featured .tl-body span { color: var(--bronze-soft); }
.tl-tag { display:inline-block; font-size:.7rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color: var(--bronze-soft); margin-bottom:8px; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { background: var(--cream); }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 215px; gap: 14px; }
.gphoto { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--sh-1); cursor: pointer; }
.gphoto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s var(--ease); }
.gphoto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(var(--ink-2-rgb),.45)); opacity: 0; transition: opacity .45s var(--ease); }
.gphoto:hover img { transform: scale(1.07); }
.gphoto:hover::after { opacity: 1; }
.gphoto:first-child { grid-column: span 2; grid-row: span 2; }
.gallery__cta { text-align: center; margin-top: 36px; }

/* ============================================================
   TRAINING
   ============================================================ */
.training__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.train-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease); position: relative; overflow: hidden;
}
.train-card:hover { transform: translateY(-5px); box-shadow: var(--sh-2); }
.train-card__tag { display:inline-block; font-size:.78rem; font-weight:700; letter-spacing:.05em; color: var(--bronze-deep); background: var(--stone); padding: 5px 13px; border-radius: 100px; margin-bottom: 18px; }
.train-card h3 { font-size: 1.5rem; }
.train-card p { color: var(--muted); margin-top: 14px; }
.train-card__list { margin-top: 20px; display: grid; gap: 11px; }
.train-card__list li { display: flex; gap: 11px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); }
.train-card__list svg { width: 18px; height: 18px; flex: none; color: var(--bronze); margin-top: 4px; }
.train-card__meta { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 20px; }
.train-card__meta div span { display:block; font-size: .78rem; color: var(--muted); }
.train-card__meta div strong { font-family: var(--serif); color: var(--ink); font-size: 1.1rem; }

/* ============================================================
   KNOWLEDGE — tabs
   ============================================================ */
.knowledge { background: var(--cream); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.tab {
  padding: 13px 22px; font-weight: 600; color: var(--muted); position: relative; font-size: 1rem;
  transition: color .3s var(--ease);
}
.tab::after { content:""; position:absolute; bottom:-1px; inset-inline: 0; height: 2.5px; background: var(--bronze); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
.k-list { display: grid; gap: 14px; }
.k-item {
  background: var(--parchment); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px;
  display: flex; gap: 18px; align-items: flex-start; transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.k-item:hover { transform: translateX(-5px); box-shadow: var(--sh-1); border-color: var(--bronze-soft); }
.k-item__idx { font-family: var(--serif); font-weight: 700; color: var(--bronze); font-size: 1.1rem; flex: none; }
.k-item h3 { font-size: 1.08rem; line-height: 1.4; }
.k-item p { color: var(--muted); font-size: .9rem; margin-top: 5px; }

/* ============================================================
   MEMBERSHIP
   ============================================================ */
.membership { background: linear-gradient(165deg, var(--ink-2), var(--ink)); color: #fff; overflow: hidden; position: relative; }
.membership::before { content:""; position:absolute; width:50vw; height:50vw; border-radius:50%; background: radial-gradient(circle, rgba(var(--bronze-rgb),.25), transparent 70%); top:-20%; inset-inline-end:-10%; filter: blur(60px); }
.membership .section-head h2 { color:#fff; }
.membership .section-head p { color: rgba(255,255,255,.72); }
.membership .eyebrow { color: var(--bronze-soft); }
.membership__layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 5vw, 70px); align-items: center; position: relative; }
.tiers { display: grid; gap: 14px; }
.tier {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius);
  padding: 24px 26px; display: flex; align-items: center; gap: 18px; transition: background .35s var(--ease), transform .35s var(--ease);
}
.tier:hover { background: rgba(255,255,255,.09); transform: translateX(-5px); }
.tier__check { width: 38px; height: 38px; flex:none; border-radius: 11px; background: rgba(176,137,79,.2); color: var(--bronze-soft); display:grid; place-items:center; }
.tier__check svg { width:20px; height:20px; }
.tier h3 { color:#fff; font-size: 1.15rem; }
.tier p { color: rgba(255,255,255,.66); font-size: .9rem; }
.join-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--radius-lg);
  padding: 40px; backdrop-filter: blur(10px); box-shadow: var(--sh-3);
}
.join-card__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.join-card__price .num { font-family: var(--serif); font-size: 3.4rem; font-weight: 900; color: #fff; }
.join-card__price .cur { font-size: 1.6rem; color: var(--bronze-soft); }
.join-card__price .per { color: rgba(255,255,255,.6); font-size: .95rem; }
.join-card > p { color: rgba(255,255,255,.7); margin-bottom: 26px; }
.steps { display: grid; gap: 0; margin-bottom: 30px; }
.step { display: flex; gap: 16px; padding-bottom: 22px; position: relative; }
.step:last-child { padding-bottom: 0; }
.step:not(:last-child)::before { content:""; position:absolute; inset-inline-start: 15px; top: 34px; bottom: 6px; width: 2px; background: rgba(255,255,255,.14); }
.step__n { width: 32px; height: 32px; flex:none; border-radius: 50%; background: var(--bronze); color:#fff; display:grid; place-items:center; font-weight:700; font-size:.9rem; z-index:1; }
.step strong { color:#fff; display:block; font-size: 1rem; }
.step span { color: rgba(255,255,255,.6); font-size: .86rem; }

/* ============================================================
   ETHICS
   ============================================================ */
.ethics__layout { display:grid; grid-template-columns: 1fr 1.1fr; gap: clamp(36px,5vw,70px); align-items:center; }
.ethics__visual {
  aspect-ratio: 1/1; border-radius: var(--radius-lg); background: linear-gradient(150deg, var(--stone), var(--stone-2));
  display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: var(--sh-2);
}
.ethics__visual .scale { width: 56%; color: var(--ink); opacity:.92; }
.ethics__visual::before { content:""; position:absolute; width:140%; height:140%; background: conic-gradient(from 180deg, transparent, rgba(176,137,79,.18), transparent); animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ethics__list { margin-top: 26px; display:grid; gap: 16px; }
.ethics__list li { display:flex; gap:14px; align-items:flex-start; }
.ethics__list .num { font-family: var(--serif); font-weight: 700; color: var(--bronze); font-size: 1.25rem; flex:none; }
.ethics__list strong { display:block; color: var(--ink); }
.ethics__list span { color: var(--muted); font-size: .93rem; }

/* ============================================================
   DIRECTORY CTA
   ============================================================ */
.directory-cta { background: var(--cream); }
.directory-cta__box {
  background: linear-gradient(150deg, var(--bronze), var(--bronze-deep)); color:#fff;
  border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 70px); position: relative; overflow: hidden;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
}
.directory-cta__box::before { content:""; position:absolute; inset:0; background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,.18), transparent 45%); }
.directory-cta__box h2 { color:#fff; font-size: clamp(1.8rem, 3.6vw, 2.8rem); position:relative; }
.directory-cta__box p { color: rgba(255,255,255,.88); margin-top: 16px; position:relative; max-width: 520px; }
.directory-cta__box .btn { position: relative; }
.directory-cta__art { position: relative; display: grid; place-items: center; }
.directory-cta__art .pin { width: 60%; color:#fff; opacity:.92; filter: drop-shadow(0 12px 24px rgba(0,0,0,.2)); }

/* ============================================================
   CONTACT / FOOTER
   ============================================================ */
.contact { background: var(--ink-2); color:#fff; padding-top: clamp(64px,8vw,110px); }
.contact__layout { display:grid; grid-template-columns: 1.2fr 1fr; gap: clamp(40px,6vw,80px); align-items: start; }
.contact h2 { color:#fff; font-size: clamp(2rem,4vw,3rem); font-weight: 900; }
.contact > .container > .contact__layout .lead { color: rgba(255,255,255,.7); margin-top: 18px; max-width: 460px; }
.contact__methods { margin-top: 30px; display: grid; gap: 14px; }
.contact__method { display:flex; gap:16px; align-items:center; padding: 18px 22px; background: rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.1); border-radius: var(--radius); transition: background .35s var(--ease); }
.contact__method:hover { background: rgba(255,255,255,.08); }
.contact__method .ico { width:46px; height:46px; flex:none; border-radius:12px; background: rgba(176,137,79,.2); color: var(--bronze-soft); display:grid; place-items:center; }
.contact__method span { display:block; font-size:.8rem; color: rgba(255,255,255,.55); }
.contact__method strong { color:#fff; font-size: 1.05rem; word-break: break-word; }

.form { background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 34px; backdrop-filter: blur(8px); }
.form__row { margin-bottom: 18px; }
.form label { display:block; font-size:.86rem; color: rgba(255,255,255,.8); margin-bottom: 8px; font-weight: 500; }
.form input, .form textarea, .form select {
  width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04); color:#fff; font-family: inherit; font-size: .96rem; transition: border-color .3s, background .3s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(255,255,255,.4); }
.form input:focus, .form textarea:focus, .form select:focus { outline:none; border-color: var(--bronze); background: rgba(255,255,255,.07); }
.form textarea { resize: vertical; min-height: 110px; }
.form__note { font-size: .8rem; color: rgba(255,255,255,.5); margin-top: 12px; }

.footer { background: var(--ink-2); color: rgba(255,255,255,.6); border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(50px,7vw,90px); }
.footer__top { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; padding-block: 56px; }
.footer__brand .brand__txt strong { color:#fff; } .footer__brand .brand__txt span { color: rgba(255,255,255,.5); }
.footer__brand p { margin-top: 18px; font-size: .9rem; max-width: 280px; }
.footer__social { display:flex; gap: 10px; margin-top: 20px; }
.footer__social a { width:40px; height:40px; border-radius:11px; background: rgba(255,255,255,.06); display:grid; place-items:center; color:#fff; transition: background .3s, transform .3s; }
.footer__social a:hover { background: var(--bronze); transform: translateY(-3px); }
.footer__col h4 { color:#fff; font-family: var(--sans); font-size: .9rem; letter-spacing:.05em; text-transform: uppercase; margin-bottom: 16px; }
.footer__col a { display:block; padding: 6px 0; font-size: .92rem; transition: color .3s, padding .3s; }
.footer__col a:hover { color: var(--bronze-soft); padding-inline-start: 5px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; display:flex; flex-wrap:wrap; gap:16px; justify-content:space-between; font-size: .84rem; }
.footer__bottom a:hover { color:#fff; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .40s; }

/* progress bar */
.scroll-progress { position: fixed; top:0; inset-inline-start:0; height: 3px; width: 0; background: linear-gradient(90deg, var(--bronze), var(--bronze-soft)); z-index: 2000; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about__layout, .membership__layout, .ethics__layout, .contact__layout, .directory-cta__box { grid-template-columns: 1fr; }
  .leaders__grid { grid-template-columns: repeat(2, 1fr); }
  .committees__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .ethics__visual { max-width: 420px; margin-inline:auto; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 190px; }
  .about__photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 760px) {
  .nav__links, .nav__cta .btn { display: none; }   /* hide all top-bar buttons on mobile */
  .nav__toggle { display: flex; }
  .nav__links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; inset-inline: var(--gutter); top: 70px; background: var(--cream);
    padding: 14px; border-radius: var(--radius); box-shadow: var(--sh-3); border: 1px solid var(--line);
  }
  .nav__links.open a { padding: 14px 16px; border-radius: 12px; }
  .nav__links.open a:not(.nav__join):hover { background: rgba(20,35,58,.06); }
  .nav__join { display: inline-flex !important; justify-content: center; background: var(--bronze); color: #fff !important; font-weight: 600; margin-top: 8px; }
  .nav__join:hover { background: var(--bronze-deep); }

  /* hero: let it size to content so the top text is never clipped */
  .hero { min-height: auto; padding-top: 104px; padding-bottom: 64px; align-items: flex-start; }
  .hero h1 { font-size: clamp(1.95rem, 8.5vw, 2.7rem); }
  .hero__lead { font-size: 1.04rem; margin-top: 20px; }
  .hero__badge { font-size: .7rem; padding: 7px 13px; margin-bottom: 22px; line-height: 1.45; }
  .hero__cta { gap: 10px; margin-top: 30px; }
  .hero__cta .btn { width: 100%; justify-content: center; }
  .hero__cta .btn--lg { padding: 15px 26px; font-size: 1rem; }
  .hero__scroll { display: none; }

  .section { padding-block: clamp(52px, 12vw, 80px); }
  .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.2rem); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before, .stat:nth-child(2)::before { content: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__cell--feature, .bento__cell--wide { grid-column: span 2; }
  .bento__cell--tall { grid-row: span 1; }
  .committees__grid, .training__grid { grid-template-columns: 1fr; }
  .leaders__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
  .gphoto:first-child { grid-column: span 2; grid-row: span 1; }
  .timeline::before { inset-inline-start: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 10px; padding-inline-start: 30px; }
  .tl-dot { inset-inline-start: 0; }
  .tl-year { font-size: 1.3rem; }
  .footer__top { grid-template-columns: 1fr; }
  .directory-cta__art { display: none; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal-hero > * { opacity: 1 !important; transform: none !important; }
}
