:root {
  --bg: #f4eee4;
  --surface: rgba(255, 252, 246, 0.84);
  --surface-solid: #fffaf2;
  --ink: #1b1a18;
  --muted: #6f665b;
  --accent: #b47a3b;
  --accent-strong: #8d5c2a;
  --line: rgba(141, 105, 59, 0.25);
  --shadow: 0 18px 52px rgba(58, 39, 13, 0.16);
  --glow-soft: rgba(255, 226, 181, 0.16);
  --glow-strong: rgba(217, 151, 81, 0.22);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: clamp(15px, 0.18vw + 14px, 18px);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

img {
  max-width: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Outfit", sans-serif;
  color: var(--ink);
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 8%, rgba(236, 196, 144, 0.45), transparent 28%),
    radial-gradient(circle at 92% 14%, rgba(199, 146, 81, 0.22), transparent 30%),
    radial-gradient(circle at 50% 100%, rgba(214, 171, 116, 0.25), transparent 40%),
    var(--bg);
  background-size: 150% 150%, 170% 170%, 180% 180%, auto;
  animation: bg-shift 18s ease-in-out infinite alternate;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: -25%;
  pointer-events: none;
  z-index: -3;
}

body::before {
  background:
    radial-gradient(circle at 22% 22%, rgba(255, 229, 190, 0.28), transparent 34%),
    radial-gradient(circle at 78% 30%, rgba(198, 136, 71, 0.2), transparent 36%),
    radial-gradient(circle at 50% 84%, rgba(255, 238, 214, 0.2), transparent 38%);
  filter: blur(32px);
  animation: aurora-drift 24s ease-in-out infinite alternate;
}

body::after {
  z-index: -2;
  background:
    repeating-linear-gradient(
      120deg,
      rgba(121, 86, 49, 0.05) 0,
      rgba(121, 86, 49, 0.05) 1px,
      transparent 1px,
      transparent 26px
    );
  opacity: 0.34;
  animation: texture-pan 32s linear infinite;
}

.ambient {
  position: fixed;
  z-index: -1;
  filter: blur(55px);
  border-radius: 999px;
  pointer-events: none;
}

.ambient.one {
  width: 280px;
  height: 280px;
  left: -70px;
  top: 120px;
  background: rgba(214, 154, 86, 0.36);
  animation: ambient-one 14s ease-in-out infinite alternate;
}

.ambient.two {
  width: 330px;
  height: 330px;
  right: -120px;
  top: 380px;
  background: rgba(152, 104, 48, 0.24);
  animation: ambient-two 18s ease-in-out infinite alternate;
}

@keyframes bg-shift {
  0% {
    background-position: 0% 0%, 100% 0%, 50% 100%, 0 0;
  }
  50% {
    background-position: 12% 8%, 88% 10%, 48% 92%, 0 0;
  }
  100% {
    background-position: 4% 14%, 96% 2%, 58% 100%, 0 0;
  }
}

@keyframes ambient-one {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.95;
  }
  100% {
    transform: translate3d(40px, -26px, 0) scale(1.08);
    opacity: 0.75;
  }
}

@keyframes ambient-two {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }
  100% {
    transform: translate3d(-46px, 24px, 0) scale(1.1);
    opacity: 0.62;
  }
}

@keyframes aurora-drift {
  0% {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 2%, 0) scale(1.06);
  }
  100% {
    transform: translate3d(-1%, 3%, 0) scale(1.03);
  }
}

@keyframes texture-pan {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(150px, 90px, 0);
  }
}

@keyframes header-glint {
  0% {
    transform: translateX(-130%) skewX(-24deg);
  }
  50% {
    transform: translateX(140%) skewX(-24deg);
  }
  100% {
    transform: translateX(140%) skewX(-24deg);
  }
}

@keyframes panel-sheen {
  0% {
    transform: translateX(-125%) rotate(8deg);
    opacity: 0;
  }
  18% {
    opacity: 0.36;
  }
  46% {
    transform: translateX(122%) rotate(8deg);
    opacity: 0;
  }
  100% {
    transform: translateX(122%) rotate(8deg);
    opacity: 0;
  }
}

@keyframes button-glow-sweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
  }
  55% {
    transform: translateX(130%) skewX(-18deg);
  }
  100% {
    transform: translateX(130%) skewX(-18deg);
  }
}

