:root {
  color-scheme: light;
  --bg: #f5f4f0;
  --surface: #eceae4;
  --surface-strong: #e2e0d8;
  --border: #d4d2cc;
  --text: #0a0a0a;
  --text-muted: #666660;
  --coin-gold-a: #c8972a;
  --coin-gold-b: #f5d06a;
  --coin-gold-c: #8a6010;
  --coin-rim: #e8b84b;
  --coin-shine: rgba(255, 255, 255, 0.75);
  --content-max: 1100px;
  --section-pad-y: clamp(4.5rem, 9vw, 7.5rem);
  --section-pad-x: clamp(1.25rem, 4vw, 3rem);
  --font-sans: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

body[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0c;
  --surface: #161616;
  --surface-strong: #1e1e1e;
  --border: #2a2a2a;
  --text: #f0efe9;
  --text-muted: #808076;
  --coin-gold-a: #b8892a;
  --coin-gold-b: #eec55a;
  --coin-gold-c: #7a5008;
  --coin-rim: #d8a83b;
  --coin-shine: rgba(255, 255, 255, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 220ms ease, color 220ms ease;
}

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

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  padding: 0.5rem 0.85rem;
  background: var(--text);
  color: var(--bg);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-top: 1px solid var(--border);
}

.header-inner,
.section-inner,
.footer-inner {
  width: min(100% - (var(--section-pad-x) * 2), var(--content-max));
  margin: 0 auto;
}

.header-inner {
  min-height: 4.7rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand,
h1,
h2,
h3 {
  letter-spacing: -0.04em;
}

.brand {
  font-size: 1rem;
  font-weight: 600;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.site-nav a,
.theme-toggle,
.section-label,
.skill-label,
.row-meta,
.contact-links a span:last-child,
.footer-inner {
  font-family: var(--font-mono);
}

.site-nav a,
.theme-toggle {
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  color: var(--text);
}

.theme-toggle {
  min-width: 5.9rem;
  height: 2.7rem;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  padding: 0 0.72rem 0 0.85rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle-label {
  font-size: 0.74rem;
  line-height: 1;
}

.theme-toggle-switch {
  display: inline-flex;
  align-items: center;
}

.theme-toggle-track {
  position: relative;
  width: 2rem;
  height: 1.1rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-strong) 78%, transparent);
  border: 1px solid var(--border);
  transition: background-color 180ms ease, border-color 180ms ease;
}

.theme-toggle-thumb {
  position: absolute;
  top: 50%;
  left: 0.14rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--text);
  transform: translateY(-50%);
  transition: transform 220ms ease, background-color 180ms ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

body[data-theme="dark"] .theme-toggle {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
}

body[data-theme="dark"] .theme-toggle-thumb {
  transform: translate(0.88rem, -50%);
  background: #f3efe4;
}

body[data-theme="dark"] .theme-toggle-track {
  background: rgba(240, 239, 233, 0.08);
}

.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 14%, transparent);
}

.site-nav a {
  padding-bottom: 0.1rem;
}

.site-nav a:first-child {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.theme-toggle:hover,
.site-nav a:hover,
.contact-links a:hover {
  color: var(--text);
}

.section {
  padding: var(--section-pad-y) 0;
}

.bordered-section {
  border-top: 1px solid var(--border);
}

.section-scene {
  position: relative;
}

.hero {
  min-height: calc(100svh - 4.7rem);
  padding-top: 1.2rem;
  padding-bottom: 2rem;
}

.split-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
}

.section-label {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 11ch;
  font-size: clamp(3rem, 7.5vw, 6.4rem);
  line-height: 0.95;
  font-weight: 700;
}

h2 {
  margin: 0;
  max-width: 15ch;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.1;
  font-weight: 700;
}

h3 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.2rem, 3vw, 1.55rem);
  line-height: 1.2;
  font-weight: 600;
}

