/* =========================================================
   MOMKN Studio — Shared design system
   Placeholder build: swap fonts, images and copy with real
   studio assets before launch. Search "PLACEHOLDER" for spots
   that need real content.
   ========================================================= */

:root{
  --bg: #000000;
  --bg-soft: #0a0a0a;
  --panel: #121212;
  --fg: #f5f3ee;
  --fg-dim: #a8a59c;
  --fg-faint: #6f6c63;
  --accent: #ff5a1f;
  --accent-dim: #7a2c14;
  --line: rgba(245,243,238,0.14);
  --line-soft: rgba(245,243,238,0.07);

  /* Latin display mood = Gotham (geometric, confident, wide apertures).
     Gotham itself is a paid commercial face (Hoefler&Co) and can't be
     embedded without a license, so Poppins is used as the closest free
     geometric stand-in — swap for real Gotham/Momken webfont files later.
     Arabic falls back to Cairo (geometric, neutral) as a placeholder only
     until your own custom Arabic typeface is ready to drop in. */
  --f-display: 'MomkenDisplay', 'Poppins', 'Cairo', 'Tajawal', sans-serif;
  --f-body: 'Inter', 'Cairo', sans-serif;

  --container: 1400px;
  --pad: clamp(20px, 4vw, 64px);

  --ease: cubic-bezier(.16,.84,.44,1);
}

