/* ══════════════════════════════════════════════════════
   FATIMA SANAULLAH v2 — Single-page scroll portfolio
   Dark theme · Gold accent · Designer-grade
══════════════════════════════════════════════════════ */

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

:root {
  --bg:       #080810;
  --bg1:      #0e0e18;
  --bg2:      #13131f;
  --bg3:      #1a1a28;
  --border:   rgba(255,255,255,0.07);
  --accent:   #c9a84c;
  --accent2:  #e8c96e;
  --accent-d: #a0803a;
  --text:     #f0f0f5;
  --text2:    #a0a0b8;
  --text3:    #606078;
  --white:    #ffffff;
  --radius:   12px;
  --radius-lg:20px;
  --trans:    0.25s ease;
  --nav-h:    70px;
  --max-w:    1200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a  { color: inherit; text-decoration: none; }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
ul { list-style: none; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ══════════════════════════════════════════════════════
   LANDING SCREEN
══════════════════════════════════════════════════════ */
.landing {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: #060609;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1),
              transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.landing.ls-out {
  opacity: 0;
  transform: translateY(-8px) scale(0.985);
  pointer-events: none;
}

.landing-noise {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px; opacity: 0.3;
}

.landing-lines {
  position: absolute; inset: 0;
  display: flex; justify-content: space-evenly;
  pointer-events: none;
}
.landing-lines span {
  display: block; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent 0%, rgba(201,168,76,0.07) 40%, rgba(201,168,76,0.07) 60%, transparent 100%);
  animation: lline 4s ease-in-out infinite;
}
.landing-lines span:nth-child(1){animation-delay:0s}
.landing-lines span:nth-child(2){animation-delay:0.5s}
.landing-lines span:nth-child(3){animation-delay:1s}
.landing-lines span:nth-child(4){animation-delay:1.5s}
.landing-lines span:nth-child(5){animation-delay:2s}
.landing-lines span:nth-child(6){animation-delay:2.5s}
@keyframes lline{0%,100%{opacity:.2;transform:scaleY(.6)}50%{opacity:1;transform:scaleY(1)}}

.landing-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); pointer-events: none;
  animation: lblob 10s ease-in-out infinite;
}
.b1{width:500px;height:500px;background:radial-gradient(circle,rgba(201,168,76,.1) 0%,transparent 70%);top:-150px;right:-100px;animation-delay:0s}
.b2{width:380px;height:380px;background:radial-gradient(circle,rgba(100,70,180,.07) 0%,transparent 70%);bottom:-100px;left:-80px;animation-delay:4s}
.b3{width:260px;height:260px;background:radial-gradient(circle,rgba(201,168,76,.06) 0%,transparent 70%);bottom:20%;right:10%;animation-delay:7s}
@keyframes lblob{0%,100%{transform:translate(0,0) scale(1)}33%{transform:translate(20px,-30px) scale(1.06)}66%{transform:translate(-15px,20px) scale(.95)}}

.landing-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 30px; padding: 0 24px;
}

/* Pill */
.landing-pill {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid rgba(201,168,76,0.28); border-radius: 100px;
  padding: 7px 18px; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(201,168,76,.05);
  opacity: 0; transform: translateY(14px);
  animation: fadeup .6s .15s ease forwards;
}
.lpill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  animation: lpulse 2.2s ease-in-out infinite;
}
@keyframes lpulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.65)}}

/* Name */
.landing-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(3.2rem, 13vw, 8rem);
  font-weight: 700; line-height: 1.0; color: var(--white);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3em;
  letter-spacing: -.025em;
}
.lw { display: inline-block; }
.lc {
  display: inline-block;
  opacity: 0; transform: translateY(36px) rotate(4deg);
  animation: lcin .55s cubic-bezier(.22,1,.36,1) forwards;
}
@keyframes lcin{to{opacity:1;transform:translateY(0) rotate(0deg)}}

/* Sub */
.landing-sub {
  font-size: clamp(.9rem,2.5vw,1.1rem); color: var(--text2);
  letter-spacing: .02em;
  opacity: 0; transform: translateY(12px);
  animation: fadeup .6s 1.5s ease forwards;
}

/* CTA */
.landing-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: #060609;
  font-weight: 600; font-size: .92rem; padding: 15px 36px;
  letter-spacing: .05em; overflow: hidden; position: relative;
  opacity: 0; transform: translateY(12px);
  animation: fadeup .6s 1.8s ease forwards;
  transition: gap var(--trans);
}
.landing-btn::before {
  content:''; position: absolute; inset: 0;
  background: var(--accent2);
  transform: translateX(-101%);
  transition: transform .32s ease;
}
.landing-btn:hover::before{transform:translateX(0)}
.landing-btn:hover{gap:16px}
.landing-btn span,.landing-btn svg{position:relative;z-index:1}

/* Scroll hint */
.landing-hint {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  opacity: 0; animation: fadeup .6s 2.2s ease forwards;
}
.lhint-line {
  display: block; width: 1px; height: 38px;
  background: linear-gradient(to bottom, rgba(201,168,76,.7), transparent);
  animation: lhbounce 1.8s ease-in-out infinite;
}
@keyframes lhbounce{0%,100%{opacity:.8;transform:scaleY(1) translateY(0)}50%{opacity:.3;transform:scaleY(.5) translateY(0)}}
.lhint-text{font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--text3)}

/* Foot */
.landing-foot {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 16px 24px;
  font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text3);
  border-top: 1px solid rgba(255,255,255,0.04);
  opacity: 0; animation: fadeup .5s 2.5s ease forwards;
}
.sep{color:var(--accent);opacity:.4}

/* Shared */
@keyframes fadeup{to{opacity:1;transform:translateY(0)}}

/* Site wrap hidden until landing exits */
.site-wrap{opacity:0;visibility:hidden;transition:opacity .5s ease}
.site-wrap.visible{opacity:1;visibility:visible}
body:not(.portfolio-ready){overflow:hidden}

