/* ============================================================
   MIDDLETON SPACE — shared stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root{
  --bg:            #0a0d13;
  --bg-alt:        #0e1219;
  --bg-panel:      #121722;
  --bg-panel-2:    #161c29;
  --line:          #232b3a;
  --line-soft:     rgba(255,255,255,0.08);
  --text:          #eef1f6;
  --text-dim:      #aab3c2;
  --text-mute:     #6c7688;
  --blue:          #3f7fd1;
  --blue-bright:   #5ea8ff;
  --blue-deep:     #1b3a6b;
  --cyan:          #6fd8ff;
  --silver:        #aab4c0;
  --amber:         #e0a542;
  --radius:        2px;
  --maxw:          1200px;
  --nav-h:         76px;
}

*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font-family:'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}

h1,h2,h3,h4{
  font-family:'Rajdhani','Inter',sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.04em;
  margin:0 0 .5em;
  color:var(--text);
}
h1{ font-size:clamp(2.2rem, 5vw, 4rem); line-height:1.05; letter-spacing:.03em; }
h2{ font-size:clamp(1.6rem, 3vw, 2.4rem); }
h3{ font-size:1.25rem; letter-spacing:.06em; }
h4{ font-size:1rem; letter-spacing:.08em; color:var(--text-dim); }

p{ margin:0 0 1em; color:var(--text-dim); }
a{ color:var(--blue-bright); text-decoration:none; }
a:hover{ color:var(--cyan); }
img{ max-width:100%; display:block; }

.mono{ font-family:'JetBrains Mono','SFMono-Regular',Consolas,monospace; }
.eyebrow{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  letter-spacing:.28em;
  text-transform:uppercase;
  color:var(--blue-bright);
  display:flex;
  align-items:center;
  gap:.6em;
  margin-bottom:1em;
}
.eyebrow::before{
  content:"";
  width:28px; height:1px;
  background:var(--blue-bright);
  display:inline-block;
}

.wrap{ max-width:var(--maxw); margin:0 auto; padding:0 32px; }
section{ padding:88px 0; }
section.tight{ padding:56px 0; }
.divider{ border:none; border-top:1px solid var(--line); margin:0; }

/* ---------------- Buttons ---------------- */
.btn{
  display:inline-flex; align-items:center; gap:.6em;
  font-family:'Rajdhani',sans-serif;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:.85rem;
  padding:14px 28px;
  border:1px solid var(--blue);
  color:var(--text);
  background:transparent;
  cursor:pointer;
  transition:all .18s ease;
}
.btn:hover{ background:var(--blue-deep); border-color:var(--blue-bright); color:#fff; }
.btn-solid{ background:var(--blue); border-color:var(--blue); color:#04070c; }
.btn-solid:hover{ background:var(--blue-bright); border-color:var(--blue-bright); color:#04070c; }
.btn-row{ display:flex; gap:16px; flex-wrap:wrap; }

/* ---------------- Nav ---------------- */
.site-nav{
  position:sticky; top:0; z-index:100;
  height:var(--nav-h);
  display:flex; align-items:center;
  background:rgba(10,13,19,0.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line-soft);
}
.site-nav .wrap{ display:flex; align-items:center; justify-content:space-between; width:100%; }
.brand{ display:flex; align-items:center; gap:12px; }
.brand-mark{
  width:34px; height:34px;
  background:#04070c;
  border-radius:50%;
  padding:1px;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
}
.brand-mark img{ width:100%; height:100%; object-fit:contain; }
.brand-word{
  font-family:'Rajdhani',sans-serif;
  font-weight:700;
  font-size:1.15rem;
  letter-spacing:.08em;
  color:var(--text);
  white-space:nowrap;
}
.brand-word span{ color:var(--blue-bright); }

.nav-links{ display:flex; align-items:center; gap:2px; list-style:none; margin:0; padding:0; }
.nav-links a{
  display:block;
  color:var(--text-dim);
  font-family:'Rajdhani',sans-serif;
  font-weight:600;
  font-size:.85rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  padding:10px 14px;
  border-bottom:2px solid transparent;
}
.nav-links a:hover{ color:var(--text); }
.nav-links a.active{ color:var(--text); border-bottom-color:var(--blue-bright); }
.nav-toggle{
  display:none;
  align-items:center; justify-content:center;
  width:40px; height:40px;
  background:transparent;
  border:1px solid var(--line);
  color:var(--text);
  font-size:1.1rem;
  cursor:pointer;
  flex-shrink:0;
}
.nav-toggle:hover{ border-color:var(--blue); }

/* ---------------- Hero ---------------- */
.hero{
  position:relative;
  min-height:78vh;
  display:flex; align-items:flex-end;
  background-size:cover; background-position:center;
  border-bottom:1px solid var(--line-soft);
}
.hero::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,10,15,.15) 0%, rgba(8,10,15,.35) 45%, rgba(8,10,15,.96) 100%);
}
.hero-inner{ position:relative; z-index:1; padding-bottom:64px; width:100%; }
.hero.short{ min-height:44vh; }
.hero-tag{ max-width:640px; }

