@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url("/assets/host-grotesk-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: oklch(0.09 0 0);
  --surface: oklch(0.14 0 0);
  --ink: oklch(0.96 0.01 70);
  --muted: oklch(0.72 0.018 165);
  --brass: oklch(0.67 0.124 70);
  --mineral: oklch(0.88 0.07 165);
  --line: oklch(0.88 0.025 165 / 0.14);
  --pointer-x: 50vw;
  --pointer-y: 40vh;
  --hero-y: 0rem;
  --hero-opacity: 1;
  --photo-y: 0rem;
  --photo-scale: 1.1;
  --motif-y: 0rem;
  --motif-rotate: 0deg;
  --reveal-y: 4rem;
  --reveal-opacity: 0;
  --cue-opacity: 1;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
  font-family: "Host Grotesk", "Helvetica Neue", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, oklch(0.48 0.08 165 / 0.13), transparent 32%),
    linear-gradient(145deg, var(--bg) 0%, var(--surface) 45%, oklch(0.06 0 0) 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  z-index: 50;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  color: var(--bg);
  background: var(--ink);
  border-radius: 0.25rem;
  transform: translateY(-160%);
  transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
  transform: translateY(0);
}

.scene,
.scene > * {
  position: fixed;
  pointer-events: none;
}

.scene {
  z-index: 0;
  inset: 0;
  overflow: hidden;
}

.site-header,
.scroll-stage,
.site-footer {
  position: relative;
  z-index: 1;
}

.photo-backdrop {
  inset: -2.5rem;
  opacity: 0.92;
  background: url("/assets/bashundhara-medical-city-background.webp") center 52% / cover no-repeat;
  filter: blur(10px) saturate(0.62) contrast(1.04) brightness(0.7);
  transform: translate3d(0, var(--photo-y), 0) scale(var(--photo-scale));
  will-change: transform;
}

.photo-wash {
  inset: 0;
  background:
    radial-gradient(circle at 32% 43%, oklch(0.58 0.07 165 / 0.08), transparent 34%),
    linear-gradient(90deg, oklch(0.07 0 0 / 0.52) 0%, oklch(0.07 0 0 / 0.38) 48%, oklch(0.05 0 0 / 0.62) 100%),
    linear-gradient(180deg, oklch(0.06 0 0 / 0.36), transparent 44%, oklch(0.04 0 0 / 0.72));
}

.pointer-light {
  inset: 0;
  background: radial-gradient(circle 28rem at var(--pointer-x) var(--pointer-y), oklch(0.82 0.08 165 / 0.1), transparent 68%);
}

.orb {
  width: 38rem;
  height: 38rem;
  border-radius: 50%;
  opacity: 0.18;
  filter: blur(90px);
  will-change: transform;
}

.orb-one {
  top: -23rem;
  right: -10rem;
  background: oklch(0.5 0.07 165);
  animation: drift-one 18s ease-in-out 3 alternate;
}

.orb-two {
  bottom: -27rem;
  left: 5%;
  background: oklch(0.57 0.07 70);
  animation: drift-two 23s ease-in-out 3 alternate;
}

.orb-three {
  top: 27%;
  left: 45%;
  width: 22rem;
  height: 22rem;
  opacity: 0.1;
  background: oklch(0.7 0.08 165);
  animation: drift-three 15s ease-in-out 3 alternate;
}

.horizon-glow {
  left: 50%;
  bottom: -18rem;
  width: min(100rem, 130vw);
  height: 34rem;
  border-radius: 50%;
  border: 1px solid oklch(0.82 0.06 165 / 0.34);
  background: radial-gradient(ellipse at center, oklch(0.62 0.08 165 / 0.18) 0%, oklch(0.62 0.08 165 / 0.04) 40%, transparent 68%);
  box-shadow: 0 -2rem 8rem oklch(0.56 0.07 165 / 0.12), inset 0 3rem 7rem oklch(0.73 0.06 165 / 0.08);
  transform: translateX(-50%);
  animation: horizon-breathe 8s ease-in-out 3 alternate;
}

.perspective-grid {
  left: -25%;
  right: -25%;
  bottom: -23rem;
  height: 38rem;
  opacity: 0.24;
  background-image:
    linear-gradient(oklch(0.9 0.025 165 / 0.14) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.9 0.025 165 / 0.12) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, transparent, oklch(0 0 0) 30%, oklch(0 0 0) 70%, transparent);
  transform: perspective(30rem) rotateX(64deg);
  transform-origin: center top;
  animation: grid-travel 18s linear 3;
}

