/* ==========================================================
   Startup Jharkhand — Design System v2
   Palette: deep forest (land of forests) + mineral amber
   Type: Sora (display) · Inter (body) · Space Mono (data)
   Mobile-first, fluid, accessible.
   ========================================================== */

:root{
  --ink:      #0E1A13;
  --forest:   #123B26;
  --forest-2: #1B5E38;
  --forest-3: #0C2A1B;
  --moss:     #2E7D4F;
  --amber:    #E7A339;
  --amber-2:  #C87C17;
  --amber-soft:#F6D9A5;
  --paper:    #F7F6F1;
  --paper-2:  #ECEAE0;
  --card:     #FFFFFF;
  --line:     rgba(14,26,19,.12);
  --line-2:   rgba(14,26,19,.06);
  --muted:    #5B6660;
  --radius:   16px;
  --radius-s: 10px;
  --radius-l: 24px;
  --shadow:   0 1px 2px rgba(14,26,19,.05), 0 10px 26px rgba(14,26,19,.07);
  --shadow-lg:0 24px 60px -20px rgba(14,26,19,.28);
  --maxw:     1180px;
  --header-h: 68px;
  --font-d:   "Sora", system-ui, sans-serif;
  --font-b:   "Inter", system-ui, sans-serif;
  --font-m:   "Space Mono", ui-monospace, monospace;
}

*{box-sizing:border-box; -webkit-tap-highlight-color: transparent;}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  margin:0;font-family:var(--font-b);color:var(--ink);background:var(--paper);
  line-height:1.6;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
  overflow-x:hidden;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
svg{display:block}
h1,h2,h3,h4{font-family:var(--font-d);font-weight:700;line-height:1.1;margin:0 0 .4em}
h1{font-size:clamp(2rem,7vw,4rem);letter-spacing:-.025em}
h2{font-size:clamp(1.55rem,5vw,2.6rem);letter-spacing:-.02em}
h3{font-size:1.18rem}
p{margin:0 0 1rem}
.container{max-width:var(--maxw);margin:0 auto;padding:0 20px}
.section{padding:clamp(52px,9vw,88px) 0}
.section-tight{padding:clamp(36px,6vw,56px) 0}
.center{text-align:center}
.mt-0{margin-top:0}

/* Eyebrow label */
.eyebrow{
  font-family:var(--font-m);font-size:.7rem;letter-spacing:.2em;
  text-transform:uppercase;color:var(--amber-2);margin:0 0 14px;
  display:inline-flex;align-items:center;gap:10px;
}
.eyebrow::before{content:"";width:24px;height:1px;background:var(--amber-2)}
.hero .eyebrow::before,.band-dark .eyebrow::before{background:var(--amber)}

