:root {
  --bg: #07131c;
  --bg-deep: #02060d;
  --panel: rgba(8, 20, 31, 0.72);
  --panel-strong: rgba(8, 24, 39, 0.94);
  --line: rgba(139, 197, 255, 0.15);
  --text: #f5f7fb;
  --muted: #9eafc7;
  --accent: #87e8ff;
  --accent-strong: #49c6e5;
  --accent-soft: #7c9bff;
  --accent-warm: #ffb86c;
  --glow: rgba(135, 232, 255, 0.24);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
  --font-body: "Instrument Sans", sans-serif;
  --font-display: "Sora", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  opacity: 0;
  transition: opacity 0.35s ease;
  background:
    radial-gradient(circle at 12% 18%, rgba(73, 198, 229, 0.16), transparent 26%),
    radial-gradient(circle at 82% 12%, rgba(255, 184, 108, 0.13), transparent 24%),
    radial-gradient(circle at 50% 120%, rgba(124, 155, 255, 0.12), transparent 34%),
    linear-gradient(160deg, #08131c 0%, #050b14 54%, #02060d 100%);
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

body[data-page="projects"] {
  background:
    radial-gradient(circle at 18% 15%, rgba(124, 155, 255, 0.14), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(135, 232, 255, 0.13), transparent 22%),
    linear-gradient(160deg, #071019 0%, #050912 54%, #02060d 100%);
}

body[data-page="about"] {
  background:
    radial-gradient(circle at 15% 18%, rgba(255, 184, 108, 0.12), transparent 24%),
    radial-gradient(circle at 82% 16%, rgba(135, 232, 255, 0.14), transparent 26%),
    linear-gradient(160deg, #09131b 0%, #060a11 54%, #03060b 100%);
}

body[data-page="contact"] {
  background:
    radial-gradient(circle at 16% 20%, rgba(73, 198, 229, 0.14), transparent 26%),
    radial-gradient(circle at 84% 14%, rgba(255, 184, 108, 0.12), transparent 24%),
    linear-gradient(160deg, #08111b 0%, #050912 54%, #02060c 100%);
}

body.page-ready {
  opacity: 1;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black, transparent 85%);
  pointer-events: none;
  opacity: 0.35;
}

.noise,
.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  opacity: 0.04;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.14) 0 1px, transparent 1px);
  background-size: 22px 22px, 28px 28px;
}

.aurora {
  filter: blur(90px);
  opacity: 0.18;
}

.aurora-one {
  background: radial-gradient(circle at 25% 30%, rgba(56, 189, 248, 0.18), transparent 38%);
}

.aurora-two {
  background: radial-gradient(circle at 75% 25%, rgba(245, 158, 11, 0.14), transparent 35%);
}

.site-header,
.page-main,
.section-shell,
.navbar,
.nav-links,
.hero,
.feature-grid,
.timeline-band,
.project-columns,
.future-grid,
.story-layout,
.contact-layout {
  position: relative;
  z-index: 1;
}

.site-header {
  padding: 22px 24px 0;
}

.navbar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(4, 11, 20, 0.58);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand span,
.active,
.eyebrow,
.project-tag,
.feature-index {
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  transform: translateY(-1px);
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.page-main {
  padding-bottom: 72px;
}

.section-shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.hero,
.page-hero {
  min-height: calc(100vh - 120px);
  display: grid;
  align-items: center;
  gap: 30px;
}

.hero {
  grid-template-columns: 1.1fr 0.9fr;
}

.reveal,
.hero-copy,
.hero-panel,
.page-hero,
.column-heading,
.section-heading,
.story-card,
.values-card,
.contact-card,
.map-card {
  opacity: 0;
  transform: translateY(var(--reveal-offset, 26px));
}

.eyebrow {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.02;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 6vw, 6rem);
  max-width: 12ch;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  color: var(--muted);
  line-height: 1.8;
}

.hero-text,
.page-intro {
  max-width: 62ch;
  font-size: 1.04rem;
  margin-top: 22px;
}

.hero-copy,
.page-hero,
.section-heading,
.column-heading {
  position: relative;
}

.hero-copy::before,
.page-hero::before,
.section-heading::before,
.column-heading::before {
  content: "";
  position: absolute;
  top: -18px;
  left: 0;
  width: 96px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0.9;
}

.hero-copy::after,
.page-hero::after {
  content: "";
  position: absolute;
  right: clamp(-10px, -2vw, 0px);
  top: clamp(-8px, 2vw, 18px);
  width: 120px;
  height: 120px;
  border: 1px solid rgba(135, 232, 255, 0.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(135, 232, 255, 0.08), rgba(124, 155, 255, 0.02));
  transform: rotate(12deg);
  pointer-events: none;
  z-index: -1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.16), transparent 46%);
  opacity: 0.7;
  pointer-events: none;
}

