:root {
  --bg: #f7f7f5;
  --bg-elevated: #ffffff;
  --ink: #0c0c0c;
  --ink-2: #3d3d3d;
  --muted: #737373;
  --line: rgba(12, 12, 12, 0.08);
  --line-strong: rgba(12, 12, 12, 0.14);
  --accent: #0d9488;
  --accent-soft: #ccfbf1;
  --dark: #0c0c0c;
  --dark-text: #f5f5f4;
  --dark-muted: #a3a3a3;
  --radius: 14px;
  --radius-sm: 10px;
  --font: "Satoshi", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --nav-h: 4rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(13, 148, 136, 0.2);
  color: var(--ink);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0.028;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 300;
  background: var(--accent);
  color: #fff;
  padding: 0.6rem 1rem;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

.wrap {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(247, 247, 245, 0.85);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  z-index: 60;
}

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
}

.logo-text {
  font-weight: 650;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.25rem;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}

.nav-links a:not(.nav-cta):hover::after,
.nav-links a:not(.nav-cta).is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  padding: 0.45rem 0.95rem !important;
  background: var(--ink);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover {
  background: #262626 !important;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0.55rem;
  z-index: 60;
}

.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  margin: 6px 0;
  transition: transform 0.35s var(--ease);
}

/* ——— Hero ——— */
.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 3rem) var(--gutter) 4rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 4rem;
  }
}

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 1.5rem;
  animation: fade-up 0.8s var(--ease) both;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45);
  animation: pulse 2.4s ease infinite;
}

.hero-name {
  font-size: clamp(3.5rem, 10vw, 6.5rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 0.75rem;
}

.name-line {
  display: block;
  overflow: hidden;
}

.name-line.serif {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
}

.hero-role {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 1rem;
  animation: fade-up 0.8s var(--ease) 0.15s both;
}

.hero-lede {
  max-width: 32rem;
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  animation: fade-up 0.8s var(--ease) 0.25s both;
}

.hero-lede em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  margin-bottom: 2.75rem;
  animation: fade-up 0.8s var(--ease) 0.35s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 999px;
  padding: 0.8rem 1.25rem;
  transition: transform 0.3s var(--ease), background 0.25s, color 0.25s,
    border-color 0.25s, gap 0.3s;
}

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

.btn-primary {
  background: var(--ink);
  color: #fff;
}

.btn-primary:hover {
  background: #262626;
  gap: 0.75rem;
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  background: var(--bg-elevated);
  color: var(--ink);
}

.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-text {
  padding-inline: 0.4rem;
  color: var(--muted);
  font-weight: 500;
}

.btn-text:hover {
  color: var(--ink);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  animation: fade-up 0.8s var(--ease) 0.45s both;
}

.hero-proof li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hero-proof strong {
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.hero-proof span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-photo {
  justify-self: center;
  width: min(100%, 22rem);
}

.photo-frame {
  aspect-ratio: 1;
  border-radius: 28% 28% 22% 22%;
  overflow: hidden;
  background: var(--dark);
  box-shadow:
    0 0 0 1px var(--line),
    0 24px 48px rgba(12, 12, 12, 0.1);
  position: relative;
}

.photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  transition: transform 1.2s var(--ease);
}

.hero-photo:hover .photo-frame img {
  transform: scale(1.04);
}

