/* ─────────────────────────────────────────
   High Coast Coding — Stylesheet
   Palette: deep forest green, slate blue,
            warm amber, off-white, charcoal
───────────────────────────────────────── */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green:      #2d6a4f;
  --green-dark: #1b4332;
  --blue:       #34495e;
  --amber:      #e9a84c;
  --amber-dark: #c47f1a;
  --off-white:  #f5f2eb;
  --charcoal:   #1e1e1e;
  --mid-grey:   #555;
  --card-bg:    #ffffff;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(0,0,0,.10);
  --transition: .25s ease;
  --header-h:   68px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--charcoal);
  background: var(--off-white);
  line-height: 1.65;
}

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

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: .75rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--amber);
  color: var(--charcoal);
}
.btn-primary:hover { background: var(--amber-dark); color: #fff; }

.btn-outline {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline:hover { background: #fff; color: var(--charcoal); }

.btn-nav {
  background: var(--amber);
  color: var(--charcoal) !important;
  padding: .45rem 1.2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition);
}
.btn-nav:hover { background: var(--amber-dark); color: #fff !important; transform: translateY(-1px); }

/* ── SECTION HELPERS ── */
.section { padding: 96px 0; }
.section-alt { background: #eef2ee; }

.section-label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .5rem;
}
.section-label.center { text-align: center; }

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
h2.center { text-align: center; }

p.center { text-align: center; }
p.sub { color: var(--mid-grey); max-width: 520px; margin-inline: auto; margin-bottom: 2.5rem; }

/* ── HEADER ── */
.site-header {
  position: fixed;
  inset-block-start: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 999;
  background: rgba(27, 67, 50, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 16px rgba(0,0,0,.2);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.brand-logo {
  height: 40px;
  width: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
}
.brand-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
}

nav { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: rgba(255,255,255,.85);
  font-weight: 500;
  font-size: .95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--amber); }

/* hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: .3rem;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50px;
  padding: .3rem .8rem;
  cursor: pointer;
  color: rgba(255,255,255,.6);
  font-size: .78rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: .06em;
  margin-left: 1rem;
  transition: background var(--transition), border-color var(--transition);
}
.lang-toggle:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.4); }

.lang-opt          { transition: color var(--transition); }
.lang-opt.active   { color: var(--amber); }
.lang-sep          { color: rgba(255,255,255,.25); font-weight: 400; }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: url('../resources/images/logo.jpg') center/cover no-repeat;
  padding-top: var(--header-h);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(27,67,50,.82) 0%, rgba(30,30,30,.72) 100%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: #fff;
  padding-block: 80px;
}

.hero-emblem {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-inline: auto;
  margin-bottom: 1.5rem;
  border: 4px solid var(--amber);
  box-shadow: 0 0 0 8px rgba(233,168,76,.2);
}

.hero-content h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.4);
}

.hero-tagline {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin-inline: auto;
  margin-bottom: 2.5rem;
}

.hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero-hacks {
  min-height: 60vh;
  background: url('../resources/images/saunastats/sauna.jpeg') center/cover no-repeat;
}

.hero-members {
  min-height: 60vh;
  background: url('../resources/images/fire.jpg') center/cover no-repeat;
}

/* ── ABOUT ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.text-block h2 { margin-bottom: 1rem; }
.text-block p { color: var(--mid-grey); margin-bottom: 1rem; }
.text-block .btn { margin-top: .75rem; }

.cv-profile-highlights {
  margin-top: 1.4rem;
}

.cv-profile-highlights__lead {
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .85rem;
}

.cv-profile-highlights__list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
  position: relative;
}

/* Vertical connector line */
.cv-profile-highlights__list::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(to bottom, var(--green) 0%, rgba(45,106,79,.15) 100%);
  border-radius: 2px;
  z-index: 0;
}

.cv-profile-highlights__item {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding: .55rem 0;
  position: relative;
}

.cv-phi__icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(27,67,50,.25);
}

.cv-phi__icon svg {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

.cv-profile-highlights__item span:last-child {
  color: var(--mid-grey);
  line-height: 1.58;
  padding-top: .35rem;
  font-size: .95rem;
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* ── CARDS ── */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--green);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,.14); }

.card-icon { font-size: 2.2rem; margin-bottom: .75rem; }
.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: .5rem; }
.card p { font-size: .93rem; color: var(--mid-grey); line-height: 1.6; }

/* ── HACKS ── */
.hack-card {
  margin-top: 2.25rem;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 1.5rem;
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* Tighten first card spacing after the CV experience heading */
#experience .hack-card:first-of-type {
  margin-top: .9rem;
}

.hack-card--text-only {
  grid-template-columns: 1fr;
}

.hack-main-image img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.hack-content {
  padding: 1.5rem 1.5rem 1.75rem;
}

.hack-content h3 {
  font-size: 1.35rem;
  color: var(--green-dark);
  margin-bottom: .6rem;
}

.hack-content p {
  color: var(--mid-grey);
  margin-bottom: 1rem;
}

.hack-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.hack-gallery img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #dfe5df;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

