
:root {
  --bg: #090b1b;
  --surface: rgba(14, 20, 46, 0.52);
  --surface-strong: rgba(20, 27, 61, 0.82);
  --text: #eef2ff;
  --muted: #bcc7f7;
  --line: rgba(205, 216, 255, 0.14);
  --accent: #9d7bff;
  --accent-deep: #7bdcff;
  --shadow: 0 30px 80px rgba(3, 8, 27, 0.36);
  --radius-lg: 32px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(123, 220, 255, 0.22), transparent 0 28%),
    radial-gradient(circle at 80% 15%, rgba(157, 123, 255, 0.28), transparent 0 24%),
    radial-gradient(circle at 50% 80%, rgba(68, 114, 255, 0.24), transparent 0 30%),
    linear-gradient(160deg, #050816 0%, #111b3f 38%, #241159 68%, #090b1b 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 88%);
}

body::after {
  content: "";
  position: fixed;
  inset: -12% -10%;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(123, 220, 255, 0.14), transparent 55%),
    radial-gradient(circle, rgba(157, 123, 255, 0.18), transparent 48%);
  background-position:
    calc(20% + (var(--scroll, 0) * 8px)) calc(10% + (var(--scroll, 0) * 18px)),
    calc(78% - (var(--scroll, 0) * 10px)) calc(75% - (var(--scroll, 0) * 12px));
  filter: blur(36px);
  opacity: 0.9;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 20px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, #7bdcff, #9d7bff);
  color: #07101f;
  overflow: hidden;
}

.brand img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero {
  min-height: calc(100vh - 120px);
  display: grid;
  place-items: center;
  padding: 56px 0 24px;
}

.panel,
.project-card,
.writing-item,
.contact-section,
.proof-strip article {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.eyebrow,
.proof-kicker,
.project-type,
.writing-date,
.card-label {
  margin: 0 0 14px;
  color: var(--accent-deep);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 8vw, 6.4rem);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.1;
}

.accent-script {
  display: inline-block;
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  transform: translateY(-0.04em);
}

.panel p,
.project-card p,
.writing-item p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
}

.hero-message {
  width: min(100%, 1040px);
  padding: 0 16px;
}

.hero-line {
  margin: 0;
  font-size: clamp(3.4rem, 8vw, 7rem);
  line-height: 1.05;
  letter-spacing: -0.06em;
  font-weight: 500;
}

.hero-prefix {
  color: var(--text);
}

.hero-word {
  font-weight: 800;
  transition: color 240ms ease;
}

.hero-cursor {
  display: inline-block;
  width: 0.08em;
  height: 0.95em;
  margin-left: 0.08em;
  vertical-align: -0.08em;
  background: currentColor;
  animation: blink 900ms steps(1) infinite;
}

.idea-bar {
  position: relative;
  width: min(100%, 620px);
  margin-top: 32px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

.idea-bar.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.idea-bar input {
  width: 100%;
  min-height: 56px;
  padding: 0 22px 0 62px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(219, 222, 255, 0.34);
  color: var(--text);
  font: inherit;
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  letter-spacing: -0.02em;
  outline: none;
  box-shadow: 0 24px 60px rgba(5, 8, 22, 0.24);
  backdrop-filter: blur(18px);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease,
    box-shadow 220ms ease;
}

.idea-bar input::placeholder {
  color: rgba(238, 242, 255, 0.9);
}

.idea-bar:hover input,
.idea-bar:focus-within input {
  transform: translateY(-2px);
  border-color: rgba(255, 216, 107, 0.55);
  background: rgba(219, 222, 255, 0.4);
  box-shadow: 0 28px 72px rgba(5, 8, 22, 0.3);
}

.idea-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  transform: translateY(-50%);
  color: rgba(238, 242, 255, 0.92);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    color 180ms ease;
}

.idea-star {
  opacity: 0;
  transform: translateY(-50%) scale(0.55) rotate(-12deg);
  color: #ffd86b;
}

.idea-icon svg {
  display: block;
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.idea-star svg {
  fill: currentColor;
  stroke: none;
}

.idea-bar:hover .idea-search,
.idea-bar:focus-within .idea-search {
  opacity: 0;
  transform: translateY(-50%) scale(0.65);
}

.idea-bar:hover .idea-star,
.idea-bar:focus-within .idea-star {
  opacity: 1;
  transform: translateY(-50%) scale(1) rotate(0deg);
}

.story-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 140px);
}

.story-gallery,
.story-copy {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  border-radius: var(--radius-lg);
}

.story-gallery {
  padding: 26px;
}

.story-stack {
  position: relative;
  min-height: 500px;
}

.story-shot {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(4, 8, 24, 0.34);
  opacity: 0;
  transform: translateX(22px) scale(0.98) rotate(-1deg);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.story-shot.is-active {
  opacity: 1;
  transform: translateX(0) scale(1) rotate(0deg);
}

.story-shot img {
  display: block;
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.story-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}

.story-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
  transition: transform 220ms ease, background-color 220ms ease;
}

