:root {
  --espresso: #1d1714;
  --espresso-2: #2c241f;
  --olive: #6c6a4e;
  --sage: #cdd3c0;
  --taupe: #b59f84;
  --linen: #efe5d6;
  --cream: #f8f3ea;
  --rose: #b77b6e;
  --ink: #222322;
  --muted: #6f655d;
  --line: rgba(29, 23, 20, .13);
  --white: #fffdf8;
  --shadow: 0 24px 70px rgba(29, 23, 20, .16);
  --soft-shadow: 0 16px 40px rgba(29, 23, 20, .09);
  --radius: 28px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-inline-size: 100%;
  block-size: auto;
  display: block;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: 104px 0;
  position: relative;
}

.section.compact {
  padding: 40px 0 80px;
}

.alt {
  background: linear-gradient(180deg, rgba(239, 229, 214, .68), rgba(248, 243, 234, .9));
}

.skip-link {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--espresso);
  color: var(--cream);
  padding: 10px 14px;
  border-radius: 999px;
  transform: translateY(-140%);
  z-index: 999;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(248, 243, 234, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(29, 23, 20, .06);
  background: rgba(248, 243, 234, .92);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: var(--cream);
  background: radial-gradient(circle at 32% 28%, var(--taupe), var(--espresso) 64%);
  box-shadow: 0 12px 24px rgba(29, 23, 20, .18);
  font-family: Georgia, serif;
  letter-spacing: .01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 999px;
  color: rgba(34, 35, 34, .75);
  font-size: .94rem;
  transition: color .2s ease, background .2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--espresso);
  background: rgba(181, 159, 132, .18);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, .72);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  background: var(--espresso);
  border-radius: 999px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero {
  min-height: calc(100svh - 76px);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 74px 0 88px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(183, 123, 110, .22), transparent 34%),
    radial-gradient(circle at 20% 18%, rgba(108, 106, 78, .17), transparent 30%),
    linear-gradient(135deg, var(--cream), #f2e6d6 58%, #f6efe4);
  z-index: -2;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 10% auto auto 50%;
  width: min(72vw, 700px);
  aspect-ratio: 1;
  border: 1px solid rgba(29, 23, 20, .08);
  border-radius: 50%;
  transform: translateX(-15%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(330px, .94fr);
  gap: 64px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--olive);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  font-weight: 800;
}

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

h1,
h2,
.type-display {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--espresso);
  line-height: 1.04;
  letter-spacing: -.055em;
}

h1 {
  font-size: clamp(3.25rem, 8vw, 6.9rem);
  max-width: 760px;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(2.2rem, 4.7vw, 4.55rem);
  margin-bottom: 24px;
}

h3 {
  color: var(--espresso);
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: -.02em;
  margin-bottom: 10px;
}

.hero-lead {
  max-width: 620px;
  color: rgba(34, 35, 34, .78);
  font-size: clamp(1.06rem, 2.2vw, 1.24rem);
  margin-bottom: 32px;
}

.hero-actions,
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn,
.chip {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn {
  padding: 13px 20px;
  min-height: 50px;
}

.btn:hover,
.chip:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--espresso);
  color: var(--cream);
  box-shadow: 0 18px 35px rgba(29, 23, 20, .18);
}

.btn.primary:hover {
  box-shadow: 0 24px 48px rgba(29, 23, 20, .24);
}

.btn.ghost,
.btn.secondary {
  color: var(--espresso);
  border: 1px solid rgba(29, 23, 20, .18);
  background: rgba(255, 253, 248, .6);
}

