/* =================================================================
   Mo Shaikh — "Evergreen" direction
   Deep emerald + cream + antique gold. Heritage / quiet luxury.
   Cormorant Garamond display + Manrope body. Gold hairline rules,
   roman-numeral structure, monogram/crest motif.
   ================================================================= */

:root {
  --emerald:      #0E3B2E;
  --emerald-deep: #082A20;
  --cream:        #F0EAD9;
  --cream-soft:   #E8E0CD;
  --gold:         #C29B45;
  --gold-bright:  #D4AE5A;
  --gold-deep:    #8A6E26;
  --ink:          #20231E;
  --stone:        #6E6A5C;
  --stone-lo:     #9A9483;
  --cream-mute:   #C9C4B0;

  --line-cream: rgba(14,59,46,.14);
  --line-gold:  rgba(194,155,69,.40);
  --line-onemerald: rgba(240,234,217,.14);

  --display: "Cormorant Garamond", Georgia, serif;
  --body:    "Manrope", system-ui, -apple-system, sans-serif;

  --step--1: clamp(.74rem, .72rem + .1vw, .8rem);
  --step-0:  clamp(1rem, .97rem + .15vw, 1.1rem);
  --step-1:  clamp(1.2rem, 1.1rem + .5vw, 1.5rem);
  --step-2:  clamp(1.6rem, 1.3rem + 1.3vw, 2.4rem);
  --step-3:  clamp(2.3rem, 1.7rem + 2.6vw, 3.8rem);
  --step-4:  clamp(3.2rem, 2rem + 5.6vw, 6.6rem);

  --maxw: 1180px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.eyebrow {
  font-family: var(--body);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 1.2rem;
  display: flex;
  align-items: center;
  gap: .7rem;
}
.eyebrow::before { content: ""; width: 1.6rem; height: 1px; background: var(--gold); display: inline-block; }
.eyebrow.center { justify-content: center; }
.eyebrow.center::after { content: ""; width: 1.6rem; height: 1px; background: var(--gold); display: inline-block; }
.hero .eyebrow, .section-emerald .eyebrow { color: var(--gold); }

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.03; letter-spacing: 0; }
.serif { font-family: var(--display); }

.rule { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: clamp(2rem,5vw,3rem) var(--gutter); }
.rule-line { height: 1px; width: min(180px, 28vw); background: linear-gradient(to right, transparent, var(--gold)); }
.rule-line.r { background: linear-gradient(to left, transparent, var(--gold)); }
.rule-mark { width: 9px; height: 9px; background: var(--gold); transform: rotate(45deg); flex: none; }
.rule.on-emerald { background: var(--emerald); }

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(1.05) blur(10px);
  border-bottom: 1px solid var(--line-gold);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--emerald); }
.brand .dot { width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); flex: none; }
.brand .word { font-family: var(--display); font-size: 1.4rem; font-weight: 600; letter-spacing: .01em; }
.nav { display: flex; gap: clamp(1.1rem, 3vw, 2.4rem); align-items: center; }
.nav a {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--stone); padding: .4rem 0; position: relative;
  transition: color .2s ease;
}
.nav a:hover { color: var(--emerald); }
.nav a[aria-current="page"] { color: var(--emerald); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold); }

