/* fuel-cell-bundle.css v0.9.4: global styles + detail styles */

* { box-sizing: border-box; }

:root {
  --bg: #0b0d10;
  --bg-soft: #12161b;
  --panel: #171c22;
  --text: #f3f6f8;
  --muted: #9aa6b2;
  --line: #26303a;
  --accent: #55b8ff;
  --accent-soft: rgba(85, 184, 255, 0.12);
  --max-width: 1180px;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(11, 13, 16, 0.86);
  backdrop-filter: blur(16px);
}

.nav-wrap {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-weight: 720;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #62717f;
  font-size: 13px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: #62717f;
  padding: 4px 3px;
  cursor: pointer;
}

.lang-btn.active,
.lang-btn:hover {
  color: var(--accent);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 74px 0 76px;
  background:
    radial-gradient(circle at 78% 26%, rgba(85,184,255,0.12), transparent 28%),
    radial-gradient(circle at 18% 86%, rgba(85,184,255,0.06), transparent 20%),
    linear-gradient(180deg, #0b0d10 0%, #0d1115 100%);
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  opacity: .25;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.8), transparent 92%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(330px, .65fr);
  gap: 76px;
  align-items: center;
}

.eyebrow,
.section-kicker,
.project-type {
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 720;
}

h1 {
  margin: 14px 0 22px;
  font-size: clamp(50px, 6.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero-sub {
  margin: 0 0 18px;
  font-size: clamp(18px, 2vw, 24px);
  color: #e3ebf1;
  max-width: 860px;
  font-weight: 550;
}

.hero-desc {
  max-width: 790px;
  color: var(--muted);
  font-size: 16px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 650;
}

.button.primary {
  background: var(--accent);
  color: #071018;
  border-color: var(--accent);
}

.button.secondary:hover { border-color: #4e5d6a; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.meta-item { display: grid; gap: 3px; }
.meta-label { color: #61717f; font-size: 11px; letter-spacing: .08em; }
.meta-value { color: #b8c4ce; font-size: 13px; }

.hero-visual {
  display: flex;
  justify-content: flex-end;
}

.visual-frame {
  width: min(100%, 410px);
  aspect-ratio: 0.92;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012));
  box-shadow: 0 28px 90px rgba(0,0,0,.30);
  overflow: hidden;
}

.visual-caption {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  color: #71808d;
  font-size: 10px;
  letter-spacing: .15em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(85,184,255,.75);
}

.orbital-map {
  position: relative;
  height: calc(100% - 96px);
  min-height: 360px;
}

.orbit {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(85,184,255,.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-1 { width: 42%; aspect-ratio: 1; }
.orbit-2 { width: 68%; aspect-ratio: 1; }
.orbit-3 { width: 92%; aspect-ratio: 1; }

.core {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 128px;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(85,184,255,.22), rgba(85,184,255,.07) 52%, rgba(11,13,16,.88) 72%);
  border: 1px solid rgba(85,184,255,.33);
  box-shadow: 0 0 65px rgba(85,184,255,.12);
}

.core-cn { font-size: 17px; font-weight: 720; }
.core small { color: #7d8d99; font-size: 9px; }

.node {
  position: absolute;
  width: 110px;
  padding: 10px 12px;
  border: 1px solid rgba(85,184,255,.20);
  border-radius: 10px;
  background: rgba(15,19,24,.92);
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

.node strong {
  display: block;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .08em;
}

.node span {
  display: block;
  color: #8998a4;
  font-size: 10px;
}

.node-a { left: 6%; top: 17%; }
.node-b { right: 4%; top: 24%; }
.node-c { left: 8%; bottom: 15%; }
.node-d { right: 5%; bottom: 13%; }

.visual-foot {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid var(--line);
  color: #586774;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 20px;
  z-index: 3;
  transform: translateX(-50%);
  color: #5d6b77;
  font-size: 10px;
  letter-spacing: .1em;
  display: grid;
  justify-items: center;
  gap: 6px;
}

.scroll-hint i {
  width: 1px;
  height: 22px;
  background: linear-gradient(var(--accent), transparent);
}

.section { padding: 92px 0; }
.section-alt { background: var(--bg-soft); }

.two-col {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 70px;
}

h2 {
  margin: 8px 0 18px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.body-copy { color: var(--muted); font-size: 17px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 34px;
}

.section-note {
  max-width: 430px;
  color: var(--muted);
  font-size: 14px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.project-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  transition: transform .2s ease, border-color .2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: #3b4c5a;
}

.project-index { color: #52606d; font-size: 13px; margin-bottom: 36px; }

.project-card h3 {
  margin: 8px 0 12px;
  font-size: 24px;
  line-height: 1.2;
}

.project-card p { color: var(--muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.tags span {
  border: 1px solid var(--line);
  background: var(--accent-soft);
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 12px;
  color: #bddff5;
}

.visualization-section {
  background:
    radial-gradient(circle at 82% 12%, rgba(85,184,255,.10), transparent 24%),
    #0e1216;
}

.visual-placeholder {
  min-height: 440px;
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex;
  align-items: end;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(85,184,255,.04), rgba(255,255,255,.01)),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255,255,255,.025) 63px),
    repeating-linear-gradient(0deg, transparent 0 62px, rgba(255,255,255,.025) 63px);
}

.visual-placeholder h3 {
  margin: 10px 0 6px;
  font-size: 28px;
}

.visual-placeholder p { color: var(--muted); }
.placeholder-index { color: var(--accent); font-size: 11px; letter-spacing: .14em; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px;
  margin-top: 34px;
}

.skill-block {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.skill-block h3 { margin: 0 0 8px; font-size: 20px; }
.skill-block p, .contact-section p { color: var(--muted); }

.contact-section {
  background:
    radial-gradient(circle at 20% 20%, rgba(85,184,255,.1), transparent 26%),
    var(--bg-soft);
}

.contact-wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 60px;
  align-items: start;
}

.contact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}

.footer {
  padding: 28px 0 44px;
  color: #687684;
  font-size: 13px;
}

@media (max-width: 930px) {
  .nav { display: none; }
  .hero { min-height: auto; padding-top: 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 46px; }
  .hero-visual { justify-content: flex-start; }
  .visual-frame { width: 100%; max-width: 560px; aspect-ratio: 1.25; }
  .orbital-map { min-height: 380px; }
  .two-col, .contact-wrap { grid-template-columns: 1fr; gap: 36px; }
  .project-grid, .skill-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .nav-wrap { min-height: 60px; }
  .brand { font-size: 13px; }
  .hero { padding: 58px 0 64px; }
  h1 { font-size: 44px; }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .hero-meta { display: grid; gap: 14px; }
  .visual-frame { aspect-ratio: .9; }
  .orbital-map { min-height: 390px; }
  .node { width: 98px; padding: 8px 9px; }
  .section { padding: 68px 0; }
  .project-card { min-height: 0; }
  .scroll-hint { display: none; }
}


/* ==========================================================
   v0.3 HERO OVERRIDE — right-side industrial render
   ========================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  background: rgba(11, 13, 16, 0.58);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 0;
  background: #0b0d10;
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .20;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.026) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to right, #000 0 43%, transparent 77%);
}

.hero-media {
  position: absolute;
  z-index: 0;
  right: 0;
  top: 0;
  width: 61vw;
  height: 100%;
  overflow: hidden;
  background: #111;
}

.hero-media-blur {
  position: absolute;
  inset: -34px;
  background: url("assets/images/hero-industrial-render.webp?v=085") center center / cover no-repeat;
  filter: blur(30px) brightness(.58) saturate(.88);
  transform: scale(1.10);
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 75% center;
}

.hero-media-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      #0b0d10 0%,
      rgba(11,13,16,.96) 8%,
      rgba(11,13,16,.74) 24%,
      rgba(11,13,16,.25) 44%,
      rgba(11,13,16,.04) 69%,
      rgba(11,13,16,.08) 100%),
    linear-gradient(180deg, rgba(11,13,16,.34), transparent 18%, transparent 80%, rgba(11,13,16,.38));
}

.hero-content {
  position: relative;
  z-index: 4;
  padding-top: 68px;
}

.hero-copy {
  position: relative;
  width: min(810px, 66vw);
  padding: 50px 34px 50px 0;
}

.hero-glass { display: none !important; }

.hero h1 {
  margin: 0 0 24px;
  max-width: 830px;
  font-size: clamp(58px, 5.8vw, 90px);
  line-height: 1.03;
  letter-spacing: -.052em;
  text-shadow: 0 3px 30px rgba(0,0,0,.58);
}

.hero .hero-sub {
  margin: 0;
  max-width: 760px;
  color: #dce6ed;
  font-size: clamp(18px, 1.55vw, 23px);
  font-weight: 520;
  text-shadow: 0 2px 20px rgba(0,0,0,.66);
}

.hero-sub-list {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  width: fit-content;
  max-width: 620px;
}

.hero-sub-item {
  display: grid;
  grid-template-columns: 14px auto;
  align-items: center;
  column-gap: 10px;
  color: #dce6ed;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 520;
  line-height: 1.45;
  text-shadow: 0 2px 20px rgba(0,0,0,.66);
}

.hero-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(85,184,255,.38);
}

.hero .hero-actions {
  margin-top: 34px;
}

.hero .button.secondary {
  background: rgba(11,13,16,.28);
}

@media (max-width: 930px) {
  .hero {
    min-height: 900px;
    align-items: flex-end;
  }
  .hero-media {
    width: 100%;
    height: 57%;
    top: 0;
  }
  .hero-media img {
    object-fit: cover;
  
  object-position: 75% center;
}
  .hero-media-fade {
    background: linear-gradient(180deg,
      rgba(11,13,16,.06),
      rgba(11,13,16,.22) 42%,
      #0b0d10 96%);
  }
  .hero-content {
    padding: 0 0 78px;
  }
  .hero-copy {
    width: 100%;
    padding: 34px 0;
  }
  .hero-glass { display: none !important; }
  .hero h1 {
    font-size: clamp(50px, 9vw, 74px);
  }
}

@media (max-width: 560px) {
  .hero { min-height: 820px; }
  .hero-media { height: 50%; }
  .hero h1 { font-size: 47px; }
  .hero .hero-sub { font-size: 17px; }
}


/* v0.3.1 requested refinements */
.scroll-hint-minimal {
  gap: 0;
  width: 20px;
  height: 34px;
}
.scroll-hint-minimal i {
  height: 26px;
}
@media (max-width: 560px) {
  .hero-sub-list { gap: 6px; }
  .hero-sub-item { font-size: 16px; }
}


/* v0.3.2 final hero text refinement */
.hero-capability-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
  width: max-content;
  max-width: 100%;
}

.hero-capability-item {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #dfe8ee;
  font-size: clamp(17px, 1.35vw, 21px);
  font-weight: 520;
  line-height: 1.45;
  letter-spacing: .02em;
  text-shadow: 0 2px 18px rgba(0,0,0,.58);
  border: 0 !important;
  min-height: 0 !important;
}

.hero-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(85,184,255,.35);
}

.capability-line,
.capability-no {
  display: none !important;
}

/* Do not render the previous glass rectangle behind the hero copy. */
.hero-glass {
  display: none !important;
}

/* Keep the image full-height, undistorted, and biased toward the right side. */
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: 75% center !important;
}


/* ==========================================================
   v0.5 — broader capability map + profile / education section
   ========================================================== */

.hero-skill-list {
  display: grid;
  gap: 11px;
  margin-top: 4px;
  width: fit-content;
  max-width: min(620px, 100%);
}

.hero-skill-item {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  align-items: start;
  column-gap: 11px;
  color: #e7eef3;
  text-shadow: 0 2px 20px rgba(0,0,0,.66);
}

.hero-skill-item .hero-bullet {
  margin-top: 8px;
  width: 7px;
  height: 7px;
}

.hero-skill-item strong {
  display: block;
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: .015em;
}

.hero-skill-item small {
  display: block;
  margin-top: 1px;
  color: #91a0ac;
  font-size: clamp(11px, .82vw, 13px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: .015em;
}

.hero-sub-list {
  display: none !important;
}

/* About / profile */
.about-profile {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 10%, rgba(85,184,255,.055), transparent 25%),
    var(--bg);
}

.about-profile::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image:
    linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 78%, transparent);
}

.about-profile .container {
  position: relative;
  z-index: 1;
}

.profile-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 44px;
}

.profile-name {
  margin: 4px 0 5px;
  font-size: clamp(48px, 6vw, 78px);
  line-height: 1;
  letter-spacing: -.05em;
}

.profile-role {
  margin: 0;
  color: #aab6c0;
  font-size: 16px;
  letter-spacing: .025em;
}

.profile-grid {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 18px;
}

.profile-panel {
  min-height: 395px;
  padding: 28px 30px 30px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.010)),
    rgba(13,17,21,.68);
}

.panel-head {
  display: flex;
  align-items: baseline;
  gap: 13px;
  padding-bottom: 19px;
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.panel-index {
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .13em;
}

.panel-head h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 680;
  letter-spacing: -.015em;
}

.timeline {
  margin-top: 4px;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 15px;
  padding: 24px 0;
}

.timeline-item:not(:last-child) {
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.timeline-mark {
  position: relative;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(85,184,255,.33);
}

.timeline-item h4 {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 650;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.achievement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 22px;
}

.achievement-stat,
.achievement-text {
  min-height: 120px;
  padding: 18px 19px;
  border: 1px solid rgba(255,255,255,.065);
  border-radius: 12px;
  background: rgba(255,255,255,.018);
}

.achievement-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.achievement-stat strong {
  color: var(--accent);
  font-size: 43px;
  line-height: 1;
  letter-spacing: -.045em;
}

.achievement-stat span {
  color: #c6d0d8;
  font-size: 13px;
  line-height: 1.45;
}

.achievement-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.achievement-text strong {
  color: #e7edf2;
  font-size: 16px;
  font-weight: 650;
}

.achievement-text span {
  margin-top: 5px;
  color: #7f8d98;
  font-size: 12px;
  letter-spacing: .05em;
}

.achievement-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid rgba(255,255,255,.07);
  color: #8996a1;
  font-size: 12px;
}