.btn.secondary {
  background: var(--linen);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-row span,
.skill-cloud span,
.resume-cert-grid span {
  display: inline-flex;
  border: 1px solid rgba(29, 23, 20, .12);
  background: rgba(255, 253, 248, .56);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(34, 35, 34, .72);
  font-size: .9rem;
}

.hero-media {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
}

.portrait-frame {
  width: min(430px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 12px;
  background: linear-gradient(135deg, rgba(255, 253, 248, .92), rgba(181, 159, 132, .35));
  border: 1px solid rgba(29, 23, 20, .1);
  box-shadow: var(--shadow);
  position: relative;
}

.portrait-frame::before,
.portrait-frame::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  z-index: -1;
}

.portrait-frame::before {
  inset: -34px;
  background: rgba(108, 106, 78, .09);
}

.portrait-frame::after {
  width: 74%;
  aspect-ratio: 1;
  right: -12%;
  bottom: -12%;
  background: rgba(183, 123, 110, .14);
}

.portrait-frame img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.floating-card {
  position: absolute;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(255, 253, 248, .82);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(29, 23, 20, .12);
  box-shadow: var(--soft-shadow);
}

.floating-card strong {
  color: var(--espresso);
}

.floating-card span {
  color: var(--muted);
  font-size: .88rem;
}

.card-one {
  left: 2%;
  bottom: 18%;
}

.card-two {
  right: 0;
  top: 18%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metrics article {
  background: rgba(255, 253, 248, .76);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 12px 34px rgba(29, 23, 20, .05);
}

.metric-number,
.metric-plus {
  color: var(--espresso);
  font-family: Georgia, serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.metrics p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: .94rem;
}

.split {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 54px;
}

.section-label {
  color: var(--olive);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  padding-top: 16px;
}

.section-body > p {
  max-width: 820px;
  color: rgba(34, 35, 34, .76);
  font-size: 1.06rem;
}

.quote-card,
.soft-card,
.service-card,
.credential-card,
.contact-panel,
.mood-tiles article,
.palette-grid article {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .72);
  box-shadow: var(--soft-shadow);
}

.quote-card {
  margin-top: 36px;
  padding: 30px;
  border-radius: var(--radius);
  max-width: 760px;
}

.quote-card span,
.soft-card span,
.credential-card span {
  color: var(--rose);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .76rem;
}

.quote-card p {
  font-family: Georgia, serif;
  color: var(--espresso);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -.035em;
  margin: 10px 0 0;
}

.section-head {
  max-width: 860px;
  margin-bottom: 42px;
}

.cards,
.credential-grid,
.community-grid {
  display: grid;
  gap: 18px;
}

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

.service-card,
.credential-card,
.soft-card {
  padding: 28px;
  border-radius: var(--radius);
  min-height: 100%;
}

.service-card p,
.credential-card p,
.soft-card p,
.timeline p,
.timeline li {
  color: rgba(34, 35, 34, .72);
}

.icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--espresso), var(--olive));
  color: var(--cream);
  font-weight: 900;
  font-size: 1.32rem;
  box-shadow: 0 16px 28px rgba(29, 23, 20, .14);
}

.timeline {
  display: grid;
  gap: 26px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 30px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, .68);
  box-shadow: var(--soft-shadow);
}

.timeline-date {
  color: var(--olive);
  font-weight: 900;
}

.muted {
  color: var(--muted);
}

.timeline ul,
.resume-item ul {
  padding-left: 1.1rem;
  margin-bottom: 0;
}

.filter-bar {
  margin: -10px 0 30px;
}

.chip {
  padding: 10px 15px;
  border: 1px solid rgba(29, 23, 20, .16);
  color: var(--espresso);
  background: rgba(255, 253, 248, .6);
}

.chip.active {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}

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

.credential-card {
  transition: transform .22s ease, opacity .22s ease;
}

.credential-card.is-hidden {
  opacity: 0;
  transform: scale(.97);
  display: none;
}

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