.hero { background: var(--emerald); color: var(--cream); }
.hero .wrap { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.hero-frame {
  border: 1px solid var(--line-gold);
  padding: clamp(2rem, 5vw, 4rem);
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 1.9rem + 3vw, 4.5rem); margin: 0 0 1.4rem; color: var(--cream); }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero .lede { font-size: var(--step-1); line-height: 1.45; color: var(--cream-mute); max-width: 42ch; margin: 0 0 2rem; font-weight: 400; }
.hero-portrait { position: relative; width: 100%; max-width: 360px; justify-self: end; }
.hero-portrait .frame { padding: 10px; border: 1px solid var(--line-gold); }
.hero-portrait img { width: 100%; aspect-ratio: 4 / 5; max-height: 440px; object-fit: cover; object-position: 50% 22%; display: block; filter: grayscale(.25) sepia(.08) contrast(1.02); }
.hero-portrait .tag {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--emerald-deep); font-size: var(--step--1);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; padding: .4rem .9rem; white-space: nowrap;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.btn {
  font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; padding: .9rem 1.5rem; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  display: inline-block;
}
.btn-primary { background: var(--gold); color: var(--emerald-deep); }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); }
.btn-ghost { color: var(--cream); border: 1px solid var(--line-gold); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-soft { background: var(--cream-soft); }
.section-emerald { background: var(--emerald); color: var(--cream); border-block: 1px solid var(--line-gold); }
.section-head { max-width: 56ch; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.section-head h2 { font-size: var(--step-3); margin: 0; color: var(--emerald); }
.section-emerald .section-head h2 { color: var(--cream); }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { padding: clamp(1.4rem, 3vw, 2.4rem) clamp(1.2rem, 2.5vw, 2rem); border-left: 1px solid var(--line-gold); }
.pillar:first-child { border-left: 0; padding-left: 0; }
.pillar .num { font-family: var(--display); font-size: 2rem; color: var(--gold); line-height: 1; font-weight: 600; }
.pillar h3 { font-size: var(--step-1); margin: .7rem 0 .6rem; color: var(--emerald); }
.pillar p { margin: 0; color: var(--stone); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.stat { text-align: left; }
.stat .figure { font-family: var(--display); font-size: var(--step-3); line-height: 1; color: var(--cream); font-weight: 600; }
.stat .figure .unit { color: var(--gold); }
.stat .label { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--cream-mute); margin-top: .8rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card { background: var(--cream); border: 1px solid var(--line-gold); padding: clamp(1.5rem, 3vw, 2.2rem); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(14,59,46,.10); }
.card .kicker { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.card h3 { font-size: var(--step-1); margin: .7rem 0 .6rem; color: var(--emerald); }
.card p { margin: 0; color: var(--stone); font-size: calc(var(--step-0) * .96); }

.bio-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.bio-short { position: sticky; top: 100px; }
.bio-short p { font-family: var(--display); font-size: var(--step-2); line-height: 1.3; color: var(--emerald); font-weight: 500; font-style: italic; }
.intro { max-width: 60ch; margin: 0 0 clamp(2.5rem, 6vw, 4rem); }
.intro p { font-family: var(--display); font-size: var(--step-1); line-height: 1.4; color: var(--emerald); font-weight: 500; font-style: normal; margin: 0 0 1rem; }
.intro p:last-child { margin-bottom: 0; }
.prose p { max-width: 64ch; margin: 0 0 1.3rem; }
.prose p:first-child { margin-top: 0; }

.timeline { border-left: 1px solid var(--line-gold); margin-left: .5rem; }
.tl-item { position: relative; padding: 0 0 2.4rem 2.2rem; }
.tl-item::before { content: ""; position: absolute; left: -5px; top: .5rem; width: 9px; height: 9px; background: var(--cream-soft); border: 2px solid var(--gold); transform: rotate(45deg); }
.tl-item:last-child { padding-bottom: 0; }
.tl-era { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.tl-item h3 { font-size: var(--step-1); margin: .35rem 0 .45rem; color: var(--emerald); }
.tl-item p { margin: 0; color: var(--stone); max-width: 60ch; }

.media-nav { display: flex; gap: 1.8rem; flex-wrap: wrap; border-bottom: 1px solid var(--line-gold); margin-bottom: 2.5rem; }
.media-nav a { font-size: var(--step--1); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; color: var(--stone); padding: 0 0 1rem; position: relative; }
.media-nav a:hover { color: var(--emerald); }
.media-nav a::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--gold); transition: width .25s ease; }
.media-nav a:hover::after { width: 100%; }

.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.video { text-decoration: none; color: inherit; display: block; border: 1px solid var(--line-gold); overflow: hidden; background: var(--cream); transition: transform .2s ease, border-color .2s ease; }
.video:hover { transform: translateY(-4px); border-color: var(--gold); }
.video .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--emerald); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.video:hover .thumb img { transform: scale(1.04); }
.video .play { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(8,42,32,.30); opacity: 0; transition: opacity .25s ease; }
.video:hover .play { opacity: 1; }
.video .play span { width: 54px; height: 54px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; box-shadow: 0 6px 20px rgba(8,42,32,.45); }
.video .play svg { width: 18px; height: 18px; fill: var(--emerald-deep); margin-left: 2px; }
.video .vtitle { padding: 1rem 1.1rem 1.2rem; font-size: calc(var(--step-0) * .96); line-height: 1.35; font-weight: 500; color: var(--emerald); }

.article-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.article { display: grid; grid-template-columns: 92px 1fr; gap: 1.2rem; align-items: center; text-decoration: none; color: inherit; padding: 1.1rem; border: 1px solid var(--line-gold); background: var(--cream); transition: transform .2s ease, border-color .2s ease; }
.article:hover { transform: translateY(-2px); border-color: var(--gold); }
.article img { width: 92px; height: 92px; object-fit: cover; }
.article .meta { font-size: var(--step--1); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-deep); }
.article h3 { font-family: var(--display); font-weight: 600; font-size: calc(var(--step-0) * 1.18); line-height: 1.2; margin: .35rem 0 .35rem; color: var(--emerald); }
.article .src { font-size: var(--step--1); color: var(--stone); font-weight: 500; }

.site-foot { background: var(--emerald-deep); color: var(--cream); padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line-gold); }
.foot-sign { text-align: center; margin-bottom: 2.4rem; font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.7rem); color: var(--gold); line-height: 1; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.foot-grid h2 { font-family: var(--display); font-size: var(--step-2); margin: 0 0 1rem; max-width: 20ch; color: var(--cream); font-weight: 500; }
.foot-cta a { color: var(--gold); text-decoration: none; font-weight: 600; letter-spacing: .04em; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.socials { display: flex; gap: .7rem; }
.socials a { width: 44px; height: 44px; border: 1px solid var(--line-gold); display: grid; place-items: center; color: var(--cream-mute); transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.socials a:hover { color: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.socials a.mf { width: auto; padding: 0 .9rem; }
.socials a.mf img { width: auto; height: 19px; filter: brightness(0) invert(1); opacity: .85; transition: opacity .2s ease; }
.socials a.mf:hover img { opacity: 1; }
.foot-base { margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--line-onemerald); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: var(--step--1); letter-spacing: .08em; color: var(--stone-lo); text-transform: uppercase; font-weight: 600; }
.foot-base a { color: var(--stone-lo); text-decoration: none; }
.foot-base a:hover { color: var(--gold); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-frame { grid-template-columns: 1fr; }
  .hero-portrait { order: -1; max-width: 300px; margin-inline: auto; justify-self: center; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-left: 0; border-top: 1px solid var(--line-gold); padding-left: 0; padding-top: 1.6rem; }
  .pillar:first-child { border-top: 0; padding-top: 0; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .bio-grid { grid-template-columns: 1fr; }
  .bio-short { position: static; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .article-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav { gap: 1rem; }
  .nav a { font-size: .66rem; letter-spacing: .1em; }
  .stats { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .article { grid-template-columns: 72px 1fr; }
  .article img { width: 72px; height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .001ms !important; }
}

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