.achievement-foot span::before {
  content: "·";
  margin-right: 7px;
  color: var(--accent);
}

@media (max-width: 930px) {
  .hero-skill-list {
    max-width: 100%;
  }

  .profile-grid {
    grid-template-columns: 1fr;
  }

  .profile-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .hero-skill-list {
    gap: 8px;
  }

  .hero-skill-item strong {
    font-size: 15px;
  }

  .hero-skill-item small {
    font-size: 11px;
  }

  .profile-heading {
    margin-bottom: 28px;
  }

  .profile-name {
    font-size: 48px;
  }

  .profile-panel {
    padding: 22px 20px;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .achievement-stat,
  .achievement-text {
    min-height: 94px;
  }
}


/* ==========================================================
   v0.5.1 — About section hierarchy refinement
   ========================================================== */

.profile-heading {
  margin-bottom: 34px;
}

.profile-role {
  display: none !important;
}

.panel-head {
  gap: 0;
  padding-bottom: 20px;
}

.panel-index {
  display: none !important;
}

.panel-head h3 {
  font-size: clamp(25px, 2.1vw, 32px);
  font-weight: 720;
  letter-spacing: -.025em;
}

.timeline-item h4 {
  font-size: 18px;
  font-weight: 680;
}

.timeline-item p {
  color: #9ba8b2;
  font-size: 13px;
  line-height: 1.55;
}

.research-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-top: 22px;
}

.research-card {
  min-height: 150px;
  padding: 20px 21px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 13px;
  background: rgba(255,255,255,.018);
  color: inherit;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.publication-card:hover {
  transform: translateY(-2px);
  border-color: rgba(85,184,255,.38);
  background: rgba(85,184,255,.035);
}

.research-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.research-card-top strong {
  color: var(--accent);
  font-size: 46px;
  line-height: .95;
  letter-spacing: -.05em;
}

.external-mark {
  color: #7892a4;
  font-size: 18px;
}

.research-label {
  display: block;
  margin-top: 15px;
  color: #e4ebf0;
  font-size: 16px;
  font-weight: 650;
}

.research-note {
  display: block;
  margin-top: 5px;
  color: #7f8c97;
  font-size: 11px;
  line-height: 1.45;
}

.honor-block {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.honor-block h4 {
  margin: 0 0 13px;
  color: #dce5eb;
  font-size: 16px;
  font-weight: 650;
}

.honor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.honor-list li {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  padding-left: 14px;
  color: #aeb9c1;
  font-size: 13px;
  line-height: 1.55;
}

.honor-list li::before {
  content: "·";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--accent);
  font-size: 18px;
  line-height: 1;
}

.honor-list em {
  color: #71808b;
  font-size: 11px;
  font-style: normal;
  letter-spacing: .04em;
}

.achievement-grid,
.achievement-foot {
  display: none !important;
}

@media (max-width: 560px) {
  .research-stats {
    grid-template-columns: 1fr;
  }

  .panel-head h3 {
    font-size: 25px;
  }
}


/* ==========================================================
   v0.5.2 — About section layout refinement
   ========================================================== */

/* Make the right card wider and left card narrower */
.profile-grid {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: start;
}

/* Ensure same hierarchy and same font size for section headings */
.panel-head h3 {
  font-size: clamp(28px, 2.15vw, 32px) !important;
  font-weight: 720;
  line-height: 1.15;
}

/* Education card should not leave large blank space at the bottom */
.education-panel {
  min-height: auto !important;
}

.education-panel .timeline {
  margin-top: 6px;
}

.education-panel .timeline-item {
  padding: 22px 0;
}

.education-panel .timeline-item:last-child {
  padding-bottom: 0;
}

/* Keep research panel naturally taller if honor list is longer */
.achievement-panel {
  min-height: auto !important;
}

/* Two-column honor list */
.honor-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  row-gap: 10px;
  align-items: start;
}

.honor-list li {
  display: block;
  padding-left: 14px;
  min-height: 0;
}

/* Give the research side a bit more breathing room */
.research-stats {
  margin-top: 24px;
  margin-bottom: 2px;
}

.honor-block {
  margin-top: 18px;
}

/* Slightly larger school names to reinforce hierarchy */
.timeline-item h4 {
  font-size: 19px;
}

.timeline-item p {
  font-size: 14px;
  line-height: 1.6;
}

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

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


/* ==========================================================
   v0.5.3 — equal-height profile cards, compact honors, resume
   ========================================================== */

/* Equal height cards on desktop */
.profile-grid {
  grid-template-columns: 0.88fr 1.12fr;
  align-items: stretch !important;
}

.profile-panel {
  height: 100%;
}

/* Use the full education-card height without leaving a dead bottom area */
.education-panel {
  display: flex;
  flex-direction: column;
}

.education-panel .timeline {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  margin-top: 4px;
}

.education-panel .timeline-item {
  flex: 0 0 auto;
}

/* Name row + resume button */
.profile-heading {
  align-items: center;
}

.resume-download {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px;
  background: rgba(255,255,255,.018);
  color: #dce6ed;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .02em;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.resume-download:hover {
  transform: translateY(-1px);
  border-color: rgba(85,184,255,.42);
  background: rgba(85,184,255,.045);
}

.resume-download-icon {
  color: var(--accent);
  font-size: 16px;
}

/* Featured awards remain visible; others are collapsed by default */
.honor-featured {
  margin-top: 0;
}

.honor-details {
  margin-top: 14px;
  border-top: 1px solid rgba(255,255,255,.065);
  padding-top: 12px;
}

.honor-details summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  list-style: none;
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
  user-select: none;
}

.honor-details summary::-webkit-details-marker {
  display: none;
}

.honor-details .less-label {
  display: none;
}

.honor-details[open] .more-label {
  display: none;
}

.honor-details[open] .less-label {
  display: inline;
}

.details-arrow {
  display: inline-block;
  line-height: 1;
  transition: transform .18s ease;
}

.honor-details[open] .details-arrow {
  transform: rotate(45deg);
}

.honor-extra {
  margin-top: 14px;
  padding-top: 2px;
}

.honor-list {
  grid-template-columns: repeat(2, minmax(0,1fr));
  column-gap: 26px;
  row-gap: 9px;
}

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

  .profile-panel {
    height: auto;
  }

  .education-panel .timeline {
    display: block;
  }
}

@media (max-width: 700px) {
  .profile-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .honor-list {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================
   v0.5.4 — About section final divider / expand-link cleanup
   ========================================================== */

/* Only keep the divider directly below each main subsection title */
.panel-head {
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
}

/* Remove all other internal horizontal divider lines */
.education-panel .timeline-item,
.education-panel .timeline-item:not(:last-child) {
  border: 0 !important;
}

.honor-block {
  border-top: 0 !important;
  padding-top: 0 !important;
}

.honor-details {
  border: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.honor-extra {
  border: 0 !important;
  padding-top: 0 !important;
}

/* Featured awards stay in two columns.
   The expand link is explicitly placed under the Fischertechnik item. */
.honor-featured {
  position: relative;
}

.honor-featured > li:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.honor-featured > li:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.honor-featured > li:nth-child(3) {
  grid-column: 1;
  grid-row: 2;
}

.honor-featured > li:nth-child(4) {
  grid-column: 2;
  grid-row: 2;
}

.honor-featured > li:nth-child(5) {
  grid-column: 1;
  grid-row: 3;
}

.honor-featured > li.honor-more-row {
  grid-column: 2;
  grid-row: 3;
  padding-left: 14px !important;
  align-self: start;
}

.honor-more-row::before {
  display: none !important;
}

.honor-more-row .honor-details {
  width: 100%;
}

.honor-more-row summary {
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Keep expanded awards clean; no divider line */
.honor-more-row .honor-extra {
  margin-top: 13px !important;
}

/* On smaller screens revert to normal one-column flow */
@media (max-width: 700px) {
  .honor-featured > li:nth-child(n),
  .honor-featured > li.honor-more-row {
    grid-column: 1;
    grid-row: auto;
  }
}


/* ==========================================================
   v0.5.6 — restore v0.5.4 toggle position without the bugs
   ========================================================== */

/* Closed state: natural equal-height cards, no hard-coded 650px blank space. */
.profile-grid {
  align-items: stretch !important;
}

.profile-panel,
.education-panel,
.achievement-panel {
  height: auto !important;
  min-height: 0 !important;
}

/* When honors are expanded, only the right panel is allowed to grow.
   JS freezes the left panel at its pre-expand height. */
.profile-grid.honors-expanded {
  align-items: start !important;
}

/* Restore the exact v0.5.4 toggle placement:
   right column, row 3, immediately below the Fischertechnik award. */
.honor-featured > li.honor-more-row {
  grid-column: 2 !important;
  grid-row: 3 !important;
  padding-left: 14px !important;
  align-self: start;
}

.honor-more-row::before {
  display: none !important;
}

.honor-toggle {
  appearance: none;
  border: 0;
  background: transparent;
  margin: 0;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  text-align: left;
}

.honor-toggle .less-label {
  display: none;
}

.honor-toggle[aria-expanded="true"] .more-label {
  display: none;
}

.honor-toggle[aria-expanded="true"] .less-label {
  display: inline;
}

.honor-toggle[aria-expanded="true"] .details-arrow {
  transform: rotate(45deg);
}

/* Expanded content is OUTSIDE the half-width grid cell and therefore
   gets the full research-panel width before splitting into two columns. */
.honor-extra-panel {
  width: 100%;
  margin-top: 18px;
  border: 0 !important;
  padding: 0;
}

.honor-extra-panel[hidden] {
  display: none !important;
}

.honor-extra-panel .honor-extra {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  column-gap: 34px !important;
  row-gap: 10px;
  margin: 0;
  padding: 0;
}

.honor-extra-panel .honor-extra li {
  min-width: 0;
}

/* The old details styles no longer participate in this layout. */
.honor-details {
  display: none !important;
}

@media (max-width: 1100px) {
  .profile-grid,
  .profile-grid.honors-expanded {
    align-items: start !important;
  }

  .education-panel {
    height: auto !important;
  }
}

@media (max-width: 700px) {
  .honor-featured > li.honor-more-row {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .honor-extra-panel .honor-extra {
    grid-template-columns: 1fr !important;
  }
}


/* ==========================================================
   v0.6.0 — Engineering Projects showcase
   ========================================================== */

.projects-showcase {
  position: relative;
  overflow: hidden;
}

.projects-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 75% 6%, rgba(85,184,255,.055), transparent 26%),
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 9%, #000 92%, transparent);
}

.projects-showcase .container {
  position: relative;
  z-index: 1;
}

.projects-head {
  margin-bottom: 34px;
}

.projects-summary {
  max-width: 480px;
}

.projects-layout {
  display: grid;
  gap: 18px;
}

/* ---- Large feature projects ---- */

.project-feature {
  display: grid;
  overflow: hidden;
  min-height: 510px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(12,16,20,.72);
}

.project-feature-primary {
  grid-template-columns: .94fr 1.06fr;
}

.project-feature-secondary {
  grid-template-columns: 1.10fr .90fr;
  min-height: 430px;
}

.project-feature-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 4vw, 54px);
}

.project-topline,
.project-compact-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.project-no {
  color: var(--accent);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: .13em;
}

.project-status {
  color: #7f8d98;
  font-size: 11px;
  letter-spacing: .035em;
}

.project-feature h3 {
  margin: 20px 0 13px;
  max-width: 650px;
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.project-lead {
  max-width: 660px;
  margin: 0;
  color: #aeb9c2;
  font-size: 14px;
  line-height: 1.75;
}

.project-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.project-flow span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 8px;
  background: rgba(255,255,255,.018);
  color: #d7e0e7;
  font-size: 11px;
}

.project-flow b {
  color: #556570;
  font-weight: 400;
}

.project-feature .tags,
.project-card-rich .tags,
.project-compact .tags {
  margin-top: 24px;
}

/* ---- Media treatment ---- */

.project-media,
.project-rich-media {
  position: relative;
  overflow: hidden;
  min-height: 100%;
  background:
    radial-gradient(circle at 72% 32%, rgba(85,184,255,.16), transparent 29%),
    linear-gradient(135deg, #111920, #0b1015 60%, #10171d);
}

.project-media::after,
.project-rich-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(85,184,255,.035) 49%, transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.025), transparent 35%, rgba(0,0,0,.18));
}

