:root {
  color-scheme: dark;
  --ink: #111416;
  --ink-2: #1b2023;
  --paper: #f3f5f2;
  --paper-2: #fbfcf8;
  --surface: #ffffff;
  --text: #151917;
  --muted: #5e6863;
  --line: #dfe5de;
  --accent: #c98221;
  --accent-2: #efe4d1;
  --dark-text: #f7f8f2;
  --dark-muted: #aeb8b3;
  --radius: 12px;
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

p,
h1,
h2,
h3,
dl,
dd {
  margin-top: 0;
}

.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  height: 70px;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 6vw, 72px);
  background: rgba(17, 20, 22, 0.9);
  color: var(--dark-text);
  backdrop-filter: blur(16px);
}

.brand {
  display: none;
  color: var(--accent);
  font-weight: 900;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 48px);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav a {
  position: relative;
  padding: 25px 0;
  text-decoration: none;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.3);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  opacity: 1;
  transform: scaleX(1);
}

.nav-contact {
  border-radius: 6px;
  background: var(--accent);
  color: #111416;
  padding: 12px 18px !important;
}

.nav-contact::after {
  display: none;
}

.social-rail {
  position: fixed;
  top: 50%;
  left: clamp(18px, 4vw, 52px);
  z-index: 15;
  display: grid;
  gap: 10px;
  padding: 12px 9px;
  border-radius: 8px;
  background: rgba(17, 20, 22, 0.94);
  transform: translateY(-50%);
}

.social-rail a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: var(--dark-text);
  text-decoration: none;
}

.social-rail svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.social-rail a:hover,
.social-rail a:focus-visible {
  background: var(--accent);
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: 100dvh;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(rgba(13, 17, 19, 0.42), rgba(13, 17, 19, 0.62)),
    url("./assets/profile-hero.jpg") center 52% / cover;
  color: var(--dark-text);
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 130, 33, 0.1), transparent 24%),
    linear-gradient(to bottom, rgba(88, 101, 95, 0.06), transparent 28%, rgba(13, 17, 19, 0.16));
}

.hero-inner {
  position: relative;
  width: min(100% - 40px, 960px);
  padding-top: 70px;
}

.eyebrow {
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(62px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-line {
  max-width: 760px;
  margin: 0 auto;
  color: var(--dark-text);
  font-size: clamp(18px, 2.2vw, 25px);
  font-weight: 650;
}

.hero-actions,
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 900;
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

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

.button.primary {
  background: var(--accent);
  color: #111416;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  color: var(--dark-text);
}

.button.secondary.dark {
  border-color: rgba(255, 255, 255, 0.28);
}

.button.light {
  border: 1px solid rgba(21, 23, 19, 0.16);
  background: var(--surface);
  color: var(--ink);
}

.section {
  scroll-margin-top: 70px;
  padding: clamp(78px, 9vw, 116px) clamp(20px, 5vw, 72px);
}

.section,
.showcase-item,
.contact-card,
.contact-panel,
.resume-card {
  animation: reveal-up 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-title {
  width: min(100%, 980px);
  margin: 0 auto 40px;
  text-align: center;
}

.section-title span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title h2 {
  max-width: 780px;
  margin: 0 auto;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
}

.about {
  background: var(--paper);
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.85fr);
  gap: clamp(28px, 4vw, 52px);
  width: min(100%, 1240px);
  margin: 0 auto;
  align-items: start;
}

.identity-card,
.about-story,
.experience-card,
.skill-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 22px 70px rgba(17, 24, 28, 0.07);
}

.identity-card {
  padding: clamp(28px, 4vw, 42px);
  text-align: center;
}

.portrait-photo {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 24px;
  border: 1px solid rgba(201, 130, 33, 0.32);
  border-radius: 50%;
  object-fit: cover;
  object-position: 54% 42%;
  box-shadow:
    0 20px 44px rgba(17, 24, 28, 0.18),
    0 0 0 10px rgba(239, 228, 209, 0.42);
}

.identity-card h3,
.about-story strong,
.experience-card h3,
.skill-grid h3 {
  margin-bottom: 6px;
}

.identity-card p,
.about-story p,
.experience-card p,
.skill-grid p {
  color: var(--muted);
}

.about-story {
  padding: clamp(30px, 4.6vw, 56px);
}

.intro-copy {
  max-width: 88ch;
  margin-bottom: 30px;
  color: #353b38;
  font-size: clamp(20px, 2vw, 29px);
  line-height: 1.62;
}

.intro-copy strong {
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  border-radius: 7px;
  background: var(--accent-2);
  color: var(--accent);
  padding: 0 0.16em;
  font-weight: 900;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0 0 30px;
}

.role-cards article {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  background: var(--paper-2);
}

.role-cards span,
.date {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.role-cards strong {
  display: block;
  font-size: 20px;
  line-height: 1.2;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.chips li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  padding: 7px 11px;
  font-size: 13px;
  font-weight: 750;
}

.experience {
  background: var(--paper-2);
}

.timeline {
  display: grid;
  gap: 18px;
  width: min(100%, 980px);
  margin: 0 auto;
}

.experience-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: 28px;
}

.experience-card.highlight {
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
  box-shadow: 0 22px 80px rgba(201, 130, 33, 0.11);
}

.experience-card.compact {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.2fr);
  border-style: dashed;
  background: color-mix(in srgb, var(--surface) 72%, var(--paper-2));
  box-shadow: none;
}

