/* =========================================================
   ONKARPIT Techno — HOME
   ========================================================= */

/* ---- Hero slider ---- */
.hero{position:relative;background:var(--soil);overflow:hidden}
/* Hero + credentials ribbon fit exactly in the first screen (laptop 1536x864, desktop 2048x1152 …) */
.hero{--top-h:40px;--creds-h:98px}
.hero-track{position:relative;height:max(420px,min(calc(100vh - var(--top-h) - var(--header-h) - var(--creds-h)),62vw))}
@supports (height:100svh){.hero-track{height:max(420px,min(calc(100svh - var(--top-h) - var(--header-h) - var(--creds-h)),62vw))}}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity .9s ease,visibility .9s}
.hero-slide.is-active{opacity:1;visibility:visible;z-index:1}
.hero-media{position:absolute;inset:0}
.hero-media img{width:100%;height:100%;object-fit:cover;object-position:72% 50%;transform:scale(1.06);transition:transform 7s ease-out}
.hero-slide.is-active .hero-media img{transform:scale(1)}
.hero-media::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(35,25,19,.86) 0%,rgba(35,25,19,.62) 34%,rgba(35,25,19,.08) 62%,rgba(35,25,19,0) 100%)}
.hero-copy{position:absolute;inset:0;display:flex;align-items:center;z-index:2}
.hero-copy .container{width:100%}
.hero-copy-in{max-width:590px;color:#fff}
.hero-title{color:#fff;font-size:clamp(2.6rem,5.2vw,4.5rem);font-weight:800;line-height:.98;margin:0 0 18px;text-wrap:balance}
.hero-sub{font-size:clamp(1.05rem,1.5vw,1.25rem);color:#EFE5DA;max-width:46ch;margin:0 0 28px}
.hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-slide.is-active .hero-title,.hero-slide.is-active .hero-sub,.hero-slide.is-active .hero-actions{animation:heroIn .8s var(--ease) both}
.hero-slide.is-active .hero-sub{animation-delay:.12s}
.hero-slide.is-active .hero-actions{animation-delay:.22s}
@keyframes heroIn{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
.hero-controls{position:absolute;left:0;right:0;bottom:26px;z-index:3;display:flex;align-items:center;justify-content:space-between;margin-inline:auto}
.hero-dots{display:flex;gap:8px}
.hero-dot{width:44px;height:24px;padding:0;border:0;background:none;display:flex;align-items:center}
.hero-dot span{display:block;width:100%;height:4px;background:rgba(255,255,255,.35);border-radius:2px;transition:background .3s}
.hero-dot.is-active span{background:var(--orange)}
.hero-arrows{display:flex;gap:8px}
.hero-arrows button{width:48px;height:48px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.4);border-radius:50%;background:rgba(35,25,19,.35);color:#fff;transition:background .2s,border-color .2s}
.hero-arrows button:hover{background:var(--orange);border-color:var(--orange)}
.hero-arrows .ic{width:22px;height:22px}

/* ---- Credentials ribbon ---- */
.creds{border-bottom:1px solid var(--line);background:#fff}
.creds-in{display:grid;grid-template-columns:repeat(4,1fr)}
.cred{display:flex;align-items:center;gap:14px;padding:0 18px;min-height:96px}
.cred+.cred{border-left:1px solid var(--line)}
.cred img{width:auto;height:50px;flex:0 0 auto}
.cred-ic{display:grid;place-items:center;width:52px;height:52px;border-radius:50%;background:var(--orange-l);color:var(--orange-d);flex:0 0 52px}
.cred-ic .ic{width:26px;height:26px}
.cred p{margin:0;line-height:1.25}
.cred strong{display:block;font-family:var(--f-display);font-weight:700;font-size:1.2rem}
.cred span{font-size:.92rem;color:var(--muted)}

/* ---- Intro ---- */
.intro-grid{display:grid;grid-template-columns:1.25fr .9fr;gap:clamp(36px,6vw,90px);align-items:center}
.intro-copy h2{max-width:15ch}
.intro-hi{color:var(--orange-d);font-size:1.2rem;margin:-4px 0 18px}
.intro-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px 26px;margin-top:26px}
.intro-plate{transform:rotate(-1.2deg)}

/* ---- Categories ---- */
.cat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.2vw,26px)}
.cat-tile{position:relative;display:flex;flex-direction:column;min-height:300px;padding:22px 22px 20px;background:#fff;border-radius:var(--r);text-decoration:none;overflow:hidden;border:1px solid transparent;transition:border-color .25s,box-shadow .25s}
.cat-tile::before{content:"";position:absolute;left:0;right:0;bottom:0;height:5px;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.cat-tile:hover{border-color:var(--line);box-shadow:var(--shadow)}
.cat-tile:hover::before{transform:scaleX(1)}
.cat-media{flex:1;display:grid;place-items:center;padding:6px 10px 16px}
.cat-media img{max-height:190px;width:auto;object-fit:contain;transition:transform .45s var(--ease)}
.cat-tile:hover .cat-media img{transform:scale(1.05)}
.cat-body{display:flex;flex-direction:column}
.cat-name{font-family:var(--f-display);font-weight:700;font-size:1.65rem;line-height:1.05}
.cat-meta{color:var(--muted);font-size:.95rem;margin-top:4px}
.cat-go{position:absolute;right:20px;bottom:22px;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--soil);color:#fff;transition:background .2s}
.cat-go .ic{width:20px;height:20px}
.cat-tile:hover .cat-go{background:var(--orange)}

/* ---- Spotlight ---- */
.spot{position:relative;color:#EFE5DA;background:var(--soil) var(--spot-bg) center 70%/cover no-repeat;isolation:isolate;padding-block:clamp(70px,9vw,120px);overflow:hidden}
.spot::before{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(35,25,19,.96) 0%,rgba(35,25,19,.88) 42%,rgba(35,25,19,.35) 100%)}
.spot-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(30px,5vw,60px);align-items:center}
.spot-logo{height:62px;width:auto;margin-bottom:20px}
.spot h2{color:#fff;font-size:clamp(2.3rem,4.4vw,3.6rem)}
.spot-tag{font-family:var(--f-display);font-size:1.45rem;color:var(--wheat);font-weight:600;margin:-6px 0 14px}
.spot-copy>p{max-width:52ch}
.spot-figs{display:grid;grid-template-columns:repeat(4,1fr);margin:28px 0 0;border-top:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18)}
.spot-figs div{padding:16px 12px 14px 0}
.spot-figs div+div{padding-left:14px;border-left:1px solid rgba(255,255,255,.14)}
.spot-figs dt{font-size:.88rem;color:#BFB2A5}
.spot-figs dd{margin:2px 0 0;font-family:var(--f-display);font-weight:800;font-size:clamp(1.5rem,2.4vw,2rem);color:#fff;line-height:1}
.spot-figs small{font-size:.55em;font-weight:600;color:var(--wheat)}
.spot-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:28px}
.spot-side{position:relative}
.spot-machine{width:112%;max-width:none;margin-left:-4%;filter:drop-shadow(0 30px 30px rgba(0,0,0,.45))}
.spot-badge{position:absolute;right:0;top:-40px;width:160px;z-index:2;filter:drop-shadow(0 10px 16px rgba(0,0,0,.35));transform:rotate(6deg)}

/* ---- Featured ---- */
.featured-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;flex-wrap:wrap;margin-bottom:clamp(28px,4vw,44px)}
.featured-head .section-head{margin-bottom:0}

/* ---- Engineering details ---- */
.build .lead{color:#CFC2B4}
.build-grid{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(16px,2vw,24px)}
.build-item{background:var(--soil-2);border-radius:var(--r);overflow:hidden;border:1px solid rgba(255,255,255,.06)}
.build-item{transition:transform .3s var(--ease),border-color .3s}
.build-item:hover{transform:translateY(-4px);border-color:rgba(242,106,27,.5)}
.build-item img{width:100%;aspect-ratio:4/3;object-fit:cover;background:#F3F5F4}
.build-item h3{font-size:1.3rem;margin:16px 18px 4px;color:#fff}
.build-item p{margin:0 18px 18px;font-size:.95rem;color:#CFC2B4}

/* ---- Brands ---- */
.brands{border-bottom:1px solid var(--line)}
.brand-row{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(16px,2.2vw,26px)}
.brand-item{position:relative;display:flex;flex-direction:column;align-items:center;text-align:center;padding:34px 28px 30px;background:#fff;border:1px solid var(--line);border-radius:var(--r);text-decoration:none;color:var(--ink);overflow:hidden;transition:border-color .25s,box-shadow .25s,transform .25s var(--ease)}
.brand-item::after{content:"";position:absolute;left:0;right:0;bottom:0;height:4px;background:var(--orange);transform:scaleX(0);transition:transform .35s var(--ease)}
.brand-item:hover{border-color:#D8CEC3;box-shadow:var(--shadow);transform:translateY(-4px)}
.brand-item:hover::after{transform:scaleX(1)}
.brand-logo{height:104px;width:100%;display:flex;align-items:center;justify-content:center;margin-bottom:16px}
.brand-logo img{max-height:84px;max-width:230px;width:auto;height:auto;object-fit:contain}
.brand-logo img.is-emblem{max-height:104px;filter:drop-shadow(0 6px 10px rgba(35,25,19,.18))}
.brand-item strong{font-family:var(--f-display);font-weight:700;font-size:1.45rem;line-height:1.1;margin-bottom:6px}
.brand-item p{margin:0;color:var(--muted);font-size:.98rem;max-width:32ch}

/* ---- Process ---- */
.steps{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.steps li{position:relative;padding:28px 24px 26px;background:#fff;border:1px solid var(--line);border-radius:var(--r);transition:transform .3s var(--ease),box-shadow .3s,border-color .3s}
.steps li::after{content:"";position:absolute;left:0;right:0;top:0;height:4px;border-radius:var(--r) var(--r) 0 0;background:var(--orange);transform:scaleX(0);transform-origin:left;transition:transform .35s var(--ease)}
.steps li:hover{transform:translateY(-6px);box-shadow:var(--shadow);border-color:#D8CEC3}
.steps li:hover::after{transform:scaleX(1)}
.step-n{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:50%;background:var(--soil);color:#fff;font-family:var(--f-display);font-weight:800;font-size:1.6rem;margin-bottom:22px;transition:background .3s,transform .3s var(--ease)}
.steps li:hover .step-n{background:var(--orange);transform:scale(1.06)}
.steps h3{font-size:1.45rem;transition:color .3s}
.steps li:hover h3{color:var(--orange-d)}
.steps p{color:var(--muted);margin:0;font-size:.98rem}

/* ---- Home blog: latest 4 in one row ---- */
.home-blog-grid{grid-template-columns:repeat(4,1fr)}

/* ---- Reach ---- */
.reach-grid{display:grid;grid-template-columns:1fr 1.1fr;gap:clamp(36px,5vw,70px);align-items:start}
.unit-card{display:flex;gap:16px;padding:22px 0;border-top:1px solid var(--line)}
.unit-ic{display:grid;place-items:center;width:48px;height:48px;flex:0 0 48px;border-radius:50%;background:var(--orange-l);color:var(--orange-d)}
.unit-ic .ic{width:24px;height:24px}
.unit-card h3{font-size:1.45rem;margin-bottom:4px}
.unit-card p{color:var(--muted);margin:0 0 8px}
.reach-direct{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px;padding-top:22px;border-top:1px solid var(--line)}
.reach-direct a{display:flex;align-items:center;gap:12px;padding:14px 16px;border:1px solid var(--line);border-radius:var(--r);text-decoration:none;min-width:0;transition:border-color .2s}
.reach-direct a:hover{border-color:var(--orange)}
.reach-direct .ic{width:24px;height:24px;color:var(--orange-d);flex:0 0 24px}
.reach-direct span{display:flex;flex-direction:column;font-weight:600;min-width:0;overflow-wrap:anywhere;line-height:1.3}
.reach-direct small{font-weight:400;color:var(--muted);font-size:.85rem}
.reach-form{background:var(--soil);color:#E7DCD0;border-radius:var(--r-lg);padding:clamp(24px,3.4vw,40px);box-shadow:0 30px 60px -34px rgba(35,25,19,.7)}
.reach-form h2{color:#fff;font-size:clamp(2rem,3vw,2.5rem);margin-bottom:6px}
.reach-form>p{color:#C8BCAF;margin-bottom:22px}

/* ---- Responsive ---- */
@media (max-width:1060px){
  .creds-in{grid-template-columns:1fr 1fr}
  .cred:nth-child(3){border-left:0}
  .cred:nth-child(n+3){border-top:1px solid var(--line)}
  .intro-grid,.spot-grid,.reach-grid{grid-template-columns:1fr}
  .intro-plate{transform:none;max-width:560px}
  .spot-side{max-width:620px;margin-top:10px}
  .spot-machine{width:100%;margin:0}
  .spot-badge{top:-50px;right:0;width:130px}
  .cat-grid{grid-template-columns:1fr 1fr}
  .build-grid{grid-template-columns:repeat(2,1fr)}
  .home-blog-grid{grid-template-columns:repeat(2,1fr)}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:760px){
  .hero-track{height:auto}
  .hero-slide{position:relative;display:none}
  .hero-slide.is-active{display:block}
  .hero-media{position:relative;height:62vw;min-height:230px}
  .hero-media::after{background:linear-gradient(180deg,rgba(35,25,19,0) 55%,rgba(35,25,19,.95) 100%)}
  .hero-media img{object-position:80% 50%}
  .hero-copy{position:relative;background:var(--soil);padding:6px 0 92px}
  .hero-title{font-size:clamp(2.2rem,9vw,2.8rem)}
  .hero-sub{margin-bottom:22px}
  .hero-controls{bottom:24px}
  .hero-arrows button{width:42px;height:42px}
  .creds-in{grid-template-columns:1fr}
  .cred{min-height:0}
  .cred{padding:16px 0}
  .cred+.cred{border-left:0;border-top:1px solid var(--line)}
  .cat-grid{grid-template-columns:1fr 1fr;gap:12px}
  .cat-tile{min-height:220px;padding:14px}
  .cat-media img{max-height:120px}
  .cat-name{font-size:1.3rem}
  .cat-go{width:34px;height:34px;right:12px;bottom:14px}
  .cat-go .ic{width:16px;height:16px}
  .build-grid{grid-template-columns:1fr 1fr}
  .brand-row{grid-template-columns:1fr}
  .home-blog-grid{grid-template-columns:1fr}
  .brand-item{padding:26px 20px 24px}
  .brand-logo{height:78px;margin-bottom:12px}
  .brand-logo img{max-height:72px}
  .brand-logo img.is-emblem{max-height:88px}
  .brand-logo{height:92px}
  .steps{grid-template-columns:1fr;gap:14px}
  .steps li{padding:22px 20px 22px 106px;min-height:112px}
  .step-n{position:absolute;left:20px;top:22px;margin:0}
  .reach-direct{grid-template-columns:1fr}
  .spot-figs{grid-template-columns:1fr 1fr}
  .spot-figs div:nth-child(3){padding-left:0;border-left:0}
  .spot-figs div:nth-child(n+3){border-top:1px solid rgba(255,255,255,.14)}
}
@media (max-width:420px){
  .cat-body .cat-meta{font-size:.85rem}
  .build-item h3{font-size:1.15rem;margin:12px 12px 4px}
  .build-item p{margin:0 12px 14px;font-size:.88rem}
}
.step-n .ic{width:30px;height:30px}
