* { 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.png") 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;
  }
}