@keyframes ring-orbit {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes container-ambient {
  0% {
    transform: translate3d(-2%, -2%, 0) scale(1);
  }
  50% {
    transform: translate3d(2%, 3%, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-1%, 4%, 0) scale(1.02);
  }
}

.site-header {
  width: min(1240px, 92%);
  margin: 1rem auto 0;
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.76);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 32px rgba(56, 38, 14, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0.8rem;
  z-index: 30;
  overflow: hidden;
}

.site-header::after {
  content: "";
  position: absolute;
  top: -40%;
  left: 0;
  width: 28%;
  height: 180%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 241, 218, 0.42),
    transparent
  );
  pointer-events: none;
  animation: header-glint 9s ease-in-out infinite;
}

.brand {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #cb9152, #8b5b2a);
  color: #fff8eb;
  font-size: 0.84rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: #41392f;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 2px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.site-nav a:hover {
  color: var(--accent-strong);
  border-color: rgba(141, 92, 42, 0.4);
}

.site-nav a.active {
  color: var(--accent-strong);
  border-color: rgba(141, 92, 42, 0.62);
}

.header-cta {
  margin-left: auto;
  text-decoration: none;
  padding: 0.62rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(120deg, #bc8245, #8f5d2a);
  color: #fff8ed;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(130, 84, 34, 0.25);
  transition: transform 180ms ease;
}

.header-cta:hover {
  transform: translateY(-2px);
}

.page-wrap {
  width: min(1240px, 92%);
  margin: 1.2rem auto 2rem;
}

.hero-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.5vw, 2.9rem);
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.1rem;
  position: relative;
  overflow: hidden;
}

.hero-block > * {
  position: relative;
  z-index: 1;
}

.hero-block:not(.compact) {
  grid-template-areas: "main side";
}

.hero-main {
  grid-area: main;
}

.hero-block::before {
  content: "";
  position: absolute;
  top: -35%;
  left: -18%;
  width: 56%;
  height: 160%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 236, 206, 0.3),
    transparent
  );
  animation: panel-sheen 12s ease-in-out infinite;
}

.hero-block::after {
  content: "";
  position: absolute;
  inset: -42% -24%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.72;
  filter: blur(18px);
  background:
    radial-gradient(circle at 14% 22%, rgba(203, 145, 82, 0.2), transparent 38%),
    radial-gradient(circle at 82% 76%, rgba(255, 229, 190, 0.32), transparent 42%),
    radial-gradient(circle at 48% 92%, rgba(165, 108, 52, 0.14), transparent 36%);
  animation: container-ambient 18s ease-in-out infinite alternate;
}

.hero-block.compact {
  grid-template-columns: 1fr;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.display-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(2rem, 3.1vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}

.lead {
  margin: 1rem 0 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.64;
}

.hero-actions {
  margin-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  text-decoration: none;
  padding: 0.72rem 1.15rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: transform 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: linear-gradient(130deg, #c48949, #8d5d2a);
  color: #fff8ee;
  box-shadow: 0 12px 26px rgba(125, 79, 31, 0.28);
  position: relative;
  overflow: hidden;
}

.btn.primary::after {
  content: "";
  position: absolute;
  top: -35%;
  left: 0;
  width: 32%;
  height: 170%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 244, 225, 0.6),
    transparent
  );
  transform: translateX(-120%) skewX(-18deg);
  animation: button-glow-sweep 4.6s ease-in-out infinite;
}

.btn.secondary {
  color: #2c2822;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.86);
}

.stat-strip {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.stat-strip article {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0.82rem 0.9rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.stat-strip article:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 92, 42, 0.46);
  box-shadow: 0 12px 24px rgba(74, 49, 18, 0.11);
}

.stat-strip strong {
  display: block;
  font-size: 1.03rem;
  color: #2f2921;
}

.stat-strip span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.hero-side {
  grid-area: side;
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  color: #f7efe0;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 217, 166, 0.2), transparent 30%),
    linear-gradient(165deg, #2b1e12, #50351f 72%);
}

.profile-visual {
  width: min(220px, 100%);
  aspect-ratio: 4 / 5;
  margin: 0 auto 0.95rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 248, 236, 0.3);
  overflow: hidden;
  background: linear-gradient(140deg, #bf8b51, #825423);
  display: grid;
  place-items: center;
  position: relative;
}

.profile-visual::after {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 24px;
  border: 1px solid rgba(255, 236, 206, 0.26);
  background:
    conic-gradient(
      from 0deg,
      rgba(255, 240, 217, 0.34),
      rgba(173, 115, 55, 0.02),
      rgba(255, 240, 217, 0.34)
    );
  filter: blur(10px);
  z-index: -1;
  animation: ring-orbit 8.5s linear infinite;
}

.profile-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-visual span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Fraunces", serif;
  font-size: 3rem;
  color: rgba(255, 248, 236, 0.95);
}

