/* =====================================================================
   LEEN MEDIA — Master Brand Stylesheet
   A Nairobi media studio. Cinematic ink, warm gold, editorial serif.
   Loaded on every page. Themed service pages add their own overrides.
   ===================================================================== */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300..900;1,9..144,300..700&family=Archivo:wght@300;400;500;600;700;800&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  --ink:        #100f0d;
  --ink-2:      #1b1916;
  --ink-soft:   #2a2723;
  --paper:      #f4efe4;
  --paper-2:    #ece4d4;
  --cream:      #fbf8f1;
  --gold:       #d49a3a;
  --gold-deep:  #b87e22;
  --clay:       #b6533a;
  --sand:       #cdbfa3;
  --muted:      #756c5e;
  --line:       rgba(16,15,13,0.12);
  --line-soft:  rgba(16,15,13,0.07);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Archivo', system-ui, sans-serif;

  --maxw: 1280px;
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --radius: 2px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

/* ---------- Type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.04; letter-spacing: -0.02em; }
.eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gold-deep);
}
.serif-italic { font-style: italic; font-variation-settings: "opsz" 30; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 10vw, 9rem); }
.center { text-align: center; }
.lead { font-size: clamp(1.15rem, 2vw, 1.45rem); color: var(--ink-soft); max-width: 60ch; }

/* =====================================================================
   HEADER  (sticky)
   ===================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), height .4s var(--ease);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }

.site-header.scrolled {
  background: rgba(16,15,13,0.92);
  backdrop-filter: blur(14px);
  height: 70px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Logo */
.logo { display: flex; align-items: center; gap: .65rem; color: var(--paper); }
.logo__mark {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 600; font-size: .95rem;
  color: var(--gold); flex: none;
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-12deg); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__name { font-family: var(--font-display); font-size: 1.32rem; letter-spacing: .01em; }
.logo__sub { font-size: .58rem; letter-spacing: .42em; text-transform: uppercase; color: var(--sand); margin-top: 4px; }

/* Nav */
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.4rem); }
.nav__link {
  position: relative;
  color: var(--paper);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 500;
  padding-block: .4rem;
  opacity: .82;
  transition: opacity .25s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { opacity: 1; }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { width: 100%; }

/* Work-with-me button */
.btn-wa {
  display: inline-flex; align-items: center; gap: .55rem;
  background: var(--gold); color: var(--ink);
  padding: .72rem 1.25rem; border-radius: 100px;
  font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s;
  white-space: nowrap;
}
.btn-wa:hover { background: var(--cream); transform: translateY(-2px); }
.btn-wa svg { width: 17px; height: 17px; }

/* Burger */
.burger { display: none; width: 42px; height: 42px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.burger span { display: block; width: 24px; height: 2px; background: var(--paper); transition: transform .35s var(--ease), opacity .25s; }
.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .burger span:nth-child(2) { opacity: 0; }
.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: flex; }
  .nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 1.6rem;
    background: rgba(16,15,13,0.98); backdrop-filter: blur(10px);
    transform: translateX(100%); transition: transform .5s var(--ease);
    padding: 2rem;
  }
  .nav-open .nav { transform: translateX(0); }
  .nav__link { font-size: 1.4rem; opacity: 1; }
  .nav .btn-wa { font-size: 1rem; padding: .9rem 1.6rem; }
}

/* =====================================================================
   FLOATING PERSISTENT WHATSAPP
   ===================================================================== */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 2rem); bottom: clamp(1rem, 3vw, 2rem);
  z-index: 95;
  display: inline-flex; align-items: center; gap: .6rem;
  background: #25d366; color: #fff;
  padding: .85rem 1.1rem; border-radius: 100px;
  font-weight: 700; font-size: .85rem; letter-spacing: .02em;
  box-shadow: 0 14px 40px rgba(0,0,0,0.28);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 48px rgba(0,0,0,0.34); }