.media-grid {
  position: absolute;
  inset: 0;
  opacity: .38;
  background-image:
    linear-gradient(rgba(85,184,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(85,184,255,.08) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at 65% 45%, #000 0 42%, transparent 78%);
}

.media-corner {
  position: absolute;
  z-index: 2;
  top: 25px;
  right: 27px;
  color: rgba(205,220,230,.42);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
}

.media-content {
  position: absolute;
  z-index: 2;
  left: clamp(28px, 4vw, 50px);
  right: clamp(28px, 4vw, 50px);
  bottom: clamp(35px, 5vw, 58px);
}

.media-eyebrow {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .13em;
}

.media-content strong {
  display: block;
  max-width: 650px;
  margin-top: 10px;
  color: #e9f0f4;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}

.media-content p {
  max-width: 560px;
  margin: 10px 0 0;
  color: #788995;
  font-size: 12px;
  line-height: 1.55;
}

.project-media-primary {
  min-height: 510px;
}

.project-media-cfd {
  min-height: 430px;
}

.media-metric-row {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 8px;
}

.project-media-cfd .media-content {
  bottom: 130px;
}

.media-metric-row > div {
  padding: 14px 15px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 10px;
  background: rgba(8,12,15,.55);
  backdrop-filter: blur(8px);
}

.media-metric-row strong {
  display: block;
  color: #dce8ef;
  font-size: 19px;
  line-height: 1;
}

.media-metric-row span {
  display: block;
  margin-top: 6px;
  color: #71818c;
  font-size: 9px;
  letter-spacing: .04em;
}

/* ---- Media-rich pair ---- */

.project-media-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.project-card-rich {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(12,16,20,.72);
}

.project-rich-media {
  min-height: 285px;
}

.project-rich-media .project-no {
  position: absolute;
  z-index: 3;
  top: 22px;
  left: 24px;
}

.video-badge {
  position: absolute;
  z-index: 3;
  top: 20px;
  right: 21px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  border: 1px solid rgba(85,184,255,.20);
  border-radius: 999px;
  background: rgba(8,13,17,.50);
  color: #a8cfe7;
  font-size: 10px;
  backdrop-filter: blur(8px);
}

.play-icon {
  color: var(--accent);
  font-size: 8px;
}

.project-rich-media-title {
  position: absolute;
  z-index: 3;
  left: 24px;
  right: 24px;
  bottom: 24px;
  color: #dce6ed;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -.015em;
}

.project-rich-copy {
  padding: 27px 28px 30px;
}

.project-rich-copy .project-type {
  margin: 0 0 10px;
  color: #6f818d;
  font-size: 10px;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.project-rich-copy h3,
.project-compact h3 {
  margin: 0;
  color: #e9eef2;
  font-size: 23px;
  line-height: 1.25;
  letter-spacing: -.025em;
}

.project-rich-copy > p:not(.project-type),
.project-compact > p {
  margin: 12px 0 0;
  color: #909faa;
  font-size: 13px;
  line-height: 1.68;
}

/* ---- Compact engineering cases ---- */

.project-compact-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}

.project-compact {
  min-height: 270px;
  padding: 27px 29px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.018), transparent 55%),
    rgba(12,16,20,.68);
}

.compact-arrow {
  color: #5f7482;
  font-size: 16px;
}

.project-compact h3 {
  margin-top: 32px;
}

/* ---- Hover only as subtle evidence of future click-through ---- */

.project-feature,
.project-card-rich,
.project-compact {
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.project-feature:hover,
.project-card-rich:hover,
.project-compact:hover {
  border-color: rgba(85,184,255,.23);
}

/* ---- Responsive ---- */

@media (max-width: 980px) {
  .project-feature-primary,
  .project-feature-secondary {
    grid-template-columns: 1fr;
  }

  .project-feature-secondary .project-media {
    order: 2;
  }

  .project-media-pair,
  .project-compact-row {
    grid-template-columns: 1fr;
  }

  .project-media-primary,
  .project-media-cfd {
    min-height: 400px;
  }
}

@media (max-width: 620px) {
  .project-feature-copy {
    padding: 29px 23px;
  }

  .project-feature h3 {
    font-size: 30px;
  }

  .project-flow {
    gap: 6px;
  }

  .project-media-primary,
  .project-media-cfd {
    min-height: 330px;
  }

  .media-content {
    left: 23px;
    right: 23px;
    bottom: 30px;
  }

  .project-media-cfd .media-content {
    bottom: 125px;
  }

  .media-metric-row {
    left: 20px;
    right: 20px;
    grid-template-columns: repeat(3, 1fr);
  }

  .project-rich-copy,
  .project-compact {
    padding-left: 22px;
    padding-right: 22px;
  }
}


/* ==========================================================
   v0.6.1 — real core-project media + detail-page entry
   ========================================================== */

.project-topline:empty {
  display: none;
}

.project-media-real {
  background: #11161a;
}

.project-real-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 48% center;
}

.project-real-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9,13,16,.18), transparent 35%),
    linear-gradient(180deg, transparent 52%, rgba(7,10,13,.78) 100%);
}

.project-real-caption {
  position: absolute;
  z-index: 3;
  left: 30px;
  right: 30px;
  bottom: 27px;
}

.project-real-caption strong {
  display: block;
  color: #f0f4f6;
  font-size: 21px;
  line-height: 1.2;
}

.project-real-caption span {
  display: block;
  margin-top: 7px;
  color: #a3b1bb;
  font-size: 11px;
  letter-spacing: .05em;
}

.project-detail-link {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(85,184,255,.38);
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.project-detail-link:hover {
  border-bottom-color: var(--accent);
}

/* Hide obsolete micro-title containers if empty. */
.project-topline {
  min-height: 0;
}


/* ==========================================================
   v0.6.2 — Core project overview image correction
   ========================================================== */
.project-feature-primary {
  grid-template-columns: .76fr 1.24fr !important;
  min-height: 430px !important;
}
.project-media-primary { min-height: 430px !important; }
.project-media-real {
  padding: 14px;
  background: #0e1317 !important;
}
.project-overview-image-stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #f7f7f4;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 7px;
}
.project-overview-image-stage .project-real-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3px;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
}
.project-real-fade,
.project-real-caption { display: none !important; }
@media (max-width: 980px) {
  .project-feature-primary { grid-template-columns: 1fr !important; }
  .project-media-primary { min-height: 360px !important; }
}


/* v0.6.4 — fuel-cell overview image uses exact white background */
.project-overview-image-stage,
.project-media-real {
  background: #ffffff !important;
}


/* ==========================================================
   v0.6.9 — homepage core-project one-shot stacking animation
   ========================================================== */

.project-media-video {
  position: relative;
  overflow: hidden;
  background: #0b1014 !important;
}

.project-overview-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: #0b1014;
}

.project-video-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,10,13,.16), transparent 18%),
    linear-gradient(180deg, transparent 75%, rgba(7,10,13,.10));
}

/* The old image/caption treatment is not used by the core project in v0.6.9. */
.project-media-video .project-real-caption,
.project-media-video .project-real-fade,
.project-media-video .project-real-image {
  display: none !important;
}

/* ==========================================================
   v0.7.0 — remaining engineering projects, final showcase
   ========================================================== */

.project-evidence,
.project-mini-card {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.085);
  border-radius: 22px;
  background: #0f1418;
  box-shadow: 0 1px 0 rgba(255,255,255,.015) inset;
}

.project-evidence {
  display: grid;
  min-height: 500px;
}

.project-evidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 4.2vw, 58px);
}

.project-evidence-copy h3 {
  margin: 0;
  color: #f1f5f7;
  font-size: clamp(31px, 3.1vw, 46px);
  line-height: 1.1;
  letter-spacing: -.04em;
  text-wrap: balance;
}

.project-evidence-copy > p {
  max-width: 620px;
  margin: 18px 0 0;
  color: #a5b2bb;
  font-size: 15px;
  line-height: 1.78;
}

.project-evidence .tags,
.project-mini-card .tags {
  margin-top: 26px;
}

.project-evidence-media,
.bubble-media-suite,
.welding-media-suite {
  min-width: 0;
}

.project-showcase-video,
.bubble-video-tile video,
.welding-main video,
.venturi-media video {
  display: block;
  width: 100%;
  height: 100%;
}

/* ---- 02 / Wind ---- */
.project-wind {
  grid-template-columns: minmax(0,1.12fr) minmax(390px,.88fr);
}

.wind-media {
  position: relative;
  min-height: 520px;
  background: #10161a;
}

.wind-media .project-showcase-video {
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: center center;
}

.wind-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 68%, rgba(9,13,16,.16)),
    linear-gradient(180deg, transparent 72%, rgba(9,13,16,.20));
}

.wind-context-inset {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 24px;
  width: min(31%, 235px);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,0,0,.38);
  outline: 1px solid rgba(255,255,255,.16);
}

.project-stat-line {
  display: grid;
  grid-template-columns: .85fr .65fr 1.5fr;
  gap: 18px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.075);
}

.project-stat-line strong {
  display: block;
  color: #eef4f7;
  font-size: 24px;
  line-height: 1.05;
  letter-spacing: -.025em;
}

.project-stat-line span {
  display: block;
  margin-top: 7px;
  color: #71818c;
  font-size: 11px;
  letter-spacing: .035em;
}

/* ---- 03 / Bubbling humidification ---- */
.project-bubble {
  grid-template-columns: minmax(360px,.78fr) minmax(0,1.22fr);
}

.project-proof-points {
  display: grid;
  gap: 9px;
  margin-top: 30px;
}

.project-proof-points span {
  position: relative;
  padding-left: 17px;
  color: #c5d0d7;
  font-size: 13px;
  line-height: 1.5;
}

.project-proof-points span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.bubble-media-suite {
  display: grid;
  grid-template-rows: minmax(0,1fr) 170px;
  gap: 12px;
  padding: 18px 18px 18px 0;
  background: #0c1115;
}

.bubble-dual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: 350px;
}

.bubble-video-tile {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  background: #06090b;
}

.bubble-video-tile video {
  object-fit: cover;
  object-position: center;
}

.media-label {
  position: absolute;
  z-index: 3;
  top: 14px;
  left: 14px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(8,12,15,.72);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(10px);
  color: #e8eef2;
  font-size: 11px;
  font-weight: 650;
}

.bubble-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bubble-secondary figure,
.welding-secondary figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: #fff;
}

.bubble-secondary img,
.welding-secondary img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.bubble-secondary figcaption,
.welding-secondary figcaption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(8,12,15,.76);
  color: #e5edf2;
  font-size: 10px;
  font-weight: 620;
  backdrop-filter: blur(8px);
}

/* ---- 04 / Resistance spot welding ---- */
.project-welding {
  grid-template-columns: minmax(0,1.22fr) minmax(370px,.78fr);
}

.welding-media-suite {
  display: grid;
  grid-template-columns: minmax(0,1fr) 31%;
  gap: 12px;
  padding: 18px 0 18px 18px;
  min-height: 520px;
  background: #0c1115;
}

.welding-main {
  overflow: hidden;
  border-radius: 15px;
  background: #090d10;
}

.welding-main video {
  object-fit: contain;
  background: #090d10;
}

.welding-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 12px;
}

/* ---- 05 + 06 / compact projects ---- */
.project-mini-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project-mini-card {
  display: grid;
  grid-template-rows: 285px auto;
}

.mini-media {
  display: grid;
  gap: 10px;
  padding: 14px 14px 0;
  background: #0c1115;
}

.frame-media {
  grid-template-columns: 1fr 1fr;
}

.venturi-media {
  grid-template-columns: 1fr 1fr;
}

.mini-media > div {
  overflow: hidden;
  border-radius: 13px;
  background: #fff;
}

.mini-media img,
.mini-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.project-mini-copy {
  padding: 27px 29px 31px;
}

.project-mini-copy h3 {
  margin: 0;
  color: #edf2f5;
  font-size: 24px;
  line-height: 1.24;
  letter-spacing: -.025em;
}

.project-mini-copy > p {
  margin: 13px 0 0;
  color: #94a2ac;
  font-size: 13px;
  line-height: 1.7;
}

/* Subtle behavior only; no template-like lift effect */
.project-evidence,
.project-mini-card {
  transition: border-color .2s ease, background .2s ease;
}

.project-evidence:hover,
.project-mini-card:hover {
  border-color: rgba(85,184,255,.20);
}

@media (max-width: 1050px) {
  .project-wind,
  .project-bubble,
  .project-welding {
    grid-template-columns: 1fr;
  }

  .project-wind .project-evidence-media,
  .project-bubble .bubble-media-suite,
  .project-welding .welding-media-suite {
    order: 2;
  }

  .bubble-media-suite,
  .welding-media-suite {
    padding: 0 18px 18px;
  }

  .project-mini-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .bubble-dual,
  .bubble-secondary,
  .frame-media,
  .venturi-media {
    grid-template-columns: 1fr;
  }

  .bubble-media-suite {
    grid-template-rows: auto auto;
  }

  .bubble-dual {
    min-height: 0;
  }

  .bubble-video-tile {
    min-height: 280px;
  }

  .welding-media-suite {
    grid-template-columns: 1fr;
  }

  .welding-main {
    min-height: 300px;
  }

  .welding-secondary {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 170px;
  }

  .project-mini-card {
    grid-template-rows: auto auto;
  }

  .mini-media > div {
    min-height: 220px;
  }
}

/* v0.7.0 final media polish */
.bubble-video-tile:nth-child(2) video {
  object-fit: contain;
  background: #000;
}

.frame-media > div,
.venturi-media > div {
  background: #10161a;
  padding: 10px;
}

.frame-media img,
.venturi-media img,
.venturi-media video {
  border-radius: 8px;
}

/* Keep compact technical imagery inside the dark card instead of exposing a white outer frame. */
.frame-media img,
.venturi-media img {
  background: #fff;
}

/* ==========================================================
   v0.7.1 — media-layout refinement for remaining projects
   ========================================================== */

.project-bubble {
  grid-template-columns: minmax(360px, .76fr) minmax(0, 1.24fr);
}

.bubble-media-suite {
  display: grid;
  grid-template-rows: auto auto;
  gap: 14px;
  padding: 18px 18px 18px 0;
  background: #0c1115;
}

.sync-media-card {
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(10, 15, 20, .06),
    0 20px 40px rgba(0, 0, 0, .18);
}

.sync-media-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px 12px;
}

.sync-media-title {
  color: #1e2730;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.sync-play-button,
.inline-play-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(85, 184, 255, .26);
  border-radius: 999px;
  background: rgba(12, 18, 24, .92);
  color: #e8f3f8;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.sync-play-button:hover,
.inline-play-button:hover {
  transform: translateY(-1px);
  background: rgba(18, 28, 36, .96);
  border-color: rgba(85, 184, 255, .46);
}

.sync-play-icon {
  font-size: 10px;
  color: var(--accent);
}

.sync-progress-track {
  height: 3px;
  background: rgba(12, 17, 21, .08);
}

.sync-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, rgba(85,184,255,.85), rgba(139,215,255,.95));
}

.sync-media-pair,
.welding-media-grid,
.mini-media-composite {
  background: rgba(12, 17, 21, .10);
}

.sync-media-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
}

.pair-compare {
  min-height: 336px;
}

.pair-fields {
  min-height: 232px;
}