.hero-side-name {
  margin: 0 0 0.32rem;
  text-align: center;
  font-family: "Fraunces", serif;
  font-size: 1.1rem;
  color: rgba(247, 239, 224, 0.95);
}

.hero-side-role {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.3rem;
}

.hero-side-copy {
  margin: 0.45rem 0 0;
  color: rgba(247, 239, 224, 0.8);
  font-size: 0.9rem;
  line-height: 1.5;
}

.hero-side-list {
  margin: 0.7rem 0 0;
  padding-left: 1.05rem;
  color: rgba(247, 239, 224, 0.86);
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.section-block {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2vw, 2.2rem);
  position: relative;
  overflow: hidden;
}

.section-block::before {
  content: "";
  position: absolute;
  top: -32%;
  left: -24%;
  width: 42%;
  height: 170%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 239, 214, 0.22),
    transparent
  );
  opacity: 0;
}

.section-block:hover::before {
  opacity: 1;
  animation: panel-sheen 5s ease-in-out 1;
}

.section-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: clamp(1.6rem, 2.1vw, 2.2rem);
}

.section-subtext {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.56;
}

.tile-grid {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-tile {
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  position: relative;
  overflow: hidden;
}

.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 92, 42, 0.5);
  box-shadow: 0 12px 28px rgba(74, 49, 18, 0.12);
}

.feature-tile::after {
  content: "";
  position: absolute;
  top: -36%;
  left: -30%;
  width: 44%;
  height: 180%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--glow-soft), transparent);
  opacity: 0;
}

.feature-tile:hover::after {
  opacity: 1;
  animation: panel-sheen 2.9s ease-in-out 1;
}

.feature-tile h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #2d2721;
}

.feature-tile p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.feature-tile span {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--accent-strong);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.info-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.info-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 92, 42, 0.45);
  box-shadow: 0 12px 28px rgba(74, 49, 18, 0.1);
}

.info-card.accent {
  color: #f8f0e1;
  background:
    radial-gradient(circle at 85% 20%, rgba(255, 217, 161, 0.2), transparent 30%),
    linear-gradient(160deg, #2a1d12, #594028);
  border-color: rgba(242, 211, 170, 0.22);
}

.info-card h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.28rem;
}

.info-card p {
  margin: 0.5rem 0 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--muted);
}

.info-card.accent p {
  color: rgba(248, 240, 225, 0.84);
}

.timeline {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.timeline li {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 0.95rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.timeline li:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 92, 42, 0.42);
  box-shadow: 0 12px 24px rgba(74, 49, 18, 0.1);
}

.timeline h3 {
  margin: 0;
  font-size: 1rem;
}

.timeline .meta {
  margin: 0.25rem 0 0.3rem;
  font-size: 0.82rem;
  color: var(--accent-strong);
  font-weight: 600;
}

.timeline p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.bullet-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.52rem;
}

.bullet-list li {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.55;
}

.experience-switcher {
  margin-top: 0.95rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.exp-tab {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 245, 0.82);
  padding: 0.85rem 0.95rem;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.exp-tab:hover {
  transform: translateY(-2px);
  border-color: rgba(141, 92, 42, 0.5);
  box-shadow: 0 10px 24px rgba(79, 51, 20, 0.12);
}

.exp-tab.is-active {
  background:
    radial-gradient(circle at 92% 10%, rgba(255, 217, 161, 0.22), transparent 34%),
    linear-gradient(160deg, #2a1d12, #594028);
  border-color: rgba(242, 211, 170, 0.3);
  box-shadow: 0 14px 30px rgba(57, 36, 13, 0.23);
}

.exp-tab-title {
  display: block;
  color: #2d2721;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.35;
}

.exp-tab-meta {
  display: block;
  margin-top: 0.24rem;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.exp-tab.is-active .exp-tab-title {
  color: #f8efdf;
}

.exp-tab.is-active .exp-tab-meta {
  color: rgba(248, 240, 225, 0.82);
}

.exp-panel {
  margin-top: 0.85rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.86);
  padding: 1rem;
}

.exp-panel.is-active {
  box-shadow: 0 14px 34px rgba(82, 54, 20, 0.11);
}

.exp-panel-head h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
}

.exp-panel-head p {
  margin: 0.42rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.56;
}

.project-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.project-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 92, 42, 0.5);
  box-shadow: 0 14px 28px rgba(74, 49, 18, 0.12);
}