.button.primary {
  color: #02131f;
  background: linear-gradient(135deg, var(--accent) 0%, #d8f3ff 100%);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.3);
}

.button.secondary {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.button:hover {
  transform: translateY(-2px);
}

.glass-card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(10, 21, 35, 0.92), rgba(6, 14, 24, 0.76)),
    radial-gradient(circle at top right, rgba(135, 232, 255, 0.08), transparent 34%);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.1), transparent 40%),
    radial-gradient(circle at top left, rgba(135, 232, 255, 0.1), transparent 28%);
  opacity: 0.5;
  pointer-events: none;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: auto 28px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(135, 232, 255, 0.32), transparent);
}

.signature-card {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.signature-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.status-pill,
.project-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(125, 211, 252, 0.12);
  border: 1px solid rgba(125, 211, 252, 0.28);
  color: var(--accent);
  font-size: 0.82rem;
  box-shadow: inset 0 0 18px rgba(135, 232, 255, 0.08);
}

.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 36px;
}

.signal-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.9rem;
  color: var(--text);
}

.signal-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading,
.column-heading {
  margin-bottom: 28px;
}

.feature-grid,
.future-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.future-card {
  min-height: 240px;
}

.feature-card:nth-child(2),
.future-card:nth-child(2) {
  --reveal-offset: 44px;
}

.feature-index {
  display: inline-block;
  margin-bottom: 22px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.18em;
}

.feature-card h3,
.future-card h3,
.project-card h3,
.story-card h2,
.values-card h2,
.contact-card h2 {
  margin-bottom: 14px;
}

.timeline-band {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 26px;
  margin-top: 26px;
  background:
    linear-gradient(180deg, rgba(9, 18, 30, 0.92), rgba(5, 13, 23, 0.78)),
    radial-gradient(circle at 85% 20%, rgba(255, 184, 108, 0.12), transparent 28%);
}

.timeline-points {
  display: grid;
  gap: 18px;
}

.timeline-points div,
.contact-item,
.detail-list li {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.02);
}

.timeline-points div {
  padding: 18px;
}

.timeline-points span {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-weight: 700;
}

.project-columns,
.story-layout,
.contact-layout,
.profile-grid {
  display: grid;
  gap: 24px;
}

.project-card {
  padding: 30px;
}

.project-card,
.future-card,
.feature-card,
.quote-panel,
.map-frame {
  isolation: isolate;
}

.project-card::before,
.future-card::before,
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), rgba(124, 155, 255, 0.75), transparent 88%);
  opacity: 0.75;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.project-tag {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 10px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0;
}

.meta-row span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(135, 232, 255, 0.12);
  color: var(--text);
  font-size: 0.9rem;
}

.detail-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.detail-list li {
  padding: 16px 18px;
  color: var(--muted);
}

.future-zone {
  margin-top: 34px;
}

.story-layout {
  grid-template-columns: 1.1fr 0.9fr;
}

.profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 28px;
}

.profile-card h2 {
  margin-bottom: 18px;
}

.profile-list {
  display: grid;
  gap: 14px;
}

.profile-item {
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.profile-item span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.profile-item strong {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 600;
}

.story-card p + p {
  margin-top: 16px;
}

.skill-meter + .skill-meter {
  margin-top: 20px;
}

.skill-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
  color: var(--text);
}

.meter {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.26);
}

