/* Existing Onest, pure white, turquoise and scarlet are the design contract. */
body[data-theme="duet"] { --ease-feedback: cubic-bezier(.23, 1, .32, 1); }
.hero-slider { display: grid; grid-template-columns: auto 1fr 42px; gap: 15px; align-items: center; margin-top: 12px; font-size: 15px; }
.hero-slider input { width: 100%; min-width: 0; accent-color: var(--accent); cursor: pointer; min-height: 44px; }
.hero-slider output { text-align: right; font-variant-numeric: tabular-nums; }
.hero-challenge { font-size: 15px; color: var(--accent); min-height: 46px; padding: 12px 0; margin: 0; }
.motion-heading strong { color: var(--ink); font-size: 16px; }
.motion-toggle { min-height: 44px; font: 13px Onest, sans-serif; }
.subject-example { cursor: pointer; }
.subject-example .subject-open { position: static; margin-top: auto; min-height: 44px; padding: 12px 18px; font: 15px Onest, sans-serif; color: white; text-decoration: none; border-radius: 8px; width: fit-content; }
.subject-example { display: flex; flex-direction: column; }
.subject-example:focus-within { outline: 2px solid var(--accent); outline-offset: 4px; }
.learning-map h2, .lesson-method > h2, .research h2 { max-width: 900px; }
.map-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 30px; margin-top: 40px; }
.map-art { margin: 0; display: flex; flex-direction: column; }
.map-art img { height: 100%; min-height: 350px; object-fit: cover; object-position: 40% center; border-radius: 4px; }
.map-art figcaption { color: var(--muted); font-size: 14px; line-height: 1.6; padding-top: 20px; }
.route-tree { display: flex; flex-direction: column; gap: 38px; position: relative; }
.route-level { position: relative; }
.route-level-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); margin: 0 0 12px; }
.route-nodes { display: grid; gap: 12px; position: relative; }
.advanced .route-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 580px; margin: auto; }
.branches .route-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.foundations .route-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.map-connectors { position: absolute; width: 100%; height: 30px; bottom: -34px; left: 0; stroke: var(--accent); stroke-width: 1.3; fill: none; opacity: .3; }
.advanced .map-connectors { stroke: var(--secondary); }
.route-node { color: var(--ink); text-decoration: none; padding: 20px 16px; background: #eff9f8; border-radius: 10px; border-top: 3px solid var(--accent); min-width: 0; transition: transform 160ms var(--ease-feedback), box-shadow 160ms var(--ease-feedback); }
.advanced .route-node { background: #fff4f2; border-top-color: var(--secondary); }
.route-node .catalog-icon { width: 32px; height: 32px; color: var(--accent); margin-bottom: 8px; }
.advanced .catalog-icon { color: var(--secondary); }
.route-node h3 { font-size: 17px; line-height: 1.25; letter-spacing: -.2px; margin: 0 0 9px; }
.route-node p { font-size: 13px; line-height: 1.5; margin: 0 0 14px; }
.route-node > span { font-size: 13px; color: var(--accent); font-weight: 600; }
.map-note { color: var(--muted); margin: 0; font-size: 13px; }
.method-layout { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; margin-top: 40px; align-items: start; }
.method-steps { list-style: none; padding: 0; margin: 0; }
.method-steps li { margin: 0; }
.method-steps button { display: flex; text-align: left; gap: 18px; width: 100%; padding: 20px 0; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--ink); font: inherit; cursor: pointer; }
.method-steps button > span { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--muted); font-size: 16px; }
.method-steps [aria-current="step"] > span { background: var(--accent); color: white; }
.method-steps h3 { margin: 0 0 8px; font-size: 20px; }
.method-steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.method-carousel { padding: 28px; border-radius: 12px; border: 1px solid var(--border); background: white; min-width: 0; }
.method-slide { min-height: 435px; }
.method-slide h3 { font-size: 26px; margin: 12px 0; }
.method-slide > p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.method-slide .function-graph { max-height: 255px; }
.slide-number { font-size: 12px !important; margin: 0; }
.slide-answer, .slide-formula { font: 24px Georgia, serif; text-align: center; margin: 20px 0; color: var(--accent); }
.slide-answer span { display: block; font: 13px Onest, sans-serif; margin-top: 8px; color: var(--muted); }
.carousel-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 20px; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-controls button { min-width: 44px; min-height: 44px; border: 1px solid var(--border); border-radius: 50%; color: var(--accent); background: white; font: 14px Onest, sans-serif; cursor: pointer; }
.carousel-controls [aria-pressed="true"] { color: white; background: var(--accent); }
#method-pause { border-radius: 6px; padding: 8px 12px; min-width: 90px; }
.research { position: relative; }
.research-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.research-heading .lead { max-width: 750px; }
.science-motif { flex: 0 0 110px; color: var(--accent); opacity: .3; animation: scientific-float 7s ease-in-out infinite; }
.science-motif svg { width: 110px; height: 110px; }
.research-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; margin-top: 42px; }
.research-grid article { border-top: 2px solid var(--accent); padding-top: 24px; }
.research-stat { color: var(--accent); font-size: 22px; font-weight: 600; }
.research-grid h3 { margin: 16px 0 12px; font-size: 23px; }
.research-grid p { font-size: 16px; line-height: 1.65; color: var(--muted); }
.research-grid a { color: var(--accent); font-size: 14px; line-height: 1.6; }
.research-note { color: var(--muted); font-size: 13px; line-height: 1.6; margin-top: 30px; }
.registration-value { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: start; }
.registration-intro img { display: block; width: 100%; height: auto; border-radius: 8px; margin-top: 28px; }
.registration-benefits article { display: flex; gap: 20px; padding: 0 0 22px; margin-bottom: 22px; border-bottom: 1px solid var(--border); }
.registration-benefits article > span { color: var(--accent); font-size: 16px; padding-top: 5px; }
.registration-benefits h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.35; }
.registration-benefits p { color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0; }
.registration-benefits .registration-destination { font-size: 13px; margin-top: 14px; }
.testing-offer { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding-top: 52px; padding-bottom: 52px; }
.testing-offer h2 { font-size: clamp(27px, 3.5vw, 46px); line-height: 1.3; margin: 0; letter-spacing: -1px; max-width: 1050px; color: var(--accent); }
.company-footer { padding: 65px 0 28px; background: #eff9f8; }
.footer-story { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; align-items: center; padding-bottom: 40px; border-bottom: 1px solid var(--border); }
.footer-story p { font-size: 26px; line-height: 1.25; margin: 20px 0; }
.footer-story img { width: 100%; height: 140px; object-fit: cover; border-radius: 6px; }
.footer-columns { display: grid; grid-template-columns: 1fr 1fr 1.2fr 1.2fr; gap: 30px; padding: 36px 0; }
.footer-columns h3 { font-size: 16px; margin: 0 0 18px; }
.footer-columns a { color: var(--ink); text-decoration: none; display: block; font-size: 14px; line-height: 1.5; padding: 7px 0; overflow-wrap: anywhere; }
.footer-columns a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-contact p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.footer-legal { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--border); padding-top: 20px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.promo-course-pitch { margin-top: 25px; padding: 22px; border-radius: 8px; background: var(--mint); border-left: 3px solid var(--accent); }
.promo-course-pitch h4 { font-size: 20px; margin: 0 0 10px; line-height: 1.3; }
.promo-course-pitch p, .promo-course-pitch li { font-size: 14px; line-height: 1.6; }
.promo-course-pitch ul { margin: 12px 0 20px; padding-left: 20px; }
.promo-course-pitch .button { font-size: 14px; min-height: 44px; }
.subject-dialog .dialog-head { justify-content: flex-end; padding: 8px 18px; z-index: 3; }
.subject-dialog #example-title { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.promo-progress { gap: 12px; font-size: 14px; flex-wrap: nowrap; }
.promo-progress li { flex: 1; align-items: flex-start; }
.promo-progress { position: sticky; top: 61px; background: white; padding: 16px 0; z-index: 2; }
.promo-progress span { flex-shrink: 0; }
.button:active, .motion-toggle:active, .carousel-controls button:active { transform: scale(.97); }
.button, .motion-toggle, .carousel-controls button { transition: transform 160ms var(--ease-feedback); }
@keyframes scientific-float { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-10px) rotate(4deg); } }
@media (hover: hover) and (pointer: fine) {
  .route-node:hover { transform: translateY(-3px); box-shadow: 0 8px 24px #19323a0d; }
  .subject-example:hover .subject-open { background: var(--accent); border-color: var(--accent); }
}
@media (min-width: 1350px) { .branches .route-nodes { grid-template-columns: repeat(6, minmax(0, 1fr)); } .map-layout { grid-template-columns: 140px minmax(0, 1fr); gap: 20px; } .branches .route-node { padding: 16px 10px; } .branches .route-node h3 { font-size: 15px; } }
@media (max-width: 900px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-art { display: none; }
  .method-layout, .registration-value { grid-template-columns: 1fr; gap: 28px; }
  .research-grid { grid-template-columns: 1fr; gap: 24px; }
  .research-grid article { max-width: 650px; }
  .registration-intro img { max-width: 540px; }
  .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .science-motif { flex-basis: 70px; }
  .science-motif svg { width: 70px; height: 70px; }
}
@media (max-width: 560px) {
  .hero-slider { grid-template-columns: 1fr 42px; gap: 4px 10px; }
  .hero-slider span { grid-column: 1 / -1; }
  .motion-heading { flex-wrap: wrap; }
  .route-nodes, .advanced .route-nodes, .branches .route-nodes, .foundations .route-nodes { grid-template-columns: 1fr; }
  .route-node { display: grid; grid-template-columns: 36px 1fr; gap: 8px 14px; }
  .route-node svg { grid-row: 1 / 4; }
  .route-node h3, .route-node p { margin: 0; }
  .route-node > span { grid-column: 2; }
  .map-connectors { display: none; }
  .method-carousel { padding: 18px; }
  .method-slide { min-height: 350px; }
  .method-slide h3 { font-size: 23px; }
  .carousel-controls { flex-wrap: wrap; }
  .science-motif { display: none; }
  .footer-story { grid-template-columns: 1fr 1fr; gap: 16px; }
  .footer-story > div { grid-column: 1 / -1; }
  .footer-story img { height: 115px; }
  .footer-columns { gap: 25px 18px; }
  .footer-legal { flex-direction: column; gap: 0; }
  .promo-progress { font-size: 11px; gap: 7px; }
  .promo-progress li { flex-direction: column; gap: 5px; }
  .promo-course-pitch { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .science-motif { animation: none; }
  .route-node, .button, .motion-toggle, .carousel-controls button { transition: none; }
  .route-node:hover, .button:active, .motion-toggle:active, .carousel-controls button:active { transform: none; }
}
