/* ============================================================
   UNCOMMON IMPACT STUDIO — Shared Stylesheet
   Palette derived from the official UIS logo:
   - Pure black backgrounds (logo background)
   - Bright orange (logo primary)
   - Olive/lime green (logo secondary)
   - Teal accent (logo highlight)
   - Off-white text
   ============================================================ */

:root {
  /* Base */
  --bg: #0A0A0A;              /* True near-black, page background */
  --bg-deep: #050505;          /* Even darker — for footer / contrast wells */
  --bg-elev: #141414;          /* Elevated surface (cards) */
  --bg-elev-2: #1C1C1C;        /* Higher elevation (modals, active cells) */
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  /* Text */
  --text: #F4F1EC;             /* Off-white body text */
  --text-mute: rgba(244, 241, 236, 0.88);   /* Brighter near-white for body copy */
  --text-dim: rgba(244, 241, 236, 0.55);    /* Dim labels only */

  /* Brand */
  --orange: #FA7D00;            /* Primary brand orange */
  --orange-soft: #E17D00;       /* Slightly muted variant */
  --orange-deep: #C86600;       /* Pressed / shadow */
  --lime: #9CB200;              /* Olive-lime secondary */
  --lime-soft: #B8CC3D;         /* Lighter for text on dark */
  --teal: #2A8585;              /* Cool accent */
  --teal-soft: #4DA8A8;
  --highlight: #C5D86A;         /* Soft lime-green for emphasized words in body copy — blends with light-gray text on dark bg */

  /* Type */
  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --body: 'Inter Tight', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadow */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 14px 36px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px rgba(0, 0, 0, 0.55);
  --glow-orange: 0 0 36px rgba(250, 125, 0, 0.35);
  --glow-lime: 0 0 36px rgba(156, 178, 0, 0.30);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--orange); color: #000; }

/* =========================================================
   GLOBAL CURSOR GLOW (follows the cursor across the entire page)
   ========================================================= */
.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(250, 125, 0, 0.08) 0%,
    rgba(250, 125, 0, 0.04) 35%,
    rgba(250, 125, 0, 0) 70%
  );
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  filter: blur(20px);
  will-change: transform;
}
.cursor-glow.is-active { opacity: 1; }
/* Hide on touch devices where there's no cursor */
@media (hover: none) { .cursor-glow { display: none; } }

/* =========================================================
   NAVIGATION
   ========================================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.4s var(--ease);
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  padding: 14px 48px;
}
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: transform 0.3s var(--ease);
}
.nav-logo:hover { transform: scale(1.03); }
/* Real UIS logo PNG */
.nav-logo-img {
  height: 56px;                    /* up from 40px — much more prominent */
  width: auto;
  display: block;
  transition: height 0.3s var(--ease);
}
.nav.scrolled .nav-logo-img { height: 48px; }    /* up from 34px */
/* Screen-reader-only text label (logo image conveys brand) */
.nav-logo-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  color: var(--text-mute);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 24px;
  transition: all 0.25s var(--ease-soft);
}
.nav-link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-link.active { background: var(--text); color: var(--bg); }
.nav-cta {
  background: var(--orange);
  color: #000;
  padding: 10px 22px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  margin-left: 12px;
  transition: all 0.25s var(--ease-soft);
}
.nav-cta:hover {
  background: var(--orange-soft);
  transform: translateY(-1px);
  box-shadow: var(--glow-orange);
}
.nav-mobile-toggle { display: none; }
.nav-mobile-toggle span { background: var(--text); }

/* =========================================================
   LAYOUT
   ========================================================= */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
section { padding: 120px 0; position: relative; }

