:root {
  --bg: #f4ede3;
  --surface: rgba(255, 250, 243, 0.78);
  --surface-strong: #fff9f1;
  --ink: #1b271f;
  --muted: #57665d;
  --line: rgba(27, 39, 31, 0.12);
  --accent: #176f51;
  --accent-deep: #0f4f3a;
  --accent-soft: #d9eee2;
  --amber: #bd7b17;
  --amber-soft: rgba(189, 123, 23, 0.14);
  --shadow: 0 24px 60px rgba(61, 47, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(189, 123, 23, 0.18), transparent 24%),
    radial-gradient(circle at top right, rgba(23, 111, 81, 0.18), transparent 28%),
    linear-gradient(180deg, #f9f4eb 0%, #f1e8da 100%);
  color: var(--ink);
  font-family: "Manrope", sans-serif;
}

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

img {
  display: block;
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
}

.page-shell {
  margin: 0 auto;
  max-width: 1240px;
  padding: 24px;
}

.site-header,
.site-footer,
.site-nav,
.hero-actions,
.hero-highlights,
.skill-cloud,
.tool-grid,
.contact-actions,
.profile-badges,
.mini-facts,
.contact-notes {
  display: flex;
}

.site-header,
.site-footer {
  align-items: center;
  justify-content: space-between;
}

.site-header {
  background: rgba(255, 249, 241, 0.72);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 28px;
  padding: 14px 20px;
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  font-family: "Fraunces", serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-nav {
  gap: 18px;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.section {
  margin-bottom: 42px;
}

.hero,
.split,
.contact-panel,
.device-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.82fr);
  align-items: start;
}

.hero-copy,
.hero-card,
.service-card,
.achievement-card,
.case-study-card,
.experience-card,
.device-panel,
.education-panel,
.contact-panel {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 48px;
}

.eyebrow,
.proof-label,
.status-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--accent-deep);
  margin: 0 0 16px;
}

.hero-role {
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 18px;
}

.hero .eyebrow {
  font-size: 0.98rem;
  letter-spacing: 0.08em;
  margin-bottom: 30px;
}

.hero-title,
.section-heading h2,
.split h2,
.contact-panel h2 {
  font-family: "Fraunces", serif;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 0;
}

.hero-title {
  font-size: clamp(3rem, 6vw, 5.8rem);
  max-width: 10ch;
}

.hero-text,
.rich-copy p,
.achievement-card p,
.case-study-card p,
.service-card p,
.experience-card p,
.education-panel p,
.contact-panel p,
.device-panel li {
  color: var(--muted);
  line-height: 1.75;
}

.hero-text {
  font-size: 1.08rem;
  margin: 28px 0 0;
  max-width: 36ch;
}

.hero-text-secondary {
  margin-top: 24px;
}

.hero-actions,
.hero-highlights,
.skill-cloud,
.tool-grid,
.contact-actions,
.profile-badges,
.mini-facts,
.contact-notes {
  flex-wrap: wrap;
  gap: 14px;
}

.hero-actions {
  margin-top: 34px;
}

.button {
  border-radius: 999px;
  font-weight: 800;
  padding: 14px 22px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

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

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

.button-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}

.hero-highlights {
  list-style: none;
  margin-top: 34px;
}

.hero-highlights li,
.profile-badges span,
.mini-facts span,
.skill-cloud span,
.tool-grid span,
.contact-notes span,
.case-signals span {
  background: var(--surface-strong);
  border: 1px solid rgba(27, 39, 31, 0.08);
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 12px 16px;
}

.hero-card {
  align-self: start;
  overflow: hidden;
}

.portrait-frame {
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.52), transparent 28%),
    linear-gradient(160deg, #d2ecd8 0%, #b6d8c3 100%);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 24px;
}

.portrait-frame img {
  border-radius: 24px;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: center 22%;
}

@supports not (aspect-ratio: 1 / 1) {
  .portrait-frame {
    min-height: 420px;
  }
}

.portrait-frame img {
  margin: 0 auto;
}

.hero-card-copy {
  padding: 24px;
}

.portrait-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.status-pill {
  background: var(--accent-soft);
  color: var(--accent-deep);
  letter-spacing: 0.08em;
  margin-bottom: 18px;
  padding: 8px 12px;
}