/* ══════════════════════════════════════════════════════
   NAV
══════════════════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--nav-h); z-index: 800;
  background: rgba(8,8,16,.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--trans);
}
.nav.scrolled{background:rgba(8,8,16,.95)}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1rem, 2.5vw, 1.35rem); font-weight: 700; color: var(--white);
  white-space: nowrap;
}
.nav-logo span{color:var(--accent)}
.nav-links{display:flex;align-items:center;gap:8px}
.nav-link {
  font-size: .88rem; font-weight: 500; color: var(--text2);
  padding: 8px 14px; border-radius: 8px;
  transition: color var(--trans), background var(--trans);
}
.nav-link:hover{color:var(--white);background:rgba(255,255,255,.05)}
.nav-cta {
  font-size: .88rem; font-weight: 600; color: #060609;
  background: var(--accent); padding: 10px 22px;
  transition: background var(--trans), transform .15s ease;
}
.nav-cta:hover{background:var(--accent2);transform:translateY(-1px)}
.nav-burger{display:none;flex-direction:column;gap:5px;padding:8px}
.nav-burger span{display:block;width:22px;height:2px;background:var(--text);border-radius:2px;transition:all .25s ease}
.nav-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.nav-burger.open span:nth-child(2){opacity:0}
.nav-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Mobile drawer */
.mob-drawer {
  position: fixed; top: var(--nav-h); right: 0; bottom: 0;
  width: min(300px, 85vw); z-index: 799;
  background: var(--bg2); border-left: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 32px 24px; gap: 8px;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.mob-drawer.open{transform:translateX(0)}
.md-link{font-size:1.1rem;font-weight:500;color:var(--text2);padding:14px 0;border-bottom:1px solid var(--border);transition:color var(--trans)}
.md-link:hover{color:var(--white)}
.mob-overlay{position:fixed;inset:0;z-index:798;background:rgba(0,0,0,.6);backdrop-filter:blur(4px);opacity:0;pointer-events:none;transition:opacity .3s ease}
.mob-overlay.show{opacity:1;pointer-events:auto}

/* ══════════════════════════════════════════════════════
   SECTION SHARED
══════════════════════════════════════════════════════ */
.section{padding: 120px 0}
.section-label {
  font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.section-h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  font-weight: 700; line-height: 1.15; color: var(--white);
  margin-bottom: 24px;
}
.section-h2 em{font-style:italic;color:var(--accent)}

/* Scroll reveal */
.rv {
  opacity: 0; transform: translateY(40px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22,1,.36,1);
}
.rv.rv-right{transform:translateY(40px) translateX(30px)}
.rv.in{opacity:1;transform:none}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #060609;
  font-weight: 600; font-size: .92rem;
  padding: 14px 32px; letter-spacing: .04em;
  overflow: hidden; position: relative;
  transition: gap var(--trans), transform .15s ease;
}
.btn-primary::before{content:'';position:absolute;inset:0;background:var(--accent2);transform:translateX(-101%);transition:transform .3s ease}
.btn-primary:hover::before{transform:translateX(0)}
.btn-primary span{position:relative;z-index:1}
.btn-primary:hover{transform:translateY(-2px)}

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); color: var(--text2);
  font-weight: 500; font-size: .92rem;
  padding: 14px 32px; letter-spacing: .04em;
  transition: border-color var(--trans), color var(--trans), transform .15s ease;
}
.btn-ghost:hover{border-color:rgba(201,168,76,.4);color:var(--white);transform:translateY(-2px)}

/* ══════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h); position: relative; overflow: hidden;
}
.hero-bg{position:absolute;inset:0;pointer-events:none}
.hbg-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); animation: lblob 12s ease-in-out infinite;
}
.hb1{width:600px;height:600px;background:radial-gradient(circle,rgba(201,168,76,.1) 0%,transparent 70%);top:-100px;right:-150px}
.hb2{width:400px;height:400px;background:radial-gradient(circle,rgba(80,60,160,.07) 0%,transparent 70%);bottom:-80px;left:-100px;animation-delay:5s}
.hbg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
}

.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; padding-top: 60px; padding-bottom: 80px;
}
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201,168,76,.25); border-radius: 100px;
  padding: 6px 16px; font-size: .75rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  background: rgba(201,168,76,.05); margin-bottom: 20px;
}
.hpill-dot{width:7px;height:7px;border-radius:50%;background:#4ade80;animation:lpulse 2.5s ease-in-out infinite}
.hero-h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.12; color: var(--white);
  margin-bottom: 24px;
}
.hero-h1 em{font-style:italic;color:var(--accent)}
.hero-p{font-size:1rem;color:var(--text2);line-height:1.7;margin-bottom:36px;max-width:480px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap}

/* Hero visual */
.hero-visual{display:flex;justify-content:center;align-items:center}
.hv-frame{position:relative;display:inline-block}
.hv-img {
  width: clamp(160px, 22vw, 260px);
  aspect-ratio: 3/4; object-fit: cover; object-position: top center;
  border-radius: var(--radius-lg);
  border: none;
  position: relative; z-index: 1;
  -webkit-mask-image: radial-gradient(ellipse 88% 92% at 50% 40%, black 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 88% 92% at 50% 40%, black 55%, transparent 100%);
}
.hv-ring {
  position: absolute; inset: -10px; border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid rgba(201,168,76,.18);
  animation: hring 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes hring{0%,100%{transform:scale(1);opacity:.5}50%{transform:scale(1.015);opacity:1}}
.hv-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 100px; padding: 9px 16px;
  font-size: .78rem; font-weight: 600; color: var(--white);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  animation: hbadge 3s ease-in-out infinite;
}
.hv-b1{top:24px;right:-30px;animation-delay:0s}
.hv-b2{bottom:40px;left:-30px;animation-delay:1.5s}
@keyframes hbadge{0%,100%{transform:translateY(0)}50%{transform:translateY(-6px)}}
.hv-badge svg{color:var(--accent)}

