/* ==========================================================================
   JAMC VALENCIA — Design tokens
   Signature: the ridge-line horizon (echoing the logo's mountain + Valencia's
   valley setting) recurs as the divider between every section.
   ========================================================================== */

:root {
  --green-900: #123626;
  --green-700: #145236;
  --green-600: #1E7F4F;
  --green-500: #24985F;
  --gold-600:  #D89A00;
  --gold-500:  #F4B400;
  --gold-300:  #FCD675;
  --white:     #FFFFFF;
  --gray-050:  #F7F8F6;
  --gray-100:  #EEF1EC;
  --gray-400:  #93A196;
  --gray-700:  #3C443F;
  --gray-900:  #1B211D;

  --font-display: 'Manrope', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container-w: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;

  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 84px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5 { font-family: var(--font-display); margin: 0; color: inherit; }
p { margin: 0; line-height: 1.7; color: var(--gray-700); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }
:focus-visible { outline: 2px solid var(--gold-600); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

.container { max-width: var(--container-w); margin: 0 auto; padding: 0 28px; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 14px;
}
.eyebrow--light { color: var(--gold-300); }

.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  max-width: 20ch;
}
.section-title--light { color: var(--white); }
.section-sub { margin-top: 12px; font-size: 1.05rem; max-width: 46ch; }

.section { padding: 118px 0 96px; position: relative; }
.section .container { position: relative; z-index: 1; }

/* ridge-line divider */
.section-ridge {
  display: block;
  width: 100%;
  height: 56px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.section-ridge--light path { fill: var(--white); }
.section-ridge--green path { fill: var(--green-700); }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 999px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: var(--gold-500); color: var(--green-900); box-shadow: 0 10px 30px -12px rgba(244,180,0,.55); }
.btn--gold:hover { box-shadow: 0 14px 34px -10px rgba(244,180,0,.65); }
.btn--outline { border: 1.5px solid rgba(255,255,255,.55); color: var(--white); backdrop-filter: blur(6px); }
.btn--outline:hover { background: rgba(255,255,255,.12); }
.btn--dark { background: var(--green-900); color: var(--white); width: 100%; }
.btn--dark:hover { background: var(--green-700); }

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(255,255,255,.55) 0%, transparent 60%);
  opacity: 0;
  transform: scale(0);
  transition: transform .5s var(--ease), opacity .5s var(--ease);
  z-index: -1;
}
.btn:active::after { opacity: 1; transform: scale(2.2); transition: 0s; }

.btn-row { display: flex; gap: 16px; flex-wrap: wrap; }

.text-link {
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: opacity .25s var(--ease);
}
.text-link:hover { opacity: 0.65; }

/* ==========================================================================
   Header / Navigation
   ========================================================================== */

#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
#site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.35), transparent);
  z-index: -1;
  opacity: 1;
  transition: opacity .4s var(--ease);
}
#site-header.is-scrolled {
  height: 72px;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: 0 8px 30px -18px rgba(18,54,38,.25);
}
#site-header.is-scrolled::before { opacity: 0; }

.nav-wrap {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; }
.brand-text { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--white); transition: color .4s var(--ease); }
.brand-text em { font-style: normal; font-weight: 500; opacity: .85; }
.is-scrolled .brand-text { color: var(--gray-900); }

.primary-nav ul { display: flex; gap: 4px; }
.nav-link {
  position: relative;
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255,255,255,.88);
  transition: color .3s var(--ease);
}
.is-scrolled .nav-link { color: var(--gray-700); }
.nav-link::after {
  content: '';
  position: absolute;
  left: 16px; right: 16px; bottom: 4px;
  height: 2px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--gold-300); }
.is-scrolled .nav-link.active { color: var(--green-600); }
.nav-link.active::after { transform: scaleX(1); background: currentColor; }

#menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
}
#menu-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  transition: transform .3s var(--ease), opacity .3s var(--ease), background .3s var(--ease);
}
.is-scrolled #menu-toggle span { background: var(--gray-900); }
#menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.is-open span:nth-child(2) { opacity: 0; }
#menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .primary-nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--green-900);
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease);
  }
  .primary-nav.is-open { max-height: 480px; }
  .primary-nav ul { flex-direction: column; padding: 8px 28px 24px; gap: 0; }
  .nav-link { display: block; padding: 14px 4px; color: rgba(255,255,255,.9); border-bottom: 1px solid rgba(255,255,255,.08); }
  .nav-link.active { color: var(--gold-300); }
  #menu-toggle { display: flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--green-900);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18,54,38,.92) 0%, rgba(18,54,38,.45) 45%, rgba(18,54,38,.55) 100%),
    linear-gradient(to right, rgba(18,54,38,.55) 0%, rgba(18,54,38,.15) 55%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-w);
  width: 100%;
  margin: 0 auto;
  padding: 0 28px;
}
.hero-content h1 {
  font-size: clamp(2.6rem, 6.2vw, 5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 6px 0 22px;
}
.hero-lede { color: rgba(255,255,255,.85); font-size: 1.15rem; max-width: 46ch; margin-bottom: 36px; }

.scroll-cue {
  position: absolute;
  bottom: 84px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.scroll-cue-line { width: 1px; height: 34px; background: linear-gradient(to bottom, var(--gold-500), transparent); animation: scrollcue 2.2s ease-in-out infinite; }
@keyframes scrollcue { 0%,100% { transform: scaleY(1); opacity: .5; } 50% { transform: scaleY(1.3); opacity: 1; } }

.hero .section-ridge { position: absolute; bottom: -1px; left: 0; z-index: 3; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */

.reveal, .reveal-child { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible, .reveal-child.is-visible { opacity: 1; transform: translateY(0); }
.hero-content.reveal { opacity: 1; transform: none; animation: heroIn 1s var(--ease) both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* ==========================================================================
   About
   ========================================================================== */

.about { background: var(--white); }
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 64px;
  margin-top: 46px;
  align-items: start;
}
.about-story h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.about-story > p { margin-bottom: 34px; }

.pillar { display: flex; gap: 18px; margin-bottom: 26px; }
.pillar-icon {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--gray-050);
  color: var(--green-600);
  display: flex; align-items: center; justify-content: center;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h4 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }

.about-values {
  background: var(--gray-050);
  border-radius: var(--radius-lg);
  padding: 38px;
}
.about-values h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 22px; }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.value-grid li {
  position: relative;
  padding: 12px 0 12px 20px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-900);
  border-top: 1px solid var(--gray-100);
}
.value-grid li::before {
  content: '';
  position: absolute;
  left: 0; top: 19px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .value-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Pastors
   ========================================================================== */

.pastors {
  background: linear-gradient(180deg, var(--green-700), var(--green-900));
  color: var(--white);
}
.pastors .section-sub, .pastors p { color: rgba(255,255,255,.8); }

.pastor-feature {
  margin-top: 46px;
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  min-height: 520px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.pastor-photo { position: relative; }
.pastor-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.pastor-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, transparent 60%, rgba(18,54,38,.65));
}

.pastor-glass {
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,.14);
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: -70px;
  z-index: 2;
}
.pastor-role {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-300);
  margin-bottom: 10px;
}
.pastor-glass h3 { font-size: 1.7rem; font-weight: 800; margin-bottom: 16px; color: var(--white); }
.pastor-glass p { margin-bottom: 6px; }
.pastor-divider { height: 1px; background: rgba(255,255,255,.16); margin: 22px 0 18px; }
.pastor-glass h4 { font-size: 1rem; margin-bottom: 8px; color: var(--white); }
.pastor-glass .text-link { display: inline-block; margin-top: 18px; color: var(--gold-300); }

.pastor-associate {
  margin-top: 60px;
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 28px;
  align-items: center;
  padding-top: 46px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.pastor-associate-photo { border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; }
.pastor-associate-photo img { width: 100%; height: 100%; object-fit: cover; }
.pastor-associate h3 { color: var(--white); font-size: 1.2rem; margin: 6px 0 10px; }

@media (max-width: 860px) {
  .pastor-feature { grid-template-columns: 1fr; min-height: auto; }
  .pastor-photo { aspect-ratio: 4/3; }
  .pastor-glass { margin-left: 0; padding: 36px 26px; }
  .pastor-associate { grid-template-columns: 96px 1fr; }
}

/* ==========================================================================
   Ministries
   ========================================================================== */

.ministries { background: var(--gray-050); }
.ministry-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.ministry-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--gray-100);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -24px rgba(18,54,38,.28);
  border-color: transparent;
}
.ministry-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--green-600);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: background .4s var(--ease), transform .4s var(--ease);
}
.ministry-card:hover .ministry-icon { background: var(--gold-500); color: var(--green-900); transform: rotate(-6deg) scale(1.06); }
.ministry-icon svg { width: 22px; height: 22px; }
.ministry-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.ministry-card p { font-size: 0.92rem; }

