@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Syne:wght@500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,400&display=swap");

:root {
  --bg0: #07060a;
  --bg1: #0e0c14;
  --surface: rgba(255, 255, 255, 0.04);
  --surface2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.62);
  --faint: rgba(244, 241, 234, 0.38);

  --accent: #7cf6c9;
  --accent2: #c4a7ff;
  --danger-lo: #ff4d6d;

  --font-display: "Syne", system-ui, sans-serif;
  --font-serif: "Instrument Serif", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-glow: 0 0 80px rgba(124, 246, 201, 0.12);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: radial-gradient(1200px 800px at 12% -10%, rgba(196, 167, 255, 0.12), transparent 55%),
    radial-gradient(900px 600px at 88% 10%, rgba(124, 246, 201, 0.09), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 38%, var(--bg0));
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: clip;
}

.shell:not(.reduce-motion) {
  cursor: none;
}

.shell:not(.reduce-motion) a,
.shell:not(.reduce-motion) button,
.shell:not(.reduce-motion) [role="button"] {
  cursor: none;
}

body.reduce-motion *,
body.reduce-motion *::before,
body.reduce-motion *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}

.shell {
  position: relative;
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.055;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

.cursor {
  --ds: 1;
  --rs: 1;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  display: var(--cursor-display, none);
}

.shell:not(.reduce-motion) .cursor {
  --cursor-display: block;
}

.cursor__ring {
  position: absolute;
  left: var(--rx, 50vw);
  top: var(--ry, 50vh);
  width: 44px;
  height: 44px;
  margin: 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: radial-gradient(circle at 30% 25%, rgba(124, 246, 201, 0.12), transparent 55%);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35), 0 12px 40px rgba(0, 0, 0, 0.35);
  transform: translate3d(-50%, -50%, 0) scale(var(--rs, 1));
  transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  will-change: transform, left, top;
}

.cursor__dot {
  position: absolute;
  left: var(--dx, 50vw);
  top: var(--dy, 50vh);
  width: 8px;
  height: 8px;
  margin: 0;
  border-radius: 999px;
  background: #fff;
  mix-blend-mode: difference;
  transform: translate3d(-50%, -50%, 0) scale(var(--ds, 1));
  will-change: transform, left, top;
  transition: opacity 0.2s ease;
}

.cursor.is-down .cursor__ring {
  transform: translate3d(-50%, -50%, 0) scale(calc(var(--rs, 1) * 0.88));
}

.cursor.is-hover .cursor__ring {
  border-color: rgba(124, 246, 201, 0.85);
  background: radial-gradient(circle at 35% 30%, rgba(124, 246, 201, 0.22), transparent 60%);
  box-shadow: 0 0 0 1px rgba(124, 246, 201, 0.25), 0 18px 50px rgba(124, 246, 201, 0.12);
}

.cursor.is-hover .cursor__dot {
  opacity: 0.95;
}

@media (hover: none), (pointer: coarse) {
  .shell:not(.reduce-motion),
  .shell:not(.reduce-motion) a,
  .shell:not(.reduce-motion) button {
    cursor: auto;
  }
  .cursor {
    --cursor-display: none !important;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  z-index: 100;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform-origin: 0 50%;
  transform: scaleX(0);
  opacity: 0.9;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  padding: 0.6rem 1rem;
  background: var(--text);
  color: var(--bg0);
  border-radius: 8px;
  font-weight: 600;
  z-index: 200;
}

.skip-link:focus {
  left: 12px;
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.shell-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
}

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  padding-block: 1.1rem;
  border-bottom: 1px solid transparent;
  background: rgba(7, 6, 10, 0.52);
  backdrop-filter: blur(16px);
  transition: border-color 0.35s var(--ease-out), padding 0.35s var(--ease-out);
}

.nav--dense {
  padding-block: 0.65rem;
  border-color: var(--border);
}

.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: clamp(1.1rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

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

.nav-brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 12px;
}

.nav-brand__mark {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(124, 246, 201, 0.22), rgba(196, 167, 255, 0.18));
  border: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.85rem;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease-out);
}

.nav-icon:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.nav-icon:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.nav-icon__svg {
  display: block;
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding-block: clamp(3rem, 10vw, 7rem) clamp(2rem, 6vw, 4rem);
  position: relative;
}