.hero-text,
.content-block p,
.row-body p,
.row-body li,
.contact-copy {
  color: var(--text-muted);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.4rem;
  padding: 0 1.6rem;
  border: 1px solid var(--border);
  font-size: 0.95rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.content-block {
  border: 1px solid var(--border);
  background: var(--surface);
}

.hero-frame {
  position: relative;
  min-height: calc(100svh - 7.4rem);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  --hero-progress: 0;
  --hero-coin-scale: 1;
  --hero-coin-shift-x: 0px;
  --hero-coin-shift-y: 0px;
  --hero-fade: 1;
}

.hero-meta {
  justify-self: end;
  margin-top: 4.8rem;
  display: grid;
  gap: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: right;
  opacity: calc(0.18 + (var(--hero-fade) * 0.82));
  transform: translateY(calc((1 - var(--hero-fade)) * -20px));
  transition: opacity 140ms linear, transform 140ms linear;
}

.hero-stage {
  position: relative;
  min-height: 23rem;
  margin-top: 3rem;
  transform: translateY(calc(var(--hero-progress) * -14px));
  transition: transform 140ms linear;
}

.coin-shadow {
  position: absolute;
  width: 34rem;
  max-width: 62vw;
  height: 10rem;
  border-radius: 50%;
  background: rgba(80, 58, 16, 0.34);
  filter: blur(34px);
  left: 50%;
  bottom: -4rem;
  transform: translateX(-50%) scale(calc(1 + (var(--hero-progress) * 0.28)));
  opacity: calc(0.9 - (var(--hero-progress) * 0.35));
  transition: transform 140ms linear, opacity 140ms linear;
}

.hero-coin {
  position: relative;
  width: min(48rem, 64vw);
  aspect-ratio: 1 / 0.36;
  margin: 0 auto;
  --coin-tilt-x: 73deg;
  --coin-tilt-z: -8deg;
  --coin-spin-y: -18deg;
  --coin-lift: 0px;
  transform:
    perspective(1200px)
    rotateX(var(--coin-tilt-x))
    rotateZ(var(--coin-tilt-z))
    rotateY(var(--coin-spin-y))
    translateX(var(--hero-coin-shift-x))
    translateY(calc(var(--coin-lift) + var(--hero-coin-shift-y)))
    scale(var(--hero-coin-scale));
  transform-style: preserve-3d;
  animation: heroCoinFloat 7.5s ease-in-out infinite;
  will-change: transform;
}

.hero-coin-main {
  z-index: 3;
}

.hero-coin-face {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.hero-coin-face {
  display: grid;
  place-items: center;
  border: 3px solid #f3c86c;
  background:
    radial-gradient(circle at 62% 36%, rgba(255, 246, 198, 0.96), rgba(255, 221, 128, 0.92) 16%, transparent 32%),
    radial-gradient(circle at 44% 48%, rgba(214, 153, 65, 0.72), transparent 24%),
    radial-gradient(circle at 50% 52%, #f9d57e, #dca24f 58%, #97671e 84%, #744a12 100%);
  box-shadow:
    inset 0 0 0 5px rgba(255, 229, 151, 0.72),
    inset 0 0 0 16px rgba(163, 108, 31, 0.28),
    0 18px 38px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero-coin-top {
  transform: translateZ(0.7rem);
}

.hero-coin-bottom {
  transform: rotateY(180deg) translateZ(0.7rem);
}

.coin-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.coin-image-top {
  filter:
    sepia(1)
    saturate(3.8)
    hue-rotate(355deg)
    brightness(1.12)
    contrast(1.02)
    drop-shadow(0 18px 32px rgba(0, 0, 0, 0.24));
  mix-blend-mode: screen;
  opacity: 0.98;
}

.coin-image-bottom {
  filter:
    sepia(1)
    saturate(2.8)
    hue-rotate(355deg)
    brightness(0.72)
    contrast(1.05);
  opacity: 0.88;
}

.hero-coin-face::before {
  content: "";
  position: absolute;
  inset: 1.1rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 234, 169, 0.72);
}

.hero-coin-face::after {
  content: "";
  position: absolute;
  inset: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(124, 77, 18, 0.4);
  opacity: 0.75;
}

.hero-name-wrap {
  position: relative;
  z-index: 2;
  margin-top: -1rem;
  opacity: calc(0.06 + (var(--hero-fade) * 0.94));
  transform:
    translateY(calc((1 - var(--hero-fade)) * -34px))
    scale(calc(1 - ((1 - var(--hero-fade)) * 0.06)));
  transition: opacity 140ms linear, transform 140ms linear;
}

.hero-name {
  max-width: none;
  font-size: clamp(4rem, 10.5vw, 7.6rem);
  letter-spacing: -0.08em;
  line-height: 0.86;
}

.hero-divider {
  margin-top: 2.2rem;
  border-top: 1px solid var(--border);
  opacity: calc(0.14 + (var(--hero-fade) * 0.86));
  transform: scaleX(calc(0.9 + (var(--hero-fade) * 0.1)));
  transform-origin: center;
  transition: opacity 140ms linear, transform 140ms linear;
}

.hero-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  opacity: calc(0.04 + (var(--hero-fade) * 0.96));
  transform: translateY(calc((1 - var(--hero-fade)) * -24px));
  transition: opacity 140ms linear, transform 140ms linear;
}

.hero-role-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1.8rem 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
}

.content-block {
  padding: 1.3rem 1.4rem;
}

.content-block p + p {
  margin-top: 1rem;
}

.section-heading {
  margin-bottom: 2.25rem;
}

.experience-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.72fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
}

