:root {
  --bg: #050505;
  --panel: rgba(255, 255, 255, 0.052);
  --panel-strong: rgba(255, 255, 255, 0.082);
  --text: #f6f1e8;
  --muted: #aaa39a;
  --dim: #6d675f;
  --line: rgba(246, 241, 232, 0.13);
  --line-bright: rgba(246, 241, 232, 0.34);
  --accent: #f4eee2;
  --max-width: 900px;
  --radius: 30px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 32%, rgba(255, 255, 255, 0.105), transparent 24rem),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.052), transparent 28rem),
    #050505;
  font-family: "Geist", "Inter", "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05), transparent 18%),
    linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent 40%);
}

body.landing-page {
  overflow: hidden;
}

body.detail-page {
  overflow: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.snap-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.snap-panel {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.2rem, 4vw, 3rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.intro-panel {
  position: relative;
  cursor: pointer;
}

.center-stage {
  position: relative;
  width: min(88vw, 58rem);
  min-height: 12rem;
  display: grid;
  place-items: center;
  margin: 0;
  border: 0;
  padding: clamp(2rem, 7vw, 5rem);
  color: var(--text);
  background: transparent;
  cursor: pointer;
  animation: stageIn 950ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.center-stage::before,
.center-stage::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(246, 241, 232, 0.12);
  pointer-events: none;
}

.center-stage::before {
  inset: clamp(1.2rem, 4vw, 2.4rem) clamp(0.6rem, 2vw, 1.2rem);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 28px 110px rgba(0, 0, 0, 0.48);
  opacity: 0.42;
  backdrop-filter: blur(12px);
}

.center-stage::after {
  inset: clamp(1.7rem, 5vw, 3rem) clamp(1rem, 3vw, 2rem);
  border-radius: 999px;
  opacity: 0.26;
  transform: rotate(-2deg);
}

.stage-glow {
  position: absolute;
  inset: 12%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.24), transparent 22%),
    radial-gradient(circle at 50% 58%, rgba(255, 255, 255, 0.095), transparent 58%);
  filter: blur(28px);
  opacity: 0.38;
  animation: breathe 3.8s ease-in-out infinite;
}

.name-lockup {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.name-kicker,
.section-kicker,
.project-meta {
  color: var(--dim);
  font-family: "Geist Mono", monospace;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.name-core {
  max-width: 54rem;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  color: rgba(246, 241, 232, 0.94);
  font-size: clamp(1.55rem, 3vw, 2.7rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.08;
  text-wrap: balance;
}

.name-core span:last-child {
  color: rgba(246, 241, 232, 0.68);
  font-family: "Geist Mono", monospace;
  font-size: clamp(0.76rem, 1.15vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.advance-cue {
  position: absolute;
  left: 50%;
  bottom: 1.35rem;
  color: rgba(246, 241, 232, 0.42);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: fadePulse 2.2s ease-in-out infinite;
}

.profile-panel {
  background:
    radial-gradient(circle at 50% 18%, rgba(255, 255, 255, 0.08), transparent 28rem),
    #050505;
}

.profile-shell,
.writing-card,
.project-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.068), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.11),
    0 28px 120px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(22px);
}

.profile-shell {
  width: min(100%, var(--max-width));
  display: grid;
  gap: clamp(1.35rem, 3vw, 2.1rem);
  padding: clamp(1.4rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  animation: fadeUp 800ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.section-kicker {
  margin-bottom: -0.65rem;
}

.profile-shell h1 {
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.94);
  font-size: clamp(3.2rem, 7.1vw, 5.75rem);
  font-weight: 600;
  letter-spacing: -0.082em;
  line-height: 0.86;
  white-space: nowrap;
}

.about-stack {
  display: grid;
  gap: 0.7rem;
}

.about-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.about-row p {
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.88);
  font-size: clamp(0.98rem, 1.8vw, 1.22rem);
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.18;
}

.about-row p span {
  color: rgba(246, 241, 232, 0.56);
}

.about-row-primary {
  margin-bottom: 0.15rem;
}

.logo-only-row {
  gap: 0.5rem;
}

.row-label {
  color: var(--dim);
  font-family: "Geist Mono", monospace;
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.44rem;
  min-height: 2.05rem;
  border: 1px solid rgba(246, 241, 232, 0.16);
  border-radius: 999px;
  padding: 0.46rem 0.74rem;
  color: rgba(246, 241, 232, 0.78);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.026)),
    rgba(255, 255, 255, 0.035);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.logo-badge img {
  width: 1rem;
  height: 1rem;
  border-radius: 4px;
  object-fit: contain;
}

.logo-only {
  width: 2.45rem;
  min-width: 2.45rem;
  padding-inline: 0;
}

.logo-only img {
  width: 1.08rem;
  height: 1.08rem;
}

.logo-furtherai {
  min-width: 7.2rem;
  color: #050505;
  background: rgba(246, 241, 232, 0.92);
}

.logo-ut {
  min-width: 2.5rem;
}

.logo-sprinklr,
.logo-bain,
.logo-perplexity,
.logo-codex {
  min-width: 2.45rem;
}

.link-row,
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.link-row a,
.social-row a,
.back-link,
.project-card a,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-bright);
  border-radius: 999px;
  color: rgba(246, 241, 232, 0.88);
  background: rgba(255, 255, 255, 0.045);
  font-family: "Geist Mono", monospace;
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.link-row a,
.social-row a {
  min-width: 7rem;
  padding: 0.84rem 1rem;
}