.lead{font-size:clamp(1rem,2.4vw,1.14rem);color:var(--muted);max-width:60ch}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:9px;
  font-family:var(--font-d);font-weight:600;font-size:.95rem;
  padding:13px 24px;border-radius:100px;border:1px solid transparent;
  cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease,color .16s ease,border-color .16s ease;
  white-space:nowrap;line-height:1;-webkit-tap-highlight-color:transparent;
}
.btn:active{transform:translateY(0) scale(.98)}
.btn-primary{background:var(--forest);color:#fff;box-shadow:0 6px 18px -6px rgba(18,59,38,.5)}
.btn-primary:hover{background:var(--forest-2);transform:translateY(-2px);box-shadow:0 12px 26px -8px rgba(18,59,38,.55)}
.btn-amber{background:var(--amber);color:var(--ink);box-shadow:0 6px 18px -6px rgba(231,163,57,.6)}
.btn-amber:hover{background:var(--amber-2);color:#fff;transform:translateY(-2px)}
.btn-ghost{background:transparent;border-color:var(--line);color:var(--ink)}
.btn-ghost:hover{border-color:var(--forest);color:var(--forest);background:rgba(18,59,38,.04)}
.btn-light{background:rgba(255,255,255,.14);color:#fff;border-color:rgba(255,255,255,.3)}
.btn-light:hover{background:rgba(255,255,255,.24)}
.btn-block{width:100%}
.btn-sm{padding:10px 16px;font-size:.85rem}

/* ---------- Header / Nav ---------- */
.site-header{position:sticky;top:0;z-index:80;background:rgba(247,246,241,.82);
  backdrop-filter:saturate(140%) blur(14px);-webkit-backdrop-filter:saturate(140%) blur(14px);
  border-bottom:1px solid transparent;transition:border-color .25s,box-shadow .25s,background .25s}
.site-header.scrolled{border-bottom-color:var(--line-2);box-shadow:0 6px 22px -18px rgba(14,26,19,.6)}
.nav{display:flex;align-items:center;justify-content:space-between;height:var(--header-h);gap:14px}
.brand{display:flex;align-items:center;gap:11px;font-family:var(--font-d);font-weight:800;font-size:1.02rem;letter-spacing:-.01em;flex-shrink:0}
.brand-mark{width:34px;height:34px;border-radius:10px;background:var(--forest);
  display:grid;place-items:center;color:var(--amber);position:relative;overflow:hidden;flex-shrink:0}
.brand-mark::after{content:"";position:absolute;inset:0;background:
  linear-gradient(120deg,transparent 40%,rgba(255,255,255,.22) 50%,transparent 60%)}
.brand-mark svg{width:19px;height:19px}
.nav-links{display:flex;gap:2px;align-items:center;margin-left:auto}
.nav-links a{padding:9px 13px;border-radius:9px;font-size:.92rem;font-weight:500;color:#31423a;transition:.15s}
.nav-links a:hover{background:var(--paper-2);color:var(--forest)}
.nav-cta{display:flex;gap:10px;align-items:center;flex-shrink:0}
.nav-toggle{display:none;background:none;border:0;cursor:pointer;width:44px;height:44px;
  border-radius:10px;padding:10px;color:var(--ink);align-items:center;justify-content:center}
.nav-toggle:hover{background:var(--paper-2)}
.nav-toggle svg{width:24px;height:24px}
.nav-toggle .bar{transition:transform .28s ease,opacity .2s ease;transform-origin:center}
.nav-toggle.active .top{transform:translateY(6px) rotate(45deg)}
.nav-toggle.active .mid{opacity:0}
.nav-toggle.active .bot{transform:translateY(-6px) rotate(-45deg)}
.nav-backdrop{display:none}

/* ---------- Hero ---------- */
.hero{position:relative;background:
  radial-gradient(120% 120% at 85% -10%,#1B5E38 0%,#123B26 45%,#0C2A1B 100%);
  color:#fff;overflow:hidden;padding:clamp(64px,11vw,104px) 0 clamp(56px,9vw,88px)}
.hero::before{ /* Sohrai-inspired geometric hairline motif (signature) */
  content:"";position:absolute;inset:0;opacity:.18;pointer-events:none;
  background-image:
    linear-gradient(var(--moss) 1px,transparent 1px),
    linear-gradient(90deg,var(--moss) 1px,transparent 1px);
  background-size:clamp(38px,6vw,54px) clamp(38px,6vw,54px);
  -webkit-mask-image:radial-gradient(120% 90% at 80% 8%,#000,transparent 72%);
          mask-image:radial-gradient(120% 90% at 80% 8%,#000,transparent 72%);}
.hero::after{content:"";position:absolute;width:520px;height:520px;right:-120px;top:-160px;
  background:radial-gradient(circle,rgba(231,163,57,.22),transparent 62%);pointer-events:none;filter:blur(6px)}
.hero .container{position:relative;z-index:2}
.hero .eyebrow{color:var(--amber)}
.hero h1{max-width:17ch;background:linear-gradient(180deg,#fff,rgba(255,255,255,.82));
  -webkit-background-clip:text;background-clip:text;color:transparent}
.hero .lead{color:rgba(255,255,255,.84)}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:28px}
.hero-badge{display:inline-flex;gap:8px;align-items:center;font-family:var(--font-m);
  font-size:.68rem;letter-spacing:.12em;text-transform:uppercase;
  background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);
  padding:7px 14px;border-radius:100px;margin-bottom:20px}
.hero-badge .dot{width:7px;height:7px;border-radius:50%;background:var(--amber);
  box-shadow:0 0 0 0 rgba(231,163,57,.7);animation:pulse 2.4s infinite}
@keyframes pulse{70%{box-shadow:0 0 0 8px rgba(231,163,57,0)}100%{box-shadow:0 0 0 0 rgba(231,163,57,0)}}

.hero-programs{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:14px;margin-top:clamp(30px,5vw,46px)}
.hero-prog{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);padding:20px;transition:.2s;backdrop-filter:blur(2px)}
.hero-prog:hover{background:rgba(255,255,255,.13);transform:translateY(-3px);border-color:rgba(231,163,57,.4)}
.hero-prog .tag{font-family:var(--font-m);font-size:.64rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--amber)}
.hero-prog h4{font-size:1.02rem;margin:.45rem 0 .3rem;color:#fff;font-family:var(--font-d)}
.hero-prog p{font-size:.85rem;color:rgba(255,255,255,.72);margin:0 0 12px}
.hero-prog a{font-size:.85rem;font-weight:600;color:var(--amber);display:inline-flex;gap:6px}

/* ---------- Matrix (impact metrics) ---------- */
.matrix{background:#fbfbfd;color:#1d1d1f;border-top:1px solid #e5e5ea;border-bottom:1px solid #e5e5ea;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif}
.matrix-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0}
.matrix-cell{padding:clamp(32px,5vw,50px) clamp(20px,3vw,30px);border-right:1px solid #d2d2d7;text-align:center}
.matrix-cell:last-child{border-right:0}
.matrix-cell .num{font-weight:700;font-size:clamp(2rem,5vw,3rem);
  color:#1d1d1f;letter-spacing:-.04em;line-height:1}
.matrix-cell .lab{font-size:.8rem;font-weight:600;letter-spacing:.05em;
  text-transform:uppercase;color:#86868b;margin-top:10px}

/* ---------- Marquee (partners) ---------- */
.marquee{overflow:hidden;padding:40px 0;background:#fbfbfd;border-block:1px solid #e5e5ea;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
          mask-image:linear-gradient(90deg,transparent,#000 10%,#000 90%,transparent);
  display:flex;flex-direction:column;gap:40px}
.marquee-track{display:flex;width:max-content;animation:scroll 40s linear infinite}
.marquee-track--reverse{animation:scroll-reverse 40s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee-content{display:flex;gap:clamp(40px,8vw,80px);padding-right:clamp(40px,8vw,80px);align-items:center}
.marquee-item{display:inline-flex;align-items:center;justify-content:center}
.marquee-item img{height:40px;width:auto;object-fit:contain;filter:grayscale(1);opacity:.45;transition:all .3s ease}
.marquee-item:hover img{filter:grayscale(0);opacity:1;transform:scale(1.05)}
@keyframes scroll{from{transform:translateX(0)} to{transform:translateX(-50%)}}
@keyframes scroll-reverse{from{transform:translateX(-50%)} to{transform:translateX(0)}}

/* ---------- Cards / grids ---------- */
.grid{display:grid;gap:20px}
.grid-2{grid-template-columns:repeat(2,1fr)}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px;box-shadow:var(--shadow);transition:transform .2s ease,border-color .2s ease,box-shadow .2s ease;
  display:flex;flex-direction:column;position:relative;overflow:hidden}

/* ---------- About Accordion ---------- */
.about-accordion {
  display: flex;
  gap: 12px;
  width: 100%;
  max-width: 700px;
  height: 440px;
  margin: 0 auto;
}
.accordion-card {
  position: relative;
  background: #f5f5f7;
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
  cursor: pointer;
  border: 1px solid #e5e5ea;
}
.accordion-card.active {
  flex: 4;
  background: #000;
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
  border-color: transparent;
}
.accordion-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 1;
}
.accordion-card.active .accordion-bg {
  opacity: 1;
}
.accordion-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 60%);
  opacity: 0;
  transition: opacity 0.6s ease;
  z-index: 2;
}
.accordion-card.active .accordion-overlay {
  opacity: 1;
}
.accordion-title-inactive {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: opacity 0.4s ease;
}
.accordion-title-inactive h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1d1d1f;
  white-space: nowrap;
  transform: rotate(-90deg);
  margin: 0;
  letter-spacing: 0.04em;
}
.accordion-card.active .accordion-title-inactive {
  opacity: 0;
  pointer-events: none;
}
.accordion-content {
  position: relative;
  z-index: 4;
  padding: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  width: 100%;
  pointer-events: none;
}
.accordion-card.active .accordion-content {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.2s;
  pointer-events: auto;
}
.accordion-content h3 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  letter-spacing: -0.02em;
}
.accordion-content p {
  font-size: clamp(0.85rem, 2vw, 0.95rem);
  color: rgba(255,255,255,0.8);
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media(max-width:900px){
  .about-accordion {
    height: 360px;
    gap: 8px;
  }
  .accordion-title-inactive h3 {
    font-size: 0.95rem;
  }
  .accordion-content {
    padding: 16px;
  }
}
.card::before{content:"";position:absolute;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,var(--amber),var(--moss));transform:scaleX(0);transform-origin:left;transition:transform .3s ease}
.card:hover{transform:translateY(-4px);border-color:transparent;box-shadow:var(--shadow-lg)}
.card:hover::before{transform:scaleX(1)}
.card h3{margin-bottom:.35rem}
.card .icon{width:46px;height:46px;border-radius:12px;background:var(--paper-2);
  display:grid;place-items:center;color:var(--forest);margin-bottom:16px}
.card .icon svg{width:22px;height:22px}
.card p{color:var(--muted);font-size:.94rem;margin:0}
.badge{display:inline-block;font-family:var(--font-m);font-size:.66rem;letter-spacing:.1em;
  text-transform:uppercase;padding:4px 10px;border-radius:100px;margin:0 4px 4px 0;
  background:var(--paper-2);color:var(--forest)}
.badge-amber{background:rgba(231,163,57,.18);color:var(--amber-2)}
.badge-green{background:rgba(46,125,79,.16);color:var(--moss)}

/* ---------- Apple Initiatives Grid ---------- */
.initiatives-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.apple-card {
  position: relative;
  background: var(--paper);
  border-radius: 32px;
  padding: 32px;
  border: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.02);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  z-index: 1;
}
.apple-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  z-index: 2;
}
.apple-card-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.apple-icon {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: var(--paper-2);
  display: grid;
  place-items: center;
  color: var(--forest);
  margin-bottom: 24px;
  transition: transform 0.4s ease, background 0.4s ease, color 0.4s ease;
}
.apple-card:hover .apple-icon {
  transform: scale(1.08);
  background: var(--forest);
  color: #fff;
}
.apple-card-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  color: var(--text);
  line-height: 1.2;
}
.apple-card-text p {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 992px) {
  .initiatives-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .apple-card { padding: 24px; }
  .apple-card-text h3 { font-size: 1.2rem; margin-bottom: 10px; }
  .apple-card-text p { font-size: 0.9rem; }
}
@media (max-width: 768px) {
  .initiatives-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .apple-card { padding: 16px; border-radius: 20px; }
  .apple-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px; }
  .apple-icon svg { width: 22px; height: 22px; }
  .apple-card-text h3 { font-size: 1rem; margin-bottom: 6px; }
  .apple-card-text p { font-size: 0.8rem; line-height: 1.3; }
}

/* ---------- Apple News Grid ---------- */
.apple-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.apple-news-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #e5e5ea;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
  text-decoration: none;
  color: inherit;
  z-index: 1;
}
.apple-news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
  z-index: 2;
}
.apple-news-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.apple-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.apple-news-card:hover .apple-news-img {
  transform: scale(1.05);
}
.apple-news-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.apple-news-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 0 0 10px 0;
  color: #1d1d1f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apple-news-excerpt {
  color: #86868b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.apple-news-meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #c7c7cc;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: auto;
}