.experience-heading-simple {
  margin-bottom: 2.5rem;
}

.experience-heading-copy,
.experience-hand-scene {
  will-change: transform, opacity;
}

.experience-heading-copy {
  transform-origin: left center;
}

.experience-hand-scene {
  position: relative;
  min-height: clamp(12rem, 24vw, 18rem);
  perspective: 1400px;
  transform-style: preserve-3d;
}

.experience-hand-glow,
.experience-hand-shadow,
.experience-hand {
  position: absolute;
  inset: 0;
  margin: auto;
  will-change: transform, opacity;
}

.experience-hand-glow {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 36%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 60% 58%, rgba(111, 145, 255, 0.18), transparent 34%),
    radial-gradient(circle at 48% 54%, rgba(228, 181, 98, 0.14), transparent 48%);
  filter: blur(28px);
  opacity: 0.78;
  transform: translateZ(-70px);
}

.experience-hand-shadow {
  width: 58%;
  height: 18%;
  top: auto;
  bottom: 8%;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  filter: blur(24px);
  transform: translateZ(-120px);
}

.experience-hand {
  width: clamp(8.5rem, 16vw, 11.5rem);
  height: clamp(10rem, 22vw, 14rem);
  transform-style: preserve-3d;
  transform: rotateX(12deg) rotateY(-18deg) rotateZ(-10deg);
}

.hand-palm,
.hand-thumb,
.hand-finger {
  position: absolute;
  display: block;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.52), transparent 26%),
    linear-gradient(180deg, rgba(248, 247, 243, 0.96), rgba(205, 201, 191, 0.88) 52%, rgba(139, 136, 130, 0.94) 100%);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.56),
    inset -10px -16px 18px rgba(37, 34, 30, 0.18),
    0 18px 28px rgba(0, 0, 0, 0.18);
}

.hand-palm {
  left: 20%;
  bottom: 10%;
  width: 48%;
  height: 42%;
  border-radius: 38% 42% 34% 40%;
  transform: rotate(-8deg) translateZ(14px);
}

.hand-thumb {
  left: 8%;
  bottom: 24%;
  width: 20%;
  height: 30%;
  border-radius: 52% 44% 42% 58%;
  transform: rotate(-28deg) translateZ(26px);
}

.hand-finger {
  top: 8%;
  width: 15%;
  height: 48%;
  border-radius: 999px;
  transform-origin: center bottom;
}

.hand-finger-one {
  left: 26%;
  transform: rotate(-10deg) translateZ(38px);
}

.hand-finger-two {
  left: 40%;
  height: 54%;
  transform: rotate(-3deg) translateZ(46px);
}

.hand-finger-three {
  left: 54%;
  height: 51%;
  transform: rotate(4deg) translateZ(34px);
}

.hand-finger-four {
  left: 68%;
  height: 43%;
  transform: rotate(11deg) translateZ(20px);
}

