:root {
  --bg: #07110f;
  --bg-soft: #0b1714;
  --surface: #f3f1ea;
  --surface-2: #e8ebe4;
  --ink: #101614;
  --ink-soft: #53605a;
  --white: #f7f7f2;
  --muted: #a9b4ae;
  --line-dark: rgba(255,255,255,.13);
  --line-light: rgba(16,22,20,.14);
  --green: #7ef2bb;
  --green-strong: #41d38d;
  --pink: #e84e96;
  --shell: min(1280px, calc(100vw - 64px));
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0;
  color: var(--white);
  background: var(--bg);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: var(--shell); margin-inline: auto; }
.section { padding: 144px 0; position: relative; }
.section-light { color: var(--ink); background: var(--surface); }
.metrics-section { padding-top: 96px; padding-bottom: 96px; }
.metrics-section > .shell { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; align-items: start; }
.metrics-heading { display: block; margin: 0; position: sticky; top: 124px; }
.metrics-heading .eyebrow { margin-bottom: 22px; }
.metrics-heading h2 { max-width: 560px; }
.contacts-section { padding-top: 92px; padding-bottom: 72px; }


.site-header {
  position: fixed;
  z-index: 50;
  top: 0; left: 0; right: 0;
  height: 84px;
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7,17,15,.78);
  border-color: var(--line-dark);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; width: max-content; align-items: center; gap: 12px; font-size: 17px; font-weight: 800; letter-spacing: .12em; }
