:root {
  --bg: #e9e1d5;
  --bg-soft: #f6f1e8;
  --surface: rgba(249, 245, 238, 0.86);
  --surface-strong: rgba(255, 252, 247, 0.94);
  --ink: #182326;
  --muted: #5b686a;
  --line: rgba(24, 35, 38, 0.12);
  --line-strong: rgba(24, 35, 38, 0.2);
  --dark: #14262b;
  --dark-soft: #20383f;
  --accent: #ba7b39;
  --accent-soft: rgba(186, 123, 57, 0.15);
  --shadow-soft: 0 20px 45px rgba(22, 31, 33, 0.08);
  --shadow-strong: 0 28px 60px rgba(16, 23, 25, 0.16);
  --shadow-lift: 0 30px 70px rgba(16, 23, 25, 0.14);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1220px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 0%, rgba(186, 123, 57, 0.14), transparent 20%),
    radial-gradient(circle at 90% 14%, rgba(20, 38, 43, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(20, 38, 43, 0.08), transparent 22rem),
    linear-gradient(180deg, #eee6db 0%, #e8dfd2 46%, #f5efe6 100%);
  font-family: "Manrope", "Segoe UI", sans-serif;
  line-height: 1.65;
}

body::before {
  content: none;
}

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

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

p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

.page-shell {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 22px;
  background: rgba(248, 243, 236, 0.72);
  backdrop-filter: blur(16px);
  box-shadow: 0 12px 32px rgba(24, 35, 38, 0.08);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease;
}

.site-header:hover {
  border-color: rgba(20, 38, 43, 0.12);
  background: rgba(250, 246, 239, 0.84);
  box-shadow: 0 16px 42px rgba(24, 35, 38, 0.1);
}

.brand {
  display: grid;
  gap: 0.12rem;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--dark);
}

.brand-role {
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-nav a {
  position: relative;
  padding-bottom: 0.2rem;
  transition: color 180ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.12rem;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--dark);
}

.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

main {
  padding-top: 1.7rem;
}

.section,
.hero {
  scroll-margin-top: 7rem;
}

.section {
  padding: 3.4rem 0 0.35rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(220px, 0.52fr);
  gap: 2rem;
  align-items: start;
  padding-top: 2.25rem;
}

.panel-dark,
.panel-light,
.aside-card,
.work-card,
.timeline-card,
.strength-card,
.contact-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.panel-dark {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  padding: clamp(2rem, 4.2vw, 3rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 84% 18%, rgba(186, 123, 57, 0.18), transparent 20%),
    linear-gradient(160deg, #16292f 0%, #1d3940 58%, #27454d 100%);
  color: #f6f2eb;
  box-shadow: var(--shadow-strong);
}

.panel-dark > * {
  position: relative;
  z-index: 1;
}

.panel-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 4.8rem 4.8rem;
  mask-image: linear-gradient(120deg, rgba(0, 0, 0, 0.48), transparent 68%);
}

.panel-dark::after {
  content: "";
  position: absolute;
  inset: auto -5rem -7rem auto;
  width: 16rem;
  height: 16rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 65%);
}

.panel-light {
  display: grid;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 241, 232, 0.98)),
    var(--surface);
}

.hero-portrait {
  width: 100%;
  max-width: 23rem;
  justify-self: end;
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: -0.2rem 0 1.1rem;
}

.status-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(246, 242, 235, 0.78);
  font-size: 0.82rem;
  font-weight: 700;
}

.eyebrow {
  margin-bottom: 0.85rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
}

h1 {
  max-width: 13.5ch;
  font-size: clamp(2.45rem, 4.35vw, 4.05rem);
  line-height: 0.94;
  overflow-wrap: normal;
  word-break: normal;
}

h1 span {
  display: block;
  margin-top: 0.7rem;
  max-width: 21ch;
  color: rgba(246, 242, 235, 0.78);
  font-size: 0.42em;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 62ch;
  margin-top: 1.25rem;
  color: rgba(246, 242, 235, 0.92);
  font-size: 1.02rem;
}

