/* ==========================================================================
   EMERGE — Informal youth group, Thessaloniki
   Stylesheet. Design tokens live in :root — edit colours/spacing there once.
   Palette derived from the real EMERGE logo (electric cobalt + periwinkle),
   warmed with a coral accent, cream paper and a sea-teal nod to the mermaid.
   ========================================================================== */

/* ---------- Design tokens ------------------------------------------------- */
:root {
  /* Brand colours (blue + periwinkle sampled from the logo) */
  --blue:        #1620d6;   /* dominant brand colour                */
  --blue-strong: #141ec8;   /* the exact logo blue                  */
  --ink:         #131a4f;   /* deep navy for dark bands & text      */
  --ink-900:     #0d1236;   /* darkest navy                         */
  --periwinkle:  #b7b8f2;   /* logo echo                            */
  --lavender:    #e6e5fc;   /* soft lavender background             */

  /* Warm accents */
  --coral:       #f85f57;   /* energetic accent                     */
  --coral-deep:  #d8433f;   /* coral for text/links (AA on cream)   */
  --teal:        #1f9c8b;   /* sea / mermaid nod                    */
  --teal-deep:   #0f7d6f;

  /* Neutrals */
  --cream:       #fff7ec;   /* warm supporting background           */
  --paper:       #fffdf9;   /* near-white section background        */
  --white:       #ffffff;
  --text:        #16181f;   /* body text                            */
  --muted:       #565a68;   /* secondary text                       */
  --line:        #e8e4dc;   /* hairlines on light                   */

  /* Typography */
  --font-head: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;
  --space-7: 6.5rem;

  /* Radius */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 74px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(19, 26, 79, 0.06);
  --shadow-md: 0 14px 34px rgba(19, 26, 79, 0.12);
  --shadow-lg: 0 26px 60px rgba(19, 26, 79, 0.18);

  /* Motion */
  --t-fast: 0.18s ease;
  --t-med:  0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
  font-size: 1.0625rem;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- Helpers ------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 0.7rem 1.1rem; border-radius: var(--r-sm);
  transition: top var(--t-fast); font-weight: 600;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  --btn-bg: var(--blue);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 0.85rem 1.5rem; border: 2px solid transparent; border-radius: var(--r-pill);
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0); }
.btn--coral { --btn-bg: var(--coral); --btn-fg: var(--ink); } /* dark ink on coral = AA */
.btn--ghost {
  --btn-bg: transparent; --btn-fg: var(--ink);
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--ink); }
.btn--on-dark.btn--ghost { --btn-fg: #fff; }
.btn--on-dark.btn--ghost:hover { background: #fff; color: var(--ink); }
.btn__arrow { transition: transform var(--t-fast); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 253, 249, 0.82);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
.nav__logo { display: flex; align-items: center; flex-shrink: 0; }
.nav__logo img { height: 34px; width: auto; }
.nav__logo .logo-fallback { font-family: var(--font-head); font-weight: 800; color: var(--blue); font-size: 1.3rem; letter-spacing: 0.02em; }
.nav__spacer { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 0.35rem; }
.nav__link {
  position: relative; font-weight: 600; font-size: 0.98rem; color: var(--ink);
  padding: 0.5rem 0.7rem; border-radius: var(--r-sm); transition: color var(--t-fast);
}
.nav__link::after {
  content: ""; position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.32rem; height: 2px;
  background: var(--coral); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-med);
}
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--blue); }
.nav__cta { margin-left: 0.4rem; }
.nav__toggle {
  display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px;
  background: transparent; padding: 0; position: relative; flex-shrink: 0;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 2.4px;
  background: var(--ink); border-radius: 2px; transform: translate(-50%, -50%);
  transition: transform var(--t-fast), opacity var(--t-fast);
}
.nav__toggle span::before { transform: translate(-50%, -7px); }
.nav__toggle span::after  { transform: translate(-50%, 5px); }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translate(-50%, -50%) rotate(45deg); top: 0; }
.nav__toggle[aria-expanded="true"] span::after  { transform: translate(-50%, -50%) rotate(-45deg); top: 0; }

