/* ===== Base ===== */
:root {
  --bg: #0c1015;
  --surface: #12171e;
  --surface-2: #171d26;
  --border: rgba(255, 255, 255, 0.07);
  --text: #ffffff;
  --muted: #b3b9bf;
  --dim: #7c848d;
  --blue: #0794fa;
  --pink: #e24cfa;
  --green: #3ddc84;
  --radius: 20px;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

section {
  padding: 120px 16px 0;
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.section-head p {
  color: var(--dim);
  margin-top: 12px;
  font-size: 17px;
}
.eyebrow {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--blue);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.grad {
  background: linear-gradient(90deg, #6cc4ff, #e59cff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.center { text-align: center; margin-top: 48px; }

/* ===== Nav ===== */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(var(--max), 100% - 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.nav.is-scrolled {
  background: rgba(12, 16, 21, 0.7);
  border-color: var(--border);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.nav__logo {
  font-weight: 700;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.04em;
}
.nav__logo span { color: var(--pink); }
.nav__links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav__links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover { color: #fff; }
.nav__cta {
  background: #fff;
  color: #0c1015;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: transform 0.2s;
}
.nav__cta:hover { transform: scale(1.04); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 140px 16px 40px;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  overflow: hidden;
}

/* Collage of your project covers as the banner */
.hero__collage {
  position: absolute;
  top: -80px;
  left: 50%;
  width: 1700px;
  transform: translateX(-50%) rotate(-6deg);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(#000 30%, transparent 85%);
  mask-image: linear-gradient(#000 30%, transparent 85%);
}
.hero__collage img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
}

.hero__glow {
  position: absolute;
  top: 40px;
  width: 520px;
  height: 200px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
}
.hero__glow--blue { left: calc(50% - 460px); background: var(--blue); }
.hero__glow--pink { left: calc(50% - 60px); background: var(--pink); }

.hero__fade {
  position: absolute;
  left: -20%;
  right: -20%;
  bottom: -100px;
  height: 260px;
  border-radius: 50%;
  background: var(--bg);
  filter: blur(30px);
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(1024px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.avatar {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--blue), var(--pink));
  box-shadow: 0 10px 40px rgba(7, 148, 250, 0.25), 0 10px 40px rgba(226, 76, 250, 0.2);
}
.avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  border: 3px solid var(--bg);
}
.avatar__status {
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

.hero__text {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero__hello {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.hero__title {
  font-size: clamp(34px, 5.5vw, 60px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.04em;
  color: var(--muted);
}

.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

/* ===== Buttons ===== */
.btn-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 8px 22px;
  border-radius: 40px;
  background: #131315;
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.52), 0 0 0 4px rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 14px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.btn-pill__icon {
  position: relative;
  width: 22px;
  height: 22px;
  overflow: hidden;
}
.btn-pill__svg {
  position: absolute;
  inset: 0;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-pill__svg--b { transform: translate(-100%, 100%); }
.btn-pill:hover .btn-pill__svg--a { transform: translate(100%, -100%); }
.btn-pill:hover .btn-pill__svg--b { transform: translate(0, 0); }
.btn-pill__halo {
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 263px;
  height: 61px;
  transform: translateX(-50%);
  border-radius: 40px;
  background: linear-gradient(73deg, #1a1abd, #d43333);
  filter: blur(45px);
  opacity: 0.35;
  z-index: -1;
  pointer-events: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 8px 22px;
  border-radius: 40px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.03);
}

/* ===== Journey marquee ===== */
.journey { padding-left: 0; padding-right: 0; }
.journey .section-head { padding: 0 16px; }

.marquee {
  overflow: hidden;
  margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: scroll 60s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track img {
  width: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
}
@keyframes scroll {
  to { transform: translateX(calc(-50% - 8px)); }
}

/* ===== About window ===== */
.window {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
}
.window__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--dim);
}
.dots { display: flex; gap: 8px; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.dots i:nth-child(2) { background: #febc2e; }
.dots i:nth-child(3) { background: #28c840; }
.window__body { padding: 36px; }
.window__body p { color: var(--muted); font-size: 17px; }
.window__body p + p { margin-top: 16px; }
.window__body .lead { color: #fff; font-size: 22px; line-height: 1.45; letter-spacing: -0.01em; }
.window__body strong { color: #fff; font-weight: 600; }
.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.facts li { font-weight: 600; font-size: 15px; }
.facts span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 12px;
  color: var(--dim);
  margin-bottom: 4px;
  text-transform: uppercase;
}

/* ===== Work grid ===== */
.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  display: block;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px;
  transition: transform 0.3s, border-color 0.3s;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.16);
}
.card--wide { grid-column: span 2; grid-row: span 2; }
.card__img {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.card--wide .card__img { aspect-ratio: auto; height: calc(100% - 78px); min-height: 280px; }
.card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.card:hover .card__img img { transform: scale(1.05); }
.card__meta { padding: 14px 8px 6px; }
.card__meta h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.35; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tags span {
  font-size: 12px;
  color: var(--dim);
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

/* ===== Services ===== */
.services__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  overflow: hidden;
  transition: border-color 0.3s;
}
.service::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: radial-gradient(400px circle at 0% 0%, rgba(7, 148, 250, 0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover { border-color: rgba(255, 255, 255, 0.14); }
.service:hover::before { opacity: 1; }
.service__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(7, 148, 250, 0.18), rgba(226, 76, 250, 0.18));
  border: 1px solid var(--border);
  margin-bottom: 24px;
}
.service__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 10px; }
.service p { color: var(--dim); font-size: 15px; }

/* ===== Contact ===== */
.contact {
  position: relative;
  padding-bottom: 120px;
  overflow: hidden;
}
.contact__glow {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 800px;
  height: 300px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--pink));
  filter: blur(160px);
  opacity: 0.18;
  border-radius: 50%;
}
.contact__inner {
  position: relative;
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.contact__avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.06);
}
.contact h2 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.contact p { color: var(--muted); font-size: 17px; margin-bottom: 8px; }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 24px;
}
.socials a {
  color: var(--dim);
  text-decoration: none;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
}
.socials a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transition: transform 0.3s;
}
.socials a:hover { color: #fff; }
.socials a:hover::after { transform: scaleX(1); }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 16px 32px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-size: 14px;
}

/* ===== Hero extras ===== */
.hero__role {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--dim);
  letter-spacing: 0.02em;
}
.btn-ghost { gap: 8px; }
.btn-ghost__icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 48px;
  margin-top: 24px;
}
.stats li { display: flex; flex-direction: column; align-items: center; }
.stats strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.stats span { font-size: 13px; color: var(--dim); }

/* ===== Worked with ===== */
.logos { padding-top: 64px; text-align: center; }
.logos__label {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dim);
  margin-bottom: 20px;
}
.logos__row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 40px;
}
.logos__row span {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #5d6570;
  transition: color 0.2s;
}
.logos__row span:hover { color: #fff; }

/* ===== Experience timeline ===== */
.timeline {
  list-style: none;
  max-width: 860px;
  margin: 0 auto;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 180px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--blue), var(--pink), transparent);
}
.job {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0 40px;
  position: relative;
  padding-bottom: 24px;
}
.job::before {
  content: "";
  position: absolute;
  left: 175px;
  top: 22px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--blue);
}
.job:first-child::before { background: var(--blue); box-shadow: 0 0 0 5px rgba(7, 148, 250, 0.2); }
.job__date {
  padding-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--dim);
  text-align: right;
  padding-right: 8px;
}
.now {
  display: inline-block;
  margin-top: 6px;
  font-style: normal;
  font-size: 11px;
  color: var(--green);
  background: rgba(61, 220, 132, 0.1);
  border: 1px solid rgba(61, 220, 132, 0.25);
  padding: 1px 8px;
  border-radius: 999px;
}
.job__card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.job__card:hover { border-color: rgba(255, 255, 255, 0.14); transform: translateX(4px); }
.job__card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
.job__org { color: var(--blue); font-weight: 500; font-size: 15px; margin: 2px 0 10px; }
.job__card p:last-child { color: var(--dim); font-size: 15px; }
.job__card a { color: var(--muted); }