.sync-pane,
.media-composite-pane {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.sync-pane {
  background: #0b0f13;
}

.sync-pane video,
.media-composite-pane img,
.media-composite-pane video {
  display: block;
  width: 100%;
  height: 100%;
}

.experiment-pane video {
  object-fit: cover;
  object-position: center center;
}

.simulation-pane {
  background: #ffffff;
}

.simulation-pane video {
  object-fit: cover;
  object-position: 58% 50%;
  background: #ffffff;
}

.heat-pane,
.mass-pane {
  background: #ffffff;
}

.heat-pane video,
.mass-pane video {
  object-fit: contain;
  background: #ffffff;
}

.project-welding {
  grid-template-columns: minmax(0, 1.18fr) minmax(370px, .82fr);
}

.welding-media-suite {
  display: block;
  padding: 18px 0 18px 18px;
  min-height: 0;
  background: #0c1115;
}

.welding-card {
  height: 100%;
}

.welding-media-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34%;
  gap: 1px;
  min-height: 470px;
}

.welding-main {
  overflow: hidden;
  background: #05080b;
  min-height: 470px;
}

.welding-main video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 54% 46%;
}

.welding-secondary {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1px;
}

.welding-secondary figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #ffffff;
}

.welding-secondary img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #ffffff;
}

.project-mini-card {
  grid-template-rows: 316px auto;
}

.mini-media-composite {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding: 0;
  min-height: 316px;
}

.frame-media,
.venturi-media {
  background: rgba(12, 17, 21, .10);
}

.frame-media .media-composite-pane,
.venturi-media .media-composite-pane {
  background: #ffffff;
}

.frame-media img,
.venturi-media img,
.venturi-media video {
  object-fit: contain;
  background: #ffffff;
}

.media-composite-video {
  position: relative;
}

.media-composite-video video {
  object-fit: contain;
  background: #ffffff;
}

.inline-play-button {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
}

.sync-media-card.is-playing .sync-play-icon,
.media-composite-video.is-playing .sync-play-icon {
  color: #a8e4ff;
}

@media (max-width: 1050px) {
  .project-bubble,
  .project-welding {
    grid-template-columns: 1fr;
  }

  .project-bubble .bubble-media-suite,
  .project-welding .welding-media-suite {
    order: 2;
  }

  .bubble-media-suite,
  .welding-media-suite {
    padding: 0 18px 18px;
  }
}

@media (max-width: 700px) {
  .sync-media-pair,
  .mini-media-composite,
  .welding-media-grid {
    grid-template-columns: 1fr;
  }

  .pair-compare,
  .pair-fields,
  .welding-main,
  .mini-media-composite {
    min-height: 0;
  }

  .sync-pane,
  .media-composite-pane,
  .welding-main,
  .welding-secondary figure {
    min-height: 240px;
  }

  .welding-secondary {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 190px;
  }

  .project-mini-card {
    grid-template-rows: auto auto;
  }
}

/* ==========================================================
   v0.7.2 — user-cropped media / overlay playback controls
   ========================================================== */

/* No separate media title bars: the media itself is the card. */
.bubble-compare-clean,
.bubble-fields-combined {
  overflow: hidden;
  border-radius: 17px;
  background: #0b0f13 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

.bubble-compare-clean .sync-progress-track,
.bubble-fields-combined .sync-progress-track {
  height: 3px;
  background: rgba(255,255,255,.08);
}

/* Native aspect-ratio matching:
   experiment = 16:9; user-cropped simulation = 1254:1014.
   This column ratio makes both videos exactly the same rendered height
   without cropping or letterboxing. */
.bubble-compare-clean .pair-compare {
  display: grid !important;
  grid-template-columns: 1.4375fr 1fr !important;
  gap: 1px !important;
  min-height: 0 !important;
  align-items: start;
  background: rgba(255,255,255,.07);
}

.bubble-compare-clean .sync-pane {
  position: relative;
  overflow: hidden;
  min-width: 0;
  height: auto !important;
}

.bubble-compare-clean .sync-pane video {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
}

.experiment-pane {
  background: #05080a !important;
}

.simulation-pane {
  background: #fff !important;
}

.media-overlay-play {
  position: absolute !important;
  z-index: 8;
  top: 14px;
  left: 14px;
  margin: 0 !important;
  background: rgba(7,12,16,.83) !important;
  border-color: rgba(130,205,250,.30) !important;
  box-shadow: 0 7px 24px rgba(0,0,0,.22);
  backdrop-filter: blur(10px);
}

.media-label-right {
  left: auto !important;
  right: 14px;
}

/* The user already combined flow/heat/mass-transfer into one 16:9 video. */
.single-video-stage {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.single-video-stage video {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: #fff;
}

/* Welding: use the user's already-clean APDL recording as-is.
   The APDL viewport is the dominant evidence, while temperature / mesh
   stay large enough to be legible. */
.welding-card-clean {
  overflow: hidden;
  border-radius: 17px;
  background: #0b0f13;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
}

.welding-card-clean .welding-media-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.48fr) minmax(240px, .72fr) !important;
  gap: 1px !important;
  min-height: 0 !important;
  align-items: stretch;
  background: rgba(255,255,255,.07);
}

.welding-card-clean .welding-main {
  position: relative;
  overflow: hidden;
  min-height: 0 !important;
  aspect-ratio: 958 / 726;
  background: #000;
}

.welding-card-clean .welding-main video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  background: #000;
}

.welding-card-clean .welding-main .sync-progress-track {
  position: absolute;
  z-index: 7;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255,255,255,.10);
}

.welding-card-clean .welding-secondary {
  display: grid !important;
  grid-template-rows: 1fr 1fr !important;
  gap: 1px !important;
  min-height: 0;
}

.welding-card-clean .welding-secondary figure {
  min-height: 0 !important;
  background: #fff;
}

.welding-card-clean .welding-secondary img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff;
}

@media (max-width: 800px) {
  .bubble-compare-clean .pair-compare {
    grid-template-columns: 1fr !important;
  }

  .welding-card-clean .welding-media-grid {
    grid-template-columns: 1fr !important;
  }

  .welding-card-clean .welding-main {
    aspect-ratio: 958 / 726;
  }

  .welding-card-clean .welding-secondary {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 190px !important;
  }
}


/* ==========================================================
   v0.7.3 — exact media fitting / alignment corrections
   ========================================================== */

/* Experiment video: use the black-border-free web copy.
   Column widths are proportional to the two native aspect ratios,
   so both videos render at exactly the same height without letterboxing. */
.bubble-compare-clean .pair-compare {
  grid-template-columns: 1.0536465fr 1fr !important;
  gap: 1px !important;
  align-items: start !important;
  background: rgba(255,255,255,.08) !important;
}

.bubble-compare-clean .experiment-pane,
.bubble-compare-clean .simulation-pane {
  height: auto !important;
  background: #fff !important;
}

.bubble-compare-clean .experiment-pane video,
.bubble-compare-clean .simulation-pane video {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
  transform: none !important;
}

/* APDL media: show the complete user-prepared recording.
   One consistent 12px gap is used both horizontally and vertically. */
.welding-card-clean .welding-media-grid {
  grid-template-columns: minmax(0, 1.48fr) minmax(260px, .72fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  background: #0b0f13 !important;
}

.welding-card-clean .welding-main {
  aspect-ratio: 958 / 726 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #000 !important;
}

.welding-card-clean .welding-main video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #000 !important;
}

.welding-card-clean .welding-secondary {
  display: grid !important;
  grid-template-rows: minmax(0,1fr) minmax(0,1fr) !important;
  gap: 12px !important;
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden;
}

.welding-card-clean .welding-secondary figure {
  min-height: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  margin: 0 !important;
}

.welding-card-clean .welding-secondary img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

@media (max-width: 800px) {
  .bubble-compare-clean .pair-compare {
    grid-template-columns: 1fr !important;
  }

  .welding-card-clean .welding-media-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .welding-card-clean .welding-main {
    aspect-ratio: 958 / 726 !important;
  }

  .welding-card-clean .welding-secondary {
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: 190px !important;
    gap: 12px !important;
  }
}

/* ==========================================================
   v0.7.4 — precision layout fixes for humidification + welding
   ========================================================== */

/* Humidification: top compare card and lower combined-field card must align
   like Apple-style clean blocks: exact rounded corners, centered split lines,
   no internal letterboxing, and consistent masks. */
.bubble-media-suite {
  gap: 18px !important;
}

.bubble-compare-clean,
.bubble-fields-combined {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #0b0f13 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06) !important;
}

.bubble-compare-clean .pair-compare {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 2px !important;
  align-items: stretch !important;
  min-height: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  overflow: hidden !important;
  background: #0b0f13 !important;
}

.bubble-compare-clean .sync-pane {
  position: relative !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  background: #fff !important;
}

.bubble-compare-clean .sync-pane video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  background: #fff !important;
}

/* Small compensating crop so the vertical split aligns with the combined
   lower video center split while keeping the experiment subject intact. */
.bubble-compare-clean .experiment-pane video {
  object-position: 51.5% 50% !important;
}

.bubble-compare-clean .simulation-pane video {
  object-position: 50% 50% !important;
}

.bubble-compare-clean .sync-progress-track,
.bubble-fields-combined .sync-progress-track {
  height: 3px !important;
  border-radius: 0 0 18px 18px !important;
  overflow: hidden !important;
  background: rgba(255,255,255,.10) !important;
}

.bubble-fields-combined .single-video-stage {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 18px 18px 0 0 !important;
  background: #fff !important;
}

.bubble-fields-combined .single-video-stage video {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.bubble-fields-combined .media-overlay-play,
.bubble-compare-clean .media-overlay-play,
.welding-card-clean .media-overlay-play {
  top: 18px !important;
  left: 18px !important;
}

/* Welding: three assets must be fully visible, never overlap, and form one
   clean media grid with matching horizontal/vertical gaps. */
.welding-card-clean {
  overflow: hidden !important;
  border-radius: 18px !important;
  background: #0b0f13 !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06) !important;
}

.welding-card-clean .welding-media-grid {
  display: grid !important;
  grid-template-columns: minmax(0, 1.56fr) minmax(260px, 0.84fr) !important;
  gap: 12px !important;
  align-items: stretch !important;
  padding: 16px !important;
  background: #0b0f13 !important;
}

.welding-card-clean .welding-main {
  position: relative !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  align-self: stretch !important;
  aspect-ratio: 958 / 726 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #000 !important;
}

.welding-card-clean .welding-main video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #000 !important;
}

.welding-card-clean .welding-main .sync-progress-track {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  height: 3px !important;
  background: rgba(255,255,255,.10) !important;
}

.welding-card-clean .welding-secondary {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  align-self: stretch !important;
}

.welding-card-clean .welding-secondary figure {
  position: relative !important;
  margin: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.welding-card-clean .welding-secondary img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

.welding-card-clean .welding-secondary figcaption {
  position: absolute !important;
  left: 14px !important;
  bottom: 14px !important;
}

/* Make the secondary column exactly track the APDL block height. */
.project-welding .welding-media-suite {
  display: flex !important;
  align-items: stretch !important;
}

.project-welding .welding-card-clean {
  width: 100% !important;
}

@media (max-width: 900px) {
  .bubble-compare-clean .pair-compare,
  .welding-card-clean .welding-media-grid {
    grid-template-columns: 1fr !important;
  }

  .welding-card-clean .welding-secondary {
    grid-column: 1 !important;
    grid-row: auto !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: minmax(220px, auto) !important;
  }
}

/* ==========================================================
   v0.7.5 — verified media geometry
   ========================================================== */

/* ---------- Humidification ----------
   Keep the lower combined heat/mass video centered at 50/50.
   Shift the experiment/simulation divider slightly left to match it visually.
   Outer cards alone own all four rounded corners. */
.bubble-compare-clean,
.bubble-fields-combined {
  border-radius: 18px !important;
  overflow: hidden !important;
  background: #0b0f13 !important;
}

.bubble-compare-clean .pair-compare {
  grid-template-columns: 49.4% 50.6% !important;
  gap: 2px !important;
  border-radius: 0 !important;
  overflow: hidden !important;
  background: #0b0f13 !important;
}

.bubble-compare-clean .sync-pane {
  border-radius: 0 !important;
  overflow: hidden !important;
}

.bubble-compare-clean .experiment-pane video,
.bubble-compare-clean .simulation-pane video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}

/* Slight crop of the experiment side only, as requested, to move the split left
   while keeping the experimental bubble centered. */
.bubble-compare-clean .experiment-pane video {
  object-position: 51% 50% !important;
}

.bubble-compare-clean .simulation-pane video {
  object-position: 50% 50% !important;
}

.bubble-fields-combined .single-video-stage,
.bubble-fields-combined .single-video-stage video {
  border-radius: 0 !important;
}

.bubble-compare-clean .sync-progress-track,
.bubble-fields-combined .sync-progress-track {
  border-radius: 0 !important;
}

/* ---------- Welding ----------
   Critical fix: the old layout let the APDL item's aspect-ratio increase its
   used width beyond grid column 1. The media grid now owns the global aspect
   ratio, while both columns are constrained to their assigned tracks. */
.welding-card-clean .welding-media-grid {
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, .84fr) !important;
  grid-template-rows: 1fr !important;
  gap: 12px !important;
  aspect-ratio: 1.98 / 1 !important;
  align-items: stretch !important;
  padding: 16px !important;
  background: #0b0f13 !important;
}

.welding-card-clean .welding-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #000 !important;
}

.welding-card-clean .welding-main video {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  background: #000 !important;
}

.welding-card-clean .welding-secondary {
  grid-column: 2 !important;
  grid-row: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 12px !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  align-self: stretch !important;
}

.welding-card-clean .welding-secondary figure {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 16px !important;
  background: #fff !important;
}

.welding-card-clean .welding-secondary img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #fff !important;
}

@media (max-width: 900px) {
  .welding-card-clean .welding-media-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    aspect-ratio: auto !important;
  }

  .welding-card-clean .welding-main {
    grid-column: 1 !important;
    grid-row: 1 !important;
    aspect-ratio: 958 / 726 !important;
    height: auto !important;
  }

  .welding-card-clean .welding-secondary {
    grid-column: 1 !important;
    grid-row: 2 !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: minmax(220px, auto) !important;
  }
}

