/* Homepage-specific refinement: element-led hero, breathing room, and teacher co-design. */

/* Hero artwork: replace the generic molecule graphic with a real element spotlight. */
.page-home .hero2-art.hero-element {
  min-height: 0;
  padding: 12px 4px 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}
.page-home .hero2-art.hero-element::before { display: none; }
.spotlight-head,
.spotlight-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  position: relative;
  z-index: 2;
}
.spotlight-head {
  padding: 0 14px;
  color: #8FAAC4;
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: .16em;
  text-transform: uppercase;
}
.spotlight-index { color: #6CD7F2; }
.element-stage {
  min-height: 322px;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}
.element-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(76%, 340px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(39,153,217,.17), rgba(39,153,217,.045) 48%, transparent 72%);
  filter: blur(5px);
}
.carbon-orbit {
  position: absolute;
  width: min(100%, 418px);
  height: auto;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  overflow: visible;
  filter: drop-shadow(0 10px 30px rgba(28,151,221,.12));
}
.element-tile {
  position: absolute;
  z-index: 2;
  left: 3%;
  bottom: 19px;
  width: 158px;
  min-height: 180px;
  padding: 15px 17px 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: 18px;
  border: 1px solid rgba(190,230,249,.75);
  color: #152C43;
  background: linear-gradient(150deg, #FAFDFF 0%, #E5F4FC 100%);
  box-shadow: 0 22px 48px rgba(0,0,0,.28), 0 0 0 5px rgba(100,190,232,.055);
}
.element-tile-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: #5D7891;
  font: 400 10px/1.3 var(--font-mono);
}
.element-tile strong {
  margin: 5px 0 1px;
  color: #102D49;
  font: 400 75px/.96 var(--font-mono);
  letter-spacing: -.09em;
}
.element-ka { color: #2A4761; font-size: 14px; line-height: 1.35; }
.element-category {
  margin-top: 8px;
  padding: 4px 8px;
  border-radius: 99px;
  border: 1px solid #B8E2F2;
  background: #DDF2FA;
  color: #176D93;
  font-size: 10px;
  line-height: 1.2;
}
.orbit-chip {
  position: absolute;
  z-index: 3;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  color: #C6D8EA;
  border: 1px solid rgba(137,186,223,.2);
  border-radius: 10px;
  background: rgba(10,26,45,.82);
  box-shadow: 0 10px 26px rgba(0,0,0,.16);
  font: 400 10px/1.35 var(--font-mono);
  white-space: nowrap;
}
.orbit-chip-top { top: 38%; }
.orbit-chip-bottom { bottom: 29px; right: 5%; }
.orbit-chip-dot { width: 7px; height: 7px; flex: 0 0 7px; border-radius: 50%; background: #75E6F7; box-shadow: 0 0 12px rgba(117,230,247,.65); }
.orbit-chip-dot-violet { background: #A79BFF; box-shadow: 0 0 12px rgba(167,155,255,.6); }
.spotlight-foot {
  padding: 14px 14px 0;
  border-top: 1px solid rgba(146,190,223,.14);
  color: #91A9C2;
  font-size: 11px;
  line-height: 1.4;
}
.spotlight-foot > span { display: inline-flex; align-items: center; gap: 10px; }
.spotlight-foot b { color: #EAF7FF; font: 400 13px var(--font-mono); letter-spacing: .08em; }
.spotlight-foot i { color: #70D8F1; font-style: normal; padding: 0 2px; }
.spotlight-foot a { color: #75D5F2; text-decoration: none; white-space: nowrap; }
.spotlight-foot a:hover { color: #D2F5FF; }

/* Let the four quick-access cards breathe before the light content begins. */
.page-home .qa-band {
  margin: -27px auto 0;
  padding: 0 20px 76px;
}
.page-home .qa-grid { gap: 16px; }
.page-home .home-light { padding-top: 46px; }

/* Remove the letter-marker visual language from feature-card headings. */
.page-home .sec-head { gap: 14px; }
.page-home .sec-head h2 { min-width: 0; }
.page-home .sec-letter { display: none !important; }

/* Teacher engagement: a concrete classroom feedback and co-design invitation. */
.page-home .home-sec.teacher-involve {
  width: min(1230px, 100%);
  min-height: 0;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  border: 1px solid #D4E5F1;
  border-radius: 24px;
  background:
    radial-gradient(circle at 8% 12%, rgba(30,151,207,.09), transparent 32%),
    linear-gradient(125deg, #F5FAFE 0%, #EAF4FA 100%);
  box-shadow: 0 16px 42px rgba(24,58,88,.075);
}
.page-home .home-sec.teacher-involve::after { display: none; content: none; }
.teacher-involve-copy { min-width: 0; }
.teacher-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #0B83B4;
  font: 500 10px/1.4 var(--font-mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}
.teacher-kicker::before { content: ""; width: 20px; height: 1px; background: #1CA7C8; }
.teacher-involve-copy h2 {
  margin: 0 0 14px;
  color: #142C43;
  font-size: clamp(25px, 3vw, 36px);
  line-height: 1.25;
}
.teacher-intro {
  max-width: 47ch;
  margin: 0 0 20px;
  color: #51687D;
  font-size: 15px;
  line-height: 1.85;
}
.teacher-benefit {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 430px;
  margin: 0 0 22px;
  padding: 11px 13px;
  border: 1px solid #D7EAF4;
  border-radius: 12px;
  background: rgba(255,255,255,.68);
  color: #43677F;
  font-size: 12px;
  line-height: 1.5;
}
.teacher-benefit-mark {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #087EB1;
  background: #E2F4FB;
  font-size: 14px;
}
.teacher-cta { gap: 10px; }
.page-home .teacher-cta .btn { min-height: 46px; padding: 10px 17px; font-size: 12px; }
.page-home .teacher-cta .btn-primary { background: linear-gradient(135deg,#168FD2,#0B75B7); color: #fff; }
.page-home .teacher-cta .btn-ghost { color: #21445F; border-color: #C8D9E6; background: rgba(255,255,255,.48); }
.teacher-process {
  min-width: 0;
  padding: 6px 20px;
  border: 1px solid #D9E7F0;
  border-radius: 19px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 28px rgba(29,67,98,.045), inset 0 1px rgba(255,255,255,.9);
}
.teacher-step {
  display: grid;
  grid-template-columns: 42px minmax(0,1fr);
  align-items: start;
  gap: 14px;
  padding: 19px 0;
}
.teacher-step + .teacher-step { border-top: 1px solid #E5EDF3; }
.teacher-step-no {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #CDE6F3;
  border-radius: 11px;
  background: #EDF8FD;
  color: #1385B9;
  font: 400 11px var(--font-mono);
}
.teacher-step h3 {
  margin: 0 0 5px;
  color: #173750;
  font-size: 14px;
  line-height: 1.45;
}
.teacher-step p {
  margin: 0;
  color: #687F92;
  font-size: 12px;
  line-height: 1.7;
}

@media (max-width: 980px) {
  .page-home .hero2-art.hero-element { width: min(620px, 100%); margin: 0 auto; }
  .page-home .home-sec.teacher-involve { grid-template-columns: minmax(0,1fr); gap: 26px; }
  .teacher-intro { max-width: 68ch; }
}
@media (max-width: 760px) {
  .page-home .qa-band { margin-top: -18px; padding: 0 15px 58px; }
  .page-home .qa-grid { gap: 12px; }
  .page-home .home-light { padding-top: 38px; }
  .element-stage { min-height: 286px; }
  .carbon-orbit { width: min(100%, 360px); right: -1%; }
  .element-tile { width: 130px; min-height: 156px; left: 0; bottom: 15px; padding: 12px 13px; }
  .element-tile strong { font-size: 61px; }
  .element-ka { font-size: 12px; }
  .element-category { font-size: 9px; margin-top: 6px; }
  .orbit-chip { font-size: 9px; padding: 7px 9px; }
  .orbit-chip-top { top: 36%; }
  .orbit-chip-bottom { bottom: 17px; right: 1%; }
  .spotlight-head { padding-inline: 5px; }
  .spotlight-foot { padding-inline: 5px; font-size: 10px; }
  .page-home .home-sec.teacher-involve { padding: 24px 20px; border-radius: 18px; }
}
@media (max-width: 480px) {
  .page-home .hero2-art.hero-element { padding-inline: 0; }
  .element-stage { min-height: 250px; }
  .carbon-orbit { width: 100%; right: -6%; }
  .element-tile { width: 112px; min-height: 137px; left: 0; bottom: 15px; padding: 10px 11px; border-radius: 14px; }
  .element-tile strong { font-size: 52px; margin-top: 4px; }
  .element-tile-top { font-size: 9px; }
  .element-ka { font-size: 11px; }
  .element-category { padding: 3px 6px; font-size: 8px; }
  .orbit-chip { max-width: 145px; white-space: normal; font-size: 8px; right: 0; }
  .orbit-chip-top { top: 36%; }
  .orbit-chip-bottom { bottom: 12px; right: 0; }
  .spotlight-foot { align-items: flex-start; gap: 10px; }
  .spotlight-foot > span { gap: 6px; }
  .spotlight-foot a { max-width: 120px; text-align: right; white-space: normal; }
  .teacher-process { padding-inline: 15px; }
  .teacher-step { grid-template-columns: 34px minmax(0,1fr); gap: 10px; padding: 15px 0; }
  .teacher-step-no { width: 30px; height: 30px; border-radius: 9px; }
  .teacher-cta { align-items: stretch; }
  .teacher-cta .btn { flex: 1 1 100%; }
}

/* Dynamic element spotlight: dark glass card, no white tile. */
.page-home .element-tile {
  color: #EAF7FF;
  border: 1px solid rgba(113,211,244,.34);
  background: linear-gradient(145deg, rgba(20,43,68,.96), rgba(8,22,40,.98));
  box-shadow: 0 24px 54px rgba(0,0,0,.38), inset 0 1px 0 rgba(226,248,255,.08), 0 0 34px rgba(64,177,222,.12);
  backdrop-filter: blur(14px);
  transition: opacity .28s ease, transform .28s ease, border-color .28s ease;
}
.page-home .element-tile strong { color: #F1FBFF; text-shadow: 0 0 28px rgba(96,214,246,.18); }
.page-home .element-tile-top { color: #8FAFC8; }
.page-home .element-ka { color: #D6E8F6; }
.page-home .element-category {
  border-color: rgba(102,211,241,.28);
  background: rgba(44,151,190,.14);
  color: #83DDF5;
}
.page-home .element-stage { transition: opacity .26s ease, filter .26s ease; }
.page-home .element-stage.is-changing { opacity: .12; filter: blur(4px); }
.page-home .carbon-orbit { overflow: visible; }
.page-home .electron-ring {
  transform-box: view-box;
  transform-origin: 210px 160px;
  animation: electronOrbit 13s linear infinite;
}
.page-home .electron-ring[data-ring="1"] { animation-duration: 18s; animation-direction: reverse; }
.page-home .electron-ring[data-ring="2"] { animation-duration: 24s; }
.page-home .electron-ring[data-ring="3"] { animation-duration: 29s; animation-direction: reverse; }
@keyframes electronOrbit { to { transform: rotate(360deg); } }
.spotlight-progress {
  height: 2px;
  width: calc(100% - 28px);
  margin: 1px auto 0;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(137,180,211,.12);
}
.spotlight-progress span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  background: linear-gradient(90deg,#61D8F2,#9B9BFF);
  box-shadow: 0 0 12px rgba(97,216,242,.5);
}
@media (prefers-reduced-motion: reduce) {
  .page-home .electron-ring { animation: none !important; }
  .page-home .element-stage, .page-home .element-tile { transition: none !important; }
  .spotlight-progress { display: none; }
}
.spotlight-meta { display: inline-flex; align-items: center; gap: 12px; }
.spotlight-toggle {
  padding: 5px 9px;
  border: 1px solid rgba(124,188,221,.2);
  border-radius: 999px;
  color: #A9C6DB;
  background: rgba(13,31,51,.58);
  font: 500 10px/1.2 var(--font-sans);
  cursor: pointer;
}
.spotlight-toggle:hover { border-color: rgba(111,216,242,.55); color: #E5F8FF; }
.spotlight-toggle:focus-visible { outline: 2px solid #79DFF5; outline-offset: 3px; }
.spotlight-toggle:disabled { opacity: .55; cursor: default; }
.element-stage.motion-paused .electron-ring { animation-play-state: paused; }
@media (max-width: 480px) { .spotlight-meta { gap: 7px; } .spotlight-toggle { padding: 5px 7px; font-size: 9px; } }
.page-home .element-stage.single-shell .orbit-chip-bottom { display: none; }

/* Real periodic-table screenshot in the first feature card. */
.page-home #seca::after {
  content: none;
  display: none;
}
.page-home .home-card-visual-link {
  display: block;
  min-width: 0;
  min-height: 190px;
  align-self: center;
  overflow: hidden;
  border: 1px solid rgba(71, 150, 194, .3);
  border-radius: 19px;
  background: #080F1D;
  box-shadow: 0 14px 34px rgba(8, 24, 42, .16);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.page-home .home-card-visual-link:hover {
  transform: translateY(-2px);
  border-color: rgba(91, 205, 241, .62);
  box-shadow: 0 18px 40px rgba(8, 24, 42, .24);
}
.page-home .home-card-visual-link:focus-visible {
  outline: 3px solid #72DDF5;
  outline-offset: 4px;
}
.page-home .home-card-visual-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.page-home #seca .periodic-table-visual {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-height: 0;
  aspect-ratio: 1550 / 768;
}
.page-home #seca .periodic-table-visual img {
  object-fit: contain;
  object-position: center;
}
.page-home #secb .home-card-visual-link { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; }
.page-home #secc .home-card-visual-link { grid-column: 2; grid-row: 1; aspect-ratio: 16 / 9; }
.page-home #secb::after,
.page-home #secc::after { content: none; display: none; }

/* The author card is intentionally text-only; remove the generic empty artwork column. */
.page-home .home-sec.author {
  display: block;
  min-height: 0;
}
.page-home .home-sec.author::after {
  content: none;
  display: none;
}
.page-home .home-sec.author .sec-body {
  width: 100%;
  max-width: 82ch;
}

@media (max-width: 980px) and (min-width: 761px) {
  .page-home #secb .home-card-visual-link { grid-column: 2; grid-row: 1; }
  .page-home #secb .sec-body { grid-column: 1; grid-row: 1; }
}

@media (max-width: 760px) {
  .page-home #seca .periodic-table-visual,
  .page-home #secc .home-card-visual-link {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
  .page-home #secb .home-card-visual-link {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
  }
  .page-home #secb .sec-body { grid-column: 1; grid-row: 2; }
  .page-home .home-card-visual-link { min-height: 145px; }
}


/* The complete element spotlight is one keyboard-accessible link. */
.page-home #elementStage { color: inherit; text-decoration: none; cursor: pointer; }
.page-home #elementStage:focus-visible { outline: 3px solid #72DDF5; outline-offset: 5px; border-radius: 16px; }
