:root {
  --bg: #0b0b0b;
  --panel-1: #171717;
  --panel-2: #262626;
  --panel-3: #1f1f1f;
  --panel-4: #2e2e2e;
  --panel-5: #363636;
  --text: #f5f5f5;
  --muted: rgba(255, 255, 255, 0.5);
  --subtle: rgba(255, 255, 255, 0.25);
  --hairline: rgba(255, 255, 255, 0.12);
  --green: #23c181;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }
::selection { background: white; color: black; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .08;
  background-image: radial-gradient(rgba(255,255,255,.3) .6px, transparent .6px);
  background-size: 4px 4px;
  mix-blend-mode: overlay;
}
.page-shell {
  position: relative;
  z-index: 1;
  width: min(100%, 1440px);
  margin: 0 auto;
  overflow: clip;
}
.section-block { padding-left: 48px; padding-right: 48px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: min(100%, 1440px);
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 60px;
  padding: 24px 48px;
  color: rgba(255,255,255,.72);
  background: linear-gradient(180deg, rgba(11,11,11,.88) 0%, rgba(11,11,11,.48) 56%, rgba(11,11,11,0) 100%);
  backdrop-filter: blur(4px);
}
.brand {
  color: rgba(255,255,255,.76);
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.back-brand { font-weight: 500; letter-spacing: -.02em; }
.nav-rule { height: 1px; background: var(--hairline); }
.primary-nav {
  display: flex;
  align-items: center;
  gap: 60px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -.03em;
}
.nav-link, .rolling-link, .rolling-button { overflow: hidden; }
.rolling-link {
  display: inline-grid;
  grid-auto-rows: 1.2em;
  height: 1.2em;
  line-height: 1.2em;
}
.rolling-link span {
  transition: transform .45s var(--ease), color .45s var(--ease);
}
.rolling-link:hover span { transform: translateY(-100%); color: #fff; }

.hero {
  min-height: 100svh;
  position: relative;
  padding-top: 126px;
  padding-bottom: 70px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.intro-copy {
  position: absolute;
  top: 126px;
  left: 48px;
  max-width: 380px;
  z-index: 2;
}
.intro-copy p {
  margin: 0;
  color: rgba(255,255,255,.17);
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.55;
  letter-spacing: -.04em;
}
.hero-portrait-wrap {
  position: absolute;
  right: -26px;
  bottom: 116px;
  width: min(58vw, 720px);
  height: min(70vh, 820px);
  pointer-events: none;
  transform-origin: center bottom;
  will-change: transform;
}
.hero-glow {
  position: absolute;
  right: 13%;
  bottom: 10%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  filter: blur(70px);
}
.hero-portrait {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: right bottom;
  filter: saturate(.7) contrast(1.08);
}
.portrait-fade {
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(11,11,11,0), var(--bg) 82%);
}
.hero-title-row { position: relative; z-index: 3; }
/* typewriter caret for the hero headline */
.type-caret {
  display: inline-block;
  width: .045em;
  height: .78em;
  margin-left: .06em;
  vertical-align: baseline;
  transform: translateY(.04em);
  background: currentColor;
  animation: caretBlink 1s steps(1) infinite;
}
.type-caret.is-fading { opacity: 0; transition: opacity .4s var(--ease); animation: none; }
@keyframes caretBlink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
.hero h1 {
  margin: 0 0 38px 0;
  font-size: clamp(64px, 8.5vw, 118px);
  line-height: .9;
  font-weight: 600;
  letter-spacing: -.065em;
}
.status-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  align-items: center;
  gap: 28px;
  color: rgba(255,255,255,.24);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
}
.status-line { height: 1px; background: rgba(255,255,255,.08); }
.status-available {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--green);
}
.pulse-dot {
  width: 7px;
  height: 7px;
  border: 1.5px solid currentColor;
  border-radius: 99px;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.28); } }