.story-dots span.is-active {
  transform: scale(1.2);
  background: linear-gradient(135deg, #7bdcff, #9d7bff);
}

.story-copy {
  padding: 38px;
}

.story-title {
  margin-bottom: 28px;
  font-size: clamp(2.3rem, 4.2vw, 3.8rem);
  line-height: 1.02;
  text-transform: none;
}

.story-title-highlight {
  color: #ffd86b;
  font-style: italic;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
  animation: story-highlight-shift 4s ease-in-out 1s infinite alternate;
}

.story-title-highlight.is-shifted {
  color: #7bdcff;
}

.story-points {
  display: grid;
  gap: 22px;
}

.story-point {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  line-height: 1.4;
  font-weight: 700;
}

.story-point-icon {
  flex: 0 0 52px;
  width: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  line-height: 1;
}

.story-point-campus {
  color: #8fe0ff;
}

.story-point-interests {
  color: #ffd86b;
}

.story-point-hobbies {
  color: #ff826d;
}

.story-point-quote {
  color: #49ffb0;
}

.story-point-icon-unc svg {
  width: 40px;
  height: 40px;
  stroke: currentColor;
  stroke-width: 2.6;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes story-highlight-shift {
  0%,
  24% {
    color: #ffd86b;
  }

  25%,
  49% {
    color: #7bdcff;
  }

  50%,
  74% {
    color: #ff8f7a;
  }

  75%,
  100% {
    color: #7effbf;
  }
}

.project-launch {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 36px 32px 24px;
  text-align: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-lg);
  box-shadow: none;
  backdrop-filter: none;
}

.project-mark {
  margin-bottom: 28px;
  font-family: "Instrument Serif", serif;
  font-size: clamp(4.2rem, 9vw, 6.4rem);
  font-style: italic;
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.project-drop-line,
.project-drop-subline {
  margin-left: auto;
  margin-right: auto;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-drop-line {
  margin-bottom: 30px;
  color: rgba(238, 242, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.project-drop-subline {
  margin-bottom: 34px;
  color: rgba(188, 199, 247, 0.82);
  font-size: 0.82rem;
  font-weight: 600;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 0;
}

.countdown-block {
  padding: 18px 10px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.countdown-value {
  display: block;
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.countdown-label {
  display: block;
  margin-top: 6px;
  color: rgba(188, 199, 247, 0.9);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.project-scroll-cue {
  margin: 18px 0 0;
  color: rgba(238, 242, 255, 0.7);
  font-size: 2rem;
  line-height: 1;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, #7bdcff, #9d7bff);
  color: #07101f;
}

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

@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }

  50%,
  100% {
    opacity: 0;
  }
}

.focus-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.metric-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  font-size: 0.85rem;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.proof-strip article,
.panel,
.project-card,
.writing-item {
  border-radius: var(--radius-md);
}

.proof-strip article {
  padding: 26px;
}

.proof-strip h2 {
  font-size: 1.35rem;
  line-height: 1.2;
}

.section {
  padding: 88px 0 0;
}

.section-heading {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.cards.three-up {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.panel {
  padding: 28px;
}

.panel-index {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--accent);
  font-weight: 800;
}

.project-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.project-card {
  padding: 30px;
  min-height: 260px;
}

.featured {
  background:
    linear-gradient(140deg, rgba(123, 220, 255, 0.28), rgba(157, 123, 255, 0.4)),
    var(--surface);
  color: #fffaf5;
}

.featured .project-type,
.featured p,
.featured .tag-row span {
  color: inherit;
}

.featured .tag-row span {
  border-color: rgba(255, 250, 245, 0.28);
  background: rgba(255, 255, 255, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.tag-row span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.88rem;
}

.split-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.writing-list {
  display: grid;
  gap: 16px;
}

.writing-item {
  padding: 26px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  margin-top: 88px;
  border-radius: var(--radius-lg);
}

.contact-section h2 {
  line-height: 1.12;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .scroll-reveal,
  .scroll-reveal.is-visible,
  .button {
    transition: none;
    transform: none;
    opacity: 1;
  }

  body::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .hero,
  .story-section,
  .proof-strip,
  .cards.three-up,
  .project-grid,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 56px;
    min-height: calc(100vh - 140px);
  }

  .story-stack {
    min-height: 420px;
  }

  .story-shot img {
    height: 420px;
  }

  .contact-section {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .site-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-top: 16px;
  }

  .topbar {
    border-radius: 28px;
    padding: 16px 18px;
  }

  .nav {
    gap: 14px;
    font-size: 0.9rem;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-copy,
  .story-gallery,
  .story-copy,
  .proof-strip article,
  .panel,
  .project-card,
  .writing-item,
  .contact-section {
    padding: 22px;
  }

  .hero-message {
    padding: 0 6px;
  }

  .hero-line {
    font-size: clamp(2.6rem, 11vw, 4.6rem);
    line-height: 1.08;
  }

  .story-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .story-point {
    font-size: 0.92rem;
  }

  .story-point-icon {
    flex-basis: 44px;
    width: 44px;
    font-size: 1.55rem;
  }

  .story-point-icon-unc svg {
    width: 34px;
    height: 34px;
  }

  .idea-bar {
    width: min(100%, 500px);
    margin-top: 24px;
  }

  .idea-bar input {
    min-height: 52px;
    padding-left: 56px;
    font-size: 1rem;
  }

  .project-launch {
    padding: 28px 18px 18px;
  }

  .countdown-grid {
    grid-template-columns: repeat(2, 1fr);
  }


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