.hero-detail {
  max-width: 58ch;
  margin-top: 0.9rem;
  color: rgba(246, 242, 235, 0.78);
  font-size: 0.97rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0.82rem 1.3rem;
  border-radius: 16px;
  border: 1px solid transparent;
  font-weight: 700;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}

.button:focus-visible,
.site-nav a:focus-visible {
  outline: 3px solid rgba(186, 123, 57, 0.34);
  outline-offset: 3px;
}

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

.button-primary {
  background: #f5f0e9;
  color: var(--dark);
  box-shadow: 0 14px 28px rgba(16, 23, 25, 0.18);
}

.button-primary:hover {
  box-shadow: 0 18px 34px rgba(16, 23, 25, 0.24);
}

.button-secondary {
  border-color: rgba(245, 240, 233, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #f5f0e9;
}

.button-secondary:hover {
  border-color: rgba(245, 240, 233, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.light-outline {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 2rem;
}

.detail-card {
  display: grid;
  gap: 0.22rem;
  min-height: 4.45rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.detail-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 240, 233, 0.54);
}

.detail-card strong {
  font-size: 0.96rem;
  color: #f7f3ec;
}

.hero-skill-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.hero-skill-strip span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.64rem;
  border-radius: 12px;
  background: rgba(186, 123, 57, 0.13);
  color: rgba(246, 242, 235, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.portrait-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 0.6rem);
  background:
    linear-gradient(180deg, rgba(20, 38, 43, 0.04), transparent),
    #7b7773;
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 4.35;
  object-fit: cover;
  object-position: center 42%;
}

.portrait-copy {
  display: grid;
  gap: 0.7rem;
  padding: 0.1rem 0.35rem 0.1rem;
}

.portrait-label,
.card-kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.portrait-quote {
  color: var(--ink);
  font-family: "Newsreader", Georgia, serif;
  font-size: 1.18rem;
  line-height: 1.22;
}

.portrait-list {
  display: grid;
  gap: 0.55rem;
}

.portrait-list li {
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.89rem;
}

.portrait-note {
  display: grid;
  gap: 0.45rem;
  padding-top: 0.2rem;
}

.portrait-note span {
  display: inline-flex;
  width: fit-content;
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: rgba(186, 123, 57, 0.11);
  border: 1px solid rgba(186, 123, 57, 0.16);
  color: #5b4024;
  font-size: 0.8rem;
  font-weight: 800;
}

.section-heading {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.65rem;
}

h2 {
  max-width: 14ch;
  font-size: clamp(2.05rem, 3.5vw, 3rem);
  line-height: 1.02;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.profile-copy {
  display: grid;
  gap: 1rem;
  padding: 0.35rem 0.15rem;
  color: #223032;
  font-size: 1.03rem;
}

.profile-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.profile-proof article {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(249, 245, 238, 0.92)),
    var(--surface);
}

.profile-proof span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.profile-proof strong {
  color: var(--dark);
  line-height: 1.22;
}

.profile-proof p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.profile-aside {
  display: grid;
  gap: 1rem;
}

.aside-card,
.work-card,
.timeline-card,
.strength-card {
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: var(--surface-strong);
}

.aside-card,
.work-card,
.strength-card {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.aside-card:hover,
.work-card:hover,
.strength-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-lift);
}

.aside-card h3,
.work-card h3,
.timeline-card h3,
.strength-card h3 {
  margin-bottom: 0.55rem;
  font-size: 1.34rem;
}

.aside-card p,
.work-card p,
.timeline-card p,
.strength-card p,
.contact-card p {
  color: var(--muted);
}

.accent-card {
  background:
    linear-gradient(135deg, rgba(186, 123, 57, 0.12), rgba(255, 255, 255, 0.94)),
    var(--surface-strong);
}

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

.work-card {
  display: grid;
  gap: 0.9rem;
}

.featured-card {
  grid-column: 1 / -1;
  background:
    linear-gradient(180deg, rgba(20, 38, 43, 0.04), rgba(255, 255, 255, 0.98)),
    var(--surface-strong);
}

.work-card:not(.featured-card):not(.compact-card) {
  grid-column: auto;
}