/* ---------- Section scaffolding ------------------------------------------- */
.section { padding-block: clamp(3.5rem, 8vw, var(--space-7)); position: relative; }
.section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }
.section__label {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-head); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--coral-deep);
  margin-bottom: 1rem;
}
.section__label::before { content: ""; width: 26px; height: 2px; background: var(--coral); border-radius: 2px; }
.section__title { font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 800; max-width: 22ch; }
.section__intro { max-width: 60ch; color: var(--muted); font-size: 1.1rem; margin-top: 1rem; }
.section--paper { background: var(--paper); }
.section--cream { background: var(--cream); }
.section--lavender { background: linear-gradient(180deg, var(--lavender), var(--paper)); }

/* ---------- Wave divider -------------------------------------------------- */
.wave { display: block; width: 100%; height: clamp(40px, 6vw, 80px); }
.wave svg { display: block; width: 100%; height: 100%; }

/* ---------- Hero ---------------------------------------------------------- */
.hero { position: relative; padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: 0; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 8%, rgba(183, 184, 242, 0.55), transparent 60%),
    radial-gradient(50% 45% at 8% 30%, rgba(248, 95, 87, 0.14), transparent 60%),
    var(--paper);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: var(--lavender); color: var(--blue); font-weight: 600; font-size: 0.9rem;
  padding: 0.4rem 0.9rem; border-radius: var(--r-pill); margin-bottom: 1.2rem;
}
.hero__eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); }
.hero__title { font-size: clamp(2.5rem, 6.6vw, 4.6rem); font-weight: 800; letter-spacing: -0.03em; }
.hero__title .accent { color: var(--blue); position: relative; }
.hero__title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.14em;
  background: var(--coral); border-radius: 4px; opacity: 0.55; z-index: -1;
}
.hero__text { font-size: 1.18rem; color: var(--muted); max-width: 46ch; margin-top: 1.3rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.hero__location {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem;
  font-weight: 600; color: var(--ink); font-size: 0.95rem;
}
.hero__location svg { color: var(--coral-deep); }

/* Interactive hero showcase — the five members float in their own space
   (mouse parallax on the figure + gentle idle drift on the inner circle),
   arranged so the circles never overlap. Real portraits, no stock imagery. */
.hero__showcase { position: relative; width: 100%; min-height: clamp(420px, 42vw, 520px); }
.float-photo {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--size); height: var(--size); margin: 0;
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); /* parallax easing */
  will-change: transform;
}
.float-photo__inner {
  display: block; width: 100%; height: 100%;
  animation: floaty calc(6.5s + var(--i) * 1.2s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -1.9s);
  transition: transform 0.4s ease;
}
.float-photo img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
  border: 5px solid #fff; box-shadow: var(--shadow-lg); background: var(--lavender);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.float-photo figcaption {
  position: absolute; left: 50%; bottom: -8px; transform: translate(-50%, 8px);
  background: var(--ink); color: #fff; font-family: var(--font-head); font-weight: 700;
  font-size: 0.82rem; padding: 0.28rem 0.8rem; border-radius: var(--r-pill);
  white-space: nowrap; opacity: 0; pointer-events: none; box-shadow: var(--shadow-md);
  transition: opacity 0.25s ease, transform 0.25s ease; z-index: 2;
}
.float-photo:hover, .float-photo:focus-within { z-index: 20; }
.float-photo:hover .float-photo__inner,
.float-photo:focus-within .float-photo__inner { animation: none; transform: none; }
.float-photo:hover img, .float-photo:focus-within img {
  transform: scale(1.07); border-color: var(--coral); box-shadow: 0 20px 45px rgba(248, 95, 87, 0.35);
}
.float-photo:hover figcaption, .float-photo:focus-within figcaption { opacity: 1; transform: translate(-50%, 0); }

