:root {
  --bg: #f5efe6;
  --bg-deep: #132a24;
  --surface: rgba(255, 250, 243, 0.72);
  --surface-strong: rgba(255, 248, 239, 0.88);
  --text: #17211d;
  --muted: #4e5b55;
  --line: rgba(23, 33, 29, 0.1);
  --accent: #d4683c;
  --accent-soft: #efc8a9;
  --accent-deep: #9f4b28;
  --shadow: 0 24px 70px rgba(19, 42, 36, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(212, 104, 60, 0.22), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(239, 200, 169, 0.75), transparent 18%),
    linear-gradient(180deg, #f8f3ec 0%, #f1e8dc 45%, #efe5d8 100%);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 42, 36, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 95%);
}

.site-header,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--bg-deep), #24453c);
  color: #f8f3ec;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-text strong {
  font-size: 1rem;
}

.brand-text span,
.site-nav a,
.lead,
.hero-card p,
.intro-text,
.stat-card p,
.focus-card p,
.text-block p,
.detail-item p,
.timeline-card p,
.project-card p,
.skill-card p,
.contact-text {
  color: var(--muted);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.site-nav a {
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.brand:hover,
.brand:focus-visible {
  opacity: 0.8;
}

main {
  padding-bottom: 42px;
}

.hero,
.panel,
.contact-strip {
  animation: rise 0.8s ease both;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  padding: 36px 0 24px;
}

.hero-copy,
.hero-card,
.panel,
.contact-strip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 30px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-copy,
.hero-card,
.panel {
  padding: 34px;
}

.hero-copy::after,
.hero-card::after,
.panel::after,
.contact-strip::after {
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 104, 60, 0.22), transparent 70%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-deep);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Fraunces", serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 7vw, 6.2rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
}

h3 {
  font-size: 1.4rem;
}

.lead {
  max-width: 58ch;
  margin: 22px 0 0;
  font-size: 1.05rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent), #e38d58);
  color: #fff8f2;
}

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

.hero-card {
  display: grid;
  align-content: start;
  gap: 12px;
  background:
    linear-gradient(160deg, rgba(19, 42, 36, 0.96), rgba(36, 69, 60, 0.9)),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  color: #f7f0e7;
}

.hero-card-label,
.hero-meta li {
  color: rgba(247, 240, 231, 0.75);
}

.hero-card p {
  color: rgba(247, 240, 231, 0.82);
  line-height: 1.7;
}

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

.panel {
  margin-top: 24px;
}

.section-heading {
  max-width: 56ch;
}

.section-heading h2 {
  margin-top: 6px;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 26px;
}

.intro-text,
.stat-card p,
.focus-card p,
.contact-strip p,
.text-block p,
.detail-item p,
.timeline-card p,
.project-card p,
.skill-card p {
  font-size: 1rem;
  line-height: 1.8;
}

.stat-grid,
.focus-grid {
  display: grid;
  gap: 16px;
}

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

.stat-card,
.focus-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.stat-card span {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.focus-grid {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 26px;
}

.split-grid,
.timeline-grid,
.project-grid,
.skill-grid,
.detail-list {
  display: grid;
  gap: 16px;
}

.split-grid {
  grid-template-columns: 1.15fr 0.85fr;
  margin-top: 26px;
}

.text-block {
  display: grid;
  gap: 18px;
}

.detail-item,
.timeline-card,
.project-card,
.skill-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.42);
}

.timeline-grid,
.project-grid,
.skill-grid {
  grid-template-columns: repeat(2, 1fr);
  margin-top: 26px;
}

.timeline-year {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-text {
  max-width: 44ch;
  margin-top: 12px;
}

.focus-card.accent {
  background: linear-gradient(160deg, rgba(212, 104, 60, 0.12), rgba(255, 255, 255, 0.55));
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 24px 0 10px;
  padding: 28px 34px;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 920px) {
  .hero,
  .intro-layout,
  .split-grid,
  .focus-grid,
  .stat-grid,
  .timeline-grid,
  .project-grid,
  .skill-grid {
    grid-template-columns: 1fr;
  }

  .contact-strip,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    max-width: 14ch;
  }
}

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

  .hero-copy,
  .hero-card,
  .panel,
  .contact-strip {
    padding: 24px;
    border-radius: 24px;
  }

  h1 {
    font-size: clamp(2.6rem, 15vw, 4rem);
  }

  h2 {
    font-size: clamp(1.8rem, 10vw, 2.5rem);
  }
}