/* ==========================================================
   v0.7.6 — welding card: eliminate inherited empty lower area
   ========================================================== */

.project-welding {
  align-items: stretch !important;
}

/* Legacy v0.7.0 min-height was the source of the large empty region. */
.project-welding .welding-media-suite {
  min-height: 0 !important;
  height: 100% !important;
  padding: 18px !important;
  display: flex !important;
  align-items: stretch !important;
  background: #0c1115 !important;
}

.project-welding .welding-card-clean {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: stretch !important;
}

/* Do not lock the media group to an aspect ratio. The complete left media
   group now fills the same project-row height as the copy column. */
.project-welding .welding-card-clean .welding-media-grid {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  grid-template-columns: minmax(0, 1.56fr) minmax(0, .84fr) !important;
  grid-template-rows: minmax(0, 1fr) !important;
  gap: 12px !important;
  padding: 0 !important;
  align-items: stretch !important;
}

.project-welding .welding-main,
.project-welding .welding-secondary {
  height: 100% !important;
  min-height: 0 !important;
}

.project-welding .welding-main video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.project-welding .welding-secondary {
  grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
}

@media (max-width: 900px) {
  .project-welding .welding-media-suite,
  .project-welding .welding-card-clean,
  .project-welding .welding-card-clean .welding-media-grid {
    height: auto !important;
  }

  .project-welding .welding-card-clean .welding-media-grid {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
  }

  .project-welding .welding-main {
    aspect-ratio: 958 / 726 !important;
    height: auto !important;
  }
}

/* ==========================================================
   v0.8.0 — Industrial Rendering & Digital Scenes
   ========================================================== */

.visual-gallery-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 7%, rgba(85,184,255,.055), transparent 23%),
    #0b0f13;
}

.visual-section-head {
  margin-bottom: 42px !important;
}

.visual-gallery {
  display: grid;
  gap: 22px;
}

.visual-card,
.visual-composite,
.visual-shelby-group {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 24px;
  background: #0e1317;
  box-shadow: 0 26px 70px rgba(0,0,0,.18);
}

.visual-card img,
.visual-composite img,
.visual-shelby-group img,
.visual-card video {
  display: block;
  width: 100%;
  height: 100%;
}

.visual-card img,
.visual-composite img,
.visual-shelby-group img {
  object-fit: cover;
}

.visual-card-hero {
  aspect-ratio: 2048 / 1121;
}

.visual-card-hero img {
  object-position: center center;
}

.visual-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 22px;
}

.visual-card-wide {
  aspect-ratio: 16 / 9;
}

.visual-card-wide img {
  object-position: center center;
}

.visual-card figcaption,
.visual-composite-caption,
.visual-video-label {
  position: absolute;
  z-index: 4;
  left: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  background: rgba(7,11,14,.58);
  color: rgba(245,249,251,.94);
  font-size: 12px;
  font-weight: 620;
  letter-spacing: .01em;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.visual-card::after,
.visual-composite::after,
.visual-shelby-group::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 67%, rgba(4,7,9,.28) 100%);
}

.visual-card img,
.visual-composite img,
.visual-shelby-group img {
  transition: transform .55s cubic-bezier(.22,.61,.36,1);
}

@media (hover:hover) {
  .visual-card:hover img,
  .visual-composite:hover img,
  .visual-shelby-group:hover img {
    transform: scale(1.008);
  }
}

/* Aston Martin: one strong view + two supporting details */
.visual-composite {
  display: grid;
  grid-template-columns: minmax(0,1.45fr) minmax(320px,.75fr);
  gap: 2px;
  min-height: 620px;
  background: #d6d8d8;
}

.visual-composite-main,
.visual-composite-side {
  min-width: 0;
  min-height: 0;
}

.visual-composite-main img {
  object-position: center center;
}

.visual-composite-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.visual-composite-side img {
  object-position: center center;
}

/* Classic vehicle study: image-led, no nested cards */
.visual-shelby-group {
  display: grid;
  grid-template-columns: minmax(0,1.25fr) minmax(0,.95fr);
  gap: 2px;
  min-height: 650px;
  background: #111;
}

.visual-shelby-main,
.visual-shelby-strip {
  min-width: 0;
  min-height: 0;
}

.visual-shelby-main img {
  object-position: center center;
}

.visual-shelby-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.visual-shelby-strip img:first-child {
  grid-column: 1 / -1;
}

.visual-shelby-strip img {
  object-position: center center;
}

/* Mechanical product / equipment visualization */
.visual-product-duo {
  align-items: stretch;
}

.visual-product-card,
.visual-video-card {
  min-height: 480px;
}

.visual-product-card {
  background: #f3f3f1;
}

.visual-product-card img {
  object-fit: contain;
  padding: 3.5%;
  background: #f3f3f1;
}

.visual-video-card,
.visual-road-card {
  position: relative;
  background: #080b0e;
}

.visual-video-card video,
.visual-road-card video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #080b0e;
}

.visual-video-card video {
  object-position: center center;
}

.visual-road-card {
  aspect-ratio: 3840 / 2559;
}

.visual-road-card video {
  object-position: center 48%;
}

.visual-play-button {
  position: absolute;
  z-index: 7;
  top: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(151,216,255,.30);
  border-radius: 999px;
  background: rgba(6,10,13,.72);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.visual-play-button:hover {
  transform: scale(1.035);
  background: rgba(10,17,22,.88);
  border-color: rgba(151,216,255,.50);
}

.visual-play-button .sync-play-icon {
  font-size: 12px;
  color: #a9dfff;
}

.visual-video-card.is-playing .visual-play-button .sync-play-icon,
.visual-road-card.is-playing .visual-play-button .sync-play-icon {
  color: #d9f3ff;
}

/* Contact / footer cleanup */
.contact-email {
  color: #d8ecf8;
  text-decoration: none;
  border-bottom: 1px solid rgba(85,184,255,.28);
  transition: color .18s ease, border-color .18s ease;
}

.contact-email:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 980px) {
  .visual-duo,
  .visual-composite,
  .visual-shelby-group {
    grid-template-columns: 1fr;
  }

  .visual-composite,
  .visual-shelby-group {
    min-height: 0;
  }

  .visual-composite-main,
  .visual-shelby-main {
    aspect-ratio: 16 / 9;
  }

  .visual-composite-side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 330px;
  }

  .visual-shelby-strip {
    grid-template-columns: repeat(3,1fr);
    grid-template-rows: 300px;
  }

  .visual-shelby-strip img:first-child {
    grid-column: auto;
  }
}

@media (max-width: 680px) {
  .visual-gallery {
    gap: 14px;
  }

  .visual-card,
  .visual-composite,
  .visual-shelby-group {
    border-radius: 18px;
  }

  .visual-card-hero,
  .visual-card-wide,
  .visual-road-card,
  .visual-composite-main,
  .visual-shelby-main {
    aspect-ratio: 4 / 3;
  }

  .visual-composite-side,
  .visual-shelby-strip {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3,240px);
  }

  .visual-composite-side {
    grid-template-rows: repeat(2,240px);
  }

  .visual-product-card,
  .visual-video-card {
    min-height: 360px;
  }

  .visual-card figcaption,
  .visual-composite-caption,
  .visual-video-label {
    left: 16px;
    bottom: 15px;
  }

  .visual-play-button {
    top: 16px;
    left: 16px;
    width: 44px;
    height: 44px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }
}

/* ==========================================================
   v0.8.1 — product visualization row refinement
   ========================================================== */

/* Give the exploded-animation card more width. Its native video is 16:10;
   the right card uses that ratio, while the narrower gearbox card stretches
   to the same row height. */
.visual-product-duo {
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr) !important;
  gap: 22px !important;
  align-items: stretch !important;
}

.visual-product-card,
.visual-video-card {
  min-height: 0 !important;
}

.visual-explode-card {
  aspect-ratio: 16 / 10;
  background: #8f8f8f !important;
}

.visual-explode-card video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: #8f8f8f !important;
}

/* The narrower gearbox tile should be image-led instead of showing a large
   white matte. Cover removes the redundant white margins in the source render. */
.visual-product-card {
  background: #f4f4f2 !important;
}

.visual-product-card img {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
  background: #f4f4f2 !important;
}

@media (max-width: 900px) {
  .visual-product-duo {
    grid-template-columns: 1fr !important;
  }

  .visual-product-card {
    aspect-ratio: 16 / 10;
  }

  .visual-product-card img {
    object-fit: contain !important;
  }
}

/* ==========================================================
   v0.8.2 — contact hierarchy + selective interactive hover
   ========================================================== */

/* Contact: keep the kicker in accent blue even though the contact section
   has a generic muted paragraph rule. */
.contact-section .section-kicker {
  color: var(--accent) !important;
}

.contact-wrap {
  grid-template-columns: minmax(280px, .70fr) minmax(0, 1.30fr) !important;
  gap: 56px !important;
  align-items: center !important;
}

.contact-card {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 !important;
  padding: 0 !important;
  overflow: hidden;
}

.contact-item {
  min-width: 0;
  padding: 24px 25px;
}

.contact-item + .contact-item {
  border-left: 1px solid rgba(255,255,255,.075);
}

.contact-item strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: .08em;
}

.contact-item > span,
.contact-item > a {
  display: block;
  color: #d7e1e7;
  font-size: 15px;
  line-height: 1.5;
}

.contact-item .contact-email {
  width: fit-content;
}

/* ----------------------------------------------------------
   Interactive-card hover language
   Only cards containing a real click control/link are lifted.
   Industrial visualization intentionally keeps its existing behavior.
   ---------------------------------------------------------- */

/* Remove decorative hover feedback from non-interactive engineering cards. */
.project-evidence:hover,
.project-mini-card:hover {
  border-color: rgba(255,255,255,.085) !important;
  background: #0f1418;
  transform: none;
  box-shadow: 0 1px 0 rgba(255,255,255,.015) inset;
}

/* Shared high-clarity interaction cue: brighter apparent 2px edge without
   changing layout dimensions. */
.project-feature-primary,
.project-evidence:has(button),
.project-mini-card:has(button),
.publication-card {
  transition:
    transform .22s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease !important;
}

@media (hover:hover) {
  .project-feature-primary:hover,
  .project-evidence:has(button):hover,
  .project-mini-card:has(button):hover,
  .publication-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(105, 202, 255, .82) !important;
    box-shadow:
      0 0 0 1px rgba(105, 202, 255, .46),
      0 14px 34px rgba(0,0,0,.22) !important;
  }

  .publication-card:hover {
    background: rgba(85,184,255,.045) !important;
  }
}

/* The download control is also explicitly interactive; make its edge match
   the brighter interaction color without turning it into a card effect. */
.resume-download:hover {
  border-color: rgba(105,202,255,.78) !important;
  box-shadow: 0 0 0 1px rgba(105,202,255,.28);
}

/* Slightly shift the gearbox subject to the right while preserving the
   existing visualization-gallery hover treatment. */
.visual-product-card img {
  object-position: 47% center !important;
}

@media (max-width: 930px) {
  .contact-wrap {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }
}

@media (max-width: 650px) {
  .contact-card {
    grid-template-columns: 1fr;
  }

  .contact-item + .contact-item {
    border-left: 0;
    border-top: 1px solid rgba(255,255,255,.075);
  }
}


/* ==========================================================
   v0.8.3 — all large engineering cards hover + simple contact
   ========================================================== */

/* Contact becomes a single information line directly under the heading. */
.contact-wrap-simple {
  display: block !important;
}

.contact-wrap-simple .section-kicker {
  margin-bottom: 12px;
  color: var(--accent) !important;
}

.contact-wrap-simple h2 {
  margin: 0;
}

.contact-inline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
  color: #c8d4db;
  font-size: 16px;
  line-height: 1.5;
}

.contact-inline > span:not(.contact-inline-divider),
.contact-inline > a {
  display: inline-flex;
  align-items: center;
}

.contact-inline-divider {
  width: 1px;
  height: 16px;
  background: rgba(255,255,255,.18);
}

.contact-inline .contact-email {
  color: #d9e7ef;
  text-decoration: none;
  transition: color .18s ease;
}

.contact-inline .contact-email:hover {
  color: var(--accent);
}

/* The old contact card is no longer used. */
.contact-wrap-simple .contact-card,
.contact-wrap-simple .contact-item {
  display: none !important;
}

/* All LARGE engineering-project cards share one hover language.
   Mini project cards remain unchanged. */
.project-feature-primary,
.project-evidence {
  transition:
    transform .22s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease !important;
}

/* Neutralize the v0.8.2 rule that suppressed hover on non-interactive
   project-evidence cards. */
.project-evidence:hover {
  background: #0f1418;
}

@media (hover:hover) {
  .project-feature-primary:hover,
  .project-evidence:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(112, 207, 255, .92) !important;
    box-shadow:
      0 0 0 1px rgba(112, 207, 255, .58),
      0 15px 36px rgba(0,0,0,.24) !important;
  }
}

@media (max-width: 650px) {
  .contact-inline {
    gap: 11px;
    font-size: 15px;
  }
}


/* ==========================================================
   v0.8.4 — location order + transport-frame hover
   ========================================================== */

.project-hover-card {
  transition:
    transform .22s cubic-bezier(.22,.61,.36,1),
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease !important;
}

@media (hover:hover) {
  .project-hover-card:hover {
    transform: translateY(-4px) !important;
    border-color: rgba(112, 207, 255, .92) !important;
    box-shadow:
      0 0 0 1px rgba(112, 207, 255, .58),
      0 15px 36px rgba(0,0,0,.24) !important;
  }
}

/* ==========================================================
   v0.8.5 — profile metadata + mobile welding cleanup
   ========================================================== */

.profile-heading {
  align-items: flex-start !important;
}

.profile-identity {
  min-width: 0;
}

.profile-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 15px;
  color: #95a5af;
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: .015em;
}

.profile-meta span + span::before {
  content: "·";
  display: inline-block;
  margin-right: 12px;
  color: var(--accent);
  font-weight: 750;
}