.experience-card.compact h3 {
  font-size: 22px;
}

.experience-card.compact p:not(.company) {
  color: #4f5952;
}

.company {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 750;
}

.experience-card .chips {
  grid-column: 2;
}

.research {
  background: #171913;
  color: var(--dark-text);
}

.research .section-title h2 {
  color: var(--dark-text);
}

.research-case {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.research-visual {
  position: relative;
  display: grid;
  gap: 18px;
}

.research-main,
.research-inset {
  display: block;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

.research-main {
  padding: 14px;
}

.research-inset {
  justify-self: end;
  width: min(78%, 560px);
  padding: 10px;
}

.research-preview {
  align-content: center;
  gap: 18px;
  padding: 20px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 20% 18%, rgba(201, 130, 33, 0.16), transparent 30%),
    linear-gradient(135deg, #111416, #26302d);
}

.research-preview .research-main,
.research-preview .research-inset {
  box-shadow: 0 14px 34px rgba(21, 23, 19, 0.22);
}

.research-preview .research-inset {
  width: min(72%, 520px);
}

.research-real .research-main {
  width: min(100%, 500px);
  max-height: 600px;
  object-fit: contain;
  background: #050505;
}

.research-copy {
  max-width: 620px;
}

.project-kind {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.research-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05;
}

.research-copy > p:not(.project-kind) {
  color: var(--dark-muted);
  font-size: clamp(17px, 1.7vw, 21px);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.metric-grid div {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  padding: 18px;
}

.metric-grid strong {
  display: block;
  color: var(--accent);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--dark-muted);
  font-size: 13px;
  font-weight: 700;
}

.projects {
  background: #eef1ee;
}

.project-selector {
  position: sticky;
  top: 70px;
  z-index: 8;
  display: flex;
  width: min(100%, 980px);
  margin: -12px auto 28px;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  padding: 8px;
  border: 1px solid rgba(208, 216, 209, 0.9);
  border-radius: 999px;
  background: rgba(251, 252, 248, 0.84);
  backdrop-filter: blur(14px);
}

.project-selector a {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-selector a:hover,
.project-selector a:focus-visible,
.project-selector a.active {
  background: var(--accent);
  color: var(--ink);
}

.project-stage {
  position: relative;
  width: min(100%, 1380px);
  margin: 0 auto;
}

.project-showcase {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 0 0 28px;
  scroll-behavior: smooth;
  scroll-padding-inline: 0;
  scroll-snap-type: x mandatory;
}

.project-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  width: 54px;
  height: 78px;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(17, 20, 22, 0.44);
  cursor: pointer;
  font-size: 76px;
  font-weight: 300;
  line-height: 1;
  transform: translateY(-50%);
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.project-arrow:hover,
.project-arrow:focus-visible {
  color: var(--accent);
  transform: translateY(-50%) scale(1.06);
}

.project-arrow.previous {
  left: 18px;
}

.project-arrow.next {
  right: 18px;
}

.project-dots {
  display: flex;
  justify-content: center;
  gap: 11px;
  margin-top: 14px;
}

.project-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: #cbd3cc;
  cursor: pointer;
  padding: 0;
}

.project-dots button.active {
  background: var(--accent);
  transform: scale(1.18);
}

.project-showcase::-webkit-scrollbar {
  height: 10px;
}

.project-showcase::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(208, 216, 209, 0.76);
}

.project-showcase::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: var(--accent);
}

.showcase-item {
  flex: 0 0 100%;
  display: grid;
  align-content: start;
  grid-template-columns: minmax(360px, 1.06fr) minmax(360px, 0.94fr);
  gap: clamp(34px, 5vw, 74px);
  align-items: center;
  min-height: 560px;
  border-radius: 6px;
  background: var(--surface);
  padding: clamp(34px, 5vw, 62px);
  box-shadow:
    0 28px 45px rgba(17, 24, 28, 0.16),
    0 3px 12px rgba(17, 24, 28, 0.1);
  scroll-margin-top: 142px;
  scroll-snap-align: start;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}