.hero-stats{
  display:flex; gap:0; flex-wrap:wrap;
  border-top:1px solid var(--line-soft);
}
.hero-stats .stat{ flex:1; min-width:140px; padding:24px 32px 0; }

/* ---------------- Stat / spec blocks ---------------- */
.stat-bar{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.stat-bar .stat{
  padding:32px;
  border-left:1px solid var(--line);
}
.stat-bar .stat:first-child{ border-left:none; }
.stat .num{
  font-family:'JetBrains Mono',monospace;
  font-size:2rem;
  color:var(--blue-bright);
  display:block;
  line-height:1;
  margin-bottom:8px;
}
.stat .label{
  font-family:'Rajdhani',sans-serif;
  font-size:.78rem;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-mute);
}

.spec-table{ width:100%; border-collapse:collapse; }
.spec-table tr{ border-bottom:1px solid var(--line); }
.spec-table tr:last-child{ border-bottom:none; }
.spec-table td{ padding:12px 4px; font-size:.92rem; }
.spec-table td:first-child{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  letter-spacing:.08em;
  color:var(--text-mute);
  text-transform:uppercase;
  width:46%;
}
.spec-table td:last-child{ color:var(--text); font-weight:500; }

/* ---------------- Grid / cards ---------------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:1fr 1fr; }
.grid-3{ grid-template-columns:repeat(3, 1fr); }
.grid-6{ grid-template-columns:repeat(3, 1fr); }

.card{
  background:var(--bg-panel);
  border:1px solid var(--line);
  padding:28px;
  transition:border-color .18s ease, transform .18s ease;
}
.card:hover{ border-color:var(--blue); transform:translateY(-2px); }
.card .num-tag{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  color:var(--blue-bright);
  letter-spacing:.1em;
}

.div-card{
  position:relative;
  display:block;
  border:1px solid var(--line);
  overflow:hidden;
  aspect-ratio:4/3;
  background:#000;
}
.div-card img{
  width:100%; height:100%; object-fit:cover;
  transition:transform .4s ease, opacity .3s ease;
  opacity:.75;
}
.div-card:hover img{ transform:scale(1.06); opacity:.95; }
.div-card::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(8,10,15,0) 30%, rgba(8,10,15,.95) 100%);
}
.div-card-body{
  position:absolute; left:0; right:0; bottom:0; z-index:1;
  padding:22px;
}
.div-card-body h3{ margin-bottom:.3em; color:#fff; }
.div-card-body p{ margin:0; font-size:.88rem; color:var(--silver); }
.div-card-tag{
  font-family:'JetBrains Mono',monospace;
  font-size:.68rem;
  letter-spacing:.16em;
  color:var(--blue-bright);
  text-transform:uppercase;
  display:block;
  margin-bottom:6px;
}

/* ---------------- Image band ---------------- */
.band{
  background-size:cover; background-position:center;
  position:relative;
  min-height:420px;
  display:flex; align-items:center;
}
.band::after{
  content:"";
  position:absolute; inset:0;
  background:linear-gradient(90deg, rgba(8,10,15,.92) 0%, rgba(8,10,15,.55) 55%, rgba(8,10,15,.25) 100%);
}
.band-inner{ position:relative; z-index:1; max-width:560px; }

/* ---------------- Panel / two-col ---------------- */
.panel{ background:var(--bg-panel); border:1px solid var(--line); padding:32px; }
.kicker-block{ border-left:2px solid var(--blue); padding-left:20px; }