/* ── MEMBERS ── */
.members-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.member-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  padding: 1.5rem;
  text-align: center;
}

.member-avatar {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top;
  margin: 0 auto 1rem;
  border: 3px solid var(--amber);
}

.member-card h3 {
  color: var(--green-dark);
  margin-bottom: .2rem;
}

.member-role {
  color: var(--green);
  font-weight: 700;
  margin-bottom: .6rem;
}

.member-card p {
  color: var(--mid-grey);
  margin-bottom: 1rem;
}

.member-lock-note {
  margin-top: .7rem;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green-dark);
}

.member-lock-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.member-lock-icon svg {
  width: 18px;
  height: 18px;
}

/* ── CV QUICK FACTS ── */
.cv-quickfacts {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  overflow: hidden;
}

.cv-quickfacts__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  display: block;
}

.cv-quickfacts__list {
  list-style: none;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.cv-quickfacts__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  border-bottom: 1px solid #eef2ee;
  padding-bottom: .75rem;
}

.cv-quickfacts__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cv-quickfacts__label {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  flex-shrink: 0;
}

.cv-quickfacts__value {
  font-size: .95rem;
  color: var(--charcoal);
  text-align: right;
}

.cv-quickfacts__value a {
  color: var(--green-dark);
  font-weight: 600;
  word-break: break-all;
  font-size: .82rem;
}

.cv-quickfacts__value a:hover { color: var(--green); }

/* ── CV LOGIN GATE ── */
.cv-logout {
  display: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: .95rem;
}

body.cv-unlocked .cv-logout {
  display: inline-block;
}

.cv-login-gate {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--header-h) + 2rem);
}

.cv-login-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green);
  width: min(560px, 100%);
  margin-inline: auto;
  padding: 2rem;
}

.cv-login-card h1 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--green-dark);
  margin-bottom: .45rem;
}

.cv-login-lead {
  color: var(--mid-grey);
  margin-bottom: 1.25rem;
}

.cv-login-form {
  display: grid;
  gap: .65rem;
}

.cv-login-form label {
  font-weight: 600;
  color: var(--green-dark);
}

.cv-login-form input {
  width: 100%;
  border: 1px solid #cfd8cf;
  border-radius: 10px;
  padding: .72rem .85rem;
  font-size: 1rem;
  font-family: inherit;
}

.cv-login-form input:focus {
  outline: 2px solid rgba(45,106,79,.3);
  border-color: var(--green);
}

.cv-login-form .btn {
  margin-top: .4rem;
  justify-self: start;
}

.cv-login-error {
  min-height: 1.2em;
  color: #b42318;
  font-weight: 600;
}

/* Gate state hardening: avoid mixed UI states before/after login. */
body:not(.cv-unlocked) #cv-protected-content {
  display: none !important;
}

body.cv-unlocked [data-cv-gate] {
  display: none !important;
}

body.cv-unlocked #cv-protected-content {
  display: block !important;
}

/* ── CV PDF BUTTON ── */
.btn-pdf {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: .55rem;
  background: var(--green-dark);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: .7rem 1.4rem;
  font-size: .9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}
.btn-pdf:hover {
  background: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0,0,0,.28);
}

/* Never show the PDF button until CV gate is unlocked. */
body:not(.cv-unlocked) .btn-pdf {
  display: none !important;
}

body.cv-unlocked .btn-pdf {
  display: flex !important;
}

.cv-print-status {
  position: fixed;
  right: 2rem;
  bottom: .95rem;
  z-index: 900;
  font-size: .82rem;
  color: var(--green-dark);
  background: rgba(245,242,235,.95);
  border: 1px solid #d8e2d8;
  border-radius: 8px;
  padding: .25rem .6rem;
  display: none;
}

body.cv-print-preparing .cv-print-status {
  display: block;
}

body.cv-print-preparing .btn-pdf {
  opacity: .7;
  pointer-events: none;
}

/* ── CV PRINT HEADER (screen: hidden, print: visible) ── */
.cv-print-header { display: none; }

/* ── CV PRINT FOOTER (screen: hidden, print: visible) ── */
.cv-print-footer { display: none; }