.section-head { margin-bottom: 56px; max-width: 760px; }
.section-num {
  font-family: var(--mono);
  font-size: 16px;                        /* up from 13px */
  font-weight: 700;                       /* bolder */
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  padding-top: 12px;
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}
.section-num::before {
  content: '';
  width: 36px; height: 2px;
  background: var(--orange);
}
.section-title {
  font-family: var(--display);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
}
.section-title em {
  font-style: italic;
  color: var(--orange);          /* italic accent uses ORANGE on dark — always visible */
}
/* Compact variant — keeps long headlines on a single line */
.section-title-compact {
  font-size: clamp(28px, 3.5vw, 48px);
  white-space: nowrap;
  letter-spacing: -0.015em;
}
@media (max-width: 720px) {
  .section-title-compact { white-space: normal; font-size: clamp(26px, 7vw, 42px); }
}
/* Two-line variant — slightly smaller display so long headlines fit on two lines */
.section-title-two-line {
  font-size: clamp(34px, 4.5vw, 56px);
}
/* No-wrap variant — keeps headline on a single line at desktop, normal wrap on mobile */
.section-title-nowrap {
  font-size: clamp(32px, 4.2vw, 56px);
  white-space: nowrap;
  letter-spacing: -0.018em;
}
@media (max-width: 900px) {
  .section-title-nowrap { white-space: normal; font-size: clamp(28px, 7vw, 44px); }
}
.section-sub {
  font-size: 20px;                /* up from 18px */
  line-height: 1.65;
  color: var(--text-mute);
  margin-top: 22px;
  max-width: 680px;
  font-weight: 400;
}
.section-sub strong { color: var(--highlight); font-weight: 600; }

/* ========================================================
   Global body-copy emphasis — bolded keywords use soft green
   that blends with light gray text on dark bg (rev #4, #5)
   ======================================================== */
p strong,
.section-sub strong,
.hero-sub strong,
.who-text strong,
.matrix-detail-text strong,
.different-text strong,
.capital-desc strong,
.founder-bio-text strong,
.initiative-desc strong,
.outcome-text strong,
.why-body-text strong,
.about-hero-sub strong,
.page-hero-sub strong {
  color: var(--highlight);
  font-weight: 600;
}

