/* Shimino homepage: editorial science studio. Motion is gated by visibility and preference. */
.home{--bg:#080808;--surface:#151111;--tint:#251717;--ink:#f5f5f5;--muted:#c0c0c0;--line:#503333;--accent:#ff5959;--highlight:#ff5959;background:var(--bg)}
:root[data-theme=light] .home{--bg:#f7f7f7;--surface:#fff;--tint:#e9e9e9;--ink:#231d1d;--muted:#605454;--line:#d3d3d3;--accent:#a20e0e;background:var(--bg)}
.home .wrap{width:min(1280px,calc(100% - 64px))}
.home .home-wrap{padding-top:24px}
.home .local-note{background:#080808;color:#c0c0c0;text-align:center;font-size:14px;padding:5px 16px}
.home .site-header{width:min(1280px,calc(100% - 64px));margin:16px auto 0;top:12px;border:1px solid var(--line);border-radius:18px;background:var(--surface);box-shadow:0 10px 35px #2706060d}
.home .nav.wrap{width:calc(100% - 36px);height:76px;gap:22px}
.home .site-header .shimino-brand .shimino-wordmark{width:154px;border-radius:6px}
.home .nav-links{gap:27px}.home .nav-links a{font-size:16px}
.home .nav-actions{gap:8px}.home .icon-button{border-radius:10px;background:transparent}
.home .button{border-radius:10px;box-shadow:0 4px 0 #00000015}
.home .hero{grid-template-columns:1.12fr 1fr;gap:14px 70px;position:relative;isolation:isolate;min-height:650px;padding:44px 50px 0;border:1px solid #94343466;border-radius:24px;background:radial-gradient(ellipse at 18% 52%,#6d0a0a80,transparent 60%),#100909;overflow:hidden;box-shadow:0 20px 50px #1f030310}
.home .hero::before{width:610px;height:610px;left:-60px;top:-90px;border:1px solid #ff707024;border-radius:50%;z-index:-1}
.home .hero::after{content:'SHIMINO';position:absolute;bottom:35px;left:25px;z-index:-1;font:800 clamp(70px,12vw,170px)/1 Arial,sans-serif;letter-spacing:.04em;color:#ff56560c;pointer-events:none}
.home .hero-copy{padding:0 0 8px;align-self:center;z-index:2}
.home .hero .hero-intro{display:inline-flex;align-items:center;gap:9px;max-width:none;padding:5px 12px;margin:0 0 26px;border:1px solid #ff505055;border-radius:999px;background:#ff555516;color:#e4e4e4;font-size:14px}
.intro-dot{height:6px;width:6px;border-radius:50%;background:#ff5151;box-shadow:0 0 0 4px #ff515123}
.home .hero .hero-overline{margin:0 0 11px;color:#c1c1c1;font-size:14px}
.home .hero h1{font-size:clamp(38px,4.4vw,64px);font-weight:950;line-height:1.6;letter-spacing:-.025em;color:#ff5959;margin:0 0 20px}
.home .hero h1::first-line{color:#f9f9f9}
.home .hero .hero-description{font-size:16px;line-height:2.15;max-width:445px;color:#cccccc;margin-bottom:28px}
.home .hero .actions{gap:12px}.home .hero .button{padding:13px 20px;font-size:16px;min-height:52px}
.home .hero-secondary{background:#e8e8e80e!important;border-color:#fa6c6c5e!important;color:#f4f4f4!important;box-shadow:none}
.home .hero-secondary:hover{background:#361414!important;border-color:#ff4d4d!important}
.home .hero-facts{margin-top:26px;gap:24px;color:#c7c7c7;font-size:14px}.home .hero-facts .icon{color:#ff6464}
.home .hero-visual{padding:20px 22px 34px;align-self:center;position:relative;isolation:isolate;width:100%;min-width:0}
.portrait-orbit{position:absolute;inset:18px -10px 24px;border:1px solid #ff3a3a55;border-radius:50%;transform:rotate(-20deg);z-index:-1}
.portrait-orbit::before{content:'';position:absolute;inset:-24px 36px;border:1px solid #ff3a3a40;border-radius:50%;transform:rotate(44deg)}
.portrait-orbit::after{content:'';position:absolute;inset:32px -25px;border:1px dashed #ff3a3a30;border-radius:50%;transform:rotate(-20deg)}
.home .hero-portrait{margin:0;width:100%;max-width:none;position:relative;transform:rotate(-3deg)}
.home .hero-portrait img{width:100%;height:416px;object-fit:cover;object-position:center 24%;border-radius:150px 150px 24px 24px;border:1px solid #ec6b6b66;box-shadow:0 20px 50px #00000075}
.home .hero-portrait figcaption{position:relative;width:calc(100% + 8px);margin:-25px -4px 0;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:14px 18px;border:1px solid #d3595966;border-radius:12px;background:#1d1111;color:#f9f9f9;box-shadow:0 12px 25px #0e000030;transform:rotate(3deg)}
.teacher-caption-icon{width:38px;height:38px;background:#3b1515;border-radius:50%;display:flex;align-items:center;justify-content:center;flex:none;color:#ff4d4d}
.teacher-caption-icon .icon{width:20px;height:20px}
.home .hero-portrait figcaption strong{display:block;color:#f9f9f9;font-size:16px;font-weight:700}
.home .hero-portrait figcaption small{display:block;margin-top:3px;color:#b9b9b9;font-size:14px}
.home .chemistry-mark{top:-8px;left:48%;right:auto;width:36px;height:36px;opacity:.5;color:#d5d5d5}
.chemistry-formula{position:absolute;left:50%;bottom:5px;transform:translateX(-50%);font:13px/1.5 Georgia,serif;letter-spacing:.2em;white-space:nowrap;color:#bbbbbb}
.portrait-edition{position:absolute;left:-35px;top:50%;writing-mode:vertical-rl;font:8px/1.2 Arial,sans-serif;letter-spacing:.2em;color:#a9a9a9}
.element-note{position:absolute;z-index:3;width:78px;min-height:100px;padding:7px 10px;border:1px solid #e4585880;border-radius:10px;background:#351010;color:#eaeaea;box-shadow:0 12px 30px #00000060;direction:ltr;text-align:left;font-family:Arial,sans-serif;animation:kamali-drift 6s ease-in-out infinite;animation-play-state:paused;transform:translate3d(0,0,0) rotate(var(--tilt));pointer-events:none}
.element-note>span{display:block;font-size:12px;line-height:1.25;opacity:.85}
.element-note>strong{display:block;font-size:34px;line-height:1.25;font-weight:400;letter-spacing:-.04em}
.element-note>small{display:block;font-size:7px;letter-spacing:.08em;line-height:1.8}
.element-note>b{display:block;font-size:8px;font-weight:400;opacity:.75;line-height:1.5}
.element-k{left:-17px;top:35px;--tilt:-12deg;--drift-x:9px;--drift-y:-15px;--sway:7deg;animation-duration:6.2s;animation-delay:-1s}
.element-am{right:-24px;top:90px;--tilt:11deg;--drift-x:-8px;--drift-y:14px;--sway:-6deg;animation-duration:7.4s;animation-delay:-3s;background:#a51212;color:#f9f9f9}
.element-al{left:-28px;bottom:82px;--tilt:9deg;--drift-x:12px;--drift-y:12px;--sway:-7deg;animation-duration:6.8s;animation-delay:-4s;background:#561919;color:#f5f5f5}
.element-i{right:-17px;bottom:30px;--tilt:-10deg;--drift-x:-10px;--drift-y:-13px;--sway:8deg;animation-duration:7.9s;animation-delay:-2s;background:#251212;color:#ececec}
[data-floating-active=true] .element-note{animation-play-state:running}
@keyframes kamali-drift{0%,100%{transform:translate3d(0,0,0) rotate(var(--tilt))}50%{transform:translate3d(var(--drift-x),var(--drift-y),0) rotate(calc(var(--tilt) + var(--sway)))}}
.hero-bottom{grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:16px;border-top:1px solid #f7595940;padding:18px 0;direction:ltr;color:#bfbfbf}
.hero-bottom>span{font:9px/1.5 Arial,sans-serif;letter-spacing:.2em}.home .hero-bottom p{margin:0;color:#bdbdbd;font-size:14px;direction:rtl;max-width:none}.hero-bottom>.icon{font-size:18px}
.home .route-strip{grid-template-columns:200px 1fr;gap:24px;padding:30px 0 24px;border:0}
.home .route-strip h2{font-size:23px;margin-bottom:4px}.home .route-strip p{font-size:14px}.home .route-strip .section-kicker{font-size:14px}
.home .grade-links{gap:12px}.home .grade-links a{position:relative;isolation:isolate;overflow:hidden;justify-content:flex-start;gap:12px;padding:21px 16px;border-radius:15px;background:var(--surface);border:1px solid var(--line);min-height:105px;box-shadow:inset 0 3px var(--grade-tone,#ff5959)}
.home .grade-links a:nth-child(1){--grade-tone:#ff6464}.home .grade-links a:nth-child(2){--grade-tone:#ff4d4d}.home .grade-links a:nth-child(3){--grade-tone:#f74a4a}.home .grade-links a:nth-child(4){--grade-tone:#e46161}
.home .grade-links a::after{content:'';position:absolute;width:100px;height:100px;left:-40px;top:-45px;border:1px solid var(--grade-tone);border-radius:50%;opacity:.22;z-index:-1}
.grade-symbol{font-size:32px;font-weight:400;color:var(--grade-tone);line-height:1;border-inline-end:1px solid var(--line);padding-inline-end:12px;min-width:42px}
:root[data-theme=light] .grade-symbol{color:var(--ink)}
.grade-links a:last-child .grade-symbol{font-size:16px}.grade-links strong{display:block;font-size:16px}.grade-links small{display:block;color:var(--muted);font-size:14px;margin-top:5px}
.home .grade-links a:hover{transform:translateY(-5px);border-color:var(--grade-tone);box-shadow:inset 0 3px var(--grade-tone),0 12px 26px #38070728}
.home .section{padding:64px 0}.home .home-courses{padding-top:34px}
.home-section-top{display:flex;align-items:center;justify-content:space-between;gap:24px}.home-section-top>.text-link{flex:none;gap:8px;font-size:16px}
.home .section-heading h2{font-size:36px;margin:12px 0;line-height:1.65}.home .section-heading p{font-size:16px}.home .section-kicker{font-size:14px;color:var(--accent);letter-spacing:0}
.home .course-feature{grid-template-columns:1fr 1.1fr;gap:36px;border-radius:22px;padding:32px;background:radial-gradient(ellipse at 90% 10%,#8f1a1a3b,transparent 65%),#170e0e;border:1px solid #83363670}
.home .course-feature-art{padding:12px;border-radius:14px;border:1px solid #e3444433;background:#100808;align-self:center;transform:rotate(2deg)}
.home .course-feature-art>img.course-poster{box-shadow:0 12px 30px #0004;border-radius:10px}
.home .course-feature h3{font-size:25px;line-height:1.8}.home .course-feature .course-subtitle{font-size:16px;color:#c1c1c1}
.home .course-feature .meta-list{gap:12px}.home .course-feature .meta-list li{font-size:14px;color:#d3d3d3}
.home .course-feature .course-footer{border-color:#e7626235}.home .course-price ins{color:#ff5959;font-size:26px}
.home .grade-courses{gap:22px;margin-top:24px}.home .grade-course{border-radius:18px;background:var(--surface);box-shadow:0 8px 30px #11000015}
.home .grade-course-content{padding:24px}.home .grade-course h3{font-size:17px}.home .grade-course .course-heading{gap:8px}.home .grade-course .button.secondary{border-color:var(--line);background:var(--tint);color:var(--ink)}
.home .grade-course:hover{border-color:var(--accent);transform:translateY(-7px);box-shadow:0 15px 30px #11000040}
.home .sample-section{margin-top:28px;padding:46px 58px;border:1px solid var(--line);border-radius:24px;background:radial-gradient(ellipse at left bottom,var(--tint),transparent 70%),var(--surface);position:relative;overflow:hidden}
.home .sample-section::before{content:'PLAY';position:absolute;left:-10px;bottom:-30px;font:800 160px/1 Arial,sans-serif;color:var(--ink);opacity:.025;pointer-events:none}
.home .sample-layout{grid-template-columns:1fr 260px;gap:70px}.home .sample-aside h2{font-size:42px;margin:18px 0}.home .sample-aside p{max-width:480px;font-size:16px;line-height:2.1}
.home .portrait-video{max-width:250px;border-radius:18px;transform:rotate(-2deg);box-shadow:14px 14px 0 var(--tint),0 12px 35px #11000030}
.home .portrait-video .video-label{font-size:14px;padding:12px}.home .portrait-video .video-label span:last-child{display:none}
.home .teaching-section{padding-top:100px}.home .teaching-layout{gap:60px;grid-template-columns:.8fr 1.2fr}.home .teaching-copy h2{font-size:38px}.home .teaching-points{gap:16px;counter-reset:teaching}
.home .teaching-points article{position:relative;counter-increment:teaching;padding:28px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
.home .teaching-points article::after{content:counter(teaching,persian);position:absolute;top:16px;left:22px;font-size:30px;color:var(--muted);opacity:.25;font-weight:700}
.home .teaching-points article:nth-child(2),.home .teaching-points article:nth-child(4){transform:translateY(22px)}
.home .teaching-points h3{font-size:19px}.home .teaching-points p{font-size:16px}.home .teaching-icon{border-radius:12px;width:46px;height:46px;background:var(--tint);color:var(--accent)}
.discovery{display:grid;grid-template-columns:1fr 1fr;direction:ltr;background:#180e0e;border:1px solid #8c414180;border-radius:24px;overflow:hidden;position:relative;isolation:isolate}
.discovery-art{position:relative;min-width:0}.discovery-art img{width:100%;height:100%;object-fit:cover;object-position:35% center;min-height:590px}
.discovery-art::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent 65%,#180e0e)}
.art-label{position:absolute;left:28px;bottom:26px;color:#c3c3c3;font:9px/1.5 Arial,sans-serif;letter-spacing:.18em;z-index:1}
.discovery-copy{direction:rtl;padding:48px 42px;min-width:0}.home .discovery-copy .section-kicker{color:#ff4d4d}.home .discovery-copy h2{font-size:48px;color:#f8f8f8;margin:20px 0;line-height:1.6}.discovery-copy h2 em{color:#ff5959;font-style:normal}.home .discovery-copy>p{color:#c4c4c4;font-size:16px;line-height:2.1;max-width:410px}
.element-picker{display:flex;gap:10px;margin:24px 0 14px;direction:ltr;justify-content:flex-end}
.element-picker button{width:78px;min-height:94px;position:relative;text-align:center;border:1px solid #ad5e5e66;border-radius:10px;background:#2b1414;color:#d4d4d4;padding:9px 6px;cursor:pointer}
.element-picker button small{position:absolute;top:5px;left:8px;font-size:14px}.element-picker button strong{font:34px/1.4 Arial,sans-serif;display:block}.element-picker button span{font-size:14px}
.element-picker button[aria-pressed=true]{background:#d20c0c;color:#f9f9f9;border-color:#d20c0c;box-shadow:0 5px 20px #0002;transform:translateY(-4px)}
.home .element-fact{color:#d7d7d7;font-size:14px;min-height:84px;line-height:2;margin-bottom:20px}.element-fact strong{display:block;color:#ff6666;font-weight:600;margin-bottom:5px}.element-fact span{display:block}
.lab-tools{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:16px}.lab-tools>a{display:flex;align-items:center;gap:14px;text-decoration:none;border:1px solid var(--line);border-radius:15px;background:var(--surface);padding:22px 18px;min-width:0}
.lab-tools>a:hover{border-color:var(--accent);transform:translateY(-3px)}.lab-tool-icon{width:40px;height:40px;flex:none;border-radius:12px;background:var(--tint);display:grid;place-items:center;color:var(--accent)}
.lab-tools strong{display:block;font-size:16px}.lab-tools small{display:block;font-size:14px;color:var(--muted);margin-top:4px}.tool-tag{font-size:14px;color:var(--accent);margin-inline-start:auto;white-space:nowrap}
.home .faq-section{display:grid;grid-template-columns:.8fr 1.2fr;gap:70px}.home .faq-section .section-heading{position:sticky;top:130px}.home .faq-list details{border:1px solid var(--line);border-radius:13px;padding-inline:20px;margin-bottom:12px;background:var(--surface)}
.home .faq-list summary{font-size:16px}.home .faq-list details[open]{border-color:var(--accent)}.home .faq-list p{font-size:16px;line-height:2.1}
.home .feedback-layout{background:var(--tint);border-radius:18px;padding:30px}.home .feedback-layout h2{font-size:25px}.home .feedback-layout p{font-size:16px}.home .contact-band{border-radius:24px;border-color:var(--line);background:var(--surface)}
@media(max-width:1100px){
 .home .hero{gap:14px 36px;padding:38px 36px 0;min-height:610px}.home .hero h1{font-size:clamp(36px,4.5vw,50px)}.home .hero .button{padding:11px 14px;font-size:14px}.home .hero-portrait img{height:360px}.home .hero-visual{padding:24px 16px 34px}
 .home .route-strip{grid-template-columns:1fr;gap:18px}.home .grade-links a{padding:20px}.home .nav-links{gap:18px}.home .course-feature{gap:25px;padding:26px}.home .course-feature h3{font-size:21px}.home .sample-section{padding:40px}.home .sample-layout{gap:40px}.home .sample-aside h2{font-size:34px}
 .home .teaching-layout{gap:36px}.discovery-copy{padding:32px}.home .discovery-copy h2{font-size:40px}.discovery-art img{min-height:550px}.lab-tools>a{padding:18px 14px;gap:10px}.tool-tag{display:none}
}
@media(max-width:767px){
 .home .wrap{width:calc(100% - 32px)}.home .site-header{width:calc(100% - 24px);top:6px;margin-top:10px;border-radius:14px}.home .nav.wrap{width:calc(100% - 24px);height:66px;gap:12px}.home .site-header .shimino-brand .shimino-wordmark{width:120px}.home .nav-actions{gap:6px}.home .nav-actions .icon-button{width:38px;height:40px;min-width:38px}.home .account-link{padding:8px 11px;font-size:14px}.home .nav-links.is-open{top:calc(100% + 8px);right:-1px;left:-1px;border-radius:14px;border:1px solid var(--line);background:var(--surface)}
 .home .home-wrap{padding-top:16px}.home .hero{grid-template-columns:1fr;gap:24px;padding:28px 22px 0;border-radius:20px;min-height:0;overflow:hidden}.home .hero-copy{padding:0;text-align:center}.home .hero .hero-intro{font-size:14px;margin-bottom:20px;padding:5px 10px}.home .hero .hero-overline{font-size:14px}.home .hero h1{font-size:clamp(31px,7.5vw,43px);line-height:1.65;margin-bottom:17px}.home .hero .hero-description{font-size:16px;max-width:420px;margin:0 auto 24px}.home .hero .actions{gap:10px;justify-content:center}.home .hero .button{font-size:14px;padding:11px 12px;min-height:46px}.home .hero-facts{font-size:14px;gap:18px;justify-content:center;margin-top:20px}
 .home .hero-visual{width:min(290px,100%);padding:20px 25px 30px;justify-self:center;margin:2px 0 0}.home .hero-portrait img{height:280px;border-radius:120px 120px 18px 18px}.home .hero-portrait figcaption{width:calc(100% + 20px);margin:-23px -10px 0;padding:11px;gap:8px}.home .hero-portrait figcaption strong{font-size:14px}.home .hero-portrait figcaption small{font-size:14px}.teacher-caption-icon{width:30px;height:30px}.teacher-caption-icon .icon{width:16px;height:16px}.home .chemistry-mark{top:-3px;width:26px;height:26px}.portrait-edition{display:none}.portrait-orbit{inset:16px 0 12px}.chemistry-formula{font-size:14px;bottom:0}
 .element-note{width:57px;min-height:76px;padding:5px 7px;border-radius:8px}.element-note>span{font-size:9px}.element-note>strong{font-size:26px}.element-note>small{font-size:4.5px}.element-note>b{font-size:6px}.element-k{left:0;top:30px;--drift-x:6px;--drift-y:-9px}.element-am{right:-2px;top:76px;--drift-x:-6px;--drift-y:9px}.element-al{left:-3px;bottom:76px;--drift-x:6px;--drift-y:8px}.element-i{right:0;bottom:32px;--drift-x:-6px;--drift-y:-9px}
 .hero-bottom{gap:10px;padding:14px 0}.hero-bottom>span{font-size:14px;letter-spacing:.08em}.home .hero-bottom p{font-size:14px}.hero-bottom>.icon{display:none}.home .route-strip{padding:28px 0 6px;gap:16px}.home .route-strip h2{font-size:24px}.home .grade-links{grid-template-columns:1fr 1fr;gap:10px}.home .grade-links a{padding:19px 12px;gap:10px;min-height:94px}.grade-symbol{font-size:28px;min-width:35px;padding-inline-end:9px}.grade-links strong{font-size:14px}.grade-links small{font-size:14px}
 .home .section{padding:42px 0}.home .home-courses{padding-top:36px}.home-section-top{align-items:flex-start;gap:10px}.home-section-top>.text-link{font-size:14px;gap:5px}.home .section-heading{margin-bottom:24px}.home .section-heading h2{font-size:25px}.home .section-heading p{font-size:16px}
 .home .course-feature{grid-template-columns:1fr;padding:20px;gap:24px;border-radius:18px}.home .course-feature-art{transform:rotate(1deg);padding:6px;margin:4px}.home .course-feature h3{font-size:20px}.home .course-feature .course-footer{gap:16px}.home .grade-courses{gap:18px}.home .grade-course-content{padding:22px}.home .grade-course h3{font-size:17px}
 .home .sample-section{padding:26px;margin-top:18px;border-radius:20px}.home .sample-layout{grid-template-columns:1fr;gap:30px}.home .sample-aside h2{font-size:29px}.home .sample-aside p{font-size:16px}.home .sample-aside .button{font-size:14px;padding-inline:12px}.home .sample-aside .text-link{font-size:14px}.home .sample-aside .actions{gap:10px}.home .portrait-video{width:min(100%,240px)}
 .home .teaching-section{padding-top:64px;padding-bottom:60px}.home .teaching-layout{grid-template-columns:1fr;gap:26px}.home .teaching-copy h2{font-size:29px}.home .teaching-points{gap:12px}.home .teaching-points article{padding:18px 16px}.home .teaching-points article::after{font-size:24px;left:14px;top:10px}.home .teaching-points h3{font-size:16px}.home .teaching-points p{font-size:14px}.home .teaching-points article:nth-child(even){transform:translateY(14px)}
 .discovery{grid-template-columns:1fr;direction:rtl;border-radius:20px}.discovery-copy{padding:28px;order:-1}.home .discovery-copy h2{font-size:38px;margin:16px 0}.home .discovery-copy>p{font-size:16px}.discovery-art img{min-height:0;height:260px;object-position:center 65%}.discovery-art::after{background:linear-gradient(180deg,#180e0e,transparent 45%)}.art-label{font-size:8px;bottom:18px;left:20px}.element-picker{margin-top:20px}.element-picker button{width:72px;min-height:88px}.home .element-fact{min-height:98px;font-size:14px}.discovery-copy>.button{font-size:16px;width:100%}.lab-tools{grid-template-columns:1fr;gap:10px;margin-top:12px}.lab-tools>a{padding:18px}.lab-tools strong{font-size:16px}.lab-tools small{font-size:14px}.tool-tag{display:block}
 .home .faq-section{display:block}.home .faq-section .section-heading{position:static}.home .faq-list details{padding-inline:16px}.home .faq-list summary{font-size:16px}.home .feedback-layout{padding:22px}.home .feedback-layout h2{font-size:23px}.home .contact-band{border-radius:20px}
}
@media(max-width:380px){.home .site-header .shimino-brand .shimino-wordmark{width:95px}.home .nav.wrap{gap:7px}.home .nav-actions{gap:4px}.home .nav-actions .icon-button{width:33px;min-width:33px}.home .account-link{padding-inline:8px;font-size:14px}.home .hero{padding-inline:18px}.home .hero h1{font-size:30px}.home .hero-visual{padding-inline:24px}.home .hero-portrait img{height:250px}.home .hero .button{font-size:14px}.home .hero-facts{font-size:14px;gap:10px}.element-note{width:52px;min-height:71px}.element-note>strong{font-size:24px}.home .grade-links a{gap:7px;padding-inline:9px}.grade-links strong{font-size:14px}.grade-links small{font-size:14px}}
@media(prefers-reduced-motion:reduce){.home a,.home button{transition:none}.home .element-note{animation:none}}
:root[data-motion=reduced] .home a,:root[data-motion=reduced] .home button{transition:none}
:root[data-motion=reduced] .element-note{animation-play-state:paused!important}
/* Charcoal and red on the original homepage surfaces. */
.home{--bg:#080808;--surface:#151111;--tint:#231919;--ink:#f9f9f9;--muted:#c0c0c0;--line:#563c3c}
:root[data-theme=light] .home{--bg:#f7f7f7;--surface:#fffefa;--tint:#e9e9e9;--ink:#231d1d;--muted:#605454;--line:#d3d3d3}
.home .hero{background:radial-gradient(ellipse at 9% 18%,#7d0d0db3,transparent 50%),radial-gradient(ellipse at 95% 90%,#470606a3,transparent 60%),#0e0a0a;border-color:#633131;box-shadow:0 18px 48px #18000033}
.home .hero::before{border-color:#ff41415c}.home .hero::after{color:#ff393912}
.home .hero .hero-intro{color:#ededed;border-color:#ff686861;background:#2a1212a0}.intro-dot{background:#ff3636;box-shadow:0 0 0 4px #ff363633}
.home .hero .hero-overline{color:#cccccc}.home .hero h1{color:#ff4343}.home .hero h1::first-line{color:#f9f9f9}.home .hero .hero-description{color:#d4d4d4}
.home .hero .button{background:#d20c0c;color:#fff}.home .hero .hero-secondary{background:#170b0bbd!important;color:#f6f6f6!important;border-color:#e75c5c7a!important}.home .hero .hero-secondary:hover{background:#371313!important;border-color:#ff6f6f!important}
.home .hero-facts{color:#c2c2c2}.home .hero-facts .icon{color:#ff6666}.portrait-orbit{border-color:#ff40406b}.portrait-orbit::before{border-color:#ff3d3d54}.portrait-orbit::after{border-color:#ef3f3f48}
.home .hero-portrait img{border-color:#f0606088;box-shadow:0 18px 40px #05000065}.home .hero-portrait figcaption{background:#1a1313;color:#f9f9f9;border-color:#784040}.home .hero-portrait figcaption strong{color:#f9f9f9}.home .hero-portrait figcaption small{color:#b9b9b9}.teacher-caption-icon{background:#491818;color:#ff4d4d}
.home .chemistry-mark{opacity:1;width:44px;height:44px;top:-12px;background:#fffefa;border:1px solid #9a4343;border-radius:12px;padding:7px;box-shadow:0 6px 20px #32080842}.chemistry-mark .sk-mark{display:block;width:100%;height:100%;object-fit:contain}
.element-k{background:#a00d0d;color:#f8f8f8;border-color:#ff4d4d}.element-am{background:#301414;color:#f7f7f7;border-color:#ca5050}.element-al{background:#651515;color:#f7f7f7;border-color:#e95c5c}.element-i{background:#281313;color:#f5f5f5;border-color:#b84848}
.element-note{box-shadow:0 10px 25px #16010165}.chemistry-formula{color:#b6b6b6}.portrait-edition{color:#b3b3b3}.hero-bottom{border-color:#e75a5a52;color:#ff4d4d}.home .hero-bottom p{color:#bfbfbf}
.home .grade-links a{color:#f6f6f6;border-color:#603030}.home .grade-links a:nth-child(1){--grade-tone:#ff5c5c;background:#251313}.home .grade-links a:nth-child(2){--grade-tone:#ff4d4d;background:#321515}.home .grade-links a:nth-child(3){--grade-tone:#ff6868;background:#241717}.home .grade-links a:nth-child(4){--grade-tone:#ff4d4d;background:#301717}.home .grade-links small{color:#cccccc}.home .grade-links .grade-symbol{color:var(--grade-tone);border-color:#f2525248}
.home .course-feature{background:radial-gradient(ellipse at 100% 0,#7b14145e,transparent 70%),#190f0f;border-color:#d241414d}.home .course-feature-art{background:#110b0b;border-color:#d645453b}.home .course-feature .course-subtitle{color:#cccccc}.home .course-feature .meta-list li{color:#d5d5d5}
.home .teaching-points article:nth-child(1) .teaching-icon{background:#421212;color:#ff5353}.home .teaching-points article:nth-child(2) .teaching-icon{background:#451616;color:#ff5353}.home .teaching-points article:nth-child(3) .teaching-icon{background:#391111;color:#ff5353}.home .teaching-points article:nth-child(4) .teaching-icon{background:#431414;color:#ff5353}
.home .lab-tools>a:nth-child(1) .lab-tool-icon{background:#421212;color:#ff5353}.home .lab-tools>a:nth-child(2) .lab-tool-icon{background:#451616;color:#ff5353}.home .lab-tools>a:nth-child(3) .lab-tool-icon{background:#391111;color:#ff5353}
.footer-signature{display:inline-flex;align-items:center;gap:10px}.footer-signature .sk-mark{width:27px;height:27px;object-fit:contain;background:#fff;border-radius:6px;padding:3px}
@media(max-width:767px){.home .chemistry-mark{width:34px;height:34px;padding:5px;top:-9px;border-radius:9px}}
/* Keep the introductory copy and portrait fully legible during the existing entrance animation. */
.home .hero-copy,.home .hero-portrait{opacity:1!important}

/* Readable secondary copy and flexible controls at narrow widths. */
.home .hero .hero-description,.home .hero-bottom p,.home .route-strip p,
.home .teaching-points p,.home .faq-list p{font-size:16px}
.home .hero .actions{flex-wrap:wrap}
.home .hero-facts{flex-wrap:wrap;row-gap:8px}
.home .lab-tools>a>span:nth-child(2),.home .grade-links a>span:last-child{min-width:0}
.home .lab-tools small,.home .grade-links small{line-height:1.8}
@media(max-width:767px){
 .home .hero-portrait figcaption{padding:12px 10px;gap:8px}
 .home .hero-portrait figcaption strong{font-size:16px}
 .home .hero-portrait figcaption small{font-size:14px;line-height:1.8}
 .home .grade-links a{align-items:flex-start;flex-wrap:wrap;row-gap:12px}
 .home .grade-links strong{font-size:16px}
 .home .hero-bottom{flex-wrap:wrap;justify-content:center;text-align:center}
 .home .hero-bottom p{flex-basis:100%}
 .home .lab-tools>a{flex-wrap:wrap}
 .home .tool-tag{margin-inline-start:60px}
 .home .teaching-points{grid-template-columns:1fr}
 .home .teaching-points article:nth-child(even){transform:none}
 .home .home-section-top{flex-wrap:wrap}
 .home .faq-list summary{font-size:16px;line-height:1.9;padding-block:16px}
}
