:root {
  --paper: #f4efe6;
  --paper-alt: #ebe3d5;
  --card: #faf6ee;
  --ink: #161412;
  --ink-soft: #2e2924;
  --muted: #453e38;
  --line: #d8cfc0;
  --line-strong: #bfb4a2;
  --accent: #d14924;
  --accent-deep: #ab3717;
  --forest: #1f4d3d;
  --forest-soft: #e4ede8;
  --dark-bg: #141311;
  --dark-line: #312d28;

  --font-serif: "Fraunces", Georgia, serif;
  --font-display: "Syne", sans-serif;
  --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-script: "Caveat", cursive;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(209, 73, 36, 0.14);
}

/* Full-viewport animated GIF background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg picture {
  display: block;
  width: 100%;
  height: 100%;
}

.page-bg-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
  transform: scale(1.03);
}

.page-bg-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(244, 239, 230, 0.62) 0%,
    rgba(244, 239, 230, 0.56) 46%,
    rgba(244, 239, 230, 0.7) 100%
  );
}

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

/* Subtle archival paper grain */
.grain-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Scroll reading progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 100;
  background: var(--accent);
  opacity: 0.85;
  transform-origin: left center;
  transform: scaleX(0);
  will-change: transform;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

h1, h2, h3, p, figure {
  margin: 0;
}

.wrap {
  width: min(1180px, 89%);
  margin-inline: auto;
}

section[id],
footer[id] {
  scroll-margin-top: 84px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.skip:focus {
  top: 12px;
}

/* Header & Navigation — Apple Liquid Glass */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: max(14px, env(safe-area-inset-top)) env(safe-area-inset-right) 4px env(safe-area-inset-left);
  pointer-events: none;
}

.header-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav {
  grid-column: 2;
  justify-self: center;
  position: relative;
  pointer-events: auto;
  width: fit-content;
  max-width: 100%;
  min-height: 48px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.66) 0%,
    rgba(250, 246, 239, 0.44) 55%,
    rgba(255, 255, 255, 0.58) 100%
  );
  backdrop-filter: blur(26px) saturate(190%) brightness(1.03);
  -webkit-backdrop-filter: blur(26px) saturate(190%) brightness(1.03);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow:
    0 10px 30px -10px rgba(22, 20, 18, 0.1),
    0 2px 6px -1px rgba(22, 20, 18, 0.04),
    0 0 0 1px rgba(22, 20, 18, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    inset 0 -1px 0 rgba(255, 255, 255, 0.35);
  transition:
    background 0.35s var(--ease-out),
    box-shadow 0.35s var(--ease-out),
    border-color 0.35s var(--ease-out);
  overflow: hidden;
}

.nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, 0.45),
    transparent 70%
  );
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.site-header.is-scrolled .nav {
  background: linear-gradient(
    135deg,
    rgba(255, 253, 249, 0.82) 0%,
    rgba(248, 244, 236, 0.68) 55%,
    rgba(255, 253, 249, 0.78) 100%
  );
  border-color: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 16px 40px -12px rgba(22, 20, 18, 0.14),
    0 4px 10px -2px rgba(22, 20, 18, 0.06),
    0 0 0 1px rgba(22, 20, 18, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.4);
}

.mobile-brand {
  display: none;
  align-items: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
}

.mobile-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: block;
  flex-shrink: 0;
}