@keyframes floaty {
  0%   { transform: translate(0, 0) rotate(0deg); }
  33%  { transform: translate(5px, -9px) rotate(1.5deg); }
  66%  { transform: translate(-5px, 7px) rotate(-1.5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* ---------- Who we are ---------------------------------------------------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: start; margin-top: 2.2rem; }
.about__text p { font-size: 1.1rem; }
.about__aside { display: grid; gap: 1.2rem; align-content: start; position: relative; }
.quote-card {
  background: var(--blue); color: #fff; border-radius: var(--r-lg); padding: 2rem 1.8rem;
  position: relative; box-shadow: var(--shadow-md); overflow: hidden;
}
.quote-card::before {
  content: "\201C"; position: absolute; top: -0.25em; left: 0.15em;
  font-family: var(--font-head); font-size: 8rem; color: rgba(255, 255, 255, 0.16); line-height: 1;
}
.quote-card p { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; line-height: 1.2; position: relative; margin: 0; }
.stat-mini { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.stat-mini div { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r-md); padding: 1.1rem 1.3rem; flex: 1; min-width: 140px; }
.stat-mini b { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--blue); line-height: 1; }
.stat-mini span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Name meaning band (dark) -------------------------------------- */
.name-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.name-band .section__label { color: var(--periwinkle); }
.name-band .section__label::before { background: var(--periwinkle); }
.name-band__inner { max-width: 900px; }
.name-band h2 { font-size: clamp(2rem, 5.5vw, 3.6rem); font-weight: 800; }
.name-band p { color: rgba(255, 255, 255, 0.82); font-size: 1.15rem; max-width: 62ch; margin-top: 1.4rem; }
.name-band .meaning {
  font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.05rem;
  letter-spacing: 0.02em; margin-top: 2rem; display: inline-flex; flex-wrap: wrap; gap: 0.5rem 0.4rem;
  padding: 1rem 1.3rem; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: var(--r-md);
}
.name-band .meaning b { color: var(--coral); }
.name-band__scales {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image: radial-gradient(circle at 50% 120%, rgba(183, 184, 242, 0.35), transparent 45%);
  pointer-events: none;
}
.name-band .container { position: relative; z-index: 1; }

/* ---------- What we do (focus cards) -------------------------------------- */
.focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem; margin-top: 2.6rem; }
.focus-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.9rem 1.6rem 1.7rem; overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
}
.focus-card::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--blue), var(--coral)); transform: scaleX(0);
  transform-origin: left; transition: transform var(--t-med);
}
.focus-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.focus-card:hover::after { transform: scaleX(1); }
.focus-card__num { font-family: var(--font-head); font-weight: 800; font-size: 0.95rem; color: var(--periwinkle); letter-spacing: 0.08em; }
.focus-card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 16px;
  background: var(--lavender); color: var(--blue); margin: 0.7rem 0 1rem;
  transition: background var(--t-med), color var(--t-med), transform var(--t-med);
}
.focus-card:hover .focus-card__icon { background: var(--blue); color: #fff; transform: rotate(-6deg); }
.focus-card__icon svg { width: 28px; height: 28px; }
.focus-card h3 { font-size: 1.28rem; font-weight: 700; margin-bottom: 0.5rem; }
.focus-card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Experience + impact ------------------------------------------- */
.experience__grid { display: grid; grid-template-columns: 1fr 0.85fr; gap: clamp(1.8rem, 4vw, 3.5rem); align-items: center; margin-top: 2.2rem; }
.experience__text p { font-size: 1.1rem; }
.impact { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.impact__item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 1.5rem 1.4rem; position: relative;
}
.impact__item:nth-child(4n+1) { border-top: 4px solid var(--blue); }
.impact__item:nth-child(4n+2) { border-top: 4px solid var(--coral); }
.impact__item:nth-child(4n+3) { border-top: 4px solid var(--teal); }
.impact__item:nth-child(4n+4) { border-top: 4px solid var(--periwinkle); }
.impact__num { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; color: var(--ink); line-height: 1; }
.impact__label { font-size: 0.98rem; color: var(--muted); margin-top: 0.4rem; }

/* ---------- Projects ------------------------------------------------------ */
.projects__track {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.3rem; margin-top: 2.4rem;
}
.project-card {
  display: flex; flex-direction: column; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
/* Project image placeholder — replace .project-card__media background with a real <img> */
.project-card__media {
  aspect-ratio: 16/10; position: relative; display: grid; place-items: center;
  color: #fff; font-family: var(--font-head); font-weight: 800; text-align: center; padding: 1rem;
}
.project-card__media span { font-size: 1.35rem; letter-spacing: -0.01em; text-shadow: 0 2px 12px rgba(0,0,0,0.25); }
/* When a real project photo is supplied, it replaces the gradient placeholder */
img.project-card__media { display: block; width: 100%; object-fit: cover; background: var(--lavender); }
img.project-card__media::after { content: none; }
.project-card:nth-child(3n+1) .project-card__media { background: linear-gradient(135deg, var(--blue), #4b56ea); }
.project-card:nth-child(3n+2) .project-card__media { background: linear-gradient(135deg, var(--teal), #34c1ac); }
.project-card:nth-child(3n+3) .project-card__media { background: linear-gradient(135deg, var(--coral), #ffa06b); }
.project-card__media::after {
  content: "Project photo placeholder"; position: absolute; bottom: 8px; right: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 0.68rem; letter-spacing: 0.02em;
  color: rgba(255,255,255,0.75);
}
.project-card__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.project-card__type {
  align-self: flex-start; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue); background: var(--lavender); padding: 0.3rem 0.7rem; border-radius: var(--r-pill); margin-bottom: 0.8rem;
}
.project-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 0.7rem; }
.project-card__themes { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.9rem; }
.project-card__themes span { font-size: 0.78rem; color: var(--muted); background: var(--cream); border: 1px solid var(--line); padding: 0.25rem 0.6rem; border-radius: var(--r-pill); }
.project-card__roles { font-size: 0.95rem; color: var(--text); margin-bottom: 1rem; }
.project-card__roles b { color: var(--ink); }
.project-card__link {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-head); font-weight: 700; color: var(--coral-deep); font-size: 0.98rem;
}
.project-card__link .btn__arrow { transition: transform var(--t-fast); }
.project-card__link:hover .btn__arrow { transform: translateX(3px); }
.project-card__link--muted { color: var(--muted); cursor: default; }

/* ---------- Team ---------------------------------------------------------- */
.team__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.member-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.member-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member-card__photo { aspect-ratio: 4/5; position: relative; overflow: hidden; background: var(--lavender); }
.member-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-med); }
.member-card:hover .member-card__photo img { transform: scale(1.04); }
/* Face-framing: tuned per person so faces are never cropped out */
.member-card__photo[data-person="olga"] img      { object-position: 56% 28%; }
.member-card__photo[data-person="olympia"] img    { object-position: 66% 30%; }
.member-card__photo[data-person="eri"] img        { object-position: 50% 22%; }
.member-card__photo[data-person="christina"] img  { object-position: 52% 34%; }
.member-card__photo[data-person="elissavet"] img  { object-position: 42% 30%; }
/* Initials placeholder (shown only if a portrait file is missing) */
.member-card__placeholder {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blue), var(--teal)); color: #fff;
  font-family: var(--font-head); font-weight: 800; font-size: 3rem;
}
.member-card__body { padding: 1.3rem 1.3rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.member-card__role { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-deep); }
.member-card h3 { font-size: 1.25rem; font-weight: 700; margin: 0.35rem 0 0.5rem; }
.member-card__intro { font-size: 0.96rem; color: var(--muted); margin-bottom: 1rem; }
.member-card__btn {
  margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 0.45rem;
  background: transparent; color: var(--ink); border: 2px solid var(--line);
  padding: 0.55rem 1.05rem; border-radius: var(--r-pill); font-family: var(--font-head); font-weight: 700; font-size: 0.9rem;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.member-card__btn:hover { border-color: var(--blue); color: var(--blue); background: var(--lavender); }

/* Bio modal (native <dialog>) */
.bio-dialog {
  border: none; border-radius: var(--r-lg); padding: 0; max-width: 620px; width: min(92vw, 620px);
  box-shadow: var(--shadow-lg); color: var(--text); background: var(--white);
}
.bio-dialog::backdrop { background: rgba(13, 18, 54, 0.55); backdrop-filter: blur(3px); }
.bio-dialog__inner { padding: clamp(1.6rem, 4vw, 2.4rem); }
.bio-dialog__head { display: flex; gap: 1.1rem; align-items: center; margin-bottom: 1.2rem; padding-right: 2.5rem; }
.bio-dialog__avatar { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 3px solid var(--lavender); }
.bio-dialog__role { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--coral-deep); }
.bio-dialog h3 { font-size: 1.5rem; font-weight: 800; margin: 0.2rem 0; }
.bio-dialog__sub { font-size: 0.92rem; color: var(--muted); }
.bio-dialog__body p { font-size: 1rem; color: var(--text); }
.bio-dialog__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: none; background: var(--cream); color: var(--ink); font-size: 1.4rem; line-height: 1; display: grid; place-items: center;
  transition: background var(--t-fast);
}
.bio-dialog__close:hover { background: var(--coral); color: #fff; }

/* ---------- Values band --------------------------------------------------- */
.values { background: linear-gradient(120deg, var(--blue), var(--ink)); color: #fff; overflow: hidden; }
.values__head { text-align: center; }
.values__head h2 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 800; }
.values__marquee { margin: 2.4rem 0 2.2rem; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.values__track { display: flex; gap: 1rem; width: max-content; animation: marquee 26s linear infinite; }
.value-chip {
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 3.2vw, 2rem);
  padding: 0.5rem 1.4rem; border: 2px solid rgba(255, 255, 255, 0.35); border-radius: var(--r-pill); white-space: nowrap;
}
.value-chip:nth-child(even) { background: rgba(255, 255, 255, 0.08); }
.value-chip .star { color: var(--coral); margin-right: 0.4rem; }
.values__note { max-width: 60ch; margin-inline: auto; text-align: center; color: rgba(255, 255, 255, 0.85); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Get involved -------------------------------------------------- */
.pathways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; margin-top: 2.6rem; }
.pathway-card {
  border-radius: var(--r-lg); padding: 2rem 1.8rem; display: flex; flex-direction: column;
  border: 1px solid var(--line); position: relative; overflow: hidden; min-height: 260px;
  transition: transform var(--t-med), box-shadow var(--t-med);
}
.pathway-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.pathway-card--1 { background: var(--lavender); }
.pathway-card--2 { background: var(--ink); color: #fff; border-color: transparent; }
.pathway-card--3 { background: var(--cream); }
.pathway-card__tag { font-family: var(--font-head); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--coral-deep); }
.pathway-card--2 .pathway-card__tag { color: var(--coral); }
.pathway-card h3 { font-size: 1.5rem; font-weight: 800; margin: 0.6rem 0 0.7rem; }
.pathway-card p { font-size: 1rem; color: var(--muted); flex: 1; }
.pathway-card--2 p { color: rgba(255, 255, 255, 0.82); }
.pathway-card .btn { align-self: flex-start; margin-top: 1rem; }

/* ---------- Contact ------------------------------------------------------- */
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.8rem, 4vw, 3.5rem); margin-top: 2.2rem; align-items: start; }
.contact__intro p { font-size: 1.1rem; color: var(--muted); }
.contact__note {
  font-size: 0.9rem; color: var(--muted); background: var(--cream); border: 1px dashed var(--periwinkle);
  border-radius: var(--r-md); padding: 0.9rem 1.1rem; margin-top: 1.4rem;
}
.contact__socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; flex-wrap: wrap; }
.social-link {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.55rem 1rem; border-radius: var(--r-pill);
  border: 2px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--ink); transition: border-color var(--t-fast), background var(--t-fast);
}
.social-link:hover { border-color: var(--blue); background: var(--lavender); }
.social-link svg { width: 18px; height: 18px; }

