:root {
  /* ── Palette ── */
  --bg: #15120E;
  --surface: #1E1A15;
  --text: #F6F1E9;
  --text-dim: #9C9384;
  --accent: #E3A14D;
  --accent-deep: #B9752E;

  /* Derived from --text so every neutral stays in the same warm family */
  --text-soft: rgba(246, 241, 233, 0.82);
  --line: rgba(246, 241, 233, 0.12);
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);

  --sans: 'IBM Plex Sans', -apple-system, 'Segoe UI', sans-serif;
  --max-width: 1120px;
}

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

/* Form controls don't inherit type by default — keep them on the one family */
button,
input,
textarea,
select {
  font-family: inherit;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  background: var(--surface);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

section {
  padding: 96px 28px;
}

#hero,
#impact,
.section-header,
.education-section,
.work-grid,
.projects-grid,
.contact-inner,
footer {
  max-width: var(--max-width);
  margin: 0 auto;
}

#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  height: 48px;
  padding: 0 28px;
  background: rgba(21, 18, 14, 0.82);
  color: var(--text);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  transition: top 0.35s ease, left 0.35s ease, right 0.35s ease, width 0.35s ease, max-width 0.35s ease, padding 0.35s ease, border-radius 0.35s ease, background 0.25s ease, transform 0.35s ease;
}

#navbar.compact {
  top: 14px;
  left: 50%;
  right: auto;
  width: calc(100% - 28px);
  max-width: 980px;
  padding: 0 20px;
  border-radius: 999px;
  background: rgba(21, 18, 14, 0.9);
  transform: translateX(-50%);
}

.nav-logo {
  color: rgba(246, 241, 233, 0.92);
  font-family: var(--sans);
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: rgba(246, 241, 233, 0.78);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.footer-socials a:hover {
  color: var(--text);
}

.btn-primary,
.btn-ghost,
.contact-modal-link,
.project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-family: var(--sans);
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.btn-primary,
.btn-ghost {
  min-height: 44px;
  padding: 8px 18px;
  font-size: 0.94rem;
  font-weight: 400;
  letter-spacing: -0.022em;
}

.btn-primary {
  background: var(--accent);
  border: 1px solid transparent;
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-ghost:hover,
.project-links a:hover {
  background: rgba(227, 161, 77, 0.12);
}

.btn-primary:focus-visible,
.btn-ghost:focus-visible,
.project-links a:focus-visible,
.contact-trigger:focus-visible,
.contact-modal-close:focus-visible,
.contact-modal-link:focus-visible,
.footer-socials a:focus-visible,
.back-to-top:focus-visible,
.nav-links a:focus-visible,
.nav-logo:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

#hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 420px);
  align-items: center;
  gap: 48px;
  padding-top: 112px;
  padding-bottom: 72px;
}

.hero-text {
  max-width: 620px;
}

#hero h1 {
  font-family: var(--sans);
  font-size: clamp(4rem, 7vw, 7rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 18px;
}

#hero h1 em {
  font-style: italic;
  color: var(--text);
}

.hero-specialty {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.hero-role {
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-dim);
  margin-bottom: 16px;
  white-space: nowrap;
}

.hero-bio {
  max-width: 34rem;
  font-size: 1.18rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-soft);
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-dim);
  margin-bottom: 32px;
  font-style: normal;
  font-family: var(--sans);
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: min(100%, 360px);
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top;
  border-radius: 28px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

#experience {
  --exp-copy: rgba(246, 241, 233, 0.78);
  --exp-muted: rgba(246, 241, 233, 0.54);
  --exp-line: rgba(246, 241, 233, 0.16);
  /* Single source of truth for panel 1's tint — reused below so the intro
     header blends into Questt's wash instead of meeting it at a hard edge. */
  --tint: #2A7E4F;
  padding: 0;
  background: var(--bg);
}

#impact {
  padding-top: 22px;
  padding-bottom: 22px;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.impact-card {
  min-height: 178px;
  padding: 24px 20px 22px;
  border: 1px solid rgba(246, 241, 233, 0.04);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.04);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.impact-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.07);
}

