/* =========================================================
   SGMS Site-3 — Contemporary Signal Design
   Cool stone · ink · vermillion accent · Unbounded type
   ========================================================= */

:root {
  --ink: #101214;
  --ink-2: #22262b;
  --stone: #e8eaed;
  --stone-2: #dfe2e6;
  --paper: #f4f5f7;
  --muted: #5c636b;
  --signal: #c44536;
  --signal-deep: #9e3226;
  --line: rgba(16, 18, 20, 0.12);
  --line-light: rgba(244, 245, 247, 0.2);
  --white: #fff;

  --display: "Unbounded", system-ui, sans-serif;
  --body: "Manrope", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 4.5rem;
  --max: 1200px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 0% 0%, rgba(196, 69, 54, 0.08), transparent 42%),
    radial-gradient(ellipse at 100% 10%, rgba(92, 99, 107, 0.1), transparent 40%),
    linear-gradient(180deg, var(--paper) 0%, var(--stone) 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 999;
  background: var(--signal);
  color: var(--white);
  padding: 0.7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 300;
  width: 0;
  height: 2px;
  background: var(--signal);
}

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.label {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--signal);
}

.label.light {
  color: rgba(244, 245, 247, 0.65);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 16ch;
}

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.75rem 1.4rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: transform 0.35s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-fill {
  background: var(--signal);
  color: var(--white);
}

.btn-fill:hover {
  background: var(--signal-deep);
}

.btn-outline {
  border-color: rgba(244, 245, 247, 0.5);
  color: var(--paper);
}

.btn-outline:hover {
  background: rgba(244, 245, 247, 0.1);
  border-color: var(--paper);
}

.btn-block {
  width: 100%;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), box-shadow 0.4s;
}

.site-header.scrolled {
  background: rgba(244, 245, 247, 0.92);
  box-shadow: 0 10px 30px rgba(16, 18, 20, 0.06);
  backdrop-filter: blur(14px);
}

.site-header.on-hero {
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.site-header.on-hero .logo,
.site-header.on-hero .nav a,
.site-header.on-hero .nav-toggle {
  color: var(--paper);
}

.header-bar {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-2);
}

.nav-pill {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--signal);
  color: var(--white) !important;
}

.site-header.on-hero .nav-pill {
  background: var(--signal);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.3rem;
  height: 1.5px;
  margin-inline: auto;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(0.28rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-0.28rem) rotate(-45deg);
}

body.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--paper);
}

.hero-visual {
  position: absolute;
  inset: 0;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  transform: scale(1.1);
  animation: zoomOut 20s var(--ease) forwards;
}

.hero-mask {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(16, 18, 20, 0.92) 0%, rgba(16, 18, 20, 0.55) 48%, rgba(16, 18, 20, 0.3) 100%),
    linear-gradient(0deg, rgba(16, 18, 20, 0.8) 0%, transparent 48%);
}

.hero-body {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
}

.signal {
  margin: 0 0 1.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ffb3a8;
}

.signal::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 0 4px rgba(196, 69, 54, 0.25);
}

.hero h1 {
  font-size: clamp(2.8rem, 8.5vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
}

.hero h1 span {
  display: block;
}

.hero h1 .soft {
  margin-top: 0.35rem;
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(244, 245, 247, 0.78);
}

.hero-copy {
  margin: 1.5rem 0 0;
  max-width: 30rem;
  font-weight: 300;
  color: rgba(244, 245, 247, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2.2rem;
}

@keyframes zoomOut {
  to {
    transform: scale(1);
  }
}

/* About */
.about {
  padding: 7rem 0 4rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.about-intro h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  max-width: 12ch;
}

.about-text p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.about-text em {
  color: var(--ink);
  font-style: normal;
  font-weight: 600;
}

.tags {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tags li {
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: rgba(196, 69, 54, 0.1);
  color: var(--signal-deep);
  font-size: 0.78rem;
  font-weight: 600;
}

.about-banner {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
}

.about-banner img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 1.25rem;
}

.about-banner figcaption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Inspiration */
.inspiration {
  padding: 4rem 0 5rem;
}

.inspire-pair {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.inspire {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  overflow: hidden;
}

.inspire img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: top center;
}

.inspire > div {
  padding: 1.4rem 1.35rem 1.6rem;
}

.inspire h3 {
  font-size: 1.35rem;
}

.inspire .role {
  margin: 0.4rem 0 0.8rem;
  color: var(--signal);
  font-size: 0.88rem;
  font-weight: 600;
}

.inspire p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.quote {
  margin-top: 3.5rem;
  text-align: center;
  border: 0;
  padding: 0;
}

.quote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.35;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.06em;
}

/* Mission */
.mission {
  position: relative;
  color: var(--paper);
  overflow: hidden;
}

.mission-bg {
  position: absolute;
  inset: 0;
}

.mission-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35);
}

.mission-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, rgba(16, 18, 20, 0.94), rgba(34, 38, 43, 0.88));
}

.mission-panel {
  position: relative;
  z-index: 1;
  padding: 6.5rem 0;
}

.mission-panel h2 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  font-weight: 700;
}

