/* maryamimran.bd: white, quiet, elegant */
:root {
  --ink: #1c2a44;
  --text: #2c3039;
  --muted: #6c717c;
  --line: #e8e3d9;
  --gold: #a9834b;
  --gold-soft: #f4ede1;
  --soft: #faf8f4;
  --bg: #fff;
  --head: "Cormorant Garamond", Georgia, serif;
  --body: "Inter", system-ui, sans-serif;
  --r: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--body); color: var(--text); background: var(--bg); line-height: 1.7; font-size: 16.5px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; margin-right: auto; }
.nav { display: flex; gap: 26px; }
.nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .15s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.menu { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 0 9px; }
.menu span { height: 1.5px; background: var(--ink); display: block; }

/* hero */
.hero { padding: 72px 0 84px; background: linear-gradient(180deg, var(--soft), #fff 85%); }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.kicker { margin: 0 0 14px; color: var(--gold); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); letter-spacing: -.01em; }
.h-title { font-size: 19px; color: var(--ink); margin: 14px 0 0; font-weight: 500; }
.h-tag { color: var(--muted); margin: 16px 0 0; max-width: 560px; font-size: 17px; }
.h-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 24px; border-radius: 999px; font: 500 15px var(--body); text-decoration: none; border: 1px solid var(--ink); cursor: pointer; transition: all .15s; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: #2a3d61; }
.btn.line { background: transparent; color: var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.counts { display: flex; gap: 40px; margin: 42px 0 0; padding-top: 26px; border-top: 1px solid var(--line); max-width: 520px; }
.counts:empty { display: none; }
.counts div { display: flex; flex-direction: column-reverse; }
.counts dt { color: var(--muted); font-size: 14px; }
.counts dd { margin: 0; font-family: var(--head); font-size: 36px; color: var(--ink); line-height: 1.1; }
.hero-photo { display: flex; justify-content: center; }
.arch { position: relative; width: min(380px, 100%); aspect-ratio: 4 / 5; border-radius: 999px 999px var(--r) var(--r); overflow: hidden; background: var(--gold-soft); }
.arch::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.7); border-radius: 999px 999px 8px 8px; pointer-events: none; }
.arch img { width: 100%; height: 100%; object-fit: cover; }

/* sections */
.sec { padding: 88px 0; }
.sec + .sec { border-top: 1px solid var(--line); }
.sec.tint { background: var(--soft); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(30px, 4vw, 42px); }
.sec-head h2::before { content: ""; display: block; width: 36px; height: 2px; background: var(--gold); margin-bottom: 18px; }
.sub-h { font-family: var(--body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); font-weight: 600; margin: 0 0 14px; }

/* about */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; }
.bio p { margin: 0 0 16px; }
.bio p:first-child { font-size: 19px; color: var(--ink); }
.skills { display: flex; flex-wrap: wrap; gap: 8px; }
.skills span { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 14px; background: #fff; }

/* career: three lists */
.career { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.career.n2 { grid-template-columns: repeat(2, 1fr); }
.career.n1 { grid-template-columns: 1fr; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.tl li:first-child { padding-top: 0; }
.tl b { display: block; color: var(--ink); font-weight: 600; }
.tl .meta { color: var(--muted); font-size: 15px; }
.tl .yr { color: var(--gold); font-size: 14px; }
.tl p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }

/* books: covers */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 32px 24px; }
.book { text-decoration: none; display: flex; flex-direction: column; gap: 12px; }
.book .cover { aspect-ratio: 3 / 4; background: var(--soft); border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 0 var(--line); transition: transform .2s, box-shadow .2s; }
.book:hover .cover { transform: translateY(-4px); box-shadow: 0 14px 30px -18px rgba(28,42,68,.45); }
.book .cover img { width: 100%; height: 100%; object-fit: contain; }
.book b { font-weight: 500; color: var(--ink); font-size: 15px; line-height: 1.45; }
.book small { color: var(--gold); font-size: 14px; }
.tabs { display: flex; gap: 6px; margin-bottom: 30px; }
.tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 18px; font: 500 14px var(--body); color: var(--muted); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.more-link { margin-top: 36px; text-align: center; }

/* numbered list (trainings, media) */
.nl { list-style: none; margin: 0; padding: 0; counter-reset: n; }
.nl li { display: grid; grid-template-columns: 56px 1fr auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); counter-increment: n; }
.nl li::before { content: counter(n, decimal-leading-zero); font-family: var(--head); color: var(--gold); font-size: 22px; }
.nl li.thumb { grid-template-columns: 56px 1fr auto; }
.nl .t b { color: var(--ink); font-weight: 500; display: block; }
.nl .t span { color: var(--muted); font-size: 14px; }
.nl .go { text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px; font-size: 14px; white-space: nowrap; }
.nl .go:hover { border-color: var(--gold); color: var(--gold); }
.nl li.hid { display: none; }
.show-more { margin-top: 24px; }

