@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&family=Outfit:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');
@import url('fontawesome-all.min.css');

/* Lenis Smooth Scroll Integration */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped,
body.modal-open {
  overflow: hidden !important;
}

body.modal-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

/* Design Tokens */
:root {
  --bg-dark: #0a0a0a;
  --bg-card-dark: #121214;
  --bg-light: #f1eee9;
  --text-main: #f5f5f5;
  --text-muted: #79797f;
  --text-secondary: #9b9ba1;
  --accent: #ff5c35;
  --accent-light: #ff7a56;
  --border-color: rgba(255, 255, 255, 0.12);
  --border-light: rgba(10, 10, 10, 0.18);
  --font-serif: 'Lora', Georgia, serif;
  --font-sans: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --dur-s: 0.35s;
  --dur-m: 0.65s;
  --dur-l: 1.1s;
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes enter {
  0% {
    opacity: var(--tw-enter-opacity, 1);
    transform: translate3d(var(--tw-enter-translate-x, 0), var(--tw-enter-translate-y, 0), 0) scale3d(var(--tw-enter-scale, 1), var(--tw-enter-scale, 1), var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0));
    filter: blur(var(--tw-enter-blur, 0));
  }
}

@keyframes exit {
  100% {
    opacity: var(--tw-exit-opacity, 1);
    transform: translate3d(var(--tw-exit-translate-x, 0), var(--tw-exit-translate-y, 0), 0) scale3d(var(--tw-exit-scale, 1), var(--tw-exit-scale, 1), var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0));
    filter: blur(var(--tw-exit-blur, 0));
  }
}

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

html {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  position: relative;
  isolation: isolate;
}

::selection {
  background: var(--accent);
  color: var(--bg-dark);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* Film Grain Overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.75'/%3E%3C/svg%3E");
}

.section-frame {
  padding-inline: clamp(1.25rem, 5vw, 6.25rem);
}

/* Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 60;
  pointer-events: none;
  transition: transform 0.05s linear;
}

/* Kinetic Text Roll */
.roll-wrap {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  height: 1.25em;
  line-height: 1.25em;
}

.roll-inner {
  display: flex;
  flex-direction: column;
  transition: transform var(--dur-m) var(--ease-in-out);
}

.roll-inner span {
  display: block;
  height: 1.25em;
  line-height: 1.25em;
  white-space: nowrap;
}

.roll-inner span:last-child {
  color: var(--accent-light);
}

a:hover .roll-inner,
button:hover .roll-inner {
  transform: translateY(-50%);
}

/* Site Navigation */
.site-nav {
  position: fixed;
  z-index: 40;
  top: 0;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid transparent;
  background: transparent;
  padding: 1.15rem clamp(1.25rem, 5vw, 6.25rem);
  transition: background var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out), backdrop-filter var(--dur-s) var(--ease-out), -webkit-backdrop-filter var(--dur-s) var(--ease-out);
}

.site-nav.scrolled {
  background: rgba(10, 10, 10, 0.75);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-logo {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.06em;
  display: inline-flex;
  align-items: center;
}

.site-logo-mark {
  color: var(--accent);
  padding-left: 0.15rem;
  display: inline-block;
  transition: transform var(--dur-m) var(--ease-in-out);
}

.site-logo:hover .site-logo-mark {
  transform: rotate(180deg) scale(1.15);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-nav a,
.desktop-nav button {
  color: #a1a1aa;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-block;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.desktop-nav a.active {
  color: #fff;
}

.desktop-nav a.active .roll-inner span:first-child {
  color: var(--accent-light);
}

.nav-resume-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  padding: 0.25rem 0.65rem;
  border-radius: 2rem;
  font-size: 0.65rem !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff !important;
  transition: all var(--dur-s) var(--ease-out);
}

.nav-resume-badge:hover {
  border-color: var(--accent) !important;
  color: var(--accent-light) !important;
  background: rgba(255, 92, 53, 0.08) !important;
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.25rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: border-color var(--dur-s) var(--ease-out);
}

.nav-contact:hover {
  border-color: var(--accent);
}

.mobile-menu-button {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: 1.25rem;
}

.mobile-nav {
  position: fixed;
  z-index: 35;
  top: 4.2rem;
  left: 0;
  display: none;
  width: 100%;
  flex-direction: column;
  gap: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(10, 10, 10, 0.96);
  padding: 2rem 1.5rem;
  backdrop-filter: blur(18px);
  transform: translateY(-10px);
  opacity: 0;
  transition: transform var(--dur-s) var(--ease-out), opacity var(--dur-s) var(--ease-out);
}

.mobile-nav.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav a,
.mobile-nav button {
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.8rem;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
}

/* Typography & Section Headings */
.eyebrow,
.section-kicker,
.section-aside,
.hero-meta,
.hero-portrait-note,
.timeline-count,
.timeline-date,
.project-index {
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 2rem;
  color: var(--accent-light);
}

.section-kicker {
  color: var(--accent-light);
}

.section-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.8vw, 7.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.05;
  padding-bottom: 0.4em;
}