.contact-section {
  color: var(--cream);
  background:
    radial-gradient(circle at 15% 30%, rgba(183, 123, 110, .22), transparent 30%),
    linear-gradient(135deg, var(--espresso), #2c241f 70%, #181210);
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 44px;
  align-items: center;
}

.contact-note {
  max-width: 600px;
  color: rgba(248, 243, 234, .74);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 26px;
  border-radius: var(--radius);
  background: rgba(255, 253, 248, .08);
  border-color: rgba(255, 253, 248, .16);
}

.contact-panel a,
.contact-panel span {
  padding: 14px 16px;
  border: 1px solid rgba(255, 253, 248, .16);
  border-radius: 18px;
  color: var(--cream);
}

.footer {
  padding: 26px 0;
  background: var(--espresso);
  color: rgba(248, 243, 234, .78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.delay-1 {
  transition-delay: .08s;
}

.delay-2 {
  transition-delay: .16s;
}

.delay-3 {
  transition-delay: .24s;
}

.resume-body,
.moodboard-body {
  background: linear-gradient(135deg, var(--cream), var(--linen));
}

.resume-top {
  width: min(1000px, calc(100% - 40px));
  margin: 28px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.resume-page,
.moodboard-page {
  width: min(1000px, calc(100% - 40px));
  margin: 0 auto 60px;
  background: rgba(255, 253, 248, .9);
  border: 1px solid var(--line);
  border-radius: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.resume-hero {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 28px;
  align-items: center;
  padding: 42px;
  background:
    radial-gradient(circle at 86% 16%, rgba(183, 123, 110, .22), transparent 34%),
    linear-gradient(135deg, var(--cream), var(--linen));
}

.resume-hero h1 {
  font-size: clamp(3rem, 8vw, 5.6rem);
  margin-bottom: 18px;
}

.resume-hero img {
  border-radius: 50%;
  box-shadow: 0 18px 36px rgba(29, 23, 20, .16);
}

.resume-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 22px 42px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.resume-contact span,
.resume-contact a {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line);
  color: rgba(34, 35, 34, .76);
  font-size: .92rem;
}

.resume-section {
  padding: 34px 42px;
  border-bottom: 1px solid var(--line);
}

.resume-section:last-child {
  border-bottom: 0;
}

.resume-section h2 {
  font-size: 2rem;
  margin-bottom: 18px;
}

.resume-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  margin-bottom: 28px;
}

.resume-item:last-child {
  margin-bottom: 0;
}

.resume-item > span {
  color: var(--olive);
  font-weight: 900;
}

.resume-item h3,
.resume-mini h3 {
  margin-bottom: 4px;
}

.resume-item p,
.resume-mini p {
  color: var(--muted);
  margin-bottom: 10px;
}

.two-col-resume {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
}

.skill-cloud,
.resume-cert-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.resume-cert-grid span {
  border-radius: 16px;
}

.moodboard-page {
  padding: 42px;
}

.mood-hero {
  display: grid;
  gap: 22px;
  margin-bottom: 34px;
}

.mood-hero h1 {
  max-width: 760px;
}

.mood-hero p {
  max-width: 680px;
  color: var(--muted);
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.palette-grid article {
  border-radius: 22px;
  min-height: 180px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  padding: 16px;
  overflow: hidden;
  position: relative;
}

.palette-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 42%;
  background: var(--swatch);
}

.palette-grid span,
.palette-grid strong {
  position: relative;
  z-index: 1;
}

.palette-grid span {
  color: var(--muted);
}

.palette-grid strong {
  color: var(--espresso);
}

.mood-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mood-tiles article {
  border-radius: 28px;
  padding: 26px;
}

.type-display {
  font-size: clamp(2rem, 4vw, 3.1rem);
  margin-bottom: 16px;
}

.shape-row {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 140px;
}

.shape-row span {
  display: block;
  background: linear-gradient(135deg, var(--taupe), var(--espresso));
}

.shape-row span:nth-child(1) {
  width: 90px;
  height: 90px;
  border-radius: 50%;
}

.shape-row span:nth-child(2) {
  width: 90px;
  height: 120px;
  border-radius: 30px;
}

.shape-row span:nth-child(3) {
  width: 84px;
  height: 84px;
  border-radius: 28px;
  transform: rotate(12deg);
}

.mood-tiles img {
  width: 160px;
  border-radius: 50%;
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .contact-grid,
  .resume-hero {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 440px;
  }

  .metrics,
  .service-grid,
  .credential-grid,
  .palette-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    align-items: start;
  }

  .contact-panel {
    max-width: 520px;
  }

  .mood-tiles,
  .two-col-resume {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap,
  .resume-top,
  .resume-page,
  .moodboard-page {
    width: min(100% - 28px, var(--max));
  }

  .section {
    padding: 78px 0;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 80;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    background: rgba(29, 23, 20, .96);
    color: var(--cream);
    display: grid;
    place-content: center;
    gap: 18px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform .28s ease, opacity .28s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    color: var(--cream);
    font-size: 1.4rem;
    text-align: center;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .hero-grid {
    gap: 32px;
  }

  h1 {
    font-size: clamp(2.85rem, 15vw, 4.8rem);
  }

  h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .hero-media {
    min-height: 370px;
  }

  .floating-card {
    position: static;
    margin-top: 12px;
    width: min(88vw, 360px);
    justify-self: center;
  }

  .portrait-frame {
    width: min(330px, 82vw);
  }

  .metrics,
  .service-grid,
  .credential-grid,
  .community-grid,
  .palette-grid {
    grid-template-columns: 1fr;
  }

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

  .resume-top {
    flex-direction: column;
    align-items: stretch;
  }

  .resume-hero,
  .resume-section,
  .resume-contact,
  .moodboard-page {
    padding: 28px;
  }

  .resume-hero picture {
    width: 170px;
  }

  .resume-item {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  body {
    background: white;
  }

  .resume-top {
    display: none;
  }

  .resume-page {
    width: 100%;
    margin: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
  }

  .resume-hero,
  .resume-section,
  .resume-contact {
    padding: 20px 26px;
  }

  .resume-hero {
    grid-template-columns: 1fr 120px;
  }

  .resume-hero h1 {
    font-size: 3rem;
  }

  .resume-section h2 {
    font-size: 1.4rem;
  }

  a {
    text-decoration: none;
  }
}