.hero-scroll {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--text3); font-size: .7rem;
  animation: hscroll 2s ease-in-out infinite;
}
.hs-line{display:block;width:1px;height:32px;background:linear-gradient(to bottom,var(--accent),transparent)}
@keyframes hscroll{0%,100%{opacity:.5;transform:translateX(-50%) translateY(0)}50%{opacity:1;transform:translateX(-50%) translateY(5px)}}

/* ══════════════════════════════════════════════════════
   ABOUT
══════════════════════════════════════════════════════ */
.about{background:var(--bg1)}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:start}
.about-p{color:var(--text2);margin-bottom:16px;font-size:.97rem;line-height:1.75}
.about-p strong{color:var(--white)}
.about-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:36px;padding-top:28px;border-top:1px solid var(--border)}
.astat{display:flex;flex-direction:column;gap:4px}
.astat-num{font-family:'Playfair Display',serif;font-size:1.6rem;font-weight:700;color:var(--accent)}
.astat-label{font-size:.75rem;color:var(--text3);letter-spacing:.04em;line-height:1.4}

.services-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.svc-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color var(--trans), transform var(--trans);
}
.svc-card:hover{border-color:rgba(201,168,76,.3);transform:translateY(-3px)}
.svc-wide{grid-column:span 2}
.svc-icon{margin-bottom:14px;color:var(--accent)}
.svc-card h4{font-size:.92rem;font-weight:600;color:var(--white);margin-bottom:6px}
.svc-card p{font-size:.82rem;color:var(--text3);line-height:1.5}

/* ══════════════════════════════════════════════════════
   WORKS
══════════════════════════════════════════════════════ */
.works{background:var(--bg)}
.works-header{margin-bottom:48px}

/* Filter */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.fb {
  font-size: .82rem; font-weight: 500;
  padding: 8px 18px; border-radius: 100px;
  border: 1px solid var(--border); color: var(--text2);
  transition: all var(--trans); cursor: pointer;
}
.fb:hover{border-color:rgba(201,168,76,.35);color:var(--white)}
.fb.active{background:var(--accent);color:#060609;border-color:var(--accent);font-weight:600}

/* Projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Project card */
.pcard {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer;
  transition: border-color var(--trans), transform .3s cubic-bezier(.22,1,.36,1), box-shadow .3s ease;
}
.pcard:hover{border-color:rgba(201,168,76,.3);transform:translateY(-6px);box-shadow:0 20px 60px rgba(0,0,0,.5)}
.pcard.hidden{display:none}
.pcard-link{display:block}

.pcard-img{position:relative;aspect-ratio:16/10;overflow:hidden}
.pcard-img img{width:100%;height:100%;object-fit:cover;transition:transform .5s ease}
.pcard:hover .pcard-img img{transform:scale(1.05)}

.pcard-overlay {
  position: absolute; inset: 0;
  background: rgba(6,6,9,.75);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--trans);
}
.pcard:hover .pcard-overlay{opacity:1}
.pcard-cta {
  display: flex; align-items: center; gap: 8px;
  font-size: .88rem; font-weight: 600; color: var(--white);
  border: 1px solid rgba(255,255,255,.3); padding: 10px 20px;
  border-radius: 100px; transition: all var(--trans);
}
.pcard:hover .pcard-cta{border-color:var(--accent);color:var(--accent)}

