/* ─── RESET ─── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:'Poppins',sans-serif;background:#fff;color:#1c1917;overflow-x:hidden}
img{display:block}
button{cursor:pointer;border:none;background:none;font-family:'Poppins',sans-serif}
a{text-decoration:none;color:inherit}
::selection{background:#ea252c;color:#fff}
:root{
  --red:#ea252c;
  --black:#1c1917;
  --gray:#828282;
  --ease:cubic-bezier(0.16,1,0.3,1);
}

/* ══════════════════════════════════════
   HEADER STRIP — logo left, menu btn right
   Default: transparent, elements fixed at top
   Scrolled: white full-width bar with shadow
══════════════════════════════════════ */
#header-strip{
  position:fixed;top:0;left:0;right:0;z-index:900;
  height:64px;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 40px;
  transition:background .35s ease,box-shadow .35s ease,backdrop-filter .35s ease;
  background:transparent;
}
#header-strip.scrolled{
  background:rgba(255,255,255,0.95);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(20px);
  box-shadow:0 2px 20px rgba(0,0,0,0.10);
}
/* Hide bg div — not needed anymore */
#header-bg{display:none}

/* ─── HEADER RIGHT GROUP ─── */
.header-right{display:flex;align-items:center;gap:10px}

/* ─── LOGO ─── */
#logo{
  position:relative;
  width:44px;height:44px;
  flex-shrink:0;cursor:pointer;
  transition:opacity .2s;
}
#logo:hover{opacity:.85}
.logo-shadow{
  position:absolute;top:5px;left:5px;
  width:44px;height:44px;
  background:rgba(29,25,25,0.18);
  filter:blur(2px);border-radius:2px;
}
.logo-box{
  position:absolute;top:0;left:0;
  width:44px;height:44px;
  background:var(--red);
  display:flex;align-items:center;justify-content:center;
  font-weight:600;font-size:20px;color:#fff;
  border-radius:2px;
}

/* ─── HAMBURGER BUTTON (visible when nav closed) ─── */
#menu-btn{
  width:44px;height:44px;
  background:var(--red);
  border:none;border-radius:4px;
  display:flex;flex-direction:column;
  align-items:center;justify-content:center;gap:5px;
  cursor:pointer;flex-shrink:0;
  transition:background .2s;
  /* Always visible — no z-index fight */
  position:relative;z-index:901;
}
#menu-btn:hover{background:#c91f25}
#menu-btn .bar{
  display:block;width:18px;height:2px;
  background:#fff;border-radius:1px;
}

/* ─── LEGACY hbar ─── */
#hbar{display:none}

/* ═══════════════════════════════════
   NAVIGATION — RIGHT SIDE PANEL ONLY
   Slides in from right. Does NOT cover full page.
   Width ~390px, full height, dark black.
   Left area stays visible (blurred overlay).
═══════════════════════════════════ */
/* ══════════════════════════════════════
   NAV BACKDROP — dims left page content
══════════════════════════════════════ */
#nav-backdrop{
  position:fixed;inset:0;z-index:910;
  background:rgba(0,0,0,0);
  pointer-events:none;
  transition:background .45s ease;
}
#nav-backdrop.open{
  background:rgba(0,0,0,0.45);
  pointer-events:all;
}

/* ══════════════════════════════════════
   NAV PANEL — right side, 500px, slides in
   Exact per Correct.png:
   - Top: "THE PATH OF PURPOSE" + red ✕
   - 4 links with num + icon + large text
   - Social icons
   - CRAFTED FOR + quote
══════════════════════════════════════ */
#nav-panel{
  position:fixed;top:0;right:0;bottom:0;
  z-index:920;
  width:500px;
  background:#0A0A0A;
  transform:translateX(100%);
  transition:transform .5s cubic-bezier(0.16,1,0.3,1);
  display:flex;flex-direction:column;
  padding:36px 48px 40px;
  overflow-y:auto;
  overflow-x:hidden;
}
#nav-panel.open{transform:translateX(0)}

/* Top row: label + ✕ */
.nav-toprow{
  display:flex;justify-content:space-between;
  align-items:center;margin-bottom:60px;
}
.nav-label{
  font-family:'Poppins',sans-serif;font-size:10px;
  letter-spacing:0.22em;color:rgba(255,255,255,0.3);
  text-transform:uppercase;font-weight:400;
}
/* RED ✕ close button — large, top-right of panel */
.nav-x{
  font-size:28px;font-weight:300;
  color:var(--red);line-height:1;
  cursor:pointer;
  background:none;border:none;
  padding:0;margin:0;
  font-family:'Poppins',sans-serif;
  transition:opacity .2s;
  display:flex;align-items:center;justify-content:center;
}
.nav-x:hover{opacity:.7}