.main-nav {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: rgba(22, 20, 18, 0.72);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    color 0.22s ease,
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.main-nav a:not(.contact-nav) {
  padding: 7px 14px;
  border-radius: 999px;
}

.main-nav a:not(.contact-nav):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.main-nav a:not(.contact-nav).is-active {
  color: var(--ink);
  font-weight: 600;
  background: rgba(255, 255, 255, 0.86);
  box-shadow:
    0 2px 8px rgba(22, 20, 18, 0.06),
    0 0 0 1px rgba(22, 20, 18, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.contact-nav {
  grid-column: 3;
  justify-self: end;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(36, 33, 29, 0.92) 0%, rgba(20, 18, 16, 0.96) 100%);
  color: #faf7f2 !important;
  font-weight: 600;
  font-size: 0.84rem !important;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 4px 12px rgba(22, 20, 18, 0.14);
  transition:
    background 0.25s var(--ease-out),
    box-shadow 0.25s var(--ease-out),
    transform 0.22s var(--ease-out);
}

.contact-nav:hover {
  background: linear-gradient(180deg, rgba(48, 44, 39, 0.96) 0%, rgba(24, 22, 19, 0.98) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 6px 16px rgba(22, 20, 18, 0.18);
  transform: translateY(-0.5px);
}

.contact-nav:active {
  transform: scale(0.98);
}

.menu-toggle {
  position: relative;
  z-index: 1;
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(22, 20, 18, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0;
  transition: background 0.2s ease, transform 0.2s ease;
}

.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.86);
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.6px;
  border-radius: 99px;
  background: var(--ink);
  transition: transform 0.28s var(--ease-out);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.3px) rotate(-45deg);
}

.mobile-drawer {
  pointer-events: auto;
  width: min(1180px, 89%);
  margin: 10px auto 0;
  border-radius: 22px;
  padding: 10px;
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(26px) saturate(185%);
  -webkit-backdrop-filter: blur(26px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 20px 44px -12px rgba(22, 20, 18, 0.16),
    0 0 0 1px rgba(22, 20, 18, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: drawerIn 0.24s var(--ease-out);
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mobile-drawer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 14px;
  font-family: var(--font-sans);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  transition: background 0.2s ease;
}

.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.72);
}

.mobile-drawer a.mobile-drawer-cta {
  margin-top: 4px;
  justify-content: center;
  background: linear-gradient(180deg, rgba(36, 33, 29, 0.94) 0%, rgba(20, 18, 16, 0.98) 100%);
  color: #faf7f2;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  align-items: center;
  gap: 6%;
  padding-block: clamp(44px, 5.5vw, 84px);
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  border: 1px solid #bfd4c8;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  position: relative;
}

.pulse-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  animation: pulseRing 2.2s ease-out infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.7); opacity: 0.85; }
  75%, 100% { transform: scale(1.9); opacity: 0; }
}

.eyebrow-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-title {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.8rem, 5.9vw, 6.1rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
}

.line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.18em;
}

.line-inner {
  display: inline-block;
  position: relative;
  white-space: nowrap;
}

.surname-wrap {
  display: inline-block;
  position: relative;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--ink);
}

.accent-mark {
  color: var(--accent);
}

.hand-underline {
  position: absolute;
  left: -2%;
  bottom: -0.06em;
  width: 98%;
  height: 0.2em;
  pointer-events: none;
}

.hand-underline path {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
}

.js.is-loaded .hand-underline path,
.no-js .hand-underline path {
  animation: drawLine 0.9s var(--ease-out) 0.55s forwards;
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

.lead {
  font-size: clamp(1.06rem, 1.42vw, 1.28rem);
  font-weight: 700;
  max-width: 48ch;
  color: var(--ink);
  line-height: 1.65;
}

.editorial-em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  background: linear-gradient(transparent 62%, rgba(209, 73, 36, 0.16) 62%);
  padding-inline: 2px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

.button.primary {
  background: var(--accent);
  color: #fffaf4;
  border: 1px solid var(--accent);
  box-shadow: 0 8px 20px rgba(209, 73, 36, 0.22);
}

.button.primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  box-shadow: 0 12px 26px rgba(209, 73, 36, 0.3);
}

.button.primary:hover .arrow-icon {
  transform: translateX(4px);
}

.button.secondary {
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid var(--line-strong);
}

.button.secondary:hover {
  background: #ffffff;
  border-color: var(--ink);
}

.intro-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.intro-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 500;
  transition: color 0.2s ease, transform 0.2s ease;
}

.intro-links a:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.intro-links svg {
  width: 17px;
  height: 17px;
}

.filled {
  fill: currentColor;
}

.in-icon {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 700;
}

.divider-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--line-strong);
}

.meta-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

/* Portrait Studio Frame */
.portrait-wrap {
  position: relative;
}

.portrait-frame {
  position: relative;
  padding: 20px 20px 14px;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(191, 180, 162, 0.85);
  border-radius: 14px;
  box-shadow: 0 24px 50px rgba(22, 20, 18, 0.1), 8px 8px 0 rgba(235, 227, 213, 0.72);
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.portrait-mat {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #dfd8cc;
}

.portrait-mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 28%;
  display: block;
  transition: transform 0.7s var(--ease-out);
}

.portrait-frame:hover img {
  transform: scale(1.03);
}

.portrait-sheen {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.2), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.portrait-frame:hover .portrait-sheen {
  opacity: 1;
}