/* On narrow screens the legacy desktop equal-height chain could still leave
   the welding media row taller than its actual contents. Force every mobile
   level back to intrinsic height and let the two result figures own one row. */
@media (max-width: 900px) {
  .project-welding {
    min-height: 0 !important;
    align-items: start !important;
  }

  .project-welding .welding-media-suite,
  .project-welding .welding-card-clean,
  .project-welding .welding-card-clean .welding-media-grid {
    height: auto !important;
    min-height: 0 !important;
    align-self: start !important;
  }

  .project-welding .welding-media-suite {
    display: block !important;
  }

  .project-welding .welding-card-clean {
    display: block !important;
  }

  .project-welding .welding-card-clean .welding-media-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto !important;
    align-content: start !important;
  }

  .project-welding .welding-main {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 958 / 726 !important;
  }

  .project-welding .welding-secondary {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    grid-template-rows: auto !important;
    align-items: stretch !important;
  }

  .project-welding .welding-secondary figure {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 1.24 / 1 !important;
  }

  .project-welding .welding-secondary img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
  }
}

@media (max-width: 560px) {
  .profile-meta {
    gap: 5px 0;
    font-size: 12px;
  }

  .profile-meta span {
    width: 100%;
  }

  .profile-meta span + span::before {
    margin-right: 8px;
  }
}


/* ==========================================================
   v0.8.6 — profile metadata readability + mobile Venturi pair
   ========================================================== */

/* Personal facts should read at the same hierarchy as school names,
   not like auxiliary caption text. */
.profile-meta {
  margin-top: 16px !important;
  color: #b7c4cd !important;
  font-size: 19px !important;
  line-height: 1.55 !important;
  font-weight: 540;
  letter-spacing: 0 !important;
}

.profile-meta span + span::before {
  margin-right: 11px !important;
}

/* On phones keep each fact readable instead of shrinking it.
   A vertical three-line arrangement is preferable to tiny text. */
@media (max-width: 560px) {
  .profile-meta {
    gap: 7px 0 !important;
    font-size: 19px !important;
    line-height: 1.5 !important;
  }

  .profile-meta span {
    width: 100% !important;
  }

  .profile-meta span + span::before {
    margin-right: 9px !important;
  }
}

/* Venturi evidence is a visual pair. Preserve that relationship on phones
   rather than stacking two portrait media blocks into two full screens. */
@media (max-width: 700px) {
  .project-mini-card .venturi-media {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: 280px !important;
    gap: 1px !important;
    min-height: 0 !important;
    height: 280px !important;
    align-items: stretch !important;
  }

  .project-mini-card .venturi-media .media-composite-pane {
    min-width: 0 !important;
    min-height: 0 !important;
    height: 280px !important;
    overflow: hidden !important;
  }

  .project-mini-card .venturi-media img,
  .project-mini-card .venturi-media video {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    background: #fff !important;
  }

  .project-mini-card .venturi-media .inline-play-button {
    top: 10px !important;
    right: 10px !important;
    transform: scale(.92);
    transform-origin: top right;
  }
}

@media (max-width: 430px) {
  .project-mini-card .venturi-media,
  .project-mini-card .venturi-media .media-composite-pane {
    height: 250px !important;
  }

  .project-mini-card .venturi-media {
    grid-template-rows: 250px !important;
  }
}


/* ==========================================================
   v0.8.7 — mobile order consistency for compact projects
   Desktop layout remains unchanged.
   ========================================================== */

@media (max-width: 700px) {
  /* Match the visual narrative of the preceding engineering cards:
     title/description/tags first, evidence media second. */
  .project-mini-card {
    display: flex !important;
    flex-direction: column !important;
  }

  .project-mini-card .project-mini-copy {
    order: 1 !important;
  }

  .project-mini-card .mini-media-composite {
    order: 2 !important;
  }
}


/* ==========================================================
   v0.8.8 — resume PDF placeholder + first profile separator
   ========================================================== */

/* All three profile facts use the same blue leading dot. */
.profile-meta span:first-child::before {
  content: "·";
  display: inline-block;
  margin-right: 11px;
  color: var(--accent);
  font-weight: 750;
}

@media (max-width: 560px) {
  .profile-meta span:first-child::before {
    margin-right: 9px;
  }
}

/* Resume interface remains visible before the final PDF is uploaded.
   JS automatically enables the link once the exact OSS object exists. */
.resume-download.resume-pending,
.resume-download[aria-disabled="true"] {
  opacity: .52;
  cursor: default;
  transform: none !important;
  border-color: rgba(255,255,255,.10) !important;
  background: rgba(255,255,255,.012) !important;
}

.resume-download.resume-pending .resume-download-icon,
.resume-download[aria-disabled="true"] .resume-download-icon {
  opacity: .55;
}

.resume-download.resume-ready {
  opacity: 1;
  cursor: pointer;
}

@media (max-width: 700px) {
  .profile-heading .resume-download {
    margin-top: 2px;
  }
}


/* ==========================================================
   v0.9.0 — unified engineering-project typography
   ========================================================== */

/*
  Typography hierarchy:
  - Primary representative project keeps a larger display title.
  - All five secondary engineering projects use one shared title/body/tag scale.
  - Supporting metrics/proof labels remain smaller because they are tertiary text.
*/