/* ---------------- Team ---------------- */
.person{
  border-top:1px solid var(--line);
  padding:28px 0;
  display:grid;
  grid-template-columns:200px 1fr;
  gap:32px;
}
.person:last-child{ border-bottom:1px solid var(--line); }
.person .role{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  letter-spacing:.1em;
  color:var(--blue-bright);
  text-transform:uppercase;
  margin-bottom:6px;
  display:block;
}

/* ---------------- Timeline ---------------- */
.tl-item{
  display:grid; grid-template-columns:110px 1fr; gap:24px;
  padding:22px 0; border-top:1px solid var(--line);
}
.tl-item:last-child{ border-bottom:1px solid var(--line); }
.tl-year{ font-family:'JetBrains Mono',monospace; color:var(--blue-bright); font-size:1.1rem; }

/* ---------------- CTA band ---------------- */
.cta{
  text-align:center;
  padding:96px 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(63,127,209,.16), transparent 60%),
    var(--bg-alt);
  border-top:1px solid var(--line-soft);
  border-bottom:1px solid var(--line-soft);
}
.cta h2{ margin-bottom:.3em; }
.cta p{ max-width:520px; margin:0 auto 2em; }

/* ---------------- Footer ---------------- */
footer{ background:var(--bg-alt); border-top:1px solid var(--line-soft); padding:64px 0 28px; }
.footer-grid{
  display:grid;
  grid-template-columns:1.4fr 1fr 1fr 1fr;
  gap:32px;
  padding-bottom:40px;
}
.footer-brand{ display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.footer-col h4{ margin-bottom:1em; color:var(--text-dim); }
.footer-col ul{ list-style:none; margin:0; padding:0; }
.footer-col li{ margin-bottom:.6em; }
.footer-col a{ color:var(--text-mute); font-size:.92rem; }
.footer-col a:hover{ color:var(--blue-bright); }
.footer-bottom{
  border-top:1px solid var(--line);
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:.8rem; color:var(--text-mute);
  font-family:'JetBrains Mono',monospace;
  letter-spacing:.04em;
}

/* ---------------- Breadcrumb ---------------- */
.crumb{
  font-family:'JetBrains Mono',monospace;
  font-size:.72rem;
  letter-spacing:.1em;
  text-transform:uppercase;
  color:var(--text-mute);
  margin-bottom:18px;
}
.crumb a{ color:var(--text-mute); }
.crumb a:hover{ color:var(--blue-bright); }

/* ---------------- Utility ---------------- */
.center{ text-align:center; }
.mb-0{ margin-bottom:0; }
.lede{ font-size:1.15rem; color:var(--silver); max-width:680px; }
.tag-pill{
  display:inline-block;
  border:1px solid var(--line);
  color:var(--text-dim);
  font-family:'JetBrains Mono',monospace;
  font-size:.7rem;
  letter-spacing:.08em;
  padding:5px 12px;
  margin:0 8px 8px 0;
  text-transform:uppercase;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 900px){
  .grid-2, .grid-3, .grid-6, .stat-bar, .footer-grid{ grid-template-columns:1fr 1fr; }
  .person{ grid-template-columns:1fr; }
  .nav-toggle{ display:flex; }
  .nav-links{
    position:fixed;
    top:var(--nav-h); left:0; right:0;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    background:var(--bg-alt);
    border-bottom:1px solid var(--line-soft);
    max-height:0;
    overflow:hidden;
    transition:max-height .28s ease;
  }
  .nav-links.open{ max-height:70vh; overflow-y:auto; }
  .nav-links a{
    padding:16px 24px;
    border-bottom:1px solid var(--line);
    border-left:2px solid transparent;
  }
  .nav-links a.active{ border-bottom-color:var(--line); border-left-color:var(--blue-bright); background:var(--bg-panel); }
}
@media (max-width: 600px){
  .grid-2, .grid-3, .grid-6, .stat-bar, .footer-grid{ grid-template-columns:1fr; }
  .stat-bar .stat{ border-left:none; border-top:1px solid var(--line); }
  .stat-bar .stat:first-child{ border-top:none; }
  section{ padding:56px 0; }
  .wrap{ padding:0 20px; }
  .tl-item{ grid-template-columns:1fr; gap:6px; }
}