.crop-mark {
  position: absolute;
  width: 10px;
  height: 10px;
  border-color: var(--accent);
  border-style: solid;
  pointer-events: none;
}
.cm-tl { top: 8px; left: 8px; border-width: 1.5px 0 0 1.5px; }
.cm-tr { top: 8px; right: 8px; border-width: 1.5px 1.5px 0 0; }
.cm-bl { bottom: 8px; left: 8px; border-width: 0 0 1.5px 1.5px; }
.cm-br { bottom: 8px; right: 8px; border-width: 0 1.5px 1.5px 0; }

.frame-meta {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.hand-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-left: 10px;
  color: var(--accent);
  font-family: var(--font-script);
  font-size: 1.35rem;
  line-height: 1.1;
}

.hand-arrow {
  width: 44px;
  height: 28px;
  flex-shrink: 0;
  transform: rotate(-8deg);
}

/* Hero Choreographed Entrance */
.js .hero-anim {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.75s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 90ms);
}

.js.is-loaded .hero-anim {
  opacity: 1;
  transform: translateY(0);
}

/* Kinetic Marquee Ribbon */
.marquee-band {
  border-block: 1px solid rgba(216, 207, 192, 0.55);
  background: rgba(22, 20, 18, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--paper);
  overflow: hidden;
  padding-block: 15px;
  user-select: none;
}

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

.marquee-band:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
}

.m-syne {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.09em;
}

.m-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: #f6b09a;
}

.m-mono {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: #b7afa4;
  letter-spacing: 0.06em;
}

.m-sep {
  color: var(--accent);
  font-size: 0.8rem;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Shared Section Styling */
.section-band {
  background: rgba(235, 227, 213, 0.32);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-block: 1px solid rgba(191, 180, 162, 0.55);
}

.section {
  padding-block: clamp(56px, 6vw, 92px);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.eyebrow-num {
  color: var(--accent);
  font-weight: 700;
}

h2 {
  font-family: var(--font-serif);
  font-variation-settings: "opsz" 96;
  font-weight: 600;
  font-size: clamp(2.4rem, 4.4vw, 3.85rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
}

h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent);
}

.section-note {
  max-width: 34ch;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Projects Grid */
.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.project {
  position: relative;
  display: flex;
  flex-direction: column;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s ease;
}

.project::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(480px circle at var(--sx, 50%) var(--sy, 0%), rgba(209, 73, 36, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project:hover {
  transform: translateY(-5px);
  border-color: var(--ink-soft);
  box-shadow: 0 22px 44px rgba(22, 20, 18, 0.1);
}

.project:hover::after {
  opacity: 1;
}

.project-stage {
  position: relative;
  min-height: 248px;
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.stage-tadbeer {
  background: radial-gradient(circle at 85% 15%, rgba(69, 148, 118, 0.25), transparent 55%), #142f26;
  color: #edf5ef;
}

.stage-campusbid {
  background:
    repeating-radial-gradient(circle at 12% 105%, transparent 0 18px, rgba(209, 73, 36, 0.1) 19px 20px, transparent 21px 32px),
    #ece1d0;
  color: var(--ink);
}

.stage-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.stage-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.stage-campusbid .stage-badge {
  background: rgba(22, 20, 18, 0.08);
}

.stage-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6ee7b7;
  animation: pulseRing 2s ease-out infinite;
}

.stage-campusbid .stage-badge i {
  background: var(--accent);
}

.stage-index {
  opacity: 0.65;
}

/* Tadbeer Interactive Pipeline */
.tadbeer-board {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 16px;
}

.pipeline-steps {
  display: flex;
  align-items: center;
  gap: 4px;
}

.pipe-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid rgba(193, 232, 210, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #cde3d6;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.22s ease, border-color 0.22s ease, transform 0.22s var(--ease-out);
}

.pipe-step:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.pipe-step.is-active {
  background: #e7f4ec;
  color: #133126;
  border-color: #ffffff;
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  opacity: 0.72;
}

.step-name {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
}

.pipe-connector {
  width: 14px;
  height: 2px;
  background: rgba(193, 232, 210, 0.25);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.pipe-connector span {
  position: absolute;
  inset: 0;
  background: #7fe0b2;
  transform: translateX(-100%);
  animation: flowBeam 2.1s linear infinite;
}

@keyframes flowBeam {
  to { transform: translateX(100%); }
}

.stage-readout {
  background: rgba(9, 25, 19, 0.72);
  border: 1px solid rgba(169, 218, 190, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  transition: opacity 0.2s ease, transform 0.25s var(--ease-out);
}

.stage-readout.is-updating {
  opacity: 0.45;
  transform: translateY(3px);
}

.readout-head {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #8dd3b1;
  margin-bottom: 5px;
}

.readout-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  color: #ffffff;
  margin-bottom: 8px;
}

.readout-bars {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.readout-bars span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: #dcf2e5;
}

/* CampusBid Interactive Ticket */
.bid-stage-inner {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.auction-ticket {
  width: 100%;
  max-width: 360px;
  display: flex;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(22, 20, 18, 0.2);
  transform: rotate(-1.5deg);
  transition: transform 0.35s var(--ease-out);
}

.project:hover .auction-ticket {
  transform: rotate(0deg) translateY(-2px);
}

.ticket-left {
  flex: 1;
  padding: 15px 18px;
}

.ticket-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #b7afa4;
  margin-bottom: 4px;
}

.ticket-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 12px;
}

.ticket-stats {
  display: flex;
  gap: 22px;
}

.ticket-stats small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  color: #9e9589;
}

.bid-price,
.bid-count {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: #f6b09a;
  display: inline-block;
  transition: transform 0.25s var(--ease-spring);
}

.bid-price.pop,
.bid-count.pop {
  transform: scale(1.18);
  color: #ffffff;
}

.ticket-stub {
  width: 72px;
  border-left: 2px dashed rgba(244, 239, 230, 0.25);
  display: grid;
  place-items: center;
  background: #221e1a;
}

.bid-sim-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--accent);
  color: #fffaf4;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.22s var(--ease-spring), background-color 0.2s ease;
}

.bid-sim-btn:hover {
  transform: scale(1.08);
  background: #e35730;
}

.bid-sim-btn:active {
  transform: scale(0.94);
}

.bid-hint {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* Project Content */
.project-content {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.category {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.project-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.project-content h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.3vw, 1.95rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.project-content > p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.65;
}

.stack-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.stack-row span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.demo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 22px;
  width: fit-content;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
  padding-bottom: 3px;
  transition: color 0.2s ease;
}

.demo svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease-out);
}

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

