/* ITAP landing page of Dr. Soumyajyoti Haldar — same look as soumyajyoti.com, no external requests */
@font-face { font-family: 'Source Serif 4 Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('fonts/source-serif-4-latin-opsz-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter Variable'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('fonts/inter-latin-wght-normal.woff2') format('woff2'); }

:root {
  --ink: #1c2430; --muted: #5b6573; --line: #ebe4d5; --bg: #fdfbf6; --bg-raised: #fffdf8;
  --heading: #17324f; --btn: #17324f; --on-btn: #fff; --lead: #2f3a48;
  --hero-a: #faf6ec; --hero-b: #f3ecdc; --link: #1f5b99; --accent: #b5383d; --shadow: rgba(23,50,79,.18);
  --radius: 10px;
  --portrait-mask: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 6%, #000 80%, transparent 100%);
  --portrait-radius: 0; --portrait-shadow: none; --photo-dim: 1;
  --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4 Variable", "Iowan Old Style", Palatino, Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e7e2d7; --muted: #a9a395; --line: #37332c; --bg: #1a1916; --bg-raised: #211f1b;
    --heading: #f2ead9; --btn: #2f6197; --lead: #d6d0c3; --hero-a: #22201c; --hero-b: #2b2721;
    --link: #8dbbe9; --accent: #e2706f; --shadow: rgba(0,0,0,.5);
    --portrait-mask: none; --portrait-radius: var(--radius); --portrait-shadow: 0 10px 30px var(--shadow); --photo-dim: .9;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
img { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:hover { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 24px; }

header { background: var(--bg-raised); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 12px; padding-top: 14px; padding-bottom: 12px; }
header img { width: 40px; height: 40px; }
header .inst { font-size: .9rem; color: var(--muted); line-height: 1.35; }
header .inst a { color: inherit; text-decoration: none; }
header .inst a:hover { color: var(--accent); }

main { flex: 1; }
.hero { background: linear-gradient(160deg, var(--hero-a), var(--hero-b)); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: 1fr 300px; gap: 48px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.2; color: var(--heading); margin: 0 0 .25em; }
.role { margin: 0 0 1.2em; color: var(--muted); }
.lead { color: var(--lead); margin: 0 0 1.5em; }
.btn { display: inline-block; background: var(--btn); color: var(--on-btn); text-decoration: none; padding: 10px 20px; border-radius: 999px; font-weight: 600; }
.btn:hover { color: var(--on-btn); filter: brightness(1.15); }
.portrait { margin: 0; }
.portrait img { display: block; width: 100%; border-radius: var(--portrait-radius); box-shadow: var(--portrait-shadow); filter: brightness(var(--photo-dim));
  -webkit-mask-image: var(--portrait-mask); -webkit-mask-composite: source-in; mask-image: var(--portrait-mask); mask-composite: intersect; }

.details { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-top: 36px; padding-bottom: 48px; }
h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 .7em; font-weight: 600; }
address { font-style: normal; }
.email { color: var(--link); }
ul.links { list-style: none; padding: 0; margin: 0; }
ul.links li { padding: 4px 0; }

footer { border-top: 1px solid var(--line); background: var(--bg-raised); font-size: .88rem; color: var(--muted); }
footer .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer a { color: inherit; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; padding-bottom: 32px; }
  .portrait { order: -1; max-width: 220px; }
  .details { grid-template-columns: 1fr; gap: 24px; }
}

/* banner: faint skyrmion-lattice spin texture, same as soumyajyoti.com */
:root { --hero-spins: url("hero-spins.svg"); --hero-spins-opacity: .2; }
@media (prefers-color-scheme: dark) { :root { --hero-spins: url("hero-spins-dark.svg"); --hero-spins-opacity: .14; } }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-spins) right center / cover no-repeat; opacity: var(--hero-spins-opacity); pointer-events: none; }
.hero > .wrap { position: relative; }
@media (max-width: 760px) { .hero::before { opacity: calc(var(--hero-spins-opacity) * .5); background-position: right top; -webkit-mask-image: linear-gradient(#000 0, transparent 55%); mask-image: linear-gradient(#000 0, transparent 55%); } }

/* banner: faint skyrmion-lattice spin texture, same as soumyajyoti.com */
:root { --hero-spins: url("hero-spins.svg"); --hero-spins-opacity: .2; }
@media (prefers-color-scheme: dark) { :root { --hero-spins: url("hero-spins-dark.svg"); --hero-spins-opacity: .14; } }
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-spins) right center / cover no-repeat; opacity: var(--hero-spins-opacity); pointer-events: none; }
.hero > .wrap { position: relative; }
@media (max-width: 760px) { .hero::before { opacity: calc(var(--hero-spins-opacity) * .5); background-position: right top; -webkit-mask-image: linear-gradient(#000 0, transparent 55%); mask-image: linear-gradient(#000 0, transparent 55%); } }