.pcard-info{padding:20px 22px 24px}
.pcard-cat{font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.pcard-title{font-size:1rem;font-weight:700;color:var(--white);margin:8px 0 8px;line-height:1.3}
.pcard-desc{font-size:.83rem;color:var(--text3);line-height:1.55}

/* Carousel inside pcard */
.pcarousel{position:relative;width:100%;height:100%;overflow:hidden}
.pcarousel-track{display:flex;height:100%;transition:transform .45s cubic-bezier(.4,0,.2,1)}
.pcarousel-track img{min-width:100%;height:100%;object-fit:cover;flex-shrink:0}
.pcarousel-dots{position:absolute;bottom:10px;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:2}
.cd{width:6px;height:6px;border-radius:50%;background:rgba(255,255,255,.4);transition:all var(--trans);cursor:pointer}
.cd.active{background:var(--accent);width:14px;border-radius:4px}

/* ══════════════════════════════════════════════════════
   RESUME
══════════════════════════════════════════════════════ */
.resume{background:var(--bg1)}
.resume-header{
  margin-bottom:60px;
  display:flex; align-items:center; justify-content:space-between;
  flex-wrap:wrap; gap:16px;
}
.resume-header-left { display:flex; flex-direction:column; gap:6px; }
.btn-resume-dl {
  display: inline-flex; align-items: center; gap: 8px;
  flex-shrink: 0;
  padding: 10px 22px;
  background: var(--accent); color: #000;
  border-radius: 100px;
  font-size: .85rem; font-weight: 600;
  text-decoration: none;
  transition: opacity .2s, transform .2s;
}
.btn-resume-dl:hover { opacity: .85; transform: translateY(-2px); }
.resume-cols{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.rcol-title {
  display: flex; align-items: center; gap: 10px;
  font-size:1rem; font-weight:600; color:var(--white);
  margin-bottom:28px; padding-bottom:14px;
  border-bottom:1px solid var(--border);
}
.rcol-title svg{color:var(--accent)}

/* Timeline */
.timeline{display:flex;flex-direction:column;gap:0}
.titem{display:flex;gap:16px;padding-bottom:28px;position:relative}
.titem:not(:last-child)::after{content:'';position:absolute;left:7px;top:16px;bottom:0;width:1px;background:var(--border)}
.tdot{width:15px;height:15px;border-radius:50%;background:var(--bg3);border:2px solid var(--border);flex-shrink:0;margin-top:3px;z-index:1}
.tdot.accent{background:var(--accent);border-color:var(--accent);box-shadow:0 0 0 4px rgba(201,168,76,.15)}
.tcontent h4{font-size:.92rem;font-weight:600;color:var(--white);margin-bottom:4px}
.tcontent p{font-size:.82rem;color:var(--text3);line-height:1.5}
.tmeta{display:flex;align-items:center;gap:8px;margin-bottom:6px;flex-wrap:wrap}
.tperiod{font-size:.75rem;color:var(--text2)}
.tbadge{font-size:.68rem;font-weight:600;letter-spacing:.06em;padding:2px 8px;background:var(--bg3);border:1px solid var(--border);border-radius:100px;color:var(--text3)}
.tbadge.current{background:rgba(201,168,76,.1);border-color:rgba(201,168,76,.3);color:var(--accent)}

/* Skills */
.skills-wrap{display:flex;flex-direction:column;gap:20px}
.skill-group{display:flex;flex-direction:column;gap:9px}
.sg-label{font-size:.72rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text3)}
.skill-tags{display:flex;flex-wrap:wrap;gap:7px}
.skill-tags span{font-size:.78rem;padding:5px 12px;border-radius:100px;background:var(--bg3);border:1px solid var(--border);color:var(--text2)}
.skill-tags.highlight span{background:rgba(201,168,76,.08);border-color:rgba(201,168,76,.25);color:var(--accent)}

/* ══════════════════════════════════════════════════════
   CONTACT
══════════════════════════════════════════════════════ */
.contact{background:var(--bg)}
.contact-inner{display:grid;grid-template-columns:1fr 1fr;gap:80px;align-items:center}
.contact-sub{font-size:.97rem;color:var(--text2);margin:20px 0 32px;line-height:1.7}
.contact-links{display:flex;flex-direction:column;gap:14px}
.clink {
  display: flex; align-items: center; gap: 12px;
  font-size: .9rem; color: var(--text2); padding: 16px 20px;
  border: 1px solid var(--border); border-radius: var(--radius);
  transition: all var(--trans);
}
.clink:hover{border-color:rgba(201,168,76,.35);color:var(--white);background:var(--bg2)}
.clink svg{color:var(--accent);flex-shrink:0}

/* Contact card */
.contact-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px 36px;
  text-align: center;
  box-shadow: 0 0 80px rgba(201,168,76,.05);
}
.cc-avatar{position:relative;display:inline-block;margin-bottom:16px}
.cc-avatar img{width:90px;height:90px;object-fit:cover;object-position:top;border-radius:50%;border:2px solid var(--border)}
.cc-dot{position:absolute;bottom:4px;right:4px;width:14px;height:14px;background:#4ade80;border-radius:50%;border:2px solid var(--bg2)}
.cc-name{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;color:var(--white);margin-bottom:4px}
.cc-role{font-size:.85rem;color:var(--text2);margin-bottom:12px}
.cc-location{display:inline-flex;align-items:center;gap:6px;font-size:.78rem;color:var(--text3);margin-bottom:28px}
.cc-location svg{color:var(--accent)}
.cc-btn{width:100%;justify-content:center}

/* ══════════════════════════════════════════════════════
   FOOTER
══════════════════════════════════════════════════════ */
.footer{background:var(--bg1);border-top:1px solid var(--border);padding:32px 0}
.footer-inner{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:16px}
.footer-logo{font-family:'Playfair Display',serif;font-size:1.2rem;font-weight:700;color:var(--white)}
.footer-logo span{color:var(--accent)}
.footer-copy{font-size:.78rem;color:var(--text3)}
.footer-social{display:flex;gap:12px}
.footer-social a{
  width:36px;height:36px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:8px;color:var(--text3);
  transition:all var(--trans);
}
.footer-social a:hover{border-color:rgba(201,168,76,.35);color:var(--accent)}

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,4,10,.88);
  backdrop-filter: blur(8px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.modal-backdrop.show{opacity:1;pointer-events:auto}

.modal {
  position: fixed; inset: 0; z-index: 1001;
  display: flex; align-items: stretch;
  opacity: 0; pointer-events: none;
  transform: translateY(40px) scale(.98);
  transition: opacity .38s ease, transform .45s cubic-bezier(.22,1,.36,1);
}
.modal.show{opacity:1;pointer-events:auto;transform:none}

.modal-inner {
  width: 100%; max-width: 100%;
  margin: 0;
  background: var(--bg2);
  border: none;
  border-radius: 0;
  display: flex; flex-direction: column;
  height: 100vh; overflow: hidden;
  box-shadow: none;
  position: relative;
}

/* Modal topbar */
.modal-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 40px; gap: 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(14,14,24,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  flex-shrink: 0;
  position: sticky; top: 0; z-index: 2;
}
.mbar-left{display:flex;flex-direction:column;gap:3px;min-width:0}
.mbar-cat{font-size:.7rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--accent)}
.mbar-title{font-family:'Playfair Display',serif;font-size:1.15rem;font-weight:700;color:var(--white);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mbar-right{display:flex;align-items:center;gap:10px;flex-shrink:0}
.mbar-tag{font-size:.7rem;padding:4px 10px;border:1px solid var(--border);border-radius:100px;color:var(--text3)}
.modal-close {
  width:38px;height:38px;display:flex;align-items:center;justify-content:center;
  border:1px solid var(--border);border-radius:8px;color:var(--text2);
  transition:all var(--trans);flex-shrink:0;
}
.modal-close:hover{border-color:rgba(201,168,76,.4);color:var(--white);background:rgba(201,168,76,.08)}

/* Modal body — scrollable, centered max-width content */
.modal-body{overflow-y:auto;overflow-x:hidden;flex:1;padding:0}
.modal-body::-webkit-scrollbar{width:5px}
.modal-body::-webkit-scrollbar-track{background:transparent}
.modal-body::-webkit-scrollbar-thumb{background:var(--border);border-radius:3px}

/* Inner content max-width container */
.modal-body > * { max-width: 960px; margin-left: auto; margin-right: auto; width: 100%; }
.ms-hero { max-width: 100% !important; }
.ms-conclusion { max-width: 100% !important; }

/* ── Zoomable images ── */
.zoomable {
  cursor: zoom-in;
  transition: opacity .2s ease;
}
.zoomable:hover { opacity: .88; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.95);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .3s ease;
}
.lightbox.lb-show { opacity: 1; pointer-events: auto; }