.hero-kicker {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.45rem, 6.8vw, 4.9rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero-line {
  display: block;
}

.hero-line + .hero-line {
  margin-top: 0.12em;
}

.hero-word {
  display: inline-block;
  margin-right: 0.18em;
}

.hero-word--serif {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.02em;
}

.hero-word--accent {
  background: linear-gradient(120deg, var(--accent), var(--accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  margin: 1.75rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.1vw, 1.15rem);
  color: var(--muted);
}

.hero-sub em {
  color: var(--text);
  font-style: italic;
}

.hero-hint {
  margin: 2rem 0 0;
}

.hero-hint__link {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(244, 241, 234, 0.22);
  transition: color 0.25s ease;
}

.hero-hint__link:hover {
  color: var(--faint);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.logos-section {
  margin-top: 2.75rem;
  padding-block: 0.25rem;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
}

.logos-viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logos-track {
  display: flex;
  width: max-content;
  animation: logos-marquee 55s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .logos-track {
    animation: none;
  }
}

@keyframes logos-marquee {
  to {
    transform: translateX(-50%);
  }
}

.logos-set {
  --lx: 50%;
  --ly: 50%;
  --lens-r: 90px;
  position: relative;
  display: grid;
  grid-template: 1fr / 1fr;
  width: max-content;
  flex: 0 0 auto;
}

.logos-layer {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: clamp(2rem, 6vw, 4.25rem);
  padding: 1rem 1.5rem 1rem 0;
}

.logos-layer--mono {
  z-index: 2;
  pointer-events: none;
  filter: grayscale(1) contrast(1.06) brightness(1.03);
  -webkit-mask-image: radial-gradient(
    circle var(--lens-r) at var(--lx) var(--ly),
    transparent 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.96) 72%
  );
  mask-image: radial-gradient(
    circle var(--lens-r) at var(--lx) var(--ly),
    transparent 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.96) 72%
  );
}

.logo-img {
  display: block;
  height: clamp(26px, 4.5vw, 42px);
  width: auto;
  max-width: min(132px, 22vw);
  object-fit: contain;
  object-position: center;
  flex-shrink: 0;
}

.work {
  padding-block: clamp(2rem, 6vw, 4rem) clamp(4rem, 10vw, 6rem);
}

.work-header {
  display: grid;
  gap: 1rem;
  margin-bottom: 2rem;
}

.work-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

.work-lede {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.work-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
  align-items: start;
}

@media (min-width: 960px) {
  .work-wrap {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: stretch;
  }
}

.work-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 1.15rem 1.15rem;
  margin: 0 -1.15rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease-out), background 0.35s var(--ease-out), transform 0.35s var(--ease-out);
  overflow: hidden;
}

.work-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 220px at var(--px, 50%) var(--py, 50%),
    var(--spot, rgba(124, 246, 201, 0.16)),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}

.work-row:hover::before {
  opacity: 1;
}

.work-row[data-color="cyan"] {
  --spot: rgba(124, 246, 201, 0.2);
}
.work-row[data-color="violet"] {
  --spot: rgba(196, 167, 255, 0.2);
}
.work-row[data-color="amber"] {
  --spot: rgba(255, 200, 120, 0.18);
}
.work-row[data-color="rose"] {
  --spot: rgba(255, 120, 160, 0.18);
}
.work-row[data-color="lime"] {
  --spot: rgba(200, 255, 140, 0.18);
}
.work-row[data-color="sky"] {
  --spot: rgba(120, 200, 255, 0.18);
}

.work-row:hover {
  border-color: var(--border);
  background: var(--surface);
  transform: translateY(-2px);
}

.work-row:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.work-row__idx {
  grid-column: 1;
  grid-row: 1 / span 2;
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--faint);
  align-self: start;
  padding-top: 0.2rem;
}

.work-row__title {
  grid-column: 2;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0;
}

.work-row__meta {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.work-row__arrow {
  position: absolute;
  right: 1.25rem;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.25rem;
  opacity: 0.35;
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}

.work-row:hover .work-row__arrow {
  transform: translateX(6px);
  opacity: 0.85;
}

@media (min-width: 820px) {
  .work-row {
    grid-template-columns: 3.2rem minmax(160px, 1fr) minmax(200px, 1.5fr) auto;
    gap: 0 1.5rem;
    align-items: center;
    padding: 1.35rem 1.25rem;
  }
  .work-row__idx {
    grid-column: 1;
    grid-row: 1;
  }
  .work-row__title {
    grid-column: 2;
  }
  .work-row__meta {
    grid-column: 3;
  }
  .work-row__arrow {
    grid-column: 4;
    position: static;
    translate: none;
    justify-self: end;
  }
}

/* Stacked preview (inspired by editorial card stacks) */
.work-preview {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.work-preview__stack {
  position: relative;
  height: min(68vw, 440px);
  min-height: 260px;
  max-height: 480px;
  perspective: 1400px;
  transform-style: preserve-3d;
}

@media (min-width: 960px) {
  .work-preview {
    position: sticky;
    top: 5.5rem;
    margin: 0;
    max-width: none;
  }
}

.work-preview__card {
  position: absolute;
  inset: 0 auto auto 0;
  width: 88%;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
  transform-origin: 88% 12%;
  transition: transform 0.72s var(--ease-out), opacity 0.55s ease, filter 0.55s ease,
    box-shadow 0.45s ease;
  pointer-events: none;
  will-change: transform;
}

.work-preview__card img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.work-preview__stack > .work-preview__card:nth-child(1) {
  z-index: 1;
  transform: translate3d(0, 20%, 0) rotate(-3.5deg) scale(0.93);
  opacity: 0.7;
  filter: saturate(0.85) brightness(0.9);
}

.work-preview__stack > .work-preview__card:nth-child(2) {
  z-index: 2;
  transform: translate3d(8%, 9%, 0) rotate(2deg) scale(0.97);
  opacity: 0.86;
  filter: saturate(0.92);
}

.work-preview__stack > .work-preview__card:nth-child(3) {
  z-index: 3;
  transform: translate3d(16%, 0, 0) rotate(5deg) scale(1);
  opacity: 1;
  filter: none;
}

.work-preview.is-tick .work-preview__card {
  transition-duration: 0.52s;
}

.work-preview.is-hover .work-preview__stack > .work-preview__card:nth-child(3) {
  box-shadow: 0 34px 90px rgba(124, 246, 201, 0.1);
}

.footer {
  position: relative;
  padding-block: clamp(4rem, 12vw, 7rem) clamp(3rem, 8vw, 5rem);
  overflow: hidden;
}

.footer-inner {
  position: relative;
}

.footer-orbit {
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background: radial-gradient(closest-side, rgba(124, 246, 201, 0.12), transparent 70%),
    radial-gradient(closest-side at 70% 40%, rgba(196, 167, 255, 0.14), transparent 65%);
  pointer-events: none;
}

.footer-content {
  position: relative;
  max-width: 720px;
}

.footer-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.1rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.footer-copy {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 36rem;
}

.footer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(124, 246, 201, 0.95), rgba(196, 167, 255, 0.95));
  color: #0c0b11;
  border-color: transparent;
  box-shadow: 0 18px 60px rgba(124, 246, 201, 0.18);
}

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

