/* ===================== Design Tokens ===================== */
:root{
  --bg: #f7f7f5;
  --bg-alt: #f0efec;
  --surface: #ffffff;
  --surface-2: #fbfaf8;
  --text: #14161a;
  --text-dim: #55585f;
  --text-faint: #8a8d94;
  --border: rgba(20,22,26,0.10);
  --border-strong: rgba(20,22,26,0.18);
  --accent: #1e6f5c;
  --accent-2: #c26a2b;
  --accent-soft: rgba(30,111,92,0.12);
  --accent-2-soft: rgba(194,106,43,0.14);
  --shadow: 0 1px 2px rgba(20,22,26,0.04), 0 8px 24px rgba(20,22,26,0.06);
  --shadow-lg: 0 4px 12px rgba(20,22,26,0.06), 0 24px 48px rgba(20,22,26,0.10);
  --radius: 14px;
  --radius-sm: 8px;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --header-h: 72px;
}

:root[data-theme="dark"]{
  --bg: #0b0d10;
  --bg-alt: #0f1215;
  --surface: #14171b;
  --surface-2: #191d22;
  --text: #eef0f2;
  --text-dim: #a7acb4;
  --text-faint: #71767e;
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.16);
  --accent: #4fd8b8;
  --accent-2: #f0a860;
  --accent-soft: rgba(79,216,184,0.12);
  --accent-2-soft: rgba(240,168,96,0.12);
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.35), 0 32px 64px rgba(0,0,0,0.45);
}

@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg: #0b0d10;
    --bg-alt: #0f1215;
    --surface: #14171b;
    --surface-2: #191d22;
    --text: #eef0f2;
    --text-dim: #a7acb4;
    --text-faint: #71767e;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(255,255,255,0.16);
    --accent: #4fd8b8;
    --accent-2: #f0a860;
    --accent-soft: rgba(79,216,184,0.12);
    --accent-2-soft: rgba(240,168,96,0.12);
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 8px 24px rgba(0,0,0,0.35);
    --shadow-lg: 0 4px 16px rgba(0,0,0,0.35), 0 32px 64px rgba(0,0,0,0.45);
  }
}

/* ===================== Reset ===================== */
*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration: none; }
h1,h2,h3{ font-family: var(--font-display); line-height:1.15; margin:0; font-weight:600; }
p{ margin:0; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family: inherit; background:none; border:none; cursor:pointer; color:inherit; }