@media (max-width: 992px) {
  .apple-news-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .apple-news-content { padding: 20px; }
  .apple-news-title { font-size: 1.15rem; }
}
@media (max-width: 768px) {
  .apple-news-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .apple-news-card { border-radius: 16px; }
  .apple-news-content { padding: 16px; }
  .apple-news-title { font-size: 1rem; margin-bottom: 6px; -webkit-line-clamp: 3; }
  .apple-news-excerpt { font-size: 0.85rem; -webkit-line-clamp: 2; margin-bottom: 12px; }
  .apple-news-meta { font-size: 0.7rem; }
}

.section-head{display:flex;justify-content:space-between;align-items:flex-end;
  gap:20px;margin-bottom:clamp(26px,4vw,38px);flex-wrap:wrap}
.section-head .lead{margin:0}



/* ---------- Split ---------- */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(30px,5vw,56px);align-items:center}
.stat-inline{display:flex;gap:28px;margin-top:22px;flex-wrap:wrap}
.stat-inline .s .n{font-family:var(--font-d);font-weight:800;font-size:1.8rem;color:var(--forest)}
.stat-inline .s .l{font-size:.82rem;color:var(--muted)}

/* ---------- Emerging Tech Accordion (Apple Style) ---------- */
.tech-section {
  position: relative;
  background: #000;
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
  overflow: hidden;
}
.tech-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
}
.tech-bg-svg {
  width: calc(100% + 100px);
  height: calc(100% + 100px);
  animation: panNetwork 20s linear infinite;
}
@keyframes panNetwork {
  0% { transform: translate(0, 0); }
  100% { transform: translate(-100px, -100px); }
}
.tech-bg-gradient {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(0, 113, 227, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 50% 100%, rgba(27, 94, 56, 0.2) 0%, transparent 60%);
}
.tech-container {
  position: relative;
  z-index: 10;
}
.tech-accordion {
  display: flex;
  gap: 12px;
  height: 300px;
  width: 100%;
}
.tech-card {
  position: relative;
  flex: 1;
  min-width: 80px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  cursor: pointer;
  overflow: hidden;
  transition: flex 0.6s cubic-bezier(0.25, 1, 0.5, 1), background 0.4s ease;
  padding: 2px; /* Space for glowing border */
}
.tech-card:hover {
  background: rgba(255, 255, 255, 0.06);
}
.tech-card.active {
  flex: 6;
  background: rgba(255, 255, 255, 0.08);
}
.tech-border-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  overflow: hidden;
}
.tech-border-glow::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(transparent 0deg, transparent 270deg, #4da3ff 360deg);
  transform-origin: center center;
  transform: translate(-50%, -50%) rotate(0deg);
  animation: rotateGlow 2s linear infinite;
  animation-play-state: paused;
}
.tech-card.active .tech-border-glow {
  opacity: 1;
}
.tech-card.active .tech-border-glow::before {
  animation-play-state: running;
}
@keyframes rotateGlow {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.tech-card-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  background: #111;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  overflow: hidden;
}
.tech-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-bottom: auto;
  transition: transform 0.4s ease, background 0.4s ease;
}
.tech-card.active .tech-icon-wrap {
  background: #4da3ff;
  color: #fff;
  transform: scale(1.1);
}
.tech-content-wrap {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.4s ease 0.1s, height 0.4s ease;
}
.tech-card.active .tech-content-wrap {
  height: 120px;
  opacity: 1;
}
.tech-content {
  width: 400px;
  max-width: 100vw;
}
.tech-content h3 {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  white-space: normal;
}
.tech-content p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.4;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