.wa-float svg { width: 22px; height: 22px; }
.wa-float .wa-float__txt { transition: max-width .4s var(--ease); }
@media (max-width: 560px) { .wa-float .wa-float__txt { display: none; } .wa-float { padding: .95rem; } }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 100px;
  font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
}
.btn--solid { background: var(--ink); color: var(--paper); }
.btn--solid:hover { background: var(--gold); color: var(--ink); transform: translateY(-2px); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn--ghost { border: 1.5px solid currentColor; }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* =====================================================================
   IMAGE PLACEHOLDER SYSTEM
   Background-image divs with a layered gradient fallback so a missing
   photo never shows a broken icon — it shows a tasteful tile instead.
   ===================================================================== */
.media {
  position: relative; overflow: hidden;
  background-color: var(--ink-2);
  /* The photo (--img) sits on TOP of an on-brand textured gradient.
     If the photo is missing or fails to load, the gradient shows through —
     so placeholders look intentional and nothing ever appears broken. */
  background-image:
    var(--img, none),
    radial-gradient(120% 90% at 20% 10%, rgba(212,154,58,0.22), transparent 55%),
    radial-gradient(120% 120% at 90% 90%, rgba(182,83,58,0.20), transparent 50%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 9px),
    linear-gradient(160deg, #211d18, #14110e);
  background-size: cover, auto, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-repeat: no-repeat;
}
.media__tag {
  position: absolute; left: 14px; bottom: 12px; z-index: 2;
  font-size: .62rem; letter-spacing: .26em; text-transform: uppercase;
  color: rgba(244,239,228,0.55); font-weight: 600;
  pointer-events: none;
}

/* =====================================================================
   HERO (home)
   ===================================================================== */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: flex-end;
  color: var(--paper); overflow: hidden;
}
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transform: scale(1.08); transition: opacity 1.6s var(--ease), transform 7s linear;
}
.hero__slide.active { opacity: 1; transform: scale(1); }
.hero__slides::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(16,15,13,0.45) 0%, rgba(16,15,13,0.15) 40%, rgba(16,15,13,0.85) 100%);
}
.hero__inner { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(3rem, 8vw, 6rem); padding-top: 8rem; }
.hero__title {
  font-size: clamp(2.8rem, 9vw, 7.5rem);
  line-height: .92; font-weight: 300; max-width: 16ch;
}
.hero__title em { font-style: italic; color: var(--gold); font-variation-settings: "opsz" 100; }
.hero__sub { margin-top: 1.5rem; max-width: 46ch; font-size: clamp(1rem, 1.6vw, 1.25rem); color: rgba(244,239,228,0.86); }
.hero__cta { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__cta .btn--ghost { color: var(--paper); }
.hero__meta {
  position: absolute; right: var(--gutter); top: 45%; z-index: 2;
  writing-mode: vertical-rl; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: rgba(244,239,228,0.6);
}
@media (max-width: 760px){ .hero__meta { display: none; } }

/* =====================================================================
   GENERIC PAGE HERO (interior pages)
   ===================================================================== */
.page-hero {
  position: relative; padding-top: calc(var(--header-h) + clamp(3rem,7vw,5rem));
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
  background: var(--ink); color: var(--paper); overflow: hidden;
}
.page-hero::after {
  content:""; position:absolute; right:-10%; top:-30%; width:60%; height:160%;
  background: radial-gradient(closest-side, rgba(212,154,58,0.18), transparent);
}
.page-hero .eyebrow { color: var(--gold); }
.page-hero__title { font-size: clamp(2.6rem, 7vw, 5.5rem); font-weight: 300; margin-top: 1rem; position: relative; z-index: 2; }
.page-hero__title em { font-style: italic; color: var(--gold); }
.page-hero__sub { margin-top: 1.2rem; max-width: 55ch; color: rgba(244,239,228,0.8); position: relative; z-index: 2; }

/* =====================================================================
   SECTION HEADINGS
   ===================================================================== */
.sect-head { max-width: 760px; }
.sect-head h2 { font-size: clamp(2rem, 5vw, 3.6rem); margin-top: 1rem; font-weight: 300; }
.sect-head h2 em { font-style: italic; color: var(--gold-deep); }
.sect-head p { margin-top: 1rem; color: var(--ink-soft); }

/* =====================================================================
   INTRO / STATEMENT
   ===================================================================== */
.statement { background: var(--cream); }
.statement__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.statement__quote { font-family: var(--font-display); font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 300; line-height: 1.25; }
.statement__quote em { font-style: italic; color: var(--gold-deep); }
.statement__body p + p { margin-top: 1.1rem; }
.statement__sign { margin-top: 1.8rem; font-family: var(--font-display); font-style: italic; font-size: 1.5rem; color: var(--gold-deep); }
@media (max-width: 820px){ .statement__grid { grid-template-columns: 1fr; } }

/* =====================================================================
   SERVICE CARDS (home + overview)
   ===================================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 900px){ .svc-grid { grid-template-columns: 1fr; } }
.svc-card {
  position: relative; overflow: hidden; border-radius: var(--radius);
  min-height: 460px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 2rem; color: var(--paper);
  isolation: isolate;
}
.svc-card .media { position: absolute; inset: 0; z-index: -2; transition: transform 1s var(--ease); }
.svc-card::after { content:""; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, transparent 30%, rgba(10,9,8,0.88)); }
.svc-card:hover .media { transform: scale(1.06); }
.svc-card__no { font-family: var(--font-display); font-size: .9rem; color: var(--gold); letter-spacing: .1em; }
.svc-card__title { font-size: 1.9rem; margin-top: .4rem; font-weight: 300; }
.svc-card__desc { margin-top: .7rem; font-size: .95rem; color: rgba(244,239,228,0.8); }
.svc-card__link {
  margin-top: 1.3rem; display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--gold);
}
.svc-card__link .arrow { transition: transform .3s var(--ease); }
.svc-card:hover .svc-card__link .arrow { transform: translateX(5px); }

/* =====================================================================
   PORTFOLIO GALLERY
   ===================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2.4rem; }
.filter-btn {
  padding: .55rem 1.1rem; border-radius: 100px; border: 1px solid var(--line);
  font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--muted);
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--ink); color: var(--ink); }
.filter-btn.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.gallery { columns: 3; column-gap: 1.1rem; }
@media (max-width: 900px){ .gallery { columns: 2; } }
@media (max-width: 560px){ .gallery { columns: 1; } }
.gallery__item {
  break-inside: avoid; margin-bottom: 1.1rem; position: relative; cursor: pointer;
  border-radius: var(--radius); overflow: hidden;
}
.gallery__item .media { width: 100%; }
.gallery__item .media.tall { aspect-ratio: 3/4; }
.gallery__item .media.wide { aspect-ratio: 4/3; }
.gallery__item .media.square { aspect-ratio: 1/1; }
.gallery__cap {
  position: absolute; inset: auto 0 0 0; padding: 1.2rem; color: var(--paper);
  background: linear-gradient(transparent, rgba(10,9,8,0.85));
  opacity: 0; transform: translateY(8px); transition: all .4s var(--ease);
}
.gallery__item:hover .gallery__cap { opacity: 1; transform: translateY(0); }
.gallery__cap h4 { font-size: 1.15rem; font-weight: 400; }
.gallery__cap span { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(8,7,6,0.95); padding: 2rem;
}
.lightbox.open { display: grid; }
.lightbox__media { width: min(86vw, 1000px); height: min(80vh, 700px); border-radius: var(--radius); }
.lightbox__close { position: absolute; top: 1.4rem; right: 1.6rem; color: var(--paper); font-size: 2rem; }
.lightbox__cap { position: absolute; bottom: 1.6rem; left: 0; right: 0; text-align: center; color: var(--sand); letter-spacing: .2em; text-transform: uppercase; font-size: .75rem; }

/* =====================================================================
   STATS
   ===================================================================== */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; }
