/* ============================================================
   Digital Growth Collective — public site
   Aesthetic: refined editorial / executive members' club
   Light "paper" canvas · deep Bluerank navy ink · azure accent
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;0,8..60,800;1,8..60,400;1,8..60,500;1,8..60,700;1,8..60,800&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Ink — pulled from the DGC + Bluerank logotypes */
  --ink:        #0A1C3F;
  --ink-soft:   #1B2E54;
  --ink-muted:  #5A6B8C;

  /* Accent — the bright azure bar in the Bluerank mark */
  --azure:      #21A4EE;
  --azure-deep: #1483D1;
  --azure-tint: #DCEEFB;

  /* Paper */
  --paper:      #F4F7FC;
  --paper-pure: #FBFCFE;
  --paper-warm: #FFFFFF;

  --line:       rgba(10, 28, 63, 0.12);
  --line-soft:  rgba(10, 28, 63, 0.07);

  --shadow-sm: 0 1px 2px rgba(10,28,63,.06), 0 4px 14px rgba(10,28,63,.05);
  --shadow-md: 0 10px 40px rgba(10,28,63,.10), 0 2px 8px rgba(10,28,63,.06);
  --shadow-lg: 0 30px 80px rgba(10,28,63,.16), 0 8px 24px rgba(10,28,63,.08);

  --display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --r: 18px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* Atmospheric backdrop — fine grid + soft azure glows */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 600px at 88% -8%, rgba(33,164,238,.16), transparent 60%),
    radial-gradient(800px 700px at -10% 18%, rgba(33,164,238,.08), transparent 55%),
    var(--paper);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(to right, var(--line-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--line-soft) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, #000 35%, transparent 80%);
          mask-image: radial-gradient(ellipse 100% 90% at 50% 0%, #000 35%, transparent 80%);
  opacity: .7;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--azure-deep);
  display: inline-flex;
  align-items: center;
  gap: .6rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--azure);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: var(--ink); }

h2.section-title {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  font-weight: 800;
  margin: 1.1rem 0 1.4rem;
}
h2.section-title em { font-style: italic; color: var(--azure-deep); font-weight: 800; }

.lead { font-size: clamp(1.1rem, 2vw, 1.32rem); color: var(--ink-soft); line-height: 1.55; max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .01em;
  padding: .95rem 1.6rem;
  border-radius: 100px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, color .25s;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); background: var(--azure-deep); }
.btn-primary .arrow { transition: transform .25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-3px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244,247,252,.72);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
          backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-color: var(--line); background: rgba(244,247,252,.86); }
.nav-inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: .5rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.brand { display: flex; align-items: center; gap: .7rem; }
.brand img { height: 54px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-soft);
  position: relative;
  transition: color .2s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 0; height: 2px; background: var(--azure); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: .4rem; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: 0.25rem 0 0.5rem; overflow: hidden; }
.hero .wrap { position: relative; z-index: 2; }
.hero-bg-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}
.hero-bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0.14;
  filter: contrast(1.05) saturate(0.85);
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 25%, transparent 90%);
          mask-image: radial-gradient(ellipse 95% 85% at 50% 45%, #000 25%, transparent 90%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 76ch;
  gap: 1.2rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  font-weight: 800;
  line-height: .98;
  letter-spacing: -.035em;
}
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 em { font-style: italic; font-weight: 800; color: var(--azure-deep); }
.hero h1 .stroke {
  -webkit-text-stroke: 1.5px var(--ink);
  color: transparent;
}
.hero-sub { margin-top: .75rem; font-size: clamp(0.98rem, 1.2vw, 1.08rem); color: var(--ink-soft); max-width: 56ch; line-height: 1.48; }
.hero-actions { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-note { font-size: .85rem; color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--azure); box-shadow: 0 0 0 4px var(--azure-tint); flex: none; }