@media (max-width: 768px) {
  .tech-accordion {
    height: 240px;
    gap: 8px;
  }
  .tech-card {
    min-width: 50px;
    border-radius: 20px;
  }
  .tech-card-inner {
    border-radius: 18px;
    padding: 16px;
  }
  .tech-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .tech-icon-wrap i {
    font-size: 20px !important;
  }
  .tech-card.active .tech-content-wrap {
    height: 130px;
  }
  .tech-content {
    width: 240px;
  }
  .tech-content h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
  }
  .tech-content p {
    font-size: 0.85rem;
    -webkit-line-clamp: 2;
  }
}
/* ---------- Testimonials (Voices) ---------- */
.apple-testi-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: stretch;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 24px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.apple-testi-grid::-webkit-scrollbar {
  display: none;
}
.apple-testi-card {
  flex: 0 0 calc(25% - 18px);
  scroll-snap-align: start;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(0,0,0,0.03);
}
.apple-testi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.apple-testi-quote {
  margin-bottom: 24px;
}
.apple-testi-quote p {
  font-size: 1.05rem;
  line-height: 1.5;
  color: #1d1d1f;
  margin: 0;
  font-style: italic;
}
.apple-testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid #f5f5f7;
  padding-top: 16px;
}
.apple-testi-author img, .avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}
.avatar-placeholder {
  background: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #86868b;
  font-size: 20px;
}
.author-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 2px;
  color: #1d1d1f;
  font-family: var(--font-b);
}
.author-info span {
  font-size: 0.8rem;
  color: #86868b;
  display: block;
}

@media (max-width: 992px) {
  .apple-testi-grid {
    gap: 16px;
  }
  .apple-testi-card {
    flex: 0 0 calc(50% - 8px);
  }
}
@media (max-width: 768px) {
  .apple-testi-card {
    padding: 24px 20px;
  }
}

/* ---------- CTA band ---------- */
.cta-band{background:var(--amber);color:var(--ink);border-radius:var(--radius-l);
  padding:clamp(30px,5vw,52px);text-align:center;position:relative;overflow:hidden}
.cta-band h2{color:var(--ink)}
.cta-band .lead{color:rgba(14,26,19,.72);margin:0 auto 22px}

/* ---------- Forms ---------- */
.field{margin-bottom:16px}
.field label{display:block;font-size:.86rem;font-weight:600;margin-bottom:6px;color:#2b352f}
.field input,.field select,.field textarea{
  width:100%;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-s);
  font:inherit;font-size:16px;background:var(--card);color:var(--ink);transition:.15s}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none;border-color:var(--moss);box-shadow:0 0 0 3px rgba(46,125,79,.14)}
.field textarea{min-height:120px;resize:vertical}
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.auth-wrap{max-width:460px;margin:clamp(36px,7vw,60px) auto;padding:0 20px}
.auth-card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(24px,5vw,34px);box-shadow:var(--shadow)}

/* ---------- Toolbar ---------- */
.toolbar{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:24px}
.toolbar input[type=search]{flex:1;min-width:180px;padding:12px 18px;border:1px solid var(--line);
  border-radius:100px;font:inherit;font-size:16px;background:var(--card)}
.toolbar input[type=search]:focus{outline:none;border-color:var(--moss);box-shadow:0 0 0 3px rgba(46,125,79,.14)}
.toolbar select{padding:12px 18px;border:1px solid var(--line);border-radius:100px;font:inherit;font-size:16px;background:var(--card)}
.chip-row{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:24px}
.chip{padding:8px 15px;border-radius:100px;border:1px solid var(--line);font-size:.85rem;
  cursor:pointer;background:var(--card);font-weight:500;transition:.15s;-webkit-tap-highlight-color:transparent}