/* ===== Skills & Education ===== */
.skills__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.panel h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.panel .panel__sub { margin-top: 32px; }
.panel__note { margin-top: 28px; color: var(--dim); font-size: 14px; font-style: italic; }

.bars { list-style: none; display: grid; gap: 16px; }
.bars li { display: grid; gap: 8px; }
.bars span { font-size: 15px; font-weight: 500; }
.bars i {
  display: block;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--pink));
  transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.is-visible .bars i::after { width: var(--lvl); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips span {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.edu { list-style: none; display: grid; gap: 22px; }
.edu li {
  display: grid;
  gap: 2px;
  padding-left: 18px;
  border-left: 2px solid rgba(255, 255, 255, 0.08);
}
.edu__year { font-family: "JetBrains Mono", monospace; font-size: 12px; color: var(--dim); }
.edu strong { font-weight: 600; font-size: 16px; }
.edu em { font-style: normal; color: var(--muted); font-size: 14px; }

/* ===== Contact extras ===== */
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.contact__email {
  font-family: "JetBrains Mono", monospace;
  font-size: 14px;
  color: var(--dim) !important;
  margin: 4px 0 0 !important;
}

/* ===== Award badge on cards ===== */
.card__img { position: relative; }
.card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #1a1400;
  background: linear-gradient(135deg, #ffe08a, #f5b83d);
  box-shadow: 0 6px 20px rgba(245, 184, 61, 0.35);
}

/* ===== Project pages ===== */
.p-hero {
  position: relative;
  padding: 150px 16px 48px;
  overflow: hidden;
}
.p-hero__glow {
  position: absolute;
  top: -120px;
  left: 50%;
  width: 900px;
  height: 320px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--blue), var(--pink));
  filter: blur(140px);
  opacity: 0.18;
  border-radius: 50%;
}
.p-hero__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
}
.back {
  display: inline-block;
  color: var(--dim);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 28px;
  transition: color 0.2s;
}
.back:hover { color: #fff; }
.p-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.p-facts {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.p-facts li { font-size: 15px; font-weight: 500; max-width: 340px; }
.p-facts span {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 4px;
}

.p-body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.p-cover img,
.shot img,
.shots img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--surface);
}
.p-cover img { max-height: 720px; object-fit: cover; }
.shots { display: grid; gap: 16px; align-items: start; }
.shots--2 { grid-template-columns: repeat(2, 1fr); }
.shots--3 { grid-template-columns: repeat(3, 1fr); }
.shots--4 { grid-template-columns: repeat(4, 1fr); }