.brand-mark { width: 19px; height: 19px; border: 1px solid var(--green); transform: rotate(45deg); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 4px; border: 1px solid var(--pink); }
.site-nav { display: flex; gap: 34px; font-size: 15px; font-weight: 520; color: #d4ddd8; }
.site-nav a { transition: color .2s ease; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--green); }
.header-contact {
  justify-self: end; min-height: 42px; padding: 0 16px; border: 1px solid rgba(131,245,191,.6); border-radius: 12px;
  display: inline-flex; align-items: center; gap: 18px; background: rgba(131,245,191,.08); color: var(--green);
  font-size: 14px; font-weight: 750; letter-spacing: .025em; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.header-contact:hover, .header-contact:focus-visible { background: var(--green); color: var(--bg); border-color: var(--green); transform: translateY(-1px); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 18px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 750; letter-spacing: .06em; }
.lang-switch a { color: #8fa39b; transition: color .2s ease; }
.lang-switch a:hover, .lang-switch a:focus-visible { color: var(--green); }
.lang-switch a.is-active { color: var(--white); }

.hero { min-height: 100svh; padding: 118px 0 54px; overflow: hidden; position: relative; display: flex; align-items: center; }
.hero-grid { position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to bottom, #000, transparent 88%); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .2; pointer-events: none; }
.hero-glow-a { width: 430px; height: 430px; background: var(--green-strong); top: 5%; right: 15%; }
.hero-glow-b { width: 330px; height: 330px; background: var(--pink); bottom: 3%; left: -7%; opacity: .12; }
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: clamp(52px, 5vw, 84px); align-items: center; }
.eyebrow { margin: 0 0 24px; color: var(--green); text-transform: uppercase; letter-spacing: .17em; font-size: 11px; font-weight: 700; }
.eyebrow-dark { color: #14734a; }
.hero h1 { max-width: 780px; margin: 0; font-size: clamp(56px, 5.55vw, 88px); line-height: .94; letter-spacing: -.055em; font-weight: 720; text-wrap: balance; text-shadow: 0 0 42px rgba(255,255,255,.035); }
.hero-lead { max-width: 700px; margin: 28px 0 0; color: #d1d9d5; font-size: clamp(17px, 1.35vw, 21px); line-height: 1.48; font-weight: 470; }
.hero-actions { margin-top: 32px; display: flex; align-items: center; gap: 18px; }
.button { min-height: 54px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 700; }
.button-primary { color: #07110f; background: var(--green); transition: transform .2s ease, background .2s ease; }
.button-primary:hover { transform: translateY(-2px); background: #a2ffd2; }
.button-secondary { border: 1px solid rgba(255,255,255,.26); color: var(--white); background: rgba(255,255,255,.035); transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.button-secondary:hover { transform: translateY(-2px); border-color: rgba(131,245,191,.65); background: rgba(131,245,191,.08); }
.hero-visual { position: relative; width: min(100%, 390px); justify-self: end; }
.hero-frame { margin: 0; aspect-ratio: .82; overflow: hidden; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: #d8e7df; box-shadow: 0 50px 100px rgba(0,0,0,.35); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: saturate(.86) contrast(1.04); }
.hero-accent { position: absolute; z-index: -1; width: 132px; height: 132px; right: -28px; top: -28px; border-top: 1px solid rgba(131,245,191,.7); border-right: 1px solid rgba(131,245,191,.7); }
.hero-accent::after { content: ""; position: absolute; width: 44px; height: 3px; right: -1px; bottom: 18px; background: var(--pink); box-shadow: 0 0 24px rgba(236,75,154,.55); }
.hero-caption { margin: 16px 0 0; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #7f9289; display: flex; gap: 20px; }
.hero-caption span { color: var(--green); }
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *,
  .hero-visual {
    animation: hero-enter 1.05s cubic-bezier(.22,.75,.2,1) both;
  }
  .hero-copy > *:nth-child(1) { animation-delay: .08s; }
  .hero-copy > *:nth-child(2) { animation-delay: .24s; }
  .hero-copy > *:nth-child(3) { animation-delay: .4s; }
  .hero-copy > *:nth-child(4) { animation-delay: .56s; }
  .hero-visual { animation-delay: .34s; }
  .hero-frame img { animation: hero-zoom 1.6s cubic-bezier(.22,.75,.2,1) both; }
}
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

.section-heading { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; align-items: start; margin-bottom: 80px; }
.section-heading h2, .research-intro h2, .lab-copy h2, .contact-heading h2 { margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.02; letter-spacing: -.045em; font-weight: 620; text-wrap: balance; }
.section-heading-wide h2 { max-width: 980px; }
.metrics-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.metric { min-height: 210px; padding: 28px; border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); display: flex; flex-direction: column; }
.metric:nth-last-child(-n+2) { border-bottom: 0; }
.metric-method { margin: 0 0 18px; color: #14734a; text-transform: uppercase; font-size: 10px; font-weight: 760; letter-spacing: .14em; }
.metric strong { font-size: clamp(42px, 4.5vw, 68px); line-height: 1; letter-spacing: -.055em; font-weight: 650; }
.metric p { margin: 18px 0 0; max-width: 230px; font-size: 16px; font-weight: 620; }
.metric-note { margin-top: auto; color: var(--ink-soft); font-size: 12px; max-width: 230px; }

.research-section { background: var(--bg-soft); }
.research-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 110px; align-items: start; }
.research-intro > p:last-child { margin: 36px 0 0; max-width: 590px; color: #9eada6; font-size: 18px; }
.research-list { border-top: 1px solid var(--line-dark); }
.research-item { padding: 38px 0; border-bottom: 1px solid var(--line-dark); display: grid; grid-template-columns: 64px 1fr; gap: 18px; transition: padding-left .25s ease; }
.research-item:hover { padding-left: 10px; }
.research-item > span { color: var(--green); font-size: 11px; letter-spacing: .12em; }
.research-item h3 { margin: 0; font-size: 25px; letter-spacing: -.025em; }
.research-item p { margin: 12px 0 0; color: #9eada6; max-width: 570px; }

.projects-section { color: var(--ink); background: var(--surface); }
.projects-section .section-heading-wide { display: block; max-width: 880px; margin-bottom: 54px; }
.projects-section .section-heading-wide .eyebrow { margin-bottom: 22px; }
.projects-section .section-heading-wide h2 { max-width: 880px; }
.project-stack { display: grid; gap: 28px; }
.project-card { border: 1px solid var(--line-light); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; align-items: center; background: #ecebe5; transition: transform .3s ease, box-shadow .3s ease; }
.project-card:hover { transform: translateY(-4px); box-shadow: 0 28px 65px rgba(11,23,20,.1); }
.project-card:nth-child(even) .project-media { order: 2; }
.project-media { position: relative; overflow: hidden; background: transparent; display: block; padding: clamp(18px, 2vw, 28px); align-self: center; }
.project-media img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; border-radius: 12px; box-shadow: 0 10px 30px rgba(16,22,20,.06); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-card:hover .project-media img { transform: scale(1.025); }
.project-number { position: absolute; top: 20px; left: 20px; z-index: 3; min-width: 46px; height: 32px; padding: 0 10px; border-radius: 7px; display: grid; place-items: center; background: rgba(7,17,15,.92); color: var(--green); font-size: 10px; letter-spacing: .12em; pointer-events: none; }
.project-copy { padding: clamp(32px, 3.4vw, 52px); display: flex; flex-direction: column; align-items: flex-start; }
.project-category { margin: 0 0 18px; color: #14734a; text-transform: uppercase; font-size: 10px; letter-spacing: .16em; font-weight: 750; }
.project-copy h3 { margin: 0; font-size: clamp(38px, 3.5vw, 58px); line-height: 1; letter-spacing: -.045em; }
.project-summary { margin: 24px 0 0; font-size: 19px; line-height: 1.42; font-weight: 560; }
.project-description { margin: 18px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.62; }
.fact-list { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.fact-list li { padding: 8px 12px; border: 1px solid var(--line-light); border-radius: 999px; font-size: 11px; }
.project-publications { width: 100%; margin-top: 30px; padding-top: 0; display: grid; gap: 9px; border-top: 0; }
.project-publications > span { color: var(--ink-soft); text-transform: uppercase; font-size: 9px; letter-spacing: .16em; }
.project-publications a { margin: 0; padding: 9px 0; border-bottom: 1px solid rgba(16,22,20,.08); font-size: 12px; display: flex; justify-content: space-between; gap: 14px; transition: color .2s ease, padding-left .2s ease; }
.project-publications a:last-child { border-bottom: 0; }
.project-publications a:hover { color: #14734a; padding-left: 4px; }

.lab-section { overflow: hidden; }
.lab-layout { display: grid; grid-template-columns: minmax(300px, .55fr) minmax(0, 1.45fr); gap: 64px; align-items: center; }
.lab-copy > p:last-child { color: #9eada6; max-width: 520px; margin: 34px 0 0; font-size: 18px; }
.lab-gallery { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(260px, .72fr); gap: 14px; align-items: center; }
.lab-image { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,.07); background: #0b1714; }
.lab-image img { display: block; width: 100%; height: auto; object-fit: contain; }
.lab-image-secondary { align-self: center; transform: translateY(26px); }

.contacts-section { padding: 72px 0 46px; background: var(--bg); }
.contact-card { position: relative; overflow: hidden; border: 1px solid var(--line-dark); border-radius: 28px; padding: clamp(34px, 4vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .88fr); gap: 30px 54px; background: linear-gradient(140deg, #0e201a, #08110f 65%); }
.contact-card::before { content: ""; position: absolute; width: 480px; height: 480px; border-radius: 50%; right: -190px; top: -230px; background: var(--pink); opacity: .12; filter: blur(70px); }
.contact-heading { grid-column: 1 / -1; max-width: 700px; margin-bottom: 2px; }
.contact-heading h2 { font-size: clamp(42px, 4.3vw, 64px); }
.contact-main { min-width: 0; }
.contact-person { display: grid; grid-template-columns: 178px 1fr; gap: 28px; align-items: start; }
.contact-person img { width: 178px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-dark); }
.contact-role { margin: 0 0 7px; color: var(--green); font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.contact-person h3 { margin: 0; font-size: 24px; line-height: 1.15; }
.contact-person div > p:last-child { margin: 15px 0 0; color: #9eada6; font-size: 13px; }
.contact-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.contact-links { display: grid; align-content: start; gap: 0; font-size: 14px; }
.contact-links a { padding: 12px 0; border-bottom: 1px solid var(--line-dark); display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.contact-links a:hover { color: var(--green); }
.contact-links small { display: block; margin-bottom: 4px; color: #718078; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .13em; }
.profile-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.profile-links a { padding: 10px 15px; border: 1px solid var(--line-dark); border-radius: 999px; font-size: 11px; display: inline-flex; gap: 8px; transition: border-color .2s ease, color .2s ease; }
.profile-links a:hover { border-color: var(--green); color: var(--green); }
.contact-qr-compact { width: min(100%, 390px); display: grid; grid-template-columns: 164px minmax(0, 1fr); gap: 20px; align-items: center; padding: 16px; border: 1px solid var(--line-dark); border-radius: 16px; background: rgba(255,255,255,.025); }
.contact-qr { width: 164px; height: 164px; object-fit: contain; border-radius: 8px; background: #fff; }
.contact-qr-compact strong { display: block; margin-bottom: 7px; font-size: 15px; }
.contact-qr-compact span { display: block; color: #89978f; font-size: 12px; line-height: 1.45; }
.site-footer { padding: 20px 0 26px; color: #718078; font-size: 11px; background: var(--bg); }
.footer-layout { display: grid; grid-template-columns: 1fr 2fr auto; gap: 24px; border-top: 1px solid var(--line-dark); padding-top: 28px; }
.footer-layout strong { color: var(--white); letter-spacing: .12em; }
.footer-layout p { margin: 0; }

.reveal {
  --reveal-progress: 0;
  opacity: calc(.1 + var(--reveal-progress) * .9);
  transform: translate3d(0, calc((1 - var(--reveal-progress)) * 40px), 0) scale(calc(.97 + var(--reveal-progress) * .03));
  will-change: opacity, transform;
}
.reduced-motion .reveal { opacity: 1; transform: none; }

@media (max-width: 980px) {
  :root { --shell: min(100% - 40px, 900px); }
  .site-header { padding-inline: 20px; grid-template-columns: 1fr auto; }
  .site-nav { display: none; }
  .hero { padding-top: 130px; }
  .hero-layout, .research-layout, .lab-layout { grid-template-columns: 1fr; gap: 64px; }
  .hero-visual { justify-self: start; width: min(70vw, 430px); }
  .section { padding: 104px 0; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; margin-bottom: 54px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .research-intro { position: static; }
  .project-card { grid-template-columns: 1fr; }
  .project-card:nth-child(even) .project-media { order: 0; }
  .project-media { min-height: 0; padding: 14px; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-heading, .profile-links { grid-column: 1; }
  .contact-side { grid-column: 1; }
}

@media (max-width: 620px) {
  :root { --shell: calc(100% - 28px); }
  .site-header { height: 70px; }
  .header-contact { min-height: 38px; padding: 0 12px; gap: 10px; font-size: 11px; }
  .hero { min-height: auto; padding: 112px 0 74px; }
  .hero-layout { gap: 54px; }
  .hero h1 { font-size: clamp(48px, 15vw, 70px); }
  .hero-lead { margin-top: 28px; font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 18px; margin-top: 34px; }
  .hero-visual { width: 86vw; }
  .hero-accent { width: 90px; height: 90px; right: -12px; top: -12px; }
  .section { padding: 82px 0; }
  .section-heading h2, .research-intro h2, .lab-copy h2, .contact-heading h2 { font-size: 40px; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line-light); padding: 28px 0; }
  .metric + .metric { padding-left: 0; }
  .metric:last-child { border-bottom: 0; }
  .research-item { grid-template-columns: 42px 1fr; padding: 30px 0; }
  .research-item h3 { font-size: 21px; }
  .project-stack { gap: 18px; }
  .project-card { border-radius: 20px; min-height: 0; }
  .project-media { padding: 10px; }
  .project-copy { padding: 30px 24px 32px; }
  .project-copy h3 { font-size: 40px; }
  .project-summary { font-size: 17px; }
  .lab-gallery { gap: 10px; }
  .lab-image-secondary { transform: translateY(28px); }
  .contact-card { padding: 32px 24px; border-radius: 22px; gap: 36px; }
  .contact-person { grid-template-columns: 112px 1fr; gap: 16px; }
  .contact-person img { width: 112px; }
  .contact-qr-compact { grid-template-columns: 78px minmax(0, 1fr); width: 100%; }
  .contact-qr { width: 78px; height: 78px; }
  .contact-person h3 { font-size: 19px; }
  .footer-layout { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media (max-width: 1100px) {
  .site-nav { gap: 24px; font-size: 14px; }
  .project-media { padding: 24px; }
  .contact-person { grid-template-columns: 140px 1fr; }
  .contact-person img { width: 140px; }
}

@media (max-width: 760px) {
  .metrics-heading { grid-template-columns: 1fr; gap: 14px; }
  .metric { min-height: 190px; }
  .project-media img { aspect-ratio: auto; }
  .lab-gallery { grid-template-columns: 1fr; }
  .lab-image, .lab-image-secondary { aspect-ratio: 16 / 10; transform: none; }
  .contact-person { grid-template-columns: 96px 1fr; }
  .contact-person img { width: 96px; }
}

/* Final layout polish */
@media (min-width: 981px) and (max-height: 900px) {
  .hero { padding-top: 104px; padding-bottom: 38px; }
  .hero h1 { font-size: clamp(54px, 5.1vw, 80px); }
  .hero-lead { margin-top: 22px; font-size: 17px; }
  .hero-actions { margin-top: 24px; }
  .hero-visual { width: min(100%, 350px); }
}

@media (max-width: 980px) {
  .metrics-section > .shell { grid-template-columns: 1fr; gap: 42px; }
  .metrics-heading { position: static; }
  .metrics-heading h2 { max-width: 720px; }
  .projects-section .section-heading-wide { margin-bottom: 40px; }
  .lab-layout { grid-template-columns: 1fr; gap: 48px; }
  .lab-gallery { grid-template-columns: 1.3fr .7fr; }
  .contact-card { grid-template-columns: 1fr; }
  .contact-qr-compact { width: min(100%, 420px); }
}

@media (max-width: 760px) {
  .metrics-grid { grid-template-columns: 1fr; border-left: 0; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .metric:nth-last-child(-n+2) { border-bottom: 1px solid var(--line-light); }
  .metric:last-child { border-bottom: 0; }
  .project-card { grid-template-columns: 1fr; align-items: start; }
  .project-card:nth-child(even) .project-media { order: 0; }
  .project-media { padding: 14px; }
  .lab-gallery { grid-template-columns: 1fr; }
  .lab-image-secondary { transform: none; }
  .contact-qr-compact { grid-template-columns: 150px minmax(0, 1fr); }
  .contact-qr { width: 150px; height: 150px; }
}

@media (max-width: 480px) {
  .contact-qr-compact { grid-template-columns: 1fr; justify-items: start; }
  .contact-qr { width: 180px; height: 180px; }
}

/* Scroll-scene refinement */
.hero {
  min-height: 100svh;
  padding: 108px 0 34px;
}
.hero-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(390px, .98fr);
  gap: clamp(48px, 4vw, 72px);
}
.hero h1 {
  max-width: 740px;
  font-size: clamp(52px, 4.75vw, 76px);
  line-height: .95;
}
.hero-lead { margin-top: 22px; }
.hero-actions { margin-top: 24px; }
.hero-visual { width: min(100%, 470px); }

.metrics-section { padding: 104px 0 112px; }
.metrics-section > .shell { display: block; }
.metrics-heading {
  position: static;
  display: block;
  max-width: 940px;
  margin: 0 0 64px;
}
.metrics-heading .eyebrow { margin-bottom: 18px; }
.metrics-heading h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 620;
}
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 0;
}
.metric {
  min-height: 230px;
  padding: 30px 30px 24px;
  border-bottom: 0;
}
.metric:first-child { border-left: 1px solid var(--line-light); }
.metric-method { margin-bottom: 24px; }
.metric strong { font-size: clamp(48px, 4.25vw, 64px); }
.metric p { margin-top: 16px; }

.projects-section { padding: 76px 0 0; overflow: clip; }
.projects-intro {
  margin-bottom: 30px;
  max-width: 980px;
}
.projects-intro .eyebrow { margin-bottom: 18px; }
.projects-intro h2 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(48px, 5vw, 72px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 620;
}

.project-scenes { display: grid; gap: 56px; }
.project-scene { position: relative; min-width: 0; }
.project-card {
  position: relative;
  width: 100%;
  min-height: 0;
  aspect-ratio: var(--project-viewport-ratio, 16 / 9);
  display: grid;
  grid-template-columns: minmax(360px, .78fr) minmax(0, 1.22fr);
  align-items: stretch;
  background: var(--surface-2);
  border: 0;
  border-radius: var(--radius);
  box-shadow: none;
  overflow: hidden;
}
.project-card:hover { transform: none; box-shadow: none; }
.project-copy {
  order: 1;
  min-width: 0;
  padding: clamp(32px, 3vw, 48px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}
.project-number {
  position: static;
  width: fit-content;
  min-width: 42px;
  height: 30px;
  margin: 0 0 20px;
  padding: 0 10px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: rgba(7,17,15,.92);
  color: var(--green);
  font-size: 10px;
  letter-spacing: .12em;
}
.project-category { margin: 0 0 14px; }
.project-copy h3 {
  margin: 0;
  max-width: 100%;
  font-size: clamp(36px, 2.8vw, 52px);
  line-height: .98;
  letter-spacing: -.045em;
  overflow-wrap: anywhere;
}
.project-summary { margin: 18px 0 0; font-size: 18px; line-height: 1.38; font-weight: 560; }
.project-description { margin: 12px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.55; }
.fact-list { margin-top: 18px; }
.project-publications { margin-top: 18px; gap: 5px; }
.project-publications a {
  width: fit-content;
  max-width: 100%;
  justify-content: flex-start;
  align-items: baseline;
  gap: 8px;
  border-bottom: 0;
  padding: 6px 0;
}
.publication-arrow { display: inline-block; transition: transform .2s ease; }
.project-publications a:hover { padding-left: 0; }
.project-publications a:hover .publication-arrow { transform: translate(3px, -3px); }
.project-media, .project-card:nth-child(even) .project-media {
  order: 2;
  min-width: 0;
  padding: clamp(16px, 1.6vw, 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
}
.project-card:nth-child(even) .project-copy { order: 1; }
.project-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(16,22,20,.035);
}
.project-card:hover .project-media img { transform: none; }

@media (min-width: 1101px) and (prefers-reduced-motion: no-preference) {
  .project-scenes { gap: 0; }
  .project-scene { height: calc(100vh - 84px + 72vh); }
  .project-scene-sticky {
    position: sticky;
    top: 84px;
    height: calc(100vh - 84px);
    display: grid;
    place-items: center;
  }
  .project-card { transition: none; }
  .project-scene.is-zooming .project-card {
    transform: scale(var(--zoom, 1));
    transform-origin: center center;
    will-change: transform;
  }
}

.lab-section { padding-top: 126px; padding-bottom: 126px; }
.lab-layout {
  grid-template-columns: minmax(320px, .62fr) minmax(0, 1.38fr);
  gap: 72px;
  align-items: center;
}
.lab-gallery {
  display: block;
  position: relative;
  min-height: 520px;
  padding: 18px 110px 72px 0;
}
.lab-image {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  box-shadow: 0 24px 54px rgba(0,0,0,.22);
  background: #0b1714;
}
.lab-image-primary { width: 84%; }
.lab-image-secondary {
  position: absolute;
  width: 44%;
  right: 0;
  bottom: 20px;
  z-index: 2;
  transform: none;
}
.lab-image img { width: 100%; height: auto; object-fit: contain; }

.contacts-section { padding: 76px 0 54px; }
.contact-card {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 28px 60px;
}
.contact-heading { max-width: 760px; }
.contact-side { align-self: end; }

.site-footer { padding: 30px 0 38px; }
.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
  padding-top: 34px;
}
.footer-meta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
}
.footer-meta p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 11px; font-weight: 650; }
.footer-links a { color: #a8b6ae; transition: color .2s ease; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--green); }
.footer-qr {
  display: grid;
  grid-template-columns: 188px 180px;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line-dark);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
}
.footer-qr img {
  width: 188px;
  height: 188px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
}
.footer-qr strong { display: block; color: var(--white); font-size: 14px; letter-spacing: 0; }
.footer-qr p { margin: 6px 0 0; color: #89978f; font-size: 11px; line-height: 1.45; }

@media (min-width: 981px) and (max-height: 900px) {
  .hero { padding-top: 94px; padding-bottom: 24px; }
  .hero h1 { font-size: clamp(50px, 4.45vw, 70px); }
  .hero-lead { margin-top: 18px; font-size: 16px; }
  .hero-actions { margin-top: 20px; }
  .hero-visual { width: min(100%, 420px); }
  .project-copy { padding: 30px 38px; }
}

@media (max-width: 1100px) {
  .metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2) { border-right: 1px solid var(--line-light); }
  .metric:nth-child(3) { border-left: 1px solid var(--line-light); }
  .project-card { grid-template-columns: 1fr; min-height: 0; }
  .project-media { padding: 20px; }
  .lab-gallery { min-height: 430px; padding-right: 74px; }
}

@media (max-width: 760px) {
  .hero { min-height: auto; }
  .hero-visual { width: min(92vw, 470px); }
  .metrics-section { padding: 82px 0; }
  .metrics-heading { margin-bottom: 40px; }
  .metrics-grid { grid-template-columns: 1fr; border-top: 1px solid var(--line-light); }
  .metric, .metric:first-child, .metric:nth-child(3) {
    min-height: 0;
    padding: 28px 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line-light);
  }
  .projects-section { padding-top: 82px; }
  .projects-intro { margin-bottom: 36px; }
  .project-copy { padding: 30px 24px 32px; }
  .lab-layout { grid-template-columns: 1fr; }
  .lab-gallery {
    min-height: 0;
    padding: 0 0 76px;
  }
  .lab-image-primary { width: 92%; }
  .lab-image-secondary { width: 48%; right: 0; bottom: 0; }
  .contact-card { grid-template-columns: 1fr; }
  .footer-layout { grid-template-columns: 1fr; align-items: start; }
  .footer-meta { grid-template-columns: 1fr; gap: 10px; }
  .footer-qr { grid-template-columns: 180px minmax(0, 1fr); width: min(100%, 420px); }
  .footer-qr img { width: 180px; height: 180px; }
}

@media (max-width: 480px) {
  .footer-qr { grid-template-columns: 1fr; }
  .footer-qr img { width: 190px; height: 190px; }
}


/* Laboratory refinement retained from the approved direction. */
@media (min-width: 1101px) {
  .lab-layout {
    grid-template-columns: minmax(380px, .64fr) minmax(0, 1.36fr);
    gap: clamp(72px, 6vw, 120px);
  }
  .lab-copy > p:last-child {
    max-width: 650px;
    font-size: 19px;
    line-height: 1.58;
  }
  .lab-gallery {
    min-height: 680px;
    padding: 24px 150px 110px 0;
  }
  .lab-image-primary { width: 100%; }
  .lab-image-secondary { width: 60%; right: 0; bottom: 4px; }
}

/* Contacts blend into the dark page: no visible card edge. */
.contacts-section {
  padding: 84px 0 58px;
  background:
    radial-gradient(circle at 50% 38%, rgba(31,184,121,.055), transparent 42%),
    radial-gradient(circle at 74% 28%, rgba(182,64,125,.045), transparent 36%),
    var(--bg);
}

.contact-card {
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  overflow: visible;
}

.contact-card::before,
.contact-card::after {
  content: none !important;
}

@media (max-width: 1100px) {
  .project-scenes { gap: 28px; }
  .project-card,
  .project-card:hover {
    width: 100%;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 20px;
  }
  .project-copy { order: 1; }
  .project-media,
  .project-card:nth-child(even) .project-media { order: 2; }
}

/* 2026-09-12 focus reliability and typography refinement */

/* Opacity-only reveal for wrappers of sticky elements: transform/filter create a containing block that breaks position: sticky. */
.reveal-fade {
  --reveal-progress: 0;
  opacity: calc(.1 + var(--reveal-progress) * .9);
}
.reduced-motion .reveal-fade { opacity: 1; }

.project-card {
  grid-template-columns: minmax(420px, .86fr) minmax(0, 1.14fr);
}
.project-copy h3,
.project-title {
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}
.project-title-long {
  font-size: clamp(31px, 2.25vw, 44px) !important;
  letter-spacing: -.035em !important;
}

@media (min-width: 1101px) {
  .contact-person {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 38px;
  }
  .contact-person img {
    width: 300px;
    border: 0;
  }
  .contact-card {
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: 34px 70px;
  }
}
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  margin: 0;
  padding: 18px;
  border: 0;
  background: transparent;
  overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(3,8,7,.94); opacity: 0; transition: opacity .3s ease; }
.lightbox.is-open::backdrop { opacity: 1; }
.lightbox img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  opacity: 0;
  transform: scale(.94);
  transition: opacity .28s ease, transform .34s cubic-bezier(.22,.75,.2,1);
}
.lightbox.is-open img { opacity: 1; transform: scale(1); }
.reduced-motion .lightbox::backdrop,
.reduced-motion .lightbox img { transition: none; }
.project-media img { cursor: zoom-in; }
html:has(.lightbox[open]) { overflow: hidden; }
.project-links {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 10px 24px;
  width: 100%;
  margin-top: 18px;
}
.project-links .project-publications { margin-top: 0; width: auto; }
