  :root{
    --blue-deep: #081B33;
    --blue-mid: #0F2C4E;
    --panel: #10294A;
    --line: rgba(210,225,245,0.16);
    --line-strong: rgba(210,225,245,0.30);
    --paper: #F3F6FA;
    --paper-dim: #9FB2CC;
    --paper-faint: #6D84A6;
    --redline: #E0503A;
    --redline-dim: rgba(224,80,58,0.35);
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'IBM Plex Sans', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --maxw: 1180px;
  }

  *{ box-sizing: border-box; }
  html{ scroll-behavior: smooth; }
  @media (prefers-reduced-motion: reduce){
    html{ scroll-behavior: auto; }
    *{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }

  body{
    margin:0;
    background: var(--blue-deep);
    color: var(--paper);
    font-family: var(--font-body);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
  }

  /* blueprint grid backdrop */
  body::before{
    content:"";
    position: fixed;
    inset:0;
    background-image:
      linear-gradient(var(--line) 1px, transparent 1px),
      linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, black 40%, transparent 90%);
  }

  a{ color: inherit; }

  .wrap{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 32px;
    position: relative;
    z-index: 1;
  }

  .eyebrow{
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    color: var(--redline);
  }

  /* NAV */
  header.nav{
    position: fixed;
    top:0; left:0; right:0;
    z-index: 50;
    backdrop-filter: blur(10px);
    background: rgba(8,27,51,0.72);
    border-bottom: 1px solid var(--line);
  }
  .nav-inner{
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 18px 32px;
    display:flex;
    align-items:center;
    justify-content: space-between;
  }
  .wordmark{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    letter-spacing: 0.04em;
    text-decoration: none;
    display:flex;
    align-items:baseline;
    gap: 8px;
  }
  .wordmark span{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-dim);
    letter-spacing: 0.1em;
    font-weight:400;
  }
  .nav-links{
    display:flex;
    gap: 32px;
    list-style:none;
    margin:0; padding:0;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
  .nav-links a{
    text-decoration:none;
    color: var(--paper-dim);
    position:relative;
    padding-bottom: 4px;
    transition: color 0.25s ease;
  }
  .nav-links a:hover{ color: var(--paper); }
  .nav-links a::after{
    content:"";
    position:absolute;
    left:0; bottom:0;
    width:0%; height:1px;
    background: var(--redline);
    transition: width 0.25s ease;
  }
  .nav-links a:hover::after{ width:100%; }

  /* HERO */
  .hero{
    padding: 190px 0 120px;
    position: relative;
  }
  .hero-tag{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--paper-dim);
    border: 1px solid var(--line-strong);
    padding: 6px 14px;
    border-radius: 2px;
    margin-bottom: 36px;
  }
  .hero-tag::before{
    content:"";
    width:6px; height:6px;
    background: var(--redline);
    display:inline-block;
  }
  h1.headline{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(40px, 7vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.01em;
    margin: 0 0 28px;
    max-width: 15ch;
  }
  h1.headline em{
    font-style: normal;
    color: var(--paper);
    position: relative;
  }
  h1.headline .accent-word{
    color: transparent;
    -webkit-text-stroke: 1.5px var(--paper);
  }
  .hero-sub{
    font-size: 19px;
    color: var(--paper-dim);
    max-width: 46ch;
    margin: 0 0 44px;
    font-weight: 400;
  }
  .sector-strip{
    display:flex;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.05em;
  }
  .sector-strip span{
    border: 1px solid var(--line-strong);
    padding: 7px 12px;
    color: var(--paper-dim);
  }

  .hero-grid{
    display:grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 40px;
    align-items: center;
  }
  @media (max-width: 900px){
    .hero-grid{ grid-template-columns: 1fr; }
    .hero-visual{ margin-top: 40px; }
  }
  .hero-ply-diagram{ width:100%; height:auto; overflow: visible; }
  .hero-visual-caption{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 15px;
    color: var(--paper-dim);
    letter-spacing: 0.01em;
    text-align: center;
    max-width: 34ch;
    margin: 4px auto 0;
    line-height: 1.35;
  }
  .hero-ply-mid{ font-family: var(--font-mono); font-size: 10px; fill: var(--paper-faint); letter-spacing: 0.06em; }
  .hero-ply-caption{ font-family: var(--font-mono); font-size: 10.5px; fill: var(--paper-faint); letter-spacing: 0.04em; }

  /* TEST DATA */
  .test-data-body{
    max-width: 78ch;
  }
  .test-data-body p{
    font-size: 16px;
    color: var(--paper-dim);
    line-height: 1.7;
    margin: 0 0 20px;
  }
  .table-caption{
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--paper);
    letter-spacing: 0.02em;
    margin: 36px 0 14px !important;
  }
  .table-wrap{
    overflow-x: auto;
    border: 1px solid var(--line-strong);
  }
  .data-table{
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: 13px;
    background: var(--blue-mid);
  }
  .data-table th, .data-table td{
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: center;
    white-space: nowrap;
  }
  .data-table thead th{
    color: var(--paper);
    font-weight: 500;
    background: rgba(255,255,255,0.03);
  }
  .data-table .stack-cell{
    text-align: left;
    color: var(--paper-dim);
    white-space: normal;
    min-width: 220px;
  }
  .data-table tbody td{
    color: var(--paper-dim);
  }
  @media (max-width: 640px){
    .data-table{ font-size: 11.5px; }
    .data-table th, .data-table td{ padding: 8px 8px; }
  }

  /* SECTION HEADS */
  .section{
    padding: 110px 0;
    border-top: 1px solid var(--line);
    position: relative;
  }
  .section-head{
    display:flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
    margin-bottom: 64px;
    flex-wrap: wrap;
  }
  .section-title{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(28px, 4vw, 42px);
    margin: 10px 0 0;
    letter-spacing: -0.01em;
  }
  .section-desc{
    max-width: 42ch;
    color: var(--paper-dim);
    font-size: 16px;
  }

  /* ARCHITECTURE / SIGNATURE DIAGRAM */
  .arch-grid{
    display:grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
  }
  @media (max-width: 900px){
    .arch-grid{ grid-template-columns: 1fr; }
  }
  .ply-copy p{
    color: var(--paper-dim);
    font-size: 16px;
    margin-bottom: 22px;
  }
  .ply-copy p strong{ color: var(--paper); font-weight: 600; }

  .ply-diagram{ width:100%; height:auto; overflow: visible; }
  .feature-figure{
    width: 100%;
    height: auto;
    display: block;
    background: #FFFFFF;
    border: 1px solid var(--line-strong);
    border-radius: 2px;
  }
  .feature-figure-caption{
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--paper-faint);
    letter-spacing: 0.02em;
    line-height: 1.5;
    margin: 14px auto 0;
    max-width: 46ch;
    text-align: center;
  }
  .ply-layer{ transition: transform 0.3s ease, filter 0.3s ease; cursor: default; }
  .ply-layer:hover{ transform: translateX(6px); filter: brightness(1.25); }
  .ply-label-group{ font-family: var(--font-mono); }
  .ply-angle{ font-size: 14px; fill: var(--paper); font-weight:500; }
  .ply-name{ font-size: 10px; fill: var(--paper-faint); letter-spacing: 0.06em; }
  .leader{ stroke: var(--redline-dim); stroke-width: 1; stroke-dasharray: 3 3; }

  /* APPLICATIONS */
  .app-grid{
    display:grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
  }
  @media (max-width: 900px){
    .app-grid{ grid-template-columns: repeat(2, 1fr); }
  }
  @media (max-width: 540px){
    .app-grid{ grid-template-columns: 1fr; }
  }
  .app-card{
    background: var(--blue-deep);
    padding: 30px 22px 26px;
    min-height: 220px;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.25s ease;
  }
  .app-card.visible{ opacity:1; transform: translateY(0); }
  .app-card:hover{ background: var(--blue-mid); }
  .app-icon{ width: 34px; height: 34px; stroke: var(--redline); fill:none; stroke-width: 1.4; margin-bottom: 20px; }
  .app-card h3{
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 10px;
  }
  .app-card p{
    font-size: 13.5px;
    color: var(--paper-dim);
    margin:0;
  }
  .app-index{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-faint);
    margin-bottom: 8px;
  }

  /* ABOUT */
  .about-grid{
    display:grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 60px;
  }
  @media (max-width: 900px){
    .about-grid{ grid-template-columns: 1fr; gap: 30px; }
  }
  .about-grid p{
    font-size: 18px;
    color: var(--paper-dim);
    max-width: 58ch;
  }
  .about-grid p strong{ color: var(--paper); font-weight: 600; }
  .spec-list{
    list-style:none;
    padding:0; margin: 30px 0 0;
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--paper-dim);
    border-top: 1px solid var(--line);
  }
  .spec-list li{
    display:flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }
  .spec-list li span:last-child{ color: var(--paper); }

  /* CONTACT / FOOTER */
  footer{
    border-top: 1px solid var(--line);
    padding: 70px 0 34px;
  }
  .footer-top{
    display:flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 60px;
  }
  .footer-cta h2{
    font-family: var(--font-display);
    font-size: clamp(24px, 3.4vw, 34px);
    font-weight: 600;
    margin: 10px 0 18px;
    max-width: 16ch;
  }
  .footer-cta p{ color: var(--paper-dim); max-width: 40ch; margin: 0 0 22px; }
  .mail-link{
    display:inline-flex;
    align-items:center;
    gap:10px;
    font-family: var(--font-mono);
    font-size: 14px;
    text-decoration:none;
    color: var(--paper);
    border-bottom: 1px solid var(--redline);
    padding-bottom: 4px;
  }
  .footer-meta{
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-faint);
    text-align: right;
  }
  .footer-bottom{
    display:flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--paper-faint);
    padding-top: 24px;
    border-top: 1px solid var(--line);
  }

  .reveal{
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible{ opacity: 1; transform: translateY(0); }

/* PUBLICATIONS */
.pub-list{
  list-style:none;
  margin: 0 0 40px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.pub-item{
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.pub-citation{
  font-size: 15.5px;
  color: var(--paper-dim);
  line-height: 1.6;
  margin: 0 0 10px;
  max-width: 72ch;
}
.pub-citation strong{ color: var(--paper); font-weight: 600; }
.pub-citation em{ font-style: italic; color: var(--paper-dim); }
.pub-doi{
  display:inline-flex;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--redline);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.pub-doi:hover{ border-bottom-color: var(--redline); }
.pub-forthcoming{
  color: var(--paper-faint);
  cursor: default;
}
.blog-hero{
  padding: 170px 0 70px;
}
.blog-hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.5vw, 56px);
  margin: 10px 0 16px;
  letter-spacing: -0.01em;
}
.blog-hero p{
  color: var(--paper-dim);
  font-size: 17px;
  max-width: 50ch;
  margin: 0;
}

.post-list{
  list-style:none;
  margin: 0 0 120px;
  padding: 0;
  border-top: 1px solid var(--line);
}
.post-row{
  display:flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.post-row:hover .post-row-title{ color: var(--redline); }
.post-row-left{ display:flex; align-items:baseline; gap: 22px; }
.post-date{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-faint);
  min-width: 90px;
}
.post-row-title{
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  transition: color 0.2s ease;
}
.post-row-arrow{
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--paper-faint);
  white-space: nowrap;
}