.demo:hover svg {
  transform: translate(3px, -3px);
}

/* Split Sections (Experience & About) */
.split {
  display: grid;
  grid-template-columns: 0.85fr 1.45fr;
  gap: 8%;
  align-items: start;
}

.sticky-col {
  position: sticky;
  top: 108px;
}

.side-annotation {
  margin-top: 16px;
  max-width: 30ch;
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Experience Timeline */
.entries-wrap {
  position: relative;
  padding-left: 32px;
}

.timeline-track {
  position: absolute;
  left: 6px;
  top: 10px;
  bottom: 18px;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}

.timeline-fill {
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: top center;
  transform: scaleY(0);
  transition: transform 0.2s linear;
}

.entry {
  position: relative;
  padding: 22px 24px;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.entry + .entry {
  margin-top: 20px;
}

.entry:hover {
  border-color: var(--line-strong);
  transform: translateX(4px);
  box-shadow: 0 12px 28px rgba(22, 20, 18, 0.05);
}

.entry-node {
  position: absolute;
  left: -32px;
  top: 28px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 2.5px solid var(--accent);
  transition: transform 0.25s var(--ease-spring), background-color 0.25s ease;
}

.entry:hover .entry-node {
  transform: scale(1.25);
  background: var(--accent);
}

.entry-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.entry-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.entry-tag.current {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--forest-soft);
  color: var(--forest);
  font-weight: 700;
}

.entry h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.32rem, 2vw, 1.65rem);
  letter-spacing: -0.025em;
}

.entry > p:last-child {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* About & Toolkit */
.edu-card {
  padding: 24px 26px;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: 14px;
}

.edu-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.edu-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--paper-alt);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}

.edu-grad {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  font-weight: 700;
}

.edu-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.025em;
}

.edu-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.96rem;
}

.toolkit-block {
  margin-top: 34px;
}

.toolkit-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.tools-heading {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.toolkit-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-pill:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.filter-pill.is-active {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.toolkit-grid {
  margin: 0;
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.toolkit-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  align-items: start;
  transition: opacity 0.25s ease, transform 0.25s var(--ease-out);
}

.toolkit-row.is-dimmed {
  opacity: 0.3;
}

.toolkit-row.is-highlighted {
  transform: translateX(4px);
}

.toolkit-row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink-soft);
  padding-top: 5px;
}

