/* ==========================================================================
   GEEMINDS — stylesheet
   Single consolidated file. Sections: tokens, base, header, hero, about,
   vision & mission, purpose, contact/footer, ambient light effects,
   responsive breakpoints, motion.
   ========================================================================== */

:root {
  --black: #050505;
  --panel: #0b0c0e;
  --silver: #d7d8db;
  --white: #f5f5f3;
  --muted: #9a9da3;
  --line: rgba(255, 255, 255, .12);
  --accent: #bcc6d1;
  --accent-soft: rgba(188, 198, 209, .14);
  --font: 'Inter', Arial, sans-serif;

  --gap-md: clamp(24px, 4vw, 56px);

  --h1-size: clamp(42px, 6.2vw, 96px);
  --h2-size: clamp(36px, 4.4vw, 64px);
  --h2-size-mobile: clamp(34px, 9.5vw, 48px);
  --h3-size: clamp(19px, 1.7vw, 24px);
  --eyebrow-size: clamp(26px, 2.6vw, 38px);
  --lead-size: clamp(17px, 1.4vw, 20px);
  --lead-size-mobile: clamp(16px, 4.4vw, 18px);
  --body-size: 16px;
  --body-size-sm: 15px;
  --small-size: 13px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--black); }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; }
img { max-width: 100%; display: block; }

h1, h2 { letter-spacing: -.03em; font-weight: 700; }
h1 em, h2 em { font-family: var(--font); font-style: normal; font-weight: inherit; color: inherit; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -80px; left: 20px;
  z-index: 100;
  background: #fff; color: #000;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
}
.skip-link:focus { top: 20px; }

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: 88px;
  padding: 0 clamp(20px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
  pointer-events: none;
}
.site-header a, .site-header button { pointer-events: auto; }
.site-header.scrolled {
  background: rgba(5, 5, 5, .8);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}

.brand img { width: clamp(148px, 15vw, 188px); height: auto; display: block; }

.desktop-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: clamp(20px, 3vw, 36px);
  font-size: var(--small-size);
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #b7b9bd;
}
.desktop-nav a { transition: color .2s; }
.desktop-nav a:hover, .desktop-nav a.active { color: #fff; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 0; background: transparent;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.menu-toggle i { width: 22px; height: 1px; background: #fff; transition: .25s; display: block; }
.menu-toggle.open i:first-of-type { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle.open i:last-of-type { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  z-index: 45;
  inset: 0;
  background: rgba(5, 5, 5, .97);
  backdrop-filter: blur(16px);
  padding: 110px 28px 35px;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility .3s;
}
.mobile-menu.open { opacity: 1; visibility: visible; }
.mobile-menu a {
  display: flex;
  align-items: center;
  font-size: clamp(24px, 7vw, 30px);
  font-weight: 600;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu span {
  font: 600 11px var(--font);
  letter-spacing: 1px;
  color: var(--accent);
  margin-right: 18px;
}

/* ==========================================================================
   Layout shell / panels
   ========================================================================== */

.horizontal-shell { height: auto; }
.horizontal-track { display: block; }

.panel {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--black);
}
.panel-inner {
  position: relative;
  z-index: 2;
  width: min(1280px, 88vw);
  margin: 0 auto;
}

/* Shared section heading rhythm */
.about-panel h2,
.mission-title h2,
.purpose-title h2 {
  font-size: var(--h2-size);
  line-height: 1.04;
  color: #fff;
}

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

.hero-panel {
  min-height: max(94svh, 620px);
  display: flex;
  align-items: flex-end;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, .32), rgba(5, 5, 5, .05) 60%),
    linear-gradient(0deg, rgba(5, 5, 5, .58), transparent 46%),
    url("assets/geeminds-bg2.png") 68% 30% / cover no-repeat,
    var(--black);
}