.manifesto-section {
  padding-top: 92px;
  padding-bottom: 78px;
}
.manifesto-text {
  width: min(930px, 100%);
  margin: 0;
  color: #666;
  font-family: var(--sans);
  font-size: clamp(34px, 4.05vw, 53px);
  line-height: 1.075;
  font-weight: 700;
  letter-spacing: -.04em;
}
.text-reveal {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
}
.text-reveal-word { white-space: nowrap; }
.text-reveal-char {
  color: rgb(var(--reveal-shade, 102 102 102));
  transition: color .18s linear;
}
.text-action-link {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 26px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.03em;
  text-transform: uppercase;
  transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.text-action-link:hover {
  color: #000;
  background: #fff;
  border-color: #fff;
  transform: translateY(-2px);
}
.text-action-link .rolling-track { height: 1.2em; }
.diagonal-arrow {
  font-size: 17px;
  transform: translateY(-1px);
  opacity: .8;
  transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.text-action-link:hover .diagonal-arrow { transform: translate(3px, -4px); opacity: 1; }
.muted-link { text-transform: none; }
.pill-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  color: black;
  background: white;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.04em;
  transform: translateZ(0);
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}
.pill-button:hover { transform: translateY(-2px); background: #dcdcdc; }
.rolling-track {
  display: grid;
  grid-auto-rows: 1.2em;
  height: 1.2em;
  overflow: hidden;
}
.rolling-track span { transition: transform .48s var(--ease); }
.rolling-button:hover .rolling-track span { transform: translateY(-100%); }
.button-icons { display: flex; gap: 4px; align-items: center; }
.button-icons i {
  width: 5px;
  height: 5px;
  display: block;
  background: currentColor;
  border-radius: 50%;
  opacity: .35;
}

.work-section {
  position: relative;
  padding-top: 0;
  padding-bottom: 120px;
}
.project-cursor {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  transform: translate(-50%, -50%) scale(.96);
  pointer-events: none;
  border-radius: 999px;
  padding: 9px 17px;
  color: #000;
  background: #fff;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity .16s ease, transform .16s ease;
}
.project-cursor.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.project-card {
  position: sticky;
  top: 76px;
  min-height: 387px;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 calc(50vw - 50%);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--panel-1);
  cursor: none;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,.03);
  transform-origin: center top;
  transition: filter .5s var(--ease), transform .5s var(--ease);
}
.project-card:hover { filter: brightness(1.08); }
.project-card-alt { background: var(--panel-2); }
.project-card-deep { background: var(--panel-3); }
.project-card-bright { background: var(--panel-4); }
.project-card-last { background: var(--panel-5); }
.project-info { flex: 1 1 auto; min-width: 0; }
.project-heading {
  display: flex;
  align-items: center;
  gap: 20px;
}
.project-heading h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1;
  font-weight: 600;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.project-line { flex: 1; height: 1px; background: rgba(255,255,255,.1); }
.project-year {
  color: rgba(255,255,255,.5);
  font-size: clamp(28px, 3vw, 32px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}
.tag-row span {
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  padding: 5px 16px;
  color: rgba(255,255,255,.5);
  font-size: 14px;
  line-height: 1;
}
.project-thumb {
  width: 302px;
  height: 227px;
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,.05);
  transform: translateZ(0);
}
.project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .85s var(--ease);
}
.project-card:hover .project-thumb img { transform: scale(1.06); }

/* card entrance: inner elements stagger in on appear */
.project-card .project-heading h3,
.project-card .project-year { opacity: 0; transform: translateY(26px); }
.project-card .project-line { transform: scaleX(0); transform-origin: left center; }
.project-card .tag-row span { opacity: 0; transform: translateY(14px); }
.project-card .project-thumb { opacity: 0; transform: scale(.93); clip-path: inset(9% 0 9% 0); }

.project-card.is-visible .project-heading h3,
.project-card.is-visible .project-year {
  opacity: 1; transform: none;
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.project-card.is-visible .project-year { transition-delay: .06s; }
.project-card.is-visible .project-line {
  transform: scaleX(1);
  transition: transform .9s var(--ease) .14s;
}
.project-card.is-visible .tag-row span {
  opacity: 1; transform: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.project-card.is-visible .tag-row span:nth-child(1) { transition-delay: .2s; }
.project-card.is-visible .tag-row span:nth-child(2) { transition-delay: .26s; }
.project-card.is-visible .tag-row span:nth-child(3) { transition-delay: .32s; }
.project-card.is-visible .tag-row span:nth-child(4) { transition-delay: .38s; }
.project-card.is-visible .tag-row span:nth-child(5) { transition-delay: .44s; }
.project-card.is-visible .project-thumb {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  transition: opacity 1s var(--ease) .12s, transform 1s var(--ease) .12s, clip-path 1s var(--ease) .12s;
}
.placeholder-thumb {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.mini-ui {
  width: 72%;
  height: 62%;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 18px;
  display: grid;
  gap: 10px;
  opacity: .72;
}
.mini-ui b { display: block; height: 14px; border-radius: 12px; background: rgba(255,255,255,.18); }
.mini-ui b:nth-child(2) { width: 68%; }
.mini-ui b:nth-child(3) { width: 82%; }
.mini-ui em { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.12); }
.brand-mark {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255,255,255,.08);
  font-size: 44px;
  font-weight: 700;
  color: rgba(255,255,255,.64);
}
.haze-gradient {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,.18), transparent 26%), radial-gradient(circle at 80% 75%, rgba(35,193,129,.26), transparent 30%), linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.18));
  filter: blur(.2px);
}