/* Masked Slide-up Entrance Animations */
.reveal-mask {
  display: block;
  padding-bottom: 0.5em;
  margin-bottom: -0.5em;
}

.reveal-elem {
  opacity: 0;
  transform: translateY(22px);
  filter: blur(8px);
  transition: transform var(--dur-l) var(--ease-in-out), opacity var(--dur-l) var(--ease-out), filter var(--dur-l) var(--ease-out);
  will-change: transform, opacity, filter;
}

.reveal-fade {
  opacity: 0;
  transform: translateY(26px);
  filter: blur(6px);
  transition: transform var(--dur-m) var(--ease-out), opacity var(--dur-m) var(--ease-out), filter var(--dur-m) var(--ease-out);
  will-change: transform, opacity, filter;
}

.is-revealed .reveal-elem {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.is-revealed.reveal-fade,
.is-revealed .reveal-fade {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.24s; }
.delay-3 { transition-delay: 0.36s; }

/* Hero Section */
.hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 100svh;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: #000000;
}

.hero-blackhole-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
  pointer-events: none;
  background: #000000;
}

.hero-blackhole-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 54rem;
  padding-bottom: 2rem;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.8rem;
  width: fit-content;
}

.status-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  display: inline-block;
  animation: pulse-radar 2.4s infinite ease-in-out;
}

@keyframes pulse-radar {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 14px #10b981; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

.hero-heading {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(3.2rem, 6.2vw, 5.8rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #ffffff;
  padding-bottom: 0.08em;
}

.hero-heading > span {
  display: block;
  padding-left: clamp(1.5rem, 4vw, 4rem);
  color: rgba(255, 255, 255, 0.9);
}

.hero-lower {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2.2rem;
  margin-top: 3rem;
}

.hero-description {
  max-width: 36rem;
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.95), 0 0 3px rgba(0, 0, 0, 0.9);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.45rem;
  border-radius: 9999px;
  background: #ffffff;
  color: #000000;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}

.hero-btn-primary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-2px);
}

.hero-resume-btn {
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
}


.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding-bottom: 0.35rem;
  color: #f5f5f5;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out);
}

.text-link:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

.hero-portrait-wrap {
  position: relative;
  height: min(68vh, 660px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #171717;
}

.hero-portrait {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 3.5s cubic-bezier(0.2, 0.6, 0.25, 1), opacity 1.8s ease;
  will-change: transform, opacity;
}

.hero-portrait-bw {
  opacity: 1;
  z-index: 1;
}

.hero-portrait-color {
  opacity: 0;
  z-index: 2;
  filter: grayscale(0.55) contrast(1.08) saturate(0.85);
}

.hero-portrait-wrap:hover .hero-portrait {
  transform: scale(1.03);
}

.hero-portrait-wrap:hover .hero-portrait-color {
  opacity: 1;
}

.hero-portrait-note {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 0;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.9);
}

.hero-meta {
  position: absolute;
  right: clamp(1.25rem, 5vw, 6.25rem);
  bottom: 1.5rem;
  left: clamp(1.25rem, 5vw, 6.25rem);
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 0.85rem;
  color: var(--text-muted);
}

/* Sections Common */
.intro-section,
.work-section,
.capabilities-section,
.certs-section,
.experience-section {
  border-top: 1px solid var(--border-color);
  padding-top: 6.5rem;
  padding-bottom: 9rem;
}

/* About Section */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(280px, 32vw) minmax(0, 1.2fr);
  gap: 6vw;
  align-items: center;
  margin-top: 1.5rem;
}

.intro-heading {
  max-width: 10ch;
}

.intro-copy {
  padding-top: 0.75rem;
}