.chip.active,.chip:hover{background:var(--forest);color:#fff;border-color:var(--forest)}

/* ---------- Flash ---------- */
.flash{padding:13px 18px;border-radius:var(--radius-s);margin:16px auto;max-width:var(--maxw);font-size:.92rem}
.flash-info{background:rgba(46,125,79,.12);color:var(--forest)}
.flash-error{background:#fdecec;color:#b3261e}
.flash-success{background:rgba(46,125,79,.16);color:var(--forest)}

/* ---------- Notice ---------- */
.notice{padding:16px 18px;border-radius:var(--radius-s);background:var(--paper-2);
  border-left:4px solid var(--amber);font-size:.92rem;margin-bottom:20px}

/* ---------- Apple Footer ---------- */
.apple-footer {
  background: #fbfbfd;
  border-top: 1px solid #e5e5ea;
  padding: clamp(40px, 6vw, 60px) 0 30px;
  color: #1d1d1f;
  font-family: var(--font-b);
}
.apple-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.apple-footer .brand {
  color: #1d1d1f;
  margin-bottom: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}
.apple-footer p {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #86868b;
  max-width: 32ch;
  margin-bottom: 24px;
}
.footer-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.footer-actions .btn {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 40px;
  font-weight: 500;
  text-decoration: none;
}
.footer-actions .btn-outline {
  border: 1px solid #d2d2d7;
  color: #1d1d1f;
  background: transparent;
}
.footer-actions .btn-outline:hover {
  background: #f5f5f7;
}
.footer-actions .btn-solid {
  background: #187620;
  color: #fff;
  border: 1px solid #187620;
}
.footer-actions .btn-solid:hover {
  background: #0077ED;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}
.socials a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f5f7;
  color: #515154;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  text-decoration: none;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}
.socials a svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0;
  padding: 0;
}
.socials a:hover {
  background: #e5e5ea;
  color: #1d1d1f;
  transform: translateY(-2px);
}
.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 12px;
}
.footer-col a {
  display: block;
  font-size: 0.8rem;
  color: #515154;
  margin-bottom: 8px;
  transition: color 0.2s;
  text-decoration: none;
}
.footer-col a:hover {
  color: #1d1d1f;
  text-decoration: underline;
}
.apple-footer-bottom {
  border-top: 1px solid #d2d2d7;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.75rem;
  color: #86868b;
}
.footer-legal a {
  color: #515154;
  text-decoration: none;
}
.footer-legal a:hover {
  color: #1d1d1f;
  text-decoration: underline;
}
.footer-legal .sep {
  margin: 0 8px;
  color: #d2d2d7;
}
@media (max-width: 768px) {
  .apple-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-col {
    grid-column: span 2;
    margin-bottom: 20px;
  }
  .apple-footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- Dashboard shell ---------- */
.dash{display:grid;grid-template-columns:250px 1fr;min-height:100vh}
.dash-side{background:#ffffff;color:#1d1d1f;border-right:1px solid #e5e5ea;padding:22px 14px;box-sizing:border-box;
  position:sticky;top:0;height:100dvh;overflow-y:auto;overflow-x:hidden;z-index:70;transition:transform .28s ease;
  overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scroll-behavior:smooth;}
.dash-side .brand{color:#1d1d1f;margin-bottom:14px;padding:0 8px}
.dash-side .badge{margin:0 8px 18px}
.dash-nav a{display:flex;align-items:center;gap:10px;padding:11px 13px;border-radius:10px;
  color:#515154;font-size:.92rem;margin-bottom:2px;transition:.15s}
.dash-nav a:hover,.dash-nav a.active{background:#f5f5f7;color:#1d1d1f}
.dash-nav a.active{font-weight:600}
.dash-main{padding:clamp(18px,3vw,32px);background:var(--paper);min-width:0}
.dash-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:24px}
.dash-topbar h2{font-size:clamp(1.4rem,4vw,1.8rem)}
.dash-menu-btn{display:none;background:var(--card);border:1px solid var(--line);border-radius:10px;
  width:44px;height:44px;cursor:pointer;color:var(--forest);align-items:center;justify-content:center;flex-shrink:0}
.dash-menu-btn svg{width:22px;height:22px}
.dash-overlay{display:none;position:fixed;inset:0;background:rgba(12,26,19,.5);z-index:65;
  opacity:0;transition:opacity .28s}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px;margin-bottom:24px}
.kpi{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow)}
.kpi .n{font-family:var(--font-d);font-weight:800;font-size:clamp(1.5rem,4vw,2rem);color:var(--forest);line-height:1.1;word-break:break-word}
.kpi .l{font-size:.76rem;color:var(--muted);font-family:var(--font-m);letter-spacing:.06em;text-transform:uppercase;margin-top:6px}
.panel{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:clamp(18px,3vw,24px);margin-bottom:20px;box-shadow:var(--shadow);min-width:0;overflow-x:auto}
.panel h3{margin-bottom:16px}
.tbl-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;margin:0 -6px}
table.tbl{width:100%;border-collapse:collapse;font-size:.92rem;min-width:520px}
table.tbl th{text-align:left;font-family:var(--font-m);font-size:.68rem;letter-spacing:.1em;
  text-transform:uppercase;color:var(--muted);padding:10px 12px;border-bottom:1px solid var(--line);white-space:nowrap}
table.tbl td{padding:12px;border-bottom:1px solid var(--line-2);vertical-align:top}

/* ---------- Pending screen ---------- */
.pending-wrap{max-width:560px;margin:clamp(48px,10vw,80px) auto;text-align:center;padding:0 20px}
.pending-icon{width:80px;height:80px;border-radius:50%;background:rgba(231,163,57,.16);
  display:grid;place-items:center;margin:0 auto 22px;color:var(--amber-2)}

/* ---------- Scroll reveal (only hidden once JS confirms support) ---------- */
.js .reveal.in{opacity:1;transform:none}

/* ---------- Apple About Page Specifics ---------- */
.apple-page-hero {
  background: #fbfbfd;
  padding: clamp(80px, 12vw, 120px) 0 clamp(60px, 8vw, 80px);
  text-align: center;
  border-bottom: 1px solid #e5e5ea;
}
.apple-page-hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #1d1d1f;
  margin-bottom: 24px;
  line-height: 1.1;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.apple-page-hero p.lead {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: #86868b;
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.4;
}

/* Journey Timeline (Horizontal Framework) */
.apple-journey-container {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 0 60px; 
}
.apple-journey-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 60px 40px 20px 40px; /* 60px top padding fixes the clipped year labels! */
  gap: 40px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  align-items: stretch;
  height: 600px;
}
.apple-journey-track::-webkit-scrollbar {
  display: none;
}
.apple-journey-year-col {
  flex: 0 0 320px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
}
.apple-journey-node {
  position: relative;
  height: 60px;
  margin-bottom: 24px;
  cursor: pointer;
  flex-shrink: 0;
}
.apple-journey-line {
  position: absolute;
  top: 30px;
  left: 0;
  right: -80px; /* extends fully across gaps to next column */
  height: 2px;
  background: #e5e5ea;
  z-index: 0;
}
.apple-journey-dot {
  position: absolute;
  top: 8px; /* 30 - 22 */
  left: 0;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #187620;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #187620;
  font-size: 1.2rem;
  box-shadow: 0 0 0 6px #fbfbfd;
  box-sizing: border-box; /* Forces width to be exactly 44px */
}
.apple-journey-year-label {
  position: absolute;
  top: -30px;
  left: 22px; /* Center of the 44px dot */
  transform: translateX(-50%);
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d1f;
  white-space: nowrap;
}
.apple-journey-vertical-line {
  position: absolute;
  top: 52px; /* below the dot */
  bottom: 0;
  left: 21px;
  width: 2px;
  background: #e5e5ea;
  z-index: 0;
}
.apple-journey-events {
  position: relative;
  z-index: 1;
  padding-left: 52px; /* space for the vertical line */
  padding-right: 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex-grow: 1;
  overflow-y: auto;
  padding-bottom: 24px; /* give some bottom breathing room */
}
/* Scrollbar styling for events */
.apple-journey-events::-webkit-scrollbar {
  width: 6px;
}
.apple-journey-events::-webkit-scrollbar-track {
  background: transparent;
}
.apple-journey-events::-webkit-scrollbar-thumb {
  background-color: rgba(0,0,0,0.15);
  border-radius: 10px;
}
.apple-journey-events::-webkit-scrollbar-thumb:hover {
  background-color: rgba(0,0,0,0.25);
}
.apple-journey-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 24px;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 16px rgba(0,0,0,0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}
.apple-journey-card::before {
  content: "";
  position: absolute;
  top: 36px;
  left: -36px; /* Align center of 12px dot exactly with 2px vertical line (at 21px from col) */
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e5e5ea;
  border: 2px solid #fff;
  z-index: 2;
  box-sizing: border-box; /* Forces width to be exactly 12px */
}
.apple-journey-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.apple-journey-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 4px;
  line-height: 1.3;
}
.apple-journey-date {
  font-size: 0.75rem;
  color: #187620;
  opacity: 0.65;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.apple-journey-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: #515154;
  line-height: 1.5;
}
.apple-journey-card p {
  font-size: 0.9rem;
  color: #515154;
  margin: 0;
  line-height: 1.5;
}
.apple-journey-media-strip {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.apple-journey-media-strip::-webkit-scrollbar {
  display: none;
}
.apple-journey-media-thumb {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  flex-shrink: 0;
  background: #f5f5f7;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  border: 1px solid rgba(0,0,0,0.05);
}
.apple-journey-media-thumb img, .apple-journey-media-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.apple-journey-media-thumb .play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 24px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
/* Custom Grid for Advisors */
.apple-advisor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  gap: 24px;
}
@media(min-width: 992px) {
  .apple-advisor-grid {
    grid-template-columns: repeat(4, 1fr); /* 4 per row on desktop */
  }
}

