/* Bitigora — homepage and header styling matched to the approved design mockup.
   Loaded after the base styles in index.html; homepage rules are scoped to .home-shell. */

/* ---------- header ---------- */
.top{background:linear-gradient(180deg,#040f1cf2,#061525e6);border-bottom:1px solid #1f3a4a}
.top .brand{position:relative;padding-right:26px;margin-right:2px}
.top .brand:after{content:"";position:absolute;right:0;top:8px;bottom:8px;width:1px;background:linear-gradient(180deg,transparent,#efc27e88,transparent)}
.brandsub{display:flex;align-items:center;gap:7px}
.brandsub:before,.brandsub:after{content:"";height:1px;width:14px;background:#efc27e99}
.top nav a{position:relative;color:#e2eaee;font-weight:500;letter-spacing:.01em}
.top nav a:hover{color:#fff}
.top nav a.active{color:#fff}
.top nav a.active:after{content:"";position:absolute;left:50%;bottom:-2px;width:34px;height:2px;margin-left:-17px;border-radius:2px;background:var(--cyan);box-shadow:0 0 10px 1px #3dd5e2cc,0 0 22px 2px #3dd5e255}
.iconbtn{width:42px;height:42px;padding:0;display:inline-grid;place-items:center;border:1px solid #c79d63;border-radius:50%;background:transparent;color:var(--cream)}
.iconbtn:hover{border-color:var(--gold);color:var(--gold)}
.iconbtn svg{width:19px;height:19px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* ---------- hero ---------- */
.home-shell .hero{min-height:0;height:clamp(430px,38vw,560px)}
.home-shell .hero-art{width:80%;object-position:center 46%}
.home-shell .hero-shade{background:linear-gradient(90deg,#061729 0%,#061729f2 24%,#061729b8 38%,#0617295c 52%,#06172914 66%,transparent 78%),linear-gradient(0deg,#061729 0%,#06172900 26%)}
.home-shell .hero .wrap{position:relative;z-index:3;height:100%;display:flex;flex-direction:column;justify-content:center;padding-top:0;padding-bottom:40px}
.home-shell .hero h1{font-size:clamp(48px,5.4vw,86px);max-width:none;margin:0 0 16px;line-height:1.02;background:linear-gradient(180deg,#fff3dc 0%,#f4d4a1 55%,#e2ad6c 100%);-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 2px 14px #0009)}
.home-shell .hero p{max-width:460px;font-size:clamp(15px,1.15vw,18px);line-height:1.55;color:#e6edf0;margin:0 0 26px}
.home-shell .ctas{display:flex;gap:16px;flex-wrap:wrap}
.home-shell .ctas .primary,.home-shell .ctas .ghost{display:inline-flex;align-items:center;gap:11px;height:48px;padding:0 22px;border-radius:9px;font-size:15px;font-weight:600}
.home-shell .ctas .primary{background:linear-gradient(135deg,#ffdca6,#e3a65d);color:#1b1f26;box-shadow:0 6px 20px #e3a65d33}
.home-shell .ctas .ghost{border:1.5px solid #3dd5e2;background:#06172988;color:#effcfd;box-shadow:inset 0 0 18px #3dd5e214}
.home-shell .ctas svg{width:18px;height:18px;flex:0 0 auto}
.home-shell .arc{display:none}
.hero-dial{position:absolute;z-index:2;left:46%;top:2%;width:clamp(240px,27vw,400px);height:auto;pointer-events:none;filter:drop-shadow(0 0 8px #3dd5e233)}

/* ---------- section titles ---------- */
.home-shell .sectiontitle .eyebrow{display:flex;align-items:center;gap:16px;letter-spacing:.42em;font-size:11px}
.home-shell .sectiontitle .eyebrow:after{content:"";width:40px;height:1px;background:currentColor;opacity:.75}
.home-shell .sectiontitle h2{font-size:clamp(28px,2.7vw,40px);line-height:1.12;max-width:13em;color:#f6e3c3;margin-top:10px}
.home-shell .sectiontitle{align-items:flex-end}
.home-shell .tools .sectiontitle h2{max-width:none}
.home-shell .sectiontitle>a{display:inline-flex;align-items:center;gap:10px;color:var(--cyan);font-size:14px;font-weight:600;margin-bottom:8px}
.home-shell .sectiontitle>a:hover{color:#8beef5}

/* ---------- discoveries ---------- */
.home-shell .home-news{margin-top:0;padding-top:34px;padding-bottom:42px;background:linear-gradient(180deg,#061729 0%,#07192b 100%)}
.home-shell .home-news:before{display:none}
.home-news .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.hn{position:relative;display:flex;flex-direction:column;justify-content:flex-end;min-height:clamp(190px,17vw,230px);padding:18px 20px 16px;border:1px solid #4a6474;border-radius:10px;overflow:hidden;background-color:#0b2234;background-position:center;background-size:cover;background-repeat:no-repeat;isolation:isolate;transition:transform .2s,border-color .2s,box-shadow .2s}
.hn:before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#06172900 18%,#061729a6 52%,#061729f2 100%)}
.hn:hover,.hn:focus-visible{border-color:#edc27d;transform:translateY(-2px);box-shadow:0 10px 30px #0008}
.hn .chip{position:static;align-self:flex-start;margin-bottom:9px;font-size:10px;letter-spacing:.06em;text-transform:uppercase;padding:4px 8px;border-radius:4px}
.hn h3{margin:0 0 10px;font:500 clamp(17px,1.35vw,20px)/1.22 Georgia,serif;color:#fff4e0;text-shadow:0 2px 10px #000a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hn .hn-meta{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;color:#d4dee3;font-size:12px}
.hn .hn-meta span{display:inline-flex;align-items:center;gap:6px}
.hn .hn-meta span+span{padding-left:14px;border-left:1px solid #ffffff40}
.hn .hn-meta svg{width:13px;height:13px;opacity:.85}

/* ---------- toolkit ---------- */
.home-shell .tools{padding-top:34px;padding-bottom:40px;border-top:1px solid #23404f;background:radial-gradient(700px 360px at 88% 10%,#1d5a6a55,transparent 70%),radial-gradient(520px 300px at 70% 100%,#efc27e14,transparent 70%),linear-gradient(180deg,#07192b,#0a2336)}
.home-shell .tools:after{display:none}
.home-shell .toolgrid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.home-shell .tool{min-height:clamp(250px,20vw,280px);padding:0;border:1px solid #c49a6399;border-radius:10px;background:#081b2c;overflow:hidden;display:flex;flex-direction:column;position:relative;isolation:isolate}
.home-shell .tool:nth-child(n){background-image:none}
.home-shell .tool:hover{border-color:#edc27d}
.tool-art{position:absolute;inset:46% 0 0;z-index:-1;background-position:center 40%;background-size:cover;-webkit-mask-image:linear-gradient(180deg,transparent 0%,#000 45%);mask-image:linear-gradient(180deg,transparent 0%,#000 45%);opacity:.92}
.tool-art:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 40%,#081b2ccc 100%)}
.tool-head{display:flex;align-items:center;gap:13px;padding:18px 18px 0}
.tool-icon{flex:0 0 auto;width:34px;height:34px;color:var(--gold);display:grid;place-items:center}
.tool-icon svg{width:30px;height:30px}
.home-shell .tool h3{font:500 clamp(17px,1.4vw,21px)/1.15 Georgia,serif;color:#fff1d8;margin:0}
.home-shell .tool p{margin:8px 18px 0 65px;max-width:none;font-size:12.5px;line-height:1.5;color:#d2dde2}
.home-shell .tool .tool-cta{margin:auto 0 0;padding:14px 18px 16px;text-align:center;color:var(--gold);font-weight:600;font-size:13px;display:flex;justify-content:center;align-items:center;gap:8px;text-shadow:0 1px 8px #000}
.home-shell .tool .tool-cta:after{content:"";position:absolute;inset:0}

/* ---------- featured civilization ---------- */
.home-shell .sumer-banner{background-image:none;height:clamp(250px,20vw,320px);border-bottom:1px solid #23404f}
/* The artwork keeps its own aspect ratio (no extra upscaling); its left edge fades into the navy. */
.home-shell .sumer-banner:before{content:"";position:absolute;top:0;bottom:0;right:0;height:100%;aspect-ratio:360/157;max-width:78%;background:url('./assets/banner-sumerians.webp') right center/cover no-repeat;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 30%);mask-image:linear-gradient(90deg,transparent 0%,#000 30%)}
.home-shell .sumer-banner:after{background:linear-gradient(90deg,#07192b 0%,#07192bee 26%,#07192b99 40%,#07192b22 58%,transparent 70%)}
.home-shell .sumer-banner .eyebrow{display:flex;align-items:center;gap:16px;letter-spacing:.42em}
.home-shell .sumer-banner .eyebrow:after{content:"";width:40px;height:1px;background:currentColor;opacity:.75}
.home-shell .sumer-banner h2{font-size:clamp(34px,3.4vw,52px);color:#f6e3c3;margin:10px 0 12px}
.home-shell .sumer-banner p{color:#e2e9ec;max-width:min(36vw,470px)}
.home-shell .sumer-banner .primary{background:#07192b99;border:1.5px solid #e3b16e;color:#fbe7c6;box-shadow:none;border-radius:10px;padding:11px 22px;font-size:14px;font-weight:600}
.home-shell .sumer-banner .primary:hover{background:#efc27e1f}

/* ---------- tablets ---------- */
@media(max-width:1100px){
 .home-news .grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .home-news .grid>.hn:nth-child(3){grid-column:1/-1}
 .home-shell .toolgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .hero-dial{left:auto;right:6%}
 .top .brand:after{display:none}
}
/* ---------- phones ---------- */
@media(max-width:700px){
 .home-shell .hero{height:auto;min-height:0}
 .home-shell .hero .wrap{height:auto;padding-top:76px;padding-bottom:52px}
 .home-shell .hero-art{width:100%;opacity:.75}
 .home-shell .hero-shade{background:linear-gradient(90deg,#061729f2 0%,#061729c4 60%,#06172966 100%),linear-gradient(0deg,#061729 0%,#06172900 40%)}
 .hero-dial{right:-40px;top:20px;width:220px;opacity:.7}
 .home-shell .hero h1{font-size:46px}
 .home-shell .ctas .primary,.home-shell .ctas .ghost{height:46px;padding:0 18px;font-size:14px}
 .home-news .grid,.home-shell .toolgrid{grid-template-columns:1fr}
 .home-shell .sectiontitle{flex-direction:column;align-items:flex-start;gap:8px}
 .home-shell .sectiontitle>a{margin-bottom:0}
 .home-shell .tool{min-height:190px}
 .home-shell .tool p{margin-left:65px}
 .home-shell .sumer-banner{height:auto;min-height:300px}
 .home-shell .sumer-banner .wrap{padding-top:34px;padding-bottom:34px}
 .home-shell .sumer-banner:before{left:auto;max-width:none;opacity:.55;-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 60%);mask-image:linear-gradient(90deg,transparent 0%,#000 60%)}
 .home-shell .sumer-banner p{max-width:none}
 .iconbtn{width:38px;height:38px}
}
@media (prefers-reduced-motion:reduce){.hn:hover{transform:none}}