/* BLOG POST / ARTICLE */
.post-hero{
  padding: 170px 0 60px;
  border-bottom: 1px solid var(--line);
}
.post-hero h1{
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 5vw, 50px);
  margin: 14px 0 20px;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.post-meta{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-faint);
  letter-spacing: 0.05em;
}
.post-body{
  max-width: 68ch;
  padding: 70px 0 120px;
  font-size: 17px;
  color: var(--paper-dim);
}
.post-body p{ margin: 0 0 24px; }
.post-body h2{
  font-family: var(--font-display);
  color: var(--paper);
  font-size: 26px;
  font-weight: 600;
  margin: 48px 0 18px;
}
.post-body strong{ color: var(--paper); font-weight: 600; }
.post-body a{ color: var(--paper); border-bottom: 1px solid var(--redline); text-decoration: none; }
.back-link{
  display:inline-flex;
  align-items:center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-dim);
  text-decoration: none;
  margin-bottom: 26px;
}
.back-link:hover{ color: var(--paper); }
.photo-pending{
  border: 1px dashed var(--line-strong);
  padding: 40px 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--paper-faint);
  letter-spacing: 0.04em;
}
.post-image{
  width: 100%;
  height: auto;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  margin: 8px 0 8px;
  display: block;
}
.photo-caption{
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--paper-faint);
  letter-spacing: 0.02em;
  margin: 0 0 24px !important;
}