.stat-grid,
.achievement-grid,
.card-grid,
.experience-list,
.case-study-grid {
  display: grid;
  gap: 18px;
}

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

.stat-grid article {
  background: rgba(15, 79, 58, 0.05);
  border-radius: 20px;
  padding: 18px;
}

.stat-grid strong,
.achievement-card h3,
.service-card h3,
.experience-card h3,
.device-panel h3,
.education-panel h3 {
  display: block;
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.stat-grid strong {
  font-size: 1.35rem;
}

.stat-grid span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mini-facts {
  margin-top: 16px;
}

.mini-facts span {
  font-size: 0.85rem;
  padding: 10px 12px;
}

.split {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split h2,
.contact-panel h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  max-width: 11ch;
}

.achievement-grid {
  grid-template-columns: 1.35fr 1fr 1fr;
}

.achievement-card,
.case-study-card,
.service-card,
.experience-card,
.github-card,
.device-panel,
.education-panel {
  padding: 28px;
}

.achievement-card-featured {
  grid-row: span 2;
  align-self: start;
}

.proof-label {
  background: var(--amber-soft);
  color: #8a5b12;
  margin-bottom: 14px;
  padding: 8px 12px;
}

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

.service-card {
  min-height: 210px;
}

.skill-cloud,
.tool-grid {
  gap: 12px;
}

.tool-grid span {
  background: rgba(15, 79, 58, 0.05);
}

.github-activity-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
}

.github-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.github-card h3 {
  font-size: 1.55rem;
  margin: 0 0 12px;
}

.github-card p {
  color: var(--muted);
  line-height: 1.75;
}

.github-card-visual {
  display: grid;
  gap: 16px;
}

.github-live-panel {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(27, 39, 31, 0.08);
  border-radius: 24px;
  display: grid;
  gap: 18px;
  padding: 18px;
}

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

.github-overview-grid article {
  background: rgba(15, 79, 58, 0.05);
  border-radius: 18px;
  display: grid;
  gap: 10px;
  padding: 16px;
}

.github-badge {
  border-radius: 999px;
  max-width: 100%;
}

.github-overview-grid span {
  color: var(--muted);
  font-size: 0.9rem;
}

.github-profile-summary strong {
  color: var(--ink);
  display: block;
  font-size: 1.35rem;
  margin-bottom: 2px;
}

.github-feed {
  border-top: 1px solid rgba(27, 39, 31, 0.08);
  padding-top: 18px;
}

.github-feed-title {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.github-feed-list {
  display: grid;
  gap: 10px;
  list-style: none;
}

.github-feed-list li {
  background: rgba(15, 79, 58, 0.04);
  border-radius: 16px;
  padding: 14px 16px;
}

.github-feed-list strong,
.github-feed-list span {
  display: block;
}

.github-feed-list strong {
  color: var(--ink);
  font-size: 0.96rem;
  margin-bottom: 4px;
}

.github-feed-list span {
  color: var(--muted);
  font-size: 0.88rem;
}

.github-feed-list a {
  color: var(--accent-deep);
  font-weight: 700;
  text-decoration: underline;
}

.github-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.github-image {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(27, 39, 31, 0.08);
  border-radius: 20px;
  padding: 10px;
  width: 100%;
}

.github-overview-image {
  min-height: 210px;
}

.github-graph-image {
  min-height: 260px;
  object-fit: contain;
}

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

.case-study-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0)) padding-box,
    var(--surface);
  position: relative;
}

.case-study-card::before {
  background: linear-gradient(90deg, rgba(23, 111, 81, 0.96), rgba(189, 123, 23, 0.82));
  border-radius: 999px;
  content: "";
  display: block;
  height: 4px;
  margin-bottom: 18px;
  width: 72px;
}

.case-study-head {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 10px;
  justify-items: start;
  margin-bottom: 14px;
}

.case-study-head p {
  margin: 0;
}

