:root {
  --ink: #172126;
  --ink-soft: #253239;
  --paper: #f6f2e9;
  --paper-deep: #ece3d5;
  --white: #fffdf9;
  --clay: #b95f43;
  --clay-dark: #93472f;
  --gold: #d7a64a;
  --gold-soft: #f1dfb7;
  --green: #456552;
  --line: rgba(23, 33, 38, 0.16);
  --muted: rgba(23, 33, 38, 0.68);
  --shadow: 0 28px 80px rgba(23, 33, 38, 0.16);
  --content: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body.nav-open {
  overflow: hidden;
}

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

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

button {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
blockquote {
  text-wrap: pretty;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -80px;
  left: 16px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  font-weight: 750;
  transition: top 160ms ease;
}

.skip-link:focus {
  top: 14px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: grid;
  grid-template-columns: minmax(250px, 1fr) auto auto;
  align-items: center;
  gap: 32px;
  min-height: 78px;
  padding: 10px clamp(22px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(23, 33, 38, 0.96);
  color: var(--white);
  backdrop-filter: blur(14px);
}

.personal-brand,
.footer-identity {
  display: flex;
  align-items: center;
  gap: 13px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  background: var(--gold);
  color: var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.personal-brand > span:last-child {
  display: grid;
  line-height: 1.15;
}

.personal-brand strong {
  font-size: 0.96rem;
}

.personal-brand small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 0.72rem;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 25px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 680;
}

.desktop-nav a:hover {
  color: var(--gold-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  content: "";
  transition: transform 160ms ease, opacity 160ms ease;
}

.nav-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  z-index: 90;
  inset: 78px 0 auto;
  display: none;
  padding: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 24px 60px rgba(23, 33, 38, 0.32);
}

.mobile-nav.is-open {
  display: grid;
  gap: 8px;
}

.mobile-nav a {
  padding: 13px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-weight: 680;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--white);
  font-weight: 760;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: var(--clay);
  background: var(--clay);
}

.button-small {
  min-height: 42px;
  padding: 9px 17px;
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
  font-size: 0.84rem;
}

.button-small:hover {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--ink);
}

.button-outline {
  background: transparent;
  color: var(--ink);
}

.button-outline:hover {
  color: var(--white);
}

.button-light {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button-light:hover {
  border-color: var(--gold-soft);
  background: var(--gold-soft);
  color: var(--ink);
}

.button-ghost-light {
  border-color: rgba(255, 255, 255, 0.54);
  background: transparent;
  color: var(--white);
}

.button-ghost-light:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow-light {
  color: var(--gold-soft);
}

.personal-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.72fr);
  gap: clamp(54px, 8vw, 116px);
  min-height: calc(100vh - 78px);
  align-items: center;
  overflow: hidden;
  padding: clamp(78px, 9vw, 132px) clamp(24px, 7vw, 120px);
  background:
    radial-gradient(circle at 85% 10%, rgba(215, 166, 74, 0.24), transparent 25%),
    linear-gradient(135deg, #faf7f0 0%, #f1e9dc 62%, #e5d7c3 100%);
}

.personal-hero::after {
  position: absolute;
  right: -110px;
  bottom: -130px;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(23, 33, 38, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(255, 255, 255, 0.15), 0 0 0 124px rgba(255, 255, 255, 0.09);
  content: "";
}

.hero-copy,
.portrait-wrap {
  position: relative;
  z-index: 1;
}

.personal-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3.3rem, 6.4vw, 6.6rem);
  line-height: 0.95;
  letter-spacing: -0.064em;
}

.personal-hero h1 span {
  display: block;
  margin-top: 12px;
  color: var(--clay);
}

.hero-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 54px 0 0;
  background: var(--line);
}

.hero-facts div {
  padding: 20px;
  background: rgba(255, 253, 249, 0.7);
}