.meter-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent-strong), var(--accent-soft), var(--accent-warm));
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quote-panel {
  margin-top: 24px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(8, 18, 30, 0.92), rgba(5, 13, 23, 0.78)),
    radial-gradient(circle at center, rgba(124, 155, 255, 0.12), transparent 44%);
}

.quote-text {
  color: var(--text);
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  max-width: 36ch;
  margin: 0 auto;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.contact-layout {
  grid-template-columns: 0.95fr 1.05fr;
}

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.contact-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  color: var(--text);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-item span {
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.contact-item strong {
  font-size: 1rem;
}

.contact-item:hover {
  transform: translateY(-2px);
  border-color: rgba(125, 211, 252, 0.24);
  background: rgba(125, 211, 252, 0.08);
}

.contact-item.static:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.06);
}

.contact-note,
.map-copy {
  margin-top: 18px;
  font-size: 0.94rem;
}

.map-card {
  padding: 24px;
}

.map-frame {
  position: relative;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(5, 13, 25, 0.96), rgba(6, 17, 30, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.map-embed,
.map-pin,
.map-label {
  position: absolute;
}

.map-embed {
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.9) contrast(1.05) brightness(0.9);
  transform: scale(1.1);
  transform-origin: center;
}

.map-pin {
  top: 50%;
  left: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 98, 74, 0.22);
  border: 1px solid rgba(255, 180, 167, 0.5);
  box-shadow: 0 0 0 18px rgba(255, 98, 74, 0.08);
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  z-index: 2;
}

.map-pin::before,
.map-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 180, 167, 0.6);
}

.map-pin::before {
  animation: ringExpand 3.2s ease-out infinite;
}

.map-pin::after {
  animation: ringExpand 3.2s ease-out 1.1s infinite;
}

.map-pin-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ff9c7a, #ef4444);
  transform: translate(-50%, -50%);
}

.map-card.map-active .map-pin {
  animation: markerDrop 1.8s cubic-bezier(0.2, 0.9, 0.2, 1) forwards 0.3s;
}

.map-card.map-active .map-embed {
  animation: mapZoomIn 1.8s cubic-bezier(0.16, 0.84, 0.24, 1) forwards;
}

.map-label {
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(5, 13, 25, 0.72);
  border: 1px solid rgba(125, 211, 252, 0.24);
  color: var(--text);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.reveal.active,
.hero-copy.active,
.hero-panel.active,
.page-hero.active,
.column-heading.active,
.section-heading.active,
.story-card.active,
.values-card.active,
.contact-card.active,
.map-card.active {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.interactive {
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.interactive:hover {
  transform: translateY(-3px);
  border-color: rgba(135, 232, 255, 0.24);
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(135, 232, 255, 0.05);
}

.magnetic {
  transition: none;
}

@keyframes mapZoomIn {
  0% {
    transform: scale(1.14);
    filter: saturate(0.8) contrast(1) brightness(0.82);
  }
  100% {
    transform: scale(1);
    filter: saturate(0.92) contrast(1.05) brightness(0.9);
  }
}

@keyframes markerDrop {
  0% {
    transform: translate(-50%, -170%) scale(0.2);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  78% {
    transform: translate(-50%, -50%) scale(1.12);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

@keyframes ringExpand {
  0% {
    transform: scale(0.4);
    opacity: 0.7;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

@media (max-width: 980px) {
  .hero,
  .story-layout,
  .contact-layout,
  .profile-grid,
  .timeline-band,
  .feature-grid,
  .future-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .signal-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:nth-child(2),
  .future-card:nth-child(2) {
    transform: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 18px 16px 0;
  }

  .navbar {
    border-radius: 28px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .section-shell {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .hero,
  .page-hero {
    min-height: auto;
    padding: 72px 0 20px;
  }

  .hero-copy::after,
  .page-hero::after {
    width: 84px;
    height: 84px;
    top: -10px;
  }

  h1 {
    max-width: 100%;
  }

  .glass-card,
  .project-card {
    padding: 22px;
  }

  .project-header,
  .signature-top {
    flex-direction: column;
  }

  .map-frame {
    min-height: 340px;
  }
}