.impact-icon {
  width: 20px;
  height: 20px;
  margin-bottom: 16px;
  color: var(--text-dim);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-number {
  margin-bottom: 2px;
  color: var(--text);
  font-size: clamp(2.05rem, 3vw, 2.18rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.impact-label {
  max-width: 12rem;
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -0.018em;
}

#projects,
footer {
  background: var(--bg);
}

#contact {
  background: var(--surface);
}

.section-header {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.section-number {
  color: var(--text-dim);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  font-family: var(--sans);
}

.section-header h2 {
  font-family: var(--sans);
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--text);
  white-space: nowrap;
}

.section-rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}

#projects .section-number,
#projects .section-header h2,
#contact .section-number {
  color: inherit;
}

#projects .section-header h2 {
  color: var(--text);
}

#projects .section-rule {
  background: rgba(246, 241, 233, 0.16);
}

/* ── SECTION ICON HEADER — metallic 3D token ──────────────────────────────
   Heading + copy on the left, a continuously turning 3D token on the right.
   The token is a real CSS 3D construct: a metallic front face and a darker
   offset back plate inside a preserve-3d parent, turning on two axes with an
   independent specular sweep across the face. */

.section-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto 44px;
}

.section-intro .section-header {
  margin-bottom: 0;
}

.section-copy {
  max-width: 38ch;
  margin-top: 18px;
  color: var(--text-soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

/* Dark-surface sections use the same light body copy as the rest of their content */
#experience .section-copy,
#projects .section-copy {
  color: rgba(246, 241, 233, 0.78);
}

.icon-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

/* Soft colour halo behind the glyph — lives on the stage, not the token */
.icon-glow {
  position: absolute;
  z-index: 0;
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(22px);
}

.icon-token {
  position: relative;
  z-index: 1;
  width: min(24vw, 170px);
  aspect-ratio: 1;
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 32px rgba(0, 0, 0, 0.55));
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
  /* Paused until scrolled into view — keeps the turn off the compositor
     while the section is off screen */
  animation-play-state: paused;
}

.icon-token.in-view {
  animation-play-state: running;
}

.icon-token svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Specular sweep — an SVG rect clipped to the glyph's own outline, so the
   highlight only ever appears inside the shape, never as a rectangle */
.shimmer-rect {
  transform: translateX(-40px) rotate(20deg);
  transform-origin: 50px 50px;
  animation: shimmerMove 3.6s linear infinite;
  animation-play-state: paused;
}

.icon-token.in-view .shimmer-rect {
  animation-play-state: running;
}

/* Per-section turn: same two-axis oscillation, offset phase and pace so the
   three tokens never move in lockstep down the page */
.icon-token--experience {
  animation-name: tokenTurnExperience;
  animation-duration: 9s;
}

.icon-stage--experience .icon-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
}

.icon-token--projects {
  animation-name: tokenTurnProjects;
  animation-duration: 9.5s;
}

.icon-stage--projects .icon-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 40%, transparent), transparent 70%);
}

.icon-token--contact {
  animation-name: tokenTurnContact;
  animation-duration: 8.5s;
}

.icon-stage--contact .icon-glow {
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 56%, transparent), transparent 70%);
}

@keyframes tokenTurnExperience {
  0% { transform: rotateY(-26deg) rotateX(5deg); }
  25% { transform: rotateY(8deg) rotateX(-5deg); }
  50% { transform: rotateY(26deg) rotateX(5deg); }
  75% { transform: rotateY(-6deg) rotateX(-6deg); }
  100% { transform: rotateY(-26deg) rotateX(5deg); }
}

@keyframes tokenTurnProjects {
  0% { transform: rotateY(24deg) rotateX(-5deg); }
  25% { transform: rotateY(-10deg) rotateX(5deg); }
  50% { transform: rotateY(-27deg) rotateX(-4deg); }
  75% { transform: rotateY(4deg) rotateX(6deg); }
  100% { transform: rotateY(24deg) rotateX(-5deg); }
}

@keyframes tokenTurnContact {
  0% { transform: rotateY(-20deg) rotateX(-6deg); }
  30% { transform: rotateY(22deg) rotateX(6deg); }
  60% { transform: rotateY(-6deg) rotateX(-8deg); }
  100% { transform: rotateY(-20deg) rotateX(-6deg); }
}

@keyframes shimmerMove {
  0% { transform: translateX(-40px) rotate(20deg); }
  100% { transform: translateX(140px) rotate(20deg); }
}
}

.work-tag,
.work-role,
.project-tag,
.contact-modal-kicker,
.footer-copy {
  color: var(--text-dim);
  font-size: 0.8rem;
}