.compact-card {
  grid-column: 1 / -1;
  grid-template-columns: 1fr;
}

.work-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(186, 123, 57, 0.18);
  color: #5b4024;
  font-size: 0.83rem;
  font-weight: 700;
}

.work-card ul {
  display: grid;
  gap: 0.55rem;
}

.work-card li {
  position: relative;
  padding-left: 1rem;
  color: #273538;
}

.work-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72rem;
  width: 0.36rem;
  height: 0.36rem;
  border-radius: 50%;
  background: var(--accent);
}

.work-result {
  margin-top: 0.2rem;
  padding: 0.8rem 0.9rem;
  border-radius: 16px;
  background: rgba(20, 38, 43, 0.055);
  border: 1px solid rgba(20, 38, 43, 0.07);
  color: #334044;
  font-size: 0.92rem;
  font-weight: 700;
}

.experience-layout {
  display: grid;
  grid-template-columns: minmax(290px, 0.82fr) minmax(0, 1.18fr);
  gap: 1rem;
}

.timeline-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.timeline-item {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 0.9rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--line);
}

.timeline-item:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.timeline-item.current-item {
  margin: -0.25rem -0.25rem 0;
  padding: 1rem 0.25rem 1.05rem;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(186, 123, 57, 0.14), rgba(255, 255, 255, 0.54) 72%),
    rgba(186, 123, 57, 0.06);
}

.timeline-date {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

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

.strength-card {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 100%;
}

.strength-card h3 {
  margin-bottom: 0;
}

.strength-label {
  align-self: end;
  width: fit-content;
  margin-top: 0.2rem;
  padding: 0.34rem 0.62rem;
  border-radius: 999px;
  background: rgba(20, 38, 43, 0.07);
  color: var(--dark-soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.contact-section {
  padding-bottom: 2rem;
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.8rem;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 85% 20%, rgba(186, 123, 57, 0.28), transparent 18%),
    linear-gradient(145deg, #13242a 0%, #1f3941 100%);
  color: #f4efe8;
  box-shadow: var(--shadow-strong);
}

.contact-copy h2 {
  max-width: 16ch;
}

.contact-copy p:last-child {
  max-width: 54ch;
  margin-top: 1rem;
  color: rgba(244, 239, 232, 0.78);
}

.contact-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.contact-mini span {
  display: inline-flex;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(244, 239, 232, 0.82);
  font-size: 0.82rem;
  font-weight: 800;
}

.section-observed {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  .hero,
  .profile-layout,
  .experience-layout,
  .contact-card {
    grid-template-columns: 1fr;
  }

  .hero-portrait {
    max-width: 28rem;
    justify-self: center;
  }

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

  .profile-proof {
    grid-template-columns: 1fr;
  }

  .detail-card:last-child {
    grid-column: 1 / -1;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .featured-card,
  .work-card:not(.featured-card):not(.compact-card),
  .compact-card {
    grid-column: auto;
  }

  .contact-actions {
    margin-top: 0;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(calc(100% - 1rem), var(--max-width));
  }

  .site-header {
    top: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }

  .site-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .site-nav a {
    text-align: center;
    font-size: 0.88rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

  h1 {
    max-width: 12.2ch;
    font-size: clamp(2.1rem, 8.6vw, 2.85rem);
  }

  h1 span {
    max-width: 19ch;
    font-size: 0.44em;
  }

  .hero-portrait {
    max-width: none;
  }

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

  h2 {
    max-width: none;
  }

  .hero-detail-grid,
  .strengths-grid {
    grid-template-columns: 1fr;
  }

  .status-strip,
  .hero-skill-strip {
    gap: 0.42rem;
  }

  .status-strip span,
  .hero-skill-strip span {
    font-size: 0.78rem;
  }

  .detail-card:last-child {
    grid-column: auto;
  }

  .featured-card,
  .work-card:not(.featured-card):not(.compact-card),
  .compact-card {
    grid-column: span 12;
  }

  .compact-card {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button,
  .site-nav a,
  .section-observed {
    transition: none;
  }
}