.medical-field {
  top: 50%;
  left: 50%;
  width: min(92rem, 112vw);
  height: min(58rem, 92vh);
  opacity: 0.52;
  transform: translate(-50%, calc(-48% + var(--motif-y))) rotate(var(--motif-rotate));
  will-change: transform;
}

.medical-draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.motion-ready .medical-draw {
  animation: line-draw 2.6s var(--ease-out) both;
}

.medical-axis {
  opacity: 0.32;
}

.pulse-line {
  stroke-width: 1.35;
}

.cell-link {
  opacity: 0.5;
}

.cell-node {
  fill: oklch(0.09 0 0 / 0.28);
}

.capsule {
  opacity: 0.58;
}

.motion-ready .medical-axis,
.motion-ready .cell-link {
  animation-delay: 180ms;
}

.motion-ready .pulse-line {
  animation-delay: 360ms;
}

.motion-ready .cell-cluster {
  transform-origin: center;
  animation: cell-drift 12s ease-in-out 3 alternate;
}

.grain {
  inset: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
  background-size: 11.25rem 11.25rem;
}

.site-header,
.site-footer {
  width: 100%;
  padding-inline: clamp(1.25rem, 4vw, 4.5rem);
}

.site-header {
  position: fixed;
  z-index: 4;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-top: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: 1.5rem;
  background: linear-gradient(180deg, oklch(0.05 0 0 / 0.58), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border: 1px solid oklch(0.96 0.01 70 / 0.32);
  border-radius: 50%;
}

.brand-mark span {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: 0 0 1.4rem oklch(0.67 0.124 70 / 0.7);
}

.project-state {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-dot {
  position: relative;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--mineral);
}

.state-dot::after {
  content: "";
  position: absolute;
  inset: -0.3rem;
  border: 1px solid oklch(0.7 0.08 165 / 0.45);
  border-radius: 50%;
  animation: status-pulse 2.4s ease-out 3;
}

.scroll-stage {
  min-height: 172svh;
}

.hero {
  position: sticky;
  z-index: 1;
  top: 0;
  min-width: 0;
  width: 100%;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: clamp(7rem, 13vh, 9rem) clamp(1.25rem, 8vw, 9rem) clamp(4rem, 9vh, 6rem);
}

.hero-copy {
  min-width: 0;
  width: min(74rem, 100%);
  margin-inline: auto;
  opacity: var(--hero-opacity);
  transform: translate3d(0, var(--hero-y), 0);
  will-change: opacity, transform;
}

.hero-note {
  margin: 0 0 clamp(1.5rem, 4vh, 3rem);
  color: var(--brass);
  font-size: clamp(0.72rem, 1vw, 0.88rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(3.15rem, 9.2vw, 8.4rem);
  font-weight: 300;
  line-height: 0.86;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

h1 span {
  display: block;
}

h1 span:last-child {
  margin-left: clamp(0rem, 7vw, 6.25rem);
  color: oklch(0.96 0.01 70 / 0.68);
}

.hero-detail {
  max-width: 49rem;
  margin-top: clamp(2rem, 5vh, 4rem);
  margin-left: clamp(0rem, 7vw, 6.25rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-detail > p {
  max-width: 34rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.3vw, 1.18rem);
  font-weight: 300;
  line-height: 1.65;
  text-wrap: pretty;
}

.coming-soon {
  position: relative;
  flex: 0 0 auto;
  min-width: 9.5rem;
  padding: 0.85rem 1rem;
  overflow: hidden;
  border-block: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.coming-soon::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -55%;
  width: 45%;
  background: linear-gradient(90deg, transparent, oklch(0.67 0.124 70 / 0.28), transparent);
  transform: skewX(-16deg);
  animation: signal-sweep 4.6s ease-in-out 3;
}

.coming-soon span {
  position: relative;
}

.scroll-cue {
  position: absolute;
  right: clamp(1.25rem, 4vw, 4.5rem);
  bottom: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  opacity: var(--cue-opacity);
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: opacity 100ms linear;
}

.scroll-cue > span {
  position: relative;
  width: 3.25rem;
  height: 1px;
  overflow: hidden;
  background: var(--line);
}

.scroll-cue > span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 45%;
  background: var(--brass);
  animation: scroll-cue 2.2s var(--ease-out) 4;
}

.scroll-reveal {
  position: absolute;
  z-index: 2;
  right: clamp(1.25rem, 9vw, 10rem);
  bottom: clamp(5rem, 10vh, 8rem);
  width: min(42rem, calc(100% - 2.5rem));
  opacity: var(--reveal-opacity);
  transform: translate3d(0, var(--reveal-y), 0);
  will-change: opacity, transform;
}

.scroll-reveal > p {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.25rem;
  color: var(--brass);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-reveal > p span {
  width: 2.5rem;
  height: 1px;
  background: currentColor;
}

.scroll-reveal h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(3rem, 6.7vw, 6.6rem);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal {
  animation: reveal-up 0.95s var(--ease-out) both;
  animation-delay: var(--delay, 0ms);
}

.site-footer {
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: clamp(1.5rem, 3vw, 2.75rem);
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: oklch(0.06 0 0 / 0.94);
  backdrop-filter: blur(18px);
}

.site-footer p {
  margin: 0;
}

.project-credit {
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.developer-credit {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.74rem;
}

.developer-credit > span {
  opacity: 0.72;
}

.developer-credit a {
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.35rem 0.25rem 0.75rem;
  border: 1px solid oklch(0.92 0.025 165 / 0.14);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 220ms ease, background-color 220ms ease, transform 220ms var(--ease-out);
}

.developer-credit a:hover {
  border-color: oklch(0.88 0.07 165 / 0.45);
  background: oklch(0.88 0.07 165 / 0.06);
  transform: translateY(-2px);
}

.developer-credit a:focus-visible,
.brand:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 4px;
}

.developer-credit img {
  width: 2.1rem;
  height: 2.1rem;
  object-fit: contain;
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(2.25rem); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes line-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes drift-one {
  to { transform: translate(-8rem, 8rem) scale(1.16); }
}

@keyframes drift-two {
  to { transform: translate(12rem, -6rem) scale(0.88); }
}

@keyframes drift-three {
  to { transform: translate(-10rem, 5rem) scale(1.2); }
}

@keyframes horizon-breathe {
  to { opacity: 0.72; transform: translateX(-50%) scale(1.035); }
}

@keyframes grid-travel {
  to { background-position: 0 4rem, 4rem 0; }
}

@keyframes cell-drift {
  to { transform: translate3d(2rem, -1.25rem, 0); }
}

@keyframes status-pulse {
  0% { opacity: 0.8; transform: scale(0.65); }
  70%, 100% { opacity: 0; transform: scale(1.4); }
}

@keyframes signal-sweep {
  0%, 45% { transform: translateX(0) skewX(-16deg); }
  75%, 100% { transform: translateX(370%) skewX(-16deg); }
}

@keyframes scroll-cue {
  from { transform: translateX(0); }
  to { transform: translateX(325%); }
}

@media (max-width: 720px) {
  .site-header {
    align-items: flex-start;
  }

  .brand {
    max-width: 12rem;
    line-height: 1.25;
  }

  .project-state {
    padding-top: 0.55rem;
    font-size: 0.62rem;
  }

  .hero {
    padding: 7.25rem 1.25rem 5.5rem;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2.6rem, 13vw, 5.6rem);
    line-height: 0.9;
  }

  h1 span {
    white-space: nowrap;
  }

  h1 span:last-child,
  .hero-detail {
    margin-left: 0;
  }

  .hero-detail {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-detail > p {
    max-width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .developer-credit {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .scroll-stage {
    min-height: 162svh;
  }

  .scroll-cue {
    right: 1.25rem;
    bottom: 1.5rem;
  }

  .scroll-reveal {
    right: 1.25rem;
    bottom: 4.5rem;
  }

  .scroll-reveal h2 {
    font-size: clamp(2.7rem, 13vw, 4.6rem);
  }

  .medical-field {
    left: 56%;
    width: 185vw;
    height: 100vh;
    opacity: 0.44;
  }

  .photo-backdrop {
    background-position: 55% center;
    filter: blur(10px) saturate(0.58) contrast(1.03) brightness(0.66);
  }
}

@media (max-height: 680px) and (min-width: 721px) {
  .hero {
    padding: 5.75rem clamp(1.25rem, 8vw, 9rem) 3rem;
  }

  .hero-note {
    margin-bottom: 1.25rem;
  }

  .hero-detail {
    margin-top: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .pointer-light {
    display: none;
  }

  .hero-copy,
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
  }

  .photo-backdrop {
    transform: scale(1.1) !important;
  }

  .medical-field {
    transform: translate(-50%, -48%) !important;
  }

  .scroll-cue {
    display: none;
  }

  .scroll-stage {
    min-height: 135svh;
  }
}