.work-tag,
.work-role,
.project-tag,
.contact-modal-kicker {
  letter-spacing: 0;
}

/* ── EXPERIENCE — sticky scroll-stack ──────────────────────────────────────
   Three tall panels in normal flow. Each .exp-sticky pins at the top of the
   viewport for its own screen, then the next panel (higher z-index, opaque
   background) scrolls up and covers it. No scroll library: native momentum,
   trackpad and touch scrolling are untouched. */

.exp-intro,
.exp-outro {
  padding: 96px 28px;
}

.exp-intro {
  position: relative;
  padding-bottom: 40px;
}

.exp-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 140% at 20% 150%, var(--tint) 0%, transparent 62%);
  opacity: 0.16;
  pointer-events: none;
}

.exp-outro {
  padding-top: 64px;
}

#experience .section-header {
  position: relative;
  margin-bottom: 0;
}

#experience .section-header h2 {
  color: var(--text);
}

#experience .section-number {
  color: var(--exp-muted);
}

#experience .section-rule {
  background: var(--exp-line);
}

#experience .education-section h3 {
  color: var(--text);
}

#experience .education-section .education-note {
  color: var(--exp-copy);
}

.exp-stack {
  position: relative;
}

.exp-panel {
  position: relative;
  min-height: 170vh;
  padding: 0;
}

/* Later panels paint over earlier ones — this is the whole stacking mechanic */
.exp-panel:nth-of-type(1) {
  z-index: 1;
}

.exp-panel:nth-of-type(2) {
  z-index: 2;
}

.exp-panel:nth-of-type(3) {
  z-index: 3;
}

.exp-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 88px 28px 72px;
  background: var(--bg);
}

/* Tint reads as an accent wash, not a fill: brand colour at 22% over the dark surface */
.exp-sticky::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(108% 82% at 16% 2%, var(--tint) 0%, transparent 62%);
  opacity: 0.22;
  pointer-events: none;
}

