/* Gene Paradox: a microscopy-led visual campaign. */
.discovery-section .enzyme-art { display: block; width: 100%; height: 100%; object-fit: contain; }
.discovery-section .module-icon { width: 48px; height: 48px; }
.discovery-section .module-button { grid-template-columns: 48px minmax(0,1fr) 15px; }
.discovery-section .module-icon .enzyme-art { transform: scale(1.13); }
.discovery-section .module-button:not(.is-selected) .enzyme-art { opacity: .8; transition: opacity .2s; }
.discovery-section .module-button:hover .enzyme-art { opacity: 1; }
.discovery-section .brief-title>div:first-child { min-width: 0; }
.discovery-section .brief-icon { flex: 0 0 146px; height: 146px; position: relative; }
.discovery-section .brief-icon::before {
  content: ''; position: absolute; inset: 15%; z-index: 0; border-radius: 50%;
  background: radial-gradient(ellipse,#a5c8df26,transparent 70%); filter: blur(8px);
}
.discovery-section .brief-icon .enzyme-art { position: relative; filter: drop-shadow(0 8px 13px #384a6a12); }
.trace-visual { position: relative; isolation: isolate; overflow: hidden; }
.trace-visual::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  width: 330px; height: 240px; right: -20px; top: -40px;
  background: url('gene-paradox-assets/living-cells.webp') center / contain no-repeat;
  opacity: .16; mask-image: linear-gradient(90deg,transparent,#000 35%);
}
.trace-visual .trace-network { position: relative; }
[data-theme="dark"] .trace-visual::before { opacity: .11; }
[data-theme="dark"] .discovery-section .brief-icon .enzyme-art { filter: drop-shadow(0 10px 18px #0002); }
@media (max-width:1200px) {
  .discovery-section .module-button { grid-template-columns: 42px minmax(0,1fr) 13px; }
  .discovery-section .module-icon { width: 42px; height: 42px; }
  .discovery-section .brief-icon { flex-basis: 116px; height: 116px; }
}
@media (max-width:960px) {
  .discovery-section .module-icon { width: 49px; height: 49px; }
}
@media (max-width:760px) {
  .discovery-section .brief-icon { flex-basis: 78px; height: 78px; }
  .trace-visual::before { width: 230px; height: 180px; top: -32px; right: -35px; opacity: .12; }
}
@media (max-width:390px) { .discovery-section .brief-icon { flex-basis: 58px; height: 58px; } }

.hero { overflow: hidden; }
.hero-inner { grid-template-columns: 1.06fr 1fr; gap: 20px; }
.biotech-art { width: 111%; margin: -5px -6% 0 -5%; }
.biotech-art::before {
  inset: 15% 10% 12%; opacity: .45;
  background: radial-gradient(ellipse, #a5c9e140, #cfc6e92b 48%, transparent 72%);
}
.artwork-stage { position: relative; aspect-ratio: 1; perspective: 1400px; }
.biotech-art .artwork-stage img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 30px #26496510);
}
.artwork-stage img[hidden] { display: none; }
.biotech-art .artwork-cells { animation: living-suspension 28s ease-in-out infinite; }
.biotech-art .artwork-protein { padding: 4%; animation: protein-suspension 32s ease-in-out infinite; }
[data-theme="dark"] .biotech-art::before { background: radial-gradient(ellipse, #56869b24, #5c508919 48%, transparent 72%); }
[data-theme="dark"] .biotech-art .artwork-stage img { filter: drop-shadow(0 15px 40px #0002); }
.biotech-art .artwork-caption {
  width: 84%; margin: 14px auto 0; padding-top: 18px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 15px;
}
.artwork-views { display: flex; gap: 25px; }
.artwork-views button {
  font: 10px 'IBM Plex Mono', monospace; letter-spacing: .025em;
  padding: 9px 0; border: 0; border-bottom: 1px solid transparent;
  background: transparent; color: var(--text-soft); cursor: pointer;
}
.artwork-views button[aria-pressed="true"] { color: var(--accent-ink); border-color: currentColor; }
.artwork-views button:hover { color: var(--ink); }
.artwork-caption small {
  grid-column: 1 / -1; font: 7px 'IBM Plex Mono', monospace;
  letter-spacing: .09em; color: var(--text-label);
}
.art-motion-control {
  width: 34px; height: 34px; flex-shrink: 0; padding: 7px;
  display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 50%; color: var(--text-label); background: transparent; cursor: pointer;
}
.art-motion-control:hover { color: var(--accent-ink); border-color: currentColor; }
.art-motion-control svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.35; }
.art-motion-control .play-motion { display: none; }
.artwork-paused .art-motion-control .play-motion { display: block; }
.artwork-paused .art-motion-control .pause-motion { display: none; }
:is(.artwork-views button,.art-motion-control):focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 5px; }
.artwork-scene .art-loop { animation-play-state: paused; }
.artwork-scene.artwork-in-view .art-loop { animation-play-state: var(--art-document-visibility, running); }
.artwork-paused .artwork-scene .art-loop { animation-play-state: paused; }

.biological-interlude {
  position: relative; isolation: isolate; overflow: hidden; margin: 0 25px;
  min-height: 570px; padding: 75px max(7vw, 35px); border-radius: 26px;
  background: #101327; color: #f3f3fc;
}
.cellular-field {
  position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%; animation: cellular-current 38s ease-in-out infinite;
}
.biological-interlude::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #101327fa 0%, #101327e8 24%, #101327a8 42%, #10132710 72%);
}
.interlude-copy { max-width: 640px; }
.interlude-copy .eyebrow { color: #bfc5dc; font-size: 9px; line-height: 1.9; display: block; max-width: 420px; }
.interlude-copy>p { font-size: clamp(35px,3.9vw,60px); font-weight: 400; letter-spacing: -.035em; line-height: 1.14; margin: 38px 0 45px; }
.interlude-copy em { color: #b9b7e7; font-style: normal; }
.interlude-footer { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.interlude-footer>span { color: #d8dcef; font: 8px 'IBM Plex Mono', monospace; letter-spacing: .12em; }
.interlude-footer small { color: #a6afc9; font: 8px 'IBM Plex Mono', monospace; line-height: 1.8; }
.biological-interlude>.art-motion-control { position: absolute; bottom: 28px; right: 30px; color: #d8dcef; border-color: #a2adcd60; background: #10132740; backdrop-filter: blur(8px); }
[data-theme="dark"] .biological-interlude { border: 1px solid #2a3048; }

.bridge { background: #1c2043; border-radius: 26px; isolation: isolate; }
.bridge::after { content: none; }
.bridge>.wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); column-gap: 35px; }
.bridge-heading { grid-column: 1; padding-bottom: 8px; }
.bridge .eyebrow { color: #adb9d9; font-size: 9px; line-height: 1.9; }
.bridge h2 { font-size: clamp(40px,4.4vw,64px); line-height: 1.08; }
.bridge h2 em { color: #aabfe4; }
.bridge-intro { max-width: 575px; font-size: 14px; color: #b5c0db; margin-bottom: 50px; }
.bridge-art {
  position: relative; grid-column: 2; grid-row: 1; align-self: center;
  width: 114%; margin: -45px -7% 0; padding-bottom: 25px;
}
.bridge-art img { display: block; width: 100%; height: auto; animation: protein-suspension 34s ease-in-out infinite; filter: drop-shadow(0 20px 30px #06092330); }
.bridge-art figcaption { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 3px; text-align: center; font: 7px 'IBM Plex Mono', monospace; letter-spacing: .12em; color: #a2b0ce; }
.bridge-art .art-motion-control { color: #b9c7e1; border-color: #a2adcd60; }
.bridge-grid { grid-column: 1 / -1; gap: 38px; margin-top: 15px; }
.bridge-grid article { border-color: #68779b60; }
.bridge-grid span { color: #a5b7d5; }
.bridge-grid p { color: #b5c0db; font-size: 13px; }
[data-theme="dark"] .bridge { background: #131a30; border-color: #2a334d; }

@keyframes living-suspension {
  0%,100% { transform: translate3d(0,0,0) rotate(-2deg) scale(.98); }
  50% { transform: translate3d(-5px,-10px,0) rotate(1deg) scale(1); }
}
@keyframes protein-suspension {
  0%,100% { transform: perspective(1400px) translate3d(0,0,0) rotateY(-9deg) rotateX(3deg) rotate(-5deg); }
  50% { transform: perspective(1400px) translate3d(0,-12px,0) rotateY(9deg) rotateX(-3deg) rotate(5deg); }
}
@keyframes cellular-current {
  0%,100% { transform: scale(1.02) translate3d(0,0,0); }
  50% { transform: scale(1.06) translate3d(-8px,3px,0); }
}
@media (max-width:1100px) {
  .hero-inner { gap: 0; }.biotech-art { width: 112%; margin-left: -6%; }
  .artwork-views { gap: 16px; }.artwork-views button { font-size: 9px; }
  .bridge h2 { font-size: 46px; }.bridge-intro { max-width: 93%; }
  .interlude-copy>p { font-size: 44px; }
}
@media (max-width:760px) {
  .hero-inner { grid-template-columns: 1fr; }
  .biotech-art { width: 104%; max-width: 490px; margin: 12px -2% 0; }
  .biotech-art .artwork-caption { width: 88%; margin-top: 8px; padding-top: 10px; gap: 10px; }
  .artwork-views { gap: 24px; }.artwork-views button { font-size: 10px; padding-block: 12px; }
  .artwork-caption small { font-size: 6px; }.art-motion-control { width: 38px; height: 38px; }
  .biological-interlude { margin: 0 12px; padding: 42px 27px 250px; min-height: 660px; border-radius: 20px; }
  .cellular-field { object-position: 68% 50%; }
  .biological-interlude::after { background: linear-gradient(0deg,#101327bb,transparent 25%),linear-gradient(180deg,#101327f5 0%,#101327e6 30%,#101327a0 49%,#10132700 82%); }
  .interlude-copy .eyebrow { max-width: 250px; font-size: 8px; }
  .interlude-copy>p { font-size: clamp(32px,8.8vw,43px); margin: 30px 0; }
  .interlude-footer { position: absolute; left: 27px; right: 70px; bottom: 26px; gap: 8px; max-width: 240px; }
  .interlude-footer>span { font-size: 8px; }.interlude-footer small { font-size: 7px; color: #bbc4dc; }
  .biological-interlude>.art-motion-control { right: 20px; bottom: 20px; }
  .bridge { border-radius: 20px; }
  .bridge .wrap { padding-top: 55px; grid-template-columns: 1fr; }
  .bridge-heading { width: 100%; padding-bottom: 0; }
  .bridge h2 { font-size: clamp(38px,10.2vw,54px); }
  .bridge-intro { margin-top: 25px; margin-bottom: 25px; font-size: 13px; max-width: 100%; }
  .bridge-art { grid-column: 1; grid-row: auto; width: 290px; max-width: 90%; margin: 0 auto 25px; }
  .bridge-art figcaption { font-size: 6px; }
  .bridge-grid { gap: 30px; }.bridge-grid p { font-size: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  .artwork-scene .art-loop { animation: none; transform: none; }
  .art-motion-control { display: none; }
}
