:root {
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(15, 29, 47, 0.66);
  --panel-strong: rgba(10, 23, 40, 0.88);
  --text: #f7f4ed;
  --muted: #afbac8;
  --gold: #efb349;
  --gold-light: #ffd482;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  --radius: 24px;
  --container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgba(31, 88, 137, 0.15), transparent 28rem),
    var(--bg);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}
body.menu-open { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 9999;
  padding: 12px 16px;
  border-radius: 10px;
  color: #07111f;
  background: var(--gold-light);
  font-weight: 800;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }
.container { width: var(--container); margin-inline: auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 18px 0;
  transition: background .35s ease, border-color .35s ease, padding .35s ease, backdrop-filter .35s ease;
}
.site-header.scrolled {
  padding: 11px 0;
  background: rgba(7, 17, 31, .78);
  border-bottom: 1px solid rgba(255,255,255,.09);
  backdrop-filter: blur(20px);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-identity {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 14px rgba(0,0,0,.45);
}
.site-identity strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.site-identity span {
  color: rgba(255,255,255,.76);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.header-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255,255,255,.88);
  border-radius: 0;
  color: #fff;
  background: rgba(0,0,0,.72);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.header-contact:hover,
.header-contact:focus-visible {
  color: #000;
  background: #fff;
  transform: translateY(-2px);
}

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -5;
  background-image: url('../images/tower-bridge-sunset-v2.jpg');
  background-size: cover;
  background-position: center center;
  transform: none;
  animation: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(4,12,23,.82) 0%, rgba(4,12,23,.62) 30%, rgba(4,12,23,.22) 54%, rgba(4,12,23,.02) 76%),
    linear-gradient(180deg, rgba(4,12,23,.10) 0%, rgba(4,12,23,.02) 58%, rgba(7,17,31,.46) 100%);
}
.hero-glow { position: absolute; z-index: -3; border-radius: 50%; filter: blur(10px); opacity: .22; pointer-events: none; }
.hero-glow-one { display: none; }
.hero-glow-two { display: none; }
.hero-content { padding-top: 150px; padding-bottom: 110px; }
.hero-content > * { max-width: 760px; }
.eyebrow { margin: 0 0 18px; color: var(--gold-light); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .2em; }
h1, h2, h3 { font-family: "Space Grotesk", sans-serif; line-height: 1.05; margin-top: 0; }
h1 { max-width: 790px; margin-bottom: 26px; font-size: clamp(3.5rem, 7.4vw, 7rem); letter-spacing: -.065em; text-wrap: balance; text-shadow: 0 4px 26px rgba(0,0,0,.40); }
h1 span { color: transparent; background: linear-gradient(110deg, #fff2c7, var(--gold), #ffe1a1); -webkit-background-clip: text; background-clip: text; }
.hero-copy { max-width: 650px; margin: 0 0 34px; color: #f1f4f7; font-size: clamp(1rem, 1.5vw, 1.18rem); text-shadow: 0 2px 16px rgba(0,0,0,.58); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 25px; border-radius: 14px; text-decoration: none; font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease; }
.button:hover, .button:focus-visible { transform: translateY(-3px); }
.button-primary { color: #111827; background: linear-gradient(135deg, var(--gold-light), var(--gold)); box-shadow: 0 14px 34px rgba(239,179,73,.24); }
.button-primary:hover { box-shadow: 0 18px 42px rgba(239,179,73,.34); }
.button-secondary { border: 1px solid rgba(255,255,255,.36); background: rgba(7,17,31,.36); backdrop-filter: blur(12px); }
.button-secondary:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.62); }
.scroll-cue { position: absolute; left: 50%; bottom: 34px; translate: -50%; width: 34px; height: 54px; border: 1px solid rgba(255,255,255,.34); border-radius: 999px; }
.scroll-cue span { position: absolute; left: 50%; top: 11px; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); translate: -50%; animation: scrollCue 2s infinite; }
.hero-fade { position: absolute; inset: auto 0 0; height: 105px; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }

.section { position: relative; padding: 120px 0; }
.section h2 { margin-bottom: 24px; font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -.045em; }
.section p { color: var(--muted); }
.lead { color: #e8edf2 !important; font-size: 1.2rem; }
.two-column { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: start; }
.about-copy { max-width: 670px; }
.about-copy p { margin-top: 0; margin-bottom: 22px; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.glass-card { border: 1px solid rgba(255,255,255,.1); background: linear-gradient(145deg, rgba(18,34,55,.72), rgba(8,21,38,.54)); box-shadow: var(--shadow); backdrop-filter: blur(18px); }
.metric-card { min-height: 175px; padding: 30px; border-radius: var(--radius); display: flex; flex-direction: column; justify-content: flex-end; }
.metric-number { color: var(--gold-light); font-family: "Space Grotesk", sans-serif; font-size: 2.3rem; font-weight: 700; }
.metric-label { margin-top: 5px; color: var(--muted); }

.section-career { background: linear-gradient(180deg, transparent, rgba(11,23,40,.84) 18%, rgba(11,23,40,.84) 82%, transparent); }
.section-intro { max-width: 820px; margin-bottom: 70px; }
.section-intro > p:last-child { max-width: 670px; font-size: 1.05rem; }
.timeline { position: relative; }
.timeline::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 190px; width: 1px; background: linear-gradient(var(--gold), rgba(239,179,73,.08)); }
.timeline-item { display: grid; grid-template-columns: 150px 48px 1fr; gap: 16px; align-items: start; margin-bottom: 28px; }
.timeline-year { padding-top: 30px; color: var(--gold-light); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; text-align: right; }
.timeline-dot { width: 14px; height: 14px; margin: 35px auto 0; border: 3px solid var(--gold); border-radius: 50%; background: var(--bg); box-shadow: 0 0 0 8px rgba(239,179,73,.08); }
.timeline-card { padding: 28px 30px; border-radius: 20px; }
.timeline-card h3 { margin-bottom: 10px; font-size: 1.4rem; }
.timeline-card p { margin: 0; }

.legend-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.legend-copy { max-width: 560px; }
.legend-copy .button { margin-top: 14px; }
.legend-showcase { position: relative; min-height: 520px; display: grid; place-items: center; }
.device { position: absolute; border: 1px solid rgba(255,255,255,.22); background: #0a0f18; box-shadow: 0 35px 80px rgba(0,0,0,.46); overflow: hidden; }
.device-laptop { width: min(640px, 90%); aspect-ratio: 16 / 10; border-radius: 20px; transform: perspective(1200px) rotateY(-7deg) rotateX(2deg); }
.device-phone { right: 4%; bottom: 7%; width: 145px; aspect-ratio: 9 / 19; border-radius: 26px; border-width: 5px; transform: rotate(4deg); }
.device-bar { height: 25px; display: flex; align-items: center; gap: 6px; padding-left: 12px; background: #161d28; }
.device-bar span { width: 7px; height: 7px; border-radius: 50%; background: #647185; }
.device-screen { height: calc(100% - 25px); background: #f4f6f8; overflow: hidden; }
.phone-screen { height: 100%; }
.mock-nav { height: 10%; background: #081321; }
.mock-hero { height: 60%; padding: 9%; display: flex; flex-direction: column; justify-content: center; color: #fff; background: linear-gradient(135deg, rgba(4,15,31,.88), rgba(13,54,91,.72)), url('../images/tower-bridge-sunset-v2.jpg') center/cover; }
.mock-hero small { color: var(--gold-light); text-transform: uppercase; letter-spacing: .16em; }
.mock-hero strong { margin: 12px 0 16px; font-size: clamp(1rem, 2vw, 2.2rem); line-height: 1.1; }
.mock-hero span { width: 90px; height: 18px; border-radius: 5px; background: var(--gold); }
.mock-cards { height: 30%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 5%; padding: 5%; }
.mock-cards i { border-radius: 8px; background: #dbe2ea; }
.phone-screen .mock-hero { height: 62%; padding: 13%; }
.phone-screen .mock-hero strong { font-size: 1rem; }
.phone-screen .mock-hero span { width: 55px; height: 12px; }
.phone-screen .mock-cards { grid-template-columns: 1fr; height: 28%; }
.showcase-orbit { position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(239,179,73,.17); }
.orbit-one { width: 510px; height: 510px; animation: spin 25s linear infinite; }
.orbit-two { width: 380px; height: 380px; border-style: dashed; animation: spinReverse 18s linear infinite; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 70px; }
.service-card { padding: 32px; border-radius: var(--radius); }
.service-icon { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 38px; border-radius: 12px; color: var(--gold-light); border: 1px solid rgba(239,179,73,.36); font-weight: 800; }
.service-card h3 { margin-bottom: 10px; font-size: 1.35rem; }
.service-card p { margin: 0; }

.section-community { overflow: hidden; }
.section-community::before { content: ""; position: absolute; inset: 10% -15% auto auto; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(42,107,157,.16), transparent 68%); }
.community-header { max-width: 820px; margin-bottom: 56px; }
.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.community-card { min-height: 290px; padding: 34px; border-radius: var(--radius); }
.line-icon { margin-bottom: 50px; color: var(--gold-light); font-size: 2.4rem; }
.community-card h3 { margin-bottom: 12px; font-size: 1.45rem; }

.section-contact { padding-top: 80px; }
.contact-backdrop { position: absolute; inset: 0; background: radial-gradient(circle at 50% 100%, rgba(239,179,73,.14), transparent 38%); }
.contact-panel { position: relative; display: grid; grid-template-columns: 1.3fr .7fr; gap: 50px; align-items: center; padding: 58px; border-radius: 30px; }
.contact-panel h2 { margin-bottom: 18px; }
.contact-panel p { max-width: 700px; margin-bottom: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.text-link { color: #fff; text-decoration: none; font-weight: 800; }
.text-link span { color: var(--gold-light); }

.site-footer { padding: 34px 0; border-top: 1px solid var(--line); }
.footer-wrap { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.footer-wrap p { color: #7f8b9b; font-size: .82rem; }
.footer-identity { display: grid; line-height: 1.2; }
.footer-identity strong { font-family: "Space Grotesk", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.footer-identity small { margin-top: 5px; color: #7f8b9b; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes cinematicZoom { from { transform: scale(1.09); } to { transform: scale(1.035); } }
@keyframes scrollCue { 0% { translate: -50% 0; opacity: 0; } 25% { opacity: 1; } 75% { opacity: 1; } 100% { translate: -50% 20px; opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinReverse { to { transform: rotate(-360deg); } }

@media (max-width: 940px) {
  :root { --container: min(100% - 30px, 760px); }
  .two-column, .legend-layout, .contact-panel { grid-template-columns: 1fr; }
  .two-column, .legend-layout { gap: 45px; }
  .legend-showcase { min-height: 470px; }
  .timeline::before { left: 126px; }
  .timeline-item { grid-template-columns: 92px 36px 1fr; gap: 12px; }
  .timeline-year { font-size: .72rem; }
  .metric-grid, .service-grid, .community-grid { grid-template-columns: 1fr; }
  .service-card, .community-card { min-height: 0; }
  .line-icon, .service-icon { margin-bottom: 25px; }
}

@media (max-width: 640px) {
  :root { --container: calc(100% - 32px); }
  .site-header { padding-top: 12px; }
  .site-identity strong { font-size: .88rem; letter-spacing: .09em; }
  .site-identity span { font-size: .65rem; }
  .header-contact { min-height: 42px; padding: 0 14px; }
  .hero { min-height: 100svh; }
  .hero-media { background-position: 57% center; }
  .hero-overlay { background: linear-gradient(90deg, rgba(4,12,23,.76) 0%, rgba(4,12,23,.50) 52%, rgba(4,12,23,.12) 100%), linear-gradient(180deg, rgba(4,12,23,.06), rgba(7,17,31,.42)); }
  .hero-content { padding-top: 118px; padding-bottom: 100px; }
  h1 { font-size: clamp(2.85rem, 14vw, 4.15rem); line-height: 1.01; }
  .hero-copy { font-size: 1rem; }
  .scroll-cue { display: none; }
  .section { padding: 88px 0; }
  .section h2 { font-size: clamp(2.25rem, 11vw, 3.5rem); }
  .metric-grid { margin-top: 45px; }
  .metric-card { min-height: 145px; }
  .timeline::before { left: 8px; }
  .timeline-item { grid-template-columns: 18px 1fr; }
  .timeline-year { grid-column: 2; text-align: left; padding: 0; margin-bottom: -2px; }
  .timeline-dot { grid-column: 1; grid-row: 1 / span 2; width: 12px; height: 12px; margin-top: 8px; }
  .timeline-card { grid-column: 2; padding: 24px; }
  .legend-showcase { min-height: 340px; }
  .device-laptop { width: 96%; }
  .device-phone { width: 92px; right: 0; bottom: 2%; }
  .orbit-one { width: 330px; height: 330px; }
  .orbit-two { width: 250px; height: 250px; }
  .contact-panel { padding: 32px 24px; }
  .contact-actions .button { width: 100%; }
  .footer-wrap { flex-direction: column; align-items: flex-start; }
}

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

/* Professional three-card focus section */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 76px;
}
.focus-card {
  position: relative;
  min-height: 100%;
  padding: 34px 30px 30px;
  border: 1px solid rgba(255,255,255,.12);
  border-top: 3px solid var(--gold);
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 26%),
    rgba(8, 18, 31, .88);
  box-shadow: 0 22px 55px rgba(0,0,0,.24);
  overflow: hidden;
  transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.focus-card::after {
  content: "";
  position: absolute;
  top: -72px;
  right: -72px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(239,179,73,.055);
  pointer-events: none;
}
.focus-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239,179,73,.42);
  box-shadow: 0 30px 70px rgba(0,0,0,.34);
  background:
    linear-gradient(180deg, rgba(239,179,73,.03), transparent 26%),
    rgba(8, 18, 31, .95);
}
.focus-icon {
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
}
.focus-icon svg {
  width: 42px;
  height: 42px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.focus-card h3 {
  margin-bottom: 14px;
  font-size: 1.35rem;
  letter-spacing: -.02em;
}
.focus-card > p {
  margin: 0 0 22px;
}
.focus-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.focus-card li {
  position: relative;
  padding: 11px 0 11px 22px;
  color: #d9e0e8;
  border-bottom: 1px solid rgba(255,255,255,.07);
  font-size: .93rem;
}
.focus-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--gold);
}
.focus-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--gold-light);
  font-weight: 800;
  letter-spacing: .04em;
  text-decoration: none;
  text-transform: uppercase;
  font-size: .76rem;
}
.focus-link span { transition: transform .2s ease; }
.focus-link:hover span { transform: translate(3px,-3px); }

@media (max-width: 940px) {
  .focus-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .focus-grid { margin-top: 48px; gap: 18px; }
  .focus-card { padding: 28px 24px 24px; }
}

/* Community story and clean finale */
.section-community-story {
  position: relative;
  padding: clamp(5.5rem, 9vw, 9rem) 0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.015), transparent 32%),
    #091423;
  border-top: 1px solid rgba(255,255,255,.08);
}

.community-story-layout {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.community-story-heading h2 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(2.6rem, 5vw, 5.25rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.community-story-copy {
  max-width: 760px;
}

.community-story-copy p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.8;
}

.community-story-copy .lead {
  color: var(--text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.55;
}

.community-organizations {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(4rem, 7vw, 7rem);
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.community-organization {
  min-height: 260px;
  padding: 2.25rem 1.8rem 2.5rem;
  border-right: 1px solid rgba(255,255,255,.12);
}

.community-organization:last-child { border-right: 0; }
.community-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--accent);
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
}

.community-organization h3 {
  margin: 0 0 1rem;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.25;
}

.community-organization p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-contact-clean {
  padding: clamp(5rem, 8vw, 8rem) 0;
  background: #050d17;
  border-top: 1px solid rgba(216,169,74,.58);
}

.contact-clean-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3rem;
  align-items: center;
}

.contact-clean-copy h2 {
  margin: .25rem 0 1.15rem;
  max-width: 820px;
  font-size: clamp(2.75rem, 5.6vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
}

.contact-clean-copy > p:last-child {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.7;
}

.contact-square-button {
  display: inline-flex;
  min-width: 148px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 0;
  background: #05080d;
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.contact-square-button:hover,
.contact-square-button:focus-visible {
  background: #fff;
  color: #05080d;
  border-color: #fff;
}

.site-footer-clean {
  padding: 1.6rem 0;
  background: #03080f;
  border-top: 1px solid rgba(255,255,255,.08);
}

.footer-clean-wrap,
.footer-clean-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-clean-wrap > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.footer-clean-wrap strong { color: var(--text); }
.footer-clean-wrap span,
.footer-clean-links a { color: var(--muted); }
.footer-clean-links a:hover { color: var(--accent); }

@media (max-width: 980px) {
  .community-story-layout,
  .contact-clean-layout { grid-template-columns: 1fr; }
  .community-organizations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-organization:nth-child(2) { border-right: 0; }
  .community-organization:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.12); }
  .contact-square-button { justify-self: start; }
}

@media (max-width: 640px) {
  .section-community-story,
  .section-contact-clean { padding: 4.5rem 0; }
  .community-organizations { grid-template-columns: 1fr; }
  .community-organization {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .community-organization:last-child { border-bottom: 0; }
  .footer-clean-wrap,
  .footer-clean-links,
  .footer-clean-wrap > div:first-child {
    align-items: flex-start;
    flex-direction: column;
    gap: .6rem;
  }
}

/* Contact popup */
button.header-contact,
button.contact-square-button {
  font: inherit;
  cursor: pointer;
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.contact-modal.is-open {
  visibility: visible;
  opacity: 1;
}

.contact-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 16, .78);
  backdrop-filter: blur(8px);
}

.contact-modal-panel {
  position: relative;
  width: min(540px, 100%);
  padding: 42px;
  background: #081320;
  border: 1px solid rgba(232, 173, 67, .55);
  box-shadow: 0 32px 90px rgba(0, 0, 0, .48);
  transform: translateY(16px);
  transition: transform 180ms ease;
}

.contact-modal.is-open .contact-modal-panel {
  transform: translateY(0);
}

.contact-modal-panel h2 {
  margin: 8px 0 10px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 6vw, 3.4rem);
  line-height: 1;
}

.contact-modal-intro {
  margin: 0 0 28px;
  color: var(--muted);
}

.contact-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 0;
  background: transparent;
  color: #fff;
  font: 300 28px/1 Arial, sans-serif;
  cursor: pointer;
}

.contact-modal-close:hover,
.contact-modal-close:focus-visible {
  border-color: var(--gold);
  color: var(--gold);
}

.contact-methods {
  display: grid;
  gap: 10px;
}

.contact-method {
  display: grid;
  grid-template-columns: 50px 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 78px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.025);
  color: #fff;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.contact-method:hover,
.contact-method:focus-visible {
  border-color: var(--gold);
  background: rgba(232, 173, 67, .07);
  transform: translateX(3px);
}

.contact-method-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(232, 173, 67, .55);
  color: var(--gold);
}

.contact-method-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.contact-method strong,
.contact-method small {
  display: block;
}

.contact-method strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.contact-method small {
  margin-top: 3px;
  color: var(--muted);
  font-size: .82rem;
}

.contact-method-arrow {
  color: var(--gold);
  font-size: 1.25rem;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .contact-modal { padding: 14px; }
  .contact-modal-panel { padding: 36px 20px 22px; }
  .contact-method { grid-template-columns: 44px 1fr auto; gap: 12px; padding: 11px 12px; }
  .contact-method-icon { width: 42px; height: 42px; }
  .contact-method small { font-size: .75rem; overflow-wrap: anywhere; }
}

@media (prefers-reduced-motion: reduce) {
  .contact-modal,
  .contact-modal-panel,
  .contact-method { transition: none; }
}
