/* ============================================================
   Xccelerata — Venture Studio
   Brand tokens derived from logo: red #FC3C3C, black, light grey
   ============================================================ */

:root{
  --ink:#0B0B0C;
  --ink-soft:#1A1A1C;
  --bone:#FAFAF9;
  --panel:#F1F1EF;
  --signal:#FC3C3C;
  --signal-dark:#D62C2C;
  --steel:#6E6E72;
  --line:#E4E4E2;
  --ink-line: rgba(250,250,249,0.12);
  --shadow-sm: 0 2px 10px rgba(11,11,12,0.05);
  --shadow-md: 0 8px 28px rgba(11,11,12,0.09);
  --shadow-lg: 0 18px 46px rgba(11,11,12,0.14);
}
*{ box-sizing:border-box; margin:0; padding:0; }
html{ scroll-behavior:smooth; }
body{
  background:var(--bone);
  color:var(--ink);
  font-family:'Inter', sans-serif;
  font-size:16px;
  line-height:1.5;
  overflow-x:hidden;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.mono{
  font-family:'IBM Plex Mono', monospace;
  letter-spacing:0.04em;
  text-transform:uppercase;
  font-size:12px;
}
h1,h2,h3{
  font-family:'Poppins', sans-serif;
  font-weight:700;
  letter-spacing:-0.015em;
  line-height:1.06;
}
h1{ font-weight:800; }
h1 span.accent, h2 span.accent, h3 span.accent{ color:var(--signal); }

.wrap{ max-width:1200px; margin:0 auto; padding:0 40px; }

/* ---------- NAV ---------- */
header{
  position:fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(250,250,249,0.86);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:16px 40px; max-width:1200px; margin:0 auto;
}
.logo-mark{ height:34px; width:auto; }
.navlinks{ display:flex; gap:32px; align-items:center; }
.navlinks a{ font-size:14px; color:var(--steel); transition:color .2s; font-weight:500; }
.navlinks a:hover{ color:var(--ink); }
.navlinks a.cta{
  color:#fff; background:var(--signal); padding:11px 22px; border-radius:3px; font-size:13px;
}
.navlinks a.cta:hover{ background:var(--ink); }
.burger{ display:none; }

/* ---------- HERO ---------- */
.hero{
  position:relative;
  padding:190px 0 110px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  overflow:hidden;
}
.hero:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(ellipse 900px 500px at 75% 15%, rgba(252,60,60,0.08) 0%, rgba(250,250,249,0) 65%);
  z-index:0;
}
.hero .wrap{ position:relative; z-index:1; }
.eyebrow{
  display:inline-flex; align-items:center; gap:10px;
  color:var(--signal); margin-bottom:26px; font-weight:600;
}
.eyebrow:before{ content:""; width:22px; height:2px; background:var(--signal); }
.hero h1{
  font-size:clamp(42px, 6vw, 84px);
  max-width:920px;
  color:var(--ink);
}
.hero-sub{
  max-width:540px; margin-top:26px; font-size:18px; color:var(--steel); line-height:1.65;
}
.hero-actions{ display:flex; gap:16px; margin-top:42px; align-items:center; flex-wrap:wrap; }
.btn{
  display:inline-flex; align-items:center; gap:10px;
  background:var(--signal); color:#fff;
  padding:15px 28px; font-size:14px; font-weight:600; border:1px solid var(--signal);
  border-radius:4px; cursor:pointer; transition: all .25s;
  box-shadow: 0 4px 16px rgba(252,60,60,0.28);
}
.btn:hover{ background:var(--ink); border-color:var(--ink); box-shadow: 0 6px 20px rgba(11,11,12,0.25); transform:translateY(-1px); }
.btn.ghost{ background:transparent; color:var(--ink); border-color:var(--ink); box-shadow:none; }
.btn.ghost:hover{ background:var(--ink); color:#fff; box-shadow: 0 6px 20px rgba(11,11,12,0.2); }
.btn:focus-visible, a:focus-visible, .filter-pill:focus-visible{ outline:2px solid var(--signal); outline-offset:2px; }

.hero-diagram{ margin-top:86px; }
.hero-diagram svg{ width:100%; height:auto; display:block; }
.diagram-path{
  stroke-dasharray: 1200;
  stroke-dashoffset: 1200;
  animation: draw 2.4s cubic-bezier(.65,0,.35,1) forwards .3s;
}
@keyframes draw{ to{ stroke-dashoffset:0; } }
.node-label{ font-family:'IBM Plex Mono', monospace; font-size:11px; letter-spacing:.05em; fill:var(--steel); text-transform:uppercase; }
.node-title{ font-family:'Poppins', sans-serif; font-weight:600; font-size:18px; fill:var(--ink); }

.stat-row{
  display:flex; gap:0; margin-top:76px; border-top:1px solid var(--line); padding-top:30px;
  flex-wrap:wrap;
}
.stat{ flex:1; min-width:140px; padding-right:24px; }
.stat .num{ font-family:'Poppins', sans-serif; font-weight:700; font-size:36px; color:var(--ink); }
.stat .label{ color:var(--steel); margin-top:6px; }

/* ---------- SECTION generic ---------- */
section{ padding:120px 0; }
.section-head{ display:flex; justify-content:space-between; align-items:flex-end; gap:40px; margin-bottom:60px; flex-wrap:wrap; }
.section-head .tag{ color:var(--signal); margin-bottom:18px; display:block; font-weight:700; font-size:13px; }
.section-head h2{ font-size:clamp(36px, 4.6vw, 58px); max-width:700px; font-weight:800; }
.section-head p{ color:var(--steel); max-width:340px; font-size:15px; line-height:1.6; }

.reveal{ opacity:0; transform:translateY(28px); transition:opacity .7s ease, transform .7s ease; }
.reveal.show{ opacity:1; transform:translateY(0); }

/* ---------- THESIS ---------- */
.thesis{ background:var(--ink); color:var(--bone); }
.thesis-grid{ display:grid; grid-template-columns:1.3fr 1fr; gap:80px; }
.thesis-quote{ font-family:'Poppins', sans-serif; font-weight:600; font-size:clamp(24px,2.8vw,34px); line-height:1.4; color:var(--bone); }
.thesis-quote .accent{ color:var(--signal); }
.thesis-list{ display:flex; flex-direction:column; gap:0; }
.thesis-list li{ list-style:none; padding:22px 0; border-top:1px solid var(--ink-line); display:flex; justify-content:space-between; gap:20px; }
.thesis-list li:last-child{ border-bottom:1px solid var(--ink-line); }
.thesis-list .k{ font-family:'IBM Plex Mono',monospace; font-size:12px; color:var(--signal); text-transform:uppercase; letter-spacing:.05em; padding-top:3px; }
.thesis-list .v{ font-size:15px; color:rgba(250,250,249,0.75); max-width:290px; text-align:right; }

/* ---------- PROGRAM TYPES ---------- */
.types-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
.type-card{ background:var(--bone); padding:44px 36px; transition: all .3s; border-radius:6px; box-shadow: var(--shadow-sm); border:1px solid var(--line); }
.type-card:hover{ box-shadow: var(--shadow-lg); transform:translateY(-6px); border-color:transparent; }
.type-card .icon{ width:40px; height:40px; margin-bottom:26px; }
.type-card h3{ font-size:22px; margin-bottom:14px; }
.type-card p{ color:var(--steel); font-size:14.5px; line-height:1.65; margin-bottom:24px; }
.type-card .meta{ display:flex; justify-content:space-between; border-top:1px solid var(--line); padding-top:16px; }
.type-card .meta span{ font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; color:var(--steel); letter-spacing:.04em; }
.type-card .meta span.hot{ color:var(--signal); }

/* ---------- PROGRAMS (process) ---------- */
.programs{ background:var(--bone); }
.stage-list{ position:relative; }
.stage{
  display:grid; grid-template-columns:90px 1fr 1.2fr; gap:32px;
  padding:36px 0; border-top:1px solid var(--line); align-items:start;
}
.stage:last-child{ border-bottom:1px solid var(--line); }
.stage .idx{ font-family:'Poppins', sans-serif; font-weight:700; font-size:30px; color:var(--signal); }
.stage h3{ font-size:22px; margin-bottom:10px; }
.stage .desc{ color:var(--steel); font-size:14.5px; line-height:1.7; }
.stage .duration{ font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; color:var(--steel); letter-spacing:.04em; align-self:center; text-align:right; }

/* ---------- PORTFOLIO ---------- */
.portfolio{ background:var(--ink); color:var(--bone); }
.portfolio .section-head p{ color:rgba(250,250,249,.6); }
.filters{ display:flex; gap:10px; margin-bottom:48px; flex-wrap:wrap; }
.filter-pill{
  font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.04em;
  padding:9px 16px; border:1px solid var(--ink-line); border-radius:20px; color:rgba(250,250,249,.65);
  cursor:pointer; background:transparent; transition:all .2s;
}
.filter-pill:hover{ border-color:var(--signal); color:var(--bone); }
.filter-pill.active{ background:var(--signal); border-color:var(--signal); color:#fff; }
.port-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--ink-line); border:1px solid var(--ink-line); }
.port-card{
  position:relative; background:#fff; aspect-ratio:4/3; overflow:hidden; cursor:default;
}
.port-card.hidden{ display:none; }
.port-logo{
  position:absolute; inset:0; display:flex; align-items:center; justify-content:center; padding:20%;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.port-logo img{
  max-height:100%; max-width:100%; width:auto; object-fit:contain;
  filter: grayscale(1) contrast(1.05); opacity:.82; transition: filter .4s ease, opacity .4s ease;
}
.port-card:hover .port-logo img{ filter:none; opacity:1; }
.port-card:hover .port-logo{ transform:scale(1.04); }
.port-overlay{
  position:absolute; inset:0; background:linear-gradient(180deg, rgba(11,11,12,0) 40%, rgba(11,11,12,0.94) 100%);
  display:flex; flex-direction:column; justify-content:flex-end; padding:22px 24px;
  opacity:0; transform:translateY(8px); transition: opacity .35s ease, transform .35s ease;
}
.port-card:hover .port-overlay{ opacity:1; transform:translateY(0); }
.port-overlay .sector{ font-family:'IBM Plex Mono',monospace; font-size:10px; text-transform:uppercase; color:var(--signal); letter-spacing:.06em; margin-bottom:6px; display:block; }
.port-overlay .desc{ font-size:13px; color:rgba(250,250,249,.8); line-height:1.5; }
.port-badge{
  position:absolute; top:16px; left:16px; width:26px; height:26px; border-radius:50%; background:var(--ink);
  display:flex; align-items:center; justify-content:center; opacity:0; transition:opacity .3s ease;
}
.port-card:hover .port-badge{ opacity:1; }

.portfolio-stats{ display:flex; gap:0; border-top:1px solid var(--ink-line); border-bottom:1px solid var(--ink-line); margin-bottom:56px; flex-wrap:wrap; }
.portfolio-stats .pstat{ flex:1; min-width:150px; padding:26px 4px; border-right:1px solid var(--ink-line); }
.portfolio-stats .pstat:last-child{ border-right:none; }
.portfolio-stats .pstat .num{ font-family:'Poppins',sans-serif; font-weight:800; font-size:32px; color:#fff; }
.portfolio-stats .pstat .label{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; text-transform:uppercase; letter-spacing:.04em; color:rgba(250,250,249,.5); margin-top:6px; }

/* ---------- CONTACT ---------- */
.contact{ text-align:center; padding:150px 0; }
.contact h2{ font-size:clamp(34px,5vw,60px); max-width:800px; margin:0 auto 30px; }
.contact-actions{ display:flex; gap:16px; justify-content:center; margin-top:20px; flex-wrap:wrap; }

footer{ border-top:1px solid var(--line); padding:32px 0; }
footer .wrap{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:14px; }
footer .flogo{ height:22px; opacity:.85; }
footer .mono{ color:var(--steel); }
footer .flinks{ display:flex; gap:24px; }
footer .flinks a{ color:var(--steel); font-size:13px; }
footer .flinks a:hover{ color:var(--ink); }

/* ---------- PAGE HERO (sub-pages) ---------- */
.page-hero{
  position:relative;
  padding:170px 0 90px;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center -1px;
  overflow:hidden;
}
.page-hero:before{
  content:"";
  position:absolute; inset:0;
  background: radial-gradient(ellipse 800px 420px at 80% 10%, rgba(252,60,60,0.08) 0%, rgba(250,250,249,0) 65%);
  z-index:0;
}
.page-hero .wrap{ position:relative; z-index:1; }
.page-hero h1{ font-size:clamp(36px, 5vw, 62px); max-width:760px; }
.page-hero p{ max-width:560px; margin-top:22px; font-size:17px; color:var(--steel); line-height:1.6; }
.breadcrumb{ display:flex; align-items:center; gap:8px; margin-bottom:22px; }
.breadcrumb a{ color:var(--steel); font-size:13px; font-weight:500; }
.breadcrumb a:hover{ color:var(--signal); }
.breadcrumb .sep{ color:var(--line); }
.breadcrumb .current{ color:var(--signal); font-size:13px; font-weight:600; }

/* ---------- NAV active state ---------- */
.navlinks a.active{ color:var(--signal); }

/* ---------- HOME teaser / view-all links ---------- */
.view-all{ display:inline-flex; align-items:center; gap:8px; color:var(--signal); font-weight:600; font-size:14px; margin-top:8px; }
.view-all:hover{ gap:12px; }
.view-all svg{ transition: transform .2s; }

/* ---------- GRAPHIC: hero build-stack illustration ---------- */
.stack-graphic{ width:100%; height:auto; display:block; }
.stack-float{ animation: floaty 4.5s ease-in-out infinite; }
.stack-float.d2{ animation-delay:.4s; }
.stack-float.d3{ animation-delay:.8s; }
@keyframes floaty{
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---------- GRAPHIC: program stage icons ---------- */
.stage-icon-wrap{
  width:56px; height:56px; border-radius:50%; border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; margin-bottom:22px; background:var(--bone);
}
.stage-card{
  background:var(--bone); border:1px solid var(--line); padding:38px 32px; border-radius:6px;
  transition: all .25s; box-shadow: var(--shadow-sm);
}
.stage-card:hover{ border-color:transparent; transform:translateY(-6px); box-shadow: var(--shadow-lg); }
.stage-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:22px; }

/* ---------- PROGRAMS page: detail cards ---------- */
.program-detail{
  display:grid; grid-template-columns:1fr 1fr; gap:0;
  border-radius:8px; overflow:hidden; margin-bottom:24px; box-shadow: var(--shadow-md);
}
.program-detail:nth-child(even) .program-detail-visual{ order:2; }
.program-detail-copy{ padding:56px; }
.program-detail-visual{
  background:var(--ink); display:flex; align-items:center; justify-content:center; padding:56px; min-height:260px;
}
.program-detail-copy .kicker{ color:var(--signal); font-weight:600; margin-bottom:14px; display:block; }
.program-detail-copy h3{ font-size:30px; margin-bottom:16px; }
.program-detail-copy p{ color:var(--steel); font-size:15px; line-height:1.7; margin-bottom:26px; }
.detail-facts{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:28px; }
.detail-facts div{ border-top:1px solid var(--line); padding-top:12px; }
.detail-facts .k{ font-family:'IBM Plex Mono',monospace; font-size:10.5px; text-transform:uppercase; color:var(--steel); letter-spacing:.04em; display:block; margin-bottom:6px; }
.detail-facts .v{ font-weight:600; font-size:14.5px; }

/* ---------- FAQ ---------- */
.faq-item{ border-top:1px solid var(--line); padding:26px 0; cursor:pointer; }
.faq-item:last-child{ border-bottom:1px solid var(--line); }
.faq-q{ display:flex; justify-content:space-between; align-items:center; gap:20px; font-weight:600; font-size:16px; }
.faq-q .plus{ font-size:20px; color:var(--signal); transition: transform .25s; flex-shrink:0; }
.faq-item.open .faq-q .plus{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a{ max-height:200px; }
.faq-a p{ color:var(--steel); font-size:14.5px; line-height:1.7; padding-top:14px; max-width:640px; }

/* ---------- CONTACT page ---------- */
.contact-layout{ display:grid; grid-template-columns:1fr 1fr; gap:70px; }
.contact-form-wrap h2{ font-size:28px; margin-bottom:10px; }
.contact-form-wrap > p{ color:var(--steel); font-size:14.5px; margin-bottom:32px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-bottom:18px; }
.form-field{ display:flex; flex-direction:column; gap:8px; }
.form-field.full{ grid-column:1/-1; }
.form-field label{ font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--steel); }
.form-field input, .form-field select, .form-field textarea{
  border:1px solid var(--line); background:var(--bone); padding:13px 14px; font-family:'Inter',sans-serif; font-size:14.5px;
  border-radius:3px; color:var(--ink); resize:vertical;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus{ outline:none; border-color:var(--signal); }
.form-note{ font-size:12.5px; color:var(--steel); margin-top:16px; }
.form-success{ display:none; background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--signal); padding:18px 20px; font-size:14px; margin-top:16px; border-radius:3px; }
.form-success.show{ display:block; }

.map-graphic{ width:100%; height:auto; margin-bottom:44px; }
.locations-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:70px; }
.location-card{ background:var(--bone); padding:34px 30px; border-radius:6px; border:1px solid var(--line); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.location-card:hover{ box-shadow: var(--shadow-md); transform:translateY(-4px); }
.location-card .tag-hq{ display:inline-block; background:var(--signal); color:#fff; font-family:'IBM Plex Mono',monospace; font-size:10px; text-transform:uppercase; letter-spacing:.05em; padding:4px 9px; border-radius:2px; margin-bottom:16px; }
.location-card h4{ font-family:'Poppins',sans-serif; font-weight:700; font-size:19px; margin-bottom:12px; }
.location-card .addr{ color:var(--steel); font-size:14px; line-height:1.7; margin-bottom:14px; }
.location-card .lmeta{ display:flex; flex-direction:column; gap:4px; font-size:13.5px; }
.location-card .lmeta a{ color:var(--ink); font-weight:500; }
.location-card .lmeta a:hover{ color:var(--signal); }
.placeholder-note{
  display:flex; gap:10px; align-items:flex-start; background:var(--panel); border:1px dashed var(--steel);
  padding:16px 18px; border-radius:4px; margin-top:24px; font-size:13px; color:var(--steel); line-height:1.6;
}
.placeholder-note svg{ flex-shrink:0; margin-top:2px; }

/* ---------- TEAM ---------- */
.team-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:32px 24px; }
.team-card{ text-align:center; }
.team-photo{
  position:relative; width:100%; aspect-ratio:1/1; border-radius:50%; overflow:hidden;
  margin:0 auto 20px; box-shadow: var(--shadow-md); border:4px solid var(--bone);
  outline:1px solid var(--line); transition: outline-color .25s, transform .25s;
}
.team-card:hover .team-photo{ outline-color:var(--signal); transform:translateY(-4px); }
.team-photo img{ width:100%; height:100%; object-fit:cover; }
.team-card h4{ font-family:'Poppins',sans-serif; font-weight:700; font-size:17px; margin-bottom:4px; }
.team-card .role{ font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.03em; color:var(--signal); line-height:1.5; display:block; }
.team-tier{ margin-bottom:64px; }
.team-tier:last-child{ margin-bottom:0; }
.team-tier-label{ font-family:'IBM Plex Mono',monospace; font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--steel); margin-bottom:28px; padding-bottom:14px; border-bottom:1px solid var(--line); }

@media (max-width:1000px){
  .port-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .stage-grid{ grid-template-columns:repeat(2,1fr); }
  .program-detail{ grid-template-columns:1fr; }
  .program-detail:nth-child(even) .program-detail-visual{ order:0; }
  .contact-layout{ grid-template-columns:1fr; gap:50px; }
  .locations-grid{ grid-template-columns:1fr; }
  .team-grid{ grid-template-columns:repeat(2,1fr); }
  .portfolio-stats .pstat{ min-width:50%; border-bottom:1px solid var(--ink-line); }
}
@media (max-width:860px){
  .wrap{ padding:0 22px; }
  nav{ padding:16px 22px; }
  .navlinks{ position:fixed; top:66px; left:0; right:0; background:var(--bone); flex-direction:column;
    padding:26px; gap:20px; border-bottom:1px solid var(--line); transform:translateY(-130%); transition:transform .3s; }
  .navlinks.open{ transform:translateY(0); }
  .burger{ display:flex; flex-direction:column; gap:5px; cursor:pointer; background:none; border:none; padding:6px; }
  .burger span{ width:22px; height:2px; background:var(--ink); display:block; }
  .thesis-grid{ grid-template-columns:1fr; gap:40px; }
  .thesis-list .v{ text-align:left; max-width:100%; }
  .types-grid{ grid-template-columns:1fr; }
  .port-grid{ grid-template-columns:1fr; }
  .stage{ grid-template-columns:44px 1fr; }
  .stage .duration{ grid-column:2; text-align:left; margin-top:6px; }
  .hero{ padding:150px 0 80px; }
  section{ padding:80px 0; }
  .page-hero{ padding:140px 0 60px; }
  .form-row{ grid-template-columns:1fr; }
  .stage-grid{ grid-template-columns:1fr; }
  .program-detail-copy, .program-detail-visual{ padding:36px 26px; }
}
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
  .reveal{ opacity:1; transform:none; }
}
