:root {
  --paper: #f3f1ec;
  --ink: #111111;
  --muted: #686864;
  --line: #d8d4ca;
  --accent: #0c8f68;
  --accent-dark: #076448;
  --soft: #e7e2d8;
  --white: #fffdfa;
  --shadow: 0 24px 80px rgba(17, 17, 17, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(12, 143, 104, 0.14), transparent 30%),
    linear-gradient(135deg, #e5e1d8 0%, #f8f7f3 48%, #ded9cf 100%);
  color: var(--ink);
  font-family: "Inter", Arial, sans-serif;
}

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

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto;
  background: var(--paper);
  border: 1px solid rgba(17, 17, 17, 0.14);
  box-shadow: var(--shadow);
  overflow: hidden;
  transform: perspective(1800px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 180ms ease-out;
}

.site-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 42px 64px 18px;
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.66rem;
  font-weight: 800;
}

.header-link {
  justify-self: end;
}

.hero-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.75fr);
  gap: 32px;
  padding: 48px 64px 72px;
  position: relative;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.kicker,
.role-line,
.section-index {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

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

h1 {
  margin-top: 20px;
  font-family: "Anton", Impact, sans-serif;
  font-size: clamp(5.3rem, 14vw, 12.5rem);
  line-height: 0.96;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 span {
  display: block;
  padding-bottom: 0.02em;
}

h1 span + span {
  margin-top: 0.04em;
}

.role-line {
  margin-top: 26px;
}

.hero-text {
  width: min(520px, 100%);
  margin-top: 34px;
  color: #252522;
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.primary-button,
.text-button {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
}

.primary-button {
  padding: 16px 20px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  transition:
    background 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.text-button {
  color: var(--accent-dark);
}

.primary-button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  transform: translateY(-2px);
}

.hero-visual {
  min-height: 560px;
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.portrait-orbit {
  width: min(500px, 100%);
  aspect-ratio: 0.82;
  position: relative;
}

.portrait-disc {
  position: absolute;
  inset: 8% 1% auto auto;
  width: 78%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 58% 30%, rgba(255, 255, 255, 0.28), transparent 18%),
    linear-gradient(145deg, #10a979, #066345);
}

.hero-photo {
  position: absolute;
  left: 50%;
  bottom: 8%;
  z-index: 2;
  width: 145%;
  max-width: none;
  transform: translateX(-49%);
  filter: grayscale(18%) contrast(1.04) drop-shadow(0 28px 34px rgba(17, 17, 17, 0.22));
  object-fit: contain;
  pointer-events: none;
}

.vertical-note {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
}

.vertical-note {
  position: absolute;
  right: -16px;
  top: 70px;
  writing-mode: vertical-rl;
}

.profile-strip,
.focus-grid,
.skills-section,
.connect-section {
  border-top: 1px solid var(--line);
}

.profile-strip {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 56px;
  padding: 48px 64px;
}

h2 {
  margin-top: 10px;
  font-size: 1.05rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.profile-strip p,
.section-heading p,
.focus-card p,
.connect-section p,
.contact-list,
blockquote {
  color: var(--muted);
  line-height: 1.65;
}

.focus-grid {
  display: grid;
  grid-template-columns: 1.05fr repeat(4, 1fr);
  gap: 26px;
  padding: 54px 64px;
}

.section-heading {
  padding-right: 24px;
}

.section-heading p {
  margin-top: 24px;
}

.focus-card {
  min-height: 260px;
  padding: 24px 0 0;
  border-top: 2px solid var(--accent);
  transition:
    border-color 180ms ease,
    transform 180ms ease;
}

.focus-card.is-active {
  border-color: var(--ink);
  transform: translateY(-4px);
}

.focus-card span {
  font-family: "Anton", Impact, sans-serif;
  font-size: 2rem;
}

.focus-card h3 {
  margin-top: 18px;
  font-size: 0.88rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.focus-card p {
  margin-top: 18px;
  font-size: 0.92rem;
}

.skills-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 54px;
  padding: 54px 64px;
}

.toolkit-panel {
  padding-right: 54px;
  border-right: 1px solid var(--line);
}

.skill-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.skill-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 18px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-row i {
  height: 4px;
  background: linear-gradient(90deg, var(--accent) var(--level), var(--line) var(--level));
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
}

.stat-grid div {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.stat-grid strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 3.25rem;
  font-weight: 400;
  line-height: 1;
}

.stat-grid span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

blockquote {
  margin: 42px 0 0;
  padding: 28px 34px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 250, 0.38);
  font-size: 0.98rem;
}

.connect-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr 0.72fr;
  gap: 54px;
  align-items: stretch;
  padding: 54px 64px;
  background: rgba(255, 253, 250, 0.35);
}

.connect-section > div p {
  margin-top: 24px;
}

.contact-list {
  display: grid;
  gap: 22px;
  padding-left: 54px;
  border-left: 1px solid var(--line);
  font-style: normal;
}

.contact-list a,
.contact-list p {
  display: grid;
  gap: 5px;
}

.contact-list span {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cta-box {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.8;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.cta-box strong {
  align-self: flex-end;
  color: var(--accent);
  font-size: 2rem;
}

.cta-box.is-active {
  background: var(--accent);
  color: var(--white);
  transform: translateY(-4px);
}

.cta-box.is-active strong {
  color: var(--white);
}

@media (max-width: 980px) {
  .site-header,
  .hero-section,
  .profile-strip,
  .focus-grid,
  .skills-section,
  .connect-section {
    padding-left: 34px;
    padding-right: 34px;
  }

  .hero-section,
  .skills-section,
  .connect-section {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .portrait-orbit {
    width: min(420px, 100%);
  }

  .hero-photo {
    bottom: 8%;
    width: 136%;
  }

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

  .section-heading {
    grid-column: 1 / -1;
  }

  .toolkit-panel,
  .contact-list {
    border-right: 0;
    border-left: 0;
    padding-right: 0;
    padding-left: 0;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: 100%;
    margin: 0;
    border-left: 0;
    border-right: 0;
    transform: none;
  }

  .site-header {
    padding-top: 26px;
    letter-spacing: 0.22em;
  }

  .microcopy {
    display: none;
  }

  .hero-section {
    padding-top: 36px;
  }

  h1 {
    font-size: clamp(4.5rem, 25vw, 8rem);
    line-height: 1;
  }

  .hero-actions,
  .stat-grid {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .primary-button {
    text-align: center;
  }

  .profile-strip,
  .focus-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .focus-card {
    min-height: 0;
  }

  .skill-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .vertical-note {
    display: none;
  }

  .hero-visual {
    min-height: 360px;
  }

  .portrait-orbit {
    width: min(340px, 100%);
  }

  .hero-photo {
    bottom: 8%;
    width: 128%;
  }
}