/* Custom Grid for Mentors */
.apple-mentor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 per row on mobile as requested */
  gap: 24px;
}
@media(max-width: 767px) {
  .apple-mentor-grid {
    gap: 8px;
  }
  .apple-mentor-grid .apple-person-card {
    padding: 8px;
    border-radius: 12px;
  }
  .apple-mentor-grid .apple-person-photo {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    margin: 0 auto 8px;
    font-size: 1.5rem;
  }
  .apple-mentor-grid .apple-person-card h3 {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }
  .apple-mentor-grid .apple-person-role {
    font-size: 0.65rem;
    margin-bottom: 6px;
  }
  .apple-mentor-grid .apple-person-bio {
    font-size: 0.6rem;
    line-height: 1.2;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .apple-mentor-grid .apple-person-link {
    font-size: 0.55rem;
  }
}
@media(min-width: 992px) {
  .apple-mentor-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 per row on desktop */
  }
}

/* Custom Grid for Team */
.apple-team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 per row on mobile */
  gap: 24px;
}
@media(min-width: 992px) {
  .apple-team-grid {
    grid-template-columns: repeat(5, 1fr); /* 5 per row on desktop */
  }
}

/* Dark Theme Team Card (Flip Effect) */
.apple-team-card {
  position: relative;
  background: #1d1d1f;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.apple-team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.6);
}

.apple-team-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1; 
  perspective: 1000px;
}
.apple-team-card-flipper {
  position: absolute;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  border-radius: 20px 20px 0 0;
}
.apple-team-card:hover .apple-team-card-flipper {
  transform: rotateY(180deg);
}

.apple-team-card-front, .apple-team-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px 20px 0 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.apple-team-card-front {
  background: #1d1d1f;
}
.apple-team-card-back {
  background: #2c2c2e;
  transform: rotateY(180deg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.apple-team-photo {
  flex: 1;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  font-weight: 600;
}

.apple-team-info {
  padding: 16px;
  background: #1d1d1f;
  text-align: center;
  position: relative;
  z-index: 2;
}

.apple-team-info h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.apple-team-role {
  font-size: 0.75rem;
  font-weight: 500;
  color: #a1a1a6;
  margin-bottom: 8px;
}

.apple-team-link {
  color: #187620;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  padding: 8px 16px;
  background: rgba(0,113,227,0.1);
  border-radius: 20px;
}
.apple-team-link:hover {
  color: #187620;
  background: rgba(0,113,227,0.15);
}

.apple-team-bio-text {
  font-size: 0.85rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: #f5f5f7;
}

/* Mobile Responsive Adjustments for Team Grid (3-column) */
@media (max-width: 767px) {
  .apple-team-grid {
    gap: 12px; /* Reduce gap to give cards more width */
  }
  .apple-team-info {
    padding: 10px 8px; /* Tighter padding */
  }
  .apple-team-info h3 {
    font-size: 0.75rem; /* Smaller name */
  }
  .apple-team-role {
    font-size: 0.65rem; /* Smaller role */
  }
  .apple-team-link {
    font-size: 0.6rem;
    padding: 6px 10px;
    gap: 4px;
  }
  .apple-team-card-back {
    padding: 12px;
  }
  .apple-team-bio-text {
    font-size: 0.65rem;
    -webkit-line-clamp: 7; /* Less text visible to prevent overflow on tiny 1:1 square */
  }
  .apple-team-photo {
    font-size: 2rem; /* Smaller fallback initial */
  }
}
/* Lightbox Slideshow */
.apple-slideshow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}
.apple-slideshow-close, .apple-slideshow-prev, .apple-slideshow-next {
  position: absolute;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  transition: background 0.2s;
}
.apple-slideshow-close:hover {
  background: rgba(255,255,255,0.2);
}
.apple-slideshow-prev, .apple-slideshow-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.apple-slideshow-prev { left: 24px; }
.apple-slideshow-next { right: 24px; }
.apple-slideshow-prev:hover, .apple-slideshow-next:hover {
  background: rgba(255,255,255,0.2);
}
.apple-slideshow-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apple Style Badges */
.apple-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  background: #f5f5f7;
  color: #1d1d1f;
  border: 1px solid rgba(0,0,0,0.05);
}
.apple-badge-green {
  background: rgba(52, 199, 89, 0.1);
  color: #187620;
  border-color: rgba(52, 199, 89, 0.2);
}
.apple-badge-amber {
  background: rgba(255, 149, 0, 0.1);
  color: #cc7700;
  border-color: rgba(255, 149, 0, 0.2);
}
.apple-badge-blue {
  background: rgba(0, 113, 227, 0.1);
  color: #187620;
  border-color: rgba(0, 113, 227, 0.2);
}