.showcase-item:hover {
  transform: translateY(-3px);
  box-shadow:
    0 34px 54px rgba(17, 24, 28, 0.16),
    0 4px 14px rgba(17, 24, 28, 0.1);
}

.showcase-item.feature {
  grid-template-columns: minmax(420px, 1.12fr) minmax(360px, 0.88fr);
}

.showcase-media {
  position: relative;
  display: grid;
  min-height: 370px;
  place-items: center;
  overflow: hidden;
}

.showcase-media img,
.showcase-media video {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 14px 34px rgba(21, 23, 19, 0.18);
}

.moxie-media video {
  aspect-ratio: 16 / 9;
  background: #111713;
  object-fit: contain;
}

.showcase-copy {
  max-width: 620px;
}

.project-title-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: baseline;
}

.project-title-row h3 {
  margin-bottom: 18px;
  color: var(--accent);
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
}

.project-title-row a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-copy h4 {
  margin: 0 0 20px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  padding: 0;
  margin: 0 0 34px;
  list-style: none;
}

.tool-tags.compact li {
  min-height: 29px;
  font-size: 15px;
  padding: 4px 22px 4px 18px;
}

.tool-tags li {
  position: relative;
  min-height: 34px;
  background: #ececec;
  color: #9d9d9d;
  clip-path: polygon(0 0, calc(100% - 17px) 0, 100% 50%, calc(100% - 17px) 100%, 0 100%);
  padding: 4px 26px 4px 22px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.tool-tags li::before {
  position: absolute;
  top: 50%;
  left: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--surface);
  content: "";
  transform: translateY(-50%);
}

.showcase-copy p {
  border-top: 2px solid var(--accent);
  padding-top: 26px;
  margin-bottom: 0;
  color: #333936;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.42;
}

.system-visual,
.navidata-visual {
  border-radius: 4px;
  background:
    radial-gradient(circle at 28% 30%, rgba(201, 130, 33, 0.16), transparent 32%),
    linear-gradient(135deg, #f7f8f4, #e8eee8);
}

.cluster,
.pipeline {
  display: grid;
  width: min(100%, 520px);
  gap: 14px;
}

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

.cluster span,
.pipeline span,
.pipeline strong {
  display: grid;
  min-height: 84px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 900;
  text-align: center;
  box-shadow: 0 10px 28px rgba(17, 24, 28, 0.06);
}

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

.pipeline strong {
  grid-column: 1 / -1;
  min-height: 96px;
  background: var(--accent);
  color: #111416;
  font-size: 28px;
}

.skills {
  background: var(--paper-2);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  width: min(100%, 1120px);
  margin: 0 auto;
}

.skill-grid article {
  padding: 24px;
}

.skill-map {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 1180px);
}

.skill-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 130, 33, 0.08), transparent 42%),
    var(--surface);
  box-shadow: 0 20px 54px rgba(17, 24, 28, 0.07);
}

.skill-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--accent);
  content: "";
}

.skill-card h3 {
  margin: 0 0 10px;
  font-size: 25px;
  line-height: 1.1;
}