.social-row {
  gap: 0.62rem;
}

.social-row .social-icon {
  width: 3.25rem;
  min-width: 3.25rem;
  height: 3.25rem;
  padding: 0;
}

.social-icon svg,
.icon-button svg {
  width: 1.12rem;
  height: 1.12rem;
  fill: currentColor;
}

.primary-links a {
  min-width: min(100%, 18rem);
  color: #050505;
  background: rgba(246, 241, 232, 0.92);
}

.link-row a:hover,
.link-row a:focus-visible,
.social-row a:hover,
.social-row a:focus-visible,
.back-link:hover,
.back-link:focus-visible,
.project-card a:hover,
.project-card a:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(246, 241, 232, 0.62);
  background: rgba(255, 255, 255, 0.105);
}

.primary-links a:hover,
.primary-links a:focus-visible {
  color: #050505;
  background: #ffffff;
}

.detail-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 960px);
  display: grid;
  gap: clamp(1.2rem, 3vw, 1.8rem);
  margin: 0 auto;
  padding: clamp(1.2rem, 4vw, 2.2rem) 0 clamp(3rem, 7vw, 5rem);
}

.back-link {
  width: fit-content;
  padding: 0.68rem 0.9rem;
}

.detail-hero {
  min-height: min(58vh, 34rem);
  display: grid;
  align-content: end;
  gap: 1rem;
  padding: clamp(2.2rem, 7vw, 5rem) 0 clamp(1rem, 4vw, 2.4rem);
}

.detail-hero h1 {
  max-width: 10ch;
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.96);
  font-size: clamp(3.6rem, 12vw, 8.2rem);
  font-weight: 600;
  letter-spacing: -0.078em;
  line-height: 0.84;
}

.detail-hero p:last-child,
.writing-card p {
  max-width: 44rem;
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.72);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
}