@media (max-width: 700px){ .stats { grid-template-columns: repeat(2,1fr); } }
.stat { border-top: 1px solid var(--line); padding-top: 1.2rem; }
.stat__num { font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 300; line-height: 1; }
.stat__num em { color: var(--gold-deep); font-style: italic; }
.stat__label { margin-top: .5rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* =====================================================================
   FEATURE STRIP (alternating image/text)
   ===================================================================== */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.feature + .feature { margin-top: clamp(3rem, 7vw, 6rem); }
.feature__media { aspect-ratio: 4/5; border-radius: var(--radius); }
.feature.reverse .feature__media { order: 2; }
.feature h3 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); font-weight: 300; }
.feature p { margin-top: 1rem; color: var(--ink-soft); }
@media (max-width: 820px){ .feature { grid-template-columns: 1fr; } .feature.reverse .feature__media { order: 0; } }

/* =====================================================================
   CTA BAND
   ===================================================================== */
.cta-band { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(60% 100% at 50% 0%, rgba(212,154,58,0.22), transparent); }
.cta-band__inner { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(2.2rem, 6vw, 4.5rem); font-weight: 300; }
.cta-band h2 em { font-style: italic; color: var(--gold); }
.cta-band p { margin: 1.2rem auto 2.2rem; max-width: 48ch; color: rgba(244,239,228,0.78); }

/* =====================================================================
   FORMS (shared base)
   ===================================================================== */
.form { display: grid; gap: 1.3rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
@media (max-width: 620px){ .form__row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: .5rem; }
.field label { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--muted); }
.field input, .field textarea, .field select {
  background: transparent; border: none; border-bottom: 1.5px solid var(--line);
  padding: .7rem .2rem; font-size: 1rem; transition: border-color .3s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold-deep); }
.field textarea { resize: vertical; min-height: 120px; }
.form__note { font-size: .8rem; color: var(--muted); }
.form__ok { display: none; padding: 1rem 1.2rem; background: rgba(212,154,58,0.16); border-left: 3px solid var(--gold-deep); border-radius: var(--radius); font-size: .92rem; }
.form__ok.show { display: block; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 820px){ .footer__top { grid-template-columns: 1fr; gap: 2rem; } }
.footer__brand .logo { color: var(--paper); }
.footer__brand p { margin-top: 1.2rem; color: rgba(244,239,228,0.62); max-width: 34ch; font-size: .95rem; }
.footer__col h5 { font-size: .74rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; font-family: var(--font-body); font-weight: 600; }
.footer__col a, .footer__col p { display: block; color: rgba(244,239,228,0.78); margin-bottom: .7rem; font-size: .95rem; transition: color .25s; }
.footer__col a:hover { color: var(--gold); }
.footer__bottom { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid rgba(244,239,228,0.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; color: rgba(244,239,228,0.5); font-size: .8rem; letter-spacing: .04em; }
.footer__bottom a:hover { color: var(--gold); }

/* =====================================================================
   REVEAL ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{ transition-delay: .08s; }
.reveal[data-d="2"]{ transition-delay: .16s; }
.reveal[data-d="3"]{ transition-delay: .24s; }
.reveal[data-d="4"]{ transition-delay: .32s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .6s; }
}