.intro-copy p {
  max-width: 28rem;
  margin: 0 0 1.5rem;
  color: #a1a1a8;
  font-size: 1.05rem;
  line-height: 1.65;
}

.outline-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.9rem 1.35rem;
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--dur-m) var(--ease-in-out), color var(--dur-m) var(--ease-in-out);
}

.outline-button::before {
  content: '';
  position: absolute;
  inset: 100% 0% auto;
  height: 100%;
  background: #ffffff;
  border-radius: 100%;
  transition: inset var(--dur-m) var(--ease-in-out), border-radius var(--dur-m) var(--ease-in-out);
  z-index: -1;
}

.outline-button:hover {
  border-color: #fff;
  color: #0a0a0a;
}

.outline-button:hover::before {
  inset: 0% 0% auto;
  border-radius: 0%;
}

.signal-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr 1fr;
  margin-top: 7rem;
  border-top: 1px solid var(--border-color);
  border-left: 1px solid var(--border-color);
}

.signal-card {
  display: flex;
  min-height: 9.5rem;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: 1.35rem;
  overflow: hidden;
  transition: transform var(--dur-m) var(--ease-out), background var(--dur-m) var(--ease-out), border-color var(--dur-m) var(--ease-out);
}

.signal-card:hover {
  background: rgba(255, 255, 255, 0.02);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.25);
}

.signal-card i,
.signal-card svg {
  align-self: flex-start;
  color: #a1a1a8;
  font-size: 1.4rem;
  transition: color var(--dur-s) var(--ease-out);
}

.signal-card:hover i {
  color: var(--accent);
}

.signal-card strong {
  margin-top: auto;
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 400;
  letter-spacing: -0.04em;
}

.signal-card span:last-child {
  color: #77777d;
  font-size: 0.67rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-card-accent {
  background: var(--accent);
  color: #0a0a0a;
}

.signal-card-accent:hover {
  background: var(--accent-light);
}

.signal-card-accent i,
.signal-card-accent svg,
.signal-card-accent strong,
.signal-card-accent span:last-child {
  color: #0a0a0a;
}

.signal-card-accent i {
  transition: color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), filter var(--dur-s) var(--ease-out);
}

.signal-card-accent:hover i,
.signal-card-accent:focus-visible i,
.signal-card-accent:active i {
  color: #ffffff;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.55));
  transform: scale(1.12);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 4.4rem;
  font-weight: 400;
  letter-spacing: -0.09em;
  line-height: 1;
}

/* Selected Work */
.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 4rem;
}

.section-header-row .section-heading {
  margin-top: 2.5rem;
}

.section-aside {
  padding-bottom: 0.4rem;
  white-space: nowrap;
  color: var(--text-muted);
}

.project-list {
  border-top: 1px solid var(--border-color);
}

.project-card {
  display: grid;
  grid-template-columns: minmax(250px, 38%) 1fr;
  column-gap: clamp(1.5rem, 4vw, 5rem);
  border-bottom: 1px solid var(--border-color);
  padding: 2.75rem 0 3rem;
  color: #fff;
  align-items: start;
  cursor: pointer;
  transition: background var(--dur-s) var(--ease-out), transform var(--dur-m) var(--ease-soft), border-color var(--dur-s) var(--ease-out);
}

.project-card:hover {
  background: rgba(255, 255, 255, 0.015);
  transform: translateY(-4px);
}

.project-image-wrap {
  position: relative;
  height: clamp(240px, 31vw, 450px);
  overflow: hidden;
  background: #171717;
}

.project-image {
  height: 100%;
  width: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: transform var(--dur-l) var(--ease-in-out), filter var(--dur-l) var(--ease-in-out);
  will-change: transform;
}

.project-card:hover .project-image {
  transform: scale(1.06);
  filter: grayscale(0);
}

.project-index {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-serif);
  font-size: 2.7rem;
  letter-spacing: -0.08em;
}

.project-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 1.8rem;
  padding-top: 0.25rem;
  padding-right: clamp(2rem, 5vw, 4.5rem);
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
}

.project-header h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 5vw, 5.6rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1.05;
  transition: color var(--dur-s) var(--ease-out);
}

.project-card:hover .project-header h3 {
  color: var(--accent-light);
}

.project-kind {
  margin-top: 0.9rem;
  color: #d1d1d8;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.project-kind::before {
  content: none;
}