/* Nav link list */
.nav-links{list-style:none;display:flex;flex-direction:column}
.nav-item{
  display:flex;align-items:center;gap:20px;
  padding:18px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
  cursor:pointer;
}
.nav-item.active{border-bottom-color:var(--red)}
.nav-num{
  font-family:'Poppins',sans-serif;font-size:11px;
  color:rgba(255,255,255,0.3);min-width:24px;font-weight:400;
  flex-shrink:0;
}
.nav-ico{
  width:22px;height:22px;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
}
.nav-ico svg{
  stroke:rgba(255,255,255,0.28);
  transition:stroke .2s;
}
.nav-item.active .nav-ico svg{stroke:var(--red)}
.nav-item:hover .nav-ico svg{stroke:rgba(255,255,255,0.7)}
.nav-item a{
  font-family:'Poppins',sans-serif;
  font-size:clamp(32px,4vw,44px);
  font-weight:700;
  color:rgba(255,255,255,0.45);
  text-transform:uppercase;
  letter-spacing:-0.025em;
  line-height:1;
  transition:color .2s;
  text-decoration:none;
}
.nav-item.active a{color:#fff}
.nav-item:hover a{color:#fff}

/* Bottom section */
.nav-foot{margin-top:auto;padding-top:32px}
.nav-craft-lbl{
  font-family:'Poppins',sans-serif;font-size:9px;
  color:rgba(255,255,255,0.28);letter-spacing:.18em;
  text-transform:uppercase;margin-bottom:3px;
}
.nav-craft-name{
  font-family:'Poppins',sans-serif;font-size:13px;
  font-weight:700;color:#fff;
  text-transform:uppercase;letter-spacing:.04em;margin-bottom:8px;
}
.nav-quote{
  font-family:'Poppins',sans-serif;font-size:10px;
  color:rgba(255,255,255,0.28);line-height:1.7;font-style:italic;
}
.nav-quote b{font-weight:400;color:rgba(255,255,255,0.48)}
/* Social icons row */
.nav-socials{
  display:flex;gap:16px;align-items:center;
  margin-bottom:20px;
}
.nav-social-link{
  display:flex;align-items:center;justify-content:center;
  width:36px;height:36px;border-radius:50%;
  border:1px solid rgba(255,255,255,0.15);
  transition:border-color .2s,background .2s;
  flex-shrink:0;
}
.nav-social-link:hover{
  border-color:var(--red);
  background:rgba(234,37,44,0.15);
}
.nav-social-link svg{display:block}

/* ─── PAGE SYSTEM ─── */
.page{display:none}
.page.active{display:block}

/* ─── SHARED SITE FOOTER (injected via js/partials.js) ─── */
.site-footer{
  position:relative;width:100%;overflow:hidden;margin-top:40px;
  background:#291112;color:#fff;
}
.footer-inner{max-width:1400px;margin:0 auto;padding:64px 40px 0}

.footer-top-row{
  display:flex;justify-content:space-between;align-items:flex-start;gap:24px;
  font-family:'Poppins',sans-serif;font-size:13px;font-weight:300;
  color:rgba(255,255,255,.55);text-transform:uppercase;letter-spacing:.06em;line-height:1.7;
}
.footer-col-center{text-align:center}
.footer-col-right{text-align:right}
.footer-link{color:#fff;text-decoration:underline;text-underline-offset:3px;transition:opacity .2s}
.footer-link:hover{opacity:.65}

.footer-brand{
  font-family:'Poppins',sans-serif;font-weight:700;text-transform:lowercase;
  text-align:center;letter-spacing:-.02em;line-height:.95;color:#441B1D;
  font-size:clamp(44px,9vw,142px);
  margin:28px 0;word-break:break-word;
  opacity:.4;
}

.footer-mid-row{
  display:flex;justify-content:space-between;align-items:center;
  font-family:'Poppins',sans-serif;font-size:14px;font-weight:400;
}

.footer-divider{height:1px;width:100%;background:rgba(255,255,255,.14);margin:24px 0 0}

.footer-bottom-row{
  display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;
  padding:22px 0 28px;
  font-family:'Poppins',sans-serif;font-size:12px;font-weight:300;
  color:rgba(255,255,255,.45);text-transform:uppercase;letter-spacing:.05em;
}

.footer-socials{display:flex;gap:10px}
.footer-social{
  display:flex;align-items:center;justify-content:center;
  width:34px;height:34px;border-radius:50%;
  background:rgba(255,255,255,.08);
  transition:background .2s,transform .2s;
}
.footer-social:hover{background:var(--black,#1c1917);transform:translateY(-2px)}
.footer-social img{width:15px;height:15px;display:block}

@media(max-width:700px){
  .footer-inner{padding:48px 24px 0}
  .footer-top-row{font-size:11px}
  .footer-mid-row{flex-direction:column;align-items:flex-start;gap:10px}
  .footer-bottom-row{justify-content:center;text-align:center}
  .footer-brand{font-size:clamp(36px,13vw,80px);margin:20px 0}
}

/* ─── INTERACTIVE LAYER (js/interactions.js) ─── */
.cursor-dot,.cursor-ring{
  position:fixed;top:0;left:0;pointer-events:none;z-index:9999;
  opacity:0;transition:opacity .2s ease;
}
.cursor-dot{
  width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;
  background:var(--red,#ea252c);
}
.cursor-ring{
  width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;
  border:1px solid rgba(28,25,23,.25);
  transition:opacity .2s ease,width .2s ease,height .2s ease,margin .2s ease,border-color .2s ease;
}
.cursor-ring-active{
  width:56px;height:56px;margin:-28px 0 0 -28px;
  border-color:var(--red,#ea252c);
}
@media(hover:none),(pointer:coarse){.cursor-dot,.cursor-ring{display:none}}

.magnetic,.hero-btn-primary,.hero-btn-text,.cta-btn,.about-cv-btn,.testi-arrow{
  transition:transform .18s var(--ease,ease),background .2s,color .2s;
  display:inline-block;
}
.tilt-el{transition:transform .18s ease;will-change:transform}