.lb-img-wrap {
  position: relative;
  width: 80vw; max-width: 860px;
  height: 70vh; max-height: 640px;
  display: flex; align-items: center; justify-content: center;
}
.lb-img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 4px;
  transform-origin: center center;
  user-select: none;
  -webkit-user-drag: none;
  touch-action: none;
}

.lb-close {
  position: fixed; top: 20px; right: 24px;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; color: var(--white);
  cursor: pointer; z-index: 2;
  transition: background var(--trans), transform .15s ease;
}
.lb-close:hover { background: rgba(255,255,255,.16); transform: scale(1.08); }

.lb-caption {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  font-size: .8rem; color: rgba(255,255,255,.5);
  background: rgba(0,0,0,.5); padding: 6px 16px;
  border-radius: 100px; white-space: nowrap;
  max-width: 90vw; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}

.lb-prev, .lb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  border-radius: 10px; color: var(--white); cursor: pointer; z-index: 2;
  transition: background var(--trans), opacity var(--trans);
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }
.lb-prev:hover,.lb-next:hover { background: rgba(255,255,255,.18); }
.lb-prev.lb-hidden,.lb-next.lb-hidden { opacity: 0; pointer-events: none; }

/* Zoom hint — shown briefly on open */
.lb-hint {
  position: fixed; top: 20px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: rgba(255,255,255,.45);
  background: rgba(0,0,0,.45); padding: 5px 14px;
  border-radius: 100px; pointer-events: none; white-space: nowrap;
  opacity: 0; transition: opacity .4s ease;
}
.lightbox.lb-show .lb-hint { opacity: 1; }
.lightbox.lb-hint-hide .lb-hint { opacity: 0; }

/* Modal sections */
.ms-hero{padding:0 0 0}
.ms-hero img{width:100%;height:420px;object-fit:cover;object-position:center}
.ms-hero.ms-hero-mosaic img{width:100%}
.ms-meta-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:0;border-bottom:1px solid var(--border)}
.ms-meta{padding:16px 20px;border-right:1px solid var(--border)}
.ms-meta:last-child{border-right:none}
.ms-meta span{display:block;font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--text3);margin-bottom:5px}
.ms-meta strong{font-size:.85rem;font-weight:600;color:var(--white)}

/* ── Hero overlay meta pills ── */
.ms-hero-overlay{position:relative;overflow:hidden}
.ms-hero-overlay img{display:block}
.ms-hero-overlay::after{
  content:'';
  position:absolute;inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,.18) 55%, transparent 100%);
  pointer-events:none;
}
.ms-hero-meta{
  position:absolute;bottom:20px;right:20px;
  display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;
  z-index:2;
}
@keyframes pillUp{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:translateY(0)}
}
.ms-hero-pill{
  display:flex;flex-direction:column;gap:2px;
  background:rgba(10,10,18,.82);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  border:1px solid rgba(201,168,76,.35);
  border-radius:10px;
  padding:10px 16px;
  min-width:120px;
  opacity:0;
  transform:translateY(22px);
  transition:none;
}
.modal.show .ms-hero-pill{
  animation:pillUp .5s cubic-bezier(.22,.68,0,1.2) both;
  animation-delay:calc(var(--i) * 90ms + 120ms);
}
.ms-hero-pill span{
  font-size:.6rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(201,168,76,.85);line-height:1;
}
.ms-hero-pill strong{
  font-size:.82rem;font-weight:600;color:#fff;line-height:1.3;
}
@media(max-width:600px){
  .ms-hero-pill{min-width:calc(50% - 5px);flex:1 1 calc(50% - 5px)}
}

/* ── ERP Login hero 3-screen strip ── */
.erp-hero-strip{
  position:relative;
  display:flex;
  gap:0;
  background:var(--bg1);
  overflow:hidden;
  height:420px;
  align-items:stretch;
}
.erp-hero-strip .erp-strip-img{
  flex:1 1 0;
  position:relative;
  overflow:hidden;
  border-right:1px solid var(--border);
  display:flex;
  flex-direction:column;
}
.erp-hero-strip .erp-strip-img:last-of-type{border-right:none}
.erp-hero-strip .erp-strip-img img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:top;
  flex:1;
}
.erp-strip-label{
  flex-shrink:0;
  display:block;
  text-align:center;
  font-size:.62rem;font-weight:700;letter-spacing:.1em;text-transform:uppercase;
  color:var(--text3);
  background:var(--bg2);
  border-top:1px solid var(--border);
  padding:7px 8px;
}
.erp-hero-strip .ms-hero-meta{
  position:absolute;bottom:38px;right:20px;
}
@media(max-width:640px){
  .erp-hero-strip{flex-direction:column;height:auto}
  .erp-hero-strip .erp-strip-img{border-right:none;border-bottom:1px solid var(--border);height:300px}
  .erp-hero-strip .erp-strip-img:last-of-type{border-bottom:none}
  .erp-hero-strip .ms-hero-meta{display:none}
}

.ms-section{padding:36px 48px 0}
.ms-section:last-child{padding-bottom:36px}
.ms-label{font-size:.68rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);margin-bottom:10px}
.ms-section h3,.ms-highlights h3,.ms-split-text h3,.ms-conclusion h3{font-family:'Playfair Display',serif;font-size:1.3rem;font-weight:700;color:var(--white);margin-bottom:14px;line-height:1.3}
.ms-section h3 em,.ms-section em{font-style:italic;color:var(--accent)}
.ms-section p,.ms-split-text p,.ms-conclusion p{font-size:.9rem;color:var(--text2);line-height:1.7;margin-bottom:12px}
.ms-full-img{width:100%;border-radius:var(--radius);margin-top:18px}
.ms-caption{font-size:.75rem;color:var(--text3);text-align:center;margin-top:8px}
.ms-list{display:flex;flex-direction:column;gap:7px;margin-top:14px}
.ms-list li{font-size:.85rem;color:var(--text2);padding-left:18px;position:relative}
.ms-list li::before{content:'→';position:absolute;left:0;color:var(--accent);font-size:.75rem}