.container{
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===================== Background layers ===================== */
.grid-bg{
  position: fixed; inset:0; z-index:-2; pointer-events:none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 10%, transparent 70%);
  opacity: 0.6;
}
.noise-overlay{
  position: fixed; inset:0; z-index:-1; pointer-events:none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ===================== Header ===================== */
.site-header{
  position: fixed; top:0; left:0; right:0; z-index:100;
  height: var(--header-h);
  display:flex; align-items:center;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled{ border-bottom-color: var(--border); }

.header-inner{
  width:100%;
  display:flex; align-items:center; justify-content:space-between;
}
.logo{
  font-family: var(--font-display);
  font-weight:700; font-size:1.2rem; letter-spacing: -0.02em;
}
.logo-dot{ color: var(--accent); }

.nav{ display:flex; gap: 28px; }
.nav a{
  font-size: 0.88rem; font-weight:500; color: var(--text-dim);
  position:relative; padding: 6px 0;
  transition: color .2s ease;
}
.nav a:hover{ color: var(--text); }
.nav a.active{ color: var(--text); }
.nav a.active::after{
  content:''; position:absolute; left:0; right:0; bottom:-2px; height:2px;
  background: var(--accent); border-radius: 2px;
}

.header-actions{ display:flex; align-items:center; gap: 10px; }
.theme-toggle{
  width: 38px; height:38px; border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  border: 1px solid var(--border); color: var(--text-dim);
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.theme-toggle:hover{ color: var(--text); border-color: var(--border-strong); transform: rotate(15deg); }
.icon-moon{ display:none; }
:root[data-theme="dark"] .icon-sun{ display:none; }
:root[data-theme="dark"] .icon-moon{ display:block; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .icon-sun{ display:none; }
  :root:not([data-theme="light"]) .icon-moon{ display:block; }
}

.nav-toggle{
  display:none; flex-direction:column; gap:5px; width:38px; height:38px;
  align-items:center; justify-content:center;
}
.nav-toggle span{ width:20px; height:2px; background: var(--text); border-radius:2px; transition: transform .25s ease, opacity .25s ease; }

/* ===================== Hero ===================== */
.hero{
  min-height: 100vh;
  display:flex; align-items:center;
  padding-top: var(--header-h);
  position: relative;
}
.hero-inner{ max-width: 880px; }
.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.hero-title{
  font-size: clamp(2.6rem, 7vw, 5rem);
  letter-spacing: -0.03em;
  margin-bottom: 22px;
}
.hero-name{ background: linear-gradient(100deg, var(--text) 40%, var(--text-dim)); -webkit-background-clip:text; background-clip:text; }
.hero-sub{
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-meta{ display:flex; flex-wrap:wrap; gap:12px; margin-bottom: 40px; }
.meta-chip{
  display:inline-flex; align-items:center; gap:7px;
  font-size: 0.82rem; color: var(--text-dim);
  border:1px solid var(--border); padding: 7px 13px; border-radius: 100px;
  background: var(--surface);
}
.meta-chip svg{ color: var(--accent); flex-shrink:0; }

.hero-actions{ display:flex; flex-wrap:wrap; gap: 14px; }

.btn{
  display:inline-flex; align-items:center; gap:8px;
  padding: 13px 22px; border-radius: 100px;
  font-size: 0.92rem; font-weight:600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary{
  background: var(--accent); color: var(--bg);
}
:root[data-theme="dark"] .btn-primary{ color:#062019; }
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]) .btn-primary{ color:#062019; }
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn-ghost{
  border: 1px solid var(--border-strong); color: var(--text);
}
.btn-ghost:hover{ background: var(--surface); transform: translateY(-2px); }
.btn-lg{ padding: 16px 28px; font-size: 1rem; }

.scroll-cue{
  position:absolute; bottom: 36px; left:50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 20px;
  display:flex; justify-content:center; padding-top: 8px;
}
.scroll-cue span{ width:4px; height:8px; border-radius:2px; background: var(--accent); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue{
  0%{ transform: translateY(0); opacity:1; }
  70%{ transform: translateY(14px); opacity:0; }
  100%{ opacity:0; }
}

/* ===================== Stat strip ===================== */
.stat-strip{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 44px 0;
  background: var(--surface);
}
.stat-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.stat-item{ display:flex; flex-direction:column; align-items:center; text-align:center; gap: 6px; }
.stat-num, .stat-num-text{
  font-family: var(--font-display); font-weight:700;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  color: var(--text);
}
.stat-num-text{ font-size: clamp(1.1rem, 2vw, 1.4rem); }
.stat-label{ font-size: 0.78rem; color: var(--text-faint); font-family: var(--font-mono); }

/* ===================== Sections ===================== */
.section{ padding: 110px 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin-bottom: 56px; }
.section-kicker{
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent-2); display:block; margin-bottom: 14px;
}
.section-head h2{ font-size: clamp(1.6rem, 3.4vw, 2.3rem); letter-spacing: -0.02em; }

/* About */
.about-grid{ display:grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items:start; }
.about-lead{ font-size: 1.1rem; color: var(--text-dim); }
.about-facts{ display:flex; flex-direction:column; gap: 22px; }
.fact{ padding: 18px 22px; border-left: 2px solid var(--accent); background: var(--surface); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.fact h3{ font-size: 1rem; margin-bottom: 6px; }
.fact p{ color: var(--text-dim); font-size: 0.92rem; }

@media (max-width: 860px){
  .about-grid{ grid-template-columns: 1fr; }
}

/* Education */
.edu-grid{ display:grid; grid-template-columns: 1.2fr 1fr .8fr; gap: 20px; }
.edu-card{
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 28px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.edu-card:hover{ transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.edu-card-top{ display:flex; justify-content:space-between; align-items:baseline; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.edu-card h3{ font-size: 1.15rem; }
.edu-date{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); white-space:nowrap; }
.edu-sub{ color: var(--accent); font-weight:600; font-size: 0.92rem; margin-bottom: 4px; }
.edu-loc{ color: var(--text-faint); font-size: 0.85rem; }

@media (max-width: 700px){ .edu-grid{ grid-template-columns: 1fr; } }

/* Timeline */
.timeline{ position:relative; padding-left: 28px; }
.timeline::before{
  content:''; position:absolute; left: 5px; top: 6px; bottom: 6px; width: 2px;
  background: linear-gradient(var(--border-strong), transparent);
}
.tl-item{ position:relative; padding-bottom: 40px; }
.tl-item:last-child{ padding-bottom:0; }
.tl-dot{
  position:absolute; left: -28px; top: 4px; width: 12px; height:12px; border-radius:50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.tl-content{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 22px 26px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.tl-content:hover{ transform: translateX(4px); box-shadow: var(--shadow-lg); }
.tl-top{ display:flex; justify-content:space-between; gap: 12px; flex-wrap:wrap; margin-bottom: 6px; }
.tl-top h3{ font-size: 1.08rem; }
.tl-date{ font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-faint); white-space:nowrap; }
.tl-tag{ color: var(--accent-2); font-weight:600; font-size: 0.86rem; margin-bottom: 6px; }
.tl-content p:not(.tl-tag){ color: var(--text-dim); font-size: 0.92rem; }

/* Research */
.research-list{ display:flex; flex-direction:column; gap: 22px; }
.research-card{
  position:relative;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px 32px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.research-card:hover{ transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.research-card.featured{ border-color: var(--accent); }
.research-badge{
  position:absolute; top:-11px; left: 28px;
  background: var(--accent); color: var(--bg); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing:0.06em; text-transform:uppercase;
  padding: 4px 12px; border-radius: 100px; font-weight:600;
}
.research-card h3{ font-size: 1.15rem; margin-bottom: 8px; padding-right: 40px; }
.research-meta{ font-family: var(--font-mono); font-size: 0.8rem; color: var(--accent-2); margin-bottom: 14px; }
.research-card ul{ display:flex; flex-direction:column; gap: 8px; }
.research-card li{ position:relative; padding-left: 18px; color: var(--text-dim); font-size: 0.94rem; }
.research-card li::before{ content:'—'; position:absolute; left:0; color: var(--text-faint); }

/* Projects */
.project-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.project-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.project-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.project-icon{
  width: 48px; height:48px; border-radius: var(--radius-sm);
  display:flex; align-items:center; justify-content:center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.project-card h3{ font-size: 1.08rem; margin-bottom: 4px; }
.project-date{ font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-faint); display:block; margin-bottom: 14px; }
.project-card p{ color: var(--text-dim); font-size: 0.9rem; margin-bottom: 10px; }
.project-card p:last-child{ margin-bottom:0; }

@media (max-width: 900px){ .project-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px){ .project-grid{ grid-template-columns: 1fr; } }

/* Service */
.service-grid{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card{
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease;
}
.service-card:hover{ transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service-card h3{ font-size: 1.05rem; margin-bottom: 4px; }
.service-card p{ color: var(--text-dim); font-size: 0.9rem; margin-top: 10px; }

@media (max-width: 900px){ .service-grid{ grid-template-columns: 1fr; } }

/* Contact */
.contact-section{ text-align:center; }
.contact-inner{ display:flex; flex-direction:column; align-items:center; gap: 26px; }
.contact-inner h2{ font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 10px; }
.contact-sub{ color: var(--text-dim); margin-top: 14px; font-size: 1.05rem; }
.contact-actions{ display:flex; flex-wrap:wrap; gap: 16px; justify-content:center; }

/* Footer */
.site-footer{ border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap: 12px; }
.footer-inner p{ font-size: 0.85rem; color: var(--text-faint); }
.back-top{ font-size: 0.85rem; color: var(--text-dim); transition: color .2s ease; }
.back-top:hover{ color: var(--accent); }

/* ===================== Reveal animation ===================== */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1);
}
.reveal.in-view{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; transition:none; }
  html{ scroll-behavior:auto; }
}

/* ===================== Responsive nav ===================== */
@media (max-width: 900px){
  .nav{
    position: fixed; top: var(--header-h); left:0; right:0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction:column; gap:0; padding: 8px 0;
    transform: translateY(-8px); opacity:0; pointer-events:none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav.open{ opacity:1; transform: translateY(0); pointer-events:auto; }
  .nav a{ padding: 14px 28px; border-bottom: 1px solid var(--border); }
  .nav-toggle{ display:flex; }
}

@media (max-width: 640px){
  .stat-grid{ grid-template-columns: repeat(2, 1fr); }
  .stat-item:last-child{ grid-column: span 2; }
  .section{ padding: 80px 0; }
}

/* Project photography and silent demonstration videos. */
.project-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 2rem; }
.project-media { margin: 0 0 1.4rem; border-radius: 14px; overflow: hidden; }
.project-media img { display: block; width: 100%; height: 310px; object-fit: contain; background: #f4f5f2; }
.samson-media { margin: 0; }
.samson-media img { height: auto; aspect-ratio: 1.4; }
.project-media figcaption { font-size: .75rem; padding: .65rem 0; opacity: .7; }
.media-link { display: inline-block; margin-top: 1rem; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.build-gallery { max-width: 1160px; margin: 0 auto; padding: 0 24px 90px; scroll-margin-top: 100px; }
.build-gallery h3 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: .7rem; }
.demo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.demo-card { min-width: 0; margin: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.demo-card img,.demo-card video { display: block; width: 100%; height: 350px; object-fit: contain; background: #111817; }
.demo-card figcaption { padding: 16px 18px; }
.demo-card strong,.demo-card span { display: block; }
.demo-card span { font-size: .85rem; opacity: .75; margin-top: .4rem; line-height: 1.5; }
.demo-more { margin-top: 28px; }
.demo-more summary { cursor: pointer; padding: 12px 0; font-weight: 600; }
.demo-wide { max-width: 800px; margin-top: 15px; }
.demo-wide video { height: auto; aspect-ratio: 16 / 9; }
@media(max-width: 760px) { .project-featured { grid-template-columns: 1fr; } .demo-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .demo-card img,.demo-card video { height: 280px; } }
@media(max-width: 480px) { .demo-grid { grid-template-columns: 1fr; } .demo-card img,.demo-card video { height: 380px; } }

.prototype-feature,.axiom-feature { grid-column: 1 / -1; }
.prototype-feature h3,.axiom-feature h3 { font-size: clamp(1.5rem,3vw,2rem); margin: .65rem 0 1rem; }
.prototype-intro { max-width: 760px; margin-bottom: 24px; }
.prototype-slide { margin: 0; }
.prototype-slide[hidden] { display: none; }
.prototype-slide > a { display:block; background:white; border-radius:12px; overflow:hidden; }
.prototype-slide img { display:block; width:100%; height:clamp(260px,45vw,510px); object-fit:contain; }
.prototype-slide figcaption { min-height: 118px; padding: 20px 0 10px; }
.prototype-slide figcaption strong,.prototype-slide figcaption span { display:block; }
.prototype-slide figcaption strong { font-size:1.1rem; margin-bottom:8px; }
.prototype-slide figcaption span { max-width:850px; line-height:1.6; opacity:.8; }
.prototype-slide figcaption a,.axiom-shot figcaption a { display:inline-block; margin-top:9px; color:var(--accent); text-underline-offset:4px; }
.carousel-controls { display:flex; align-items:center; justify-content:center; gap:22px; margin:14px 0; }
.carousel-controls button,.carousel-choices button { border:1px solid var(--border); background:transparent; color:inherit; border-radius:9px; cursor:pointer; font:inherit; }
.carousel-controls button { min-width:48px; min-height:44px; font-size:1.35rem; }
.carousel-choices { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.carousel-choices button { padding:12px 8px; font-size:.85rem; }
.carousel-choices button[aria-pressed=true] { background:var(--accent); color:#111; border-color:var(--accent); }
.prototype-carousel :focus-visible { outline:3px solid var(--accent); outline-offset:4px; }
.prototype-status { font-size:.85rem; margin:22px 0 16px; opacity:.7; }
.prototype-links { display:flex; gap:12px; flex-wrap:wrap; }
.axiom-feature { margin-top:8px; }
.axiom-feature > div { max-width:850px; }
.axiom-shot { margin:24px 0 0; }
.axiom-shot img { display:block; width:100%; height:auto; border:1px solid var(--border); border-radius:12px; }
.axiom-shot figcaption { font-size:.85rem; opacity:.8; line-height:1.6; margin-top:14px; }
@media(max-width:480px) { .carousel-choices { grid-template-columns:repeat(2,1fr); } .prototype-slide figcaption { min-height:180px; } }

.carousel-choices { margin: 20px 0 16px; }
#samson,#axiom { scroll-margin-top: 90px; }

.axiom-release-status { color:var(--accent); font-size:.9rem; margin-top:18px; }
.axiom-carousel .carousel-choices { grid-template-columns:repeat(4,1fr); }
.axiom-gallery-slide img { aspect-ratio:auto; height:auto; max-height:none; object-fit:contain; background:#202228; }
.axiom-gallery-slide figcaption { min-height:145px; }
@media(max-width:600px) { .axiom-carousel .carousel-choices { grid-template-columns:repeat(2,1fr); } .axiom-gallery-slide figcaption { min-height:210px; } }

.soft-arm-upright { transform:rotate(180deg); }

/* Project-first introduction */
.hero{ min-height:0; padding:130px 0 48px; }
.hero-inner{ max-width:1200px; display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; }
.hero-title{ font-size:clamp(2.5rem,5vw,4.2rem); }
.hero-sub{ font-size:1.05rem; margin-bottom:24px; }
.hero-meta{ margin-bottom:26px; gap:8px; }
.hero-project{ display:block; overflow:hidden; border:1px solid var(--border); border-radius:var(--radius); background:var(--surface); }
.hero-project img{ width:100%; height:300px; object-fit:contain; display:block; background:#fff; }
.hero-project-caption{ display:flex; flex-direction:column; gap:4px; padding:18px 22px; }
.hero-project-caption>span{ color:var(--text-dim); font-size:.82rem; }
.featured-work{ grid-column:1/-1; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.work-preview{ border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:var(--surface); transition:border-color .2s; }
.work-preview:hover{ border-color:var(--accent); }
.work-preview:focus-visible,.hero-project:focus-visible{ outline:2px solid var(--accent); outline-offset:4px; }
.work-preview img{ width:100%; height:150px; object-fit:contain; display:block; }
.work-preview>span{ display:flex; flex-direction:column; gap:8px; padding:20px; }
.work-preview small{ font-size:.72rem; color:var(--accent-2); }
.work-preview strong{ font-size:1.05rem; }
.work-preview span span{ font-size:.82rem; color:var(--text-dim); }
.work-result{ display:flex; align-items:center; background:var(--accent-soft); }
.work-result .result-number{ font-size:3.8rem; line-height:1.1; letter-spacing:-.05em; }
.edu-card h3{ margin:14px 0 8px; }
@media(max-width:800px){ .hero-inner{ grid-template-columns:1fr; }.hero{padding-top:110px;}.hero-project img{height:260px;}.featured-work{grid-template-columns:1fr;}.work-preview{display:grid;grid-template-columns:130px 1fr;}.work-preview img{height:100%;min-height:160px;}.work-result{display:block;}.edu-grid{grid-template-columns:1fr;}.stat-grid{grid-template-columns:1fr;gap:28px;} }

/* BLUEBIRD: a design-stage project in the existing portfolio system. */
.bluebird-feature { grid-column: 1 / -1; }
.bluebird-feature h3 { font-size: clamp(1.5rem,3vw,2rem); margin: .65rem 0 1rem; }
.bluebird-intro { max-width: 820px; }
.bluebird-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; margin: 24px 0; }
.bluebird-figure { margin: 0; min-width: 0; }
.bluebird-figure a { display: block; overflow: hidden; border-radius: 12px; background: #d4e6f2; }
.bluebird-figure img { display: block; width: 100%; height: auto; }
.bluebird-figure figcaption { margin-top: 10px; color: var(--text-dim); font-size: .78rem; line-height: 1.6; }
.bluebird-copy h4 { font-size: .95rem; line-height: 1.5; margin: 16px 0 6px; }
.bluebird-copy h4:first-child { margin-top: 0; }
.bluebird-status { padding: 16px 18px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.bluebird-feature .prototype-links { margin-top: 22px; }
.bluebird-figure a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
@media(max-width: 800px) { .bluebird-layout { grid-template-columns: 1fr; gap: 20px; } }

.bluebird-funding { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px; margin-top: 20px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface-2); }
.bluebird-funding h4 { font-size: 1rem; margin: 0 0 6px; }
.bluebird-funding p { margin: 0; }
.bluebird-funding .btn { flex-shrink: 0; }
@media(max-width: 800px) { .bluebird-funding { flex-direction: column; align-items: flex-start; } }

/* Editorial engineering portfolio: BLUEBIRD's typographic language, in graphite. */
:root, :root[data-theme="dark"] {
  --bg:#18191a; --bg-alt:#202122; --surface:#252627; --surface-2:#2c2d2e;
  --text:#f4f3ef; --text-dim:#b8b9b8; --text-faint:#a0a29f;
  --border:rgba(255,255,255,.16); --border-strong:rgba(255,255,255,.35);
  --accent:#f4f3ef; --accent-2:#c5c7c3; --accent-soft:rgba(255,255,255,.07);
  --accent-2-soft:rgba(255,255,255,.1); --shadow:none; --shadow-lg:none;
  --radius:0; --radius-sm:0; --header-h:62px;
  --font-display:'Inter Tight',Arial,sans-serif; --font-body:'Inter Tight',Arial,sans-serif;
  --font-mono:'IBM Plex Mono',monospace;
}
:root[data-theme="light"] {
  --bg:#f3f2ee; --bg-alt:#e8e7e2; --surface:#fff; --surface-2:#e5e5e0;
  --text:#202121; --text-dim:#555956; --text-faint:#626762;
  --border:rgba(0,0,0,.16); --border-strong:rgba(0,0,0,.35);
  --accent:#202121; --accent-2:#555956; --accent-soft:rgba(0,0,0,.055);
}
body { font-family:var(--font-body); }
.grid-bg,.noise-overlay { display:none; }
.container { max-width:1320px; padding-left:32px; padding-right:32px; }
.site-header { border-bottom:1px solid var(--border); background:color-mix(in srgb,var(--bg) 92%,transparent); backdrop-filter:blur(14px); }
.logo { font-weight:700; font-size:19px; letter-spacing:-.05em; }
.logo-label { font-family:var(--font-mono); font-size:9px; letter-spacing:.04em; font-weight:400; color:var(--text-dim); vertical-align:middle; margin-left:12px; }
.nav { gap:25px; }
.nav a { font-size:12px; font-weight:400; }
.nav a.active::after { height:1px; border-radius:0; }
.theme-toggle { border-radius:0; width:30px; height:30px; border:0; }
.theme-toggle:hover { transform:none; }
.hero { display:block; padding:114px 0 0; }
.hero-inner { display:block; max-width:1320px; }
.hero-copy { display:grid; grid-template-columns:1fr 1.3fr; column-gap:8%; }
.eyebrow { grid-column:1/-1; font-size:10px; letter-spacing:.075em; margin-bottom:28px; color:var(--text-dim); }
.hero-title { grid-column:1/-1; margin:0 0 42px -7px; font-weight:500; font-size:clamp(86px,16.7vw,218px); line-height:.84; letter-spacing:-.065em; }
.hero-name { display:block; background:none; color:var(--text); }
.hero-name>span { display:block; }
.hero-name>span+span { margin-left:20%; }
.hero-sub { grid-column:2; grid-row:3 / span 2; max-width:590px; font-size:clamp(17px,1.7vw,23px); line-height:1.45; margin:0; }
.hero-meta { grid-column:1; flex-direction:column; align-items:flex-start; gap:8px; margin:0 0 24px; }
.meta-chip { background:none; border:0; border-radius:0; padding:0; font-family:var(--font-mono); font-size:10px; text-transform:uppercase; letter-spacing:.025em; }
.meta-chip svg { display:none; }
.hero-actions { grid-column:1; gap:10px; }
.btn, .btn-lg { font-family:var(--font-mono); text-transform:uppercase; font-size:10px; font-weight:500; letter-spacing:.035em; border-radius:0; padding:13px 17px; white-space:normal; }
.btn-primary, :root[data-theme="dark"] .btn-primary { background:var(--text); color:var(--bg); border:1px solid var(--text); }
.btn-ghost { border-color:var(--border-strong); }
.btn:hover { transform:none; box-shadow:none; }
.btn-primary:hover { background:var(--text-dim); border-color:var(--text-dim); }
.hero-project { margin-top:52px; border:0; position:relative; background:#d4e6f2; }
.hero-project img { height:auto; width:100%; aspect-ratio:2.15; object-fit:cover; background:#d4e6f2; }
.hero-project-caption { position:absolute; bottom:0; left:0; right:0; padding:22px 26px; background:linear-gradient(transparent,rgba(0,0,0,.82)); color:white; padding-top:65px; }
.hero-project-caption strong { font-size:clamp(28px,4vw,52px); font-weight:500; letter-spacing:-.045em; }
.hero-project-caption>span { font-family:var(--font-mono); color:#eee; font-size:10px; text-transform:uppercase; }
.featured-work { margin-top:14px; gap:14px; }
.work-preview { border:0; background:var(--surface); border-radius:0; }
.work-preview img { height:220px; background:#101112; object-fit:cover; }
.work-preview>span { padding:20px; }
.work-preview small { font-family:var(--font-mono); font-size:9px; text-transform:uppercase; letter-spacing:.06em; }
.work-preview strong { font-size:23px; font-weight:500; letter-spacing:-.025em; }
.work-preview span span { font-size:13px; }
.work-result { background:#efeee9; color:#202121; align-items:stretch; }
.work-result>span { justify-content:space-between; min-height:100%; }
.work-result small,.work-result span span { color:#525652; }
.work-result .result-number { font-size:96px; font-weight:500; letter-spacing:-.07em; }
.stat-strip { margin-top:56px; background:none; padding:26px 0; }
.stat-item { align-items:flex-start; text-align:left; padding-left:24px; border-left:1px solid var(--border); }
.stat-num-text { font-size:24px; font-weight:500; letter-spacing:-.03em; }
.stat-label { font-size:9px; text-transform:uppercase; letter-spacing:.04em; }
.section { padding:100px 0 36px; }
.section-alt { background:none; }
.section-head { max-width:none; margin-bottom:38px; display:grid; grid-template-columns:1fr 2fr; gap:25px; border-top:1px solid var(--border); padding-top:22px; }
.section-kicker { font-size:10px; color:var(--text-dim); margin:7px 0 0; }
.section-head h2 { font-size:clamp(31px,4.5vw,56px); font-weight:500; line-height:1.08; letter-spacing:-.045em; }
.project-grid { gap:16px; }
.project-card { border:0; border-radius:0; padding:28px; background:#eeede8; color:#202121; --text:#202121; --text-dim:#525652; --text-faint:#60665f; --accent:#202121; --accent-2:#525652; --border:rgba(0,0,0,.15); --border-strong:rgba(0,0,0,.35); --accent-soft:rgba(0,0,0,.05); --surface:#e3e3dd; --surface-2:#e3e3dd; --bg:#eeede8; }
.project-card:hover,.edu-card:hover,.service-card:hover,.research-card:hover,.tl-content:hover { transform:none; box-shadow:none; }
.project-card h3 { font-size:24px; font-weight:500; letter-spacing:-.025em; }
.project-card p { font-size:15px; line-height:1.6; }
.project-date { font-size:10px; text-transform:uppercase; letter-spacing:.04em; }
.project-icon { background:none; border:1px solid var(--border); border-radius:0; }
.bluebird-feature,.prototype-feature,.axiom-feature { padding:32px; margin:0 0 16px; border-top:3px solid #f4f3ef; }
.bluebird-feature h3,.prototype-feature h3,.axiom-feature h3 { font-size:clamp(30px,4.5vw,56px); line-height:1.06; max-width:920px; margin:18px 0; font-weight:500; letter-spacing:-.045em; }
.bluebird-layout { grid-template-columns:1.2fr 1fr; gap:40px; margin:30px 0; }
.bluebird-figure a,.prototype-slide>a,.project-media,.axiom-shot img { border-radius:0; }
.bluebird-copy h4 { font-weight:600; font-size:18px; letter-spacing:-.02em; }
.bluebird-figure figcaption { font-family:var(--font-mono); font-size:10px; }
.bluebird-status { border:0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); background:none; padding:18px 0; border-radius:0; }
.bluebird-funding { background:#242526; color:#f4f3ef; padding:25px; border:0; gap:25px; }
.bluebird-funding h4 { font-size:26px; font-weight:500; letter-spacing:-.03em; }
.bluebird-funding p { color:#c2c4c1; font-size:14px; }
.bluebird-funding .btn { color:white; border-color:#8e938d; }
.bluebird-funding .btn:hover { background:#3d403c; }
.project-card .btn-primary { color:#eeede8; background:#202121; border-color:#202121; }
.project-card .btn-primary:hover { background:#454944; }
.prototype-status { opacity:1; }
.carousel-choices { display:flex; flex-wrap:wrap; gap:0; border-bottom:1px solid var(--border); }
.carousel-choices button { border:0; border-bottom:2px solid transparent; border-radius:0; padding:14px 16px; font-family:var(--font-mono); font-size:10px; }
.carousel-choices button[aria-pressed=true] { background:transparent; color:#202121; border-color:#202121; }
.carousel-controls button { border-radius:0; }
.prototype-slide figcaption strong { font-weight:500; font-size:23px; letter-spacing:-.025em; }
.prototype-slide figcaption span { font-size:14px; opacity:1; color:var(--text-dim); }
.research-list { gap:0; }
.research-card { border:0; border-top:1px solid var(--border); border-radius:0; padding:30px 0; background:transparent; }
.research-card.featured { border-color:var(--border-strong); }
.research-badge { position:static; display:inline-block; border-radius:0; margin-bottom:15px; font-size:9px; }
.research-card h3 { font-size:clamp(24px,3vw,35px); font-weight:500; letter-spacing:-.03em; padding:0; }
.research-meta { font-size:10px; text-transform:uppercase; }
.research-card li { font-size:16px; max-width:900px; }
.build-gallery { max-width:1320px; padding:70px 32px 30px; }
.build-gallery .section-head { display:block; }
.build-gallery h3 { font-size:clamp(30px,4vw,50px); font-weight:500; letter-spacing:-.04em; }
.demo-grid { gap:14px; }
.demo-card { border-radius:0; background:var(--surface); }
.demo-card figcaption { padding:18px; }
.about-lead { font-size:21px; line-height:1.55; }
.fact { background:none; border:0; border-top:1px solid var(--border); padding:18px 0; border-radius:0; }
.fact h3 { font-family:var(--font-mono); font-size:11px; text-transform:uppercase; }
.edu-card,.service-card { border:0; border-top:1px solid var(--border-strong); border-radius:0; background:var(--surface); padding:25px; }
.edu-card h3,.service-card h3 { font-size:25px; font-weight:500; letter-spacing:-.03em; }
.edu-date,.tl-date { font-size:10px; text-transform:uppercase; white-space:normal; }
.timeline { padding:0; }
.timeline::before,.tl-dot { display:none; }
.tl-item { padding:0; }
.tl-content { padding:24px 0; border:0; border-top:1px solid var(--border); border-radius:0; background:transparent; }
.tl-top h3 { font-size:23px; font-weight:500; letter-spacing:-.02em; }
.tl-tag { font-size:13px; font-weight:500; }
.contact-section { padding:100px 0 80px; text-align:left; }
.contact-inner { align-items:stretch; border-top:1px solid var(--border); padding-top:24px; }
.contact-inner h2 { font-size:clamp(44px,7vw,90px); max-width:1000px; line-height:1; letter-spacing:-.055em; font-weight:500; }
.contact-actions { justify-content:flex-start; }
.contact-actions .btn { overflow-wrap:anywhere; }
.footer-inner p,.back-top { font-family:var(--font-mono); font-size:10px; text-transform:uppercase; }
#bluebird,#samson,#axiom { scroll-margin-top:85px; }
.reveal { opacity:1; transform:none; }
a:focus-visible,button:focus-visible,summary:focus-visible { outline:2px solid currentColor; outline-offset:5px; }
@media(max-width:1000px) { .nav { gap:17px; } .logo-label { display:none; } }
@media(max-width:800px) {
 .container { padding-left:20px; padding-right:20px; }
 .hero { padding-top:98px; }.hero-copy { grid-template-columns:1fr; gap:0; }
 .hero-title { font-size:clamp(74px,18vw,142px); margin:0 0 34px -3px; }.hero-name>span+span { margin-left:9%; }
 .hero-sub { grid-column:1; grid-row:auto; font-size:19px; margin:0 0 24px; }.hero-meta { grid-column:1; grid-row:auto; }.hero-actions { grid-column:1; }
 .hero-project { margin-top:32px; }.hero-project img { aspect-ratio:1.3; height:auto; }.hero-project-caption { padding:40px 18px 18px; }
 .featured-work { grid-template-columns:1fr; }.work-preview { display:grid; grid-template-columns:130px 1fr; }.work-preview img { height:100%; min-height:170px; }
 .work-preview strong { font-size:21px; }.work-result { display:block; }.work-result>span { min-height:0; display:grid; grid-template-columns:1fr 1fr; }.work-result .result-number { font-size:74px; grid-column:1; grid-row:2 / span 2; }.work-result span span { grid-column:2; }.work-result small:last-child { grid-column:2; }
 .stat-grid { grid-template-columns:1fr; gap:20px; }.stat-item:last-child { grid-column:auto; }.stat-strip { margin-top:30px; }
 .section { padding-top:68px; }.section-head { grid-template-columns:1fr; gap:16px; margin-bottom:28px; }.section-head h2 { font-size:38px; }
 .bluebird-feature,.prototype-feature,.axiom-feature { padding:22px; }.bluebird-layout { grid-template-columns:1fr; gap:22px; }.bluebird-funding { padding:20px; }.bluebird-funding h4 { font-size:25px; }
 .carousel-choices button { padding:12px; }.project-card p { font-size:14px; }.prototype-slide figcaption { min-height:0; }
 .build-gallery { padding-left:20px; padding-right:20px; }.about-lead { font-size:19px; }.contact-section { padding-bottom:55px; }.contact-inner h2 { font-size:53px; }
}
@media(max-width:420px) {
 .container { padding-left:16px; padding-right:16px; }.hero-title { font-size:18vw; }.eyebrow { font-size:9px; }
 .bluebird-feature,.prototype-feature,.axiom-feature { padding:18px; }.bluebird-feature h3,.prototype-feature h3,.axiom-feature h3 { font-size:34px; }
 .work-preview { grid-template-columns:110px 1fr; }.work-preview>span { padding:15px; }.work-preview strong { font-size:19px; }
 .project-card .prototype-links .btn { width:100%; justify-content:center; }.bluebird-funding .btn { width:100%; justify-content:center; }
 .contact-actions .btn { font-size:9px; padding:14px; }.build-gallery { padding-left:16px; padding-right:16px; }
}

.funding-contact { flex: 0 1 390px; min-width: 0; }
.funding-contact>label { display: block; font-size: 12px; color: #c2c4c1; margin: 14px 0 6px; }
.funding-email-row { display: flex; flex-wrap: wrap; gap: 8px; }
.funding-email-row input { flex: 1 1 220px; min-width: 0; width: 100%; background: #303233; color: #fff; border: 1px solid #757975; padding: 10px; border-radius: 0; font: 11px var(--font-mono); }
.funding-email-row .btn { padding: 10px; font-size: 9px; }
#funding-copy-status { display: block; min-height: 18px; font: 11px var(--font-mono); margin-top: 6px; color: #e7e9e5; }
@media(max-width:800px) { .funding-contact { flex-basis: auto; width: 100%; } }

/* Chassis optimizer notes */
.feature-notes { max-width: 850px; margin-top: 18px; }
.feature-notes p { margin-bottom: 12px; }
.feature-notes strong { color: var(--text); font-weight: 600; }