.prose {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.prose p + p,
.prose div + div { margin-top: 12px; }
.prose div:empty { display: none; }
.prose strong { color: #fff; font-weight: 600; }
.prose a { color: var(--blue); }

.award {
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 224, 138, 0.1), rgba(245, 184, 61, 0.04));
  border: 1px solid rgba(245, 184, 61, 0.3);
}
.award__icon { font-size: 30px; line-height: 1; }
.award strong { display: block; color: #ffe08a; font-size: 17px; margin-bottom: 4px; }
.award p { color: var(--muted); font-size: 15px; }

.video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.p-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 16px;
}

.next {
  position: relative;
  display: block;
  max-width: 1120px;
  margin: 120px auto 64px;
  width: calc(100% - 32px);
  height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  border: 1px solid var(--border);
}
.next__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s;
}
.next:hover .next__img { transform: scale(1.04); opacity: 0.5; }
.next::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 70%);
}
.next__label,
.next__title { position: relative; z-index: 1; display: block; padding: 0 32px; }
.next__label {
  padding-top: 200px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--dim);
  text-transform: uppercase;
}
.next__title {
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 7, 10, 0.92);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

.footer a { color: var(--dim); text-decoration: none; }
.footer a:hover { color: #fff; }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition:
    opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; filter: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  .marquee__track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .card--wide { grid-column: span 2; grid-row: auto; }
  .card--wide .card__img { height: auto; aspect-ratio: 16 / 10; min-height: 0; }
  .facts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  section { padding-top: 88px; }
  .nav__links { display: none; }
  .hero { min-height: 640px; }
  .hero__hello { font-size: 20px; }
  .hero__title br { display: none; }
  .grid, .services__grid, .skills__grid { grid-template-columns: 1fr; }
  .shots--3, .shots--4 { grid-template-columns: repeat(2, 1fr); }
  .p-hero { padding-top: 120px; }
  .p-body { gap: 28px; }
  .next { height: 240px; margin-top: 80px; }
  .next__label { padding-top: 130px; }
  .next__label, .next__title { padding: 0 20px; }
  .next__label { padding-top: 130px; }
  .timeline::before { left: 5px; }
  .job { grid-template-columns: 1fr; padding-left: 28px; }
  .job::before { left: 0; top: 4px; }
  .job__date { text-align: left; padding: 0 0 8px; }
  .panel { padding: 24px; }
  .stats { gap: 12px 28px; }
  .card--wide { grid-column: auto; }
  .marquee__track img { width: 240px; }
  .window__body { padding: 24px; }
  .window__body .lead { font-size: 19px; }
}
