/* ============ BAA Layers theme ============ */
:root { --hh: 96px; --slabW: 280px; --slabD: 280px; }

/* ---------- Hero ---------- */
.lh { position: relative; background: #141413; color: var(--white); overflow: hidden; min-height: calc(100svh - var(--hh)); display: flex; align-items: center; }
.lh__grid-bg { position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 50%, #000 20%, transparent 75%); }
.lh__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.lh__copy { container-type: inline-size; }
.lh__title { font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: .9; font-size: clamp(44px, 13cqi, 112px); margin: 18px 0 22px; letter-spacing: -.01em; }
.lh__w { display: inline-block; opacity: 0; transform: translateY(.5em) rotateX(-60deg); transform-origin: 50% 100%; animation: lhw .8s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: var(--d); }
.lh__title em { font-style: normal; color: var(--yellow); }
.lh__w:last-child { color: var(--yellow); }
@keyframes lhw { to { opacity: 1; transform: none; } }
.lh__in { opacity: 0; animation: lhin .7s ease forwards; animation-delay: var(--d); }
@keyframes lhin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.lh__sub { font-size: clamp(17px, 1.5vw, 20px); color: rgba(255,255,255,.78); max-width: 520px; margin: 0 0 30px; }
.lh__scroll { color: #fff; font-weight: 700; text-decoration: none; display: inline-flex; gap: 10px; align-items: center; padding: 14px 4px; border-bottom: 2px solid rgba(255,255,255,.25); transition: border-color .2s, color .2s; }
.lh__scroll:hover { color: var(--yellow); border-color: var(--yellow); }
.lh__scroll span { display: inline-block; animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* 3D core block */
.lh__stage { position: relative; height: clamp(420px, 46vw, 600px); perspective: 2600px; display: grid; place-items: center; }
.core { --rx: -24deg; --ry: 36deg; --ex: 0; position: relative; width: 0; height: 0; transform-style: preserve-3d;
  transform: translate(-70px, -130px) rotateX(var(--rx)) rotateY(var(--ry)); }
.slab { position: absolute; left: 0; top: 0; transform-style: preserve-3d;
  transform: translateY(calc(var(--y) + var(--ex) * var(--i) * 34px - var(--ex) * 68px)); }
.slab__f { position: absolute; left: 0; top: 0; transform-origin: 0 0; background-size: cover; background-color: #333; }
.slab__front { width: var(--slabW); height: var(--h); transform: translate3d(calc(var(--slabW) / -2), 0, calc(var(--slabD) / 2)); box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.slab__side { width: var(--slabD); height: var(--h); transform: translate3d(calc(var(--slabW) / 2), 0, calc(var(--slabD) / 2)) rotateY(90deg); filter: brightness(.62); }
.slab__top { width: var(--slabW); height: var(--slabD); transform: translate3d(calc(var(--slabW) / -2), 0, calc(var(--slabD) / 2)) rotateX(-90deg); filter: brightness(1.12); }
.slab__front::after, .slab__side::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.12), rgba(0,0,0,.25)); }
.slab__label { position: absolute; left: 0; top: 0; white-space: nowrap; font-family: var(--font-head); font-weight: 700; font-stretch: 85%; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: #fff;
  display: flex; align-items: center; gap: 10px; opacity: var(--ex);
  transform: translate3d(calc(var(--slabW) / 2 + 26px), calc(var(--h) / 2 - 10px), calc(var(--slabD) / 2)) rotateY(calc(var(--ry) * -1)) rotateX(calc(var(--rx) * -1)); }
.slab__label::before { content: ""; width: 34px; height: 1px; background: var(--yellow); }
.slab__label span { color: var(--yellow); }
.lh__shadow { position: absolute; left: 50%; bottom: 8%; width: 70%; height: 60px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(0,0,0,.6), transparent 70%); filter: blur(6px); pointer-events: none; }
.lh__laser { position: absolute; left: 6%; right: 6%; top: 10%; height: 2px; background: var(--yellow); box-shadow: 0 0 18px 4px rgba(245,183,0,.65), 0 0 60px 10px rgba(245,183,0,.25); z-index: 3; opacity: 0;
  animation: laser 1.5s cubic-bezier(.6,0,.3,1) .3s forwards; pointer-events: none; }
@keyframes laser { 0% { opacity: 0; top: 10%; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; top: 88%; } }
.core .slab__f { opacity: 0; animation: slabin .7s cubic-bezier(.2,.8,.2,1) forwards; animation-delay: calc(.35s + var(--i) * .22s); }
@keyframes slabin { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Layers ---------- */
.ly { position: relative; background: #141413; }
.ly__intro { padding: clamp(64px, 8vw, 110px) 0 clamp(32px, 4vw, 56px); background: #141413; color: #fff; }
.ly__intro .section-head { margin-bottom: 0; }
.ly__stack { position: relative; }
.ly-panel { --cover: 0; --lx: 30%; --ly: 40%; position: sticky; top: var(--hh); height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; color: #fff; display: flex; align-items: center;
  box-shadow: 0 -28px 60px rgba(0,0,0,.55); }
.ly-panel__bg { position: absolute; inset: -4%; background-size: cover; background-position: center; background-color: #222;
  transform: scale(calc(1.04 - var(--cover) * .04)); filter: brightness(calc(1 - var(--cover) * .55)); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { background-position: 40% 45%; } to { background-position: 60% 55%; } }
.ly-panel__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,12,11,.92) 0%, rgba(12,12,11,.72) 38%, rgba(12,12,11,.15) 75%, rgba(12,12,11,0) 100%); }
.tone-light .ly-panel__shade { background: linear-gradient(90deg, rgba(12,12,11,.94) 0%, rgba(12,12,11,.82) 40%, rgba(12,12,11,.25) 75%, rgba(12,12,11,.05) 100%); }
.ly-panel__light { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(520px circle at var(--lx) var(--ly), rgba(255,240,200,.55), transparent 60%); }
.ly-panel__cut { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--yellow); box-shadow: 0 0 22px rgba(245,183,0,.55); z-index: 2; }
.ly-panel__cut span { position: absolute; top: 3px; left: var(--pad); background: var(--yellow); color: var(--ink); font-family: var(--font-head); font-weight: 700; font-stretch: 85%; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; }
.ly-panel__cut .ly-panel__dim { left: auto; right: calc(var(--pad) + 70px); background: #fff; }
.ly-panel__in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); transform: translateY(calc(var(--cover) * -40px)) scale(calc(1 - var(--cover) * .05)); opacity: calc(1 - var(--cover) * .9); }
.ly-panel__num { position: absolute; left: calc(var(--pad) - .06em); top: 50%; transform: translateY(-58%); font-family: var(--font-head); font-weight: 800; font-stretch: 75%; font-size: clamp(220px, 34vw, 480px); line-height: .8;
  color: transparent; -webkit-text-stroke: 2px rgba(245,183,0,.22); pointer-events: none; user-select: none; }