.skill-card p {
  min-height: 76px;
  margin-bottom: 20px;
  color: var(--muted);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-tags li {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: #3b433e;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
}

.more-projects {
  background: var(--paper-2);
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.archive-grid article {
  display: grid;
  min-height: 260px;
  align-content: space-between;
  gap: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(17, 24, 28, 0.06);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.archive-grid article:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 24px 60px rgba(17, 24, 28, 0.09);
  transform: translateY(-3px);
}

.archive-grid span {
  display: block;
  margin-bottom: 9px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.archive-grid h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.12;
}

.archive-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.archive-grid a {
  width: fit-content;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.resume-section {
  background: #eef1ee;
}

.resume-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 28px;
  align-items: center;
  width: min(100%, 1120px);
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: clamp(28px, 5vw, 54px);
  box-shadow: 0 28px 70px rgba(17, 24, 28, 0.09);
}

.resume-card h2 {
  max-width: 720px;
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
}

.resume-card p:not(.project-kind) {
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.resume-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.contact {
  padding: clamp(56px, 7vw, 86px) clamp(20px, 5vw, 72px);
  background: var(--paper-2);
  color: var(--text);
}

.contact-wrap {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(420px, 1.3fr);
  gap: clamp(28px, 5vw, 58px);
  width: min(100%, 1180px);
  margin: 0 auto;
  align-items: start;
}

.contact-stack {
  display: grid;
  gap: 24px;
}

.contact-card,
.contact-panel {
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(17, 24, 28, 0.08);
}

.contact-card {
  display: grid;
  min-height: 164px;
  place-items: center;
  padding: 24px;
  text-align: center;
}

.contact-card h3 {
  margin-bottom: 10px;
  color: #3a403a;
  font-size: 22px;
}

.contact-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 700;
}

.contact-icon {
  color: var(--accent);
  font-size: 30px;
  font-weight: 900;
}

.contact-icon.large {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 12px;
  place-items: center;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: var(--accent-2);
}

.social-circles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.social-circles a {
  display: inline-grid;
  min-width: 76px;
  min-height: 42px;
  place-items: center;
  border: 1px solid #dfe2df;
  border-radius: 999px;
  color: #758079;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease,
    transform 160ms ease;
}

.social-circles a:hover,
.social-circles a:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.contact-panel {
  padding: clamp(28px, 4.4vw, 46px);
}

.contact-panel h2 {
  border-bottom: 3px solid var(--accent);
  padding-bottom: 18px;
  margin-bottom: 28px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #3a403a;
  font-size: 16px;
  font-weight: 850;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d8d9d5;
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #8f948d;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(201, 130, 33, 0.14);
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.character-count {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.send-button {
  min-width: 176px;
  box-shadow: 0 16px 34px rgba(201, 130, 33, 0.22);
}

.send-button[disabled] {
  cursor: wait;
  opacity: 0.65;
}

.form-status {
  min-height: 24px;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
}

.form-status.success {
  color: #2f7d45;
}

.form-status.error,
.form-status.error a {
  color: #9c3f2f;
}

.contact-direct {
  display: grid;
  gap: 30px;
}

.contact-direct.compact {
  border-top: 1px solid var(--line);
  margin-top: 30px;
  padding-top: 22px;
}

.contact-direct p {
  max-width: 760px;
  margin: 0;
  color: #4f5952;
  font-size: clamp(19px, 2.3vw, 28px);
  font-weight: 650;
  line-height: 1.45;
}

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

.contact-lines {
  display: grid;
  gap: 14px;
  margin: 8px 0 0;
}

.contact-lines div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: baseline;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.contact-lines dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-lines dd {
  margin: 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 850;
}

.contact-lines a {
  color: inherit;
  text-decoration-color: rgba(201, 130, 33, 0.48);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
    animation-duration: 0.001ms !important;
  }
}

@media (max-width: 920px) {
  .topbar {
    justify-content: space-between;
    padding: 0 18px;
  }

  .brand {
    display: block;
  }

  .nav {
    gap: 14px;
    overflow-x: auto;
    font-size: 11px;
  }

  .nav a {
    white-space: nowrap;
  }

  .social-rail {
    display: none;
  }

  .about-panel,
  .experience-card,
  .research-case,
  .resume-card,
  .contact-wrap,
  .archive-grid,
  .showcase-item,
  .showcase-item.feature,
  .skill-grid {
    grid-template-columns: 1fr;
  }

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

  .experience-card .chips {
    grid-column: auto;
  }

  .showcase-item {
    flex-basis: 100%;
    min-height: auto;
  }

  .project-arrow {
    display: none;
  }

  .resume-actions {
    justify-content: flex-start;
  }

  .research-inset {
    width: min(82%, 500px);
  }

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

@media (max-width: 560px) {
  .topbar {
    height: 64px;
  }

  .nav {
    gap: 12px;
  }

  .nav-contact {
    display: none;
  }

  .nav a[href="#skills"] {
    display: none;
  }

  .nav a[href="#resume"] {
    display: none;
  }

  .project-selector {
    justify-content: flex-start;
    margin-bottom: 18px;
  }

  .hero-inner {
    width: min(100% - 28px, 960px);
  }

  h1 {
    font-size: 56px;
  }

  .hero-line {
    font-size: 18px;
  }

  .button {
    width: 100%;
  }

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

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .send-button {
    width: 100%;
  }

  .resume-actions {
    display: grid;
  }

  .role-cards {
    grid-template-columns: 1fr;
  }

  .portrait-photo {
    width: 140px;
    height: 140px;
  }

  .experience-card,
  .showcase-item,
  .about-story,
  .identity-card,
  .research-case {
    padding: 22px;
  }

  .showcase-item {
    align-items: start;
    gap: 24px;
  }

  .research-case {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
  }

  .research-main {
    padding: 8px;
  }

  .research-inset {
    width: 82%;
    padding: 6px;
  }

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

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

  .showcase-media {
    min-height: 0;
    place-items: start center;
  }

  .cluster,
  .pipeline {
    grid-template-columns: 1fr;
  }

  .tool-tags {
    gap: 9px;
    margin-bottom: 24px;
  }

  .tool-tags li {
    min-height: 28px;
    font-size: 15px;
    padding: 4px 22px 4px 18px;
  }

  .showcase-copy p {
    font-size: 16px;
  }

  .contact-card {
    min-height: 170px;
  }

  .social-circles a {
    min-width: 104px;
    min-height: 46px;
  }

}