.flag-icon {
  display: inline-block;
  width: 17px;
  height: 11px;
  vertical-align: -1px;
  margin-right: 0.35rem;
  border-radius: 2px;
  box-shadow: 0 0 1px rgba(255, 255, 255, 0.35);
  object-fit: cover;
}

.project-detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #8c8c94;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding-top: 0.65rem;
  padding-right: clamp(0.75rem, 2vw, 1.5rem);
  white-space: nowrap;
}

.project-year-arrow {
  display: inline-block;
  color: var(--accent);
  flex-shrink: 0;
}

.timeline-loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-loc::before {
  content: none;
}

.project-summary {
  max-width: 32rem;
  margin: 0;
  color: #a1a1a8;
  font-size: 0.95rem;
  line-height: 1.65;
}

.project-card-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: -0.5rem;
  flex-wrap: wrap;
}

.project-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-decoration: none;
  transition: all var(--dur-s) var(--ease-out);
}

.project-card-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.project-card-btn-demo {
  color: #ffffff;
  background: rgba(255, 92, 53, 0.16);
  border-color: rgba(255, 92, 53, 0.45);
}

.project-card-btn-demo:hover {
  background: rgba(255, 92, 53, 0.3);
  border-color: rgba(255, 92, 53, 0.7);
}

.project-repo-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.45rem;
  margin-top: -0.9rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-light);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-family: inherit;
  cursor: pointer;
  transition: color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}

.project-repo-link:hover {
  color: #fff;
  transform: translateX(3px);
}

/* Project Drawer */
.project-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  overscroll-behavior: contain;
  transition: opacity var(--dur-m) var(--ease-out);
}

.project-drawer-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.project-drawer {
  touch-action: none;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(600px, 94vw);
  height: 100vh;
  height: 100dvh;
  background: #111113;
  border-left: 1px solid var(--border-color);
  z-index: 101;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform var(--dur-m) var(--ease-in-out);
}

.drawer-chrome {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 1.1rem 1.15rem 0.85rem;
  background: #111113;
  border-bottom: 1px solid var(--border-color);
  z-index: 2;
}

.drawer-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  touch-action: none;
  scroll-behavior: auto;
  padding: 0;
}

.drawer-scroll-inner {
  padding: 0 clamp(1.5rem, 4vw, 3rem) 4rem;
}

.drawer-scroll::-webkit-scrollbar {
  width: 6px;
}
.drawer-scroll::-webkit-scrollbar-track {
  background: #111113;
}
.drawer-scroll::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}
.drawer-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

.project-drawer-overlay.open .project-drawer {
  transform: translateX(0);
}

.drawer-close-btn {
  position: static;
  background: #1c1c20;
  border: 1px solid var(--border-color);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
  transition: all var(--dur-s) var(--ease-out);
}

.drawer-close-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg) scale(1.05);
}

.drawer-kicker {
  color: var(--accent);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-top: 1.5rem;
  margin-bottom: 0.6rem;
}

.drawer-title {
  padding-top: 1.75rem;
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.drawer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: -0.6rem 0 1rem;
}

.drawer-action {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 2rem;
  padding: 0.55rem 0.95rem;
  color: var(--text-secondary);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: border-color var(--dur-s) var(--ease-out), color var(--dur-s) var(--ease-out), background var(--dur-s) var(--ease-out);
}

.drawer-action:hover,
.drawer-action-primary {
  border-color: var(--accent);
  color: #fff;
  background: rgba(255, 92, 53, 0.12);
}