.exp-content {
  position: relative;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Scroll reveal — same pattern as the contact cards, cleared on end */
.exp-content.is-hidden {
  opacity: 0;
  transform: translateY(18px);
}

.exp-content.is-revealing {
  animation: expReveal 0.55s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

@keyframes expReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

/* Questt and KPMG ship with a baked-in opaque background, so they need a plate */
.exp-badge--plate {
  padding: 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* Per-brand heights so each mark reads at a consistent visual weight */
.exp-mark {
  width: auto;
  object-fit: contain;
}

.exp-mark--questt {
  height: clamp(22px, 2.6vw, 28px);
}

.exp-mark--nyukt {
  height: clamp(38px, 4.4vw, 44px);
}

.exp-mark--kpmg {
  height: clamp(26px, 3.2vw, 34px);
}

.exp-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: var(--exp-muted);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0;
}

.exp-eyebrow-dot {
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint);
}

.exp-name {
  margin-bottom: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(2.4rem, 6.4vw, 4.2rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.exp-role {
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--tint);
  color: rgba(246, 241, 233, 0.92);
  font-size: clamp(1.02rem, 1.9vw, 1.24rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.exp-summary {
  max-width: 48rem;
  margin-bottom: 20px;
  color: rgba(246, 241, 233, 0.88);
  font-size: clamp(1rem, 1.7vw, 1.12rem);
  line-height: 1.55;
}

.exp-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 44rem;
}

.exp-points li {
  position: relative;
  padding-left: 20px;
  color: var(--exp-copy);
  font-size: clamp(0.95rem, 1.6vw, 1.05rem);
  line-height: 1.55;
}

.exp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--tint);
}

.exp-recognition {
  width: fit-content;
  margin-top: 18px;
  padding: 7px 11px;
  border: 1px solid rgba(246, 241, 233, 0.16);
  border-radius: 999px;
  color: var(--text);
  background: rgba(246, 241, 233, 0.06);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-owned {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
}

.exp-owned > p {
  color: var(--exp-muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.exp-owned ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.exp-owned li {
  padding: 5px 10px;
  border: 1px solid rgba(246, 241, 233, 0.14);
  border-radius: 999px;
  color: rgba(246, 241, 233, 0.82);
  background: rgba(246, 241, 233, 0.04);
  font-size: 0.72rem;
  line-height: 1.2;
}

/* Progress rail — indicator only, it does not drive the scroll mechanic.
   Zero-height sticky child so it pins mid-viewport for the length of the stack. */
.exp-rail {
  position: sticky;
  top: 50vh;
  z-index: 4;
  height: 0;
  pointer-events: none;
}

.exp-rail-inner {
  position: absolute;
  top: 0;
  right: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transform: translateY(-50%);
}

.exp-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--exp-line);
  transition: background 0.3s ease, transform 0.3s ease;
}

.exp-dot.is-active {
  background: var(--surface);
  transform: scale(1.5);
}

.education-section {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.education-section h3 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}

.education-section .education-note {
  color: var(--text-soft);
  font-size: 1rem;
  font-style: normal;
  line-height: 1.5;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 28px;
  border-radius: 28px;
  background: var(--surface);
}

.work-card-header {
  margin-bottom: 18px;
}

.work-tag {
  color: rgba(246, 241, 233, 0.64);
}

.work-card h3 {
  font-family: var(--sans);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 14px;
}

.work-card p {
  flex: 1;
  color: rgba(246, 241, 233, 0.78);
  font-size: 1rem;
  line-height: 1.56;
}

.work-card-footer {
  margin-top: 22px;
}

.work-role {
  color: rgba(246, 241, 233, 0.6);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: var(--max-width);
  margin: 0 auto;
  perspective: 1200px;
}

.projects-grid .project-card:nth-child(1) {
  --entry-x: -38px;
  --entry-y: 26px;
  --entry-rotate: -2.2deg;
  --settle-rotate: 0.18deg;
  --settle-delay: 0ms;
}

.projects-grid .project-card:nth-child(2) {
  --entry-x: 34px;
  --entry-y: 18px;
  --entry-rotate: 1.8deg;
  --settle-rotate: -0.14deg;
  --settle-delay: 90ms;
}

.projects-grid .project-card:nth-child(3) {
  --entry-x: -26px;
  --entry-y: 34px;
  --entry-rotate: 1.6deg;
  --settle-rotate: -0.13deg;
  --settle-delay: 180ms;
}

.projects-grid .project-card:nth-child(4) {
  --entry-x: 42px;
  --entry-y: 30px;
  --entry-rotate: -1.8deg;
  --settle-rotate: 0.14deg;
  --settle-delay: 270ms;
}

.project-card.is-staged {
  opacity: 0;
  transform: translate3d(var(--entry-x), var(--entry-y), -40px) rotate(var(--entry-rotate)) scale(0.965);
}

.project-card.is-staged.is-visible {
  animation: projectDeskDrop 900ms cubic-bezier(0.16, 1, 0.3, 1) var(--settle-delay) both;
}

@keyframes projectDeskDrop {
  0% {
    opacity: 0;
    transform: translate3d(var(--entry-x), var(--entry-y), -40px) rotate(var(--entry-rotate)) scale(0.965);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -4px, 0) rotate(var(--settle-rotate)) scale(1.004);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0) scale(1);
  }
}

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(246, 241, 233, 0.05);
  background: var(--surface);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  transition: transform 360ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 360ms ease, border-color 360ms ease;
}

.project-card--featured,
.project-card--wide {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  grid-template-rows: minmax(430px, auto);
}

.project-card--wide {
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
}

.project-card--wide .project-media {
  aspect-ratio: auto;
}

.project-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  border: 1px solid transparent;
  background: linear-gradient(115deg, transparent 34%, rgba(227, 161, 77, 0.34) 50%, transparent 66%) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-28%);
  transition: opacity 300ms ease, transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-8px);
  border-color: rgba(227, 161, 77, 0.18);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.2);
}

.project-card:hover::after,
.project-card:focus-within::after {
  opacity: 1;
  transform: translateX(28%);
}

.project-media {
  aspect-ratio: 16 / 10;
  min-height: 0;
  background: var(--bg);
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
}

.project-media--art {
  aspect-ratio: 1402 / 1122;
}

.project-media--art img {
  object-fit: contain;
}

.project-media--dark {
  background: #080c0e;
}

.project-media--light {
  background: #f4f2ed;
}

.project-card:hover .project-media img,
.project-card:focus-within .project-media img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.project-card:hover .project-media--art img,
.project-card:focus-within .project-media--art img {
  transform: none;
}

