/* Noor Deira Steel: liquid layer v1
   Ideas taken from the Three.js portfolio reel: dark immersive hero, curved image ribbon,
   ghosted headline that smears with the pointer, floating glass nav, orange pill CTA.
   Loaded after site.css; everything here is progressive enhancement. */
:root{
  --r:18px; --r-lg:28px;
  --glass:color-mix(in srgb,var(--paper) 58%,transparent);
  --glass-line:color-mix(in srgb,var(--ink) 16%,transparent);
  --orange:#ff7a2f; --orange-2:#ff9b52;
  --spring:cubic-bezier(.34,1.56,.64,1);
}

/* ---------- floating glass header + fixed logo ---------- */
.hdr{
  position:sticky; top:12px; z-index:100;
  width:min(1380px,calc(100% - 2*var(--gutter))); margin:12px auto 0;
  border:1px solid var(--glass-line); border-radius:999px;
  background:linear-gradient(135deg,color-mix(in srgb,var(--paper) 70%,transparent),color-mix(in srgb,var(--paper) 42%,transparent));
  backdrop-filter:blur(26px) saturate(1.9) brightness(1.05); -webkit-backdrop-filter:blur(26px) saturate(1.9) brightness(1.05);
  box-shadow:0 10px 40px -12px rgba(5,10,25,.45), inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.06);
  transition:box-shadow .4s var(--out), transform .5s var(--out);
}
.hdr-in{padding:0 10px 0 12px; min-height:62px; max-width:none}
body:has(main>.hero.big) .hdr{margin-bottom:-76px}
.hdr nav a{border-radius:999px}
.hdr .icon-b{border-radius:999px; background:color-mix(in srgb,var(--surface) 55%,transparent); border-color:var(--glass-line)}
.hdr .btn.sm{padding:11px 18px}