.hero-facts dt {
  color: var(--clay);
  font-size: 1.35rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.hero-facts dd {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.portrait-wrap {
  width: min(470px, 100%);
  margin-inline: auto;
}

.portrait {
  position: relative;
}

.portrait::before {
  position: absolute;
  inset: 22px -20px -20px 22px;
  background: var(--gold);
  content: "";
}

.portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.86) contrast(1.04);
}

.portrait-note {
  position: relative;
  z-index: 2;
  display: grid;
  width: calc(100% - 36px);
  margin: -34px 0 0 18px;
  padding: 18px 20px;
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow);
}

.portrait-note span {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
}

.section {
  padding: clamp(82px, 10vw, 148px) clamp(24px, 7vw, 120px);
  scroll-margin-top: 76px;
}

.section-white {
  background: var(--white);
}

.section-paper {
  background: var(--paper);
}

.section-deep {
  background: var(--paper-deep);
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.text-muted {
  color: rgba(255, 255, 255, 0.64) !important;
}

.section-heading {
  max-width: 920px;
}

.section-heading h2,
.story-grid h2,
.cta h2 {
  margin: 0;
  font-size: clamp(2.35rem, 4.6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

.section-heading > p:last-child {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.story-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(48px, 8vw, 120px);
}

.story-copy p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.values-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 34px;
}

.values-list div {
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-weight: 720;
}

.process-layout {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: clamp(52px, 8vw, 120px);
  align-items: start;
}

.process-layout .section-heading {
  position: sticky;
  top: 118px;
}

.process-list {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list article {
  display: grid;
  grid-template-columns: 72px 0.78fr 1.22fr;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.process-list span {
  color: var(--gold);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 800;
}

.process-list h3 {
  margin: 0;
  font-size: 1.65rem;
  letter-spacing: -0.035em;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.63);
}

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

.project-card {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: clamp(28px, 4vw, 42px);
  border: 1px solid var(--line);
  background: var(--white);
}

.project-card-featured {
  grid-row: span 2;
  min-height: 798px;
  background:
    linear-gradient(rgba(255, 253, 249, 0.91), rgba(255, 253, 249, 0.96)),
    radial-gradient(circle at 80% 15%, rgba(69, 101, 82, 0.34), transparent 32%);
}

.project-card-accent {
  background: var(--clay);
  color: var(--white);
}

.project-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-meta strong {
  color: var(--green);
}

.project-card-accent .project-meta,
.project-card-accent .project-meta strong {
  color: var(--gold-soft);
}

.project-card h3 {
  margin: auto 0 16px;
  padding-top: 62px;
  font-size: clamp(2rem, 3.6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.project-card p {
  margin: 0;
  color: var(--muted);
}

.project-card-accent p {
  color: rgba(255, 255, 255, 0.76);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size: 0.72rem;
  font-weight: 700;
}

.project-card-accent .tag-list li {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.09);
}

.text-link {
  align-self: flex-start;
  margin-top: 30px;
  border-bottom: 1px solid currentColor;
  font-weight: 760;
}

.section-actions {
  margin-top: 36px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  background: var(--line);
}

.skills-grid article {
  min-height: 310px;
  padding: 30px;
  background: var(--paper);
}

.card-number {
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.skills-grid h3 {
  margin: 82px 0 14px;
  font-size: 1.65rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.skills-grid p {
  margin: 0;
  color: var(--muted);
}

.career-layout {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 8vw, 118px);
  align-items: start;
}

.career-list {
  border-top: 1px solid var(--line);
}

.career-list details {
  border-bottom: 1px solid var(--line);
}

.career-list summary {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 26px 54px 26px 0;
  cursor: pointer;
  list-style: none;
}

.career-list summary::-webkit-details-marker {
  display: none;
}

.career-list summary::after {
  position: absolute;
  right: 2px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  content: "+";
  transition: transform 160ms ease;
}

.career-list details[open] summary::after {
  transform: rotate(45deg);
}

.career-list summary span {
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 800;
}

.career-list summary strong {
  font-size: 1.24rem;
  letter-spacing: -0.025em;
}

.career-list details p {
  max-width: 760px;
  margin: -4px 0 26px 152px;
  color: var(--muted);
}

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

.qualification-grid article {
  display: flex;
  min-height: 320px;
  flex-direction: column;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid var(--line);
  background: var(--paper);
}

.qualification-date {
  margin: 0;
  color: var(--clay);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 800;
}

.qualification-grid h3 {
  margin: 44px 0 7px;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.qualification-grid article > p:nth-of-type(2) {
  margin: 0;
  color: var(--muted);
}

.qualification-grid strong {
  margin-top: auto;
  padding-top: 34px;
  color: var(--green);
  font-size: 1.04rem;
}

.qualification-grid span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.document-note {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 24px;
  max-width: 980px;
  align-items: center;
  margin-top: 28px;
  padding: 26px 28px;
  border-left: 4px solid var(--gold);
  background: var(--ink);
  color: var(--white);
}

.document-note > div {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--gold);
  font-weight: 900;
}

.document-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
}

.document-note strong {
  color: var(--white);
}

.personal-quote {
  padding: clamp(86px, 11vw, 160px) clamp(24px, 12vw, 200px);
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.personal-quote blockquote {
  max-width: 1080px;
  margin: 0 auto;
  font-size: clamp(2.2rem, 4.2vw, 4.5rem);
  font-weight: 760;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.personal-quote > p:last-child {
  max-width: 680px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.67);
}

.cta {
  padding: clamp(90px, 11vw, 166px) clamp(24px, 13vw, 220px);
  background: var(--clay);
  color: var(--white);
  text-align: center;
}

.cta h2 {
  max-width: 980px;
  margin-inline: auto;
}

.cta > p:not(.eyebrow) {
  max-width: 720px;
  margin: 26px auto 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.cta-actions {
  justify-content: center;
}

.site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 58px;
  padding: 54px clamp(24px, 7vw, 120px);
  background: var(--ink);
  color: var(--white);
}

.footer-identity > div {
  display: grid;
}

.footer-identity p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.53);
  font-size: 0.88rem;
}

.footer-contact,
.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  font-size: 0.88rem;
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.55);
}

.footer-contact a,
.footer-links a {
  color: rgba(255, 255, 255, 0.76);
}

.footer-contact a:hover,
.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.76rem;
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .desktop-nav,
  .site-header > .button {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .process-layout,
  .career-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .process-layout .section-heading {
    position: static;
  }

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

@media (max-width: 820px) {
  .personal-hero,
  .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .portrait-wrap {
    width: min(520px, 100%);
  }

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

  .project-card-featured {
    grid-row: auto;
    min-height: 520px;
  }

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

  .site-footer {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-meta {
    grid-column: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 70px;
    padding-inline: 16px;
  }

  .personal-brand small {
    display: none;
  }

  .mobile-nav {
    inset-block-start: 70px;
  }

  .personal-hero,
  .section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .personal-hero h1 {
    font-size: clamp(3rem, 15vw, 4.7rem);
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button,
  .cta-actions .button {
    width: 100%;
  }

  .hero-facts,
  .values-list,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .process-list article {
    grid-template-columns: 48px 1fr;
  }

  .process-list p {
    grid-column: 2;
  }

  .career-list summary {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .career-list details p {
    margin-left: 0;
  }

  .document-note {
    grid-template-columns: 1fr;
  }
}

@media print {
  .site-header,
  .mobile-nav,
  .hero-actions,
  .section-actions,
  .cta,
  .site-footer {
    display: none !important;
  }

  .personal-hero,
  .section,
  .personal-quote {
    min-height: 0;
    padding: 28px;
    break-inside: avoid;
  }

  .personal-hero::after,
  .portrait::before {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