.project-stack {
  display: grid;
  gap: 0.85rem;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(18rem, 1.35fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
  border-radius: 24px;
  padding: clamp(1.1rem, 2.8vw, 1.6rem);
}

.project-heading {
  display: grid;
  grid-template-columns: minmax(0, max-content) auto;
  gap: 0.72rem;
  align-items: center;
}

.project-card h2,
.writing-card h2 {
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.94);
  font-size: clamp(1.35rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.95;
}

.win-note {
  grid-column: 1 / -1;
  margin: 0.55rem 0 0;
  color: rgba(246, 241, 232, 0.46);
  font-family: "Geist Mono", monospace;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.25;
  text-transform: uppercase;
}

.project-meta {
  margin-bottom: 0.55rem;
  color: rgba(246, 241, 232, 0.42);
  font-size: 0.66rem;
}

.project-card p {
  margin-bottom: 0;
  color: rgba(246, 241, 232, 0.72);
}

.project-card a {
  padding: 0.72rem 0.9rem;
  white-space: nowrap;
}

.icon-button {
  width: 3.2rem;
  min-width: 3.2rem;
  height: 3.2rem;
  padding: 0;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
}

.icon-link-row {
  gap: 0.55rem;
}

.writing-card {
  display: grid;
  gap: 0.9rem;
  border-radius: 26px;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.writing-card p a {
  color: rgba(246, 241, 232, 0.9);
  text-decoration-color: rgba(246, 241, 232, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-widget {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: clamp(0.9rem, 3vw, 1.6rem);
  z-index: 20;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border: 1px solid rgba(246, 241, 232, 0.2);
  border-radius: 999px;
  padding: 0.38rem;
  color: rgba(246, 241, 232, 0.88);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(5, 5, 5, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 52px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}

.contact-widget__label,
.contact-widget a {
  font-family: "Geist Mono", monospace;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.contact-widget__label {
  padding: 0 0.48rem 0 0.58rem;
  color: rgba(246, 241, 232, 0.52);
}

.contact-widget a {
  display: inline-flex;
  min-height: 2rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 241, 232, 0.18);
  border-radius: 999px;
  padding: 0 0.68rem;
  color: rgba(246, 241, 232, 0.9);
  background: rgba(255, 255, 255, 0.055);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.contact-widget a:hover,
.contact-widget a:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(246, 241, 232, 0.52);
  background: rgba(255, 255, 255, 0.13);
  outline: none;
}

/* Legacy pages remain readable if visited directly. */
.shell {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, 960px);
  margin: 0 auto;
}

.top-nav,
.footer {
  position: relative;
  z-index: 1;
}

.top-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(18px);
}

.nav-inner,
.footer,
.footer-links,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  align-items: center;
  justify-content: space-between;
}

.brand,
.nav-links a,
.footer-links a,
.cta-row a,
.text-link,
.btn {
  color: rgba(246, 241, 232, 0.82);
  font-family: "Geist Mono", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-inner {
  min-height: 4rem;
}

.nav-links,
.footer-links,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero {
  padding: clamp(4rem, 10vw, 8rem) 0 2rem;
}

.hero h1,
.shell h2 {
  color: rgba(246, 241, 232, 0.94);
}

.lead,
.contact-line,
.footer-note,
.project-item p {
  color: rgba(246, 241, 232, 0.72);
}

.project-list {
  display: grid;
  gap: 1rem;
}

.project-item,
.writing-box {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 1.2rem;
  background: rgba(255, 255, 255, 0.04);
}

.footer {
  padding: 2rem 0 3rem;
}

@keyframes stageIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(18px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes breathe {
  50% {
    opacity: 0.45;
    transform: scale(1.06);
  }
}

@keyframes fadePulse {
  50% {
    opacity: 0.32;
    transform: translateX(-50%) translateY(-4px);
  }
}

@media (max-width: 780px) {
  body.landing-page {
    overflow: auto;
  }

  .snap-shell {
    scroll-snap-type: y proximity;
  }

  .center-stage {
    width: min(100%, 36rem);
    min-height: 12rem;
  }

  .name-core {
    max-width: 28rem;
    font-size: clamp(1.45rem, 7vw, 2.2rem);
  }

  .profile-shell {
    border-radius: 22px;
  }

  .profile-shell h1 {
    font-size: clamp(2.35rem, 11vw, 4.2rem);
    white-space: normal;
  }

  .project-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .project-heading {
    grid-template-columns: minmax(0, max-content) auto;
  }

  .detail-hero {
    min-height: 46vh;
  }

  .detail-hero h1 {
    font-size: clamp(3.6rem, 17vw, 6.2rem);
  }

  .contact-widget {
    right: 0.8rem;
    bottom: 0.8rem;
  }

  .contact-widget__label {
    display: none;
  }
}

@media (max-height: 640px) {
  .center-stage {
    min-height: 10rem;
    padding: 1.5rem;
  }

  .name-core {
    font-size: clamp(1.25rem, 4vw, 1.9rem);
  }

  .advance-cue {
    bottom: 0.8rem;
  }
}

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