:root {
  --bg: #f3efe7;
  --panel: rgba(255, 252, 247, 0.82);
  --panel-strong: #fffaf2;
  --text: #122033;
  --muted: #5c6879;
  --line: rgba(18, 32, 51, 0.12);
  --accent: #c76b3a;
  --accent-dark: #9c4420;
  --accent-soft: #f7d9c9;
  --shadow: 0 24px 60px rgba(50, 33, 18, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes floatOrb1 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(20px, -30px); }
  66% { transform: translate(-15px, 15px); }
}

@keyframes floatOrb2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(-25px, 20px); }
  66% { transform: translate(15px, -20px); }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Trebuchet MS", "Gill Sans", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(199, 107, 58, 0.2), transparent 30%),
    radial-gradient(circle at 90% 10%, rgba(18, 32, 51, 0.08), transparent 24%),
    linear-gradient(160deg, #f7f0e7 0%, #efe7db 45%, #f8f4ef 100%);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.background-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  opacity: 0.5;
  transition: opacity 0.5s ease;
}

.orb-one {
  width: 240px;
  height: 240px;
  right: -70px;
  top: 120px;
  background: rgba(199, 107, 58, 0.15);
  animation: floatOrb1 8s ease-in-out infinite;
}

.orb-two {
  width: 180px;
  height: 180px;
  left: -40px;
  bottom: 120px;
  background: rgba(18, 32, 51, 0.1);
  animation: floatOrb2 10s ease-in-out infinite;
}

.site-header,
.page-shell,
.site-footer {
  width: min(1140px, calc(100% - 32px));
  margin: 0 auto;
}

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

.eyebrow,
.section-label,
.project-tag {
  margin: 0;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent-dark);
  font-weight: 700;
}

.site-header h1 {
  margin: 8px 0 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.95;
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-weight: 700;
  transition: var(--transition);
}

.top-nav a:hover {
  color: var(--accent-dark);
}

.top-nav a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.page-shell {
  display: grid;
  gap: 22px;
  padding: 14px 0 30px;
}

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

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 28px 70px rgba(50, 33, 18, 0.16);
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.95fr;
  gap: 28px;
  padding: 30px;
  overflow: hidden;
}

.hero h2,
.section-card h3 {
  margin: 12px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2.45rem);
  line-height: 1.08;
}

.hero-text,
.section-card p,
.detail-list,
.contact-section p,
.project-card p,
.timeline-item p,
.timeline-item span,
.contact-grid span,
.quick-facts dd {
  color: var(--muted);
  line-height: 1.65;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.button:hover,
.top-nav a:hover {
  transform: translateY(-2px);
}

.button:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.secondary {
  border: 1px solid rgba(18, 32, 51, 0.15);
  background: rgba(255, 255, 255, 0.4);
}

.hero-panel {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255, 250, 242, 0.95), rgba(248, 239, 228, 0.88));
  border-radius: 24px;
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.profile-badge {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 24px;
  font-size: 1.8rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), #d98a54);
  box-shadow: 0 14px 30px rgba(199, 107, 58, 0.24);
}

.quick-facts {
  margin: 0;
  display: grid;
  gap: 14px;
}

.quick-facts div {
  padding-top: 14px;
  border-top: 1px solid rgba(18, 32, 51, 0.08);
}

.quick-facts dt,
.timeline-item h4,
.project-card h4,
.section-card h4 {
  margin: 0 0 5px;
  font-size: 1rem;
  color: var(--text);
}

.quick-facts dd,
.timeline-item p,
.timeline-item span {
  margin: 0;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.section-card {
  padding: 26px;
}

.section-card > h3 {
  margin-bottom: 14px;
}

.timeline-item + .timeline-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(18, 32, 51, 0.08);
}

.skill-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
}

.skill-groups h4,
.subheading {
  margin: 0 0 10px;
  font-size: 1rem;
}

.pill-list,
.detail-list {
  margin: 0;
  padding-left: 18px;
}

.pill-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill-list li,
.chip-row span {
  border-radius: 999px;
  border: 1px solid rgba(18, 32, 51, 0.12);
  background: rgba(255, 255, 255, 0.58);
}

.pill-list li {
  padding: 9px 13px;
  font-size: 0.95rem;
}

.detail-list {
  margin-top: 12px;
}

.detail-list.compact {
  margin-top: 10px;
}

.detail-list li + li {
  margin-top: 8px;
}

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

.project-card {
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(252, 247, 239, 0.9));
  border: 1px solid rgba(18, 32, 51, 0.08);
  transition: var(--transition);
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(50, 33, 18, 0.12);
}

.project-tag {
  margin-bottom: 10px;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip-row span {
  padding: 7px 11px;
  font-size: 0.88rem;
  color: var(--text);
}

.contact-section {
  display: grid;
  gap: 12px;
}

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

.contact-grid a,
.contact-grid span {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.contact-grid a:hover {
  background: rgba(255, 255, 255, 0.8);
  border-color: rgba(18, 32, 51, 0.2);
  transform: translateY(-2px);
}

.site-footer {
  padding: 0 0 26px;
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .two-up,
  .project-grid,
  .skill-groups,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .top-nav {
    justify-content: flex-start;
  }

  .hero {
    padding: 22px;
  }
}

@media (max-width: 640px) {
  .site-header,
  .page-shell,
  .site-footer {
    width: min(100% - 20px, 1140px);
  }

  .card,
  .section-card,
  .hero {
    border-radius: 22px;
  }

  .section-card,
  .hero {
    padding: 18px;
  }

  .hero h2,
  .section-card h3 {
    font-size: 1.55rem;
  }
}