.logo{display:flex!important; align-items:center; gap:11px; padding:4px 6px 4px 2px!important; text-decoration:none!important; flex:none}
.logo .lgm{
  width:46px; height:46px; border-radius:15px; display:grid; place-items:center; flex:none;
  background:linear-gradient(150deg,#ffffff 0%,#e4eaf7 100%);
  box-shadow:0 6px 18px -6px rgba(11,45,130,.55), inset 0 1px 0 #fff, inset 0 -2px 4px rgba(27,63,156,.12);
  transition:transform .5s var(--spring);
}
.logo:hover .lgm{transform:rotate(-6deg) scale(1.07)}
.logo .lgm img{width:30px!important; height:auto!important; background:none!important; padding:0!important; border-radius:0!important; filter:none!important; margin:0!important}
.logo .wm{display:flex; flex-direction:column; line-height:.86; font-family:var(--head); color:var(--ink)}
.logo .wm b{font-weight:700; font-size:1.5rem; letter-spacing:.035em; white-space:nowrap}
.logo .wm b i{font-style:normal; color:var(--accent)}
.logo .wm small{font:500 .56rem var(--mono); letter-spacing:.62em; margin-top:5px; color:var(--mute); display:flex; align-items:center; gap:8px}
.logo .wm small::before{content:""; width:18px; height:1px; background:currentColor; opacity:.6}
.ftr .brand .logo{margin-bottom:18px}
.ftr .brand .logo .wm{color:#fff}.ftr .brand .logo .wm b i{color:#9db4f7}.ftr .brand .logo .wm small{color:#8d98a8}

/* ---------- liquid hero ---------- */
.hero.big{min-height:min(100vh,900px); padding-top:clamp(120px,14vw,190px)}
.hero-gl{position:absolute; inset:0; width:100%; height:100%; z-index:-1; mix-blend-mode:screen; opacity:.45; pointer-events:none}
.hero::before{background:linear-gradient(90deg,rgba(6,9,14,.94) 0%,rgba(6,9,14,.8) 50%,rgba(6,9,14,.5) 100%)!important; z-index:-1}
.hero-bg{filter:saturate(.8) contrast(1.05)}
.hero::after{content:""; position:absolute; left:0; right:0; bottom:-1px; height:140px; z-index:0; pointer-events:none;
  background:linear-gradient(to bottom,transparent,var(--paper))}
/* ---------- pill buttons, orange primary like the reel ---------- */
.btn{border-radius:999px!important; padding:15px 26px; position:relative; transition:transform .45s var(--spring), box-shadow .3s, background .25s, color .25s, border-color .25s; will-change:transform}
.btn.amber{background:linear-gradient(135deg,var(--orange),var(--orange-2)); color:#1a0c02!important; border-color:transparent; box-shadow:0 10px 30px -10px rgba(255,122,47,.7), inset 0 1px 0 rgba(255,255,255,.45)}
.btn.amber:hover{box-shadow:0 16px 44px -10px rgba(255,122,47,.85), inset 0 1px 0 rgba(255,255,255,.55); background:linear-gradient(135deg,#ff8a45,#ffb070); color:#1a0c02; border-color:transparent}
.hero .btn.amber{background:linear-gradient(135deg,var(--orange),var(--orange-2)); color:#1a0c02; border-color:transparent}
.hero .btn.ghost,.hero .btn.wa{backdrop-filter:blur(10px); background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.28)}
.btn svg{transition:transform .4s var(--spring)} .btn:hover svg{transform:translateX(4px)}
.ftr .btn{background:linear-gradient(135deg,var(--orange),var(--orange-2)); color:#1a0c02; border-color:transparent}

/* ---------- liquid glass cells (replace hairline grids with floating cards) ---------- */
.cards,.picons,.gate,.mk{border:0!important; gap:14px}
.card,.pf,.gate>div,.mk a{
  border:1px solid var(--line)!important; border-radius:var(--r-lg);
  background-color:color-mix(in srgb,var(--surface) 82%,transparent);
  
  transition:transform .5s var(--out), border-color .3s, box-shadow .4s, background-color .3s!important;
  overflow:hidden;
}
.card:hover,.pf:hover,.mk a:hover{transform:translateY(-6px); border-color:color-mix(in srgb,var(--accent) 55%,var(--line))!important; box-shadow:0 22px 50px -24px color-mix(in srgb,var(--accent) 60%,transparent)}
.card img{border-radius:calc(var(--r-lg) - 10px)}
.sec.dark .card,.sec.dark .pf{background-color:rgba(255,255,255,.04)}
.picons{grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.spec{border-right-color:color-mix(in srgb,var(--line) 70%,transparent)}
.marq{border:0; background:transparent; margin:10px 0}
.marq-t a{border:1px solid var(--line); border-radius:999px; margin:0 6px; padding:11px 22px; background:color-mix(in srgb,var(--surface) 70%,transparent); backdrop-filter:blur(8px)}
.marq{mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent); -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent)}
.sec{border-top:0}
.sec.dark{border-radius:clamp(24px,4vw,56px); margin:0 clamp(8px,1.4vw,20px)}
.tabs button{border-radius:999px}
input,select,textarea{border-radius:14px!important}
.ftr{border-radius:clamp(24px,4vw,56px) clamp(24px,4vw,56px) 0 0; margin-top:clamp(24px,4vw,56px)}

/* ---------- 3D image ribbon (the reel's curved wall of images) ---------- */
.ribbon{padding:clamp(48px,7vw,110px) 0 clamp(56px,8vw,120px); position:relative; overflow:hidden}
.ribbon-h{max-width:var(--w); margin:0 auto 34px; padding:0 var(--gutter)}
.ribbon-h h2{max-width:14ch; font-size:clamp(2.4rem,6vw,5rem); line-height:.95}
.ribbon-stage{perspective:1400px; perspective-origin:50% 40%; height:clamp(300px,42vw,460px); position:relative}
.ribbon-track{position:absolute; inset:0; transform-style:preserve-3d}
.rt{position:absolute; left:50%; top:50%; width:clamp(200px,24vw,320px); aspect-ratio:3/4; margin:calc(clamp(200px,24vw,320px)*-.667) 0 0 calc(clamp(200px,24vw,320px)*-.5);
  border-radius:24px; overflow:hidden; display:block; text-decoration:none!important; transform-style:preserve-3d; will-change:transform,opacity;
  box-shadow:0 30px 60px -28px rgba(0,0,0,.7); border:1px solid rgba(255,255,255,.18); background:#0d1014;
  transform:translate3d(calc((var(--o,0))*calc(clamp(200px,24vw,320px)*1.08)),0,0)}
.rt img{width:100%; height:100%; object-fit:cover; filter:saturate(.9) brightness(.82); transition:filter .5s, transform .8s var(--out); transform:scale(1.08)}
.rt:hover img{filter:saturate(1.1) brightness(1); transform:scale(1.16)}
.rt span{position:absolute; left:14px; right:14px; bottom:14px; padding:11px 16px; border-radius:999px; color:#fff; font:600 1.15rem var(--head); letter-spacing:.03em;
  background:rgba(10,14,22,.45); backdrop-filter:blur(14px) saturate(1.6); border:1px solid rgba(255,255,255,.22)}
.ribbon-hint{text-align:center; margin-top:8px; font:500 .68rem var(--mono); letter-spacing:.16em; text-transform:uppercase; color:var(--mute)}

/* ---------- liquid cursor blob ---------- */
.liq-blob{position:fixed; left:0; top:0; width:420px; height:420px; margin:-210px 0 0 -210px; border-radius:50%; pointer-events:none; z-index:1;
  background:radial-gradient(circle,rgba(146,172,246,.22),rgba(27,63,156,.1) 40%,transparent 68%); filter:blur(18px); mix-blend-mode:screen; opacity:0; transition:opacity .6s; will-change:transform}
.liq-blob.on{opacity:1}
:root:not([data-theme="dark"]) .liq-blob{mix-blend-mode:multiply; background:radial-gradient(circle,rgba(27,63,156,.1),transparent 65%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .liq-blob{mix-blend-mode:screen; background:radial-gradient(circle,rgba(146,172,246,.22),rgba(27,63,156,.1) 40%,transparent 68%)}}

/* ---------- scroll-driven soft reveal (blur-in) ---------- */
.js .rv{filter:blur(8px); transition:opacity .9s var(--out),transform .9s var(--out),filter .9s var(--out)}
.js .rv.in{filter:none}

@media (max-width:900px){
  .hdr{top:8px; margin-top:8px; border-radius:28px}
  .logo .wm b{font-size:1.25rem}.logo .lgm{width:40px;height:40px;border-radius:13px}.logo .lgm img{width:26px!important}
  .ribbon-stage{height:360px}
  .hero.big{padding-top:130px}
  .liq-blob{display:none}
}
@media (max-width:520px){.logo .wm small{display:none}.hdr .btn.sm{display:none}}
@media (prefers-reduced-motion:reduce){
  .hero-gl,.liq-blob{display:none}
  .js .rv{filter:none}
  .card:hover,.pf:hover,.mk a:hover{transform:none}
}

/* dropdowns as glass sheets */
.mega{border-radius:22px!important; border:1px solid var(--glass-line)!important; margin-top:14px;
  background:color-mix(in srgb,var(--surface) 78%,transparent)!important; backdrop-filter:blur(24px) saturate(1.8); -webkit-backdrop-filter:blur(24px) saturate(1.8);
  box-shadow:0 30px 60px -24px rgba(5,10,25,.6), inset 0 1px 0 rgba(255,255,255,.2)!important}
.mega a{border-radius:12px}

.liq-blob{display:none!important}
.hero h1{text-shadow:0 2px 24px rgba(0,0,0,.45)}

.ribbon-stage{cursor:grab}.rt{cursor:pointer}.rt::after{content:"View →";position:absolute;right:16px;top:16px;padding:7px 13px;border-radius:999px;font:600 .66rem var(--mono);letter-spacing:.12em;text-transform:uppercase;color:#1a0c02;background:linear-gradient(135deg,var(--orange),var(--orange-2));opacity:0;transform:translateY(-6px);transition:opacity .3s,transform .4s var(--out)}.rt:hover::after,.rt:focus-visible::after{opacity:1;transform:none}
.ribbon-track{pointer-events:none}.rt{pointer-events:auto}.rt img{pointer-events:none}

h3[data-h="4"]{font-size:1.05rem;line-height:1.25}h2[data-h="3"]{font-size:1.5rem}h2[data-h="4"]{font-size:1.1rem}
.gloss{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px;margin:26px 0}.gloss>div{border:1px solid var(--line);border-radius:var(--r-lg);padding:20px 22px;background:color-mix(in srgb,var(--surface) 82%,transparent)}.gloss dt{font:600 1.35rem var(--head);color:var(--ink);margin-bottom:6px}.gloss dd{margin:0;color:var(--ink-2);font-size:.95rem}
blockquote{border-left:3px solid var(--orange);margin:20px 0;padding:6px 0 6px 20px;color:var(--ink-2)}