/* ── Research Section ── */
.ms-research{padding:36px 48px 0}
.ms-research-intro{font-size:.9rem;color:var(--text2);line-height:1.7;margin-bottom:28px}

.ms-problem-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:28px}

.ms-problem-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius-lg);overflow:hidden;transition:border-color var(--trans),transform var(--trans)}
.ms-problem-card:hover{border-color:rgba(201,168,76,.3);transform:translateY(-3px)}

.ms-problem-img-wrap{position:relative;height:120px;overflow:hidden}
.ms-problem-img-wrap img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.ms-problem-card:hover .ms-problem-img-wrap img{transform:scale(1.04)}

.ms-problem-badge{
  position:absolute;top:12px;left:12px;
  width:32px;height:32px;border-radius:50%;
  background:rgba(201,168,76,.92);
  display:flex;align-items:center;justify-content:center;
}
.ms-problem-num{font-size:.72rem;font-weight:700;color:#060609;line-height:1}

.ms-problem-body{display:flex;align-items:stretch}
.ms-problem-arrow{
  width:3px;flex-shrink:0;
  background:linear-gradient(to bottom,var(--accent),rgba(201,168,76,.15));
  margin:0;
}
.ms-problem-content{padding:16px 18px;flex:1}
.ms-problem-content h5{font-size:.9rem;font-weight:700;color:var(--white);margin-bottom:7px}
.ms-problem-content p{font-size:.8rem;color:var(--text3);line-height:1.55;margin-bottom:12px}

.ms-problem-fix{
  display:flex;align-items:flex-start;gap:7px;
  background:rgba(74,222,128,.06);border:1px solid rgba(74,222,128,.18);
  border-radius:8px;padding:9px 12px;
  font-size:.78rem;color:#4ade80;line-height:1.45;
}
.ms-problem-fix svg{flex-shrink:0;margin-top:2px;color:#4ade80}

.ms-research-context{
  display:grid;grid-template-columns:repeat(6,1fr);gap:10px;
  padding-top:20px;border-top:1px solid var(--border);
}
.ms-rc-item{display:flex;flex-direction:column;gap:6px}
.ms-rc-item img{width:100%;height:90px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--border);cursor:zoom-in;transition:transform .3s ease,border-color .3s ease}
.ms-rc-item img:hover{transform:scale(1.03);border-color:rgba(201,168,76,.4)}
.ms-rc-video{width:100%;height:90px;object-fit:cover;border-radius:var(--radius);border:1px solid var(--border);display:block;background:#000}
.ms-rc-item span{font-size:.62rem;color:var(--text3);text-align:center;line-height:1.3}

.ms-highlights{padding:36px 48px 0}
.msh-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:20px}
.msh-card{background:var(--bg3);border:1px solid var(--border);border-radius:var(--radius);padding:20px}
.msh-card h5{font-size:.88rem;font-weight:700;color:var(--white);margin-bottom:7px}
.msh-card p{font-size:.8rem;color:var(--text3);line-height:1.55}

.ms-split{display:grid;grid-template-columns:1fr 1fr;gap:40px;padding:36px 48px 0;align-items:start}
.ms-split-rev{direction:rtl}
.ms-split-rev>*{direction:ltr}
.ms-split-img img{width:100%;border-radius:var(--radius);object-fit:cover}
.ms-split-img p{font-size:.73rem;color:var(--text3);text-align:center;margin-top:6px}
.ms-split-text ul{margin-top:14px;display:flex;flex-direction:column;gap:7px}
.ms-split-text ul li{font-size:.84rem;color:var(--text2);padding-left:18px;position:relative}
.ms-split-text ul li::before{content:'→';position:absolute;left:0;color:var(--accent);font-size:.73rem}

/* Video in modal */
.ms-video-wrap{position:relative;border-radius:var(--radius);overflow:hidden;margin-top:18px;background:#000}
.ms-video-wrap video{width:100%;display:block}
.ms-video-overlay{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;background:rgba(0,0,0,.5);cursor:pointer;transition:opacity var(--trans)}
.ms-video-overlay.hidden{opacity:0;pointer-events:none}
.ms-play-btn{width:60px;height:60px;border-radius:50%;background:var(--accent);display:flex;align-items:center;justify-content:center;color:#060609;transition:transform .2s ease}
.ms-play-btn:hover{transform:scale(1.1)}
.ms-video-overlay span{font-size:.82rem;color:var(--white);font-weight:500}

/* GIF */
.ms-gif-wrap{margin-top:18px;border-radius:var(--radius);overflow:hidden}
.ms-gif-wrap img{width:100%;display:block}

/* PDF */
.ms-pdf-wrap{margin-top:18px;border-radius:var(--radius);overflow:hidden;border:1px solid var(--border);background:#000}
.ms-pdf{width:100%;height:460px;display:block;border:none}
.ms-dl-btn{display:inline-flex;align-items:center;gap:8px;margin-top:14px;margin-left:36px;font-size:.85rem;font-weight:600;color:var(--accent);border:1px solid rgba(201,168,76,.3);padding:10px 20px;border-radius:100px;transition:all var(--trans)}
.ms-dl-btn:hover{background:rgba(201,168,76,.08)}

/* Game info 3-card grid */
.ms-info-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}
.ms-info-card{display:flex;flex-direction:column;gap:8px;cursor:pointer}
.ms-info-card-img{overflow:hidden;border-radius:var(--radius);border:1px solid var(--border);aspect-ratio:3/4}
.ms-info-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .4s cubic-bezier(.22,.68,0,1.2)}
.ms-info-card:hover .ms-info-card-img img{transform:scale(1.08)}
.ms-info-card span{font-size:.72rem;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--text3);text-align:center}
@media(max-width:600px){.ms-info-cards{grid-template-columns:1fr;gap:12px}.ms-info-card-img{aspect-ratio:4/3}}

/* Card gallery in modal */
.ms-card-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(100px,1fr));gap:10px;margin-top:20px}
.ms-gallery-item{display:flex;flex-direction:column;align-items:center;gap:6px}
.ms-gallery-item img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:8px;border:1px solid var(--border)}
.ms-gallery-item span{font-size:.65rem;color:var(--text3);text-align:center}