.about-section {
  padding-top: 120px;
  padding-bottom: 120px;
}
.about-statement {
  max-width: 1080px;
  margin: 0 0 96px;
  color: rgba(255,255,255,.5);
  font-size: clamp(42px, 5.4vw, 82px);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -.06em;
}
.about-statement span { color: white; }
.experience-grid {
  display: grid;
  grid-template-columns: minmax(220px, 360px) 1fr;
  gap: 88px;
}
.about-actions { display: flex; flex-direction: column; align-items: flex-start; align-self: start; gap: 12px; }
.about-actions .text-action-link { margin-top: 0; }
.pill-button.light { background: white; color: #000; }
.pill-button.muted { background: #2e2e2e; color: white; }
.pill-button.muted:hover { background: #424242; }
.experience-list { border-top: 1px solid rgba(255,255,255,.1); }
.experience-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  min-height: 76px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
/* staggered reveal once the list scrolls in */
.is-visible .experience-row { opacity: 1; transform: none; }
.is-visible .experience-row:nth-child(1) { transition-delay: .04s; }
.is-visible .experience-row:nth-child(2) { transition-delay: .10s; }
.is-visible .experience-row:nth-child(3) { transition-delay: .16s; }
.is-visible .experience-row:nth-child(4) { transition-delay: .22s; }
.is-visible .experience-row:nth-child(5) { transition-delay: .28s; }
.is-visible .experience-row:nth-child(6) { transition-delay: .34s; }
.is-visible .experience-row:nth-child(7) { transition-delay: .40s; }
/* editorial focus: dim the rest, lift the hovered one */
@media (hover: hover) {
  .experience-list:hover .experience-row { opacity: .35; }
  .experience-list:hover .experience-row:hover { opacity: 1; transform: translateX(10px); transition-delay: 0s; }
}
.experience-row strong, .experience-row span, .experience-row time { display: block; }
.experience-row strong { font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.experience-row span, .experience-row time { color: rgba(255,255,255,.5); font-size: 15px; line-height: 1.35; }
.experience-row time { white-space: nowrap; font-family: var(--mono); letter-spacing: -.04em; }

.stack-section { padding: 0; }
.stack-kicker,
.footer-kicker {
  margin-bottom: 28px;
  color: rgba(255,255,255,.5);
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -.04em;
}
.stack-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.stack-head .stack-kicker { margin-bottom: 0; }
.stack-counter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: -.04em;
  color: rgba(255,255,255,.4);
}
.stack-count { color: #fff; }
.stack-hint {
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  font-size: 12px;
  color: rgba(255,255,255,.55);
}

/* Pinned horizontal scroll-jack */
.stack-pin-wrap { position: relative; }        /* height set by JS = 100vh + travel */
.stack-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
}
.stack-viewport {
  margin: 0 -48px;
  overflow: hidden;
}
.stack-track {
  display: flex;
  gap: 18px;
  padding: 6px 48px;
  width: max-content;
  will-change: transform;
}

.stack-card {
  position: relative;
  flex: 0 0 clamp(280px, 30vw, 440px);
  min-height: 400px;
  padding: 30px;
  background: #101010;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background .5s var(--ease), transform .5s var(--ease), border-color .5s var(--ease);
}
.stack-card:hover {
  background: #161616;
  border-color: rgba(255,255,255,.22);
  transform: translateY(-6px);
}
.stack-bignum {
  position: absolute;
  right: 8px;
  bottom: -34px;
  font-family: var(--mono);
  font-size: clamp(150px, 15vw, 210px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.06em;
  color: rgba(255,255,255,.04);
  pointer-events: none;
  transition: color .5s var(--ease);
}
.stack-card:hover .stack-bignum { color: rgba(255,255,255,.08); }
.stack-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stack-tags span {
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 6px 10px;
  color: rgba(255,255,255,.45);
  font-size: 12px;
}
.stack-body { position: relative; z-index: 1; margin-top: auto; }
.stack-card h3 {
  margin: 0 0 14px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -.05em;
}
.stack-card p {
  margin: 0;
  max-width: 92%;
  color: rgba(255,255,255,.5);
  line-height: 1.55;
  letter-spacing: -.02em;
}
.stack-progress {
  margin: 0 48px;
  height: 2px;
  border-radius: 999px;
  background: rgba(255,255,255,.1);
  overflow: hidden;
}
.stack-progress span {
  display: block;
  height: 100%;
  width: 18%;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
}

.footer-section {
  min-height: 82vh;
  padding-top: 100px;
  padding-bottom: 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.footer-title {
  margin: 0;
  width: 100%;
  font-size: min(14vw, 230px);
  line-height: .85;
  font-weight: 600;
  letter-spacing: -.08em;
  white-space: nowrap;
}
.footer-title span { color: rgba(255,255,255,.5); }
/* footer title fades up out of a soft blur */
.footer-title.reveal-up { filter: blur(18px); }
.footer-title.is-visible.reveal-up {
  filter: blur(0);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1.15s var(--ease);
}
.footer-copy {
  margin: 2.6vw 0 2.4vw;
  max-width: 48vw;
  color: rgba(255,255,255,.5);
  font-size: clamp(16px, 1.35vw, 26px);
  line-height: 1.5;
  letter-spacing: -.03em;
}
.footer-actions { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; }
.footer-button {
  min-height: clamp(64px, 5.6vw, 104px);
  display: grid;
  place-items: center;
  background: #2e2e2e;
  color: white;
  font-size: clamp(16px, 1.35vw, 26px);
  font-weight: 500;
  letter-spacing: -.04em;
  transition: background .45s var(--ease), transform .45s var(--ease);
}
.footer-button.secondary { background: #545454; }
.footer-button:hover { background: #fff; color: #000; transform: translateY(-2px); }
.footer-bottom {
  margin-top: 68px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,.45);
  font-family: var(--mono);
  font-size: 14px;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.16);
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
}

/* Resume */
.resume-main { padding-top: 156px; }
.resume-hero {
  width: min(1110px, calc(100% - 96px));
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
}
.resume-identity {
  display: flex;
  align-items: center;
  gap: 24px;
}
.resume-identity img {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}
.resume-identity h1 {
  margin: 0;
  font-size: clamp(36px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -.06em;
}
.resume-identity p {
  margin: 10px 0 0;
  color: rgba(255,255,255,.72);
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: .08em;
}
.resume-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-style: normal;
  color: rgba(255,255,255,.72);
  font-size: 14px;
  text-align: right;
}
.resume-grid {
  width: min(1110px, calc(100% - 96px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 100px;
}
.resume-sidebar section + section,
.resume-content section + section { margin-top: 62px; }
.resume-sidebar h2,
.resume-content h2 {
  margin: 0 0 28px;
  color: #fff;
  font-size: 16px;
  letter-spacing: .13em;
  font-weight: 800;
}
.resume-sidebar h3,
.resume-job h3 {
  margin: 0 0 12px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -.03em;
}
.resume-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.resume-sidebar li,
.resume-sidebar p,
.resume-content p {
  margin: 0;
  color: rgba(255,255,255,.52);
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  letter-spacing: -.03em;
}
.resume-sidebar h3 { margin-top: 28px; }
.download-button {
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  padding: 14px 24px;
  background: #f3f3f3;
  color: #262626;
  font-weight: 800;
  font-size: 14px;
  transition: transform .45s var(--ease), background .45s var(--ease);
}
.download-button:hover { transform: translateY(-2px); background: white; }
.download-button svg { width: 18px; height: 18px; }
.resume-content p + p { margin-top: 18px; }
.resume-job + .resume-job { margin-top: 34px; }
.resume-job > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 22px;
}
.resume-job time {
  color: rgba(255,255,255,.62);
  font-size: 14px;
  font-weight: 800;
  font-style: italic;
  white-space: nowrap;
}
.resume-page .footer-section.compact {
  width: min(1110px, calc(100% - 96px));
  min-height: 62vh;
  margin: 0 auto;
  padding-left: 0;
  padding-right: 0;
}

.reveal-up, .reveal-fade, .reveal-down {
  opacity: 0;
  will-change: opacity, transform;
}
.reveal-up { transform: translateY(34px); }
.reveal-down { transform: translateY(-14px); }
.reveal-fade { transform: scale(.985); }
.is-visible.reveal-up,
.is-visible.reveal-down,
.is-visible.reveal-fade {
  opacity: 1;
  transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

@media (max-width: 980px) {
  .section-block { padding-left: 24px; padding-right: 24px; }
  .site-header { padding: 24px; gap: 24px; }
  .primary-nav { gap: 24px; }
  .nav-rule { min-width: 80px; }
  .hero { padding-top: 116px; min-height: 930px; }
  .intro-copy { left: 24px; max-width: 320px; }
  .hero-portrait-wrap { right: -120px; width: 740px; height: 740px; bottom: 126px; }
  .hero h1 { font-size: clamp(56px, 12vw, 104px); margin-bottom: 28px; }
  .status-strip { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .status-line { display: none; }
  .manifesto-section { padding-top: 72px; padding-bottom: 62px; }
  .project-card { margin-left: -24px; margin-right: -24px; padding: 40px 24px; gap: 28px; min-height: 340px; }
  .project-thumb { width: 260px; height: 196px; }
  .experience-grid { grid-template-columns: 1fr; gap: 52px; }
  .about-statement { margin-bottom: 56px; }
  .stack-grid { grid-template-columns: repeat(2, 1fr); }
  .resume-hero, .resume-grid, .resume-page .footer-section.compact { width: calc(100% - 48px); }
  .resume-grid { grid-template-columns: 1fr; gap: 60px; }
  .resume-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
  .resume-sidebar section + section { margin-top: 0; }
}

@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; background: rgba(11,11,11,.84); }
  .nav-rule { display: none; }
  .brand { font-size: 15px; }
  .primary-nav { gap: 16px; font-size: 14px; }
  .hero { min-height: 760px; padding-top: 108px; }
  .intro-copy { top: 100px; right: 24px; }
  .intro-copy p { font-size: 12px; }
  .hero-portrait-wrap { width: 520px; height: 560px; right: -170px; bottom: 112px; }
  .hero h1 { font-size: 54px; letter-spacing: -.07em; }
  .manifesto-section { padding-top: 56px; padding-bottom: 54px; }
  .manifesto-text { font-size: 26px; line-height: 1.23; letter-spacing: -.035em; }
  .project-card { position: relative; top: auto; flex-direction: column; align-items: flex-start; min-height: auto; cursor: pointer; }
  .project-heading { width: 100%; }
  .project-heading h3, .project-year { font-size: 28px; }
  .project-thumb { width: 100%; height: auto; aspect-ratio: 4 / 2.4; }
  .project-cursor { display: none; }
  .about-section { padding-top: 80px; padding-bottom: 80px; }
  .about-statement { font-size: 38px; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .stack-grid { grid-template-columns: 1fr; }
  .footer-actions { grid-template-columns: 1fr; max-width: 100%; }
  .resume-main { padding-top: 120px; }
  .resume-hero { grid-template-columns: 1fr; align-items: start; }
  .resume-contact { text-align: left; }
  .resume-identity { align-items: flex-start; }
  .resume-identity img { width: 72px; height: 72px; }
  .resume-sidebar { grid-template-columns: 1fr; }
  .resume-job > div { flex-direction: column; gap: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal-up, .reveal-fade, .reveal-down { opacity: 1; transform: none; }
  .experience-row { opacity: 1; transform: none; }
  .footer-title.reveal-up { filter: none; }
  .type-caret { display: none; }
  .project-card .project-heading h3,
  .project-card .project-year,
  .project-card .tag-row span,
  .project-card .project-thumb { opacity: 1; transform: none; clip-path: none; }
  .project-card .project-line { transform: scaleX(1); }
  .case-visual { clip-path: none !important; opacity: 1 !important; transform: none !important; }
  .text-reveal-char { --reveal-shade: 255 255 255; }
}


/* Project detail pages */
.project-detail-main {
  padding-top: 128px;
}
.project-detail-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 92px;
  align-items: end;
  padding-bottom: 72px;
}
.project-detail-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  align-content: end;
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -.04em;
}
.project-detail-meta span {
  color: rgba(255,255,255,.26);
  text-transform: lowercase;
}
.project-detail-meta strong {
  color: rgba(255,255,255,.62);
  font-weight: 600;
  text-align: right;
}
.project-detail-title h1 {
  margin: 0;
  font-size: clamp(72px, 11vw, 156px);
  line-height: .86;
  letter-spacing: -.08em;
  font-weight: 650;
}
.project-detail-title p {
  max-width: 760px;
  margin: 32px 0 0;
  color: rgba(255,255,255,.54);
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: -.035em;
}
.project-detail-title .tag-row { margin-top: 26px; }
.project-open-link {
  margin-top: 24px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: white;
  font-family: var(--mono);
  font-size: 13px;
  opacity: .75;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.project-open-link:hover { opacity: 1; transform: translateY(-2px); }
.project-note {
  max-width: none !important;
  margin-top: 20px !important;
  color: rgba(255,255,255,.32) !important;
  font-family: var(--mono);
  font-size: 12px !important;
}
.project-detail-showcase {
  padding-top: 32px;
  padding-bottom: 88px;
}
.project-detail-media {
  width: 100%;
  min-height: 560px;
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
}
.project-detail-media img {
  width: min(880px, 78%);
  max-height: 520px;
  object-fit: contain;
  filter: saturate(.9) contrast(1.05);
  box-shadow: 0 36px 120px rgba(0,0,0,.32);
}
.project-detail-media.placeholder-thumb {
  min-height: 560px;
}
.project-detail-media .mini-ui {
  width: min(520px, 58%);
  height: 300px;
}
.project-detail-media .brand-mark {
  width: 180px;
  height: 180px;
  border-radius: 48px;
  font-size: 92px;
}
.project-detail-media .haze-gradient {
  min-height: 560px;
}
.project-detail-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  padding-bottom: 112px;
}
.project-copy-block {
  min-height: 340px;
  padding: 42px;
  background: #101010;
  border: 1px solid rgba(255,255,255,.08);
}
.project-copy-block span {
  display: block;
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 13px;
  margin-bottom: 80px;
}
.project-copy-block p {
  margin: 0;
  color: rgba(255,255,255,.74);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.12;
  letter-spacing: -.055em;
  font-weight: 650;
}
.more-projects {
  padding-bottom: 96px;
}
.more-projects h2 {
  margin: 0 0 24px;
  color: rgba(255,255,255,.48);
  font-size: 26px;
  letter-spacing: -.04em;
}
.more-project-list {
  border-top: 1px solid rgba(255,255,255,.1);
}
.more-project-list a {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: rgba(255,255,255,.78);
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.04em;
  transition: color .35s var(--ease), padding .35s var(--ease);
}
.more-project-list a:hover {
  color: white;
  padding-left: 12px;
}
.project-page .footer-section.compact {
  width: auto;
  min-height: 62vh;
  margin: 0;
}
@media (max-width: 980px) {
  .project-detail-hero { grid-template-columns: 1fr; gap: 48px; min-height: auto; padding-top: 40px; }
  .project-detail-meta { max-width: 420px; }
  .project-detail-content { grid-template-columns: 1fr; }
  .project-detail-media { min-height: 420px; }
}
@media (max-width: 680px) {
  .project-detail-main { padding-top: 104px; }
  .project-detail-hero { padding-bottom: 48px; }
  .project-detail-title h1 { font-size: 58px; }
  .project-detail-title p { font-size: 17px; }
  .project-detail-media { min-height: 320px; }
  .project-copy-block { padding: 28px; min-height: 280px; }
  .project-copy-block p { font-size: 25px; }
}

/* ============ Editorial case study (six2eight-style) ============ */

/* page-open curtain: shows the project name + loader, then wipes up on a curved edge */
.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: var(--bg, #0c0c0c);
  display: grid;
  place-items: center;
  pointer-events: none;
  will-change: transform;
}
.page-curtain::after {                 /* curved concave bottom edge */
  content: "";
  position: absolute;
  top: 100%;
  left: -25%;
  width: 150%;
  height: 15vh;
  background: var(--bg, #0c0c0c);
  border-radius: 0 0 50% 50%;
}
.page-curtain.is-open {
  transform: translateY(-118%);
  transition: transform 1s cubic-bezier(.76,0,.24,1);
}
.curtain-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity .5s var(--ease);
}
.page-curtain.is-open .curtain-inner { opacity: 0; }
.curtain-name {
  color: #fff;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: -.045em;
  font-weight: 600;
}
.curtain-loader {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #fff;
  animation: curtainPulse 1s ease-in-out infinite;
}
@keyframes curtainPulse {
  0%, 100% { opacity: .3; transform: scale(.75); }
  50% { opacity: 1; transform: scale(1.15); }
}
@media (prefers-reduced-motion: reduce) {
  .page-curtain { display: none; }
}

.case-study-root { padding-top: 128px; }

/* — Hero — */
.case-hero { padding-top: 24px; padding-bottom: 72px; }
.case-kicker,
.case-section-eyebrow {
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.case-section-eyebrow em { color: rgba(255,255,255,.7); font-style: normal; margin-right: 6px; }
.case-title {
  margin: 20px 0 0;
  font-size: clamp(48px, 8vw, 120px);
  line-height: .88;
  letter-spacing: -.07em;
  font-weight: 650;
}
.case-lede {
  max-width: 950px;
  margin: 36px 0 0;
  color: rgba(255,255,255,.6);
  font-size: clamp(21px, 2.4vw, 34px);
  line-height: 1.24;
  letter-spacing: -.035em;
  font-weight: 520;
}
.case-tags { margin-top: 30px; }
.case-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.case-meta > div {
  flex: 1 1 0;
  min-width: 150px;
  padding: 0 30px;
  border-left: 1px solid rgba(255,255,255,.14);
}
.case-meta > div:first-child { padding-left: 0; border-left: 0; }
.case-meta span {
  display: block;
  margin-bottom: 16px;
  color: rgba(255,255,255,.5);
  font-size: clamp(15px, 1.3vw, 18px);
  letter-spacing: -.02em;
}
.case-meta strong {
  color: #fff;
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.4;
  font-weight: 600;
}
.case-tools { display: flex; align-items: center; gap: 10px; }
.case-tool {
  width: clamp(36px, 3vw, 44px);
  height: clamp(36px, 3vw, 44px);
  border-radius: 10px;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-weight: 700;
}
.case-tool img { width: 100%; height: 100%; object-fit: contain; }
.case-tools-empty { color: rgba(255,255,255,.3); }

/* — Visuals (cover, media, gallery share look) — */
.case-visual {
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f4f7;
}
.case-visual img { display: block; width: 100%; height: auto; }
/* image reveal: clip open + settle from a soft scale as the section enters */
.case-visual { clip-path: inset(0 0 0 0); }
.reveal-up .case-visual,
.reveal-fade .case-visual { clip-path: inset(8% 6% 8% 6% round 22px); opacity: 0; transform: scale(1.04); }
.is-visible .case-visual {
  clip-path: inset(0 0 0 0 round 22px);
  opacity: 1;
  transform: none;
  transition: clip-path 1.05s var(--ease) .06s, opacity .9s var(--ease) .06s, transform 1.05s var(--ease) .06s;
}
.case-visual img { transition: transform 1.1s var(--ease); }
.case-visual figcaption {
  padding: 16px 22px 18px;
  background: #101010;
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: -.02em;
}
.case-visual.placeholder-thumb {
  min-height: 460px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255,255,255,.08), rgba(255,255,255,.025));
}
.case-visual .mini-ui { width: min(560px, 58%); height: 320px; }
.case-visual .brand-mark { width: 170px; height: 170px; border-radius: 46px; font-size: 84px; }
.case-visual .haze-gradient { width: 100%; min-height: 460px; }

.case-cover { padding-top: 8px; padding-bottom: 40px; }
.case-cover .case-visual.is-cover { border-radius: 26px; }

/* — Overview: big centered statement with word highlight — */
.case-overview {
  padding-top: clamp(72px, 11vw, 116px);
  padding-bottom: clamp(68px, 10vw, 108px);
  text-align: center;
}
.case-overview p {
  max-width: 1120px;
  margin: 0 auto;
  font-size: clamp(30px, 4vw, 60px);
  line-height: 1.14;
  letter-spacing: -.045em;
  font-weight: 600;
}

/* — Sections keep the shell padding — */
.case-section { padding-top: 0; }

/* text block: title left, body right */
.case-text {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(56px, 9vw, 96px);
  align-items: start;
  border-top: 1px solid rgba(255,255,255,.09);
}
.case-text-head .case-section-eyebrow { margin-bottom: 26px; }
.case-text-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 66px);
  line-height: 1.02;
  letter-spacing: -.055em;
  font-weight: 640;
}
.case-text-body { padding-top: 12px; }
.case-text-body p {
  max-width: min(560px, 100%);
  margin: 0;
  color: rgba(255,255,255,.58);
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  letter-spacing: -.02em;
}
.case-text-body p + p { margin-top: 22px; }

/* media */
.case-media { padding-bottom: 64px; }

/* gallery 2-up; a lone last item spans full width */
.case-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: clamp(14px, 2vw, 24px);
  padding-bottom: clamp(40px, 6vw, 64px);
}
.case-gallery .case-visual { align-self: start; }
.case-gallery .case-visual:nth-child(odd):last-child { grid-column: 1 / -1; }

/* split: two cards */
.case-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(28px, 4vw, 60px);
  padding-top: 44px;
  padding-bottom: clamp(48px, 7vw, 72px);
  border-top: 1px solid rgba(255,255,255,.14);
}
.case-split article {
  display: flex;
  flex-direction: column;
}
.case-split span {
  margin-bottom: 26px;
  color: rgba(255,255,255,.42);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.case-split h3 {
  margin: 0 0 20px;
  color: #fff;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.02;
  letter-spacing: -.05em;
  font-weight: 640;
}
.case-split p {
  margin: 0;
  max-width: min(420px, 100%);
  color: rgba(255,255,255,.56);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  letter-spacing: -.025em;
}

/* callout: large statement, word highlight */
.case-callout {
  padding-block: clamp(72px, 11vw, 116px);
  border-top: 1px solid rgba(255,255,255,.09);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.case-callout p {
  max-width: 1120px;
  margin: 0;
  font-size: clamp(38px, 5.4vw, 84px);
  line-height: 1.04;
  letter-spacing: -.06em;
  font-weight: 660;
}

/* stats: Results & impact */
.case-stats { padding-block: clamp(64px, 10vw, 108px); }
.case-stats-head {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(24px, 4vw, 60px);
  align-items: end;
  margin-bottom: 44px;
}
.case-stats-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 640;
}
.case-stats-head p {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -.02em;
}
.case-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: clamp(28px, 3vw, 36px) 28px;
  padding-top: 44px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.case-stat strong {
  display: block;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.06;
  letter-spacing: -.04em;
  font-weight: 640;
}
.case-stat span {
  color: rgba(255,255,255,.48);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}

/* more projects */
.case-more { padding-top: clamp(64px, 10vw, 100px); padding-bottom: clamp(64px, 10vw, 100px); }
.case-more-title {
  margin: 14px 0 38px;
  color: #fff;
  font-size: clamp(40px, 5.5vw, 82px);
  line-height: .95;
  letter-spacing: -.055em;
  font-weight: 650;
}
.case-more-list { margin-top: 26px; border-top: 1px solid rgba(255,255,255,.12); }
.case-more-list a {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.74);
  font-size: clamp(28px, 3.2vw, 48px);
  letter-spacing: -.05em;
  font-weight: 640;
  transition: color .4s var(--ease), padding .4s var(--ease);
}
.case-more-list a:hover { color: #fff; padding-left: 16px; }
.case-more-list em {
  color: rgba(255,255,255,.36);
  font-family: var(--mono);
  font-size: 17px;
  font-style: normal;
}

.case-study-page .footer-section.compact { width: auto; margin: 0; }

/* Grids stack fluidly via auto-fit above — only fine-tune spacing on small screens */
@media (max-width: 680px) {
  .case-study-root { padding-top: 100px; }
  .case-meta { flex-direction: column; gap: 22px; }
  .case-meta > div { padding: 0; border-left: 0; min-width: 100%; }
  .case-split article { min-height: 240px; }
}