@media (max-width: 900px) { .ministry-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ministry-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Schedule
   ========================================================================== */

.schedule { background: var(--white); }
.schedule-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.schedule-card {
  background: var(--gray-050);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.schedule-card:hover { transform: translateY(-6px); box-shadow: 0 24px 44px -26px rgba(18,54,38,.3); }
.schedule-card--feature { background: linear-gradient(155deg, var(--green-600), var(--green-900)); color: var(--white); }
.schedule-card--feature .schedule-time { color: var(--gold-300); }
.schedule-card--feature p { color: rgba(255,255,255,.82); }
.schedule-time { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 14px; }
.schedule-card h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.schedule-card p { font-size: 0.9rem; }

@media (max-width: 980px) { .schedule-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .schedule-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Gallery
   ========================================================================== */

.gallery { background: var(--gray-050); }
.quote-banner {
  margin: 0 0 56px;
  padding: 0 0 0 26px;
  border-left: 3px solid var(--gold-500);
}
.quote-banner p { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1.4; }
.quote-banner cite { display: block; margin-top: 10px; font-style: normal; font-size: 0.88rem; color: var(--gray-400); font-weight: 600; }

.masonry {
  margin-top: 40px;
  columns: 3 220px;
  column-gap: 18px;
}
.masonry-item {
  display: block;
  width: 100%;
  break-inside: avoid;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}
.masonry-item img { width: 100%; height: auto; display: block; transition: transform .6s var(--ease); }
.masonry-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(18,54,38,.45), transparent 45%);
  opacity: 0;
  transition: opacity .4s var(--ease);
}
.masonry-item:hover img { transform: scale(1.07); }
.masonry-item:hover::after { opacity: 1; }
.item-tall img, .item-wide img { object-fit: cover; }

@media (max-width: 700px) { .masonry { columns: 2 160px; } }

/* ==========================================================================
   Project Nehemiah
   ========================================================================== */

.nehemiah { position: relative; padding: 130px 0; overflow: hidden; }
.nehemiah-media { position: absolute; inset: 0; }
.nehemiah-media img { width: 100%; height: 100%; object-fit: cover; }
.nehemiah-scrim { position: absolute; inset: 0; background: linear-gradient(155deg, rgba(18,54,38,.92), rgba(30,127,79,.85)); }
.nehemiah .container { position: relative; z-index: 1; display: flex; justify-content: center; }

.give-glass {
  max-width: 620px;
  text-align: center;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius-lg);
  padding: 56px 48px;
}
.badge-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: rgba(244,180,0,.16);
  color: var(--gold-300);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.give-glass h2 { color: var(--white); font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
.give-glass p { color: rgba(255,255,255,.85); margin-bottom: 30px; }

.nehemiah .section-ridge { position: absolute; bottom: -1px; left: 0; z-index: 2; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact { background: var(--white); }
.contact-grid {
  margin-top: 46px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
}
.info-block { margin-bottom: 30px; }
.info-block h5 { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 8px; }

.contact-form-wrap { background: var(--gray-050); border-radius: var(--radius-lg); padding: 40px; }
.field { margin-bottom: 16px; }
.field input, .field textarea {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--gray-900);
  resize: vertical;
  transition: border-color .3s var(--ease);
}
.field input:focus, .field textarea:focus { border-color: var(--green-600); }

.map-wrap { margin-top: 56px; border-radius: var(--radius-lg); overflow: hidden; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-form-wrap { padding: 28px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--green-900); color: rgba(255,255,255,.75); padding: 72px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { width: 52px; height: 52px; object-fit: contain; margin-bottom: 16px; }
.footer-brand h3 { color: var(--white); font-size: 1.3rem; margin-bottom: 6px; }
.footer-brand p { color: rgba(255,255,255,.6); font-style: italic; }
.footer-links h5, .footer-social h5 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links li { margin-bottom: 11px; }
.footer-links a, .footer-social a { font-size: 0.92rem; transition: color .3s var(--ease); }
.footer-links a:hover, .footer-social a:hover { color: var(--gold-300); }

.footer-bottom { text-align: center; padding: 26px 0; font-size: 0.82rem; color: rgba(255,255,255,.5); }

@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ==========================================================================
   Back to top
   ========================================================================== */

#back-to-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--green-700);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px -12px rgba(18,54,38,.5);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), background .3s var(--ease), visibility .35s;
  z-index: 60;
}
#back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--gold-500); color: var(--green-900); }
#back-to-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   Lightbox
   ========================================================================== */

.lightbox {
  position: fixed; inset: 0;
  background: rgba(18,54,38,.94);
  display: flex; align-items: center; justify-content: center;
  padding: 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  z-index: 200;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 86vh; border-radius: 12px; transform: scale(.94); transition: transform .35s var(--ease); }
.lightbox.is-open img { transform: scale(1); }
.lightbox-close {
  position: absolute; top: 24px; right: 32px;
  width: 44px; height: 44px;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease);
}
.lightbox-close:hover { background: rgba(255,255,255,.12); }

/* ==========================================================================
   Responsive: hero & sections on small screens
   ========================================================================== */

@media (max-width: 640px) {
  .section { padding: 88px 0 72px; }
  .hero-content { padding-bottom: 90px; }
  .scroll-cue { bottom: 40px; }
  :root { --header-h: 72px; }
}
