/* ============================================================
   Inherent Automation — brand system v3
   Green #004225 · Pewter #899499 · near-black #0b0f0d · off-white #f5f6f5
   Fixed fullscreen looping video · content scrolls over it
   ============================================================ */

@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-Variable-latin.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Figtree';
  src: url('/assets/fonts/Figtree-Variable-latin-ext.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('/assets/fonts/IBMPlexMono-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

:root {
  --green: #004225;
  --green-bright: #0a6b41;
  --green-glow: #37a374;
  --pewter: #899499;
  --pewter-light: #c3cbce;
  --ink: #0b0f0d;
  --paper: #f5f6f5;
  --white: #ffffff;
  --font-head: 'Figtree', -apple-system, 'Helvetica Neue', sans-serif;
  --font-body: 'Figtree', -apple-system, 'Helvetica Neue', sans-serif;
  --font-mono: 'IBM Plex Mono', 'SF Mono', Menlo, monospace;
  --nav-h: 76px;
  --radius: 16px;
  --container: 1200px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --glass: rgba(9, 14, 12, 0.42);
  --glass-border: rgba(245, 246, 245, 0.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* Scroll lock while the mobile menu is open */
html.menu-open, body.menu-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-h);
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  background: transparent;
  color: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ---------- Fixed persistent background video ---------- */

.bg-media {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--ink) url('/assets/video/poster.jpg') center / cover no-repeat;
  overflow: hidden;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Cinematic grade: one translucent gradient over the whole video.
   The video stays visible and moving everywhere — this just deepens
   the blacks toward brand ink so type and UI sit on it like a film title. */
.bg-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg,
      rgba(11, 15, 13, 0.82) 0%,
      rgba(11, 15, 13, 0.55) 34%,
      rgba(11, 15, 13, 0.32) 60%,
      rgba(11, 15, 13, 0.55) 100%),
    linear-gradient(to bottom,
      rgba(11, 15, 13, 0.55) 0%,
      rgba(11, 15, 13, 0.05) 22%,
      rgba(11, 15, 13, 0.05) 72%,
      rgba(11, 15, 13, 0.6) 100%);
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.mono { font-family: var(--font-mono); }

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); color: var(--white); }

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green-glow);
  margin-bottom: 1.2rem;
}

.section-subhead {
  font-size: clamp(1.05rem, 1.6vw, 1.22rem);
  font-weight: 300;
  color: var(--pewter-light);
  max-width: 640px;
  margin-top: 1.2rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.8rem 1.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
  white-space: nowrap;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.05rem; }
.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1) inset, 0 10px 34px rgba(0, 66, 37, 0.55);
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16) inset, 0 14px 40px rgba(0, 66, 37, 0.7);
}
.btn-light {
  background: var(--paper);
  color: var(--green);
}
.btn-light:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.3);
}

.link-arrow {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--paper);
  transition: color 0.25s;
}
.link-arrow::after {
  content: ' →';
  display: inline-block;
  transition: transform 0.25s var(--ease-out);
}
.link-arrow:hover { color: var(--green-glow); }
.link-arrow:hover::after { transform: translateX(5px); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: linear-gradient(to bottom, rgba(11,15,13,0.6), rgba(11,15,13,0));
  transition: background 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 15, 13, 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  backdrop-filter: blur(16px) saturate(1.3);
  border-bottom-color: rgba(137, 148, 153, 0.14);
}
.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo img {
  height: 34px;
  width: auto;
  filter: drop-shadow(0 2px 10px rgba(11,15,13,0.7));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 2.4rem;
}
.nav-links a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--paper);
  text-shadow: 0 1px 10px rgba(11,15,13,0.8);
  transition: color 0.2s;
}
.nav-links a:not(.btn):hover { color: var(--green-glow); }
.nav-cta { padding: 0.58rem 1.35rem; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--paper);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.hero-scrim { display: none; }
.hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  padding-bottom: 4rem;
}
.hero-eyebrow {
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.15s forwards;
}
.hero-headline {
  font-size: clamp(2.8rem, 6.6vw, 5.6rem);
  max-width: 14ch;
  color: var(--white);
  text-shadow: 0 3px 30px rgba(11,15,13,0.6);
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.3s forwards;
}
.hero-subhead {
  font-size: clamp(1.08rem, 1.8vw, 1.32rem);
  font-weight: 300;
  color: var(--pewter-light);
  max-width: 50ch;
  margin-top: 1.6rem;
  text-shadow: 0 1px 14px rgba(11,15,13,0.75);
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.45s forwards;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.8rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: rise 0.9s var(--ease-out) 0.6s forwards;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 1px;
  height: 52px;
  background: rgba(245,246,245,0.2);
  overflow: hidden;
}
.hero-scroll-hint span {
  position: absolute;
  top: -40%;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--green-glow);
  animation: scrollhint 2.2s var(--ease-out) infinite;
}
@keyframes scrollhint {
  0% { top: -40%; }
  70%, 100% { top: 110%; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(2.6rem, 5vw, 4rem); }
.section-head h2 { text-shadow: 0 2px 24px rgba(11,15,13,0.6); }

.panel { background: none; border: none; padding: 0; }

/* ---------- Feature cards — glass, video visible through them ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.3rem;
}
.feature-card {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(11, 15, 13, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.35s, background 0.35s;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 2px;
  background: linear-gradient(to right, var(--green-glow), transparent 70%);
  opacity: 0.7;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 163, 116, 0.45);
  background: rgba(9, 14, 12, 0.55);
}
.feature-card .card-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--green-glow);
  display: block;
  margin-bottom: 1.5rem;
}
.feature-card h3 {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.7rem;
}
.feature-card p {
  font-size: 0.97rem;
  color: var(--pewter-light);
}

/* ---------- GISA — glass timeline ---------- */

.timeline {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.3rem;
}
.timeline:empty { display: none; }
.timeline-step {
  position: relative;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(11, 15, 13, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.timeline-step:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 163, 116, 0.45);
}
.step-num {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: var(--green-glow);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.4rem;
}
.step-body h3 {
  font-size: 1.32rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.55rem;
}
.step-body p {
  font-size: 0.95rem;
  color: var(--pewter-light);
}

/* ---------- Leadership ---------- */

/* Intro row: headline block on the left, photo as a modest framed card on
   the right — sized like a photograph on a desk, not a billboard. */
.leadership-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-bottom: clamp(2.6rem, 5vw, 4rem);
}
.leadership-intro .section-head { margin-bottom: 0; }