.project-card h3 {
  margin: 0;
  font-size: 1.03rem;
}

.project-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.53;
}

.repo-link {
  display: inline-block;
  margin-top: 0.8rem;
  text-decoration: none;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.repo-link:hover {
  text-decoration: underline;
}

.tag-list {
  margin: 0.75rem 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-list li {
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.72rem;
  color: #372f27;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

.chip-list {
  margin: 0.8rem 0 0;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip-list li {
  padding: 0.48rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.88);
  font-size: 0.82rem;
  color: #302922;
  font-weight: 600;
}

.skill-list {
  margin-top: 0.9rem;
  display: grid;
  gap: 0.7rem;
}

.skill-row {
  display: grid;
  gap: 0.35rem;
}

.skill-row span {
  font-size: 0.88rem;
  color: #383129;
  font-weight: 600;
}

.skill-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(107, 81, 44, 0.15);
  overflow: hidden;
}

.skill-bar::after {
  content: "";
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d3a061, #925f2b);
}

.contact-grid {
  margin-top: 0.9rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.contact-card {
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  padding: 1rem;
  background: rgba(255, 252, 245, 0.82);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(141, 92, 42, 0.45);
  box-shadow: 0 12px 24px rgba(74, 49, 18, 0.11);
}

.contact-card h3 {
  margin: 0;
  font-size: 1rem;
}

.contact-card p,
.contact-card a {
  margin: 0.45rem 0 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer {
  width: min(1240px, 92%);
  margin: 0 auto 1.3rem;
  text-align: center;
  font-size: 0.82rem;
  color: #6b6054;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  animation: rise 580ms cubic-bezier(0.21, 0.76, 0.22, 0.98) forwards;
}

.delay-1 {
  animation-delay: 80ms;
}

.delay-2 {
  animation-delay: 170ms;
}

.delay-3 {
  animation-delay: 250ms;
}

@keyframes rise {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1600px) {
  .site-header,
  .page-wrap,
  .site-footer {
    width: min(1480px, 90%);
  }

  .hero-block {
    grid-template-columns: 1.35fr 0.65fr;
  }

  .display-title {
    font-size: clamp(2.4rem, 2.8vw, 4.2rem);
  }

  .section-block {
    padding: clamp(1.5rem, 1.8vw, 2.5rem);
  }
}

@media (max-width: 1280px) {
  .site-header,
  .page-wrap,
  .site-footer {
    width: 94%;
  }
}

@media (max-width: 900px) {
  .site-header {
    border-radius: 20px;
    top: 0.5rem;
    gap: 0.7rem;
  }

  .site-nav {
    width: 100%;
    order: 3;
    gap: 0.7rem;
  }

  .site-nav a {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
  }

  .header-cta {
    margin-left: 0;
    order: 2;
  }

  .hero-actions {
    gap: 0.6rem;
  }

  .hero-actions .btn {
    flex: 1 1 44%;
    text-align: center;
  }
}

@media (max-width: 1040px) {
  .site-header {
    border-radius: 22px;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .header-cta {
    margin-left: 0;
  }

  .hero-block {
    grid-template-columns: 1fr;
  }

  .project-grid,
  .tile-grid,
  .contact-grid,
  .stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-header {
    width: 94%;
  }

  .site-nav {
    width: 100%;
    padding-top: 0.15rem;
  }

  .header-cta {
    width: 100%;
    text-align: center;
  }

  .display-title {
    font-size: clamp(1.85rem, 8vw, 2.5rem);
  }

  .page-wrap {
    width: 94%;
  }

  .hero-block:not(.compact) {
    grid-template-areas:
      "side"
      "main";
  }

  .project-grid,
  .tile-grid,
  .contact-grid,
  .mini-grid,
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .site-header {
    margin-top: 0.65rem;
    padding: 0.62rem 0.72rem;
    top: 0.35rem;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
    font-size: 0.73rem;
  }

  .hero-block,
  .section-block {
    padding: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-actions .btn,
  .header-cta {
    width: 100%;
  }

  .profile-visual {
    width: min(190px, 100%);
  }
}

@media (max-width: 420px) {
  .display-title {
    font-size: clamp(1.65rem, 8.8vw, 2.15rem);
    line-height: 1.08;
  }

  .lead {
    font-size: 0.94rem;
    line-height: 1.55;
  }

  .section-title {
    font-size: clamp(1.35rem, 7vw, 1.75rem);
  }

  .site-nav a {
    font-size: 0.72rem;
    letter-spacing: 0.04em;
  }

  .stat-strip article {
    padding: 0.72rem 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