/* Primary project: keep hierarchy, but body copy matches all project descriptions. */
.project-feature .project-lead {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* Secondary project titles: Wind / Humidification / Welding / Frame / Venturi. */
.project-evidence-copy h3,
.project-mini-copy h3 {
  font-size: clamp(28px, 2.15vw, 32px) !important;
  line-height: 1.2 !important;
  letter-spacing: -.03em !important;
}

/* Secondary project descriptions all use the same body size. */
.project-evidence-copy > p,
.project-mini-copy > p {
  font-size: 15px !important;
  line-height: 1.75 !important;
}

/* Project tags are one consistent tertiary scale across all engineering cards. */
.project-feature .tags span,
.project-evidence .tags span,
.project-mini-card .tags span {
  font-size: 12px !important;
}

/* Mobile keeps the same hierarchy instead of shrinking compact cards separately. */
@media (max-width: 700px) {
  .project-evidence-copy h3,
  .project-mini-copy h3 {
    font-size: 28px !important;
    line-height: 1.22 !important;
  }

  .project-feature .project-lead,
  .project-evidence-copy > p,
  .project-mini-copy > p {
    font-size: 15px !important;
  }
}


/* ==========================================================
   v0.9.1 — resume link / education marker / project title exactness
   ========================================================== */

/* The PDF now exists, so the résumé link is a normal direct download. */
.resume-download.resume-ready {
  opacity: 1 !important;
  cursor: pointer !important;
  pointer-events: auto !important;
}

/*
  Education marker:
  tie its vertical position to the 19px school-name line rather than a
  historical fixed 8px offset. This centers the 7px dot on the first line.
*/
.education-panel .timeline-item {
  align-items: start;
}

.education-panel .timeline-mark {
  align-self: start;
  margin-top: 8.4px !important;
  flex: none;
}

/* Exactly one desktop size for the five secondary engineering projects. */
@media (min-width: 701px) {
  .project-evidence-copy h3,
  .project-mini-copy h3 {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
}

/* Mobile keeps the established compact hierarchy. */
@media (max-width: 700px) {
  .project-evidence-copy h3,
  .project-mini-copy h3 {
    font-size: 28px !important;
    line-height: 1.22 !important;
  }

  /* Slight optical correction on narrow screens. */
  .education-panel .timeline-mark {
    margin-top: 9px !important;
  }
}

.project-detail-page { background:#0a0d10; }
.project-detail-page .site-header { background:rgba(9,12,15,.9); }
.project-detail-nav a { font-size:12px; }

.fc-hero { padding:150px 0 80px; background:radial-gradient(circle at 78% 16%,rgba(85,184,255,.07),transparent 27%),#0a0d10; }
.fc-back { display:inline-flex; align-items:center; gap:9px; color:#7f919d; font-size:12px; text-decoration:none; }
.fc-back:hover { color:var(--accent); }
.fc-hero-heading { display:grid; grid-template-columns:1.22fr .78fr; gap:60px; align-items:end; margin-top:38px; }
.fc-hero h1 { margin:0; max-width:980px; font-size:clamp(52px,6.2vw,90px); line-height:.99; letter-spacing:-.055em; }
.fc-hero-heading>p { margin:0 0 3px; color:#9aa8b2; font-size:14px; line-height:1.82; }
.fc-method-strip,.fc-sealing-flow { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin-top:34px; }
.fc-method-strip span,.fc-sealing-flow span { padding:8px 10px; border:1px solid rgba(255,255,255,.075); border-radius:8px; background:rgba(255,255,255,.018); color:#dbe3e8; font-size:11px; }
.fc-method-strip b,.fc-sealing-flow b { color:#4f626f; font-weight:400; }

.fc-white-stage { background:#f7f7f4 !important; }
.fc-hero-visual { overflow:hidden; margin:46px 0 0; padding:14px; border:1px solid rgba(255,255,255,.08); border-radius:18px; background:#f7f7f4; }
.fc-hero-visual img { display:block; width:100%; height:auto; }

.fc-section { padding:104px 0; }
.fc-section-alt { background:#0d1115; border-top:1px solid rgba(255,255,255,.045); border-bottom:1px solid rgba(255,255,255,.045); }
.fc-section-heading { display:grid; grid-template-columns:.84fr 1.16fr; gap:68px; align-items:start; margin-bottom:42px; }
.fc-section-heading h2 { margin:0; font-size:clamp(34px,3.8vw,52px); line-height:1.08; letter-spacing:-.04em; }
.fc-section-heading p { margin:4px 0 0; color:#98a6b0; font-size:14px; line-height:1.86; }

.fc-media-card,.fc-real-part-card,.fc-framework-figure,.fc-placeholder { overflow:hidden; margin:0; border:1px solid rgba(255,255,255,.075); border-radius:16px; background:#11161a; }
.fc-media-card img,.fc-media-card video,.fc-real-part-card img,.fc-framework-figure img { display:block; width:100%; height:auto; }
.fc-media-card figcaption { display:flex; flex-direction:column; gap:5px; padding:16px 18px 18px; background:#11161a; }
.fc-media-card figcaption strong { color:#e5ecef; font-size:14px; }
.fc-media-card figcaption span { color:#7f8e98; font-size:11px; line-height:1.55; }

.fc-problem-grid { display:grid; grid-template-columns:1.16fr .84fr; gap:18px; }
.fc-video-card video { aspect-ratio:16/10; object-fit:cover; }
.fc-real-part-card { display:flex; flex-direction:column; }
.fc-real-part-card img { aspect-ratio:16/9; object-fit:cover; }
.fc-real-part-card>div { padding:22px 23px 24px; }
.fc-real-part-card strong { font-size:18px; color:#e8eef2; }
.fc-real-part-card p { margin:8px 0 0; color:#8d9ca7; font-size:12px; line-height:1.7; }

.fc-process-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:18px; }
.fc-placeholder { min-height:210px; display:flex; flex-direction:column; justify-content:center; align-items:center; padding:28px; text-align:center; border-style:dashed; background:linear-gradient(145deg,rgba(85,184,255,.025),transparent 55%),rgba(14,19,23,.7); }
.fc-placeholder.compact { min-height:150px; }
.fc-placeholder.large { min-height:270px; }
.fc-placeholder span { color:#a9cde2; font-size:14px; font-weight:650; }
.fc-placeholder small { max-width:500px; margin-top:9px; color:#657985; font-size:11px; line-height:1.6; }
.fc-transition-callout { margin-top:20px; padding:18px 20px; border-left:2px solid var(--accent); background:rgba(85,184,255,.035); color:#cbd8e0; font-size:13px; line-height:1.7; }

.fc-map-strip,.fc-scale-chain { display:grid; grid-template-columns:1fr auto 1fr auto 1fr; gap:12px; align-items:center; margin-bottom:26px; }
.fc-map-strip>div,.fc-scale-chain>div { min-height:105px; display:flex; flex-direction:column; justify-content:center; padding:17px 18px; border:1px solid rgba(255,255,255,.07); border-radius:12px; background:rgba(255,255,255,.017); }
.fc-map-strip strong,.fc-scale-chain strong { color:var(--accent); font-size:11px; text-transform:uppercase; letter-spacing:.06em; }
.fc-map-strip span,.fc-scale-chain span { margin-top:7px; color:#cdd7dd; font-size:12px; line-height:1.5; }
.fc-map-strip>b,.fc-scale-chain>b { color:#526571; font-weight:400; }

.fc-framework-figure { max-width:940px; margin:0 auto; padding:22px; background:#f7f7f4; }
.fc-framework-figure img { max-height:790px; object-fit:contain; }
.fc-framework-figure figcaption { padding:15px 4px 1px; color:#667781; font-size:11px; line-height:1.55; }
.fc-path-grid { display:grid; grid-template-columns:1.05fr .95fr; gap:18px; margin-top:20px; }
.fc-inlet-card { padding-top:12px; }
.fc-inlet-card img { max-height:560px; object-fit:contain; }

.fc-sealing-flow { margin-top:-6px; margin-bottom:24px; }
.fc-two-visuals { display:grid; grid-template-columns:.92fr 1.08fr; gap:18px; }
.fc-media-dark { background:#0f1418; }
.fc-media-dark img { aspect-ratio:1.64/1; object-fit:cover; }
.fc-media-light { background:#f5f5f2; }
.fc-media-light img { aspect-ratio:1.95/1; object-fit:contain; }
.fc-convergence-line { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px; margin-top:22px; padding:18px; border:1px solid rgba(255,255,255,.07); border-radius:12px; color:#8fa1ac; font-size:12px; }
.fc-convergence-line b { color:#546773; font-weight:400; }
.fc-convergence-line strong { color:#dce8ee; }

.fc-placeholder-grid,.fc-optimization-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; margin-top:24px; }
.fc-closing-statement { display:grid; grid-template-columns:.7fr 1.3fr; gap:30px; margin-top:28px; padding:26px 28px; border:1px solid rgba(85,184,255,.13); border-radius:14px; background:rgba(85,184,255,.025); }
.fc-closing-statement strong { color:#eef4f6; font-size:24px; letter-spacing:-.02em; }
.fc-closing-statement span { color:#8fa0aa; font-size:13px; line-height:1.7; }
.fc-tool-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:24px; }
.fc-tool-row span { padding:7px 9px; border:1px solid rgba(255,255,255,.075); border-radius:7px; color:#8899a4; font-size:10px; }
.fc-next-link { display:inline-flex; align-items:center; gap:10px; margin-top:46px; color:var(--accent); font-size:14px; font-weight:650; text-decoration:none; }

@media (max-width:900px){
  .project-detail-nav{display:none}.fc-hero-heading,.fc-section-heading,.fc-problem-grid,.fc-path-grid,.fc-two-visuals,.fc-closing-statement{grid-template-columns:1fr;gap:24px}
  .fc-map-strip,.fc-scale-chain{grid-template-columns:1fr}.fc-map-strip>b,.fc-scale-chain>b{transform:rotate(90deg);justify-self:center}.fc-process-row,.fc-placeholder-grid,.fc-optimization-grid{grid-template-columns:1fr}
}
@media (max-width:560px){
  .fc-hero{padding-top:120px}.fc-hero h1{font-size:47px}.fc-section{padding:74px 0}.fc-section-heading h2{font-size:34px}.fc-framework-figure{padding:10px}
}


/* ==========================================================
   v0.6.3 — fixed information hierarchy / typography system
   ========================================================== */

/* Project title: one full-width line on desktop */
.fc-hero-heading {
  display: block !important;
  margin-top: 38px;
}

.fc-hero h1 {
  max-width: none !important;
  font-size: clamp(42px, 4.35vw, 66px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.045em !important;
  white-space: nowrap;
}

/* The logic chain is a major information layer, not micro metadata */
.fc-method-strip {
  margin-top: 30px !important;
  gap: 11px !important;
}

.fc-method-strip span {
  padding: 11px 14px !important;
  font-size: 15px !important;
  line-height: 1.35;
  font-weight: 620;
}

.fc-method-strip b {
  font-size: 18px !important;
}

/* Level 1 inside each section */
.fc-section-heading h2 {
  font-size: clamp(36px, 3.7vw, 52px) !important;
  line-height: 1.1 !important;
}

/*
  Smallest project-page explanatory text.
  All captions / notes / labels below are kept at the same size or larger.
*/
.fc-section-heading p {
  font-size: 13px !important;
  line-height: 1.9 !important;
}

/* Level 2 card headings — intentionally unified */
.fc-media-card figcaption strong,
.fc-real-part-card strong {
  font-size: 20px !important;
  line-height: 1.3;
  font-weight: 680;
}

/* Level 3 supporting text */
.fc-media-card figcaption span,
.fc-real-part-card p,
.fc-framework-figure figcaption,
.fc-placeholder small,
.fc-wide-figure figcaption {
  font-size: 13px !important;
  line-height: 1.65 !important;
}

/* Process / placeholder headings */
.fc-placeholder span {
  font-size: 16px !important;
  line-height: 1.4;
}

/* Key-question callout */
.fc-transition-callout {
  font-size: 16px !important;
  line-height: 1.7 !important;
  font-weight: 580;
}

/* Tolerance mapping and scale mapping labels */
.fc-map-strip strong,
.fc-scale-chain strong {
  font-size: 16px !important;
  letter-spacing: .02em !important;
  text-transform: none !important;
}

.fc-map-strip span,
.fc-scale-chain span {
  font-size: 15px !important;
  line-height: 1.55 !important;
}

.fc-map-strip > b,
.fc-scale-chain > b {
  font-size: 18px !important;
}

/* Micro-sealing chain */
.fc-sealing-flow span {
  font-size: 15px !important;
  padding: 10px 13px !important;
  font-weight: 620;
}

.fc-sealing-flow b {
  font-size: 18px !important;
}

/* The old multiscale convergence sentence is removed in HTML */
.fc-convergence-line {
  display: none !important;
}

/* Optimization placeholders */
.fc-optimization-grid .fc-placeholder span,
.fc-placeholder-grid .fc-placeholder span {
  font-size: 16px !important;
}

.fc-next-link {
  margin-top: 42px !important;
  font-size: 16px !important;
}

/* Do not allow tiny project-detail typography */
.project-detail-page .fc-back,
.project-detail-page .project-detail-nav a {
  font-size: 13px !important;
}

@media (max-width: 1180px) {
  .fc-hero h1 {
    white-space: normal;
  }
}

@media (max-width: 700px) {
  .fc-hero h1 {
    font-size: 42px !important;
  }

  .fc-method-strip span {
    font-size: 14px !important;
  }
}


/* ==========================================================
   v0.6.4 — readable hierarchy + real process/leakage figures
   ========================================================== */

/* All white-background technical figures use actual pure white. */
.fc-white-stage,
.fc-hero-visual,
.fc-framework-figure,
.fc-media-light,
.fc-process-card {
  background: #ffffff !important;
}

/* Section layout: title on one line, explanation directly below. */
.fc-section-heading {
  display: block !important;
  margin-bottom: 38px !important;
}

.fc-section-heading h2 {
  max-width: none !important;
  margin: 0 !important;
}

.fc-section-heading p {
  max-width: 1120px !important;
  margin: 16px 0 0 !important;
  font-size: 16px !important;
  line-height: 1.85 !important;
  color: #a5b2bb !important;
}

/* Hero logic chain: this is core content, not metadata. */
.fc-method-strip {
  gap: 14px !important;
  margin-top: 32px !important;
}

.fc-method-strip span {
  padding: 13px 17px !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  font-weight: 680 !important;
}

.fc-method-strip b {
  color: #6f8ea1 !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}

/* Content-level card titles. */
.fc-media-card figcaption strong,
.fc-real-part-card strong,
.fc-tolerance-scope h3 {
  font-size: 20px !important;
  line-height: 1.35 !important;
  font-weight: 680 !important;
}

/* Supporting text: no miniature content text. */
.fc-media-card figcaption span,
.fc-real-part-card p,
.fc-placeholder small,
.fc-framework-figure figcaption,
.fc-tolerance-scope p,
.fc-tolerance-scope-grid span {
  font-size: 16px !important;
  line-height: 1.68 !important;
}

/* Process images */
.fc-process-row {
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  align-items: stretch;
}

.fc-process-card img {
  width: 100%;
  aspect-ratio: 2.08 / 1;
  object-fit: contain !important;
  background: #fff;
}

.fc-process-card figcaption {
  background: #11161a !important;
}

/* Input / Propagation / Output = same hierarchy as local-section card titles. */
.fc-map-strip strong,
.fc-scale-chain strong {
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.fc-map-strip span,
.fc-scale-chain span {
  margin-top: 9px !important;
  font-size: 16px !important;
  line-height: 1.55 !important;
}

.fc-map-strip > div,
.fc-scale-chain > div {
  min-height: 125px !important;
  padding: 20px 21px !important;
}

/* Tolerance scope block */
.fc-tolerance-scope {
  margin: 28px 0 30px;
  padding: 25px 26px 27px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 14px;
  background: rgba(255,255,255,.018);
}

.fc-tolerance-scope h3 {
  margin: 0;
  color: #edf2f5;
}

.fc-tolerance-scope > p {
  max-width: 980px;
  margin: 10px 0 0;
  color: #96a5af;
}

.fc-tolerance-scope-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin-top: 20px;
}

.fc-tolerance-scope-grid > div {
  min-height: 115px;
  padding: 18px 19px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 11px;
  background: rgba(255,255,255,.015);
}

.fc-tolerance-scope-grid strong {
  display: block;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.fc-tolerance-scope-grid span {
  display: block;
  margin-top: 9px;
  color: #d1dbe1;
}

.fc-tolerance-scope-note {
  margin-top: 17px !important;
  color: #7f919c !important;
}

/* With the alignment placeholder removed, the sealing-path figure gets usable width. */
.fc-path-grid-single {
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}

/* Cross-section -> layer -> stack hierarchy */
.fc-scale-chain strong {
  font-size: 22px !important;
}

.fc-scale-chain span {
  font-size: 17px !important;
}

/* Real leakage figures: first two side-by-side, stack result full-width. */
.fc-leakage-figures {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
  margin-top: 26px;
}

.fc-leakage-figures .fc-media-card img {
  display: block;
  width: 100%;
  height: 390px;
  object-fit: contain;
  background: #fff;
}

.fc-leakage-wide {
  grid-column: 1 / -1;
}

.fc-leakage-wide img {
  height: auto !important;
  max-height: 650px;
}

/* Optimization real result */
.fc-opt-figure img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: contain;
  background: #fff;
}

.fc-optimization-grid {
  align-items: stretch;
}

.fc-optimization-grid > * {
  min-height: 100%;
}

/* Placeholder heading stays readable. */
.fc-placeholder span {
  font-size: 19px !important;
}

@media (max-width: 900px) {
  .fc-tolerance-scope-grid,
  .fc-leakage-figures {
    grid-template-columns: 1fr;
  }

  .fc-leakage-wide {
    grid-column: auto;
  }

  .fc-process-row {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 720px) {
  .fc-method-strip span {
    font-size: 16px !important;
  }

  .fc-method-strip b {
    font-size: 22px !important;
  }
}


/* ==========================================================
   v0.6.5 — layout cleanup / dark-shell technical figures
   ========================================================== */

/* The long project title must wrap naturally according to viewport width. */
.fc-hero h1 {
  max-width: 1240px !important;
  white-space: normal !important;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Logic chain remains prominent; arrows are visually heavier. */
.fc-method-strip span {
  font-size: 21px !important;
}

.fc-method-strip b {
  font-size: 31px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
  transform: scaleX(1.12);
  transform-origin: center;
}

/* Every section explanation sits directly under its title and is readable.
   The opening "problem" paragraph stays the smallest project-page body copy. */
.fc-section-heading p {
  font-size: 17px !important;
  line-height: 1.82 !important;
}

#problem .fc-section-heading p {
  font-size: 16px !important;
}

/* Do not stretch the right "real part" card to match the taller animation. */
.fc-problem-grid {
  align-items: start !important;
}

.fc-real-part-card {
  height: auto !important;
  align-self: start;
}

.fc-real-part-card img {
  aspect-ratio: 16 / 10 !important;
  object-position: center 28%;
}

.fc-real-part-card > div {
  padding: 20px 22px 22px !important;
}

.fc-real-part-card p {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* Remove the obsolete sensitivity sentence if legacy CSS/content remains. */
.fc-tolerance-scope-note {
  display: none !important;
}

/* Two tolerance visuals side by side. Their widths are chosen so natural
   image heights are close without forced white letterboxing. */
.fc-tolerance-visuals {
  display: grid;
  grid-template-columns: .44fr .56fr;
  gap: 18px;
  margin-top: 26px;
  align-items: start;
}

/* Technical figure rule:
   card shell/caption are dark; white exists only inside the technical image. */
.fc-technical-card {
  background: #11161a !important;
  border-color: rgba(255,255,255,.09) !important;
}

.fc-technical-card > img {
  display: block;
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #ffffff;
}

.fc-technical-card figcaption {
  background: #11161a !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

.fc-technical-card figcaption strong {
  font-size: 20px !important;
}

.fc-technical-card figcaption span {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

/* The local sealing-path card no longer has a white outer shell. */
.fc-inlet-card {
  padding-top: 0 !important;
  background: #11161a !important;
}

.fc-inlet-card img {
  max-height: none !important;
}

/* Same correction for "different misalignment" local response. */
.fc-gasket-response-card {
  background: #11161a !important;
}

.fc-gasket-response-card img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff;
}

/* Leakage section: logic vertically on the left, three wide figures on right. */
.fc-leakage-story {
  display: grid;
  grid-template-columns: minmax(250px,.30fr) minmax(0,.70fr);
  gap: 28px;
  align-items: start;
  margin-top: 26px;
}

.fc-scale-chain-vertical {
  display: flex !important;
  flex-direction: column;
  gap: 14px !important;
  margin: 0 !important;
}

.fc-scale-chain-vertical > div {
  width: 100%;
  min-height: 150px !important;
  padding: 24px 22px !important;
  justify-content: center;
}

.fc-scale-chain-vertical > b {
  align-self: center;
  color: #6f8ea1 !important;
  font-size: 34px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .5px currentColor;
  line-height: 1;
}

.fc-scale-chain-vertical strong {
  font-size: 25px !important;
}

.fc-scale-chain-vertical span {
  font-size: 17px !important;
  line-height: 1.6 !important;
}

/* No fixed image height: fixed-height contain was creating the large white bands. */
.fc-leakage-figures {
  display: flex !important;
  flex-direction: column;
  gap: 18px !important;
  margin: 0 !important;
}

.fc-leakage-figures .fc-media-card {
  width: 100%;
}

.fc-leakage-figures .fc-media-card img {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff;
}

.fc-leakage-wide {
  grid-column: auto !important;
}

/* Final optimization section: one real evidence figure, no empty symmetry box. */
.fc-opt-single {
  width: min(100%, 980px);
  margin: 28px auto 0;
}

.fc-opt-single img {
  width: 100%;
  height: auto !important;
  object-fit: contain !important;
  background: #fff;
}

/* Old optimization grid no longer controls layout. */
.fc-optimization-grid {
  display: block !important;
}

/* Remove forced white outer stages from technical cards. */
.fc-technical-card.fc-white-stage,
.fc-inlet-card.fc-white-stage,
.fc-gasket-response-card.fc-white-stage {
  background: #11161a !important;
}

@media (max-width: 980px) {
  .fc-tolerance-visuals,
  .fc-leakage-story {
    grid-template-columns: 1fr;
  }

  .fc-scale-chain-vertical {
    max-width: 720px;
    margin: 0 auto 8px !important;
  }
}

@media (max-width: 720px) {
  .fc-method-strip span {
    font-size: 17px !important;
  }

  .fc-method-strip b {
    font-size: 25px !important;
  }

  .fc-hero h1 {
    overflow-wrap: normal;
  }
}


/* ==========================================================
   v0.6.6 — unified high-fidelity layout system
   ========================================================== */

:root {
  --fc-card-bg: #11161a;
  --fc-card-border: rgba(255,255,255,.085);
  --fc-logic-bg: rgba(255,255,255,.018);
  --fc-logic-border: rgba(255,255,255,.075);
}

/* Logic diagrams share one visual language */
.fc-method-strip,
.fc-sealing-flow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px !important;
}

.fc-method-strip span,
.fc-sealing-flow span {
  padding: 12px 16px !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 12px !important;
  background: var(--fc-logic-bg) !important;
  color: #edf3f6 !important;
  font-size: 20px !important;
  line-height: 1.3 !important;
  font-weight: 670 !important;
}

.fc-method-strip b,
.fc-sealing-flow b {
  color: #78a5c1 !important;
  font-size: 30px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .6px currentColor;
  transform: scaleX(1.15);
}

.fc-section-heading p {
  font-size: 17px !important;
  line-height: 1.82 !important;
}

#problem .fc-section-heading p {
  font-size: 16px !important;
}

/* Problem cards: exact equal height; video visually smaller, part visually larger */
.fc-problem-grid {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-problem-card {
  display: grid !important;
  grid-template-rows: 330px minmax(118px,auto);
  height: 100% !important;
  background: var(--fc-card-bg) !important;
  border-color: var(--fc-card-border) !important;
}

.fc-problem-media {
  min-height: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-video-stage {
  padding: 25px 34px;
  background: #0d1115;
}

.fc-video-stage video {
  width: 89% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: transparent !important;
}

.fc-part-stage {
  background: #f4f4f1;
}

.fc-part-stage img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.10);
}

.fc-problem-card figcaption {
  min-height: 118px;
  padding: 21px 23px 23px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

.fc-problem-card figcaption strong {
  font-size: 20px !important;
}

.fc-problem-card figcaption span {
  margin-top: 7px;
  font-size: 17px !important;
  line-height: 1.62 !important;
}

/* Process cards: no white outer shell */
.fc-process-row {
  align-items: stretch !important;
}

.fc-process-card,
.fc-process-card.fc-white-stage {
  display: grid !important;
  grid-template-rows: 300px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
  border-color: var(--fc-card-border) !important;
}

.fc-process-card img {
  width: 100% !important;
  height: 300px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-process-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Compact and balanced Input -> Propagation -> Output */
.fc-map-strip {
  grid-template-columns: minmax(0,1fr) 54px minmax(0,1fr) 54px minmax(0,1fr) !important;
  gap: 8px !important;
  margin: 4px 0 28px !important;
  align-items: center !important;
}

.fc-map-strip > div {
  min-height: 94px !important;
  padding: 16px 24px !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-map-strip strong {
  font-size: 21px !important;
  font-weight: 720 !important;
}

.fc-map-strip span {
  margin-top: 6px !important;
  font-size: 17px !important;
  line-height: 1.48 !important;
}

.fc-map-strip > b {
  justify-self: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

/* Tolerances: simple list instead of card-in-card */
.fc-tolerance-scope {
  margin: 30px 0 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

.fc-tolerance-scope h3 {
  margin: 0 !important;
  font-size: 22px !important;
  line-height: 1.35 !important;
}

.fc-tolerance-scope > p {
  max-width: 1040px !important;
  margin: 10px 0 14px !important;
  font-size: 17px !important;
  line-height: 1.72 !important;
}

.fc-tolerance-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255,255,255,.07);
}

.fc-tolerance-list li {
  display: grid;
  grid-template-columns: 150px minmax(0,1fr);
  gap: 24px;
  align-items: baseline;
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.fc-tolerance-list strong {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.fc-tolerance-list span {
  color: #d2dce2;
  font-size: 17px;
  line-height: 1.55;
}

/* Tolerance framework + local section: exact equal-height cards */
.fc-tolerance-visuals {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-tolerance-visuals .fc-technical-card {
  display: grid !important;
  grid-template-rows: 360px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
}

.fc-tolerance-visuals .fc-technical-card > img {
  width: 100% !important;
  height: 360px !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-tolerance-visuals .fc-technical-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Micro sealing: identical logic-box and image-card language */
.fc-sealing-flow {
  margin: 2px 0 26px !important;
}

.fc-two-visuals {
  grid-template-columns: 1fr 1fr !important;
  gap: 18px !important;
  align-items: stretch !important;
}

.fc-two-visuals .fc-media-card {
  display: grid !important;
  grid-template-rows: 360px minmax(118px,auto);
  height: 100%;
  background: var(--fc-card-bg) !important;
}

.fc-two-visuals .fc-media-card > img {
  width: 100% !important;
  height: 360px !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-two-visuals .fc-media-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* Leakage:
   top = vertical logic + single-layer card, perfectly aligned;
   bottom cards span the entire combined width. */
.fc-leakage-layout {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 26px;
}

.fc-leakage-top {
  display: grid;
  grid-template-columns: minmax(280px,.31fr) minmax(0,.69fr);
  gap: 20px;
  align-items: stretch;
}

.fc-scale-chain-vertical {
  height: 100%;
  margin: 0 !important;
  display: grid !important;
  grid-template-rows: 1fr 36px 1fr 36px 1fr;
  gap: 0 !important;
}

.fc-scale-chain-vertical > div {
  min-height: 0 !important;
  width: 100%;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center !important;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-scale-chain-vertical > b {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

.fc-scale-chain-vertical strong {
  font-size: 22px !important;
  line-height: 1.25 !important;
}

.fc-scale-chain-vertical span {
  margin-top: 8px !important;
  font-size: 17px !important;
  line-height: 1.55 !important;
}

.fc-layer-card,
.fc-stack-wide-card {
  display: grid !important;
  grid-template-rows: auto minmax(118px,auto);
  background: var(--fc-card-bg) !important;
}

.fc-layer-card > img,
.fc-stack-wide-card > img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  background: #fff !important;
}

.fc-layer-card figcaption,
.fc-stack-wide-card figcaption {
  min-height: 118px;
  padding: 20px 22px 22px !important;
  background: var(--fc-card-bg) !important;
  border-top: 1px solid rgba(255,255,255,.055);
}

/* One real optimization result is enough */
.fc-opt-single {
  width: min(100%,1080px) !important;
  margin: 28px auto 0 !important;
}

@media (max-width: 980px) {
  .fc-problem-grid,
  .fc-tolerance-visuals,
  .fc-two-visuals,
  .fc-leakage-top {
    grid-template-columns: 1fr !important;
  }

  .fc-problem-card,
  .fc-process-card,
  .fc-tolerance-visuals .fc-technical-card,
  .fc-two-visuals .fc-media-card {
    grid-template-rows: auto auto;
  }

  .fc-problem-media,
  .fc-process-card img,
  .fc-tolerance-visuals .fc-technical-card > img,
  .fc-two-visuals .fc-media-card > img {
    height: auto !important;
  }

  .fc-video-stage video {
    min-height: 300px;
  }

  .fc-map-strip {
    grid-template-columns: 1fr !important;
  }

  .fc-map-strip > b {
    transform: rotate(90deg);
  }

  .fc-scale-chain-vertical {
    min-height: 530px;
  }
}

@media (max-width: 680px) {
  .fc-method-strip span,
  .fc-sealing-flow span {
    font-size: 16px !important;
  }

  .fc-method-strip b,
  .fc-sealing-flow b {
    font-size: 23px !important;
  }

  .fc-tolerance-list li {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}


/* v0.6.6 final audit — neutralize legacy horizontal grid on vertical scale chain */
.fc-scale-chain-vertical {
  grid-template-columns: 1fr !important;
  grid-auto-flow: row !important;
}


/* ==========================================================
   v0.6.7 — media fill, GD&T badges, compact evidence cards
   ========================================================== */

/* Problem cards: media ratio matches the source animation (2560×1706),
   therefore video can genuinely fill the card without artificial gutters. */
.fc-problem-card {
  display: flex !important;
  flex-direction: column;
  height: 100% !important;
}

.fc-problem-media {
  width: 100%;
  aspect-ratio: 2560 / 1706;
  flex: 0 0 auto;
}

.fc-video-stage {
  padding: 0 !important;
  background: #0d1115 !important;
}

.fc-video-stage video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center;
}

.fc-part-stage img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  transform: scale(1.12);
}

.fc-problem-card figcaption {
  flex: 1 0 auto;
}

/* Positioning process images: dark buffer between white technical image and card edge. */
.fc-process-card {
  grid-template-rows: 300px minmax(118px,auto) !important;
}

.fc-process-media {
  height: 300px;
  box-sizing: border-box;
  padding: 14px;
  background: #0d1115;
}

.fc-process-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  background: #fff !important;
  border-radius: 10px;
}

/* GD&T / tolerance symbol language */
.fc-tolerance-list li {
  align-items: center !important;
}

.fc-tolerance-list li > span {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
}

.fc-tol-term {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.fc-gdt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  padding: 0 5px;
  border: 1px solid rgba(85,184,255,.32);
  border-radius: 7px;
  background: rgba(85,184,255,.07);
  color: #78c5ff;
  font-family: Arial, "Segoe UI Symbol", sans-serif;
  font-size: 19px;
  line-height: 1;
  font-weight: 900;
  font-style: normal;
  text-shadow: 0 0 .01px currentColor;
}

/* Leakage logic returns to a compact horizontal strip. */
.fc-leakage-layout {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.fc-scale-chain-horizontal {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) 52px minmax(0,1fr) 52px minmax(0,1fr) !important;
  align-items: center;
  gap: 8px !important;
  margin: 0 0 4px !important;
}

.fc-scale-chain-horizontal > div {
  min-height: 96px !important;
  padding: 17px 20px !important;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  border: 1px solid var(--fc-logic-border) !important;
  border-radius: 13px !important;
  background: var(--fc-logic-bg) !important;
}

.fc-scale-chain-horizontal > b {
  justify-self: center;
  color: #78a5c1 !important;
  font-size: 30px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .55px currentColor;
}

.fc-scale-chain-horizontal strong {
  font-size: 21px !important;
  line-height: 1.25 !important;
  font-weight: 720 !important;
}

.fc-scale-chain-horizontal span {
  margin-top: 7px !important;
  font-size: 17px !important;
  line-height: 1.48 !important;
}

/* One card language for technical evidence: explanation left, image right. */
.fc-evidence-card {
  display: grid;
  grid-template-columns: minmax(260px,.34fr) minmax(0,.66fr);
  min-height: 292px;
  overflow: hidden;
  border: 1px solid var(--fc-card-border);
  border-radius: 16px;
  background: var(--fc-card-bg);
}

.fc-evidence-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 34px;
  border-right: 1px solid rgba(255,255,255,.055);
}

.fc-evidence-copy strong {
  color: #eef3f6;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -.018em;
}

.fc-evidence-copy p {
  margin: 13px 0 0;
  color: #9aa9b3;
  font-size: 17px;
  line-height: 1.72;
}

.fc-evidence-media {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px 20px;
  background: #0d1115;
}

.fc-evidence-media img {
  display: block;
  width: 100%;
  max-height: 270px;
  object-fit: contain;
  background: #fff;
  border-radius: 9px;
}

/* The wide optimization plot uses the same restrained card proportions. */
.fc-opt-evidence {
  width: min(100%,1120px);
  margin: 28px auto 0;
  min-height: 310px;
}

.fc-opt-evidence .fc-evidence-media img {
  max-height: 285px;
}

/* Neutralize legacy leakage/optimization rules. */
.fc-leakage-top,
.fc-scale-chain-vertical,
.fc-layer-card,
.fc-stack-wide-card,
.fc-opt-single {
  display: none !important;
}

@media (max-width: 900px) {
  .fc-scale-chain-horizontal {
    grid-template-columns: 1fr !important;
  }
  .fc-scale-chain-horizontal > b {
    transform: rotate(90deg);
  }
  .fc-evidence-card {
    grid-template-columns: 1fr;
  }
  .fc-evidence-copy {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.055);
  }
  .fc-evidence-media img {
    max-height: none;
  }
}


/* ==========================================================
   v0.6.8 — natural-height horizontal evidence cards
   ========================================================== */

/*
  All horizontal evidence cards share the same overall width and the
  same text-column width. Height is now content-driven rather than fixed.
*/
.fc-evidence-card,
.fc-opt-evidence {
  width: 100% !important;
  min-height: 0 !important;
  height: auto !important;
  grid-template-columns: 34% 66% !important;
  align-items: stretch;
}

.fc-evidence-copy {
  min-height: 0 !important;
  padding: 28px 34px !important;
  justify-content: center;
}

/*
  Do not create a fixed-height white image box. The image keeps its own
  aspect ratio and therefore determines the card height naturally.
*/
.fc-evidence-media {
  min-height: 0 !important;
  padding: 12px 14px !important;
  align-items: center;
  justify-content: center;
  background: #0d1115 !important;
}

.fc-evidence-media img,
.fc-opt-evidence .fc-evidence-media img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  border-radius: 8px;
  background: #fff;
}

/* Optimization uses exactly the same full-width card proportions. */
.fc-opt-evidence {
  margin: 28px 0 0 !important;
}

@media (max-width: 900px) {
  .fc-evidence-card,
  .fc-opt-evidence {
    grid-template-columns: 1fr !important;
  }

  .fc-evidence-copy {
    min-height: auto !important;
  }
}


/* ==========================================================
   v0.8.9 — normalize leakage / optimization card typography
   ========================================================== */

/*
  These horizontal evidence cards were added later and had a 23px title,
  while the preceding technical cards use a 20px title / 17px body system.
  Bring them back into the same hierarchy without changing layout.
*/
#leakage .fc-evidence-copy strong,
#optimization .fc-evidence-copy strong {
  font-size: 20px !important;
  line-height: 1.35 !important;
}

#leakage .fc-evidence-copy p,
#optimization .fc-evidence-copy p {
  font-size: 17px !important;
  line-height: 1.65 !important;
}