/* Apple Style Form Inputs */
.apple-form-group {
  margin-bottom: 16px;
  text-align: left;
}
.apple-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1d1d1f;
  margin-bottom: 8px;
}
.apple-input, .apple-textarea {
  width: 100%;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 1rem;
  color: #1d1d1f;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}
.apple-textarea {
  min-height: 100px;
  resize: vertical;
}
.apple-input:focus, .apple-textarea:focus {
  outline: none;
  background: #ffffff;
  border-color: #187620;
  box-shadow: 0 0 0 4px rgba(0,113,227,0.1);
}

/* Apple Style Buttons */
.apple-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 30px;
  background: #187620;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}
.apple-btn:hover {
  background: #0077ED;
  transform: scale(1.02);
}
.apple-btn-secondary {
  background: transparent;
  color: #1d1d1f;
  border: 1px solid #d2d2d7;
}
.apple-btn-secondary:hover {
  background: #f5f5f7;
  color: #1d1d1f;
  transform: scale(1.02);
}
.apple-btn-amber {
  background: #ff9500;
  color: #fff;
}
.apple-btn-amber:hover {
  background: #ff9f1a;
  transform: scale(1.02);
}
.apple-btn-block {
  width: 100%;
}

/* Apple Programs & Portfolio Grids */
.apple-programs-grid, .apple-programs-grid-4-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 items per row on mobile */
  gap: 16px;
}
.apple-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 items per row on mobile */
  gap: 12px;
}
@media (min-width: 992px) {
  .apple-programs-grid-4-2 {
    grid-template-columns: repeat(4, 1fr); /* 4 items per row on desktop */
    gap: 24px;
  }
  .apple-portfolio-grid {
    grid-template-columns: repeat(6, 1fr); /* 6 items per row on desktop */
    gap: 20px;
  }
}
@media (max-width: 500px) {
  /* On extremely small screens, keep 2 items but shrink contents */
  .apple-programs-grid, .apple-programs-grid-4-2 {
    gap: 12px;
  }
  .apple-portfolio-grid {
    gap: 8px;
    grid-template-columns: repeat(3, 1fr);
  }
  .apple-programs-grid-4-2 .apple-card {
    padding: 12px !important;
  }
  .apple-programs-grid-4-2 .apple-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
  }
  .apple-programs-grid-4-2 h3 {
    font-size: 0.95rem !important;
    margin-bottom: 8px !important;
  }
  .apple-programs-grid-4-2 p {
    font-size: 0.8rem !important;
    margin-bottom: 12px !important;
    -webkit-line-clamp: 4;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .apple-programs-grid-4-2 .apple-btn {
    font-size: 0.75rem !important;
    padding: 8px !important;
  }
}

/* Portfolio Specific Tweaks */
.apple-portfolio-grid .apple-team-card-flipper,
.apple-portfolio-grid .apple-team-card-front,
.apple-portfolio-grid .apple-team-card-back,
.apple-portfolio-grid .apple-team-info,
.apple-portfolio-grid .apple-team-photo,
.apple-portfolio-grid img {
  border-radius: 0 !important;
}

/* Person Card */
.apple-person-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid rgba(0,0,0,0.04);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.apple-person-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.apple-person-photo {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  background-color: #f5f5f7;
  background-size: cover;
  background-position: center;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #187620;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
}
.apple-person-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1d1d1f;
  margin-bottom: 4px;
}
.apple-person-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: #86868b;
  margin-bottom: 12px;
}
.apple-person-bio {
  font-size: 0.7rem;
  color: #86868b;
  line-height: 1.4;
  margin-bottom: 16px;
  flex-grow: 1;
}
.apple-person-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #187620;
  text-decoration: none;
  transition: opacity 0.2s;
}
.apple-person-link:hover {
  color: #0077ED;
  text-decoration: underline;
}