.ambient { position: absolute; border-radius: 50%; filter: blur(110px); opacity: .16; pointer-events: none; z-index: 0; }
.ambient-one { width: 440px; height: 440px; background: var(--accent); right: 6%; bottom: -26%; }
.ambient-two { width: 340px; height: 340px; background: #fff; left: 20%; top: -30%; }

.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: 0 clamp(20px, 6.2vw, 64px) clamp(64px, 9vh, 108px);
}
.hero-content h1 {
  max-width: 1180px;
  font-size: var(--h1-size);
  line-height: .98;
  font-weight: 800;
}
.hero-content h1 em { color: var(--silver); font-style: normal; font-weight: inherit; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: 0;
  cursor: pointer;
  color: #9a9da3;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.mouse { display: block; width: 18px; height: 26px; border: 1px solid #5a5c61; border-radius: 9px; position: relative; }
.mouse i { position: absolute; width: 2px; height: 5px; background: var(--accent); top: 4px; left: 7px; border-radius: 2px; animation: wheel 1.8s ease infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 0; } 35% { opacity: 1; } 100% { transform: translateY(9px); opacity: 0; } }

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

.about-panel {
  isolation: isolate;
  padding: clamp(110px, 15vh, 150px) 0 clamp(90px, 12vh, 128px);
  background-color: #000;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 16% 22%, rgba(180, 198, 230, .1), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(205, 217, 235, .08), transparent 30%),
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .05) 50%, transparent 58%);
  background-size: auto, auto, 240% 240%;
  background-position: 0 0, 0 0, -70% -70%;
  animation: sweep-diagonal 20s ease-in-out infinite;
}
.about-panel .content-block { max-width: 720px; }
.content-block h2 { margin: 0 0 22px; }
.content-block .lead { font-size: var(--lead-size); line-height: 1.55; font-weight: 600; color: var(--white); }
.body-copy { color: var(--muted); line-height: 1.68; margin-top: 16px; font-size: var(--body-size); }
.about-belief { margin-top: 22px; color: var(--silver); font-size: var(--body-size); line-height: 1.68; font-weight: 500; }

/* ==========================================================================
   Vision & Mission
   ========================================================================== */

.mission-panel {
  isolation: isolate;
  padding: clamp(110px, 15vh, 150px) 0 clamp(90px, 12vh, 128px);
  background-color: #000;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 14% 20%, rgba(130, 155, 210, .16), transparent 36%),
    radial-gradient(circle at 88% 78%, rgba(205, 217, 235, .12), transparent 32%),
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .06) 50%, transparent 58%);
  background-size: auto, auto, 240% 240%;
  background-position: 0 0, 0 0, -70% -70%;
  animation: sweep-diagonal 18s ease-in-out infinite;
}
.mission-art { position: absolute; inset: 0; overflow: hidden; opacity: .07; z-index: 0; }
.mission-art img { width: 100%; height: 100%; object-fit: cover; }
.mission-title h2 { margin-bottom: var(--gap-md); }
.mission-copy { display: grid; gap: clamp(40px, 5vw, 64px); }
.mission-copy article {
  display: grid;
  grid-template-columns: minmax(140px, .38fr) 1fr;
  align-items: start;
  gap: clamp(24px, 5vw, 64px);
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.mission-copy span {
  display: block;
  font-size: var(--eyebrow-size);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: #fff;
}
.mission-copy p { max-width: 720px; color: #e7e8ea; font-size: var(--body-size); line-height: 1.68; }

/* ==========================================================================
   How We Create Value (purpose)
   ========================================================================== */

.purpose-panel {
  isolation: isolate;
  padding: clamp(110px, 15vh, 150px) 0 clamp(96px, 13vh, 140px);
  background-color: #000;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 84% 16%, rgba(130, 155, 210, .16), transparent 34%),
    radial-gradient(ellipse at 18% 86%, rgba(205, 217, 235, .12), transparent 36%),
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, .06) 50%, transparent 58%);
  background-size: auto, auto, 240% 240%;
  background-position: 0 0, 0 0, 70% -70%;
  animation: sweep-diagonal-rev 19s ease-in-out infinite;
}
.purpose-title h2 { margin-bottom: var(--gap-md); }
.purpose-copy { max-width: 1080px; }
.purpose-copy .value-lead { color: var(--white); font-size: var(--lead-size); font-weight: 600; line-height: 1.55; }
.purpose-copy > p:not(.value-lead) { margin-top: 14px; color: var(--muted); font-size: var(--body-size); line-height: 1.68; }