.case-study-head span {
  background: rgba(15, 79, 58, 0.07);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.74rem;
  justify-content: center;
  line-height: 1.1;
  letter-spacing: 0.01em;
  max-width: 100%;
  padding: 8px 10px;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.case-study-card h3 {
  font-size: 1.85rem;
  line-height: 1.08;
  margin-bottom: 14px;
}

.case-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.case-signals span {
  background: rgba(15, 79, 58, 0.06);
  font-size: 0.82rem;
  padding: 10px 12px;
}

.case-study-card > p {
  max-width: 34ch;
}

.case-points {
  list-style: none;
  margin-top: 18px;
}

.case-points li {
  border-top: 1px solid rgba(27, 39, 31, 0.08);
  color: var(--muted);
  line-height: 1.6;
  padding: 12px 0;
}

.case-points li:first-child {
  border-top: 0;
  padding-top: 0;
}

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

.experience-meta {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 8px;
}

.experience-meta p {
  margin: 0;
}

.experience-meta span {
  white-space: nowrap;
}

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

.device-panel ul {
  list-style: none;
}

.device-panel li {
  border-top: 1px solid rgba(27, 39, 31, 0.08);
  padding: 12px 0;
}

.device-panel li:first-child {
  border-top: 0;
  padding-top: 0;
}

.education-panel {
  display: grid;
  gap: 18px;
}

.contact-panel {
  align-items: start;
  background:
    radial-gradient(circle at top right, rgba(189, 123, 23, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(16, 79, 56, 0.96), rgba(12, 59, 42, 0.94));
  color: #eef7ef;
  gap: 28px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  padding: 32px;
}

.contact-copy {
  max-width: 44rem;
}

.contact-column {
  display: grid;
  align-self: stretch;
  gap: 16px;
}

.contact-cta-card {
  background: rgba(7, 39, 27, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  display: grid;
  gap: 18px;
  min-height: 100%;
  padding: 28px;
}

.contact-panel p,
.contact-panel .eyebrow {
  color: rgba(238, 247, 239, 0.82);
}

.contact-kicker {
  color: #f6d89d;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0;
  text-transform: uppercase;
}

.contact-cta-copy {
  margin: 0;
  max-width: 34ch;
}

.contact-actions {
  align-items: flex-start;
  gap: 14px;
}

.contact-panel .button-secondary {
  border-color: rgba(255, 255, 255, 0.2);
  color: #eef7ef;
}

.contact-panel .button-primary {
  background: #f6d89d;
  color: #223126;
}

.contact-notes span {
  background: rgba(255, 249, 241, 0.92);
  border-color: rgba(255, 255, 255, 0.18);
  color: #223126;
}

.contact-notes {
  grid-column: 1 / -1;
  justify-content: flex-start;
  margin-top: 4px;
}

.contact-notes span {
  white-space: nowrap;
}

.site-footer {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 10px 4px 30px;
}

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

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

@media (max-width: 1100px) {
  .hero,
  .split,
  .contact-panel,
  .achievement-grid,
  .card-grid,
  .github-activity-grid,
  .experience-list,
  .device-layout,
  .case-study-grid {
    grid-template-columns: 1fr 1fr;
  }

  .achievement-card-featured {
    grid-column: span 2;
    grid-row: span 1;
  }

  .portrait-frame {
    aspect-ratio: 4 / 5;
  }

  .contact-notes {
    flex-wrap: wrap;
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 16px;
  }

  .site-header,
  .site-footer {
    border-radius: 28px;
    flex-direction: column;
    gap: 12px;
  }

  .site-nav {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero,
  .split,
  .contact-panel,
  .achievement-grid,
  .card-grid,
  .github-activity-grid,
  .experience-list,
  .device-layout,
  .stat-grid,
  .case-study-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-card,
  .achievement-card,
  .service-card,
  .experience-card,
  .github-card,
  .device-panel,
  .education-panel,
  .contact-panel {
    padding: 22px;
  }

  .contact-cta-card {
    padding: 22px;
  }

  .case-study-card {
    padding: 24px;
  }

  .github-overview-grid {
    grid-template-columns: 1fr;
  }

  .contact-notes span {
    white-space: normal;
  }

  .hero-title,
  .section-heading h2,
  .split h2,
  .contact-panel h2 {
    max-width: none;
  }

  .portrait-frame {
    aspect-ratio: 4 / 5;
    padding: 18px;
  }

  .portrait-frame img {
    object-position: center 18%;
  }

  .achievement-card-featured {
    grid-column: span 1;
  }

  .experience-meta {
    align-items: flex-start;
    flex-direction: column;
  }
}