.project-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(227, 161, 77, 0.17), transparent 34%),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(246, 241, 233, 0.025) 42px 43px),
    repeating-linear-gradient(0deg, transparent 0 42px, rgba(246, 241, 233, 0.025) 42px 43px),
    var(--bg);
}

.costlens-mark {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.costlens-mark strong {
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.055em;
}

.costlens-mark small {
  color: var(--text-dim);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.costlens-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 190px;
  aspect-ratio: 1;
  border: 1px solid rgba(227, 161, 77, 0.32);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-18deg) scaleY(0.42);
}

.costlens-orbit::before,
.costlens-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.costlens-orbit::before {
  inset: 17px;
  border: 1px dashed rgba(246, 241, 233, 0.24);
  animation: costlensOrbit 14s linear infinite;
}

.costlens-orbit::after {
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--accent);
  box-shadow: 0 0 20px rgba(227, 161, 77, 0.75);
}

@keyframes costlensOrbit {
  to { transform: rotate(360deg); }
}

/* ── PROJECT DETAIL (subpage) ── */
#project-detail {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: 140px;
}

.project-detail-back {
  display: block;
  margin-bottom: 24px;
  color: var(--accent);
  font-size: 0.9rem;
  text-decoration: none;
}

.project-detail-back:hover {
  text-decoration: underline;
}

#project-detail h1 {
  margin: 0 0 16px;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-detail-media {
  aspect-ratio: 16 / 10;
  border-radius: 20px;
  margin-bottom: 28px;
}

.project-detail-summary {
  font-size: 1.08rem;
  line-height: 1.6;
  color: var(--text-soft);
}

.project-card-body {
  display: flex;
  flex-direction: column;
  padding: 30px;
}

.project-card-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.project-index {
  width: fit-content;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(227, 161, 77, 0.48);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.project-card h3 {
  font-family: var(--sans);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.project-card--featured h3,
.project-card--wide h3 {
  font-size: clamp(2.2rem, 4vw, 3.15rem);
}

.project-lead {
  max-width: 32rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.project-description {
  margin: 18px 0 20px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.58;
  max-width: 34rem;
}

.project-proof {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0 0 18px;
  padding: 14px 16px;
  border-left: 2px solid var(--accent);
  background: rgba(227, 161, 77, 0.06);
}

.project-proof span {
  color: var(--text-dim);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-proof strong {
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.35;
}

.project-proof--growth {
  border-left-color: #F0424C;
  background: rgba(240, 66, 76, 0.07);
}

.project-proof--growth strong {
  font-size: clamp(1.15rem, 2.2vw, 1.55rem);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.project-tags span {
  padding: 5px 9px;
  border: 1px solid rgba(246, 241, 233, 0.11);
  border-radius: 999px;
  color: var(--text-dim);
  background: rgba(246, 241, 233, 0.025);
  font-size: 0.7rem;
  line-height: 1.2;
}

.project-links {
  display: flex;
  gap: 12px;
  margin-top: auto;
}

.project-links a,
.project-link-pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--accent);
  border: 1px solid rgba(227, 161, 77, 0.5);
  border-radius: 999px;
  font-size: 0.88rem;
}

.project-link-pending {
  opacity: 0.52;
  cursor: not-allowed;
}

.project-card-reddevils .project-links a {
  color: #F0424C;
  border-color: rgba(240, 66, 76, 0.34);
}

.project-card-reddevils .project-links a:hover {
  background: rgba(240, 66, 76, 0.14);
}

.reddevils-media {
  overflow: hidden;
  background: var(--bg);
}

.contact-inner {
  max-width: var(--max-width);
  padding: 28px;
  border-radius: 28px;
  background: var(--bg);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.05);
}

/* ── CONTACT DASHBOARD ── */
.contact-details {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  grid-template-rows: repeat(3, auto);
  gap: 14px;
  margin: 0 0 14px;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 24px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.contact-detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: rgba(246, 241, 233, 0.16);
}

.contact-detail--primary {
  grid-column: 1;
  grid-row: 1 / 4;
  justify-content: center;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 12%, rgba(227, 161, 77, 0.09), transparent 38%),
    var(--surface);
}

.contact-detail--roles,
.contact-detail--markets,
.contact-detail--focus {
  grid-column: 2;
}

.contact-detail--primary > .contact-detail-value {
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.035em;
}

.contact-primary-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-primary-clock {
  gap: 5px;
}

/* Scroll reveal — small fade + translateY, cleared on end so hover stays snappy */
.contact-detail.is-hidden {
  opacity: 0;
  transform: translateY(14px);
}

.contact-detail.is-revealing {
  animation: contactReveal 0.5s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--reveal-delay, 0ms);
}

