/* Md Abdul Marjan — portfolio */
:root {
  --paper: #fbf7f0;
  --paper-2: #f3ece0;
  --ink: #1f2a37;
  --ink-2: #4a5563;
  --line: #e6dccb;
  --tomato: #e4572e;
  --mustard: #f2b134;
  --teal: #2a9d8f;
  --sky: #4f8fcf;
  --plum: #8a5a9e;
  --leaf: #6a994e;
  --serif: "Fraunces", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tomato); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; font: 600 1rem var(--sans); padding: .85em 1.5em; border-radius: 999px; text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--tomato); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--ink); width: 100%; justify-content: center; }
.btn-light:hover { background: var(--mustard); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 247, 240, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.logo em { font-style: italic; color: var(--tomato); }
.logo-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--tomato); color: var(--paper); display: grid; place-items: center; font-size: 1.15rem; box-shadow: 4px 4px 0 var(--mustard); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; padding: .4em .85em; border-radius: 999px; transition: background .15s; }
.nav a:hover, .nav a.active { background: var(--paper-2); }
.nav .nav-cta { background: var(--ink); color: var(--paper); margin-left: 6px; }
.nav .nav-cta:hover { background: var(--tomato); }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; transition: transform .2s; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Hero */
.hero { padding: 72px 0 96px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: .95rem; color: var(--ink-2); background: #fff; border: 1px solid var(--line); padding: .35em 1em; border-radius: 999px; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(106, 153, 78, .2); }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-top: .5em; }
.underline { background: linear-gradient(transparent 62%, rgba(242, 177, 52, .55) 62%); padding: 0 .05em; }
.lead { font-size: 1.13rem; color: var(--ink-2); max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 2em; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--ink-2); font-size: .95rem; }
.hero-facts strong { display: block; font-family: var(--serif); font-size: 1.6rem; color: var(--ink); line-height: 1.2; }

.hero-photo { position: relative; }
.hero-photo img { position: relative; z-index: 2; border-radius: 28px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; width: 100%; box-shadow: 0 30px 60px -30px rgba(31, 42, 55, .45); }
.blocks .b { position: absolute; z-index: 1; border-radius: 12px; }
.blocks .b1 { width: 120px; height: 120px; background: var(--mustard); top: -26px; right: -26px; transform: rotate(8deg); }
.blocks .b2 { width: 90px; height: 60px; background: var(--teal); bottom: 60px; left: -34px; transform: rotate(-10deg); }
.blocks .b3 { width: 54px; height: 54px; background: var(--tomato); bottom: -20px; right: 60px; border-radius: 50%; }
.blocks .b4 { width: 70px; height: 34px; background: var(--sky); top: 80px; left: -24px; transform: rotate(6deg); }
.photo-tag { position: absolute; z-index: 3; left: 24px; bottom: 24px; background: #fff; border-radius: 14px; padding: 12px 16px; box-shadow: 0 10px 30px rgba(31, 42, 55, .15); line-height: 1.3; }
.photo-tag span { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-2); }
.photo-tag strong { font-size: .98rem; }

/* Sections */
.section { padding: 100px 0; }
.section-paper { background: var(--paper-2); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--tomato); margin-bottom: .8em; }
.eyebrow::before { content: ""; width: 22px; height: 10px; border-radius: 3px; background: currentColor; }
.eyebrow.light { color: var(--mustard); }

/* About */
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { margin: 0; position: relative; }
.about-photo img { border-radius: 24px; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.about-photo::after { content: ""; position: absolute; inset: 18px -18px -18px 18px; border: 2px solid var(--ink); border-radius: 24px; z-index: -1; }
.tags { list-style: none; padding: 0; margin: 1.2em 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3em .9em; font-size: .92rem; font-weight: 500; }

/* Approach cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 6px; background: var(--c); }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -22px rgba(31, 42, 55, .4); }
.card-num { font-family: var(--serif); font-size: 2.2rem; font-weight: 700; color: var(--c); line-height: 1; display: block; margin-bottom: .4em; }
.card p { color: var(--ink-2); margin: 0; }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 230px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.role { display: grid; grid-template-columns: 230px 1fr; gap: 0 48px; padding-bottom: 44px; position: relative; }
.role::before { content: ""; position: absolute; left: 224px; top: 8px; width: 14px; height: 14px; border-radius: 4px; background: var(--tomato); transform: rotate(45deg); }
.role:nth-child(2)::before { background: var(--mustard); }
.role:nth-child(3)::before { background: var(--teal); }
.role:nth-child(4)::before { background: var(--sky); }
.role-meta { padding-right: 28px; text-align: right; }
.when { display: block; font-weight: 700; }
.where { display: block; color: var(--ink-2); font-size: .92rem; }
.role-body h3 { margin-bottom: .1em; font-size: 1.45rem; }
.org { color: var(--ink-2); font-weight: 600; margin-bottom: .6em; }
.org a { color: inherit; }
.role-body ul { margin: 0; padding-left: 1.1em; color: var(--ink-2); }
.role-body li { margin: .3em 0; }

/* Education */
.edu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.edu { background: #fff; border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.edu-years { font-weight: 700; color: var(--tomato); font-size: .95rem; }
.edu h3 { font-size: 1.5rem; margin-top: .3em; }
.edu p:last-child { color: var(--ink-2); margin: 0; }
.badge { display: inline-block; background: var(--ink); color: var(--paper); border-radius: 999px; padding: .15em .9em; font-size: .85rem; font-weight: 700; }
.extras { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; margin-top: 48px; }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { padding: .55em 0; border-bottom: 1px dashed var(--line); }

/* Awards */
.awards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.award { padding: 28px 28px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.award-year { position: absolute; top: 22px; right: 24px; font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--mustard); }
.award h3 { padding-right: 70px; }
.award p:last-child { color: var(--ink-2); margin: 0; }

/* Contact */
.contact { background: var(--ink); color: #e9e4da; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 2em 0 0; }
.contact-list li { display: flex; gap: 20px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.contact-list span { width: 110px; flex: none; color: #a9b1bb; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.contact-list a { color: var(--mustard); font-weight: 600; }
.contact-form { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; padding: 28px; }
.contact-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 14px; color: #fff; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; color: #fff; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .18); border-radius: 12px; padding: .7em .9em; }
.contact-form :is(input, textarea):focus { outline: none; border-color: var(--mustard); }
.contact-form .invalid { border-color: var(--tomato); }
.form-note { margin: .8em 0 0; font-size: .9rem; color: #c9ced5; min-height: 1.4em; }

.site-footer { background: var(--ink); color: #a9b1bb; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0; font-size: .92rem; }
.footer-row p { margin: 0; }
.site-footer a { color: var(--mustard); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

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

/* Responsive */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { left: 6px; }
  .role { grid-template-columns: 1fr; padding-left: 36px; }
  .role::before { left: 0; }
  .role-meta { text-align: left; padding: 0 0 6px; display: flex; gap: 12px; flex-wrap: wrap; align-items: baseline; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 10px 20px 20px; border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: .7em 1em; }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
  .hero { padding: 40px 0 72px; }
  .hero-grid, .about-grid, .contact-grid, .edu-grid, .extras { grid-template-columns: 1fr; }
  .hero-grid { gap: 48px; }
  .hero-photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .about-photo { max-width: 420px; }
  .section { padding: 72px 0; }
  .awards { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .blocks .b1 { width: 80px; height: 80px; right: -10px; }
  .blocks .b2, .blocks .b4 { left: -10px; }
  .about-photo::after { inset: 12px -10px -10px 12px; }
}

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