.drawer-scroll-cue {
  display: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.drawer-project-content[hidden] {
  display: none;
}

.drawer-tag {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.drawer-section-title {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin: 1.4rem 0 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.drawer-section-title i {
  color: var(--accent);
}

.drawer-body p {
  color: var(--text-secondary);
  font-size: 0.94rem;
  line-height: 1.75;
  margin-bottom: 1.2rem;
}

.drawer-architecture-figure {
  margin: 1rem 0 0;
  background: transparent;
  aspect-ratio: 680 / 800;
  overflow: hidden;
}

.drawer-architecture-figure img {
  width: 108%;
  max-width: none;
  margin-left: -4%;
  height: auto;
  max-height: none;
  display: block;
}

.drawer-arch-box {
  background: #18181c;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.35rem;
  margin: 1.4rem 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.85;
  color: #d1d1d8;
}

.drawer-arch-box strong {
  color: var(--accent-light);
}

/* Resume Preview Modal */
.resume-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  overscroll-behavior: contain;
  transition: opacity var(--dur-m) var(--ease-out);
}

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

.resume-modal {
  position: relative;
  width: min(850px, 94vw);
  height: auto;
  max-height: 92vh;
  max-height: min(92dvh, 940px);
  background: #151518;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  overscroll-behavior: contain;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.96) translateY(20px);
  transition: transform var(--dur-m) var(--ease-out);
}

.resume-modal-overlay.open .resume-modal {
  transform: scale(1) translateY(0);
}

.resume-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 0.6rem 1rem;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  background: #1a1a1e;
}

.resume-modal-header h3 {
  white-space: nowrap;
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.resume-modal-header h3 i {
  color: var(--accent);
}

.resume-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
  margin-left: auto;
}

.resume-download-btn {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 0.45rem;
  background: var(--accent);
  color: #0a0a0a;
  padding: 0.45rem 1rem;
  border-radius: 2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: all var(--dur-s) var(--ease-out);
}

.resume-download-btn:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.resume-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: all var(--dur-s) var(--ease-out);
}

.resume-close-btn:hover {
  background: rgba(255, 255, 255, 0.16);
  color: var(--accent);
  transform: rotate(90deg);
}

.resume-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  background: #202024;
  position: relative;
  overflow: hidden;
  overscroll-behavior: contain;
}

.resume-viewer {
  width: 100%;
  height: auto;
  max-height: calc(92vh - 4.25rem);
  max-height: calc(92dvh - 4.25rem);
  overflow: auto;
  overscroll-behavior: contain;
  touch-action: none;
  scroll-behavior: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.resume-viewer::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.resume-preview-wrap {
  position: relative;
  width: 100%;
}

.resume-hotspot {
  position: absolute;
  display: block;
}

.resume-hotspot:hover {
  outline: 1px solid var(--accent);
  outline-offset: -1px;
}

.resume-preview-img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  aspect-ratio: 1241 / 1754;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

/* Capabilities */
.capabilities-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8vw;
  margin-top: 3.5rem;
}

.capabilities-layout em {
  color: var(--accent);
  font-style: normal;
}

.capabilities-list {
  border-top: 1px solid var(--border-color);
}

.capability-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  align-items: center;
  gap: 1rem;
  border-bottom: 1px solid var(--border-color);
  padding: 1.2rem 0;
  transition: padding-left var(--dur-m) var(--ease-in-out), color var(--dur-s) var(--ease-out);
}

.capability-item:hover {
  padding-left: 0.85rem;
  color: var(--accent-light);
}

.capability-item span {
  color: #66666b;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  font-family: var(--font-mono);
}

.capability-item strong {
  font-size: 1rem;
  font-weight: 400;
}

.capability-footnote {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 3rem;
  color: #77777d;
  font-size: 0.82rem;
}

/* Certifications Grid */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.cert-card-editorial {
  position: relative;
  border: 1px solid var(--border-color);
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color var(--dur-m) var(--ease-in-out), transform var(--dur-m) var(--ease-out), background var(--dur-s) var(--ease-out);
}

.cert-card-editorial:hover {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-4px);
}

.cert-card-editorial .cert-logo-wrap {
  width: 60px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 1.25rem;
  transition: transform var(--dur-m) var(--ease-out);
}

.cert-card-editorial:hover .cert-logo-wrap {
  transform: scale(1.08);
}

.cert-card-editorial .cert-logo {
  max-width: 54px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.cert-card-editorial .cert-logo[src*="databricks"] {
  max-width: 37px;
  max-height: 30px;
}

.cert-card-editorial .cert-logo[src*="anthropic"] {
  max-width: 38px;
  max-height: 26px;
}

.cert-issuer {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}

.cert-name {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cert-action {
  margin-top: 1.2rem;
  font-size: 0.68rem;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: transform var(--dur-s) var(--ease-out);
}

.cert-card-editorial:hover .cert-action {
  transform: translateX(3px);
  color: #fff;
}

/* Timeline */
.timeline-list {
  border-top: 1px solid var(--border-color);
}

.timeline-item {
  display: grid;
  grid-template-columns: 3rem 1.2fr 1.5fr 0.7fr;
  gap: 1rem;
  align-items: start;
  border-bottom: 1px solid var(--border-color);
  padding: 1.65rem 0.25rem;
  transition: background var(--dur-s) var(--ease-out), padding-left var(--dur-m) var(--ease-in-out);
}

.timeline-item:hover {
  background: rgba(255, 255, 255, 0.015);
  padding-left: 0.75rem;
}

.timeline-count {
  color: var(--accent-light);
  padding-top: 0.35rem;
  font-family: var(--font-mono);
}

.timeline-main h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.6vw, 2.65rem);
  font-weight: 400;
  letter-spacing: -0.06em;
  line-height: 1;
}