.leadership-photo {
  margin: 0;
  max-width: 460px;
  justify-self: end;
  border-radius: calc(var(--radius) + 8px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 24px 70px rgba(11, 15, 13, 0.45);
  transform: rotate(1.2deg);
  transition: transform 0.4s var(--ease-out);
}
.leadership-photo:hover { transform: rotate(0deg) scale(1.02); }
.leadership-photo img {
  width: 100%;
  height: auto;
  display: block;
}
.leadership-photo figcaption {
  padding: 0.9rem 1.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pewter-light);
  border-top: 1px solid var(--glass-border);
}

.leader-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}
.leader-col {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.1rem 1.9rem;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(11, 15, 13, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.leader-col:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 163, 116, 0.45);
}
.leader-col h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.leader-title {
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green-glow);
  margin: 0.5rem 0 1.3rem;
}
.leader-bio {
  font-size: 0.93rem;
  font-weight: 400;
  color: var(--pewter-light);
  margin-bottom: 0.9rem;
}
.leader-bio:last-child { margin-bottom: 0; }

/* Advisor — a distinct horizontal card under the three columns:
   portrait left, story right, subtle green accent to set it apart. */
.advisor-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  margin-top: 1.3rem;
  border: 1px solid rgba(55, 163, 116, 0.28);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.6rem);
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 18px 50px rgba(11, 15, 13, 0.35);
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
}
.advisor-row:hover {
  transform: translateY(-6px);
  border-color: rgba(55, 163, 116, 0.5);
}
.advisor-row:empty { display: none; }
.advisor-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  box-shadow: 0 14px 40px rgba(11, 15, 13, 0.4);
}
.advisor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.advisor-tag {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-glow);
  border: 1px solid rgba(55, 163, 116, 0.4);
  border-radius: 999px;
  padding: 0.28rem 0.9rem;
  margin-bottom: 0.9rem;
}
.advisor-body h3 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .leader-grid { grid-template-columns: 1fr; }
  .leadership-intro { grid-template-columns: 1fr; }
  .leadership-photo { justify-self: start; max-width: 420px; transform: none; }
  .advisor-row { grid-template-columns: 1fr; justify-items: start; }
  .advisor-photo { width: 160px; height: 160px; }
}

/* ---------- Contact ---------- */

.section-green { background: none; }
.contact-inner {
  max-width: 880px;
  border: 1px solid rgba(55, 163, 116, 0.3);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(2.6rem, 6vw, 4.5rem) clamp(1.8rem, 5vw, 4rem);
  background:
    radial-gradient(900px 460px at 85% -20%, rgba(10, 107, 65, 0.5), transparent 60%),
    rgba(0, 40, 23, 0.62);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 24px 70px rgba(11, 15, 13, 0.45);
}
.contact-inner h2 { max-width: 18ch; }
.contact-actions {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  margin-top: 2.4rem;
  flex-wrap: wrap;
}
.contact-email {
  font-size: 0.95rem;
  color: var(--white);
  border-bottom: 1px solid rgba(245,246,245,0.5);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.contact-email:hover { color: var(--green-glow); border-color: var(--green-glow); }

/* ---------- Footer ---------- */

.footer {
  background: linear-gradient(to top, rgba(11,15,13,0.85), rgba(11,15,13,0.3));
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(137, 148, 153, 0.14);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2.5rem;
  flex-wrap: wrap;
  padding-bottom: 2.5rem;
}
.footer-logo { height: 30px; width: auto; margin-bottom: 1.1rem; }
.footer-tagline {
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--pewter-light);
  max-width: 34ch;
}
.footer-links {
  display: flex;
  gap: 1.9rem;
}
.footer-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--pewter-light);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-glow); }
.footer-bottom {
  border-top: 1px solid rgba(137, 148, 153, 0.12);
  padding-top: 1.6rem;
}
.footer-bottom p {
  font-size: 0.75rem;
  color: var(--pewter);
  letter-spacing: 0.04em;
}

/* ---------- Scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger { transition-delay: var(--stagger, 0s); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-eyebrow, .hero-headline, .hero-subhead, .hero-actions { animation: none; opacity: 1; }
  .hero-scroll-hint { display: none; }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    bottom: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid rgba(137, 148, 153, 0.14);
    padding: 0.6rem 32px 1.4rem;
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s var(--ease-out), transform 0.3s var(--ease-out), visibility 0.3s;
  }
  .nav-links.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
  .nav-links a:not(.btn) {
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(137, 148, 153, 0.1);
  }
  .nav-cta { margin-top: 1.2rem; }
  .nav-logo img { height: 28px; }

  .hero-content { padding-bottom: 6rem; }
  .contact-inner { padding: 2.2rem 1.5rem; }
  .footer-inner { flex-direction: column; }
}