.value-streams {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(40px, 6vw, 88px);
  margin-top: clamp(32px, 4.5vw, 52px);
}
.value-stream { padding-top: 22px; border-top: 1px solid var(--line); }
.value-stream h3 {
  margin: 0 0 18px;
  font-size: var(--h3-size);
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.value-list { display: flex; flex-direction: column; gap: 8px; padding: 0; list-style: none; }
.value-list li { position: relative; padding-left: 18px; color: var(--silver); font-size: var(--body-size-sm); line-height: 1.55; }
.value-list li::before {
  content: "";
  position: absolute; left: 0; top: .62em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
}

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

.contact-panel {
  isolation: isolate;
  padding: clamp(64px, 8vh, 88px) 0 clamp(44px, 6vh, 60px);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(160, 178, 210, .1), transparent 60%),
    #000;
}
.site-footer {
  width: min(1280px, 88vw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding-top: 28px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.4fr;
  gap: 32px;
  text-align: left;
}
.site-footer > div { display: flex; flex-direction: column; gap: 8px; }
.site-footer span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6d7076;
}
.site-footer address, .site-footer a, .site-footer p {
  font-style: normal;
  color: var(--muted);
  font-size: var(--small-size);
  line-height: 1.65;
}
.footer-end { text-align: right; }
.footer-end a { color: #fff; }
.email-link { display: inline-block; line-height: 0; }
.email-link img { display: block; height: 19px; width: auto; opacity: .92; transition: opacity .2s ease; }
.email-link:hover img, .email-link:focus-visible img { opacity: 1; }

/* ==========================================================================
   Ambient light effects (backgrounds only — never over text)
   ========================================================================== */

.about-panel::before,
.about-panel::after,
.mission-panel::before,
.mission-panel::after,
.purpose-panel::before,
.purpose-panel::after,
.contact-panel::before {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
}

.about-panel::before {
  width: 46vw; height: 46vw;
  top: -18vw; right: -10vw;
  background: radial-gradient(circle, rgba(210, 222, 240, .16), rgba(90, 120, 190, .06) 42%, transparent 72%);
  filter: blur(50px);
  animation: drift-a 14s ease-in-out infinite;
}
.about-panel::after {
  width: 58vw; height: 20vw;
  left: -12vw; bottom: -10vw;
  background: linear-gradient(100deg, transparent 5%, rgba(190, 207, 244, .14) 48%, rgba(89, 121, 190, .05) 74%, transparent 94%);
  filter: blur(52px);
  transform: rotate(-6deg);
  animation: drift-b 12s ease-in-out infinite;
}

.mission-panel::before {
  width: 52vw; height: 52vw;
  top: -22vw; right: -6vw;
  background: radial-gradient(circle, rgba(185, 205, 235, .24), rgba(87, 115, 178, .08) 40%, transparent 70%);
  filter: blur(46px);
  animation: drift-a 11s ease-in-out infinite;
}
.mission-panel::after {
  width: 64vw; height: 22vw;
  left: -10vw; bottom: -9vw;
  background: linear-gradient(100deg, transparent 5%, rgba(195, 212, 248, .22) 48%, rgba(89, 121, 190, .08) 74%, transparent 94%);
  filter: blur(50px);
  transform: rotate(-6deg);
  animation: drift-b 9.5s ease-in-out infinite;
}

.purpose-panel::before {
  width: 50vw; height: 50vw;
  top: -18vw; right: -8vw;
  background: radial-gradient(circle, rgba(195, 210, 235, .22), rgba(90, 120, 190, .08) 40%, transparent 70%);
  filter: blur(46px);
  animation: drift-a 12.5s ease-in-out infinite;
}
.purpose-panel::after {
  width: 78vw; height: 24vw;
  left: -8vw; bottom: -12vw;
  background: radial-gradient(ellipse at 50% 20%, rgba(222, 231, 252, .26) 0%, rgba(121, 151, 214, .1) 40%, transparent 74%);
  filter: blur(44px);
  animation: drift-b 10.5s ease-in-out infinite;
}

.contact-panel::before {
  width: 62vw; height: 26vw;
  left: 50%; top: -12vw;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(190, 205, 230, .14), transparent 70%);
  filter: blur(46px);
  animation: drift-b 16s ease-in-out infinite;
}