.timeline-main p {
  margin: 0;
  color: #85858c;
  font-size: 0.82rem;
  line-height: 1.5;
}

.timeline-loc {
  color: #85858c;
  font-size: 0.82rem;
  margin-left: 0.3rem;
  font-weight: 400;
  letter-spacing: normal;
}

.timeline-detail {
  margin: 0;
  color: #85858c;
  font-size: 0.82rem;
  line-height: 1.5;
  max-width: 25rem;
}

.timeline-date {
  justify-self: end;
  padding-top: 0.35rem;
  white-space: nowrap;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #79797f;
}

/* Contact Section */
.contact-section {
  min-height: 85svh;
  background: var(--bg-light);
  color: var(--bg-dark);
}

.contact-inner {
  display: flex;
  min-height: 85svh;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 8.5rem;
  padding-bottom: 4rem;
}

.contact-inner .section-kicker {
  color: #7d645a;
}

.contact-heading {
  max-width: 8ch;
  margin: auto 0 4rem;
  font-family: var(--font-serif);
  font-size: clamp(4.2rem, 10.5vw, 11.8rem);
  font-weight: 400;
  letter-spacing: -0.1em;
  line-height: 0.8;
  color: #0a0a0a;
}

.contact-bottom {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) 1fr;
  gap: 3rem;
  border-top: 1px solid var(--border-light);
  padding-top: 1.5rem;
}

.contact-bottom p {
  max-width: 22rem;
  margin: 0;
  color: #665f5b;
  font-size: 0.95rem;
  line-height: 1.55;
}

.contact-actions {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

.contact-email {
  color: #0a0a0a;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 3vw, 3.2rem);
  letter-spacing: -0.06em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  transition: color var(--dur-s) var(--ease-out);
}

.contact-email:hover {
  color: var(--accent);
}

.contact-email-arrow {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: currentColor;
  transition: transform var(--dur-s) var(--ease-out);
}

.contact-email:hover .contact-email-arrow {
  transform: translate(3px, -3px);
}

.copy-email-btn {
  background: transparent;
  border: 1px solid var(--border-light);
  padding: 0.4rem 0.85rem;
  border-radius: 2rem;
  color: #555;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: all var(--dur-s) var(--ease-out);
}

.copy-email-btn:hover {
  border-color: #0a0a0a;
  color: #0a0a0a;
  background: rgba(0, 0, 0, 0.05);
}

/* Site Footer */
.site-footer {
  background: var(--bg-dark);
  padding-top: 2rem;
  padding-bottom: 2.5rem;
}

.footer-top,
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-top {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.25rem;
}

.footer-bottom {
  padding-top: 1.25rem;
}

.footer-links {
  display: flex;
  gap: 1.35rem;
  align-items: center;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out);
}

.footer-links a:hover {
  color: var(--accent-light);
  transform: translateY(-2px);
}

/* Back to Top Floating Pill */
.back-to-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 50;
  background: rgba(24, 24, 28, 0.9);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.6rem 1.05rem;
  border-radius: 2rem;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity var(--dur-s) var(--ease-out), transform var(--dur-s) var(--ease-out), border-color var(--dur-s) var(--ease-out);
}

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

.back-to-top-btn.footer-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(15px) !important;
}

.back-to-top-btn:hover {
  border-color: var(--accent);
  color: var(--accent-light);
}

/* Floating Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(40px);
  background: #1c1c20;
  color: #fff;
  border: 1px solid var(--accent);
  padding: 0.75rem 1.4rem;
  border-radius: 2rem;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.toast-notification.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Responsive */
@media (min-width: 801px) {
  .reveal-mask {
    padding-bottom: 1.2em;
    margin-bottom: -1.2em;
  }
}