.photo-caption {
  margin-top: 0.85rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ——— Sections ——— */
.section {
  padding: clamp(4.5rem, 10vw, 7rem) 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.section-head {
  margin-bottom: 2.75rem;
  max-width: 28rem;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  letter-spacing: -0.025em;
  line-height: 1.08;
  max-width: 14ch;
}

/* About */
.about-layout {
  display: grid;
  gap: 2rem;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about-body p {
  color: var(--ink-2);
  font-size: 1.05rem;
  max-width: 38rem;
}

.about-body strong {
  color: var(--ink);
  font-weight: 600;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.5rem;
}

.pill-row span {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-2);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
}

/* Work */
.work {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.projects {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project {
  display: grid;
  gap: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.4s;
}

a.project:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(12, 12, 12, 0.08);
  border-color: var(--line-strong);
}

@media (min-width: 800px) {
  .project {
    grid-template-columns: 15rem 1fr;
  }
  .project.featured {
    grid-template-columns: 1.05fr 1fr;
  }
  .project.featured .project-visual {
    min-height: 280px;
  }
}

.project-visual {
  min-height: 140px;
  position: relative;
  padding: 1rem;
  display: flex;
  align-items: flex-start;
}

.badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.badge.live {
  background: var(--accent);
  color: #fff;
}

.v-pulse {
  background: linear-gradient(145deg, #0f766e 0%, #115e59 40%, #134e4a 100%);
}
.v-citi {
  background: linear-gradient(145deg, #0e4d6b, #1a7a9a);
}
.v-omni {
  background: linear-gradient(145deg, #1e1b4b, #312e81 50%, #0f766e);
}
.v-uml {
  background: linear-gradient(145deg, #1c1917, #44403c);
}
.v-cv,
.v-cv2 {
  background: linear-gradient(145deg, #7f1d1d, #991b1b);
}
.v-bi {
  background: linear-gradient(145deg, #1e3a8a, #2563eb);
}
.v-ml {
  background: linear-gradient(145deg, #14532d, #166534);
}
.v-caption {
  background: linear-gradient(145deg, #1e293b, #334155);
}

.project-content {
  padding: 1.5rem 1.6rem 1.65rem;
}

.project-meta {
  display: flex;
  gap: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.project-content h3 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  margin-bottom: 0.55rem;
}

.arrow {
  opacity: 0.35;
  font-size: 0.8em;
  transition: opacity 0.25s, transform 0.25s;
  display: inline-block;
}

a.project:hover .arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

.project-content > p {
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 40rem;
  margin-bottom: 1rem;
}

.tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tech li {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.project-links {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.link-inline {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Experience */
.timeline {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
}

.exp {
  display: grid;
  gap: 0.5rem 2.5rem;
  padding: 1.85rem 0;
  border-top: 1px solid var(--line);
}

.exp:last-child {
  border-bottom: 1px solid var(--line);
}

@media (min-width: 720px) {
  .exp {
    grid-template-columns: 11rem 1fr;
  }
}

.exp time {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  padding-top: 0.2rem;
}

.exp h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.org {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 0.55rem !important;
}

.exp p:last-child {
  color: var(--ink-2);
  margin: 0;
  font-size: 0.98rem;
}

/* Skills */
.skills {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.skill-grid {
  display: grid;
  gap: 0.85rem;
}

@media (min-width: 720px) {
  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skill-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem 1.45rem;
  transition: border-color 0.3s, transform 0.3s var(--ease);
}

.skill-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.skill-card h3 {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  font-weight: 700;
}

.skill-card p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.98rem;
  line-height: 1.7;
  font-weight: 500;
}

/* Research */
.paper {
  background: var(--dark);
  color: var(--dark-text);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  margin-bottom: 1rem;
}

.paper-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5eead4;
  margin-bottom: 0.85rem;
}

.paper h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.paper p:last-child {
  color: var(--dark-muted);
  margin: 0;
  max-width: 42rem;
  font-size: 0.98rem;
}

.cred-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 800px) {
  .cred-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.cred {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.35rem;
}

.cred h4 {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
}

.cred li {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.95rem;
}

.cred li:last-child {
  margin-bottom: 0;
}

.cred strong {
  font-size: 0.98rem;
  letter-spacing: -0.015em;
}

.cred span {
  font-size: 0.88rem;
  color: var(--muted);
}

/* Contact */
.contact {
  background: var(--dark);
  color: var(--dark-text);
  text-align: center;
  padding-block: clamp(5rem, 12vw, 8rem);
}

.contact .section-label {
  color: #5eead4;
}

.contact-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.25rem);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 1.75rem;
}

.contact-title em {
  font-style: italic;
  color: #5eead4;
}

.contact-mail {
  display: inline-block;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 245, 244, 0.25);
  padding-bottom: 0.15rem;
  margin-bottom: 1.5rem;
  transition: color 0.25s, border-color 0.25s;
}

.contact-mail:hover {
  color: #5eead4;
  border-color: #5eead4;
}

.contact-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--dark-muted);
}

.contact-meta a {
  text-decoration: none;
  transition: color 0.2s;
}

.contact-meta a:hover {
  color: var(--dark-text);
}

.contact-meta .sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(245, 245, 244, 0.3);
}

/* Footer */
.footer {
  background: var(--dark);
  border-top: 1px solid rgba(245, 245, 244, 0.08);
  color: var(--dark-muted);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 0 1.75rem;
}

.footer p {
  margin: 0;
}

.footer a {
  text-decoration: none;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--dark-text);
}

/* Motion */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.45);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(13, 148, 136, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .reveal,
  .hero-status,
  .hero-role,
  .hero-lede,
  .hero-actions,
  .hero-proof,
  .dot {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* Press / highlights */
.highlights-lede {
  max-width: 40rem;
  color: var(--ink-2);
  margin: 0 0 1.75rem;
}

.press-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.press-list li {
  border-bottom: 1px solid var(--line);
}

.press-list a {
  display: grid;
  grid-template-columns: minmax(7rem, 9.5rem) 1fr;
  gap: 1rem;
  padding: 1.1rem 0;
  text-decoration: none;
  align-items: baseline;
  transition: color 0.2s var(--ease);
}

.press-list a:hover .press-title {
  color: var(--accent);
}

.press-src {
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.press-title {
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.35;
}

@media (max-width: 640px) {
  .press-list a {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
}

/* Mobile */
@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(247, 247, 245, 0.98);
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 650;
    color: var(--ink);
  }

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

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

  .hero-proof {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .hero-proof {
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
  }
}
