/* ===========================================================
   KD THEME - base.css (loaded on EVERY page)
   tokens, reset, grid, cursor, nav, footer CTA, .pg-hero/.sec/.rv
   =========================================================== */

:root {
  --bg: #080F0F;
  --fg: #F0F0EB;
  --acc: #2ECC71;
  --dim: rgba(240, 240, 235, .06);
  --dimb: rgba(240, 240, 235, .1);
  --mut: #3C4240;
  --fd: 'Bebas Neue', Impact, sans-serif;
  --fb: 'DM Sans', system-ui, sans-serif;
  --gc: 80px;
  --eout: cubic-bezier(.16, 1, .3, 1);
  --ein: cubic-bezier(.7, 0, 1, 1);

  /* ━━ BASE FONT SIZE ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
     Change --fbase to scale ALL text across the entire site.
     Every rem value in the CSS scales with it proportionally.
     Browser default is 16px. Recommended range: 15px–22px.
     ─────────────────────────────────────────────────────── */
  --fbase: 22px;
}

html {
  font-size: var(--fbase);
}

html.light {
  --bg: #ECECE7;
  --fg: #080F0F;
  --dim: rgba(8, 15, 15, .05);
  --dimb: rgba(8, 15, 15, .09);
  --mut: #888;
}

/* ── BASE ─────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--fb);
  overflow-x: hidden;
  cursor: none;
  transition: background .7s, color .7s;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ── GRID ─────────────────────────────────────── */
.g {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--dim) 1px, transparent 1px),
    linear-gradient(90deg, var(--dim) 1px, transparent 1px);
  background-size: var(--gc) var(--gc);
}

/* ── CURSOR crosshair ─────────────────────────── */
#cur {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9900;
  width: 0;
  height: 0;
}

.arm {
  position: absolute;
  background: var(--fg);
}

.hl,
.hr {
  height: 1px;
  top: -.5px;
  width: 16px;
}

.hl {
  right: 8px;
}

.hr {
  left: 8px;
}

.vt,
.vb {
  width: 1px;
  left: -.5px;
  height: 16px;
}

.vt {
  bottom: 8px;
}

.vb {
  top: 8px;
}

.cd {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--acc);
  border-radius: 50%;
  top: -2px;
  left: -2px;
  transition: transform .3s var(--eout), background .3s;
}

body.hov .hl,
.hov .hr {
  width: 26px;
}

body.hov .vt,
.hov .vb {
  height: 26px;
}

body.hov .cd {
  transform: scale(3.5);
  background: var(--fg);
}

/* ── SCROLL BAR ───────────────────────────────── */
#prog {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 1px;
  background: var(--acc);
  z-index: 9500;
  width: 0;
}

/* ══════════════════════════════════════════════════
   NAV — transparent → frosted on scroll
══════════════════════════════════════════════════ */
#nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 600;
  padding: 1.8rem 3.5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  transition: padding .5s var(--eout);
}

#nav::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 15, .82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  opacity: 0;
  transition: opacity .5s;
  z-index: -1;
}

html.light #nav::before {
  background: rgba(236, 236, 231, .88);
}

#nav.on {
  padding: 1.1rem 3.5vw;
}

#nav.on::before {
  opacity: 1;
}

#nav svg {
  width: clamp(57px, 5.7vw, 84px);
  height: auto;
  fill: var(--fg);
  display: block;
  transition: opacity .3s;
}

#nav a:hover svg {
  opacity: .5;
}

#nav .nr {
  pointer-events: all;
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.nl {
  font-family: var(--fb);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--fg);
  opacity: .4;
  position: relative;
  padding: .3em 0;
  overflow: hidden;
  display: inline-block;
  transition: opacity .3s;
  pointer-events: all;
}

.nl span {
  display: block;
  transition: transform .4s var(--eout);
}

.nl::after {
  content: attr(data-l);
  position: absolute;
  left: 0;
  top: 0;
  color: var(--acc);
  transform: translateY(110%);
  transition: transform .4s var(--eout);
  white-space: nowrap;
  pointer-events: none;
}

.nl:hover {
  opacity: 1;
}

.nl:hover span {
  transform: translateY(-110%);
}

.nl:hover::after {
  transform: translateY(0);
}

.nm {
  pointer-events: all;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--dimb);
  cursor: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .3s, background .3s;
}

.nm:hover {
  border-color: var(--acc);
  background: var(--acc);
}

.nm svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: var(--fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke .3s;
}

.nm:hover svg {
  stroke: var(--bg);
}


/* -- FOOTER CTA (footer.php - every page) -- */
.footer-cta {
  position: relative;
  overflow: hidden;
  z-index: 10;
  background: var(--acc);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8vw 5vw;
  gap: 3.5rem;
}

.footer-cta .g {
  background-image: linear-gradient(rgba(8, 15, 15, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 15, 15, .09) 1px, transparent 1px);
}

.footer-cta__bg {
  position: absolute;
  font-family: var(--fd);
  font-size: clamp(10rem, 36vw, 48rem);
  letter-spacing: .04em;
  color: rgba(8, 15, 15, .05);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.footer-cta__quote {
  font-family: var(--fd);
  font-size: clamp(6rem, 12vw, 18rem);
  line-height: .9;
  letter-spacing: .03em;
  color: var(--bg);
  position: relative;
  z-index: 1;
  max-width: 16ch;
  opacity: 0;
}

.footer-cta__btn {
  position: relative;
  z-index: 1;
  opacity: 0;
  font-family: var(--fb);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--acc);
  background: var(--bg);
  padding: 1.3em 3.5em;
  cursor: none;
  transition: background .3s, color .3s;
}

.footer-cta__btn:hover {
  background: var(--fg);
  color: var(--bg);
}

.footer-cta__copy {
  position: absolute;
  bottom: 3vw;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fb);
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(8, 15, 15, .4);
  white-space: nowrap;
  z-index: 1;
}

.step--green {
  background: var(--acc) !important;
}

.step--green .step__num,
.step--green .step__title,
.step--green .step__body {
  color: var(--bg);
}

.step--green .step__tag {
  color: var(--bg);
  border-color: rgba(8, 15, 15, .3);
}


/* -- shared inner-page scaffolding -- */
/* ═══ PAGE TEMPLATES — shared across about/portfolio/contact ═════ */
.pg-hero {
  position: relative;
  overflow: hidden;
  min-height: 60vh;
  display: flex;
  align-items: flex-end;
  padding: 0 5vw 5vw;
  border-bottom: 1px solid var(--dimb);
}

.pg-hero .g {
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, transparent 60%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .4) 0%, transparent 60%);
}

.pg-hero__title {
  font-family: var(--fd);
  font-size: clamp(5rem, 18vw, 24rem);
  line-height: .82;
  letter-spacing: .03em;
  color: var(--fg);
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.pg-hero__title span {
  display: block;
}

.sec {
  position: relative;
  overflow: hidden;
  padding: 8vh 5vw;
  border-bottom: 1px solid var(--dimb);
}

.rv {
  opacity: 0;
  transform: translateY(32px);
}


/* -- LOGO CLICK FIX (nav had pointer-events:none) -- */
.nav-logo { pointer-events: auto; }
