:root {
  --bg: #efede7;
  --paper: #fbfaf6;
  --paper-strong: #ffffff;
  --ink: #171713;
  --muted: #6f6b61;
  --soft: #d9d2c4;
  --line: rgba(23, 23, 19, 0.14);
  --deep: #171713;
  --moss: #526b5a;
  --bronze: #9a6a2f;
  --blue: #213c50;
  --shadow: 0 30px 90px rgba(23, 23, 19, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 23, 19, 0.045) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 23, 19, 0.035) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(1120px, calc(100% - 32px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.72);
  box-shadow: 0 18px 60px rgba(23, 23, 19, 0.08);
  backdrop-filter: blur(18px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 250, 246, 0.94);
  box-shadow: 0 16px 46px rgba(23, 23, 19, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--deep);
  color: #fffaf0;
  font-size: 0.82rem;
}

.brand-copy {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-links a,
.header-action {
  transition: color 160ms ease, background 160ms ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-action {
  border-radius: 8px;
  background: var(--ink);
  color: #fffaf0;
  padding: 10px 15px;
  font-weight: 800;
}

.contact-dock {
  position: fixed;
  top: 50%;
  right: 18px;
  z-index: 19;
  display: grid;
  gap: 6px;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 10px;
  background: rgba(251, 250, 246, 0.9);
  box-shadow: 0 16px 46px rgba(23, 23, 19, 0.14);
  backdrop-filter: blur(18px);
  transform: translateY(-50%);
}

.contact-dock a {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--ink);
  transition: transform 160ms ease, background 160ms ease, color 160ms ease,
    box-shadow 160ms ease;
}

.contact-dock a:hover,
.contact-dock a:focus-visible {
  background: var(--deep);
  color: #fffaf0;
  box-shadow: 0 10px 24px rgba(23, 23, 19, 0.22);
  transform: translateX(-5px) scale(1.06);
  outline: none;
}

.contact-dock svg {
  width: 29px;
  min-width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.contact-dock span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 132px 0 72px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.58fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: stretch;
}

.hero-copy {
  min-height: 660px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(26px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(251, 250, 246, 0.96), rgba(238, 233, 222, 0.92)),
    var(--paper);
  box-shadow: var(--shadow);
}

.intro-line,
.section-label,
.section-top span,
.contact-card > span {
  margin: 0;
  color: var(--bronze);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 820px;
  margin: 16px 0 0;
  font-size: clamp(3.2rem, 8vw, 7.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.role {
  margin: 22px 0 0;
  color: var(--blue);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  font-weight: 800;
}

.personal-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.14rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

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

.button.primary {
  background: var(--deep);
  color: #fffaf0;
}

.button.ghost {
  border: 1px solid var(--line);
  color: var(--deep);
}

.identity-card {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.portrait-wrap {
  position: relative;
  min-height: 380px;
  overflow: hidden;
  background: var(--deep);
}

.portrait-wrap img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
  opacity: 0.72;
  filter: grayscale(0.15) contrast(1.04);
}

.portrait-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(23, 23, 19, 0.82) 100%);
}

.portrait-mark {
  position: absolute;
  left: 24px;
  bottom: 24px;
  z-index: 1;
  display: grid;
  width: 112px;
  height: 112px;
  place-items: center;
  border: 1px solid rgba(255, 250, 240, 0.54);
  border-radius: 8px;
  color: #fffaf0;
  font-size: 2.2rem;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.identity-meta {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.identity-meta span {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
}

.signature-block {
  padding: 24px 20px;
}

.signature-block strong {
  display: block;
  font-size: 2.2rem;
  line-height: 1;
}

.signature-block span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(251, 250, 246, 0.78);
  backdrop-filter: blur(16px);
}

.metric-strip div {
  min-height: 140px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metric-strip div:last-child {
  border-right: 0;
}

.metric-strip strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1;
}

.metric-strip span {
  display: block;
  max-width: 260px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 600;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 104px) 0;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.84fr) minmax(300px, 0.68fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
  margin-top: 20px;
}

.statement h2,
.section-top h2,
.contact-card h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.04rem;
}

.about-copy p {
  margin: 0;
}