/* ── PRINT STYLES ── */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  /* Reset */
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  body { background: #fff !important; font-size: 12pt; }
  body { padding-bottom: 2.2cm !important; }

  /* Hide screen-only elements */
  .site-header,
  .hero,
  .site-footer,
  .btn-pdf,
  #cv-print-btn,
  .cv-print-status,
  #cv-print-status,
  .cv-login-gate,
  .cv-logout { display: none !important; }

  /* Defensive hide: ensure print controls can never appear in rendered PDF output. */
  .btn-pdf,
  #cv-print-btn,
  .cv-print-status,
  #cv-print-status {
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  /* Reveal all cards (scroll-reveal is skipped in print) */
  .will-reveal {
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    transition: none !important;
    animation: none !important;
  }

  /* Show print header */
  .cv-print-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 3px solid var(--green-dark);
    margin-bottom: 1rem;
    page-break-after: avoid;
  }

  .cv-print-header__left h1 {
    font-size: 22pt;
    color: var(--green-dark);
    margin-bottom: .2rem;
  }

  .cv-print-header__title {
    font-size: 12pt;
    color: var(--mid-grey);
    margin-bottom: .25rem;
  }

  .cv-print-header__meta {
    font-size: 9pt;
    color: var(--mid-grey);
  }

  .cv-print-header__avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    object-position: top;
    border: 3px solid var(--green-dark);
  }

  /* Compact sections */
  .section { padding: 1.5rem 0 !important; }
  .section-alt { background: transparent !important; }

  /* Flatten all cards — no box, just headings + text */
  .card, .hack-card {
    box-shadow: none !important;
    border: none !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: .25rem 0 !important;
    margin-top: .5rem !important;
    page-break-inside: avoid;
  }

  /* Remove card icons */
  .card-icon { display: none !important; }

  /* Thin separator between experience entries */
  .hack-card + .hack-card { border-top: 1px solid #ddd !important; padding-top: .5rem !important; }

  /* Tighter card grid on print */
  .cards { grid-template-columns: repeat(2, 1fr) !important; gap: .25rem !important; margin-top: .5rem !important; }

  /* Hide hero overlay background */
  .hero-overlay { display: none; }

  /* Remove background images */
  .campfire-banner { display: none; }

  /* Hide quickfacts card in print */
  .cv-quickfacts, .image-block { display: none !important; }

  /* Profile: full width when quickfacts is hidden */
  .two-col { grid-template-columns: 1fr !important; gap: 1rem !important; }

  .cv-profile-highlights {
    margin-top: .5rem !important;
  }

  .cv-profile-highlights__lead {
    font-size: 9pt !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    margin-bottom: .2rem !important;
    color: var(--green-dark) !important;
  }

  .cv-profile-highlights__list::before {
    display: none !important;
  }

  .cv-phi__icon {
    display: none !important;
  }

  .cv-profile-highlights__item {
    gap: .3rem !important;
    padding: .1rem 0 !important;
  }

  .cv-profile-highlights__item span:last-child {
    padding-top: 0 !important;
    font-size: 10pt !important;
  }

  .cv-profile-highlights__item span:last-child::before {
    content: '• ';
    color: var(--green-dark);
  }

  /* Links: show href in print */
  a[href^="mailto:"]::after {
    content: "";
  }

  /* Section labels */
  .section-label { color: var(--green-dark) !important; }
  .section-label.center,
  h2.center { text-align: left !important; }

  /* Start key CV sections on new PDF pages */
  #experience,
  #skills,
  #certs {
    break-before: page;
    page-break-before: always;
  }

  /* Compact contact section */
  #contact { padding: .75rem 0 !important; }
  #contact h2 { font-size: 11pt !important; margin-bottom: .4rem !important; }
  #contact .contact-mail { font-size: 9pt !important; }
  .contact-inner { max-width: 100% !important; }

  /* Show branded footer in PDF */
  .cv-print-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .35cm 0;
    border-top: 1px solid #d9d9d9;
    background: #fff;
    color: var(--green-dark);
    font-size: 9pt;
    font-weight: 700;
  }

  .cv-print-footer img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
  }

  /* Optional fast-print mode (disabled by default in JS). */
  body.cv-print-fast .cv-print-header__avatar,
  body.cv-print-fast .cv-print-footer img {
    display: none !important;
  }
}

/* ── CAMPFIRE BANNER ── */
.campfire-banner {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  background: url('../resources/images/fire.jpg') center/cover no-repeat fixed;
}

.campfire-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(27,67,50,.88) 0%, rgba(30,30,30,.65) 100%);
}

.campfire-content {
  position: relative;
  color: #fff;
  max-width: 640px;
  padding-block: 80px;
}
.campfire-content h2 { color: var(--amber); font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.campfire-content p { color: rgba(255,255,255,.85); margin-bottom: 2rem; font-size: 1.05rem; }

/* ── CONTACT ── */
.contact-inner { max-width: 680px; margin-inline: auto; }

.contact-mail {
  margin: 0;
  color: var(--mid-grey);
}

.contact-mail a {
  color: var(--green-dark);
  font-weight: 600;
}

.contact-mail a:hover { color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,.75);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--amber);
}

.footer-copy { font-size: .85rem; }


.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--amber); }

/* ── SCROLL REVEAL ── */
.will-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .55s ease, transform .55s ease;
}
.will-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* active nav link */
.nav-links a.active { color: var(--amber) !important; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .image-block { order: -1; }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--green-dark);
    padding: 1rem 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.2);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: .85rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }
  .btn-nav { border-radius: 0; padding: .85rem 2rem; }

  .hamburger { display: flex; }

  .lang-toggle { margin-left: .5rem; padding: .25rem .6rem; }

  .cv-login-card { padding: 1.35rem; }

  .cv-login-gate { min-height: auto; }


  .hack-card { grid-template-columns: 1fr; }
  .hack-main-image img { min-height: 240px; }

  .members-grid { grid-template-columns: 1fr; }


  .campfire-banner { background-attachment: scroll; }
}

@media (max-width: 1024px) {
  .members-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .section { padding: 64px 0; }
}