@keyframes drift-a {
  0%, 100% { opacity: .5; transform: translate3d(0, 0, 0) scale(.96); }
  50% { opacity: .88; transform: translate3d(-2.8vw, 2.2vw, 0) scale(1.08); }
}
@keyframes drift-b {
  0%, 100% { opacity: .42; transform: translateX(0) rotate(0deg) scale(.98); }
  50% { opacity: .78; transform: translateX(2.2vw) rotate(2deg) scale(1.06); }
}
@keyframes sweep-diagonal {
  0%, 100% { background-position: 0 0, 0 0, -70% -70%; }
  50% { background-position: 0 0, 0 0, 70% 70%; }
}
@keyframes sweep-diagonal-rev {
  0%, 100% { background-position: 0 0, 0 0, 70% -70%; }
  50% { background-position: 0 0, 0 0, -70% 70%; }
}

/* ==========================================================================
   Scroll progress + reveal
   ========================================================================== */

.progress { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.progress div { height: 100%; width: 0; background: linear-gradient(90deg, #9aa1ab, var(--accent)); transform-origin: left; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsive — tablet / small desktop
   ========================================================================== */

@media (max-width: 1100px) {
  .desktop-nav { gap: 18px; }
  .value-streams { gap: clamp(32px, 5vw, 56px); }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */

@media (max-width: 820px) {
  body { overflow-x: hidden; }

  .site-header { height: 72px; padding: 0 18px; }
  .brand img { width: clamp(140px, 42vw, 168px); }
  .desktop-nav { display: none; }
  .menu-toggle { display: flex; }
  .mobile-menu { display: flex; }

  .panel-inner { width: 100%; max-width: 100%; padding: 0 22px; }

  .hero-panel { min-height: 100svh; align-items: flex-end; }
  .hero-content { padding: 0 22px clamp(64px, 13svh, 96px); }
  .hero-content h1 { font-size: clamp(38px, 11vw, 62px); line-height: 1.02; }

  /* Shared heading + lead scale across About / Vision & Mission / How We Create Value */
  .about-panel h2,
  .mission-title h2,
  .purpose-title h2 { font-size: var(--h2-size-mobile); margin-bottom: 18px; }
  .content-block .lead,
  .purpose-copy .value-lead { font-size: var(--lead-size-mobile); }
  .body-copy,
  .about-belief,
  .mission-copy p,
  .purpose-copy > p:not(.value-lead) { font-size: var(--body-size-sm); }

  .about-panel { padding: 96px 0 88px; }
  .about-panel .panel-inner { padding: 0 22px; }
  .about-panel .content-block { max-width: 100%; }

  .mission-panel { padding: 96px 0 88px; }
  .mission-panel .panel-inner { padding: 0 22px; }
  .mission-copy { gap: 48px; }
  .mission-copy article { grid-template-columns: 1fr; gap: 14px; }
  .mission-copy span { font-size: clamp(32px, 10vw, 44px); }
  .mission-panel::before { width: 100vw; height: 100vw; top: -50vw; right: -40vw; }
  .mission-panel::after { width: 120vw; height: 40vw; left: -20vw; bottom: -18vw; }

  .purpose-panel { padding: 96px 0 120px; }
  .purpose-panel .panel-inner { padding: 0 22px; }
  .value-streams { grid-template-columns: 1fr; gap: 36px; margin-top: 26px; }
  .purpose-panel::before { width: 130vw; height: 65vw; right: -30vw; top: -30vw; }
  .purpose-panel::after { width: 150vw; height: 40vw; left: -25vw; bottom: -14vw; }

  .contact-panel { padding: 56px 0 40px; }
  .contact-panel .panel-inner,
  .site-footer { width: 100%; padding: 0 22px; }
  .site-footer { grid-template-columns: 1fr 1fr; gap: 26px; padding-top: 24px; }
  .footer-end { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 480px) {
  .site-footer { grid-template-columns: 1fr; gap: 20px; }
  .footer-end { grid-column: auto; }
}

/* ==========================================================================
   Motion & accessibility
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mouse i { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .about-panel,
  .mission-panel,
  .purpose-panel,
  .about-panel::before,
  .about-panel::after,
  .mission-panel::before,
  .mission-panel::after,
  .purpose-panel::before,
  .purpose-panel::after,
  .contact-panel::before { animation: none; }
}