.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.footer-fineprint {
  margin: 2.5rem 0 0;
  font-size: 0.82rem;
  color: var(--faint);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s var(--ease-out), transform 0.85s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

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

/* Stagger hero lines */
.hero-line:nth-of-type(1) {
  --delay: 60ms;
}
.hero-line:nth-of-type(2) {
  --delay: 140ms;
}

/* --- About / CV section --- */
.about {
  padding-block: clamp(3rem, 9vw, 5rem) clamp(4rem, 12vw, 6rem);
}

.about-heading {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  letter-spacing: -0.03em;
}

.about-lede {
  margin: 1rem 0 0;
  max-width: 42rem;
  font-size: 1.08rem;
  color: var(--muted);
  line-height: 1.65;
}

.about-lede strong {
  color: var(--text);
}

.about-highlights {
  display: grid;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

@media (min-width: 720px) {
  .about-highlights {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.hi-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.15rem 1.2rem;
  transition: transform 0.35s var(--ease-out), border-color 0.25s ease, box-shadow 0.35s ease;
}

.hi-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hi-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hi-card__text {
  margin: 0.55rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.about-skills {
  margin-top: 2.75rem;
}

.about-subtitle {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-pill {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.22s ease, border-color 0.22s ease, background 0.22s ease, transform 0.22s var(--ease-out);
}

.skill-pill:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.skill-pill.is-picked {
  color: #0c0b11;
  background: linear-gradient(120deg, rgba(124, 246, 201, 0.9), rgba(196, 167, 255, 0.85));
  border-color: transparent;
}

.skill-status {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
  color: var(--faint);
  min-height: 1.35em;
}

.about-timeline {
  margin-top: 2.75rem;
}

.role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.role {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.role:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.role__summary {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-display);
}

.role__summary::-webkit-details-marker {
  display: none;
}

.role__title {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.role__meta {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--faint);
}

.role__body {
  padding: 0 1.1rem 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.role__body ul {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.role__body li {
  margin: 0.35rem 0;
}

.about-edu {
  margin-top: 2rem;
}

.edu-line {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.edu-line strong {
  color: var(--text);
}

/* --- Project (inner) pages --- */
.project-shell {
  min-height: 100vh;
}

.project-shell main {
  max-width: 800px;
  margin: 0 auto;
  padding: clamp(5.5rem, 12vw, 6.5rem) clamp(1.1rem, 4vw, 2.5rem) clamp(3rem, 8vw, 5rem);
}

.project-shell .nav {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.4rem 0.75rem;
  margin-left: -0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--border);
  background: var(--surface);
}

.back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-page h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.project-page .lead {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 42rem;
  line-height: 1.55;
}

.pill-list {
  margin: 1.5rem 0 2.25rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill-list li {
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.content {
  display: grid;
  gap: 1.35rem;
}

.content h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.content p {
  margin: 0;
  color: rgba(244, 241, 234, 0.78);
  font-size: 1rem;
  line-height: 1.65;
}

.project-figure {
  margin: 0 0 1.75rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

.project-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: -0.25rem 0 2rem;
}

.project-actions .btn {
  font-size: 0.88rem;
  min-height: 2.65rem;
  padding: 0 1.15rem;
}

.project-actions .btn--ghost {
  background: rgba(255, 255, 255, 0.05);
}

.work-list .work-row {
  --px: 50%;
  --py: 50%;
}