.experience-list {
  --latest-job-progress: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.experience-item + .experience-item {
  border-top: 1px solid var(--border);
}

.experience-toggle {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 1.75rem 0 1.45rem;
  background: transparent;
  border: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.experience-summary {
  display: grid;
  gap: 0.55rem;
}

.experience-topline,
.experience-subline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.experience-company {
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.experience-badge,
.experience-subline {
  font-family: var(--font-mono);
}

.experience-badge {
  padding: 0.16rem 0.5rem;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: transparent;
}

.experience-subline {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.experience-icon {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 400;
  line-height: 1;
  color: var(--text-muted);
  transition: transform 180ms ease, color 180ms ease;
  transform-origin: center;
  padding-left: 1rem;
}

.experience-item.is-open .experience-icon {
  transform: rotate(45deg);
  color: var(--text);
}

.latest-experience-item {
  transform:
    translateY(calc(var(--latest-job-progress) * -14px))
    scale(calc(1 + (var(--latest-job-progress) * 0.08)));
  transform-origin: center top;
  transition:
    transform 180ms linear,
    border-color 180ms linear,
    background-color 180ms linear,
    box-shadow 180ms linear;
  background: color-mix(
    in srgb,
    transparent calc(100% - (var(--latest-job-progress) * 12%)),
    var(--surface)
  );
  box-shadow:
    0 18px 44px rgba(0, 0, 0, calc(var(--latest-job-progress) * 0.12)),
    0 0 0 1px rgba(255, 255, 255, calc(var(--latest-job-progress) * 0.03));
}

.latest-experience-item .experience-toggle {
  transition: padding 180ms linear;
}

.latest-experience-item .experience-company,
.latest-experience-item .experience-subline {
  opacity: calc(0.78 + (var(--latest-job-progress) * 0.22));
  transition: opacity 180ms linear;
}

.experience-detail {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 220ms ease;
}

.experience-item.is-open .experience-detail {
  grid-template-rows: 1fr;
}

.experience-detail ul {
  overflow: hidden;
  margin: 0;
  padding: 0 0 1.55rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.experience-detail li + li {
  margin-top: 0.7rem;
}

.about-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(220px, 0.5fr);
  gap: clamp(0.35rem, 1vw, 0.85rem);
  align-items: center;
  opacity: 1;
  transform: none;
}

#about {
  --about-scene-progress: 0;
}

#about .section-inner {
  position: relative;
  transform:
    scale(calc(1 + (var(--about-scene-progress) * 0.16)))
    translateY(calc(var(--about-scene-progress) * -34px));
  transform-origin: center top;
  opacity: calc(1 - (var(--about-scene-progress) * 0.9));
  filter: blur(calc(var(--about-scene-progress) * 2px));
  transition: transform 160ms linear, opacity 160ms linear, filter 160ms linear;
}

#about::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 32%, rgba(0, 0, 0, calc(var(--about-scene-progress) * 0.18)), transparent 26%),
    linear-gradient(180deg, rgba(5, 5, 5, calc(var(--about-scene-progress) * 0.08)), rgba(5, 5, 5, calc(var(--about-scene-progress) * 0.94)));
  pointer-events: none;
  opacity: calc(var(--about-scene-progress) * 1.08);
  transition: opacity 160ms linear;
}


#projects {
  --projects-scene-progress: 0;
}

#projects .section-inner {
  transform:
    translateY(calc((1 - var(--projects-scene-progress)) * 96px))
    scale(calc(0.93 + (var(--projects-scene-progress) * 0.07)));
  opacity: calc(0.14 + (var(--projects-scene-progress) * 0.86));
  filter: blur(calc((1 - var(--projects-scene-progress)) * 6px));
  transition: transform 180ms linear, opacity 180ms linear, filter 180ms linear;
}

.about-heading-copy {
  display: grid;
  gap: 0.75rem;
}

.about-heading-visual {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  min-height: clamp(11rem, 20vw, 15rem);
}

.about-photo-frame {
  position: relative;
  width: min(14rem, 100%);
  aspect-ratio: 1 / 1.02;
  overflow: hidden;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateX(-2.8rem);
}

.about-photo-frame::after {
  content: none;
}

.about-photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  filter: none;
  transform: none;
  mix-blend-mode: multiply;
}

.about-title {
  max-width: 11ch;
  color: var(--text);
}

.glass-text {
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(255, 255, 255, 0.8),
    0 0 25px rgba(139, 92, 246, 0.36);
  filter: blur(0.3px);
  animation: distortText 4s infinite ease-in-out;
}

@keyframes distortText {
  0%,
  100% {
    transform: skewX(0deg) scale(1);
    letter-spacing: -0.04em;
  }
  25% {
    transform: skewX(-3deg) scale(1.03);
    letter-spacing: -0.025em;
  }
  50% {
    transform: skewX(3deg) scale(0.98);
    letter-spacing: -0.06em;
  }
  75% {
    transform: skewX(-2deg) scale(1.02);
    letter-spacing: -0.03em;
  }
}

.metrics-list,
.rows,
.skill-groups,
.contact-links {
  display: flex;
  flex-direction: column;
}

.metric-row,
.info-row,
.project-row,
.skill-row,
.contact-links a {
  border-top: 1px solid var(--border);
}

.metrics-plus-icons {
  display: grid;
  gap: 0;
}

.metrics-list {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.metric-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 1rem;
  padding: 1rem 0;
}

.metric-value {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.04em;
}

.metric-text {
  color: var(--text-muted);
}


.rows {
  border-bottom: 1px solid var(--border);
}

.info-row,
.project-row,
.skill-row,
.contact-links a {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.2rem 0;
}

.row-meta,
.skill-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.row-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.row-body ul {
  margin: 1rem 0 0;
  padding-left: 1rem;
  color: var(--text-muted);
}

.tags,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.tags {
  margin-top: 0.9rem;
}