/* media with thumbnails */
.media { list-style: none; margin: 0; padding: 0; }
.media li { display: grid; grid-template-columns: 180px 1fr auto; gap: 22px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.media .th { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--soft); position: relative; border: 0; padding: 0; cursor: pointer; }
.media .th img { width: 100%; height: 100%; object-fit: cover; }
.media .th.play::after { content: ""; position: absolute; inset: 50% auto auto 50%; transform: translate(-40%, -50%); border-left: 18px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; filter: drop-shadow(0 1px 4px rgba(0,0,0,.5)); }
.media b { color: var(--ink); font-weight: 500; display: block; }
.media span { color: var(--muted); font-size: 14px; }

/* gallery */
.gallery { columns: 3 260px; column-gap: 18px; }
.gallery figure { margin: 0 0 18px; break-inside: avoid; cursor: zoom-in; }
.gallery img { width: 100%; border-radius: 8px; }
.gallery figcaption { font-size: 14px; color: var(--muted); padding-top: 8px; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; }
.c-list { list-style: none; padding: 0; margin: 0 0 28px; }
.c-list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.c-list small { color: var(--muted); font-size: 13px; }
.c-list a { text-decoration: none; color: var(--ink); font-weight: 500; }
.c-list a:hover { color: var(--gold); }
.social { display: flex; flex-wrap: wrap; gap: 10px; }
.social a { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); transition: all .15s; }
.social a:hover { border-color: var(--gold); color: var(--gold); }
.social svg { width: 18px; height: 18px; fill: currentColor; }
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.form input, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font: 16px var(--body); color: var(--text); background: #fff; outline: none; transition: border-color .15s; }
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.form textarea { min-height: 140px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .note { font-size: 15px; min-height: 1.5em; margin: 0; }
.form .note.ok { color: #2f7a4d; }
.form .note.err { color: #b3402f; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 30px 0; color: var(--muted); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.f-links a { text-decoration: none; margin-left: 18px; }
.f-links a:hover { color: var(--gold); }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(20, 24, 33, .92); display: flex; align-items: center; justify-content: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lb-body { max-width: min(1100px, 100%); max-height: 100%; }
.lb-body img { max-height: 86vh; border-radius: 6px; margin: 0 auto; }
.lb-body iframe { width: min(1000px, 92vw); aspect-ratio: 16 / 9; border: 0; border-radius: 6px; }
.lb-body p { color: #ddd; text-align: center; margin: 12px 0 0; }
.lb-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 38px; cursor: pointer; line-height: 1; }

/* entrance */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* phones & tablets */
@media (max-width: 900px) {
  .nav { position: fixed; inset: 68px 0 auto 0; background: #fff; flex-direction: column; gap: 0; padding: 8px 20px 18px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .menu { display: flex; }
  .hero { padding: 40px 0 56px; }
  .hero-in { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo { order: -1; }
  .arch { width: min(280px, 80%); }
  .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .career, .career.n2 { grid-template-columns: 1fr; gap: 40px; }
  .sec { padding: 64px 0; }
}
@media (max-width: 600px) {
  .counts { gap: 26px; }
  .counts dd { font-size: 30px; }
  .shelf { grid-template-columns: repeat(2, 1fr); gap: 24px 16px; }
  .nl li { grid-template-columns: 40px 1fr; }
  .nl li .go { grid-column: 2; justify-self: start; }
  .media li { grid-template-columns: 1fr; gap: 10px; }
  .media .th { max-width: 100%; }
  .foot-in { flex-direction: column; }
  .f-links a { margin: 0 18px 0 0; }
}