.toolkit-row dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-chip {
  font-size: 0.84rem;
  font-weight: 500;
  padding: 4px 11px;
  border-radius: 7px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s ease, background-color 0.2s ease;
}

.skill-chip:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: #ffffff;
}

.credential-card {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
}

.cred-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.credential {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.92rem;
  color: var(--muted);
}

.credential a {
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1.5px solid var(--accent);
}

.credential a:hover {
  color: var(--accent);
}

/* Coding Profiles Drawer */
.profiles-drawer {
  margin-top: 20px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(250, 246, 238, 0.84);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
}

.drawer-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: transparent;
  border: 0;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.drawer-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
}

.drawer-meta svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  transition: transform 0.3s var(--ease-out);
}

.drawer-trigger[aria-expanded="true"] .drawer-meta svg {
  transform: rotate(180deg);
}

.drawer-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease-out);
}

.drawer-panel.is-open {
  grid-template-rows: 1fr;
}

.drawer-inner {
  overflow: hidden;
}

.profile-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 8px;
  padding: 4px 18px 18px;
}

.profile-links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 500;
  transition: border-color 0.2s ease, transform 0.2s var(--ease-out), color 0.2s ease;
}

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

.profile-links small {
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: 0.65;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(20, 19, 17, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--paper);
  padding: clamp(64px, 7vw, 100px) env(safe-area-inset-right) max(32px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
}

.site-footer .eyebrow {
  color: #a69c90;
}

.site-footer h2 {
  color: var(--paper);
  max-width: 14ch;
}

.site-footer h2 em {
  color: #f48c6f;
}

.email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin: 28px 0 56px;
}

.email {
  font-family: var(--font-serif);
  font-size: clamp(1.15rem, 2.8vw, 2.35rem);
  font-weight: 500;
  color: var(--paper);
  border-bottom: 1.5px solid #595148;
  padding-bottom: 4px;
  max-width: 100%;
  overflow-wrap: anywhere;
  transition: border-color 0.25s ease, color 0.25s ease;
}

.email:hover {
  color: #f48c6f;
  border-color: #f48c6f;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--dark-line);
  background: #201d1a;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease-out);
}

.copy-btn svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.copy-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.copy-btn.is-copied {
  background: var(--forest);
  border-color: var(--forest);
}

.foot-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--dark-line);
  padding-top: 22px;
  font-size: 0.9rem;
}

.foot-id {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
}

.foot-id b {
  font-family: var(--font-display);
  font-weight: 700;
}

.foot-sign {
  font-family: var(--font-script);
  font-size: 1.3rem;
  color: #b7afa4;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #c5bdb2;
}

.foot-links a:hover {
  color: #f48c6f;
}

/* Scroll Reveal Animations */
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease-out), transform 0.75s var(--ease-out);
  transition-delay: var(--delay, 0ms);
}

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

/* Hover effects scoped to fine-pointer devices */
@media (hover: none) {
  .project:hover {
    transform: none;
    border-color: var(--line-strong);
    box-shadow: none;
  }

  .project:hover::after,
  .portrait-frame:hover .portrait-sheen {
    opacity: 0;
  }

  .portrait-frame:hover img {
    transform: none;
  }

  .project:hover .auction-ticket {
    transform: rotate(-1.5deg);
  }

  .entry:hover {
    transform: none;
    box-shadow: none;
  }

  .entry:hover .entry-node {
    transform: none;
    background: var(--paper);
  }

  .pipe-step:hover,
  .skill-chip:hover,
  .profile-links a:hover,
  .intro-links a:hover,
  .button.primary:hover .arrow-icon {
    transform: none;
  }
}