.ly-panel__card { position: relative; max-width: 540px; padding: clamp(8px, 2vw, 24px) 0; margin-left: clamp(0px, 12vw, 180px); }
.ly-panel__mat { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--yellow); border: 1px solid rgba(245,183,0,.5); padding: 6px 10px; margin-bottom: 16px; }
.ly-panel h2 { font-size: clamp(56px, 8vw, 110px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; line-height: .88; margin: 0 0 18px; color: #fff; }
.ly-panel p { font-size: 18px; color: rgba(255,255,255,.84); margin: 0 0 20px; }
.ly-panel ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.ly-panel li { display: flex; gap: 10px; font-weight: 600; font-size: 15px; color: #fff; }
.ly-panel li::before { content: ""; flex: none; width: 14px; height: 3px; margin-top: 10px; background: var(--yellow); }

/* core sample strip */
.ly__core { position: relative; z-index: 10; background: #141413; color: #fff; padding: clamp(72px, 9vw, 120px) 0; box-shadow: 0 -28px 60px rgba(0,0,0,.55); }
.ly__core-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 30px; }
.ly__core-head h2 { font-size: clamp(40px, 6vw, 76px); font-weight: 800; font-stretch: 75%; text-transform: uppercase; margin: 0; color: #fff; }
.ly__core-head p { margin: 0; color: rgba(255,255,255,.6); }
.ly__sample { display: flex; height: clamp(150px, 18vw, 220px); border-radius: 999px; overflow: hidden; box-shadow: inset 0 -20px 40px rgba(0,0,0,.45), 0 30px 60px -30px rgba(0,0,0,.8); }
.ly__band { position: relative; flex: 1; text-decoration: none; color: #fff; overflow: hidden; transition: flex .5s cubic-bezier(.2,.8,.2,1); }
.ly__band + .ly__band { border-left: 2px solid #141413; }
.ly__band:hover, .ly__band:focus-visible { flex: 2.2; }
.ly__band-tex { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .6s cubic-bezier(.2,.8,.2,1), filter .3s; filter: brightness(.75); }
.ly__band:hover .ly__band-tex { transform: scale(1.08); filter: brightness(1); }
.ly__band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.18), transparent 30%, transparent 60%, rgba(0,0,0,.45)); pointer-events: none; }
.ly__band-label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1; white-space: nowrap; background: rgba(20,20,19,.86); padding: 8px 12px; font-family: var(--font-head); font-weight: 700; font-stretch: 85%; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; }
.ly__band-label b { color: var(--yellow); margin-right: 4px; }

/* depth gauge */
.gauge { position: fixed; right: clamp(14px, 2vw, 30px); top: calc(var(--hh) + (100svh - var(--hh)) / 2); transform: translate(20px, -50%); z-index: 40; opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.gauge.is-on { opacity: 1; transform: translate(0, -50%); pointer-events: auto; }
.gauge__read { background: var(--yellow); color: var(--ink); padding: 8px 10px; text-align: right; font-family: var(--font-head); line-height: 1; min-width: 64px; }
.gauge__read small { display: block; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.gauge__read b { display: block; font-size: 24px; font-weight: 800; font-stretch: 80%; font-variant-numeric: tabular-nums; margin: 2px 0; }
.gauge__rule { position: relative; width: 26px; height: 46svh; border-right: 2px solid rgba(255,255,255,.55);
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.55) 0 1px, transparent 1px 10px) right / 10px 100% no-repeat, repeating-linear-gradient(180deg, rgba(255,255,255,.8) 0 2px, transparent 2px 50px) right / 18px 100% no-repeat; }
.gauge__fill { position: absolute; right: -2px; top: 0; width: 4px; height: 100%; background: var(--yellow); transform-origin: top; transform: scaleY(0); box-shadow: 0 0 12px rgba(245,183,0,.7); }
.gauge__stop { position: absolute; right: 0; transform: translateY(-50%); background: none; border: 0; padding: 4px 34px 4px 0; cursor: pointer; color: rgba(255,255,255,.55); font: 700 12px/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.gauge__stop::after { content: ""; position: absolute; right: -7px; top: 50%; width: 12px; height: 12px; border-radius: 50%; transform: translateY(-50%); background: #141413; border: 2px solid rgba(255,255,255,.6); transition: all .25s; }
.gauge__stop span { opacity: 0; transform: translateX(8px); display: inline-block; transition: all .25s; text-shadow: 0 1px 8px rgba(0,0,0,.9); }
.gauge:hover .gauge__stop span, .gauge__stop.is-active span { opacity: 1; transform: none; }
.gauge__stop.is-active { color: #fff; }
.gauge__stop.is-active::after, .gauge__stop.is-past::after { background: var(--yellow); border-color: var(--yellow); }
.gauge__stop.is-active::after { box-shadow: 0 0 0 5px rgba(245,183,0,.25); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lh__grid { grid-template-columns: 1fr; }
  .lh__stage { height: 420px; order: -1; margin-top: -20px; }
  :root { --slabW: 220px; --slabD: 220px; }
  .core { transform: translate(-50px, -110px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .slab__label { font-size: 12px; }
  .slab__label::before { width: 18px; }
  .gauge { display: none; }
  .ly-panel__card { margin-left: 0; }
}
@media (max-width: 600px) {
  .lh__stage { height: 370px; }
  :root { --slabW: 170px; --slabD: 170px; }
  .core { transform: translate(-62px, -88px) rotateX(var(--rx)) rotateY(var(--ry)); }
  .slab__label { font-size: 11px; gap: 6px; }
  .slab__label::before { width: 10px; }
  .ly-panel { min-height: 0; height: auto; min-height: calc(100svh - var(--hh)); padding: 70px 0 50px; }
  .ly-panel__shade, .tone-light .ly-panel__shade { background: linear-gradient(180deg, rgba(12,12,11,.6) 0%, rgba(12,12,11,.88) 45%, rgba(12,12,11,.94) 100%); }
  .ly-panel__num { top: 18%; font-size: 200px; }
  .ly-panel ul { grid-template-columns: 1fr; }
  .ly__sample { flex-direction: column; height: auto; border-radius: 20px; }
  .ly__band { height: 72px; flex: none; }
  .ly__band + .ly__band { border-left: 0; border-top: 2px solid #141413; }
  .ly__band:hover { flex: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lh__w, .lh__in { animation: none; opacity: 1; transform: none; }
  .core .slab__f { animation: none; opacity: 1; }
  .lh__laser { display: none; }
  .ly-panel__bg { animation: none; }
}