/* SDG grid */
.ms-sdg-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}
.ms-sdg{border-radius:var(--radius);padding:20px;border:1px solid var(--border)}
.ms-sdg.blue{background:rgba(59,130,246,.07);border-color:rgba(59,130,246,.2)}
.ms-sdg.green{background:rgba(34,197,94,.07);border-color:rgba(34,197,94,.2)}
.ms-sdg.red{background:rgba(239,68,68,.07);border-color:rgba(239,68,68,.2)}
.ms-sdg span{font-size:.7rem;font-weight:700;letter-spacing:.08em;display:block;margin-bottom:6px}
.ms-sdg.blue span{color:#60a5fa}
.ms-sdg.green span{color:#4ade80}
.ms-sdg.red span{color:#f87171}
.ms-sdg h5{font-size:.88rem;font-weight:700;color:var(--white);margin-bottom:6px}
.ms-sdg p{font-size:.78rem;color:var(--text3);line-height:1.5}

/* Mosaic layout */
.mosaic{display:grid;grid-template-columns:2fr 1fr;gap:4px}
.mosaic-main img{width:100%;height:280px;object-fit:cover}
.mosaic-side{display:flex;flex-direction:column;gap:4px}
.mosaic-side img{width:100%;height:138px;object-fit:cover}

/* Conclusion */
.ms-conclusion{padding:48px;background:var(--bg3);border-top:1px solid var(--border);margin-top:36px}
.ms-tags{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.ms-tags span{font-size:.75rem;padding:5px 13px;border:1px solid var(--border);border-radius:100px;color:var(--text3)}

/* ── Design Process Timeline (shared across all product modals) ── */
.ms-timeline {
  position: relative;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 48px 8px 48px;
}

/* Vertical spine — starts at first dot, ends at last dot */
.ms-timeline::before {
  content: '';
  position: absolute;
  left: 48px;
  top: 47px;
  bottom: 24px;
  width: 2px;
  background: linear-gradient(
    to bottom,
    var(--accent) 0%,
    rgba(201,168,76,0.3) 50%,
    var(--accent) 96%,
    transparent 100%
  );
}

/* Each timeline entry */
.ms-tl-item {
  position: relative;
  margin-bottom: 40px;
}
.ms-tl-item:last-child { margin-bottom: 8px; }

/* Header row: dot + title inline */
.ms-tl-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

/* Dot — margin-left: -7px pulls it left of content edge so its centre = spine */
.ms-tl-dot {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg1);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(201,168,76,0.12);
  position: relative;
  z-index: 1;
  margin-left: -7px;
  transition: background var(--trans), box-shadow var(--trans);
}

.ms-tl-item:hover .ms-tl-dot {
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(201,168,76,0.2);
}

.ms-tl-dot-end {
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(201,168,76,0.2), 0 0 12px rgba(201,168,76,0.3);
}

/* Section title beside the dot */
.ms-tl-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.2;
  letter-spacing: 0.01em;
  margin: 0;
}

/* Body content — indented to align under the title (past the dot) */
.ms-tl-body {
  padding-left: 42px;
}

/* Shared text styles inside body */
.ms-tl-body > p {
  font-size: .9rem;
  color: var(--text2);
  line-height: 1.7;
  margin-bottom: 12px;
}

/* Strip inherited section padding — spine + body-indent handles spacing */
.ms-tl-body .ms-split,
.ms-tl-body .ms-section,
.ms-tl-body .ms-highlights,
.ms-tl-body .ms-research {
  padding: 0;
}
.ms-tl-body .ms-split-rev { direction: rtl; }
.ms-tl-body .ms-split-rev > * { direction: ltr; }

/* Full-width images inside body */
.ms-tl-body .ms-full-img {
  width: 100%;
  border-radius: var(--radius);
  margin-top: 0;
}

/* msh-grid and sdg-grid inside body */
.ms-tl-body .msh-grid { margin-top: 0; }
.ms-tl-body .ms-sdg-grid { margin-top: 0; }
.ms-tl-body .ms-list { margin-top: 8px; }

/* ══════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════ */

/* ── Tablet ── */
@media(max-width:1024px){
  .hero-inner{grid-template-columns:1fr;gap:40px;text-align:center}
  .hero-visual{order:-1}
  .hero-p{margin:0 auto 36px;max-width:100%}
  .hero-actions{justify-content:center}
  .hv-b1,.hv-b2{display:none}
  .about-grid{grid-template-columns:1fr;gap:48px}
  .about-stats{grid-template-columns:repeat(3,1fr)}
  .contact-inner{grid-template-columns:1fr;gap:48px}
  .projects-grid{grid-template-columns:repeat(2,1fr)}
  .resume-cols{grid-template-columns:1fr;gap:48px}
}

/* ── Mobile ── */
@media(max-width:768px){
  :root{--nav-h:60px}
  .section{padding:72px 0}
  .container{padding:0 18px}

  /* Nav */
  .nav-links{display:none}
  .nav-burger{display:flex}
  .nav-logo{font-size:1.15rem}

  /* Hero */
  .hero-inner{padding-top:32px;padding-bottom:56px;gap:32px}
  .hero-h1{font-size:clamp(1.9rem,7vw,2.6rem)}
  .hv-img{width:min(150px,45vw)}
  .hero-pill{font-size:.7rem}
  .hero-actions{flex-direction:column;align-items:center;gap:12px;width:100%}
  .btn-primary,.btn-ghost{width:100%;max-width:320px;justify-content:center}

  /* About */
  .about-stats{grid-template-columns:1fr 1fr;gap:16px}
  .services-grid{grid-template-columns:1fr 1fr}
  .svc-wide{grid-column:span 2}

  /* Filter bar — horizontal scroll */
  .filter-bar{flex-wrap:nowrap;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .filter-bar::-webkit-scrollbar{display:none}
  .fb{white-space:nowrap;font-size:.78rem;padding:7px 16px;flex-shrink:0}

  /* Works grid */
  .projects-grid{grid-template-columns:1fr;gap:18px}

  /* Resume */
  .rcol-title{font-size:.92rem}

  /* Contact */
  .contact-sub{font-size:.9rem}
  .clink{padding:13px 16px;font-size:.85rem}
  .contact-card{padding:32px 24px}

  /* Footer */
  .footer-inner{flex-direction:column;align-items:flex-start;gap:12px}

  /* Modal — full screen on mobile */
  .modal{align-items:stretch;padding:0}
  .modal-inner{height:100vh;border-radius:0;width:100%;margin:0}
  .modal-bar{padding:14px 18px;gap:8px}
  .mbar-title{font-size:.95rem}
  .mbar-tag{display:none}
  .ms-section,.ms-highlights,.ms-split,.ms-research{padding:22px 18px 0}
  .ms-problem-grid{grid-template-columns:repeat(2,1fr)}
  .ms-research-context{grid-template-columns:repeat(3,1fr);gap:8px}
  .ms-conclusion{padding:22px 18px}
  .ms-dl-btn{margin-left:18px}
  .lb-prev{left:8px}.lb-next{right:8px}

  /* Modal internals */
  .ms-split{grid-template-columns:1fr}
  .ms-split-rev{direction:ltr}

  /* Timeline — mobile */
  .ms-timeline{padding:8px 16px 8px 16px}
  .ms-timeline::before{left:16px;top:14px;bottom:16px}
  .ms-tl-item{margin-bottom:32px}
  .ms-tl-head{gap:10px;margin-bottom:12px}
  .ms-tl-dot{width:12px;height:12px;margin-left:-6px}
  .ms-tl-title{font-size:.9rem}
  .ms-tl-body{padding-left:28px}
  /* cancel the global mobile padding that fires on ms-split inside body */
  .ms-tl-body .ms-split,
  .ms-tl-body .ms-highlights,
  .ms-tl-body .ms-section,
  .ms-tl-body .ms-research{padding:0}
  /* single-col splits on mobile */
  .ms-tl-body .ms-split{grid-template-columns:1fr;gap:20px}
  .ms-tl-body .ms-split-rev{direction:ltr}
  .ms-tl-body .ms-split-rev>*{direction:ltr}
  /* research context 2-col on mobile */
  .ms-tl-body .ms-research-context{grid-template-columns:repeat(3,1fr);gap:8px}
  /* problem grid 2-col on mobile */
  .ms-tl-body .ms-problem-grid{grid-template-columns:repeat(2,1fr)}
  /* highlight cards single col */
  .ms-tl-body .msh-grid{grid-template-columns:1fr}
  /* SDG grid single col */
  .ms-tl-body .ms-sdg-grid{grid-template-columns:1fr}
  .ms-meta-grid{grid-template-columns:repeat(2,1fr)}
  .msh-grid{grid-template-columns:1fr}
  .ms-sdg-grid{grid-template-columns:1fr}
  .mosaic{grid-template-columns:1fr}
  .mosaic-side{flex-direction:row}
  .mosaic-side img{height:100px;flex:1}
  .ms-hero img{height:300px}
  .ms-pdf{height:320px}
}

/* ── Small mobile ── */
@media(max-width:480px){
  .landing-name{font-size:clamp(2.5rem,13vw,3.6rem)}
  .landing-pill{font-size:.68rem;padding:6px 14px}
  .landing-btn{padding:13px 28px;font-size:.86rem}
  .landing-sub{font-size:.88rem}
  .landing-foot{gap:8px;font-size:.65rem}

  .section-h2{font-size:clamp(1.6rem,6vw,2rem)}
  .hero-h1{font-size:clamp(1.7rem,6.5vw,2.2rem)}

  .about-stats{grid-template-columns:1fr 1fr}
  .astat-num{font-size:1.3rem}

  .services-grid{grid-template-columns:1fr}
  .svc-wide{grid-column:span 1}

  .projects-grid{grid-template-columns:1fr}

  /* Overlay always visible on touch — dimmed image + highlighted CTA */
  .pcard-overlay{opacity:1;background:rgba(6,6,9,.65)}
  .pcard-cta{border-color:var(--accent);color:var(--accent)}

  .ms-card-gallery{grid-template-columns:repeat(auto-fill,minmax(80px,1fr))}
  .ms-meta-grid{grid-template-columns:repeat(2,1fr)}
  .modal-bar{padding:14px 16px}
  .mbar-title{font-size:.88rem}

  /* Timeline — small mobile */
  .ms-timeline{padding:8px 12px 8px 12px}
  .ms-timeline::before{left:12px;top:13px}
  .ms-tl-dot{width:10px;height:10px;margin-left:-5px}
  .ms-tl-title{font-size:.82rem}
  .ms-tl-body{padding-left:22px}
  .ms-tl-body .ms-research-context{grid-template-columns:repeat(2,1fr)}
}

/* Touch devices — always show card overlay (no hover) */
@media(hover:none){
  .pcard-overlay{opacity:1;background:rgba(6,6,9,.65)}
  .pcard-cta{border-color:var(--accent);color:var(--accent)}
  .pcard:hover{transform:none;box-shadow:none}
  .pcard:active{transform:scale(.98)}
}

/* ── Social Civic — Quote cards ── */
.ms-quote-card{position:relative;padding-top:36px}
.ms-quote-mark{
  position:absolute;top:12px;left:16px;
  font-size:2.8rem;line-height:1;
  color:var(--accent);opacity:.6;
  font-family:'Playfair Display',serif;
}
.ms-meta-row{margin-top:16px}
.ms-meta-chip{
  display:inline-flex;align-items:center;
  padding:6px 14px;
  border:1px solid var(--border);
  border-radius:100px;
  font-size:.75rem;font-weight:500;letter-spacing:.04em;
  color:var(--text2);background:var(--bg2);
}

/* ── Lazy-load modal loading state ── */
.modal-loading{
  display:flex;align-items:center;justify-content:center;
  min-height:200px;color:var(--muted,#888);font-size:.9rem;letter-spacing:.05em;
}
