/* ============================================================
   DERRICK INDUSTRIES — HOME PAGE (layout v2: bento + tabs)
   Loaded only by index.html. Everything is scoped to body.home
   or to home-only class names so the other pages stay untouched.
   ============================================================ */

/* requires site-motion.css (page chrome, [data-reveal], --ease) */

body.home{ --grid-line:rgba(120,158,196,.13); --r:6px; }

/* ------------------------------------------------------------
   HERO — bento grid
   ------------------------------------------------------------ */
.hero-bento{ padding:28px 0 0; background:var(--paper); }

.bento{
  display:grid;
  grid-template-columns:repeat(12, minmax(0,1fr));
  grid-template-rows:repeat(2, minmax(250px, 1fr));
  gap:14px;
  min-height:min(calc(100vh - 230px), 720px);
}
.bt{ position:relative; overflow:hidden; border-radius:var(--r); }

/* headline tile */
.bt-intro{
  grid-column:1 / -1; grid-row:1 / 3;
  display:flex; flex-direction:column; justify-content:flex-end;
  padding:44px 44px 46px;
  background:
    radial-gradient(90% 70% at 0% 0%, rgba(93,177,230,.28) 0%, transparent 60%),
    linear-gradient(160deg, var(--ink-2) 0%, var(--ink) 55%, #22364A 100%);
  color:var(--paper);
  isolation:isolate;
}
.bt-grid{
  position:absolute; inset:0; z-index:-1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size:48px 48px;
  -webkit-mask-image:radial-gradient(110% 90% at 100% 0%, #000 10%, transparent 70%);
  mask-image:radial-gradient(110% 90% at 100% 0%, #000 10%, transparent 70%);
  animation:gridDrift 30s linear infinite;
}
@keyframes gridDrift{ to{ background-position:48px 48px, 48px 48px; } }

body.home .hero-tag{
  align-self:flex-start;
  display:inline-flex; align-items:center; gap:10px;
  font-family:var(--mono); font-size:11.5px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--amber);
  border:1px solid rgba(122,192,237,.35);
  border-radius:100px;
  padding:7px 14px;
  margin-bottom:auto;
}
body.home .hero-tag .dot{
  width:7px; height:7px; flex:none; border-radius:50%;
  background:var(--amber);
  animation:livePulse 2.4s ease-out infinite;
}
@keyframes livePulse{
  0%{ box-shadow:0 0 0 0 rgba(122,192,237,.7); }
  70%,100%{ box-shadow:0 0 0 9px rgba(122,192,237,0); }
}

/* headline — line-by-line mask reveal */
body.home .hero-title{
  margin:40px 0 0;
  color:var(--paper);
  font-family:var(--display); font-weight:700;
  font-size:clamp(36px, 4.5vw, 62px);
  line-height:1.03; letter-spacing:-0.02em;
}
body.home .hero-title .line{ display:block; overflow:hidden; padding-bottom:.06em; }
body.home .hero-title .line > span{ display:block; transform:translateY(112%); opacity:0; }
body.home.ready .hero-title .line > span{
  animation:lineUp 1s var(--ease) forwards;
  animation-delay:var(--d, 0s);
}
@keyframes lineUp{ to{ transform:none; opacity:1; } }
body.home .hero-title em{ font-style:normal; color:var(--amber); position:relative; }
body.home .hero-title em::after{
  content:""; position:absolute; left:0; right:0; bottom:.04em; height:3px;
  background:repeating-linear-gradient(-45deg, var(--amber) 0 5px, transparent 5px 10px);
  transform:scaleX(0); transform-origin:0 50%;
}
body.home.ready .hero-title em::after{ animation:ruleIn .8s var(--ease) 1.15s forwards; }
@keyframes ruleIn{ to{ transform:scaleX(1); } }

body.home .bt-intro .sub{ color:#C6D2DE; font-size:16.5px; max-width:52ch; margin-top:22px; }
body.home .bt-intro .hero-actions{ display:flex; flex-wrap:wrap; gap:12px; margin-top:30px; }
body.home .bt-intro .btn{ border-radius:100px; }

/* product carousel (left tile) */
.sr-only{ position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.bt-carousel{ padding:0; background:var(--ink); }
.cs-track{ position:absolute; inset:0; }
.cs-slide{ position:absolute; inset:0; margin:0; opacity:0; transition:opacity .9s ease; }
.cs-slide.is-active{ opacity:1; }
.cs-slide img{ width:100%; height:100%; object-fit:cover; transform:scale(1.04); transition:transform 6s linear; }
.cs-slide.is-active img{ transform:scale(1.12); }
.cs-slide::after{ content:""; position:absolute; inset:0; background:linear-gradient(180deg, rgba(22,34,48,0) 55%, rgba(22,34,48,.85) 100%); }
.cs-slide figcaption{
  position:absolute; left:28px; bottom:30px; z-index:1; color:#fff;
  display:flex; align-items:baseline; gap:10px;
  font-family:var(--display); font-weight:700; font-size:clamp(20px, 2vw, 28px);
}
.cs-slide figcaption b{ font-family:var(--mono); font-size:12px; font-weight:500; color:var(--amber); }
.cs-ctrl{ position:absolute; right:22px; bottom:24px; z-index:2; display:flex; align-items:center; gap:12px; }
.cs-dots{ display:flex; gap:6px; }
.cs-dot{ width:8px; height:8px; padding:0; border:0; border-radius:50%; background:rgba(255,255,255,.45); cursor:pointer; transition:background .3s, width .3s; }
.cs-dot.is-active{ background:var(--amber); width:22px; border-radius:8px; }
.cs-btn{ width:38px; height:38px; border:0; border-radius:50%; background:rgba(244,248,250,.92); color:var(--ink); font-size:16px; cursor:pointer; transition:background .3s; }
.cs-btn:hover{ background:var(--amber); }
.cs-btn:focus-visible, .cs-dot:focus-visible{ outline:3px solid var(--steel); outline-offset:2px; }

/* image tiles */
.bt-a{ grid-column:7 / 13; grid-row:1; }
.bt-b{ grid-column:7 / 10;  grid-row:2; }
.bt-c{ grid-column:10 / 13; grid-row:2; }

.bt-img{ display:block; background:var(--ink); color:#fff; }
.bt-img img{
  position:absolute; inset:-4%; width:108%; height:108%; max-width:none; object-fit:cover;
  transform:translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.02);
  transition:transform 1.1s var(--ease), filter .6s ease;
  filter:saturate(.9);
}
.bt-img:hover img{ transform:translate3d(var(--tx, 0px), var(--ty, 0px), 0) scale(1.09); filter:saturate(1.05); }
.bt-img::after{
  content:""; position:absolute; inset:0;
  background:linear-gradient(180deg, rgba(22,34,48,0) 40%, rgba(22,34,48,.82) 100%);
  transition:opacity .5s ease;
}
.bt-label, .bt-spec, .bt-go{ position:absolute; z-index:1; }
.bt-label{
  left:22px; bottom:40px;
  display:flex; align-items:baseline; gap:10px;
  font-family:var(--display); font-weight:700; font-size:clamp(19px, 1.7vw, 24px); line-height:1.1;
}
.bt-label b{ font-family:var(--mono); font-size:12px; font-weight:500; color:var(--amber); }
.bt-spec{
  left:22px; bottom:18px;
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  color:#C6D2DE;
  opacity:.85;
  transition:transform .5s var(--ease), opacity .5s ease;
}
.bt-go{
  top:16px; right:16px;
  width:42px; height:42px; display:grid; place-items:center;
  border-radius:50%;
  background:rgba(244,248,250,.92); color:var(--ink);
  font-size:18px;
  transform:scale(.8) rotate(-45deg); opacity:0;
  transition:transform .5s var(--ease), opacity .4s ease, background .3s ease;
}
.bt-img:hover .bt-go, .bt-img:focus-visible .bt-go{ transform:none; opacity:1; }
.bt-img:hover .bt-go{ background:var(--amber); }
.bt-img:focus-visible{ outline:3px solid var(--steel); outline-offset:3px; }

/* tiles wipe up on load, images settle from a zoom */
.bt-img{ clip-path:inset(100% 0 0 0); }
body.home.ready .bt-img{ animation:tileIn 1.1s var(--ease) both; }
body.home.ready .bt-a{ animation-delay:.25s; }
body.home.ready .bt-b{ animation-delay:.4s; }
body.home.ready .bt-c{ animation-delay:.55s; }
@keyframes tileIn{ to{ clip-path:inset(0 0 0 0); } }
body.home.ready .bt-img img{ animation:imgSettle 1.8s var(--ease) both; animation-delay:inherit; }
@keyframes imgSettle{ from{ scale:1.25; } to{ scale:1; } }

/* stat row under the bento */
.stat-row{
  display:grid; grid-template-columns:repeat(4, 1fr);
  margin-top:14px;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.stat{ padding:20px 22px; border-left:1px solid var(--line); }
.stat:first-child{ border-left:0; padding-left:0; }
.stat .n{ font-family:var(--mono); font-size:clamp(20px, 2vw, 26px); color:var(--steel-dp); }
.stat .l{ font-size:13px; color:var(--slate); margin-top:2px; }

@media (max-width:980px){
  .bento{ grid-template-columns:1fr; grid-template-rows:auto; min-height:0; }
  .bt-intro{ grid-column:1 / -1; grid-row:1; padding:36px 28px 34px; min-height:520px; }
  .bt-carousel{ min-height:380px; padding:0; }
}
@media (max-width:760px){
  .stat-row{ grid-template-columns:1fr 1fr; }
  .stat:nth-child(3){ border-left:0; padding-left:0; }
  .stat:nth-child(n+3){ border-top:1px solid var(--line); }
  .stat{ padding:16px 14px; }
}
@media (max-width:520px){
  .hero-bento{ padding-top:16px; }
  .bento{ gap:10px; }
  .bt-intro{ min-height:0; }
  .bt-carousel{ min-height:300px; }
  .cs-slide figcaption{ left:16px; bottom:70px; }
  .cs-ctrl{ left:16px; right:16px; bottom:16px; justify-content:space-between; }
  body.home .hero-title{ margin-top:30px; }
  .bt-label{ left:16px; bottom:36px; font-size:17px; }
  .bt-spec{ left:16px; bottom:14px; font-size:10px; }
  .bt-b .bt-spec, .bt-c .bt-spec{ display:none; }
  .bt-b .bt-label, .bt-c .bt-label{ bottom:16px; }
}

/* ------------------------------------------------------------
   STANDARDS TICKER
   ------------------------------------------------------------ */
.ticker{
  margin-top:56px;
  background:var(--ink);
  overflow:hidden;
  padding:14px 0;
}
.ticker-track{ display:flex; width:max-content; animation:marquee 38s linear infinite; }
.ticker:hover .ticker-track{ animation-play-state:paused; }
.ticker-set{ display:flex; align-items:center; flex:none; }
.ticker-set span{
  font-family:var(--mono); font-size:12.5px; letter-spacing:.16em; text-transform:uppercase;
  color:#B7C6D4; padding:0 26px; white-space:nowrap;
}
.ticker-set i{
  width:8px; height:8px; flex:none;
  background:repeating-linear-gradient(-45deg, var(--amber) 0 3px, transparent 3px 6px);
}
@keyframes marquee{ to{ transform:translateX(-50%); } }

/* ------------------------------------------------------------
   PRODUCT LINES — tabs + panels
   ------------------------------------------------------------ */
.lines-tabs{
  position:relative;
  display:grid; grid-template-columns:repeat(3, 1fr);
  border-bottom:1px solid var(--line);
  margin-bottom:36px;
}
.lines-tabs[data-reveal]{ transform:none; }
.lines-tabs button{
  display:grid; grid-template-columns:auto 1fr; column-gap:14px; align-items:baseline;
  padding:20px 22px 22px;
  border:0; background:none; cursor:pointer; text-align:left;
  color:var(--slate);
  transition:color .3s ease, background .3s ease;
}
.lines-tabs button:hover{ background:var(--paper-2); color:var(--ink); }
.lines-tabs button.is-active{ color:var(--ink); }
.lines-tabs button:focus-visible{ outline:2px solid var(--steel); outline-offset:-2px; }
.lt-n{ grid-row:1 / 3; font-family:var(--mono); font-size:13px; color:var(--steel-dp); }
.lt-name{ font-family:var(--display); font-weight:700; font-size:clamp(18px, 2vw, 24px); line-height:1.15; }
.lt-sub{ font-size:13px; color:var(--slate); margin-top:4px; }
.lt-ink{
  position:absolute; left:0; bottom:-2px; height:3px; width:calc(100% / 3);
  background:var(--steel);
  transform:translateX(calc(var(--tab, 0) * 100%));
  transition:transform .6s var(--ease);
}

.lp{
  display:grid; grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);
  gap:28px; align-items:stretch;
}
.lp[hidden]{ display:none; }

/* gallery: lead image + vertical thumb rail */
.sc-gallery{
  display:grid; grid-template-columns:minmax(0, 1fr) 104px; gap:10px;
  min-height:520px;
}
.sc-main{
  position:relative; margin:0; overflow:hidden;
  border-radius:var(--r);
  background:var(--paper-2);
}
.sc-main img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:opacity .25s ease, transform 1.2s var(--ease);
}
.sc-main:hover img{ transform:scale(1.04); }
.sc-main.is-swapping img{ opacity:0; }
.sc-main.on-white{ background:#fff; }
.sc-main.on-white img{ object-fit:contain; padding:28px; }
.sc-main figcaption{
  position:absolute; left:14px; bottom:14px; z-index:1;
  padding:8px 14px; border-radius:100px;
  background:rgba(44,66,88,.88); color:var(--paper);
  backdrop-filter:blur(6px); -webkit-backdrop-filter:blur(6px);
  font-family:var(--mono); font-size:11.5px; letter-spacing:.06em; text-transform:uppercase;
}
.sc-count{
  position:absolute; top:14px; right:14px; z-index:1;
  padding:5px 12px; border-radius:100px;
  background:rgba(244,248,250,.92); color:var(--ink);
  font-family:var(--mono); font-size:11px; letter-spacing:.08em; text-transform:uppercase;
}
.sc-thumbs{ display:grid; grid-template-rows:repeat(4, 1fr); gap:10px; }
.sc-thumbs button{
  position:relative; padding:0; border:0; cursor:pointer;
  border-radius:var(--r); overflow:hidden;
  background:var(--paper-2); opacity:.6;
  outline:2px solid transparent; outline-offset:-2px;
  transition:outline-color .25s ease, opacity .25s ease, transform .35s var(--ease);
}
.sc-thumbs img{ width:100%; height:100%; object-fit:cover; }
.sc-thumbs button.on-white{ background:#fff; }
.sc-thumbs button.on-white img{ object-fit:contain; padding:8px; }
.sc-thumbs button:hover{ opacity:1; transform:translateX(-3px); }
.sc-thumbs button.is-active{ opacity:1; outline-color:var(--steel); }
.sc-thumbs button:focus-visible{ opacity:1; outline-color:var(--ink); }
.sc-thumbs .tag{
  position:absolute; left:6px; top:6px; padding:2px 6px; border-radius:3px;
  background:var(--ink); color:var(--paper);
  font-family:var(--mono); font-size:10px; letter-spacing:.06em;
}

/* details card */
.lp-info{
  padding:34px 34px 32px;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--r);
}
.sc-num{
  font-family:var(--mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase;
  color:var(--steel-dp); margin-bottom:12px;
}
.lp-info h3{ font-size:clamp(24px, 2.4vw, 32px); line-height:1.12; margin-bottom:14px; }
.sc-copy{ color:var(--slate); font-size:15px; margin-bottom:22px; }

.sc-specs{ display:grid; grid-template-columns:1fr 1fr; margin:0 0 22px; border-top:1px solid var(--line); }
.sc-specs div{ padding:11px 0; border-bottom:1px solid var(--line); }
.sc-specs div:nth-child(odd){ padding-right:16px; }
.sc-specs dt{ font-family:var(--mono); font-size:10.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--slate); }
.sc-specs dd{ margin:2px 0 0; font-family:var(--display); font-weight:600; font-size:15.5px; }

.sc-chips-label{
  font-family:var(--mono); font-size:11px; letter-spacing:.12em; text-transform:uppercase;
  color:var(--slate); margin-bottom:10px;
}
.sc-swatches{ display:flex; flex-wrap:wrap; gap:6px; margin-bottom:26px; }
.sc-swatches img, .sc-more{
  width:32px; height:32px; object-fit:cover; border-radius:50%;
  border:1px solid var(--line);
  transition:transform .25s var(--ease), background .25s ease;
}
.sc-swatches img:hover{ transform:translateY(-3px) scale(1.15); }
.sc-more{
  display:grid; place-items:center; background:var(--ink); color:var(--paper);
  font-family:var(--mono); font-size:10.5px; border-color:var(--ink);
}
.sc-more:hover{ background:var(--steel-dp); }

.sc-subs{ display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.sc-subs a{
  padding:7px 14px; border:1px solid var(--line); border-radius:100px;
  font-size:13.5px; font-weight:600;
  transition:border-color .25s ease, background .25s ease;
}
.sc-subs a:hover{ border-color:var(--ink); background:var(--paper-2); }

.sc-mats{ border-top:1px solid var(--line); margin-bottom:26px; }
.sc-mats a{
  display:grid; grid-template-columns:48px 1fr auto; align-items:center; gap:12px;
  padding:11px 4px; border-bottom:1px solid var(--line);
  transition:background .25s ease, padding .25s var(--ease);
}
.sc-mats a:hover{ background:var(--paper-2); padding-left:10px; }
.sc-mats b{ font-family:var(--mono); font-size:13px; color:var(--steel-dp); }
.sc-mats span{ font-size:14.5px; }
.sc-mats i{ font-style:normal; font-family:var(--mono); font-size:11.5px; color:var(--slate); }
.sc-mats i::after{ content:" items"; }

.sc-actions{ display:flex; flex-wrap:wrap; gap:10px; }
.sc-actions .btn{ border-radius:100px; padding:13px 22px; }

/* panel entrance — replays every time a tab is shown */
.lines-panels[data-reveal]{ transform:none; }
.lines-panels.in .lp:not([hidden]) .sc-main{ animation:wipeIn 1s var(--ease) both; }
.lines-panels.in .lp:not([hidden]) .sc-thumbs button{
  animation:thumbIn .6s var(--ease) both;
  animation-delay:calc(.25s + var(--i, 0) * 70ms);
}
.lines-panels.in .lp:not([hidden]) .lp-info{ animation:infoIn .8s var(--ease) .1s both; }
.lines-panels.in .lp:not([hidden]) .sc-swatches > *{
  animation:swatchPop .5s var(--ease) both;
  animation-delay:calc(.45s + var(--i, 0) * 40ms);
}
.lines-panels.in .lp:not([hidden]) .sc-mats li{
  animation:matIn .55s var(--ease) both;
  animation-delay:calc(.4s + var(--i, 0) * 80ms);
}
@keyframes wipeIn{ from{ clip-path:inset(0 100% 0 0); } to{ clip-path:inset(0 0 0 0); } }
@keyframes thumbIn{ from{ opacity:0; transform:translateY(16px); } }
@keyframes infoIn{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
@keyframes swatchPop{ from{ opacity:0; transform:scale(.4); } to{ opacity:1; transform:none; } }
@keyframes matIn{ from{ opacity:0; transform:translateX(-14px); } to{ opacity:1; transform:none; } }

@media (max-width:980px){
  .lp{ grid-template-columns:1fr; }
  .sc-gallery{ grid-template-columns:1fr; min-height:0; }
  .sc-main{ aspect-ratio:16/10; }
  .sc-thumbs{ grid-template-rows:none; grid-template-columns:repeat(4, 1fr); }
  .sc-thumbs button{ aspect-ratio:4/3; }
  .sc-thumbs button:hover{ transform:none; }
}
@media (max-width:640px){
  .lines-tabs{ grid-template-columns:repeat(3, minmax(150px, 1fr)); overflow-x:auto; scrollbar-width:none; }
  .lines-tabs::-webkit-scrollbar{ display:none; }
  .lines-tabs button{ padding:14px 14px 16px; }
  .lt-sub{ display:none; }
  .lp-info{ padding:24px 20px; }
  .sc-specs{ grid-template-columns:1fr; }
  .sc-specs div:nth-child(odd){ padding-right:0; }
  .sc-actions .btn{ flex:1 1 100%; justify-content:center; }
}

/* ------------------------------------------------------------
   FEATURED — draggable carousel
   ------------------------------------------------------------ */
body.home .featured{ background:var(--paper-2); }
.fc-side{ display:flex; align-items:flex-end; gap:28px; }
.fc-nav{ display:flex; gap:8px; flex:none; }
.fc-nav button{
  width:50px; height:50px; border-radius:50%;
  border:1px solid var(--ink); background:transparent; color:var(--ink);
  font-size:18px; cursor:pointer;
  transition:background .25s ease, color .25s ease, opacity .25s ease, transform .25s var(--ease);
}
.fc-nav button:hover:not(:disabled){ background:var(--ink); color:var(--paper); transform:scale(1.06); }
.fc-nav button:disabled{ opacity:.3; cursor:default; }

.featured-grid{
  display:grid; grid-auto-flow:column;
  grid-auto-columns:calc((100% - 3 * 20px) / 4);
  gap:20px;
  overflow-x:auto; overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;
  scrollbar-width:none;
  padding:6px 0 10px;
  cursor:grab;
}
.featured-grid::-webkit-scrollbar{ display:none; }
.featured-grid.is-dragging{ cursor:grabbing; scroll-snap-type:none; }
.featured-grid.is-dragging .f-card{ pointer-events:none; }
.f-card{
  scroll-snap-align:start;
  display:flex; flex-direction:column; color:inherit; text-decoration:none;
  background:var(--white); border:1px solid var(--line); border-radius:var(--r);
  overflow:hidden;
  transition:border-color .2s ease, transform .4s var(--ease), box-shadow .4s ease;
}
.f-card:hover{ border-color:var(--steel); transform:translateY(-6px); box-shadow:0 24px 40px -28px rgba(27,36,48,.6); }
.f-card .f-img{ aspect-ratio:4/3; background:#fff; overflow:hidden; }
.f-card .f-img img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .7s var(--ease); -webkit-user-drag:none; }
.f-card:hover .f-img img{ transform:scale(1.06); }
.f-card .f-body{ padding:18px 20px 20px; display:flex; flex-direction:column; gap:8px; }
.f-card .f-cat{ font-family:var(--mono); font-size:11px; letter-spacing:.06em; color:var(--amber-dp); text-transform:uppercase; }
.f-card h3{ font-size:18px; line-height:1.25; margin:0; }
.f-card .f-go{ font-family:var(--mono); font-size:12.5px; font-weight:600; margin-top:4px; color:var(--steel-dp); }

.f-card.will-reveal{ opacity:0; transform:translateX(60px); }
.f-card.will-reveal.in{
  opacity:1; transform:none;
  transition:opacity .8s var(--ease), transform .9s var(--ease), border-color .2s ease, box-shadow .4s ease;
  transition-delay:var(--d, 0s), var(--d, 0s), 0s, 0s;
}
.f-card.will-reveal.in:hover{ transform:translateY(-6px); transition-delay:0s; }

.fc-foot{ display:flex; align-items:center; gap:28px; margin-top:30px; }
.fc-progress{ flex:1; height:2px; background:var(--line); position:relative; overflow:hidden; }
.fc-progress i{
  position:absolute; top:0; bottom:0; left:0;
  width:calc(var(--w, .5) * 100%);
  background:var(--ink);
  transform:translateX(calc(var(--x, 0) * 100%));
}
.fc-foot .btn{ border-radius:100px; }

@media (max-width:1000px){ .featured-grid{ grid-auto-columns:calc((100% - 20px) / 2.2); } }
@media (max-width:560px){
  .featured-grid{ grid-auto-columns:78%; gap:14px; }
  .fc-side{ flex-direction:column; align-items:flex-start; gap:16px; }
  .fc-foot{ flex-direction:column; align-items:stretch; }
  .fc-foot .btn{ justify-content:center; }
}

/* ------------------------------------------------------------
   WHY — sticky intro + numbered list with a scroll-linked rail
   ------------------------------------------------------------ */
body.home .why{ position:relative; overflow:hidden; }
body.home .why::before{
  content:""; position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(120,158,196,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,158,196,.07) 1px, transparent 1px);
  background-size:64px 64px;
  -webkit-mask-image:radial-gradient(70% 80% at 0% 50%, #000, transparent 75%);
  mask-image:radial-gradient(70% 80% at 0% 50%, #000, transparent 75%);
  pointer-events:none;
}
.why-split{
  position:relative; z-index:1;
  display:grid; grid-template-columns:minmax(0, 5fr) minmax(0, 7fr); gap:72px;
  align-items:start;
}
.why-intro{ position:sticky; top:110px; }
.why-intro h2{ font-size:clamp(28px, 3.4vw, 42px); margin-bottom:18px; }
.why-intro .lede{ color:#B7BEC8; font-size:15.5px; max-width:42ch; }

.why-list{ position:relative; list-style:none; margin:0; padding:0 0 0 34px; counter-reset:none; }
.why-fill{ position:absolute; left:0; top:8px; bottom:8px; width:2px; background:var(--line-dk); }
.why-fill i{
  position:absolute; inset:0; display:block;
  background:linear-gradient(180deg, var(--amber), var(--steel));
  transform:scaleY(var(--p, 0)); transform-origin:50% 0;
}
.why-item{
  position:relative;
  display:grid; grid-template-columns:96px 1fr; gap:20px;
  padding:34px 0 38px;
  border-top:1px solid var(--line-dk);
}
.why-item:first-of-type{ border-top:0; padding-top:4px; }
.why-item::before{                     /* node on the rail */
  content:""; position:absolute; left:-40px; top:44px;
  width:14px; height:14px; border-radius:50%;
  background:var(--ink); border:2px solid var(--line-dk);
  transition:background .4s ease, border-color .4s ease, box-shadow .4s ease;
}
.why-item:first-of-type::before{ top:14px; }
.why-item.is-lit::before{ background:var(--amber); border-color:var(--amber); box-shadow:0 0 0 6px rgba(122,192,237,.18); }
.wi-n{
  font-family:var(--display); font-weight:700; font-size:64px; line-height:.9;
  color:transparent; -webkit-text-stroke:1.5px var(--line-dk);
  transition:color .5s ease, -webkit-text-stroke-color .5s ease;
}
.why-item.is-lit .wi-n{ color:var(--amber); -webkit-text-stroke-color:var(--amber); }
.why-item h4{ font-size:22px; color:var(--paper); margin-bottom:8px; }
.why-item p{ color:#B7BEC8; max-width:52ch; }

.why-ico{
  display:block; width:40px; height:40px; margin-bottom:14px;
  fill:none; stroke:var(--amber); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round;
}
.why-ico path{ stroke-dasharray:1; stroke-dashoffset:1; }
.why-item.in .why-ico path{ animation:draw 1.3s var(--ease) both; animation-delay:.3s; }
.why-item.in .why-ico path:nth-child(2){ animation-delay:.55s; }
.why-item.in .why-ico path:nth-child(3){ animation-delay:.8s; }
.why-item.in .why-ico path:nth-child(4){ animation-delay:1.05s; }
@keyframes draw{ to{ stroke-dashoffset:0; } }

@media (max-width:900px){
  .why-split{ grid-template-columns:1fr; gap:40px; }
  .why-intro{ position:static; }
  .why-item{ grid-template-columns:64px 1fr; }
  .wi-n{ font-size:44px; }
}

/* ------------------------------------------------------------
   SECTORS — hover list + image stage
   ------------------------------------------------------------ */
.sx{
  display:grid; grid-template-columns:minmax(0, 6fr) minmax(0, 5fr); gap:56px;
  align-items:center;
}
.sx-list{ border-top:1px solid var(--line); }
.sx-row{
  position:relative;
  display:grid; grid-template-columns:56px 1fr 48px; align-items:center; gap:12px;
  padding:24px 6px;
  border-bottom:1px solid var(--line);
  color:var(--slate);
  transition:color .35s ease, padding .5s var(--ease);
}
.sx-row::before{
  content:""; position:absolute; left:0; bottom:-1px; height:2px; width:100%;
  background:var(--steel);
  transform:scaleX(0); transform-origin:0 50%;
  transition:transform .6s var(--ease);
}
.sx-row.is-active{ color:var(--ink); padding-left:16px; }
.sx-row.is-active::before{ transform:scaleX(1); }
.sx-row:focus-visible{ outline:2px solid var(--steel); outline-offset:2px; }
.sx-n{ font-family:var(--mono); font-size:13px; color:var(--steel-dp); }
.sx-main{ display:block; min-width:0; }
.sx-t{
  display:block;
  font-family:var(--display); font-weight:700;
  font-size:clamp(22px, 2.5vw, 32px); line-height:1.15; letter-spacing:-.01em;
}
.sx-d{
  display:block; max-width:48ch;
  font-size:14.5px; color:var(--slate);
  max-height:0; opacity:0; overflow:hidden;
  transition:max-height .5s var(--ease), opacity .4s ease, margin .5s var(--ease);
}
.sx-row.is-active .sx-d{ max-height:80px; opacity:1; margin-top:8px; }
.sx-go{
  width:44px; height:44px; display:grid; place-items:center;
  border:1px solid var(--line); border-radius:50%;
  font-size:17px;
  transition:background .35s ease, color .35s ease, border-color .35s ease, transform .5s var(--ease);
}
.sx-row.is-active .sx-go{ background:var(--ink); border-color:var(--ink); color:var(--paper); transform:rotate(-45deg); }
.sx-thumb{ display:none; }

.sx-stage{
  position:relative; aspect-ratio:4/5; overflow:hidden;
  border-radius:var(--r);
  background:var(--ink);
}
.sx-stage img{
  position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  opacity:0; transform:scale(1.12);
  clip-path:inset(0 0 100% 0);
  transition:opacity .5s ease, transform 1.4s var(--ease), clip-path .9s var(--ease);
}
.sx-stage img.is-active{ opacity:1; transform:scale(1); clip-path:inset(0 0 0 0); z-index:1; }
.sx-alt{ object-position:85% 50%; }
.sx-stage-n{
  position:absolute; right:16px; bottom:16px; z-index:2;
  padding:6px 12px; border-radius:100px;
  background:rgba(244,248,250,.92); color:var(--ink);
  font-family:var(--mono); font-size:12px;
}
.sx-stage-n b{ font-weight:600; color:var(--steel-dp); }

@media (max-width:900px){
  .sx{ grid-template-columns:1fr; }
  .sx-stage{ display:none; }
  .sx-row, .sx-row.is-active{ grid-template-columns:40px 1fr; align-items:start; padding:18px 0; color:var(--ink); }
  .sx-n{ padding-top:8px; }
  .sx-row::before{ display:none; }
  .sx-go{ display:none; }
  .sx-d{ max-height:none; opacity:1; margin-top:6px; }
  .sx-thumb{
    display:block; grid-column:1 / -1;
    width:100%; height:180px; object-fit:cover; border-radius:var(--r);
    margin-top:12px;
  }
  .sx-thumb.sx-alt{ object-position:85% 50%; }
}

/* ------------------------------------------------------------
   CTA — centred, corner brackets spring out on reveal
   ------------------------------------------------------------ */
body.home .cta-banner{ position:relative; overflow:hidden; padding:88px 0; }
.cta-stripes{
  position:absolute; inset:0;
  background:repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 18px, transparent 18px 36px);
  animation:ctaStripes 5s linear infinite;
  pointer-events:none;
}
@keyframes ctaStripes{ to{ background-position:50.912px 0; } }
body.home .cta-banner .wrap{ display:block; position:relative; z-index:1; }
.cta-frame{
  position:relative;
  max-width:820px; margin:0 auto;
  padding:56px 40px;
  text-align:center;
}
.cta-frame[data-reveal]{ transform:none; }
body.home .cta-frame h3{ font-size:clamp(30px, 4.2vw, 52px); line-height:1.08; max-width:none; }
body.home .cta-frame p{ color:#EAF4FB; font-size:17px; max-width:56ch; margin:16px auto 0; }
.cta-actions{ display:flex; flex-wrap:wrap; justify-content:center; gap:12px; margin-top:32px; }
.cta-actions .btn{ border-radius:100px; }
.cf{
  position:absolute; width:34px; height:34px;
  border:3px solid #fff;
  transition:transform .9s var(--ease) .2s, opacity .6s ease .2s;
  opacity:0;
}
.cf.tl{ top:0; left:0; border-right:0; border-bottom:0; transform:translate(60px, 40px); }
.cf.tr{ top:0; right:0; border-left:0; border-bottom:0; transform:translate(-60px, 40px); }
.cf.bl{ bottom:0; left:0; border-right:0; border-top:0; transform:translate(60px, -40px); }
.cf.br{ bottom:0; right:0; border-left:0; border-top:0; transform:translate(-60px, -40px); }
.cta-frame.in .cf{ opacity:1; transform:none; }

.btn-ink{ background:var(--ink); color:var(--paper); }
.btn-ink:hover{ background:#1F3144; }
.magnetic{
  transform:translate3d(var(--mx-px, 0px), var(--my-px, 0px), 0);
  transition:transform .35s var(--ease), background .15s ease, color .15s ease, border-color .15s ease;
}
.magnetic:hover{ transform:translate3d(var(--mx-px, 0px), calc(var(--my-px, 0px) - 2px), 0); }

@media (max-width:640px){
  .cta-frame{ padding:40px 8px; }
  .cta-actions .btn{ flex:1 1 100%; justify-content:center; }
}

/* ------------------------------------------------------------
   FOOTER accent
   ------------------------------------------------------------ */
body.home footer .footer-grid ul li a{ display:inline-block; transition:transform .3s var(--ease), color .3s ease; }
body.home footer .footer-grid ul li a:hover{ transform:translateX(4px); }

/* ------------------------------------------------------------
   REDUCED MOTION — show everything, move nothing
   ------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce){
  body.home .hero-title .line > span{ opacity:1 !important; transform:none !important; }
  body.home .hero-title em::after{ transform:scaleX(1) !important; }
  .bt-img{ clip-path:none !important; animation:none !important; }
  .bt-img img{ animation:none !important; transform:none !important; }
  .cs-slide, .cs-slide img{ transition:none !important; }
  .bt-grid, .ticker-track, .cta-stripes{ animation:none !important; }
  .lines-panels.in .lp:not([hidden]) *{ animation:none !important; }
  .lt-ink, .sx-stage img, .sx-row, .sx-d, .cf{ transition:none !important; }
  .f-card.will-reveal{ opacity:1; transform:none; }
  .why-ico path{ stroke-dashoffset:0; animation:none !important; }
  .why-fill i{ transform:scaleY(1); }
  .cf{ opacity:1; transform:none; }
}
