/* ================================================================
   QUÍMICA V16.6 · PREMIUM SCIENTIFIC EXPERIENCE
   Visual refresh of the complete portal. No external fonts/assets.
   ================================================================ */
:root {
  --color-page:#f3f6fc;
  --color-surface:#ffffff;
  --color-surface-soft:#f4f7fd;
  --color-ink:#0b1c30;
  --color-ink-soft:#263b55;
  --color-muted:#64748b;
  --color-line:#dce5f0;
  --color-line-strong:#c6d3e3;
  --color-brand:#1e3a8a;
  --color-brand-strong:#17316f;
  --color-brand-soft:#e8efff;
  --color-accent:#0d9488;
  --color-accent-soft:#e2f6f2;
  --color-focus:#f59e0b;
  --content-width:1280px;
  --header-height:82px;
  --radius-md:1.05rem;
  --radius-lg:1.65rem;
  --shadow-card:0 18px 52px rgba(17,38,74,.085);
}

html { scroll-behavior:smooth; background:#f3f6fc; }
body {
  color:var(--color-ink);
  background:
    radial-gradient(ellipse at 7% 8%,rgba(59,130,246,.075),transparent 30rem),
    radial-gradient(ellipse at 94% 23%,rgba(13,148,136,.055),transparent 28rem),
    linear-gradient(180deg,#f7f9fe 0%,#f1f5fb 100%);
}
body::before {
  position:fixed; inset:0; z-index:-1; pointer-events:none; content:"";
  opacity:.22;
  background-image:radial-gradient(rgba(31,58,105,.22) .65px,transparent .65px);
  background-size:24px 24px;
  mask-image:linear-gradient(180deg,transparent 0%,#000 12%,#000 80%,transparent 100%);
}
.container { width:min(var(--content-width),calc(100% - 3rem)); }

/* Header and navigation */
.site-header {
  border-bottom:1px solid rgba(204,216,232,.78);
  background:rgba(250,252,255,.91);
  box-shadow:0 8px 28px rgba(20,42,76,.045);
  backdrop-filter:blur(20px) saturate(1.35);
}
.site-header::before { content:""; display:block; height:3px; background:linear-gradient(90deg,#17316f 0%,#2563eb 42%,#0d9488 78%,#f59e0b 100%); }
.header-inner { min-height:var(--header-height); gap:1.1rem; }
.brand { gap:.8rem; }
.brand-mark { width:3rem; height:3rem; border:1px solid #d9e3f0; border-radius:1rem; background:linear-gradient(145deg,#fff,#edf3fc); box-shadow:0 8px 22px rgba(21,44,82,.11); }
.brand-copy strong { color:#10284b; font-size:1rem; letter-spacing:.075em; }
.brand-copy span { color:#718096; font-size:.59rem; letter-spacing:.14em; }
.main-nav { gap:.24rem; }
.main-nav a { min-height:2.7rem; padding:.62rem .82rem; border:1px solid transparent; border-radius:.82rem; color:#52647d; font-size:.77rem; font-weight:760; transition:background .18s,border-color .18s,color .18s,transform .18s; }
.main-nav a:hover { color:#163b85; background:#edf3ff; border-color:#dce7fb; transform:translateY(-1px); }
.main-nav a[aria-selected="true"] { color:#fff; border-color:#1e3a8a; background:linear-gradient(135deg,#1e3a8a,#254fa5); box-shadow:0 7px 18px rgba(30,58,138,.2); }
.header-note { color:#547067; font-size:.7rem; font-weight:700; }
.header-tools .button { border-radius:.75rem; }

/* Home hero */
.hero { padding:clamp(2rem,4vw,3.25rem) 0 3rem; }
.hero-grid {
  position:relative; isolation:isolate; overflow:hidden;
  min-height:430px; padding:clamp(2rem,5vw,4.1rem);
  border:1px solid rgba(120,161,207,.35); border-radius:2rem;
  background:linear-gradient(116deg,#081b39 0%,#102d55 49%,#07565b 100%);
  box-shadow:0 28px 80px rgba(9,30,67,.19),inset 0 1px 0 rgba(255,255,255,.12);
}
.hero-grid::before {
  position:absolute; inset:0; z-index:-1; content:"";
  background-image:linear-gradient(rgba(190,219,255,.055) 1px,transparent 1px),linear-gradient(90deg,rgba(190,219,255,.055) 1px,transparent 1px);
  background-size:38px 38px; mask-image:linear-gradient(90deg,#000 0%,#000 56%,transparent 100%);
}
.hero-grid::after { position:absolute; z-index:-1; width:34rem; height:34rem; right:12%; top:-20rem; border:1px solid rgba(111,232,225,.24); border-radius:50%; box-shadow:0 0 0 42px rgba(111,232,225,.035),0 0 0 86px rgba(111,232,225,.025),0 0 90px rgba(34,211,238,.12); content:""; }
.hero-grid > div:first-child { position:relative; z-index:1; }
.hero .eyebrow,.hero .section-kicker { color:#83e5df; }
.hero .eyebrow::before { background:#f5bd68; }
.hero h1 { max-width:48rem; margin:1.15rem 0 1.2rem; color:#f6f9ff; font-size:clamp(2.65rem,5vw,4.45rem); line-height:1.02; letter-spacing:-.065em; }
.hero h1 span { color:#77e2dc; text-shadow:0 0 34px rgba(78,224,214,.15); }
.hero-description { max-width:42rem; color:#c4d4e7; font-size:1rem; line-height:1.8; }
.hero-actions { gap:.65rem; }
.hero-actions .button { min-height:3.1rem; padding-inline:1.15rem; border-radius:.85rem; font-size:.78rem; }
.hero-actions .button-primary { color:#09263a; border-color:#9ae9df; background:linear-gradient(110deg,#a8f0e4,#62d4d1); box-shadow:0 10px 28px rgba(40,207,191,.18); }
.hero-actions .button-primary:hover { background:linear-gradient(110deg,#c4fff4,#7ae8df); }
.hero-actions .button-secondary { color:#e4edf9; border-color:rgba(202,222,255,.25); background:rgba(255,255,255,.075); backdrop-filter:blur(8px); }
.hero-actions .button-secondary:hover { border-color:rgba(145,231,224,.6); background:rgba(255,255,255,.14); }
.scope-strip { margin-top:2rem; border:1px solid rgba(201,225,250,.22); border-radius:1rem; background:rgba(255,255,255,.055); }
.scope-item { padding:1rem 1.15rem; background:transparent; }
.scope-item + .scope-item { border-left:1px solid rgba(201,225,250,.17); }
.scope-item strong { color:#fff; font-size:1.65rem; }
.scope-item span { color:#b6c8dc; }
.hero-panel { min-height:21rem; border:1px solid rgba(210,239,255,.32); border-radius:1.35rem; background:linear-gradient(145deg,rgba(255,255,255,.16),rgba(255,255,255,.055)); box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 20px 50px rgba(0,0,0,.12); backdrop-filter:blur(14px); }
.panel-label { color:#c9e5ef; }
.status-dot { color:#8ce5c6; }
.status-dot::before { background:#54d6a6; box-shadow:0 0 14px rgba(84,214,166,.7); }
.element-display { width:10rem; height:10.5rem; border:1px solid rgba(255,255,255,.6); border-top:4px solid #70ded3; border-radius:1rem; background:linear-gradient(145deg,#ffffff,#eaf5ff); box-shadow:0 20px 45px rgba(0,0,0,.2); }
.element-symbol { color:#173b83; font-size:4rem; }
.element-number { color:#6c7d97; }
.element-name { color:#1b3457; }
.panel-foot { color:#c3d8e8; }
.decor-orbit { border-color:rgba(128,236,224,.25); }
.decor-orbit::before,.decor-orbit::after { border-color:rgba(128,236,224,.18); }

/* Section hierarchy and learning cards */
.section { position:relative; padding:clamp(3.2rem,5.5vw,4.6rem) 0; }
.section-heading { align-items:flex-end; margin-bottom:2rem; }
.section-kicker { display:inline-flex; align-items:center; gap:.5rem; color:#1e5b98; font-family:var(--font-mono); font-size:.65rem; font-weight:850; letter-spacing:.13em; }
.section-kicker::before { width:1.3rem; height:2px; border-radius:2px; background:linear-gradient(90deg,#2563eb,#0d9488); content:""; }
.section-heading h2 { color:#10294a; font-size:clamp(1.8rem,3.1vw,2.45rem); letter-spacing:-.055em; }
.section-heading p { max-width:34rem; color:#64748b; font-size:.83rem; line-height:1.8; }
.discipline-grid { gap:1rem; }
.discipline-card {
  position:relative; isolation:isolate; overflow:hidden; min-height:12.5rem;
  padding:1.45rem; border:1px solid #dce6f2; border-radius:1.15rem;
  background:linear-gradient(145deg,#fff 0%,#f7faff 100%);
  box-shadow:0 5px 18px rgba(22,47,88,.035);
}
.discipline-card::before { position:absolute; z-index:-1; right:-2.7rem; top:-3rem; width:9rem; height:9rem; border:1px solid rgba(37,99,235,.11); border-radius:50%; box-shadow:0 0 0 17px rgba(37,99,235,.025),0 0 0 34px rgba(13,148,136,.02); content:""; }
.discipline-card::after { position:absolute; left:0; top:1rem; bottom:1rem; width:3px; border-radius:0 3px 3px 0; background:linear-gradient(180deg,#2563eb,#0d9488); content:""; opacity:.8; }
.discipline-card:hover { transform:translateY(-5px); border-color:#a9c5e9; box-shadow:0 18px 35px rgba(22,47,88,.1); }
.card-index { color:#3970b7; font-family:var(--font-mono); font-size:.62rem; letter-spacing:.08em; }
.discipline-card h3 { color:#132d4c; font-size:1.12rem; }
.discipline-card p { color:#657791; font-size:.77rem; line-height:1.7; }
.card-arrow { color:#087f83; }
.feature-section { border-block:1px solid #e0e8f3; background:linear-gradient(135deg,#edf3fc 0%,#f6f9fe 54%,#edf8f6 100%); }
.feature-grid { gap:3rem; }
.feature-copy h2 { color:#112c4c; }
.feature-copy p { color:#657791; }
.feature-item { padding:1rem; border-color:#dce6f1; border-radius:.95rem; background:rgba(255,255,255,.82); box-shadow:0 5px 16px rgba(25,50,86,.035); }
.feature-number { background:#e7efff; color:#2458a2; }
.feature-item strong { color:#193653; font-size:.79rem; }
.feature-item span:last-child { color:#6b7d94; }

/* Periodic table framing — keep scientific grid dimensions untouched. */
.periodic-workbench { border-color:#d4dfed; border-radius:1.45rem; box-shadow:0 22px 56px rgba(16,42,82,.09); }
.periodic-workbench-head { background:linear-gradient(115deg,#edf4ff 0%,#f7faff 62%,#e9f8f5 100%); }
.periodic-kicker { color:#245ba2; }
.periodic-workbench-head h3 { color:#102d53; font-size:1.8rem; }
.periodic-workbench-head p { color:#5d718c; }
.periodic-head-stats span { border-color:#dce7f4; background:rgba(255,255,255,.9); box-shadow:0 3px 10px rgba(24,53,93,.035); }
.periodic-head-stats b { color:#1d477d; }
.periodic-app-nav { background:#fbfdff; }
.periodic-app-tab.is-active { background:#e8f0ff; color:#1e4e91; box-shadow:inset 0 0 0 1px #cddcf4; }
.periodic-view { background:linear-gradient(180deg,#fff,#fcfdff); }
.v11-series-wrap { border-color:#dce7f2; background:#f7faff; }

/* General laboratory and PhET resources */
.lab-subheading { padding-top:1rem; border-top:1px solid #e0e8f2; }
.phet-grid { gap:1rem; }
.phet-card { border-color:#dce6f2; border-radius:1.1rem; box-shadow:0 8px 24px rgba(20,44,83,.055); transition:transform .2s,border-color .2s,box-shadow .2s; }
.phet-card:hover { transform:translateY(-4px); border-color:#b7cbe8; box-shadow:0 17px 34px rgba(20,44,83,.10); }
.phet-index { color:#2b62a8; }
.availability-pill { background:#eaf3f7; color:#326276; }
.phet-card h3 { color:#173454; }
.lab-card { border-color:#dce6f1; border-radius:.95rem; background:linear-gradient(145deg,#fff,#f5f8fd); box-shadow:0 5px 16px rgba(22,47,88,.035); transition:transform .2s,border-color .2s,box-shadow .2s; }
.lab-card:hover { transform:translateY(-3px); border-color:#afc7e7; box-shadow:0 13px 25px rgba(22,47,88,.09); }
.lab-card span { color:#2861a7; font-family:var(--font-mono); }
.lab-card h3 { color:#1c3655; font-size:.78rem; }
.lab-note { border:1px solid #e0e9f3; background:#f3f7fc; color:#667992; }

/* Dedicated portal for the standalone 3D laboratory */
.lab3d-page { background:linear-gradient(180deg,rgba(235,242,252,.75),rgba(248,250,254,.92)); }
.lab3d-section-heading { margin-bottom:1.65rem; }
.lab3d-portal-card {
  display:grid; grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr); overflow:hidden;
  min-height:480px; border:1px solid #163b56; border-radius:1.7rem;
  background:#091a2d; box-shadow:0 28px 70px rgba(7,28,61,.19),inset 0 1px 0 rgba(255,255,255,.08);
}
.lab3d-portal-visual {
  position:relative; isolation:isolate; overflow:hidden; min-height:480px;
  background:radial-gradient(ellipse at 51% 42%,#1b6381 0%,#123f5e 34%,#0b2039 76%,#08182a 100%);
}
.lab3d-portal-visual::before { position:absolute; inset:0; z-index:-1; content:""; background:linear-gradient(135deg,rgba(42,211,209,.12),transparent 42%),linear-gradient(0deg,rgba(2,9,20,.55),transparent 55%); }
.lab3d-visual-grid { position:absolute; inset:15% -22% -24%; transform:perspective(520px) rotateX(62deg); background-image:linear-gradient(rgba(118,226,234,.15) 1px,transparent 1px),linear-gradient(90deg,rgba(118,226,234,.15) 1px,transparent 1px); background-size:34px 34px; mask-image:linear-gradient(transparent,#000 18%,#000 72%,transparent); }
.lab3d-visual-orbit { position:absolute; left:50%; top:45%; width:255px; height:255px; border:1px solid rgba(125,240,231,.58); border-radius:50%; transform:translate(-50%,-50%) rotateX(64deg) rotateZ(-24deg); box-shadow:0 0 38px rgba(42,211,209,.14),inset 0 0 30px rgba(42,211,209,.08); }
.lab3d-visual-orbit-b { width:320px; height:320px; transform:translate(-50%,-50%) rotateX(64deg) rotateZ(49deg); border-color:rgba(100,171,255,.34); }
.lab3d-visual-orbit-c { width:185px; height:185px; transform:translate(-50%,-50%) rotateY(66deg) rotateZ(14deg); border-color:rgba(255,197,115,.37); }
.lab3d-visual-molecule { position:absolute; left:50%; top:43%; width:190px; height:190px; transform:translate(-50%,-50%); filter:drop-shadow(0 20px 26px rgba(0,0,0,.42)); }
.lab3d-visual-molecule::before,.lab3d-visual-molecule::after { position:absolute; left:50%; top:50%; width:122px; height:10px; border-radius:10px; background:linear-gradient(90deg,#94a3b8,#e7f4ff,#64748b); content:""; transform:translate(-50%,-50%) rotate(45deg); }
.lab3d-visual-molecule::after { transform:translate(-50%,-50%) rotate(-45deg); }
.lab3d-visual-molecule i,.lab3d-visual-molecule b { position:absolute; z-index:2; width:38px; height:38px; border:2px solid rgba(255,255,255,.65); border-radius:50%; background:radial-gradient(circle at 30% 24%,#f8fbff,#7d9db4 65%,#223b55); box-shadow:inset -3px -4px 7px rgba(0,0,0,.25),0 4px 12px rgba(0,0,0,.25); }
.lab3d-visual-molecule b { left:calc(50% - 24px); top:calc(50% - 24px); width:48px; height:48px; background:radial-gradient(circle at 30% 24%,#a4fff2,#1aaeb1 62%,#075b73); }
.lab3d-visual-molecule i:nth-child(1){left:calc(50% - 19px);top:0}.lab3d-visual-molecule i:nth-child(2){right:0;top:calc(50% - 19px)}.lab3d-visual-molecule i:nth-child(3){left:calc(50% - 19px);bottom:0}.lab3d-visual-molecule i:nth-child(4){left:0;top:calc(50% - 19px)}
.lab3d-visual-flask { position:absolute; right:13%; bottom:9%; width:76px; height:112px; opacity:.82; filter:drop-shadow(0 12px 15px rgba(0,0,0,.32)); }
.lab3d-visual-flask::before { position:absolute; left:30px; top:0; width:16px; height:43px; border:2px solid rgba(209,243,255,.72); border-bottom:0; border-radius:4px 4px 0 0; content:""; }
.lab3d-visual-flask::after { position:absolute; left:9px; top:35px; width:58px; height:69px; border:2px solid rgba(209,243,255,.75); border-top:0; border-radius:8px 8px 25px 25px; background:linear-gradient(180deg,transparent 0 43%,rgba(34,211,203,.55) 44%,rgba(14,116,144,.66) 100%); clip-path:polygon(36% 0,64% 0,64% 26%,100% 100%,0 100%,36% 26%); content:""; }
.lab3d-visual-readout { position:absolute; z-index:3; display:grid; gap:.2rem; padding:.62rem .78rem; border:1px solid rgba(164,220,239,.22); border-radius:.75rem; background:rgba(5,20,37,.56); box-shadow:0 8px 24px rgba(0,0,0,.13); backdrop-filter:blur(12px); }
.lab3d-visual-readout small { color:#8abccf; font:700 .5rem/1.2 var(--font-mono); letter-spacing:.1em; }
.lab3d-visual-readout strong { color:#e7f8ff; font:700 .72rem/1.2 var(--font-mono); }
.lab3d-readout-one { left:7%; top:15%; }
.lab3d-readout-two { right:7%; top:25%; }
.lab3d-visual-label { position:absolute; left:1.5rem; bottom:1.35rem; color:#9ac7d6; font:700 .56rem/1.2 var(--font-mono); letter-spacing:.15em; }
.lab3d-portal-info { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; padding:clamp(1.8rem,4vw,3.2rem); color:#e3edf8; background:linear-gradient(145deg,#0d223a,#0a1a2e 72%); }
.lab3d-chip { display:inline-flex; align-items:center; gap:.55rem; padding:.42rem .72rem; border:1px solid rgba(97,224,221,.28); border-radius:999px; color:#8ee9e0; background:rgba(13,148,136,.1); font:750 .59rem/1.2 var(--font-mono); letter-spacing:.095em; }
.lab3d-chip-dot { width:.42rem; height:.42rem; border-radius:50%; background:#65e3bd; box-shadow:0 0 0 4px rgba(101,227,189,.12),0 0 12px rgba(101,227,189,.4); }
.lab3d-portal-info h3 { max-width:32rem; margin:1.2rem 0 .8rem; color:#f6f9ff; font-size:clamp(1.8rem,3vw,2.65rem); line-height:1.07; letter-spacing:-.055em; }
.lab3d-portal-info > p { max-width:40rem; color:#b6c9dd; font-size:.86rem; line-height:1.8; }
.lab3d-feature-list { display:grid; grid-template-columns:1fr 1fr; width:100%; gap:.8rem 1rem; margin:1.25rem 0 1.35rem; }
.lab3d-feature-list span { display:flex; align-items:flex-start; gap:.58rem; color:#d9e9f6; font-size:.73rem; line-height:1.45; }
.lab3d-feature-list span::before { flex:0 0 .43rem; width:.43rem; height:.43rem; margin-top:.28rem; border-radius:50%; background:#62dbd0; box-shadow:0 0 0 4px rgba(98,219,208,.1); content:""; }
.lab3d-portal-metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); width:100%; gap:.55rem; margin:.2rem 0 1.35rem; }
.lab3d-portal-metrics > div { display:flex; flex-direction:column; gap:.17rem; padding:.68rem .75rem; border:1px solid rgba(151,190,221,.17); border-radius:.8rem; background:rgba(255,255,255,.045); }
.lab3d-portal-metrics strong { color:#8ce9df; font:750 1.05rem/1.1 var(--font-mono); }
.lab3d-portal-metrics span { color:#93aabe; font-size:.57rem; line-height:1.3; }
.lab3d-actions { display:flex; width:100%; gap:.7rem; margin-top:.15rem; }
.lab3d-open-tab { min-height:3.25rem; border-color:#79e2d7; border-radius:.88rem; background:linear-gradient(110deg,#9df0e4,#55d2c9); color:#082b3b; box-shadow:0 12px 28px rgba(34,211,203,.17); font-size:.78rem; }
.lab3d-open-tab:hover { background:linear-gradient(110deg,#c3fff3,#6ee8db); box-shadow:0 16px 32px rgba(34,211,203,.23); }
.lab3d-status { margin:.85rem 0 0!important; color:#8faabd!important; font-size:.65rem!important; line-height:1.6!important; }
.lab3d-benefit-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.9rem; margin-top:1.1rem; }
.lab3d-benefit-card { display:flex; align-items:flex-start; gap:.8rem; padding:1.05rem; border:1px solid #dce6f2; border-radius:1rem; background:rgba(255,255,255,.83); box-shadow:0 6px 18px rgba(20,44,83,.04); }
.lab3d-benefit-icon { display:grid; flex:0 0 2.2rem; width:2.2rem; height:2.2rem; place-items:center; border-radius:.72rem; color:#24569a; background:#e9f0ff; font:800 .68rem/1 var(--font-mono); }
.lab3d-benefit-card h3 { margin:.1rem 0 .25rem; color:#173452; font-size:.78rem; }
.lab3d-benefit-card p { margin:0; color:#6b7c92; font-size:.67rem; line-height:1.55; }

/* Nexus, library and closing section */
.nexus-section { background:linear-gradient(180deg,#f4f7fc,#f8fafc); }
.nexus-portal-card { border-color:#183b58; border-radius:1.7rem; box-shadow:0 28px 72px rgba(7,28,61,.17); }
.nexus-portal-visual { min-height:460px; }
.nexus-portal-info { background:linear-gradient(145deg,#0d223a,#0a1a2e); }
.nexus-launch-button { border-radius:.85rem; }
.nexus-game-shell { border-radius:1.35rem; box-shadow:0 24px 65px rgba(7,26,52,.2); }
.library-grid { gap:1rem; }
.library-card { position:relative; overflow:hidden; min-height:10rem; padding:1.4rem; border-color:#dce6f2; border-radius:1.1rem; background:linear-gradient(145deg,#fff,#f6f9fe); box-shadow:0 7px 22px rgba(20,44,83,.045); transition:transform .2s,border-color .2s,box-shadow .2s; }
.library-card::after { position:absolute; right:-2rem; bottom:-3rem; width:7rem; height:7rem; border:1px solid rgba(37,99,235,.12); border-radius:50%; box-shadow:0 0 0 14px rgba(37,99,235,.025); content:""; }
.library-card:hover { transform:translateY(-4px); border-color:#b5c9e6; box-shadow:0 16px 32px rgba(20,44,83,.09); }
.library-card h3 { color:#183756; font-size:.95rem; }
.library-card p { color:#6c7e94; font-size:.72rem; }
.closing { position:relative; isolation:isolate; overflow:hidden; padding:clamp(1.8rem,4vw,3rem); border:1px solid rgba(137,192,218,.24); border-radius:1.5rem; background:linear-gradient(115deg,#0d2340,#10445a); box-shadow:0 20px 48px rgba(10,35,67,.13); }
.closing::after { position:absolute; z-index:-1; right:-4rem; top:-8rem; width:19rem; height:19rem; border:1px solid rgba(112,224,215,.23); border-radius:50%; box-shadow:0 0 0 26px rgba(112,224,215,.04),0 0 0 54px rgba(112,224,215,.025); content:""; }
.closing h2 { max-width:45rem; color:#f6fbff; font-size:clamp(1.65rem,3vw,2.2rem); }
.closing p { max-width:43rem; color:#c1d5e4; font-size:.78rem; line-height:1.75; }
.site-footer { margin-top:1rem; padding:1.6rem 0 2rem; color:#6c7e94; font-size:.68rem; }
.footer-inner { padding-top:1.3rem; border-top:1px solid #dbe4f0; }

/* Responsive refinements */
@media(max-width:1100px){
  .hero-grid { gap:2rem; }
  .lab3d-portal-card { grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr); }
  .lab3d-visual-flask { right:7%; }
}
@media(max-width:900px){
  .hero-grid { grid-template-columns:1fr; }
  .hero-panel { max-width:28rem; width:100%; margin-inline:auto; }
  .lab3d-portal-card { grid-template-columns:1fr; }
  .lab3d-portal-visual { min-height:350px; }
  .lab3d-portal-info { padding:1.8rem; }
}
@media(max-width:700px){
  .container { width:min(100% - 1.5rem,var(--content-width)); }
  .hero { padding:1.25rem 0 2rem; }
  .hero-grid { padding:1.55rem; border-radius:1.35rem; }
  .hero h1 { font-size:clamp(2.35rem,10vw,3.3rem); }
  .hero-actions { align-items:stretch; }
  .hero-actions .button { width:100%; }
  .scope-strip { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .scope-item { padding:.72rem .55rem; text-align:center; }
  .scope-item strong { font-size:1.25rem; }
  .scope-item span { font-size:.58rem; }
  .section { padding:2.7rem 0; }
  .section-heading { margin-bottom:1.35rem; }
  .lab3d-portal-visual { min-height:300px; }
  .lab3d-visual-readout { padding:.48rem .6rem; }
  .lab3d-readout-one { left:4%; top:9%; }
  .lab3d-readout-two { right:4%; top:18%; }
  .lab3d-visual-flask { right:5%; bottom:7%; transform:scale(.78); transform-origin:bottom right; }
  .lab3d-benefit-grid { grid-template-columns:1fr; }
  .lab3d-feature-list { grid-template-columns:1fr; }
  .lab3d-portal-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .lab3d-portal-info { padding:1.35rem; }
  .lab3d-open-tab { width:100%; }
  .library-grid { grid-template-columns:1fr; }
}
@media(max-width:460px){
  .hero-grid { padding:1.2rem; }
  .hero-panel { min-height:17rem; }
  .scope-strip { gap:0; }
  .lab3d-portal-metrics { gap:.35rem; }
  .lab3d-portal-metrics > div { padding:.55rem .45rem; }
  .lab3d-portal-metrics span { font-size:.52rem; }
  .lab3d-visual-label { font-size:.46rem; left:.8rem; }
}
@media(prefers-reduced-motion:reduce){
  .discipline-card,.phet-card,.lab-card,.library-card,.main-nav a { transition:none!important; }
  .hero-grid::after,.lab3d-visual-orbit { animation:none!important; }
}