.mission-lead {
  margin: 1.5rem 0 3rem;
  max-width: 40rem;
  font-weight: 300;
  color: rgba(244, 245, 247, 0.8);
}

.mission-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.mission-cols article {
  padding: 1.3rem;
  border: 1px solid var(--line-light);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.04);
}

.mission-cols span {
  display: block;
  margin-bottom: 0.8rem;
  color: #ffb3a8;
  font-family: var(--display);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.mission-cols h3 {
  font-size: 1.15rem;
  margin-bottom: 0.6rem;
}

.mission-cols p {
  margin: 0;
  color: rgba(244, 245, 247, 0.7);
  font-size: 0.92rem;
  font-weight: 300;
}

/* Leadership */
.leadership {
  padding: 6.5rem 0 3rem;
}

.leader-list {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 2rem auto 0;
  display: grid;
  gap: 1.2rem;
}

.leader {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
}

.leader-img {
  overflow: hidden;
  border-radius: 1rem;
  background: var(--stone-2);
}

.leader-img img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.8s var(--ease);
}

.leader:hover .leader-img img {
  transform: scale(1.05);
}

.leader-copy span {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--display);
  font-size: 0.72rem;
  color: var(--signal);
  letter-spacing: 0.1em;
}

.leader-copy h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.leader-copy .role {
  margin: 0.45rem 0 0.8rem;
  color: var(--signal);
  font-weight: 600;
  font-size: 0.92rem;
}

.leader-copy p:last-child {
  margin: 0;
  color: var(--muted);
}

.officers {
  margin-top: 3rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}

.officers h3 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.officers ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.officers li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.officers li span:last-child {
  color: var(--muted);
}

/* Event */
.event {
  padding: 4rem 0 6rem;
}

.event-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.event-media {
  overflow: hidden;
  border-radius: 1.4rem;
}

.event-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.event-copy h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.5rem);
  margin-bottom: 0.9rem;
}

.event-copy > p {
  color: var(--muted);
}

.meta {
  margin: 1.5rem 0 1.8rem;
  display: grid;
  gap: 1rem;
}

.meta dt {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
}

.meta dd {
  margin: 0.25rem 0 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
}

/* Gallery */
.gallery {
  padding: 2rem 0 5rem;
}

.gallery-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.8rem;
}

.filters {
  display: flex;
  gap: 0.5rem;
}

.filter-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: background 0.25s, color 0.25s, border-color 0.25s;
}

.filter-btn.active,
.filter-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.gallery-grid {
  width: min(var(--max), calc(100% - 2.5rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.tile {
  border: 0;
  padding: 0;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--stone-2);
  cursor: pointer;
}

.tile.hidden {
  display: none;
}

.tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.tile:hover img {
  transform: scale(1.06);
}

.video-block {
  margin-top: 3rem;
}

.video-block h3 {
  margin-bottom: 1rem;
  font-size: 1.4rem;
}

.video-frame {
  overflow: hidden;
  border-radius: 1.2rem;
  background: var(--ink);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

/* Contact */
.contact {
  padding: 3rem 0 6.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-copy h2 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 0.9rem;
}

.contact-copy > p {
  color: var(--muted);
  max-width: 30rem;
}

.phone {
  margin-top: 2.2rem;
  padding: 1.3rem 1.4rem;
  border-radius: 1.1rem;
  background: rgba(196, 69, 54, 0.08);
  border: 1px solid rgba(196, 69, 54, 0.2);
  display: grid;
  gap: 0.25rem;
}

.phone span {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 600;
}

.phone a {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  font-weight: 600;
  color: var(--ink);
}

.contact-list {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  display: grid;
  gap: 0.2rem;
}

.contact-list span {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.contact-list a {
  color: var(--signal);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 1.3rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.contact-form label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
  padding: 0.85rem 0.95rem;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(196, 69, 54, 0.35);
  border-color: var(--signal);
}

.form-note {
  margin: 0;
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--signal);
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 245, 247, 0.7);
  padding: 2.4rem 0;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  justify-content: space-between;
  align-items: center;
}

.footer-row strong {
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--paper);
}

.footer-row p {
  margin: 0;
}

.footer-row a {
  color: #ffb3a8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: rgba(10, 12, 14, 0.94);
  display: grid;
  place-items: center;
  padding: 2rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(980px, 100%);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 0.75rem;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  border: 0;
  background: transparent;
  color: var(--paper);
  font-size: 2.5rem;
  cursor: pointer;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .about-grid,
  .inspire-pair,
  .event-grid,
  .contact-grid,
  .mission-cols,
  .leader {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-banner img {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.4rem 0 1rem;
    background: rgba(244, 245, 247, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.95rem 1.25rem;
    color: var(--ink) !important;
  }

  .nav-pill {
    margin: 0.5rem 1.25rem 0;
    text-align: center;
  }

  body.menu-open .site-header {
    background: rgba(244, 245, 247, 0.98);
  }

  body.menu-open .site-header .logo,
  body.menu-open .site-header .nav-toggle {
    color: var(--ink);
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-visual img,
  .leader-img img,
  .tile img,
  .btn {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
