/* DISCOVERA OCEAN — cinematic editorial expedition
   Re-skins the original interactive scientific ocean experience.
   No simulation or dataset is removed. */
:root{
  --ink:#f7faf7;--muted:#b6c7cb;--deep:#06151f;--navy:#0a2733;
  --panel:rgba(15,42,50,.93);--panel-solid:#102d36;
  --line:rgba(199,225,224,.16);--cyan:#6dcbd0;--cyan2:#3b9aab;
  --gold:#f7d232;--green:#85d9bc;--coral:#f2a889;
  --shadow:0 18px 55px rgba(3,19,25,.14);--radius:16px;
  --header:76px;
}
html{scroll-padding-top:calc(var(--header) + 18px)}
body{background:#06151f;color:#f7faf7;overflow-x:clip}
button,input,select{font-family:"Vazirmatn",Tahoma,sans-serif}
::selection{background:#f7d232;color:#15231b}
.container{width:min(1380px,calc(100% - 50px))}
a{color:#a8e4e4}
.btn,.icon-btn,.chip{border-radius:9px}
.btn{padding:11px 17px;font-size:12px}
.btn.primary,.btn.gold{
  color:#152924;border:1px solid #f7d232;background:#f7d232;
  box-shadow:0 12px 27px rgba(234,200,35,.12);
}
.btn.primary:hover,.btn.gold:hover{background:#ffe466;border-color:#ffe466}
.eyebrow{font-family:"Vazirmatn";color:#e5c239;letter-spacing:.08em;font-size:11px}
.eyebrow::before{height:3px;width:22px}
.section-head{align-items:center;gap:24px}
.section-head h2{font-weight:850;font-size:clamp(28px,3.6vw,48px);line-height:1.55;letter-spacing:-.7px}
.section-head p{font-size:13px;line-height:2.05}
.section-head .chip{border-radius:8px;font-size:11px}

/* Brand and nav */
.topbar{
  height:var(--header);background:rgba(6,20,29,.97);
  border-color:rgba(204,229,226,.13);box-shadow:none;backdrop-filter:blur(12px);
  padding-inline:clamp(14px,2.8vw,42px);
}
.brand{text-decoration:none;color:#fff;gap:11px}
.brand-mark{
  width:45px;height:45px;border-radius:9px;background:#f7d232;box-shadow:none;
  color:#172a24;font:900 32px/1 Arial,sans-serif;letter-spacing:-4px;
  display:grid;place-items:center;transform:rotate(-2deg);
}
.brand-mark span{transform:translateX(-3px)}
.brand-text strong{font:800 21px/1.1 Arial,sans-serif;direction:ltr;text-align:left;letter-spacing:-1px}
.brand-text strong>span{color:#f7d232}
.brand-text strong small{display:inline;font:700 11px/1 Arial,sans-serif;margin-left:5px;letter-spacing:0}
.brand-text>small{text-align:left;font-size:10px;color:#9db2b7;margin-top:3px}
.main-nav{justify-content:center;gap:3px}
.main-nav a{border-radius:7px;font-size:11px;font-weight:750;color:#b8c8ca;padding:9px 13px}
.main-nav a:hover{background:rgba(247,210,50,.11);color:#ffe168}
.header-progress{min-width:136px}
.header-progress small{color:#91adb2}
.progress-track{background:#203a44;border-radius:3px;height:5px}
.progress-fill{background:#f7d232;border-radius:3px}
.topbar .header-random{white-space:nowrap;background:#f7d232;color:#162c23;border-color:#f7d232;font-weight:850;font-size:11px}
.topbar .header-reset{min-width:39px;padding:10px;background:#142f3b;color:#b9cbd0;font-size:17px}

/* Immersive first fold */
.hero{
  min-height:650px;display:block;padding:calc(var(--header) + 45px) 0 65px;
  background:radial-gradient(circle at 65% 22%,rgba(27,90,99,.26),transparent 34%),
             linear-gradient(165deg,#0a2834 0%,#061823 58%,#071a22 100%);
  isolation:isolate;
}
.hero::after{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;opacity:.15;
  background-image:radial-gradient(circle,#87bac0 .7px,transparent .7px);background-size:25px 25px;
  mask-image:linear-gradient(90deg,transparent,#000 35%,#000 80%,transparent);
}
.sky-glow,.surface,.rays,.bubble-field,.hero-fish,.coral-scene{display:none!important}
.hero-shell{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.04fr);gap:clamp(30px,5vw,78px);align-items:center;min-height:480px}
.hero-card{
  text-align:right;justify-self:stretch;width:100%;padding:0;border:0;background:transparent;
  box-shadow:none;backdrop-filter:none;border-radius:0;
}
.hero-kicker{
  border:1px solid rgba(247,210,50,.37);border-radius:5px;
  background:rgba(247,210,50,.08);color:#e9d65b;
  direction:ltr;letter-spacing:.1em;font:800 11px/1.8 Arial,sans-serif;padding:7px 11px;
}
.signal-pulse{display:inline-block;width:7px;height:7px;border-radius:50%;background:#f7d232;box-shadow:0 0 0 4px rgba(247,210,50,.12)}
.hero h1{
  font-family:"Vazirmatn",sans-serif;font-weight:900;text-align:right;
  font-size:clamp(43px,4.3vw,73px);line-height:1.56;letter-spacing:-2px;margin:25px 0 16px;
}
.hero h1 span{display:inline;color:#f7d232}
.hero p{color:#bacbd0;line-height:2.22;font-size:clamp(13px,1.2vw,16px);text-align:right;margin:0;max-width:590px}
.hero-actions{justify-content:flex-start;margin-top:27px;gap:10px}
.hero-actions .btn{border-radius:8px;padding:12px 18px;font-size:12px;min-height:48px}
.hero-actions .btn:not(.primary){background:transparent;border-color:rgba(217,237,230,.33);color:#e2eeee}
.hero-actions .btn span{margin-inline-start:10px}
.hero-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:32px 0 0}
.hero-stat{padding:7px 14px 7px 4px;border:0;border-left:1px solid rgba(200,225,220,.22);background:transparent;border-radius:0}
.hero-stat:last-child{border:0}
.hero-stat b{color:#e8edef;font-size:23px}
.hero-stat small{display:block;color:#849fa5;font-size:10px}
.hero-gallery{height:500px;position:relative;min-width:0}
.hero-feature-photo{
  position:absolute;inset:0 17px 32px 0;margin:0;overflow:hidden;
  border-radius:16px;border:5px solid rgba(255,255,255,.93);
  background:linear-gradient(140deg,#1d5560,#062430);
  box-shadow:0 27px 65px rgba(0,8,15,.48);cursor:pointer;
}
.hero-feature-photo img{width:100%;height:100%;object-fit:cover;display:block;filter:saturate(.86)}
.hero-feature-photo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 34%,rgba(3,17,20,.2),rgba(2,14,17,.91))}
.hero-feature-photo figcaption{position:absolute;bottom:27px;right:26px;left:26px;z-index:2;display:grid;gap:6px}
.hero-photo-tag{background:#f7d232;color:#1d2b20;padding:6px 9px;font-size:10px;font-weight:900;border-radius:4px;width:max-content}
.hero-feature-photo strong{font-size:clamp(20px,2.4vw,33px);font-weight:900;line-height:1.65}
.hero-feature-photo small{color:#d1dfdf;font-size:12px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hero-coordinate{position:absolute;left:19px;bottom:7px;color:#8aabb0;direction:ltr;font-size:9px;letter-spacing:.14em;font-weight:800}
.hero-coordinate span{color:#f7d232;font-size:14px;margin-left:8px}
.hero-gallery-stamp{
  position:absolute;z-index:3;top:-14px;left:-18px;background:#f7d232;color:#22352b;
  font:900 19px/1.1 Arial,sans-serif;padding:15px 16px;border-radius:7px;transform:rotate(-5deg);
  box-shadow:0 12px 28px rgba(0,0,0,.18);
}
.hero-gallery-stamp span{font-size:10px;letter-spacing:.06em}

/* Dynamic editorial modules */
.editorial-section{padding:clamp(67px,8vw,112px) 0;background:#f4f6f1;color:#1e3333}
.editorial-heading{display:flex;justify-content:space-between;align-items:end;gap:25px;margin-bottom:26px}
.ocean-kicker{font:800 11px/1.5 Arial,sans-serif;color:#8d801b;letter-spacing:.13em}
.editorial-heading h2,.depth-portal-heading h2{
  font-size:clamp(26px,3.25vw,44px);font-weight:900;letter-spacing:-1px;line-height:1.55;margin:9px 0;
}
.editorial-heading p,.depth-portal-heading p{font-size:12px;color:#70817c;line-height:2.05;margin:0;max-width:650px}
.discovery-refresh{
  display:flex;align-items:center;gap:13px;white-space:nowrap;background:#f7d232;color:#1b302a;
  border:1px solid #f7d232;border-radius:8px;font-weight:900;font-size:11px;padding:12px 16px;
}
.discovery-refresh span{font-size:18px}
.discovery-refresh:hover{background:#ffe672}
.ocean-discovery-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:13px;grid-auto-flow:dense}
.ocean-discovery-card{
  position:relative;isolation:isolate;grid-column:span 5;min-height:272px;text-align:right;
  padding:0;border:0;border-radius:13px;overflow:hidden;color:#fff;
  background:linear-gradient(145deg,#1d606e,#092936);transition:transform .2s ease;
}
.ocean-discovery-card:first-child{grid-column:span 7;grid-row:span 2;min-height:557px}
.ocean-discovery-card:nth-child(n+4){grid-column:span 4;min-height:250px}
.ocean-discovery-card:hover{transform:translateY(-4px)}
.ocean-discovery-card img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.86);transition:transform .5s}
.ocean-discovery-card:hover img{transform:scale(1.04)}
.ocean-discovery-card::after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(1,15,20,.06),rgba(1,15,20,.15) 32%,rgba(1,14,19,.94))}
.ocean-discovery-index{
  position:absolute;top:16px;right:16px;z-index:2;font:800 10px/1.5 Arial,sans-serif;
  color:#1b2b28;background:#f7d232;padding:6px 10px;border-radius:5px;
}
.ocean-discovery-copy{position:absolute;z-index:2;right:20px;left:20px;bottom:23px;display:grid;gap:5px}
.ocean-discovery-copy small{color:#c9d9dc;font-size:11px}
.ocean-discovery-copy strong{font-size:clamp(17px,2vw,27px);font-weight:900;line-height:1.7}
.ocean-discovery-card:first-child .ocean-discovery-copy strong{font-size:clamp(26px,3vw,38px)}
.ocean-discovery-copy p{margin:0;color:#d0dddd;font-size:11px;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ocean-discovery-copy em{font-style:normal;color:#ffe56e;font-size:11px;font-weight:800;margin-top:5px}
.image-unavailable{background:linear-gradient(145deg,#185063,#0b2937)!important}
.image-unavailable::before{
  content:"تصویر در اتصال فعلی در دسترس نیست";position:absolute;inset:0;display:grid;place-items:center;
  padding:18px;color:#b5d5d5;font-size:12px;z-index:0;text-align:center;
}

/* Depth-to-species selector */
.ocean-depth-portal{background:#102d38;color:#f6f9f5;position:relative;overflow:hidden}
.ocean-depth-portal::before{
  content:"";position:absolute;inset:0;opacity:.14;pointer-events:none;
  background:repeating-linear-gradient(0deg,transparent 0 32px,rgba(205,240,230,.4) 33px),
             repeating-linear-gradient(90deg,transparent 0 32px,rgba(205,240,230,.4) 33px);
}
.depth-portal-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:26px;position:relative}
.ocean-depth-portal .ocean-kicker{color:#f7d232}
.depth-portal-heading h2{color:#f7faf7}
.depth-portal-heading p{color:#a6c0c4}
.depth-portal-compass{width:110px;height:110px;flex:0 0 110px;border:1px solid #5a8490;border-radius:50%;font-size:80px;display:grid;place-items:center;position:relative;color:#638b90}
.depth-portal-compass span{position:absolute;font-size:10px;font-weight:900;letter-spacing:.12em;color:#f7d232}
.depth-portal-grid{display:grid;grid-template-columns:minmax(0,.83fr) minmax(0,1.17fr);gap:21px;position:relative}
.depth-portal-controls{background:#173c46;border:1px solid #39616a;border-radius:13px;padding:clamp(20px,3vw,34px)}
.depth-reading small{display:block;font-size:11px;color:#b9d0d0}
.depth-reading strong{font:850 clamp(52px,7vw,90px)/1.25 "Vazirmatn",sans-serif;display:block;color:#f7d232;letter-spacing:-3px}
.depth-reading>span{color:#c4d7d6;font-size:12px}
#portalSlider{display:block;width:100%;accent-color:#f7d232;cursor:pointer;margin:38px 0 10px;direction:ltr}
.portal-scale{display:flex;justify-content:space-between;direction:ltr;font-size:10px;color:#a2bac0}
.portal-zones{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:27px}
.portal-zone{padding:9px 5px;border:1px solid #486a72;background:#214650;color:#d1e2e0;border-radius:6px;font-size:10px}
.portal-zone.active,.portal-zone:hover{background:#f7d232;border-color:#f7d232;color:#1a332d}
.portal-readouts{margin-top:29px;display:grid;grid-template-columns:repeat(2,1fr);gap:10px}
.portal-readouts>div{border-top:1px solid #54717a;padding-top:12px}
.portal-readouts span{display:block;font-size:10px;color:#91afb4}
.portal-readouts b{font-size:17px;line-height:1.8}
.portal-species{
  position:relative;min-height:415px;overflow:hidden;text-align:right;color:#fff;border-radius:13px;border:3px solid rgba(225,238,236,.6);
  background:linear-gradient(145deg,#1b6070,#08202f);
}
.portal-species img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:saturate(.8)}
.portal-species::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,20,22,.08),rgba(1,16,22,.24) 43%,rgba(1,15,19,.96))}
.portal-species-copy{position:absolute;z-index:2;right:25px;left:25px;bottom:25px;display:grid;gap:8px}
.portal-species-copy small{color:#ffe05d;font-size:11px;font-weight:800}
.portal-species-copy strong{font-size:clamp(25px,3vw,39px);line-height:1.55;font-weight:900}
.portal-species-copy span{font-size:12px;line-height:1.9;color:#d9e7e6}
.portal-species-copy em{font-style:normal;color:#ffe571;font-size:11px;font-weight:900}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Micro stories: each derives from the original science feed */
.ocean-briefs-section{background:#edf4f0;color:#243a36}
.briefs-all{text-decoration:none;font-size:12px;font-weight:850;color:#7d7313;white-space:nowrap}
.ocean-briefs-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.ocean-brief{
  min-height:271px;display:flex;flex-direction:column;align-items:flex-start;text-align:right;
  padding:23px;background:#fff;border:1px solid #dbe6dd;border-radius:13px;color:#24382d;
  transition:transform .2s;
}
.ocean-brief:nth-child(2){background:#f7d232;border-color:#f7d232}
.ocean-brief:nth-child(4){background:#dce9e2}
.ocean-brief:hover{transform:translateY(-4px)}
.ocean-brief .brief-icon{font:500 34px/1 Arial,sans-serif;color:#a2a42a}
.ocean-brief:nth-child(2) .brief-icon{color:#244039}
.ocean-brief small{font-size:10px;color:#88978a;margin-top:24px;font-weight:900}
.ocean-brief:nth-child(2) small{color:#566142}
.ocean-brief strong{font-size:17px;line-height:1.8;margin-top:7px}
.ocean-brief p{font-size:11px;line-height:1.95;color:#6e8073;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden;margin:9px 0 15px}
.ocean-brief:nth-child(2) p{color:#4c5f48}
.ocean-brief em{margin-top:auto;font-size:11px;color:#3d594c;font-style:normal;font-weight:850}

/* Existing interactive chapters, visually integrated */
.section{padding:clamp(70px,8vw,105px) 0}
.roadmap{background:#081e29}
.module-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.module-card{background:#102e3a;border-color:#284653;min-height:211px;border-radius:12px;padding:22px;box-shadow:none}
.module-card:hover{border-color:#dfc539;background:#153844}
.module-card::after{display:none}
.module-icon{font:800 37px/1 Arial,sans-serif;color:#f7d232}
.module-num{color:rgba(205,224,218,.15)}
.module-card h3{color:#ecf3ee;font-size:17px}
.module-card p{color:#adc2c3;font-size:12px}
.module-state{color:#d2c658;font-size:10px}
.module-state i{box-shadow:none;background:#f7d232}
.science-snapshot{background:#f5f7f3;color:#243830}
.science-snapshot .section-head p{color:#6b7a71}
.science-snapshot .chip{color:#465c4c;border-color:#dae5dc;background:#fff}
.snapshot-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.snapshot-card{background:#fff;border:1px solid #e0e8de;border-radius:12px;box-shadow:0 10px 30px rgba(25,40,30,.04)}
.snapshot-card::after{display:none}
.snapshot-card b{color:#263d34}
.snapshot-card span{color:#314b3e}
.snapshot-card p{color:#7b8c80}
.snapshot-icon{filter:grayscale(.4)}
.map-meter{background:#e8efe8;border-radius:12px;border-color:#dae4d8}
.map-meter-head p{color:#7b8b7e}
.map-meter b,.map-meter-head strong{color:#213d32}
.map-track{background:#d1ddd2;border-radius:5px}
.map-track i{background:#eac629;border-radius:5px}
.oceans{background:#09232f}
.globe-panel{border-radius:14px;background:radial-gradient(circle at center,#23657a,#0a2d40 58%,#061b29 100%)}
.globe{
  background:repeating-radial-gradient(circle at 50% 50%,#17506b 0 24px,#23627d 25px 26px,#0b3a55 27px 49px);
  border:1px solid rgba(186,224,218,.2);box-shadow:inset -35px -20px 80px rgba(0,10,25,.5),0 25px 55px rgba(0,0,0,.2);
}
.globe .land{display:none}
.globe-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);direction:ltr;text-align:center;color:#b4d6d4;font:900 28px/1.14 Arial,sans-serif;letter-spacing:.07em;pointer-events:none;opacity:.55}
.ocean-pin{background:rgba(8,29,37,.91);border-radius:7px;font-size:10px;font-weight:800}
.ocean-pin:hover,.ocean-pin.active{background:#f7d232;color:#1f352c}
.globe-note{border-radius:9px;background:rgba(3,21,31,.84);font-size:11px}
.ocean-detail{border-radius:13px;background:#11323e}
.ocean-detail h3{font-size:28px}
.ocean-detail .latin{color:#e1c53b}
.metric{border-radius:8px;background:#1a3c48}
.feature-list li::before{color:#f7d232}
.lab{background:#eef4f0;color:#223a35}
.lab .section-head p,.lab .lab-note{color:#6d8175}
.lab-controls,.lab-viz{background:#fff;border:1px solid #d8e4da;border-radius:13px;box-shadow:0 13px 40px rgba(20,48,34,.05)}
.lab-controls .btn{color:#2b493d;background:#eef3ed;border:1px solid #dbe5d9}
.lab-controls .btn:hover{background:#fff4be;border-color:#eacb38}
.range-row small{color:#778a7e}
.range-row input{accent-color:#d7b919}
.water-column{border-radius:11px}
.lab-readouts .readout{color:#edf4f3}
.lab-readouts .readout span{color:#a6c5c4}
.creature-silhouette{filter:grayscale(1) drop-shadow(0 10px 12px rgba(0,0,0,.12));opacity:.65}
.ecosystems{background:#0a2832}
.eco-tabs .btn.active{background:#f7d232;border-color:#f7d232;color:#203a31}
.eco-visual,.eco-content{border-radius:13px}
.eco-art{filter:grayscale(1);opacity:.38}
.eco-organisms span{filter:grayscale(1);opacity:.36}
.eco-content{background:#113340}
.eco-mini{border-radius:9px}
.eco-mini b{color:#f7d232}
.real-ocean{background:#f5f7f4;color:#243c32}
.real-ocean .section-head p,.photo-feature-copy p{color:#73867a}
.real-ocean .section-head .chip{background:#fff;border-color:#dce5df;color:#375247}
.photo-feature{background:#fff;border:1px solid #e0e7df;border-radius:13px;box-shadow:0 15px 40px rgba(32,55,42,.06)}
.photo-feature-copy h3{font-weight:900}
.photo-feature-copy p{line-height:2.1}
.photo-feature-copy .chip{width:max-content;color:#334a37;background:#fff5c3;border-color:#eed959}
.record-pill{background:#f1f5ee;border-color:#e0e9de;border-radius:8px}
.record-pill b{color:#395344}
.record-pill span{color:#8a9b8e}
.source-link{color:#806b0d;font-weight:850}
.wonder-rail{grid-template-columns:repeat(3,1fr)}
.wonder-card{border:1px solid #dce7dd;background:#fff;border-radius:12px;box-shadow:0 10px 30px rgba(30,50,35,.04)}
.wonder-card-body{padding:19px}
.wonder-card h3{font-size:17px;line-height:1.85;color:#263d32}
.wonder-card p{color:#798d7e;font-size:12px;line-height:1.95}
.wonder-card strong{color:#273f33}
.discovery-highlight{outline:4px solid #f7d232;outline-offset:4px}
.wonder-tag{background:#fff4c1;border-color:#e9d55a;color:#594d13;border-radius:6px}
.photo-credit{border-radius:6px}
.weird-lab{border:1px solid #dce6dc;border-radius:12px;background:#edf2eb}
.weird-lab>p{color:#6f8174}
.weird-item{border-color:#dbe5da;background:#fff;border-radius:9px}
.weird-item p{color:#738475}
.weird-item b{color:#544c1c}
.weird-item summary::after{color:#9e8516}
.processes{background:#08212a}
.process-card,.process-lab{border-radius:12px;background:#11323e}
.process-lab{background:#10303c}
.process-icon{filter:grayscale(.3)}
.deep-decor{filter:grayscale(1);opacity:.3}
.dive-intro{background:#091e2c}
.dive-intro h2{font-weight:900}
.dive-guide .eyebrow{color:#f7d232}
.dive-counter b{color:#f7d232}
.dive-jumps .btn{border-radius:7px}
.depth-hud{border-radius:11px}
.food-section{background:#08242f}
.food-builder,.energy-panel{border-radius:12px}
.care{background:#0c2b34}
.threat{border-radius:11px;background:#143741}
.mission-card{border-radius:13px}
.score-ring{width:150px;height:150px}
.score-ring b{color:#f7d232}
.finish{background:#071c28}
.quiz,.glossary,.sources{border-radius:13px;background:#102d39}
.question{border-color:#294652}
.answer{border-radius:8px}
.glossary-search{border-radius:8px}
.glossary .term{border-radius:8px}
.term b{color:#f7d232}
.quiz-result{color:#f7d232}
.sources a{color:#c8d999}
.dialog-grid{background:#0d2a36}
dialog{border-radius:13px;background:#0d2a36}
.adapt b{color:#f7d232}
.close{border-radius:7px}
.back-top{border-radius:10px;background:#173947}
.mobile-nav{border-radius:12px}

@media(max-width:1190px){
  .main-nav a{font-size:10px;padding:8px}
  .header-progress{display:none}
  .hero-shell{grid-template-columns:1fr 1fr;gap:28px}
  .hero-gallery{height:440px}
  .hero h1{font-size:clamp(38px,4.7vw,58px)}
  .module-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
  .ocean-briefs-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:980px){
  .main-nav{display:none}
  .brand-text{display:block}
  .hero-shell{grid-template-columns:1fr;gap:35px}
  .hero{min-height:0}
  .hero h1{font-size:clamp(40px,6vw,61px)}
  .hero-gallery{height:470px;width:min(720px,100%);margin-inline:auto}
  .module-grid{grid-template-columns:repeat(2,1fr)}
  .snapshot-grid{grid-template-columns:repeat(2,1fr)}
  .wonder-rail{grid-template-columns:repeat(2,1fr)}
  .depth-portal-grid{grid-template-columns:1fr}
}
@media(max-width:720px){
  :root{--header:64px;--track:8900px}
  html{scroll-padding-top:75px}
  body{padding-bottom:calc(74px + env(safe-area-inset-bottom))}
  .container{width:calc(100% - 24px)}
  .topbar{gap:9px;padding-inline:12px}
  .brand-mark{width:39px;height:39px;font-size:27px}
  .brand-text strong{font-size:18px}
  .brand-text strong small{font-size:9px}
  .brand-text>small{font-size:9px}
  .topbar .header-random{display:flex;padding:8px 10px;font-size:10px}
  .topbar .header-reset{display:none}
  .hero{padding:calc(var(--header) + 22px) 0 28px}
  .hero-shell{gap:25px}
  .hero-kicker{font-size:9px;padding:5px 7px}
  .hero h1{font-size:clamp(35px,9vw,48px);margin:17px 0 14px;letter-spacing:-1.4px}
  .hero p{font-size:12px;line-height:2.05}
  .hero-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
  .hero-actions .btn{padding:9px 7px;font-size:10px;min-height:42px;text-align:center}
  .hero-actions .btn span{margin-inline-start:3px}
  .hero-stats{margin-top:23px}
  .hero-stat{padding:0 8px 0 0}
  .hero-stat b{font-size:20px}
  .hero-stat small{font-size:9px}
  .hero-gallery{height:315px}
  .hero-feature-photo{inset:0 5px 22px 5px;border-width:3px;border-radius:11px}
  .hero-feature-photo figcaption{right:17px;left:17px;bottom:16px}
  .hero-feature-photo strong{font-size:20px}
  .hero-feature-photo small{font-size:10px}
  .hero-photo-tag{font-size:9px;padding:5px 7px}
  .hero-gallery-stamp{left:0;top:-8px;font-size:13px;padding:10px}
  .hero-gallery-stamp span{font-size:8px}
  .hero-coordinate{left:8px;bottom:3px;font-size:8px}
  .editorial-section{padding:62px 0}
  .editorial-heading,.depth-portal-heading{display:block;margin-bottom:18px}
  .editorial-heading h2,.depth-portal-heading h2{font-size:27px}
  .editorial-heading p,.depth-portal-heading p{font-size:11px}
  .discovery-refresh{margin-top:13px;padding:9px 12px;font-size:10px}
  .ocean-discovery-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .ocean-discovery-card:nth-child(n){grid-column:span 1;min-height:235px;border-radius:10px}
  .ocean-discovery-card:first-child{grid-column:span 2;grid-row:auto;min-height:340px}
  .ocean-discovery-card:last-child{grid-column:span 2;min-height:225px}
  .ocean-discovery-copy{right:12px;left:12px;bottom:13px}
  .ocean-discovery-copy strong{font-size:15px}
  .ocean-discovery-card:first-child .ocean-discovery-copy strong{font-size:25px}
  .ocean-discovery-copy small{font-size:9px}
  .ocean-discovery-copy p{font-size:10px;line-height:1.75}
  .ocean-discovery-index{right:11px;top:11px;font-size:9px;padding:5px 7px}
  .depth-portal-compass{display:none}
  .depth-portal-grid{gap:11px}
  .depth-portal-controls{padding:20px}
  .depth-reading strong{font-size:60px}
  #portalSlider{margin-top:22px}
  .portal-zones{grid-template-columns:repeat(3,1fr);margin-top:18px}
  .portal-species{min-height:330px;border-width:2px}
  .portal-species-copy{right:18px;left:18px;bottom:18px}
  .portal-species-copy strong{font-size:25px}
  .ocean-briefs-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .ocean-brief{min-height:257px;padding:15px;border-radius:9px}
  .ocean-brief strong{font-size:13px;line-height:1.7}
  .ocean-brief p{font-size:10px}
  .ocean-brief small{margin-top:16px}
  .module-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .module-card{min-height:205px;padding:15px}
  .module-card h3{font-size:13px}
  .module-card p{font-size:10px}
  .module-icon{font-size:27px}
  .snapshot-grid{grid-template-columns:repeat(2,1fr);gap:9px}
  .snapshot-card{padding:14px;min-height:160px}
  .snapshot-card b{font-size:20px}
  .snapshot-card p{font-size:10px}
  .section-head h2{font-size:27px}
  .section-head p{font-size:11px}
  .globe-panel{min-height:390px}
  .globe{width:min(350px,92%)}
  .wonder-rail{display:flex;overflow:auto;scroll-snap-type:x mandatory;gap:10px;padding:2px 2px 10px;scrollbar-width:none}
  .wonder-card{flex:0 0 min(82vw,330px);scroll-snap-align:center}
  .depth-hud{bottom:calc(83px + env(safe-area-inset-bottom))}
  .mobile-nav{display:grid;position:fixed;z-index:1000;right:8px;left:8px;bottom:max(8px,env(safe-area-inset-bottom));grid-template-columns:repeat(5,1fr);padding:6px;border:1px solid #d4e3d8;border-radius:11px;background:rgba(245,249,244,.97);backdrop-filter:blur(15px);box-shadow:0 13px 45px rgba(1,22,29,.2)}
  .mobile-nav a{color:#597064;font-size:10px;border-radius:7px;padding:4px 2px}
  .mobile-nav a span{font-family:"Vazirmatn";font-size:19px;font-weight:800;color:#314d43}
  .mobile-nav a.active{color:#263b31;background:#f7d232;box-shadow:none}
  .back-top{bottom:calc(85px + env(safe-area-inset-bottom))}
  .toast{bottom:calc(87px + env(safe-area-inset-bottom))}
  .finish{padding-bottom:110px}
}
@media(max-width:420px){
  .hero h1{font-size:34px}
  .hero-stat b{font-size:18px}
  .hero-stat small{font-size:8px}
  .hero-gallery{height:275px}
  .ocean-discovery-card:nth-child(n){min-height:200px}
  .ocean-discovery-card:first-child{min-height:305px}
  .ocean-briefs-grid{grid-template-columns:1fr}
  .ocean-brief{min-height:190px}
  .snapshot-grid{grid-template-columns:1fr 1fr}
  .portal-zones{grid-template-columns:repeat(2,1fr)}
  .topbar .header-random{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
  .ocean-discovery-card,.ocean-brief,.module-card{transition:none}
}