/* =========================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ===== Advanced reveal variants ===== */
.reveal-left {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-left.in-view { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal-right.in-view { opacity: 1; transform: translateX(0); }

.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-scale.in-view { opacity: 1; transform: scale(1); }

.reveal-blur {
  opacity: 0;
  filter: blur(14px);
  transform: translateY(24px);
  transition: opacity 1s var(--ease), filter 1s var(--ease), transform 1s var(--ease);
}
.reveal-blur.in-view { opacity: 1; filter: blur(0); transform: translateY(0); }

/* Stagger children (apply to parent, children opt in with .reveal-child) */
.reveal-stagger.in-view .reveal-child { opacity: 1; transform: translateY(0); }
.reveal-child {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal-stagger.in-view .reveal-child:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in-view .reveal-child:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in-view .reveal-child:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in-view .reveal-child:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in-view .reveal-child:nth-child(5) { transition-delay: 0.45s; }

/* ===== Magnetic hover (apply to .magnetic for slight cursor pull effect) ===== */
.magnetic {
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

/* ===== Gradient text shimmer ===== */
.shimmer-text {
  background: linear-gradient(
    100deg,
    var(--orange) 0%,
    var(--lime) 30%,
    var(--orange) 60%,
    var(--lime) 100%
  );
  background-size: 200% auto;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to { background-position: 200% center; }
}

/* ===== Cursor-tracking spotlight (applied to elements with .spotlight) ===== */
.spotlight {
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    600px circle at var(--mx, 50%) var(--my, 50%),
    rgba(250, 125, 0, 0.12),
    transparent 40%
  );
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  z-index: 1;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 2; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
@keyframes marquee-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(250, 125, 0, 0); }
  50% { box-shadow: 0 0 40px 8px rgba(250, 125, 0, 0.25); }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s var(--ease-soft);
  cursor: pointer;
  font-family: var(--body);
  letter-spacing: 0.01em;
}
.btn-primary {
  background: var(--orange);
  color: #000;
}
.btn-primary:hover {
  background: var(--orange-soft);
  transform: translateY(-2px);
  box-shadow: var(--glow-orange);
}
.btn-ghost {
  color: var(--text);
  border-bottom: 1px solid var(--text);
  padding: 4px 0;
  border-radius: 0;
}
.btn-ghost:hover { color: var(--orange); border-color: var(--orange); }
.btn-outline {
  border: 1px solid var(--text);
  color: var(--text);
  background: transparent;
}
.btn-outline:hover {
  background: var(--text);
  color: var(--bg);
}
.btn svg { transition: transform 0.3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* =========================================================
   IMAGE BADGE
   ========================================================= */
.image-badge {
  position: absolute;
  top: 16px; left: 16px;
  z-index: 5;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 100px;
  padding: 6px 12px 6px 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
  box-shadow: var(--shadow-sm);
}
.image-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 8px var(--orange);
}

/* =========================================================
   FOOTER
   ========================================================= */
footer {
  background: var(--bg-deep);
  color: var(--text-mute);
  padding: 80px 48px 44px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 64px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.footer-logo {
  display: flex;
  align-items: center;
}
.footer-logo-img {
  height: 44px;
  width: auto;
  display: block;
}
.footer-logo-text {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.footer-tagline {
  font-family: var(--display);
  font-style: italic;
  font-size: 18px;       /* up from 16px */
  color: var(--text);
  max-width: 320px;
  line-height: 1.4;
}
.footer-col-label {
  font-family: var(--mono);
  font-size: 12px;          /* up from 10px */
  font-weight: 600;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 20px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer-col a {
  color: var(--text-mute);
  font-size: 15px;        /* up from 14px */
  font-weight: 500;
  transition: color 0.25s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1280px;
  margin: 32px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 14px;             /* up from 10px — much more noticeable */
  font-weight: 500;
  letter-spacing: 0.10em;
  color: var(--text-mute);     /* brighter than dim */
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom-email {
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 0.08em;
  transition: opacity 0.25s;
}
.footer-bottom-email:hover { opacity: 0.75; }

/* =========================================================
   PAGE HERO (About + Contact)
   ========================================================= */
.page-hero {
  padding: 200px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  position: relative;
  z-index: 2;
}
.page-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 32px;
  font-family: var(--mono);
  font-size: 13px;            /* up from 11px */
  font-weight: 600;           /* bolder */
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text);
}
.page-hero-eyebrow-line {
  width: 40px; height: 1.5px;
  background: var(--orange);
}
.page-hero-title {
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin-bottom: 24px;
  max-width: 1000px;
}
.page-hero-title em {
  font-style: italic;
  color: var(--orange);
}
.page-hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-mute);
  max-width: 1080px;
}
.page-hero-sub + .page-hero-sub {
  margin-top: 18px;
}
/* "Bridges this gap" numbered list (rev #3) */
.page-hero-bridge {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  max-width: 780px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.page-hero-bridge li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 24px 22px 22px;
  background: rgba(250, 125, 0, 0.05);
  border: 1px solid rgba(250, 125, 0, 0.20);
  border-radius: 14px;
  transition: all 0.3s var(--ease);
}
.page-hero-bridge li:hover {
  background: rgba(250, 125, 0, 0.09);
  border-color: rgba(250, 125, 0, 0.45);
  transform: translateY(-2px);
}
.bridge-num {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--orange);
  flex-shrink: 0;
  padding-top: 2px;
}
.bridge-text {
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  line-height: 1.3;
  color: var(--text);
}
.bridge-text strong {
  color: var(--text) !important;
  font-style: italic;
  font-weight: 500;
}
@media (max-width: 720px) {
  .page-hero-bridge { grid-template-columns: 1fr; gap: 12px; }
  .page-hero-bridge li { padding: 16px 20px; }
}

/* Page-hero ambient glow blobs */
.page-hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.page-hero-ambient .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  animation: float 9s ease-in-out infinite;
}
.page-hero-ambient .blob:nth-child(1) {
  width: 360px; height: 360px;
  background: var(--orange);
  top: 60px; right: 5%;
  animation-delay: 0s;
}
.page-hero-ambient .blob:nth-child(2) {
  width: 280px; height: 280px;
  background: var(--lime);
  bottom: 0; right: 30%;
  animation-delay: -3s;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .container { padding: 0 32px; }
  .nav { padding: 16px 32px; }
  section { padding: 80px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .page-hero { padding: 160px 0 60px; }
}
@media (max-width: 720px) {
  .container { padding: 0 24px; }
  .nav { padding: 14px 20px; }
  .nav-links { display: none; }
  .nav-mobile-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
  }
  .nav-mobile-toggle span {
    width: 22px; height: 1.5px;
    background: var(--text);
    transition: all 0.3s var(--ease);
  }
  .nav-links.mobile-open {
    display: flex;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg-elev);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  section { padding: 64px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  footer { padding: 48px 24px 24px; }
}