@media (max-width: 1100px) {
  .signal-grid {
    grid-template-columns: 1fr 1fr;
  }
  .timeline-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem 1rem;
  }
  .timeline-detail {
    grid-column: 2;
  }
  .timeline-date {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 800px) {
  .desktop-nav,
  .nav-contact {
    display: none;
  }
  .mobile-menu-button {
    display: block;
  }
  .hero-section {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 3rem;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
  .hero-copy {
    padding-bottom: 0;
  }
  .hero-heading {
    max-width: none;
    font-size: clamp(2.8rem, 11vw, 4.4rem);
    line-height: 1.05;
  }
  .hero-heading > span {
    padding-left: 0;
  }
  .hero-lower {
    align-items: flex-start;
    flex-direction: column;
    gap: 1.75rem;
    margin-top: 3.5rem;
  }
  .hero-portrait-wrap {
    height: 73vw;
    max-height: 520px;
  }
  .hero-meta {
    position: static;
    margin-top: 2rem;
  }
  .intro-section,
  .work-section,
  .capabilities-section,
  .certs-section,
  .experience-section {
    padding-top: 4rem;
    padding-bottom: 6rem;
  }
  .intro-grid,
  .capabilities-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .signal-grid {
    grid-template-columns: 1fr 1fr;
    margin-top: 4rem;
  }
  .signal-card {
    min-height: 8rem;
  }
  .certs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
  }
  .cert-card-editorial {
    padding: 1.25rem 1rem;
  }
  .cert-card-editorial .cert-logo-wrap {
    margin-bottom: 0.9rem;
  }
  .copy-email-btn {
    padding: 0.55rem 1rem;
  }
  .section-header-row {
    display: block;
    margin-bottom: 3rem;
  }
  .section-aside {
    display: block;
    margin-top: 1.5rem;
  }
  .project-card {
    display: block;
    padding: 0.75rem 0 2.25rem;
  }
  .project-image-wrap {
    height: 62vw;
    max-height: 430px;
  }
  .project-content {
    padding-top: 1.25rem;
    padding-right: 1.75rem;
    gap: 1.25rem;
  }
  .project-header h3 {
    font-size: clamp(2.5rem, 14vw, 5rem);
  }
  .timeline-item {
    grid-template-columns: 2rem 1fr;
    gap: 0.6rem 1rem;
  }
  .timeline-detail {
    grid-column: 2;
  }
  .timeline-date {
    grid-column: 2;
    justify-self: start;
  }
  .contact-inner {
    min-height: 80svh;
    padding-top: 6rem;
    padding-bottom: 2.5rem;
  }
  .contact-heading {
    margin-top: 5rem;
    margin-bottom: 3rem;
    font-size: clamp(4rem, 19vw, 8rem);
  }
  .contact-bottom {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-actions {
    justify-self: start;
    align-items: flex-start;
  }
  .contact-email {
    justify-self: start;
    font-size: clamp(1.35rem, 6vw, 2.5rem);
  }
  .footer-top {
    flex-wrap: wrap;
  }
  .back-to-top-btn {
    right: 1.25rem;
    bottom: 1.25rem;
  }
  .project-drawer {
    height: 100dvh;
    max-height: 100dvh;
  }
  .resume-modal-overlay {
    padding: 0.75rem;
  }
  .resume-modal-header {
    padding: 0.85rem 1rem;
    gap: 0.5rem 0.75rem;
  }
  .resume-modal-header h3 {
    font-size: 0.74rem;
    letter-spacing: 0.04em;
  }
  .resume-modal-actions {
    gap: 0.55rem;
  }
  .resume-download-btn {
    font-size: 0.62rem;
    padding: 0.42rem 0.8rem;
  }
  .drawer-scroll {
    overflow-y: auto;
    padding-bottom: 4rem;
  }
  .drawer-scroll-cue {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-lower {
    display: none;
  }
}

@media (max-width: 480px) {
  .resume-modal-header h3 {
    font-size: 0.68rem;
    letter-spacing: 0.03em;
  }
  .resume-modal-header h3 i {
    display: none;
  }
  .hero-meta,
  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }
  .section-heading {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }
  .stat-number {
    font-size: 3.3rem;
  }
  .signal-card strong {
    font-size: 1.2rem;
  }
  .certs-grid {
    gap: 0.75rem;
  }
}

/* Reduced motion: no smooth scroll, no reveal animation, content always visible */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal-fade,
  .reveal-elem {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}