/* Search Bar */
.apple-search-wrap {
  max-width: 480px;
  margin: 0 auto 40px;
}
.apple-search-input {
  width: 100%;
  padding: 16px 24px;
  font-size: 1.05rem;
  background: #f5f5f7;
  border: 1px solid transparent;
  border-radius: 30px;
  color: #1d1d1f;
  transition: all 0.2s ease;
}
.apple-search-input:focus {
  outline: none;
  background: #ffffff;
  border-color: #187620;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
}
.apple-search-input::placeholder {
  color: #86868b;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media(min-width:901px){
  .dash-side{transform:none!important}
}
@media(max-width:1024px){
  .footer-grid{grid-template-columns:1.4fr 1fr 1fr}
}
@media(max-width:900px){
  /* nav → mobile */
  .nav-links{position:fixed;inset:var(--header-h) 0 auto 0;flex-direction:column;align-items:stretch;
    gap:2px;background:var(--paper);padding:14px 16px calc(env(safe-area-inset-bottom) + 18px);
    border-bottom:1px solid var(--line);box-shadow:0 22px 40px -20px rgba(14,26,19,.5);
    transform:translateY(-8px);opacity:0;pointer-events:none;transition:opacity .22s ease,transform .22s ease;
    max-height:calc(100vh - var(--header-h));overflow:auto;margin-left:0}
  .nav-links.open{transform:none;opacity:1;pointer-events:auto}
  .nav-links a{padding:14px 12px;border-radius:10px;font-size:1rem;border-bottom:1px solid var(--line-2)}
  .nav-links a:last-child{border-bottom:0}
  .nav-toggle{display:inline-flex}
  .nav-backdrop.show{display:block;position:fixed;inset:var(--header-h) 0 0 0;background:rgba(12,26,19,.35);z-index:70}
  .nav-links{z-index:75}
  /* hide the Apply/Signin text CTAs on very tight bars? keep but allow wrap */
  .grid-2,.grid-3,.grid-4,.split,.testi{grid-template-columns:1fr}
  
  .about-text {
    text-align: center;
  }
  .about-text .hero-actions {
    justify-content: center;
  }

  .matrix-grid{grid-template-columns:repeat(2,1fr)}
  .matrix-cell:nth-child(2n){border-right:0}
  .matrix-cell{border-bottom:1px solid #d2d2d7;padding:24px 16px}
  .matrix-grid .matrix-cell:nth-last-child(-n+2){border-bottom:0}
  .footer-grid{grid-template-columns:1fr 1fr}
  /* dashboard → drawer */
  .dash{grid-template-columns:1fr}
  .dash-side{position:fixed;top:0;left:0;width:270px;transform:translateX(-100%)}
  .dash.nav-open .dash-side{transform:translateX(0);box-shadow:var(--shadow-lg)}
  .dash.nav-open .dash-overlay{display:block;opacity:1}
  .dash-menu-btn{display:inline-flex}
}
@media(max-width:560px){
  .container{padding:0 16px}
  .matrix-grid{grid-template-columns:repeat(2,1fr)}
  .matrix-cell:nth-child(2n){border-right:0}
  .form-row{grid-template-columns:1fr}
  .footer-grid{grid-template-columns:1fr}
  .hero-actions .btn{flex:1}
  .brand{font-size:0;gap:0}          /* show just the mark on very small screens */
  .brand-mark{width:36px;height:36px}
  .nav-cta{gap:8px}
  .section-head{align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important;scroll-behavior:auto}
  .reveal{opacity:1;transform:none}
}

/* Global Responsive Fixes for Small Devices */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }
  
  /* Ensure buttons and badges wrap their text instead of pushing bounds */
  .btn, .apple-btn, .badge, .apple-badge {
    white-space: normal !important;
    text-align: center;
    height: auto !important;
    line-height: 1.3 !important;
  }
  
  /* Prevent huge headings from blowing out the viewport */
  h1, .apple-page-hero h1 {
    font-size: clamp(2rem, 8vw, 3rem) !important;
  }
  h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem) !important;
  }

  /* Tighter padding on mobile */
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .section, .section-tight {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }
  
  /* Specifically protect the marquee */
  .scroll-marquee-container {
    max-width: 100vw;
    overflow: hidden;
  }
}

/* ==========================================================
   Apple Global Dashboard Redesign Overrides
   ========================================================== */

/* Dashboard Shell */
.dash-main {
    background: #f5f5f7 !important;
}
.dash-side {
    background: #ffffff !important;
    color: #1d1d1f !important;
    border-right: 1px solid #e5e5ea !important;
}
.dash-side .brand {
    color: #1d1d1f !important;
}
.dash-nav a {
    color: #515154 !important;
}
.dash-nav a:hover, .dash-nav a.active {
    background: #f5f5f7 !important;
    color: #1d1d1f !important;
}
.dash-nav a.active {
    box-shadow: none !important;
    font-weight: 600 !important;
}

/* Panels (Cards) */
.panel {
    background: #ffffff !important;
    border-radius: 28px !important;
    padding: 28px !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.02) !important;
    border: 1px solid rgba(0,0,0,0.03) !important;
}
.panel h3 {
    margin: 0 0 20px !important;
    font-size: 1.3rem !important;
    color: #1d1d1f !important;
    letter-spacing: -0.01em !important;
}

/* Data Tables */
table.tbl {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}
table.tbl th {
    text-align: left !important;
    padding: 12px 16px !important;
    font-size: 0.85rem !important;
    color: #86868b !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    border-bottom: 1px solid #e5e5ea !important;
}
table.tbl td {
    padding: 16px !important;
    font-size: 0.95rem !important;
    color: #1d1d1f !important;
    border-bottom: 1px solid #f5f5f7 !important;
}
table.tbl tr:last-child td {
    border-bottom: none !important;
}

/* Forms */
.field input, .field select, .field textarea {
    border-radius: 12px !important;
    padding: 14px 16px !important;
    border: 1px solid #d2d2d7 !important;
    background: #ffffff !important;
    color: #1d1d1f !important;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: #187620 !important;
    box-shadow: 0 0 0 4px rgba(0,113,227,0.1) !important;
}

/* Buttons */
.btn {
    border-radius: 40px !important;
    font-weight: 500 !important;
}
.btn-sm {
    padding: 8px 16px !important;
    font-size: 0.85rem !important;
}

/* Frozen Headline (Topbar) */
.dash-topbar {
    position: sticky !important;
    top: 0 !important;
    background: rgba(245, 245, 247, 0.8) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    padding-top: clamp(18px, 3vw, 32px) !important;
    padding-bottom: 20px !important;
    margin-top: calc(-1 * clamp(18px, 3vw, 32px)) !important;
    margin-bottom: 24px !important;
    z-index: 50 !important;
    border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Mobile Responsive Adjustments for Dashboard Grids */
@media (max-width: 768px) {
  /* Force dashboard grids to keep 2 items on mobile */
  .dash-main .apple-bento-grid, 
  .dash-main .apple-kpi-grid, 
  .dash-main .kpi-grid, 
  .dash-main .grid,
  .dash-main .grid-2, 
  .dash-main .grid-3, 
  .dash-main .grid-4 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 900px) {
  .dash { display: block !important; }
  .dash-side { position: fixed !important; left: 0 !important; top: 0 !important; transform: translateX(-100%) !important; width: 280px !important; z-index: 100 !important; height: 100dvh !important; }
  .dash.nav-open .dash-side { transform: translateX(0) !important; box-shadow: 0 0 40px rgba(0,0,0,0.5) !important; }
  .dash-menu-btn { display: flex !important; }
  .dash.nav-open .dash-overlay { display: block !important; opacity: 1 !important; z-index: 90 !important; }
}