.contact-form { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(1.5rem, 4vw, 2.2rem); box-shadow: var(--shadow-sm); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.4rem; color: var(--ink); }
.field label .req { color: var(--coral-deep); }
.field input, .field select, .field textarea {
  width: 100%; padding: 0.8rem 1rem; border: 2px solid var(--line); border-radius: var(--r-sm);
  font: inherit; color: var(--text); background: var(--paper); transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22, 32, 214, 0.12);
}
.form-feedback { font-size: 0.95rem; margin-top: 0.8rem; min-height: 1.2em; }
.form-feedback.is-error { color: var(--coral-deep); }
.form-feedback.is-ok { color: var(--teal-deep); }

/* ---------- Footer -------------------------------------------------------- */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, 0.82); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
/* Logo ships with a white background baked in, so on the dark footer we place
   it on a light chip rather than recolouring it (keeps the logo unmodified). */
.footer__brand img { height: 34px; width: auto; background: #fff; padding: 9px 13px; border-radius: 12px; margin-bottom: 1rem; box-shadow: var(--shadow-sm); }
.footer__brand .logo-fallback { color: #fff; font-size: 1.6rem; }
.footer__brand .fullname { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.02rem; margin-bottom: 0.4rem; }
.footer__statement { max-width: 40ch; font-size: 0.98rem; }
.footer h4 { font-family: var(--font-head); color: #fff; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer__links a { display: block; padding: 0.3rem 0; color: rgba(255, 255, 255, 0.78); transition: color var(--t-fast); }
.footer__links a:hover { color: var(--coral); }
.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center;
  margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.88rem;
}
.footer__disclaimer { max-width: 62ch; font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-top: 1rem; }

/* ---------- Scroll reveal ------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__showcase { margin-top: 1.5rem; }
  .about__grid, .experience__grid, .contact__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  /* Mobile navigation */
  .nav__list {
    position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 0.5rem 1.1rem 1.2rem;
    box-shadow: var(--shadow-md); transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: transform var(--t-med), opacity var(--t-med); max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav__list.is-open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav__link { padding: 0.9rem 0.6rem; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .nav__link::after { display: none; }
  .nav__cta { margin: 0.9rem 0 0; justify-content: center; }
  .nav__toggle { display: block; }
  .nav__spacer { display: none; }
  .nav { justify-content: space-between; }
  .nav__logo { margin-right: auto; }

  /* Projects become a horizontal snap carousel */
  .projects__track {
    grid-template-columns: none; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    gap: 1rem; padding-bottom: 1rem; margin-inline: calc(-1 * clamp(1.1rem, 4vw, 2.5rem));
    padding-inline: clamp(1.1rem, 4vw, 2.5rem); scrollbar-width: thin;
  }
  .project-card { flex: 0 0 82%; scroll-snap-align: start; }

  .impact { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }

  /* On phones (no mouse): a clean non-overlapping cluster with names shown */
  .hero__showcase {
    min-height: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: 16px 18px; padding: 0.5rem 0 0.5rem;
  }
  .float-photo {
    position: relative; left: auto; top: auto;
    width: clamp(92px, 26vw, 128px); height: clamp(92px, 26vw, 128px);
  }
  .float-photo__inner { animation: none; }        /* no drift without a cursor */
  .float-photo figcaption { opacity: 1; transform: translate(-50%, 0); bottom: -6px; font-size: 0.72rem; }
}

@media (max-width: 400px) {
  body { font-size: 1rem; }
  .collage-photo { border-width: 4px; }
}

/* ---------- Reduced motion ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .values__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .reveal { opacity: 1; transform: none; }
  .float-photo, .float-photo__inner { animation: none !important; transform: none !important; }
}

/* ---------- Print --------------------------------------------------------- */
@media print {
  .site-header, .nav__toggle, .hero__actions, .values__marquee, .contact-form { display: none; }
  body { background: #fff; }
}