.tags span {
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.skill-list span {
  font-size: 0.98rem;
}

.contact-grid {
  align-items: start;
}

.contact-column {
  display: grid;
  gap: 2rem;
}

.contact-copy {
  margin-top: 1rem;
  max-width: 33rem;
  color: #58c98b;
}

.contact-links a {
  align-items: baseline;
  transition: opacity 180ms ease;
}

.contact-links a:hover {
  opacity: 0.65;
}

.contact-links a span:first-child {
  font-weight: 500;
}

.contact-links a span:last-child {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.contact-form {
  display: grid;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid color-mix(in srgb, var(--border) 86%, rgba(255, 255, 255, 0.04));
  background: color-mix(in srgb, var(--surface) 38%, transparent);
}

.contact-form-botcheck {
  display: none;
}

.contact-field {
  display: grid;
  gap: 0.7rem;
}

.contact-field span {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--text-muted) 60%, var(--text));
}

.contact-field input,
.contact-field textarea {
  width: 100%;
  padding: 0 0 0.95rem;
  border: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, var(--text));
  background: transparent;
  color: var(--text);
  font: inherit;
  border-radius: 0;
  outline: none;
  transition: border-color 180ms ease, color 180ms ease;
}

.contact-field textarea {
  min-height: 5.6rem;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  border-color: var(--text);
}

.contact-form-actions {
  display: grid;
  gap: 0.9rem;
  padding-top: 0.3rem;
}

.contact-submit {
  justify-self: start;
}

.contact-form-status {
  margin: 0;
  min-height: 1.4rem;
  color: color-mix(in srgb, var(--text-muted) 58%, var(--text));
  font-size: 0.9rem;
}

.contact-email-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.copy-email-button {
  appearance: none;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--text);
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border-radius: 0.45rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.copy-email-button:hover {
  transform: translateY(-1px);
}

.copy-icon {
  position: relative;
  width: 0.9rem;
  height: 0.9rem;
  display: inline-block;
}

.copy-icon span {
  position: absolute;
  width: 0.72rem;
  height: 0.72rem;
  border: 1px solid currentColor;
  border-radius: 0.16rem;
}

.copy-icon span:first-child {
  top: 0.14rem;
  left: 0.14rem;
  opacity: 0.75;
}

.copy-icon span:last-child {
  top: -0.02rem;
  left: -0.02rem;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.copy-email-button.is-copied {
  background: rgba(88, 201, 139, 0.16);
  border-color: rgba(88, 201, 139, 0.4);
}

.site-footer {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), var(--bg));
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: 1.9rem 0 2.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-signoff,
.footer-meta {
  display: grid;
  gap: 0.2rem;
}

.footer-name {
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-role,
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-meta {
  text-align: right;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@keyframes heroCoinFloat {
  0%,
  100% {
    --coin-lift: 0px;
  }
  50% {
    --coin-lift: -14px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    padding: 0.85rem 0;
    min-height: auto;
    flex-wrap: wrap;
  }

  .site-nav {
    width: 100%;
    order: 3;
    justify-content: space-between;
  }

  .split-grid,
  .contact-grid,
  .info-row,
  .project-row,
  .skill-row,
  .contact-links a,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-frame {
    min-height: auto;
  }

  .about-heading {
    grid-template-columns: 1fr;
  }

  .experience-heading {
    grid-template-columns: 1fr;
  }

  .experience-hand-scene {
    min-height: 10rem;
    max-width: 20rem;
  }

  .about-heading-visual {
    justify-content: flex-start;
    min-height: auto;
  }

  .hero-meta {
    justify-self: start;
    margin-top: 1.5rem;
    text-align: left;
  }

  .hero-stage {
    min-height: 14rem;
    margin-top: 2rem;
  }

  .hero-coin-main {
    width: min(30rem, 95%);
  }

  .hero-name-wrap {
    margin-top: 0.5rem;
  }

  .hero-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-cta-group {
    width: 100%;
    flex-wrap: wrap;
  }

}

@media (max-width: 560px) {
  .header-inner,
  .section-inner,
  .footer-inner {
    width: min(100% - 2rem, var(--content-max));
  }

  .site-nav {
    gap: 0.7rem 1rem;
    justify-content: flex-start;
  }

  .hero-name {
    font-size: clamp(3.4rem, 18vw, 5rem);
  }

  .hero-role-list {
    gap: 0.8rem 1rem;
    font-size: 0.86rem;
  }

  .experience-hand-scene {
    min-height: 9rem;
  }

  .experience-hand {
    width: 7.5rem;
    height: 10rem;
  }

  .button {
    min-height: 3rem;
    padding: 0 1.15rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