/* Responsive Breakpoints */
@media (max-width: 1060px) {
  .pipeline-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pipe-connector {
    display: none;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: clamp(28px, 5vw, 56px) clamp(40px, 6vw, 64px);
  }

  .hero-title {
    font-size: clamp(2.35rem, 11.2vw, 5.2rem);
  }

  .portrait-wrap {
    max-width: 420px;
    width: 100%;
  }

  .projects {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .pipeline-steps {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .pipe-connector {
    display: block;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .sticky-col {
    position: static;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 780px) {
  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .nav {
    grid-column: auto;
    justify-self: auto;
  }

  .contact-nav {
    grid-column: auto;
    justify-self: auto;
  }

  .toolkit-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .entries-wrap {
    padding-left: 24px;
  }

  .entry-node {
    left: -24px;
  }
}

@media (max-width: 640px) {
  .header-bar {
    display: block;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    padding: 6px 8px 6px 12px;
  }

  .mobile-brand {
    display: inline-flex;
  }

  .main-nav,
  .contact-nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
    width: 42px;
    height: 42px;
  }

  .email {
    font-size: clamp(1.02rem, 4.5vw, 1.65rem);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1180px, calc(100% - 32px));
  }

  .mobile-drawer {
    width: min(1180px, calc(100% - 32px));
  }

  .hero-eyebrow {
    gap: 8px 12px;
    margin-bottom: 18px;
  }

  .status-pill {
    font-size: 0.7rem;
    padding: 5px 11px;
    max-width: 100%;
  }

  .hero-title {
    margin-bottom: 20px;
  }

  .actions {
    margin: 24px 0 22px;
    gap: 10px;
  }

  .actions .button {
    flex: 1 1 auto;
    min-width: 140px;
  }

  .intro-links {
    gap: 10px 16px;
  }

  .intro-links a {
    min-height: 40px;
    padding-block: 4px;
  }

  .portrait-wrap {
    max-width: 100%;
  }

  .portrait-frame {
    padding: 14px 14px 12px;
    box-shadow: 0 18px 36px rgba(22, 20, 18, 0.08), 5px 5px 0 var(--paper-alt);
  }

  .hand-caption {
    font-size: 1.2rem;
    padding-left: 4px;
  }

  .hand-arrow {
    width: 36px;
    height: 24px;
  }

  .marquee-band {
    padding-block: 12px;
  }

  .marquee-group {
    gap: 20px;
    padding-right: 20px;
  }

  .m-syne {
    font-size: 0.82rem;
  }

  .m-serif {
    font-size: 1.1rem;
  }

  .m-mono {
    font-size: 0.7rem;
  }

  .section {
    padding-block: 48px;
  }

  .section-head {
    gap: 12px;
    margin-bottom: 28px;
  }

  .project-stage {
    min-height: auto;
    padding: 16px;
    gap: 14px;
  }

  .pipeline-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .pipe-connector {
    display: none;
  }

  .pipe-step {
    min-height: 48px;
    padding: 9px 11px;
  }

  .project-content {
    padding: 20px 18px 22px;
  }

  .bid-hint {
    text-align: center;
  }

  .entries-wrap {
    padding-left: 20px;
  }

  .timeline-track {
    left: 5px;
  }

  .entry-node {
    left: -20px;
    top: 22px;
    width: 12px;
    height: 12px;
  }

  .entry {
    padding: 18px 16px;
  }

  .entry + .entry {
    margin-top: 16px;
  }

  .edu-card {
    padding: 18px;
  }

  .edu-card h3 {
    font-size: 1.35rem;
  }

  .toolkit-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .toolkit-filters {
    gap: 8px;
  }

  .filter-pill {
    padding: 7px 12px;
    min-height: 36px;
    font-size: 0.72rem;
    display: inline-flex;
    align-items: center;
  }

  .skill-chip {
    padding: 5px 11px;
  }

  .credential-card {
    padding: 14px 16px;
    align-items: flex-start;
  }

  .cred-dot {
    margin-top: 6px;
  }

  .drawer-trigger {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .drawer-meta {
    flex-shrink: 0;
    white-space: nowrap;
  }

  .profile-links {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    padding: 4px 16px 16px;
  }

  .profile-links a {
    min-height: 42px;
    padding: 9px 11px;
  }

  .site-footer {
    padding-top: 52px;
  }

  .email-row {
    gap: 14px;
    margin: 22px 0 40px;
  }

  .copy-btn {
    min-height: 44px;
    padding: 10px 18px;
  }

  .foot-line {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .foot-links {
    gap: 10px 18px;
  }

  .foot-links a {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
  }
}

@media (max-width: 460px) {
  .auction-ticket {
    transform: none;
  }
}

@media (max-width: 460px) and (hover: none) {
  .project:hover .auction-ticket {
    transform: none;
  }
}

@media (max-width: 380px) {
  .ticket-left {
    padding: 13px 14px;
  }

  .ticket-title {
    font-size: 1.32rem;
  }

  .ticket-stats {
    gap: 16px;
  }

  .ticket-stub {
    width: 64px;
  }

  .bid-sim-btn {
    width: 46px;
    height: 46px;
  }
}

@media (max-width: 350px) {
  .line-inner {
    white-space: normal;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  .js .hero-anim,
  .js .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