@keyframes contactReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.contact-detail-label {
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.contact-detail-value {
  margin: 0;
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.contact-detail-note {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Availability status */
.contact-status {
  display: flex;
  align-items: center;
  gap: 9px;
}

.contact-status-dot {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f5a623;
  box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5);
  animation: contactPulseAmber 3s ease-out infinite;
}

/* Based-in live clock */
.contact-clock-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-weight: 500;
}

.contact-clock-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5);
  animation: contactPulseGreen 2.6s ease-out infinite;
}

.contact-clock-time {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

.contact-clock-date {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.4;
}

.contact-clock-zone {
  margin: 2px 0 0;
  color: var(--text-dim);
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}

/* Countries with flags */
.contact-countries {
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 0;
  padding: 0;
}

.contact-countries li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
}

.contact-flag {
  font-size: 1.2rem;
  line-height: 1;
}

/* Roles as outlined pills */
.contact-pills {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.contact-pills li {
  padding: 6px 13px;
  border: 1px solid rgba(246, 241, 233, 0.14);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text-soft);
  font-size: 0.86rem;
  font-weight: 500;
}

/* Current focus as a clean vertical list */
.contact-focus {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 0;
  padding: 0;
}

.contact-focus li {
  position: relative;
  padding-left: 16px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.4;
}

.contact-focus li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

@keyframes contactPulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(48, 209, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(48, 209, 88, 0); }
}

@keyframes contactPulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0.5); }
  70% { box-shadow: 0 0 0 7px rgba(245, 166, 35, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 166, 35, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .contact-detail,
  .contact-detail:hover {
    transform: none;
  }
  .contact-detail.is-revealing {
    animation: none;
  }
  .contact-clock-dot,
  .contact-status-dot {
    animation: none;
  }
  .exp-content.is-hidden {
    opacity: 1;
    transform: none;
  }
  .exp-content.is-revealing {
    animation: none;
  }
  .exp-dot {
    transition: none;
  }
  .icon-token {
    animation: none !important;
  }
  .icon-token--experience {
    transform: rotateY(-18deg) rotateX(4deg);
  }
  .icon-token--projects {
    transform: rotateY(16deg) rotateX(-4deg);
  }
  .icon-token--contact {
    transform: rotateY(-14deg) rotateX(-4deg);
  }
  .shimmer-rect {
    animation: none !important;
    opacity: 0;
  }
  .project-card,
  .project-card:hover,
  .project-card:focus-within,
  .project-card.is-staged,
  .project-card.is-staged.is-visible {
    opacity: 1;
    transform: none;
    animation: none;
    transition: none;
  }
  .project-card::after,
  .project-media img {
    transition: none;
  }
  .costlens-orbit::before {
    animation: none;
  }
}

.contact-gate {
  max-width: 38rem;
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.contact-trigger {
  border: 0;
  cursor: pointer;
}

.contact-footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 68px;
  padding: 16px 22px;
  border: 1px solid transparent;
  border-radius: 18px;
  color: var(--bg);
  background: var(--accent);
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-align: left;
  transition: transform 0.2s ease, background 0.2s ease;
}

.contact-footer-cta::after {
  content: "↗";
  flex: none;
  font-size: 1.35em;
  font-weight: 400;
  transition: transform 0.2s ease;
}

.contact-footer-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-2px);
}

.contact-footer-cta:hover::after {
  transform: translate(2px, -2px);
}

.contact-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.contact-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-panel {
  width: min(100%, 460px);
  padding: 28px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.25s ease;
}

.contact-modal.open .contact-modal-panel {
  transform: translateY(0) scale(1);
}

.contact-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.contact-modal-kicker {
  color: var(--text-dim);
}

.contact-modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--line);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.contact-modal h3 {
  margin-bottom: 18px;
  font-family: var(--sans);
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text);
}