/* hero visual — stacked "membership card" */
.hero-visual { position: relative; }
.card-membership {
  position: relative;
  background: linear-gradient(150deg, var(--ink) 0%, #102a5c 55%, #0e2454 100%);
  border-radius: 22px;
  padding: 2rem 1.9rem;
  color: #fff;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 5 / 6.2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: rotate(2.2deg);
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.card-membership:hover { transform: rotate(0deg) translateY(-4px); }
.card-membership::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 300px at 110% -10%, rgba(33,164,238,.55), transparent 60%),
    radial-gradient(300px 260px at -10% 110%, rgba(33,164,238,.22), transparent 60%);
}
.card-membership > * { position: relative; z-index: 1; }
.cm-top { display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.cm-kicker { font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; font-weight: 700; color: #8fb4e6; }
.card-membership .cm-logo { height: 66px; width: auto; opacity: .98; filter: brightness(0) invert(1); }
.cm-mid h3 { color: #fff; font-size: 1.4rem; line-height: 1.22; font-weight: 700; letter-spacing: -.015em; }
.cm-mid h3 em { font-style: italic; color: #8fd2fb; }
.cm-foot { display: flex; flex-direction: column; gap: 1.1rem; }
.cm-strip {
  font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700;
  color: #7e9fce; padding-top: .9rem; border-top: 1px solid rgba(255,255,255,.14);
}
.cm-meta { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.cm-meta .label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: #8fb4e6; font-weight: 700; }
.cm-meta .value { font-family: var(--display); font-size: 1.05rem; font-weight: 500; margin-top: .25rem; }
.cm-chip {
  position: absolute; top: 6px; right: -10px;
  background: var(--azure);
  color: var(--ink);
  font-weight: 800;
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: .55rem .9rem;
  border-radius: 100px;
  box-shadow: var(--shadow-md);
  transform: rotate(-4deg);
  z-index: 3;
}
.hero-badge {
  position: absolute;
  bottom: -22px; left: -26px;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: .9rem 1.1rem;
  box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .8rem;
}
.hero-badge .big { font-family: var(--display); font-size: 1.9rem; font-weight: 800; line-height: 1; color: var(--ink); }
.hero-badge .sm { font-size: .78rem; color: var(--ink-muted); line-height: 1.25; }

/* trust strip */
.trust {
  margin-top: .75rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: .6rem 0;
  display: flex;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 4rem);
  flex-wrap: wrap;
}
.trust .t-label { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-muted); font-weight: 700; }
.trust .orgs { display: flex; align-items: center; gap: 2.4rem; flex-wrap: wrap; }
.trust .orgs img { height: 26px; width: auto; opacity: .8; transition: opacity .3s; filter: grayscale(.2); }
.trust .orgs img.fse { height: 34px; }
.trust .orgs a:hover img { opacity: 1; }

/* ============================================================
   SECTION scaffolding
   ============================================================ */
section { position: relative; }
/* offset anchor jumps so the sticky header doesn't cover section tops */
section[id] { scroll-margin-top: 120px; }
.section-pad { padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.section-head { max-width: 100%; margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }

/* ---------- Manifesto / what is DGC ---------- */
.manifesto-stmt {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.2vw, 3.1rem);
  font-weight: 500;
  line-height: 1.16;
  letter-spacing: -.025em;
  max-width: 22ch;
}
.manifesto-stmt b { font-weight: 800; }
.manifesto-stmt .hl {
  background: linear-gradient(to top, var(--azure-tint) 38%, transparent 38%);
  font-weight: 700;
}
.manifesto-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.is-isnt { display: grid; gap: 1rem; }
.iiblock {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.iiblock h4 { font-family: var(--sans); font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 1rem; display: flex; align-items: center; gap: .6rem; }
.iiblock.is h4 { color: var(--azure-deep); }
.iiblock.isnt h4 { color: var(--ink-muted); }
.iiblock ul { list-style: none; display: grid; gap: .65rem; }
.iiblock li { display: flex; gap: .7rem; align-items: flex-start; font-size: .98rem; color: var(--ink-soft); }
.iiblock li .mk { flex: none; margin-top: .15rem; font-weight: 800; }
.iiblock.is li .mk { color: var(--azure); }
.iiblock.isnt li .mk { color: #c2563f; }
.iiblock.isnt li { color: var(--ink-muted); }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 2rem 1.8rem 1.9rem;
  box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--azure); transition: width .4s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: rgba(33,164,238,.4); }
.pillar:hover::before { width: 100%; }
.pillar .num { font-family: var(--display); font-size: 1rem; color: var(--azure-deep); font-weight: 600; }
.pillar h3 { font-size: 1.45rem; margin: .9rem 0 .7rem; font-weight: 700; }
.pillar p { color: var(--ink-soft); font-size: .98rem; }
.pillar p a {
  color: var(--azure-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(20,131,209,.4);
  transition: text-decoration-color .2s;
}
.pillar p a:hover { text-decoration-color: var(--azure-deep); }

/* ---------- For whom ---------- */
.whom-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.whom-list { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.whom-row {
  background: var(--paper-pure);
  padding: 1.25rem 1.5rem;
  display: flex; align-items: center; gap: 1.1rem;
  transition: background .25s, padding-left .25s;
}
.whom-row:hover { background: #fff; padding-left: 1.9rem; }
.whom-row .rk { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--azure-deep); flex: none; width: 1.6rem; }
.whom-row .rt strong { display: block; font-weight: 700; font-size: 1.05rem; }
.whom-row .rt span { font-size: .9rem; color: var(--ink-muted); }
.whom-aside ul { list-style: none; display: grid; gap: .9rem; margin-top: 1.5rem; }
.whom-aside li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-soft); }
.whom-aside li svg { flex: none; margin-top: .2rem; }

/* ---------- Numbers / stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem;
  background: var(--ink);
  border-radius: 24px;
  padding: clamp(2rem,4vw,3rem) clamp(1.5rem,4vw,3rem);
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 90% -20%, rgba(33,164,238,.35), transparent 60%),
    radial-gradient(500px 400px at -5% 120%, rgba(33,164,238,.18), transparent 60%);
}
.stat { position: relative; z-index: 1; padding: .4rem .6rem; }
.stat .n { font-family: var(--display); font-size: clamp(2.4rem,5vw,3.6rem); font-weight: 800; line-height: 1; color: #fff; letter-spacing: -.02em; }
.stat .n em { font-style: italic; color: #8fd2fb; }
.stat .l { margin-top: .7rem; color: #aebfdc; font-size: .92rem; line-height: 1.35; }

/* ---------- Founder ---------- */
.founder-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.founder-portrait {
  background: linear-gradient(155deg, #102a5c, var(--ink));
  border-radius: 24px;
  aspect-ratio: 4/5;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: flex-end;
  padding: 2rem;
}
.founder-photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 18%;
  z-index: 1;
}
.founder-portrait::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(to top, rgba(10,28,63,.78) 0%, rgba(10,28,63,.18) 32%, transparent 55%);
}
.founder-card {
  position: relative; z-index: 3;
  background: rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 16px;
  padding: 1.1rem 1.3rem;
  color: #fff;
  width: 100%;
}
.founder-card .nm { font-family: var(--display); font-size: 1.4rem; font-weight: 700; }
.founder-card .rl { color: #aecdf0; font-size: .9rem; margin-top: .2rem; }
.founder-body h2 { margin-bottom: 1.3rem; }
.founder-quote {
  font-family: var(--display);
  font-style: italic;
  font-size: clamp(1.05rem, 1.9vw, 1.4rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
  border-left: 3px solid var(--azure);
  padding-left: 1.4rem;
  margin: 1.5rem 0;
}
.founder-body p { color: var(--ink-soft); margin-bottom: 1rem; }
.host-orgs { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.host-org {
  background: var(--paper-pure); border: 1px solid var(--line);
  border-radius: 14px; padding: 1.2rem 1.3rem;
}
.host-org img { height: 24px; width: auto; margin-bottom: .8rem; }
.host-org.fse img { height: 30px; }
.host-org p { font-size: .9rem; color: var(--ink-muted); margin: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(155deg, var(--ink), #0e2454 70%);
  border-radius: 28px;
  padding: clamp(3rem,6vw,5rem) clamp(1.8rem,5vw,4.5rem);
  position: relative; overflow: hidden;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(700px 500px at 100% -10%, rgba(33,164,238,.4), transparent 55%),
    radial-gradient(500px 400px at -5% 120%, rgba(33,164,238,.18), transparent 55%);
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(2rem,4.5vw,3.4rem); max-width: 18ch; }
.cta-band h2 em { font-style: italic; color: #8fd2fb; }
.cta-band p { color: #b9caea; max-width: 52ch; margin: 1.2rem 0 2rem; font-size: 1.08rem; }
.cta-band .btn-primary { background: var(--azure); color: var(--ink); }
.cta-band .btn-primary:hover { background: #fff; }
.cta-band .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.cta-band .btn-ghost:hover { border-color: #fff; }
.invite-tag {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
  color: #8fd2fb; margin-bottom: 1.2rem;
}

/* ============================================================
   EVENTS PAGE
   ============================================================ */
.page-hero { padding: clamp(3rem,7vw,5.5rem) 0 clamp(2rem,4vw,3rem); }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 800; letter-spacing: -.04em; }
.page-hero h1 em { font-style: italic; color: var(--azure-deep); font-weight: 800; }

.formats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.3rem; }
.format {
  background: var(--paper-pure); border: 1px solid var(--line);
  border-radius: var(--r); padding: 1.7rem 1.8rem;
  display: flex; flex-direction: column; gap: .6rem;
  transition: transform .3s, box-shadow .3s;
}
.format:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.format .ftop { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.format h3 { font-size: 1.4rem; font-weight: 700; }
.format .dur { font-size: .8rem; font-weight: 700; color: var(--azure-deep); letter-spacing: .04em; white-space: nowrap; }
.format p { color: var(--ink-soft); font-size: .96rem; }

/* timeline */
.timeline { position: relative; margin-top: 1rem; }
.tl-item {
  display: grid; grid-template-columns: 130px 1fr; gap: 2rem;
  padding: 0 0 2.5rem;
  position: relative;
}
.tl-rail { position: relative; text-align: right; }
.tl-rail .yr { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--ink); }
.tl-rail .st {
  display: inline-block; margin-top: .5rem;
  font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .65rem; border-radius: 100px;
}
.st.past { background: var(--azure-tint); color: var(--azure-deep); }
.st.next { background: var(--ink); color: #fff; }
.tl-body { border-left: 2px solid var(--line); padding-left: 2rem; position: relative; }
.tl-body::before {
  content: ""; position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--azure); box-shadow: 0 0 0 4px var(--paper);
}
.tl-item:last-child .tl-body { border-color: transparent; }

/* event feature card */
.event-feature {
  display: grid; grid-template-columns: 1fr;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.event-feature .ef-media { position: relative; background: var(--ink); }
.event-feature .ef-media img { display: block; width: 100%; height: auto; }
.event-feature .ef-media .ef-stamp {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  background: rgba(10,28,63,.82); color: #fff;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .5rem .9rem; border-radius: 100px;
  font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  display: inline-flex; gap: .5rem; align-items: center;
}
.event-feature .ef-body { padding: clamp(1.8rem,3vw,2.8rem); display: flex; flex-direction: column; }
.ef-body .ef-date { font-size: .85rem; font-weight: 700; color: var(--azure-deep); letter-spacing: .06em; }
.ef-body h3 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; margin: .6rem 0 .9rem; line-height: 1.12; }
.ef-body .ef-theme { font-family: var(--display); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.ef-body p { color: var(--ink-soft); font-size: .98rem; margin-bottom: 1rem; }
.ef-meta { display: flex; flex-wrap: wrap; gap: .5rem; margin: .4rem 0 1.4rem; }
.ef-meta .tag {
  font-size: .8rem; font-weight: 600; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line);
  padding: .35rem .8rem; border-radius: 100px;
}
.ef-loc { font-size: .9rem; color: var(--ink-muted); display: flex; align-items: center; gap: .5rem; margin-top: auto; }

/* ============================================================
   TICKER / MARQUEE — organizacje reprezentowane w DGC
   ============================================================ */
.ticker {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(900px 300px at 50% 0%, rgba(33,164,238,.08), transparent 70%),
    var(--paper-pure);
  padding: clamp(2rem, 4vw, 3.2rem) 0;
  overflow: hidden;
}
.ticker-label {
  text-align: center;
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 700;
  margin-bottom: 1.8rem;
  display: flex; align-items: center; justify-content: center; gap: .7rem;
}
.ticker-label::before, .ticker-label::after {
  content: ""; width: 26px; height: 2px; background: var(--azure); display: inline-block; flex: none;
}
.ticker-viewport {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: brand-scroll 65s linear infinite;
}
.ticker:hover .ticker-track {
  animation-play-state: paused;
}
.brand-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.4rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(0.92rem, 1.1vw, 1.02rem);
  letter-spacing: .01em;
  color: var(--ink);
  box-shadow: 0 4px 14px rgba(10, 28, 63, 0.03);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease, color .25s ease;
  white-space: nowrap;
  cursor: default;
}
.brand-chip:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 131, 209, 0.45);
  color: var(--azure-deep);
  box-shadow: 0 10px 24px rgba(20, 131, 209, 0.15);
}
@keyframes brand-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { margin-top: clamp(3rem,6vw,5rem); border-top: 1px solid var(--line); padding: clamp(3rem,5vw,4.5rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; align-items: start; }
.footer .brand img { height: 42px; }
.footer-about { color: var(--ink-muted); font-size: .95rem; max-width: 38ch; margin-top: 1.1rem; }
.footer h5 { font-family: var(--sans); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .7rem; }
.footer ul a { color: var(--ink-soft); font-size: .95rem; transition: color .2s; }
.footer ul a:hover { color: var(--azure-deep); }
.footer-hosts { margin-top: 1.5rem; display: flex; align-items: center; gap: 1.5rem; }
.footer-hosts img { height: 22px; width: auto; opacity: .7; }
.footer-hosts img.fse { height: 28px; }
.footer-bottom {
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .85rem; color: var(--ink-muted);
}

/* ============================================================
   Reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .card-membership { transform: none; }
  .ticker-track { animation: none; flex-wrap: wrap; justify-content: center; gap: .6rem; }
  .ticker-viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.gallery-item {
  display: block;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s, box-shadow .3s;
  aspect-ratio: 4/3;
  background: var(--line);
}
.gallery-item img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 28, 63, 0.95);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}
.lightbox-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
}
.lightbox-content img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform .3s ease;
}
.lightbox.active .lightbox-content img {
  transform: scale(1);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  transition: color .2s;
  z-index: 10000;
}
.lightbox-close:hover {
  color: var(--azure);
}

/* ============================================================
   CALENDAR DROPDOWN MENU
   ============================================================ */
.cal-menu-wrapper {
  position: relative;
  display: inline-block;
}
.cal-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(10, 28, 63, 0.16);
  padding: .5rem;
  min-width: 250px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  display: flex;
  flex-direction: column;
  gap: .25rem;
  text-align: left;
}
.cal-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.cal-menu-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .6rem .85rem;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s ease, color .15s ease;
  white-space: nowrap;
}
.cal-menu-item:hover {
  background: rgba(20, 131, 209, 0.08);
  color: var(--azure-deep);
}
.cal-menu-item span.icon {
  font-size: 1.1rem;
  line-height: 1;
}

/* ============================================================
   REGISTRATION FORM & GATED STEPS
   ============================================================ */
.reg-card {
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(2rem, 4vw, 3rem);
  box-shadow: var(--shadow-sm);
  margin-bottom: 2.5rem;
}
.reg-step {
  display: none;
}
.reg-step.active {
  display: block;
  animation: fadeInStep .35s ease forwards;
}
@keyframes fadeInStep {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-indicator {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--azure-deep);
  background: rgba(20, 131, 209, 0.08);
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-top: 1.5rem;
}
.form-grid.full {
  grid-template-columns: 1fr;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.form-group.span-2 {
  grid-column: span 2;
}
.form-group label {
  font-size: .88rem;
  font-weight: 700;
  color: var(--ink);
}
.form-control {
  width: 100%;
  padding: .85rem 1.1rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-control:focus {
  border-color: var(--azure);
  box-shadow: 0 0 0 3px rgba(33, 164, 238, 0.18);
}
.form-control.code-input {
  text-transform: uppercase;
  letter-spacing: .15em;
  font-weight: 800;
  font-size: 1.15rem;
  text-align: center;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  margin-top: .5rem;
  cursor: pointer;
  user-select: none;
}
.form-checkbox input[type="checkbox"] {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .15rem;
  accent-color: var(--azure-deep);
  cursor: pointer;
}
.form-checkbox label {
  font-size: .88rem;
  color: var(--ink-soft);
  line-height: 1.45;
  cursor: pointer;
}
.form-checkbox a {
  color: var(--azure-deep);
  font-weight: 700;
  text-decoration: underline;
}

.form-alert {
  padding: .85rem 1.1rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  margin-top: 1rem;
  display: none;
}
.form-alert.error {
  background: rgba(220, 38, 38, 0.08);
  border: 1px solid rgba(220, 38, 38, 0.25);
  color: #dc2626;
}
.form-alert.success {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
}

.code-help {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-top: .8rem;
  text-align: center;
}

/* ============================================================
   EVENT SUBPAGE & AGENDA TIMELINE
   ============================================================ */
.event-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 1.8rem;
  align-items: start;
}

.agenda-timeline {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-top: 1rem;
}
.agenda-slot {
  display: grid;
  grid-template-columns: 135px 1fr;
  gap: 1rem;
  background: var(--paper-pure);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .85rem 1.25rem;
  box-shadow: 0 2px 6px rgba(10, 28, 63, 0.02);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.agenda-slot:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 131, 209, 0.35);
  box-shadow: 0 8px 24px rgba(20, 131, 209, 0.08);
}
.agenda-time {
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 800;
  color: var(--azure-deep);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.agenda-content h4 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: .2rem;
  line-height: 1.25;
}
.agenda-content p {
  font-size: .92rem;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 0;
}
.agenda-topic-tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--azure-deep);
  background: rgba(20, 131, 209, 0.08);
  padding: .2rem .55rem;
  border-radius: 6px;
  margin-top: .3rem;
}
@media (max-width: 960px) {
  .event-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}
@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.span-2 {
    grid-column: span 1;
  }
  .agenda-slot {
    grid-template-columns: 1fr;
    gap: .4rem;
    padding: .85rem 1rem;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 380px; margin: 1rem auto 2rem; }
  .manifesto-grid, .whom-grid, .founder-grid, .event-feature { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
  .formats { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2,1fr); }
  .founder-portrait { aspect-ratio: 4/5; max-width: 460px; margin-inline: auto; width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 1.2rem;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper-pure); padding: 1.5rem var(--gutter) 2rem;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md);
  }
  .tl-item { grid-template-columns: 1fr; gap: .8rem; }
  .tl-rail { text-align: left; }
  .tl-body { border-left: none; padding-left: 0; }
  .tl-body::before { display: none; }
  .host-orgs { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .stats { grid-template-columns: 1fr; }
}