/* Mohawla — real released typeface (Regular, headline/display weight only) */
@font-face{
  font-family: 'Mohawla Typeface';
  src: url('../fonts/MohawlaTypeface-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
.font-mohawla{ font-family: 'Mohawla Typeface', 'Cairo', 'Tajawal', sans-serif; }

/* Momken — real released typeface (Regular, single weight, Arabic only) */
@font-face{
  font-family: 'Momken Typeface';
  src: url('../fonts/Momken-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}
.font-momken{ font-family: 'Momken Typeface', 'Cairo', 'Tajawal', sans-serif; }

*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[dir="rtl"] body{ font-family: var(--f-display); }

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; background:none; border:none; color:inherit; cursor:pointer; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4,p{ margin:0; }

::selection{ background: var(--accent); color:#000000; }

/* ---------- split-text stagger ---------- */
.split-word{ display:inline-block; overflow:hidden; vertical-align:top; }
.split-inner{
  display:inline-block;
  transform: translateY(115%);
  opacity: 0;
  transition: transform .8s var(--ease), opacity .6s ease;
}
.split.is-in .split-inner{ transform: translateY(0); opacity:1; }

/* ---------- film-grain texture (whole site) ---------- */
body::after{
  content:'';
  position: fixed; inset:0;
  z-index: 60;
  pointer-events:none;
  opacity: .05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- marquee strip ---------- */
.marquee{
  overflow:hidden;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding: 18px 0;
  white-space: nowrap;
}
.marquee-track{
  display:inline-flex;
  align-items:center;
  gap: 28px;
  animation: marquee 22s linear infinite;
}
.marquee-track span{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.2rem, 2.4vw, 1.8rem);
  text-transform: uppercase;
  letter-spacing: .02em;
  display:inline-flex;
  align-items:center;
  gap: 28px;
  color: var(--fg-faint);
}
.marquee-track span em{
  font-style:normal;
  color: var(--accent);
}
.marquee-star{
  width: .55em; height: .55em;
  fill: var(--accent);
  display:inline-block;
  flex: 0 0 auto;
  animation: brandStarSpin 6s linear infinite;
}
@keyframes marquee{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){
  .marquee-track{ animation: none; }
}

/* ---------- layout helpers ---------- */
.wrap{
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}
.section{ padding: clamp(64px,10vw,140px) 0; }
.section-tight{ padding: clamp(40px,6vw,80px) 0; }
.border-top{ border-top:1px solid var(--line); }
.border-bottom{ border-bottom:1px solid var(--line); }

.eyebrow{
  font-family: var(--f-body);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.h-mega{
  font-family: var(--f-display);
  font-weight: 900;
  line-height: .92;
  letter-spacing: -.01em;
  font-size: clamp(2.6rem, 9vw, 8rem);
  margin: 0;
}
.h1{
  font-family: var(--f-display);
  font-weight: 800;
  line-height: .98;
  font-size: clamp(2.2rem, 6vw, 4.6rem);
}
.h2{
  font-family: var(--f-display);
  font-weight: 800;
  line-height: 1.02;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
}
.h3{
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
}
.lead{
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
  color: var(--fg-dim);
  max-width: 46ch;
  font-weight: 400;
}
.mono-label{
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid var(--fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .02em;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.btn:hover{ background: var(--fg); color: var(--bg); }
.btn-solid{
  background: var(--accent);
  border-color: var(--accent);
  color: #000000;
}
.btn-solid:hover{ background: var(--fg); border-color: var(--fg); color:var(--bg); }
.btn-ghost{
  border-color: var(--line);
  color: var(--fg-dim);
}
.btn-ghost:hover{ background: transparent; color: var(--fg); border-color: var(--fg); }

/* ---------- nav ---------- */
.nav{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 22px var(--pad);
  mix-blend-mode: difference;
}
.nav.is-solid{ mix-blend-mode: normal; background: rgba(0,0,0,.86); backdrop-filter: blur(10px); border-bottom:1px solid var(--line-soft); }
.nav-logo{
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: .02em;
}
.nav-logo span{ color: var(--accent); }

/* ---------- brand lockup (real logo mark: star + wordmark, exact vector assets) ---------- */
.brand-lockup{ display:inline-flex; align-items:center; gap:9px; }
.brand-word svg{
  height: 15px; width:auto; display:block; fill: currentColor;
}
.brand-studio{
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .32em;
  opacity: .76;
  text-transform: uppercase;
}
.brand-star{
  width: 17px; height: 17px;
  display: grid; place-items: center;
  color: var(--accent);
  flex: 0 0 auto;
  animation: brandStarSpin 14s linear infinite;
}
.brand-star svg{ width:100%; height:100%; fill:currentColor; display:block; }
.brand-lockup:hover .brand-star{ animation-duration: 1.8s; }
@keyframes brandStarSpin{ to{ transform: rotate(360deg); } }

/* ---------- hero brand mark (badge + wordmark + label, stacked) ---------- */
.hero-brand{
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap: clamp(10px,1.6vw,16px);
  width: 100%;
}
.hero-badge{
  display:flex; justify-content:center; width:100%;
  animation: badgeZoom 6s ease-in-out infinite;
}
@keyframes badgeZoom{
  0%,100%{ transform: scale(1); }
  50%{ transform: scale(1.08); }
}
.hero-badge svg{
  width: clamp(200px, 24vw, 340px);
  height: auto;
  display:block;
}
.badge-star-spin{
  transform-box: fill-box;
  transform-origin: center;
  animation: brandStarSpin 16s linear infinite;
}
.hero-brand:hover .badge-star-spin{ animation-duration: 2.2s; }
.hero-wordmark{ display:flex; justify-content:center; width:100%; }
.hero-wordmark svg{
  height: clamp(90px, 14vw, 170px);
  width: auto;
  display:block;
  fill: var(--fg);
}
@media (prefers-reduced-motion: reduce){
  .hero-badge{ animation: none; }
}
.nav-links{
  display:flex;
  gap: clamp(18px,3vw,42px);
}
.nav-links a{
  font-size: 13px;
  font-weight: 700;
  letter-spacing:.06em;
  text-transform: uppercase;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after{
  content:'';
  position:absolute; left:0; bottom:0;
  width:0; height:1px; background: currentColor;
  transition: width .35s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color: var(--accent); }
.nav-toggle{ display:none; font-size:13px; letter-spacing:.08em; text-transform:uppercase; }
.nav-shop{
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--fg-dim);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  margin-left: 8px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.nav-shop:hover{ color:#000000; background:var(--accent); border-color:var(--accent); }

.hero-slogan{
  padding: clamp(56px,9vw,110px) 0;
  text-align:center;
}
.hero-slogan-strong{
  font-family: var(--f-display);
  font-weight: 900;
  line-height: .98;
  font-size: clamp(2.4rem, 6.5vw, 5.2rem);
  max-width: 16ch;
  margin: 0 auto;
}


@media (max-width: 780px){
  .nav-links{
    position: fixed; inset:0;
    background: var(--bg);
    flex-direction: column;
    justify-content:center;
    align-items:flex-start;
    padding: var(--pad);
    gap: 22px;
    transform: translateY(-100%);
    transition: transform .5s var(--ease);
    mix-blend-mode: normal;
  }
  .nav-links.open{ transform: translateY(0); }
  .nav-links a{ font-size: 28px; }
  .nav-toggle{ display:block; z-index:101; }
}

/* ---------- custom cursor ---------- */
.cursor{
  position: fixed;
  top:0; left:0;
  width: 22px; height:22px;
  margin: -11px 0 0 -11px;
  pointer-events:none;
  z-index: 9999;
  mix-blend-mode: difference;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s var(--ease);
  will-change: transform;
}
.cursor-star{
  position:absolute; inset:0;
  width:100%; height:100%;
  fill: var(--accent);
  display:block;
  animation: brandStarSpin 5s linear infinite;
  transition: opacity .2s ease, transform .2s ease;
}
.cursor.is-active{
  width: 90px; height:90px; margin: -45px 0 0 -45px;
  background: var(--fg);
  border-radius: 50%;
}
.cursor.is-active .cursor-star{ opacity:0; transform: scale(.4); }
.cursor-label{
  position:absolute; inset:0;
  display:flex; align-items:center; justify-content:center;
  font-size: 11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  color: var(--bg);
  opacity:0;
  transition: opacity .2s ease;
}
.cursor.is-active .cursor-label{ opacity:1; }
@media (hover:none), (pointer:coarse){ .cursor{ display:none; } }

/* ---------- reveal on scroll ---------- */
.reveal{ opacity:0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible{ opacity:1; transform: translateY(0); }
.reveal-delay-1.is-visible{ transition-delay: .08s; }
.reveal-delay-2.is-visible{ transition-delay: .16s; }
.reveal-delay-3.is-visible{ transition-delay: .24s; }

/* Portfolio/project thumbnails must never be gated behind the scroll-reveal
   animation trigger — on fast scrolling, some mobile browsers, screenshot
   tools, or reduced-motion setups the IntersectionObserver reveal can fail
   to fire in time, leaving cards permanently blank. Images always show;
   only a very light fade is kept for a subtle effect. */
.proj-card.reveal,
.tf-cover.reveal{ opacity:1; transform:none; }

/* ---------- footer ---------- */
.footer{
  padding: 56px var(--pad) 40px;
  border-top: 1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  gap: 24px;
  align-items:flex-end;
  justify-content:space-between;
}
.footer-links{ display:flex; gap:28px; flex-wrap:wrap; }
.footer-links a{ font-size:13px; color:var(--fg-dim); }
.footer-links a:hover{ color: var(--fg); }
.footer-fine{ font-size:12px; color: var(--fg-faint); }

/* =========================================================
   HOME
   ========================================================= */
.hero{
  min-height: 100svh;
  display:flex;
  flex-direction: column;
  justify-content:center;
  align-items:center;
  text-align:center;
  position: relative;
  padding-top: 90px;
}

.hero-tagline{
  margin-top: 28px;
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.4rem, 3.4vw, 2.4rem);
  max-width: 18ch;
}
.hero-tagline-en{
  margin-top: 14px;
  color: var(--fg-dim);
  font-size: 14px;
  letter-spacing:.04em;
}
.hero-scroll{
  position:absolute;
  bottom: 36px;
  font-size: 11px;
  letter-spacing:.2em;
  text-transform:uppercase;
  color: var(--fg-faint);
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:10px;
}
.hero-scroll::after{
  content:'';
  width:1px; height: 40px;
  background: var(--line);
  animation: scrollLine 2s infinite ease-in-out;
}
@keyframes scrollLine{ 0%,100%{ transform: scaleY(.4); opacity:.4; } 50%{ transform: scaleY(1); opacity:1; } }

/* pillars */
.pillars{ display:flex; flex-direction:column; }
.pillar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 40px;
  padding: clamp(40px,7vw,90px) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.pillar:last-child{ border-bottom: 1px solid var(--line); }
.pillar-index{
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  position: relative; z-index:1;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.pillar:hover .pillar-index{ color: var(--accent); border-color: var(--accent); }
.pillar-title{
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(2.4rem, 8vw, 6.4rem);
  position: relative;
  z-index: 1;
  transition: color .4s var(--ease), transform .4s var(--ease);
}
.pillar:hover .pillar-title{
  color: var(--accent);
  animation: pillarGlitch .5s steps(3) forwards;
}
@keyframes pillarGlitch{
  0%{ transform: translateX(0) skewX(0); text-shadow: none; }
  25%{ transform: translateX(18px) skewX(-6deg); text-shadow: -3px 0 var(--fg), 3px 0 var(--accent-dim); }
  50%{ transform: translateX(6px) skewX(4deg); text-shadow: 2px 0 var(--accent-dim), -2px 0 var(--fg); }
  75%{ transform: translateX(17px) skewX(-2deg); text-shadow: -1px 0 var(--fg), 1px 0 var(--accent-dim); }
  100%{ transform: translateX(14px) skewX(0); text-shadow: none; }
}
.pillar-desc{ max-width: 32ch; color: var(--fg-dim); font-size:14px; text-align:right; position:relative; z-index:1; }
.pillar-arrow{ font-size: 28px; transition: transform .4s var(--ease); position:relative; z-index:1; }
.pillar:hover .pillar-arrow{ transform: translateX(-8px) rotate(-45deg); }

@media (max-width: 780px){
  .pillar{ flex-direction:column; align-items:flex-start; gap:14px; }
  .pillar-desc{ text-align:left; }
}

.studio-teaser{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items:center;
}
@media (max-width: 900px){ .studio-teaser{ grid-template-columns:1fr; } }

/* =========================================================
   CARD GRIDS (typefaces / typography / branding)
   ========================================================= */
.grid{
  display:grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.grid-2{ grid-template-columns: repeat(2,1fr); }
.grid-3{ grid-template-columns: repeat(3,1fr); }

/* Masonry variant — used where cards have genuinely different aspect
   ratios (e.g. Typography). A plain CSS grid forces every card in a row
   to share the row's tallest height, leaving dead space (colored by the
   .grid background) under shorter cards. Columns-based flow lets each
   card keep its own natural height with zero gap. */
.grid.masonry{
  display:block;
  columns: 3;
  column-gap: 1px;
}
.grid.masonry .proj-card{
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin-bottom: 1px;
  width:100%;
}
@media (max-width: 900px){ .grid.masonry{ columns: 1; } }
@media (max-width: 900px){ .grid-2, .grid-3{ grid-template-columns: 1fr; } }

.card{
  background: var(--bg);
  padding: clamp(28px,4vw,48px);
  position:relative;
  overflow:hidden;
  min-height: 320px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  transition: background .4s var(--ease);
}
.card:hover{ background: var(--bg-soft); }
.card-tag{ font-size:11px; letter-spacing:.14em; text-transform:uppercase; color: var(--fg-faint); }
.card-title{
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(1.8rem,3vw,2.6rem);
  margin-top: 18px;
}
.card-sub{ color: var(--fg-dim); font-size:14px; margin-top:10px; max-width: 34ch; }
.card-foot{ display:flex; align-items:center; justify-content:space-between; margin-top: 26px; }
.card-weight-demo{
  font-family: var(--f-display);
  font-size: clamp(2.4rem,5vw,4rem);
  font-weight: 300;
  animation: weightCycle 6s infinite ease-in-out;
}
@keyframes weightCycle{
  0%,100%{ font-weight: 300; }
  50%{ font-weight: 900; }
}
.card.is-soon{ opacity:.45; }
.card.is-soon:hover{ background: var(--bg); }
.card-glow{
  position:absolute; inset: -2px;
  background: radial-gradient(circle at 20% 20%, var(--accent-dim), transparent 60%);
  opacity:0; transition: opacity .5s ease;
  pointer-events:none;
}
.card:hover .card-glow{ opacity:.35; }

/* project card with hover-reveal media */
.proj-card{
  position:relative;
  aspect-ratio: 4/3;
  overflow:hidden;
  background: var(--bg-soft);
}
.proj-media{
  position:absolute; inset:0;
  background-size: cover;
  background-position:center;
  transform: scale(1.08);
  opacity:0;
  transition: opacity .5s var(--ease), transform .6s var(--ease);
}
.proj-card:hover .proj-media{ opacity:1; transform: scale(1); }
.proj-info{
  position:absolute; left:0; right:0; bottom:0;
  padding: 22px 24px;
  display:flex; justify-content:space-between; align-items:flex-end;
  background: linear-gradient(to top, rgba(0,0,0,.75), transparent);
  z-index:2;
}
.proj-title{ font-family: var(--f-display); font-weight:800; font-size: 1.3rem; }
.proj-tag{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--fg-dim); }
.proj-concept{
  position:absolute; top:16px; left:16px; z-index:2;
  font-size:10px; letter-spacing:.12em; text-transform:uppercase;
  padding:6px 10px; border:1px solid rgba(245,243,238,.4); border-radius:999px;
  color: var(--fg);
  backdrop-filter: blur(4px);
}

/* ---------- lightbox (click a piece to view it full-size, uncropped) ---------- */
.proj-card.lightbox-item{ cursor: pointer; }
.lightbox-overlay{
  position:fixed; inset:0; z-index:999;
  background: rgba(0,0,0,.92);
  display:flex; align-items:center; justify-content:center;
  padding: 48px;
  opacity:0; visibility:hidden;
  transition: opacity .3s ease;
}
.lightbox-overlay.is-open{ opacity:1; visibility:visible; }
.lightbox-overlay img{
  display:block;
  max-width:100%; max-height:100%;
  width:auto; height:auto;
  object-fit:contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
}
.lightbox-close{
  position:absolute; top:22px; right:28px; z-index:1000;
  width:44px; height:44px;
  border:1px solid rgba(245,243,238,.3); border-radius:50%;
  background:none; color:var(--fg);
  font-size:22px; line-height:1; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.lightbox-close:hover{ border-color: var(--accent); color: var(--accent); }
.lightbox-caption{
  position:absolute; left:0; right:0; bottom:24px;
  text-align:center; font-size:12.5px; letter-spacing:.04em;
  color: var(--fg-dim);
}

/* filters */
.filters{ display:flex; flex-wrap:wrap; gap:10px; margin-bottom: 40px; }
.filter-btn{
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size:12px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color: var(--fg-dim);
  transition: all .3s var(--ease);
}
.filter-btn:hover{ color: var(--fg); border-color: var(--fg); }
.filter-btn.active{ background: var(--accent); border-color:var(--accent); color:#000000; }

/* =========================================================
   TYPEFACE DETAIL PAGE
   ========================================================= */
.tf-hero{
  padding-top: 160px;
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items:end;
}
@media (max-width:900px){ .tf-hero{ grid-template-columns:1fr; } }
.tf-meta{ display:flex; flex-direction:column; gap:14px; }
.tf-meta-row{ display:flex; justify-content:space-between; gap:28px; border-top:1px solid var(--line); padding:12px 0; font-size:13px; }
.tf-meta-row span:first-child{ color: var(--fg-faint); text-transform:uppercase; letter-spacing:.08em; font-size:11px; flex:0 0 auto; }
.tf-meta-row span:last-child{ text-align:right; }

.tf-display{
  font-family: var(--f-display);
  font-size: clamp(3rem, 12vw, 10rem);
  font-weight: 800;
  line-height: 1;
  padding: 40px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow-wrap: anywhere;
}

/* type tester */
.tester{
  border: 1px solid var(--line);
  padding: clamp(20px,3vw,36px);
}
.tester-input{
  width:100%;
  background: transparent;
  border: none;
  outline: none;
  color: var(--fg);
  font-family: var(--f-display);
  font-size: clamp(2rem, 6vw, 4.5rem);
  line-height:1.15;
  resize: none;
  min-height: 1.4em;
}
.tester-controls{
  display:flex;
  flex-wrap:wrap;
  gap: 28px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.tester-control{ display:flex; flex-direction:column; gap:8px; min-width:180px; flex:1; }
.tester-control label{ font-size:11px; letter-spacing:.1em; text-transform:uppercase; color: var(--fg-faint); }
.tester-control input[type="range"]{
  -webkit-appearance:none;
  width:100%; height:2px; background: var(--line); outline:none;
}
.tester-control input[type="range"]::-webkit-slider-thumb{
  -webkit-appearance:none; width:14px; height:14px; border-radius:50%;
  background: var(--accent); cursor:pointer;
}
.tester-value{ font-size:12px; color: var(--fg-dim); }

.weights-strip{ display:flex; flex-direction:column; }
.weight-row{
  display:flex; align-items:baseline; justify-content:space-between;
  padding: 20px 0; border-top:1px solid var(--line);
  font-family: var(--f-display);
}
.weight-row:last-child{ border-bottom:1px solid var(--line); }
.weight-row .wname{ font-size:12px; font-family: var(--f-body); color: var(--fg-faint); letter-spacing:.08em; text-transform:uppercase; }
.weight-row .wsample{ font-size: clamp(1.6rem,4vw,3rem); }

.glyph-grid{
  display:grid;
  grid-template-columns: repeat(auto-fill, minmax(64px,1fr));
  gap:1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.glyph-cell{
  background: var(--bg);
  aspect-ratio:1;
  display:flex; align-items:center; justify-content:center;
  font-family: var(--f-display);
  font-size: 1.4rem;
  transition: background .25s ease, color .25s ease;
}
.glyph-cell:hover{ background: var(--accent); color:#000000; }

/* Fix: .tf-display / .tester-input / .weight-row / .glyph-cell all set their own
   font-family, which — being the same specificity as .font-mohawla / .font-momken
   but declared later in this file — was silently winning the cascade and
   overriding the real webfont. These combined selectors force the real font
   back on wherever a real-typeface class is present. */
.tf-display.font-mohawla,
.tester-input.font-mohawla,
.weight-row.font-mohawla{ font-family: 'Mohawla Typeface', 'Cairo', 'Tajawal', sans-serif; }
.glyph-grid.font-mohawla .glyph-cell{ font-family: 'Mohawla Typeface', 'Cairo', 'Tajawal', sans-serif; }

.tf-display.font-momken,
.tester-input.font-momken,
.weight-row.font-momken{ font-family: 'Momken Typeface', 'Cairo', 'Tajawal', sans-serif; }
.glyph-grid.font-momken .glyph-cell{ font-family: 'Momken Typeface', 'Cairo', 'Tajawal', sans-serif; }

.card-weight-demo.font-mohawla{ font-family: 'Mohawla Typeface', 'Cairo', 'Tajawal', sans-serif; }
.card-weight-demo.font-momken{ font-family: 'Momken Typeface', 'Cairo', 'Tajawal', sans-serif; }

/* Fix: Mohawla and Momken each ship a single real weight (400, declared in
   their @font-face). Ancestor rules like .tf-display (font-weight:800) and
   .card-weight-demo (animates 300<->900) were asking the browser for weights
   that don't exist in the actual font file. With no matching real weight,
   browsers "faux bold" the glyphs — algorithmically fattening every stroke,
   which is exactly the unwanted outline/stroke look reported on the type
   pages. These typefaces are not variable fonts, so they must always render
   at their one true weight (400), never synthesized. */
.tf-display.font-mohawla,
.tester-input.font-mohawla,
.weight-row.font-mohawla,
.glyph-grid.font-mohawla .glyph-cell,
.card-weight-demo.font-mohawla,
.tf-display.font-momken,
.tester-input.font-momken,
.weight-row.font-momken,
.glyph-grid.font-momken .glyph-cell,
.card-weight-demo.font-momken{
  font-weight: 400 !important;
  font-synthesis: none;
  animation: none !important;
  -webkit-text-stroke: 0;
}

.license-box{
  border:1px solid var(--line);
  padding: 28px;
  display:flex; flex-direction:column; gap:16px;
}

/* "In Use" coming-soon teaser — replaces empty PLACEHOLDER project cards
   until real usage photography for this specific typeface is ready. */
.usage-teaser{
  border:1px solid var(--line);
  padding: 32px clamp(24px,4vw,40px);
  display:flex; flex-direction:column; align-items:flex-start; gap:14px;
}
.usage-teaser p{ color: var(--fg-dim); font-size:14px; max-width:56ch; }
.license-badge{
  display:inline-flex; align-self:flex-start;
  font-size:11px; letter-spacing:.1em; text-transform:uppercase;
  padding:6px 14px; border-radius:999px; border:1px solid var(--accent); color: var(--accent);
}

/* =========================================================
   STUDIO PAGE
   ========================================================= */
.studio-grid{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border:1px solid var(--line);
}
@media (max-width: 780px){ .studio-grid{ grid-template-columns:1fr; } }
.service-row{
  display:flex; justify-content:space-between; align-items:center;
  padding: 22px 0; border-top:1px solid var(--line);
}
.service-row:last-child{ border-bottom:1px solid var(--line); }
.service-num{ color: var(--fg-faint); font-size:13px; }
.service-name{ font-family: var(--f-display); font-weight:700; font-size: clamp(1.1rem,2vw,1.6rem); }

.founder{
  display:grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 48px;
  align-items:center;
}
@media (max-width:900px){ .founder{ grid-template-columns:1fr; } }
.tf-cover{
  width:100%;
  overflow:hidden;
  border:1px solid var(--line);
}
.tf-cover img{
  display:block;
  width:100%;
  height:auto;
}

/* project card real imagery (In Use grids) */
.proj-media{
  background-color: var(--bg-soft);
}
.proj-card .proj-media{ opacity:1; transform:scale(1); }
.proj-card:hover .proj-media{ transform: scale(1.05); }

.founder-frame{
  position:relative;
  aspect-ratio: 4/5;
  background: linear-gradient(155deg, var(--panel), var(--bg));
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color: var(--fg-faint);
  font-size:12px; letter-spacing:.1em; text-transform:uppercase;
  text-align:center;
  overflow:hidden;
}
.founder-frame:not(:has(img)){ padding:20px; }
.founder-frame img{
  width:100%; height:100%;
  object-fit:cover;
  display:block;
}

/* Founder photo hover swap: base portrait crossfades + zooms into an
   alternate treatment on hover, for a modern, slightly cinematic reveal. */
.founder-frame .founder-photo{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit:cover;
  display:block;
  transition: opacity .8s var(--ease), transform 1.1s var(--ease);
  will-change: opacity, transform;
}
.founder-frame .founder-photo-base{
  opacity:1;
  transform:scale(1);
  z-index:1;
}
.founder-frame .founder-photo-hover{
  opacity:0;
  transform:scale(1.12);
  z-index:2;
}
.founder-frame:hover .founder-photo-base{
  opacity:0;
  transform:scale(1.12);
}
.founder-frame:hover .founder-photo-hover{
  opacity:1;
  transform:scale(1);
}
@media (hover:none){
  /* touch devices have no hover state — keep the base portrait shown */
  .founder-frame .founder-photo-hover{ display:none; }
}

.contact-block{
  display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-end; gap:24px;
}
.contact-email{
  font-family: var(--f-display);
  font-weight:800;
  font-size: clamp(1.6rem,5vw,3.4rem);
}
.contact-email:hover{ color: var(--accent); }

.rights-section{ padding: 28px 0; }
.rights-note{
  padding: 0;
  color: var(--fg-dim);
  font-size: 13px;
  font-style: italic;
  line-height: 1.65;
  background: none;
  border: none;
}