.contact-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-modal-link {
  min-height: 44px;
  padding: 8px 16px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.contact-modal-link:hover {
  background: var(--accent-deep);
}

footer {
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-copy {
  color: rgba(246, 241, 233, 0.54);
}

.footer-socials {
  display: flex;
  gap: 18px;
  align-items: center;
}

.footer-socials a {
  color: rgba(246, 241, 233, 0.56);
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--sans);
  font-size: 0.82rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.back-to-top.docked {
  position: absolute;
  transform: none;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  section {
    padding: 84px 24px;
  }

  .exp-intro,
  .exp-outro {
    padding: 84px 24px;
  }

  .exp-sticky {
    padding: 84px 24px 68px;
  }

  .section-intro {
    gap: 36px;
  }

  #hero {
    grid-template-columns: 1fr;
    gap: 32px;
    min-height: auto;
    padding-top: 96px;
  }

  .hero-text,
  .hero-image {
    max-width: 720px;
    margin: 0 auto;
  }

  .hero-image {
    order: -1;
  }

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

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

  .projects-grid {
    gap: 18px;
  }
}

@media (max-width: 768px) {
  section {
    padding: 72px 18px;
  }

  .exp-intro,
  .exp-outro {
    padding: 72px 18px;
  }

  .exp-sticky {
    padding: 68px 18px 42px;
  }

  .exp-badge {
    margin-bottom: 14px;
  }

  .exp-eyebrow {
    margin-bottom: 8px;
  }

  .exp-name {
    margin-bottom: 7px;
  }

  .exp-role {
    margin-bottom: 12px;
  }

  .exp-summary {
    margin-bottom: 14px;
    font-size: 0.95rem;
  }

  .exp-points {
    gap: 8px;
  }

  .exp-points li {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .exp-recognition {
    margin-top: 13px;
  }

  .exp-owned {
    margin-top: 16px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .project-card--featured,
  .project-card--wide {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }

  .project-card--wide .project-media {
    aspect-ratio: 16 / 10;
  }

  .projects-grid .project-card:nth-child(n) {
    --entry-x: 0px;
    --entry-y: 24px;
  }

  #navbar {
    height: auto;
    padding: 12px 16px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  #navbar.compact {
    top: 8px;
    width: calc(100% - 16px);
    padding: 12px 14px;
  }

  .nav-logo {
    width: 100%;
    text-align: center;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
  }

  .nav-links a {
    font-size: 0.76rem;
  }

  #hero {
    padding-top: 120px;
  }

  #impact {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .hero-role {
    white-space: normal;
  }

  .work-grid,
  .contact-inner {
    grid-template-columns: 1fr;
  }

  .section-intro {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 36px;
  }

  .icon-stage {
    justify-content: flex-start;
  }

  .icon-token {
    width: min(46vw, 160px);
  }

  .work-grid {
    display: grid;
  }

  .work-card,
  .project-card-body,
  .contact-inner,
  .contact-modal-panel {
    padding: 24px;
  }

  .contact-details {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .contact-detail--primary,
  .contact-detail--roles,
  .contact-detail--markets,
  .contact-detail--focus {
    grid-column: auto;
    grid-row: auto;
  }

  .contact-detail--primary {
    justify-content: flex-start;
  }

  footer {
    padding: 24px 18px;
    flex-direction: column;
    text-align: center;
  }
}

@media (hover: none) {
  .project-card:hover {
    transform: none;
    border-color: rgba(246, 241, 233, 0.05);
    box-shadow: 0 10px 36px rgba(0, 0, 0, 0.08);
  }

  .project-card:hover::after {
    opacity: 0;
  }

  .project-card:hover .project-media img {
    transform: none;
    filter: none;
  }
}

@media (max-width: 640px) {
  .exp-panel {
    min-height: 150vh;
  }

  .exp-rail {
    display: none;
  }
}

@media (max-width: 560px) {
  html {
    font-size: 15px;
  }

  #hero h1 {
    font-size: clamp(3.25rem, 16vw, 4.6rem);
  }

  .hero-bio {
    font-size: 1.02rem;
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .hero-cta,
  .project-links,
  .contact-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-primary,
  .btn-ghost,
  .project-links a,
  .project-link-pending,
  .contact-modal-link {
    width: 100%;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-header h2 {
    white-space: normal;
  }

  .section-rule {
    width: 100%;
    flex-basis: 100%;
  }

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

  .impact-card {
    min-height: 148px;
    padding: 22px;
  }

  .section-intro {
    gap: 26px;
  }

  .section-copy {
    font-size: 1rem;
  }

}
