@font-face {
  font-family: "Press Bengali";
  src: url("./assets/bengali-press.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

#about, #achievements, #media, #articles, #contact { scroll-margin-top: 1.25rem; }

.hero-gallery {
  z-index: 2;
  grid-column: 2;
  justify-self: end;
  width: 25.75rem;
  margin: 2.64rem -.45rem 0 0;
  padding: 1.35rem;
  border-color: #873548;
  border-radius: 1.85rem;
  background: radial-gradient(ellipse at 70% 1%, #541527, transparent 61%), linear-gradient(146deg, #2a141eef, #160e17ec);
  box-shadow: inset 0 1px 1px #ff9bad43, 0 1.1rem 3.6rem #0d071658;
  --flare-size: 10px;
}

.hero-gallery h2 {
  margin: 0 0 1rem;
  font-size: 1.04rem;
  letter-spacing: .065em;
}

.gallery-stage {
  position: relative;
  isolation: isolate;
  height: 20.5rem;
  border: 1px solid #b8607768;
  border-radius: 1.08rem;
  background: #190e18;
  box-shadow: 0 .7rem 2.1rem #0a030974;
}

.gallery-stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: .35rem .45rem -.32rem;
  border: 1px solid #b25270aa;
  border-radius: 1rem;
  background: #23131d;
  transform: rotate(2.2deg);
}

.gallery-slide {
  position: absolute;
  display: grid;
  align-content: end;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
  background: #190e18;
  opacity: 0;
  transform: scale(.972) translateY(.45rem);
  transition: opacity .58s ease, transform .58s ease;
}

.gallery-slide.is-active { opacity: 1; transform: none; }

.gallery-slide img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 52% 45%;
}

.gallery-portrait img { object-position: 50% 37%; }
.gallery-slide:first-child img { object-position: 54% 56%; }

.gallery-caption {
  position: relative;
  z-index: 1;
  padding: 1.7rem .9rem .84rem;
  background: linear-gradient(transparent, #100610ed);
  color: #fff5f7;
  font-weight: 700;
  font-size: .83rem;
}

.gallery-view {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: zoom-in;
}

.gallery-full-photo { max-height: 64svh; object-fit: contain; }

.gallery-controls, .gallery-buttons { display: flex; align-items: center; }

.gallery-controls {
  justify-content: space-between;
  margin-top: .85rem;
}

.gallery-count {
  color: #eabac6;
  font-size: .76rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: .13em;
}

.gallery-buttons { gap: .3rem; }

.gallery-control {
  display: inline-grid;
  place-items: center;
  min-width: max(2.35rem, 36px);
  min-height: max(2.35rem, 36px);
  border: 1px solid #874759;
  border-radius: .65rem;
  background: #5424387d;
  color: #ffe7ec;
  line-height: 1;
}

.gallery-control:hover { background: #713048; }
.gallery-control .icon { width: 1.15em; height: 1.15em; }
.gallery-previous .icon { transform: rotate(180deg); }

.press-link {
  display: grid;
  width: 100%;
  min-width: 0;
  min-height: 2.65rem;
  place-items: center;
  padding: .3rem .35rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  background: transparent;
}

.press-link:hover, .press-link:focus-visible {
  border-color: #a74961;
  background: #6a2e417c;
}

.media-logos .press-link img {
  display: block;
  width: auto;
  height: auto;
  max-width: 90%;
  max-height: 1.82rem;
  padding: 0;
}

.press-samayer {
  font-family: "Press Bengali", "Noto Sans Bengali", sans-serif;
  color: #fff0f3;
  font-weight: 700;
  font-size: 1.17rem;
  line-height: 1.15;
  white-space: nowrap;
}

.more-media { text-align: center; }

.home-details { margin: 4.5rem .65rem 0; display: grid; gap: 3.7rem; }

.home-section h2, .site-footer h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3.3vw, 3rem);
  line-height: 1.08;
  letter-spacing: -.039em;
  text-wrap: balance;
}

.home-section h3, .thought-card strong { margin: 0; font-size: 1.19rem; line-height: 1.27; text-wrap: pretty; }

.home-section p:not(.eyebrow), .detail-card > span:not(.card-meta, .card-action), .site-footer p:not(.eyebrow) {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.58;
  text-wrap: pretty;
}

.section-heading { max-width: 46rem; margin-bottom: 1.3rem; }
.section-heading p:not(.eyebrow) { margin: .65rem 0 0; }

.about-preview {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  border-radius: 1.55rem;
  padding: clamp(1.4rem, 3.4vw, 3.2rem);
  background: radial-gradient(ellipse at 94% 14%, #6a1e35a8, transparent 52%), #20131d;
}

.about-preview > div > p:last-child { margin-bottom: 0; max-width: 39rem; }
.about-links ul { margin: 0 0 1.1rem; padding: 0; list-style: none; }

.about-links li {
  display: grid;
  grid-template-columns: 5.65rem 1fr;
  gap: .5rem;
  padding: .66rem 0;
  border-bottom: 1px solid #9253666b;
  line-height: 1.35;
}

.about-links li > span { color: #e4adb9; }

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .9rem;
}

.detail-card {
  display: grid;
  align-content: start;
  gap: .7rem;
  padding: 1.28rem;
  min-width: 0;
  border-radius: 1.03rem;
  background: linear-gradient(136deg, #311c29, #20131c);
  color: var(--ink);
  text-align: left;
}

.detail-card p { margin: 0; }
.press-story, .thought-card { grid-template-rows: auto 1fr auto; }
.thought-card { grid-template-rows: auto auto 1fr auto; }
.press-story:hover, .thought-card:hover { background: #422332; border-color: #bf617a; }
.card-meta { color: #ffc1cd; font-weight: 700; font-size: .77rem; }
.card-action { color: #ffadbe; font-size: .88rem; font-weight: 700; margin-top: .2rem; }

.site-footer {
  margin-top: 4rem;
  padding: 2rem max(.65rem, 1vw) 1.25rem;
  border-top: 1px solid #975067;
  background: radial-gradient(ellipse at 50% 0, #4b1827a0, transparent 70%);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.4rem;
  padding: .65rem 0 1.7rem;
}

.footer-content h2 { max-width: 42rem; }
.footer-content p:last-child { max-width: 39rem; margin-bottom: 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: .58rem; margin-right: 1.7rem; }

.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid #73384c;
  padding: 1.04rem 2.5rem .25rem 0;
  color: #e6bfca;
  font-size: .83rem;
}
.footer-meta a:hover { color: #fff; }
.footer-brand { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 700; }

.nova-launcher {
  position: fixed;
  z-index: 8;
  right: max(1.2rem, env(safe-area-inset-right));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  display: grid;
  place-items: center;
  width: clamp(3.5rem, 5vw, 4.45rem);
  height: clamp(3.5rem, 5vw, 4.45rem);
  padding: 0;
  border: 1px solid #ff5973;
  border-radius: 50%;
  background: radial-gradient(circle at 56% 54%, #55182c 5%, #1e101c 62%, #3c1726);
  box-shadow: 0 0 .72rem #f5164845, 0 .55rem 1.55rem #0c0509b3;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nova-launcher:hover { transform: translateY(-.25rem); box-shadow: 0 0 1.25rem #f5164880, 0 .55rem 1.55rem #0c0509b3; }
.nova-launcher img { display: block; width: 100%; height: 100%; }

.overlay.nova-chat {
  inset: auto max(1.2rem, env(safe-area-inset-right)) max(1.2rem, env(safe-area-inset-bottom)) auto;
  margin: 0;
  width: min(27rem, calc(100% - 2.4rem));
  max-height: calc(100dvh - 2.4rem);
}

.nova-chat::backdrop { background: #09040a3d; backdrop-filter: none; }
.nova-chat .overlay-inner { padding: 1.2rem; }
.nova-chat .chat-log { max-height: min(43dvh, 23rem); }
.nova-chat .chat-suggestions { display: flex; flex-wrap: wrap; gap: .42rem; margin: .45rem 0 0; }
.nova-chat .chat-suggestions button { min-width: 0; min-height: 2rem; padding: .35rem .68rem; font-size: .8rem; }

@media (max-width: 1050px) {
  .hero-gallery { width: 100%; margin: 2.6rem 0 1.8rem; }
  .hero-gallery .gallery-stage { height: 18.5rem; }
  .home-details { margin-inline: 0; }
}

@media (max-width: 750px) {
  .hero-gallery { margin: .4rem 0 1.2rem; padding: 1rem; border-radius: 1.3rem; }
  .hero-gallery .gallery-stage { height: min(68vw, 21rem); }
  .gallery-control { min-width: 44px; min-height: 44px; }
  .press-link { min-height: 2.4rem; }
  .media-logos .press-link img { max-height: 1.45rem; }
  .press-samayer { font-size: .95rem; }
  .home-details { margin-top: 2.7rem; gap: 2.65rem; }
  .about-preview, .detail-grid { grid-template-columns: 1fr; }
  .detail-grid { gap: .65rem; }
  .detail-card { padding: 1rem; gap: .57rem; }
  .footer-content { display: grid; }
  .footer-actions { margin-right: 0; }
  .site-footer { margin-top: 2.8rem; padding-inline: 0; }
  .footer-meta { flex-wrap: wrap; padding-right: 4rem; }
  .footer-meta > span { order: 2; flex-basis: 100%; }
  .nova-launcher { bottom: max(.8rem, env(safe-area-inset-bottom)); right: max(.8rem, env(safe-area-inset-right)); }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-slide, .nova-launcher { transition: none; }
}