.section-top {
  display: grid;
  grid-template-columns: minmax(190px, 0.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-bottom: 34px;
}

.resume-stack {
  display: grid;
  border-top: 1px solid var(--line);
}

.resume-row {
  display: grid;
  grid-template-columns: minmax(190px, 0.28fr) minmax(0, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.resume-time {
  display: grid;
  align-content: start;
  gap: 10px;
}

.resume-time span {
  color: var(--blue);
  font-weight: 900;
}

.resume-time small {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.resume-body {
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: rgba(251, 250, 246, 0.78);
  box-shadow: 0 18px 60px rgba(23, 23, 19, 0.07);
}

.resume-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.resume-title h3,
.proof-card h3,
.skill-board h3 {
  margin: 0;
  line-height: 1.18;
}

.resume-title span {
  color: var(--bronze);
  font-size: 0.9rem;
  font-weight: 800;
  text-align: right;
}

.resume-body p,
.proof-card p,
.skill-board p {
  margin: 0;
  color: var(--muted);
}

.impact-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.impact-list li {
  position: relative;
  padding-left: 22px;
}

.impact-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--moss);
}

.proof-section {
  width: 100%;
  padding-right: clamp(18px, 5vw, 72px);
  padding-left: clamp(18px, 5vw, 72px);
  background: var(--deep);
  color: #fffaf0;
}

.proof-section .section-top {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

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

.proof-card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(255, 250, 240, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.08), rgba(255, 250, 240, 0.03)),
    #1e1e19;
}

.proof-number {
  color: var(--bronze);
  font-weight: 900;
}

.proof-card h3 {
  margin-top: 34px;
  font-size: 1.45rem;
}

.proof-card p {
  margin-top: 14px;
  color: rgba(255, 250, 240, 0.68);
}

.proof-card strong {
  margin-top: auto;
  padding-top: 26px;
}

.skill-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(251, 250, 246, 0.84);
  box-shadow: var(--shadow);
}

.skill-board > div {
  min-height: 180px;
  padding: 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.skill-board > div:nth-child(3n) {
  border-right: 0;
}

.skill-board > div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.contact-section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(62px, 9vw, 104px) 0;
}

.contact-card {
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(33, 60, 80, 0.95), rgba(23, 23, 19, 0.96)),
    var(--deep);
  color: #fffaf0;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  max-width: 900px;
  margin-top: 16px;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.contact-links a {
  border: 1px solid rgba(255, 250, 240, 0.2);
  border-radius: 8px;
  padding: 11px 14px;
  color: rgba(255, 250, 240, 0.82);
  font-weight: 800;
  transition: background 160ms ease, color 160ms ease;
}

.contact-links a:hover {
  background: #fffaf0;
  color: var(--deep);
}

.site-footer {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 0 0 34px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.site-footer a {
  color: var(--ink);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms ease, transform 620ms ease;
}

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-grid,
  .about-layout,
  .section-top,
  .resume-row {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    min-height: 560px;
  }

  .metric-strip,
  .proof-grid,
  .skill-board {
    grid-template-columns: 1fr;
  }

  .metric-strip div,
  .skill-board > div,
  .skill-board > div:nth-child(3n),
  .skill-board > div:nth-last-child(-n + 3) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric-strip div:last-child,
  .skill-board > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    width: min(100% - 20px, 1120px);
  }

  .brand-copy {
    display: none;
  }

  .hero-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 100px;
  }

  .hero-copy,
  .resume-body,
  .proof-card,
  .contact-card {
    padding: 22px;
  }

  .hero-copy {
    min-height: 520px;
  }

  .portrait-wrap,
  .portrait-wrap img {
    min-height: 320px;
  }

  .resume-title {
    display: grid;
  }

  .resume-title span {
    text-align: left;
  }

  .button,
  .contact-links a {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
  }

  .contact-dock {
    top: auto;
    right: 50%;
    bottom: 12px;
    grid-template-columns: repeat(4, 1fr);
    width: min(300px, calc(100% - 24px));
    transform: translateX(50%);
  }

  .contact-dock a,
  .contact-dock a:hover,
  .contact-dock a:focus-visible {
    width: 100%;
    height: 58px;
    justify-content: center;
  }

  .contact-dock a:hover,
  .contact-dock a:focus-visible {
    transform: translateY(-4px) scale(1.06);
  }

  .site-footer {
    padding-bottom: 92px;
  }
}

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