:root {
  --background: hsl(42 40% 97%);
  --foreground: #000000;
  --card: #ffffff;
  --muted-surface: hsl(40 20% 94%);
  --muted: hsl(20 10% 40%);
  --primary: #a44f1e;
  --primary-soft: rgb(164 79 30 / 10%);
  --border: hsl(35 18% 88%);
  --container: 1150px;
  --content: 1086px;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--foreground); font: 400 16px/24px var(--sans); text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.shell { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 32px; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: 10px; padding: 9px 13px; background: #000; color: #fff; transform: translateY(-160%); }
.skip-link:focus { transform: none; }

.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: 72px; background: transparent; transition: background .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgb(250 248 244 / 92%); backdrop-filter: blur(14px); border-color: rgb(222 216 212 / 55%); }
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; }
.wordmark { color: #000; font: 400 20px/1 var(--serif); text-decoration: none; white-space: nowrap; letter-spacing: -.02em; }
.wordmark span { color: var(--primary); font-style: italic; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: #000; font-size: 14px; line-height: 20px; text-decoration: none; padding-block: 4px; position: relative; }
.nav-links a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: var(--primary); transition: right .2s ease; }
.nav-links a:hover::after, .nav-links a.active::after { right: 0; }
.nav-cta { border: 0; padding-inline: 0; }
.menu-button { display: none; border: 1px solid #000; background: transparent; color: #000; padding: 8px 12px; }

.hero { min-height: 100vh; padding-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) 205.265px; grid-template-rows: auto auto; column-gap: 64px; align-content: center; position: relative; overflow: hidden; }
.hero-copy { min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.eyebrow { display: none; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -.025em; }
h1 { color: #000; font-size: 72px; line-height: 1.1; letter-spacing: -1.8px; }
h1 > span { display: block; }
h1 em, .section-heading h2 em { color: var(--primary); font-weight: 400; font-style: italic; }
.hero-description { box-sizing: border-box; width: 538px; max-width: 100%; min-height: 162.5px; margin: 0; padding: 0 0 0 24px; border-left: 2px solid rgb(164 79 30 / 40%); color: #000; font-size: 20px; line-height: 32.5px; }
.hero-actions { display: flex; align-items: center; gap: 16px; padding-top: 8px; }
.text-link, .button-link { height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding-inline: 28px; color: #000; font-size: 14.4px; line-height: 21.6px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.text-link span { margin-left: 8px; }
.button-link { border: 1px solid #000; }
.button-link:hover { background: #000; color: var(--background); }
.button-link svg { flex: none; }
.hero-proof { width: 205.265px; margin: 0; padding-left: 48px; border-left: 1px solid rgb(222 216 212 / 70%); display: grid; gap: 32px; align-self: center; }
.hero-proof div { display: grid; gap: 4px; }
.hero-proof strong { color: #000; font: 400 36px/40px var(--serif); letter-spacing: -.9px; }
.hero-proof span { color: #000; font-size: 14px; line-height: 17.5px; }
.scroll-cue { grid-column: 1 / -1; height: 20px; margin-top: 80px; display: flex; align-items: center; gap: 16px; color: #000; font-size: 14px; line-height: 20px; letter-spacing: 1.4px; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.scroll-cue::before, .scroll-cue::after { content: ""; flex: 1; height: 1px; }
.scroll-cue::before { background: linear-gradient(to right, var(--border), transparent); }
.scroll-cue::after { background: linear-gradient(to left, var(--border), transparent); }
.scroll-cue span { display: none; }

.intro.shell, .section.shell { width: 100%; max-width: none; padding-inline: max(32px, calc((100% - var(--content)) / 2)); }
.intro { min-height: 600.5px; padding-block: 96px; display: grid; grid-template-columns: 222px minmax(0, 798px); gap: 66px; align-items: start; background: rgb(242 240 235 / 55%); scroll-margin-top: 72px; }
.portrait-wrap { position: relative; top: 1px; width: 222px; }
.portrait-wrap::before { display: none; }
.portrait-wrap img { width: 222px; height: 222px; object-fit: cover; filter: grayscale(1); }
.intro-copy { max-width: 798px; }
.intro-copy h2 { margin: 0 0 20px; color: #000; font: 400 48px/48px var(--serif); letter-spacing: -.025em; }
.intro-copy p { margin: 0 0 16px; color: #000; font-size: 18px; line-height: 29.25px; }
.intro-copy p:last-child { margin-bottom: 0; }

.section { padding-block: 120.32px; scroll-margin-top: 72px; }
.section-heading { margin: 0 0 64px; display: block; max-width: none; }
.section-heading > span { display: inline-block; margin-bottom: 12px; color: var(--primary); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.section-heading h2 { max-width: 512px; color: #000; font-size: 48px; line-height: 48px; letter-spacing: -.025em; }
.section-heading p { max-width: 384px; margin: 0; color: var(--muted); font-size: 16px; line-height: 24px; }

#impact { background: linear-gradient(to bottom, rgb(242 240 235 / 50%), var(--background)); }
#impact .section-heading { display: block; text-align: center; margin-bottom: 64px; }
#impact .section-heading > span { display: inline-block; margin-bottom: 12px; }
#impact .section-heading h2 { max-width: none; }
#impact .section-heading p { display: none; }
.impact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; border: 0; }
.impact-grid article { min-height: 190.5px; padding: 32px; border: 0; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; position: relative; overflow: hidden; }
.impact-grid article::before { content: ""; position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-left: 2px solid rgb(164 79 30 / 30%); border-top: 2px solid rgb(164 79 30 / 30%); border-radius: 16px 0 0; }
.impact-grid strong { color: var(--primary); font: 400 48px/48px var(--serif); letter-spacing: -1.2px; }
.impact-grid h3 { margin: 8px 0; color: #000; font-size: 16px; line-height: 24px; font-weight: 500; }
.impact-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 19.25px; }

#ai-projects, #case-studies { background: var(--background); }
#case-studies { padding-top: 0; }
.case-list { display: grid; gap: 24px; border: 0; }
.case-card { border: 0; border-radius: 16px; background: var(--card); overflow: hidden; box-shadow: 0 0 0 1px rgb(222 216 212 / 22%); }
.featured-case { background: linear-gradient(135deg, rgb(164 79 30 / 9%), #fff 60%); box-shadow: 0 0 0 1px rgb(164 79 30 / 20%); }
.case-trigger { min-height: 154px; width: 100%; padding: 32px; border: 0; background: transparent; color: #000; display: grid; grid-template-columns: 48px minmax(0, 1fr) 230px 28px; align-items: center; gap: 24px; text-align: left; cursor: pointer; }
.case-number { align-self: start; color: var(--primary); font: 400 14px/20px var(--sans); }
.case-title { display: grid; gap: 6px; }
.case-title small { color: var(--primary); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.case-title strong { color: #000; font: 400 30px/33px var(--serif); letter-spacing: -.5px; }
.case-title em { color: #000; font-style: normal; font-size: 16px; line-height: 26px; }
.case-metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.case-metrics > span { display: grid; }
.case-metrics strong { color: var(--primary); font: 400 20px/28px var(--serif); }
.case-metrics small { color: var(--muted); font-size: 14px; line-height: 20px; }
.case-toggle { width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; color: var(--primary); font-size: 20px; }
.case-panel { padding: 8px 32px 40px 104px; animation: reveal .25s ease both; }
.story-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 48px; }
.story-grid h4 { margin: 0 0 8px; color: var(--primary); font-size: 12px; line-height: 18px; text-transform: uppercase; letter-spacing: .14em; }
.story-grid p, .story-grid ul { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }
.story-grid ul { padding-left: 18px; }
.story-grid li + li { margin-top: 6px; }
.case-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.case-links a { padding: 10px 15px; border: 1px solid #000; color: #000; font-size: 14px; font-weight: 500; text-decoration: none; }
.case-links a:hover { background: #000; color: var(--background); }
blockquote { max-width: 840px; margin: 32px 0 0; padding: 2px 0 2px 20px; border-left: 2px solid var(--primary); color: #000; font: italic 400 22px/31px var(--serif); }

#recognition { background: rgb(242 240 235 / 45%); overflow: hidden; }
.recognition-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border: 0; }
.recognition-grid article { min-height: 322px; padding: 24px; border: 0; border-radius: 16px; background: var(--card); display: flex; flex-direction: column; }
.recognition-grid span, .contact-grid span { color: var(--primary); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.recognition-grid h3 { margin: 42px 0 12px; color: #000; font: 400 28px/31px var(--serif); }
.recognition-grid p { margin: 0; color: var(--muted); font-size: 15px; line-height: 24px; }

#experience { background: var(--background); }
.experience-list { display: grid; gap: 16px; border: 0; }
.experience-list article { min-height: 122px; padding: 24px 32px; border: 0; border-radius: 16px; background: var(--card); display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: start; }
.experience-period { padding-top: 4px; color: var(--primary); font-size: 13px; line-height: 20px; letter-spacing: .08em; text-transform: uppercase; }
.experience-list h3 { margin: 0; color: #000; font: 400 26px/30px var(--serif); }
.experience-list .company { margin: 5px 0; color: #000; font-weight: 500; }
.experience-list p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 21px; }

#skills { background: linear-gradient(to bottom, var(--background), rgb(242 240 235 / 35%), var(--background)); }
.skills-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border: 0; }
.skills-grid article { min-height: 339.25px; padding: 24px; border: 1px solid rgb(222 216 212 / 50%); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; }
.skills-grid article > span { color: var(--primary); font: 400 14px/20px var(--sans); }
.skills-grid h3 { margin: 32px 0 12px; color: #000; font: 400 24px/28px var(--serif); }
.skills-grid p { margin: 0 0 20px; color: var(--muted); font-size: 14px; line-height: 22.75px; }
.skills-grid article > div { margin-top: auto; display: flex; flex-wrap: wrap; gap: 7px; }
.skills-grid small { padding: 5px 9px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 11px; line-height: 16px; font-weight: 500; }

#education { background: var(--background); }
.learning-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; border: 0; }
.learning-grid article { min-height: 205px; padding: 24px; border: 1px solid rgb(222 216 212 / 50%); border-radius: 16px; background: var(--card); }
.learning-grid h3 { margin: 36px 0 12px; color: #000; font: 400 24px/28px var(--serif); }
.learning-grid p { margin: 0; color: var(--muted); font-size: 14px; line-height: 22px; }

#contact { background: linear-gradient(to bottom, var(--background), rgb(242 240 235 / 45%)); text-align: center; }
#contact .section-heading { display: block; margin-bottom: 64px; }
#contact .section-heading > span { display: inline-block; margin-bottom: 12px; }
#contact .section-heading h2 { max-width: none; margin-bottom: 24px; font-size: 60px; line-height: 60px; }
#contact .section-heading p { max-width: 576px; margin-inline: auto; color: #000; font-size: 18px; line-height: 28px; }
.contact-grid { max-width: 860px; margin-inline: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; border: 0; text-align: left; }
.contact-grid > * { min-height: 142px; padding: 20px 24px; border: 1px solid rgb(222 216 212 / 55%); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; text-decoration: none; }
.contact-grid strong { margin-top: 18px; color: #000; font: 400 22px/26px var(--serif); }
.contact-grid em { margin-top: auto; padding-top: 10px; color: var(--muted); font-size: 13px; line-height: 20px; font-style: normal; }

.footer { min-height: 133px; padding-block: 32px; border-top: 1px solid rgb(222 216 212 / 50%); display: grid; grid-template-columns: 1fr auto auto; align-items: start; gap: 48px; font-size: 14px; line-height: 20px; }
.footer p { margin: 8px 0 0; color: var(--muted); }
.footer > div:nth-child(2) { display: flex; gap: 24px; }
.footer a { text-decoration: none; }
.footer > p { margin: 0; }

@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .nav-links { gap: 20px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 96px; padding-bottom: 48px; align-content: start; }
  .hero-proof { width: auto; padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--border); grid-template-columns: repeat(3, 1fr); }
  .scroll-cue { display: none; }
  .impact-grid, .skills-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .intro { grid-template-columns: 222px 1fr; gap: 48px; }
  .case-trigger { grid-template-columns: 44px minmax(0, 1fr) 210px 28px; gap: 16px; }
  .learning-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .shell { padding-inline: 16px; }
  .site-header, .nav { height: 64px; }
  .menu-button { display: block; }
  .nav-links { display: none; position: fixed; inset: 64px 0 0; padding: 24px 20px; background: var(--background); border-top: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); font: 400 28px/34px var(--serif); }
  .hero { min-height: auto; padding-top: 112px; padding-bottom: 64px; display: block; }
  .hero-copy { gap: 24px; }
  h1 { font-size: 48px; line-height: 1.05; letter-spacing: -1.2px; }
  .hero-description { width: 100%; min-height: 0; padding-left: 20px; font-size: 16px; line-height: 26px; }
  .hero-actions { padding-top: 4px; flex-direction: column; align-items: stretch; gap: 12px; }
  .text-link, .button-link { width: 100%; }
  .hero-proof { margin-top: 40px; grid-template-columns: 1fr; gap: 20px; }
  .hero-proof div { grid-template-columns: 92px 1fr; align-items: baseline; }
  .hero-proof strong { font-size: 30px; line-height: 34px; }
  .intro.shell, .section.shell { padding-inline: 16px; }
  .intro { min-height: 0; padding-block: 64px; grid-template-columns: 1fr; gap: 40px; }
  .portrait-wrap, .portrait-wrap img { width: 180px; height: 180px; }
  .intro-copy h2, .section-heading h2 { font-size: 40px; line-height: 42px; }
  .intro-copy p { font-size: 16px; line-height: 26px; }
  .section { padding-block: 80px; }
  .section-heading { display: block; margin-bottom: 48px; }
  .section-heading > span { display: inline-block; margin-bottom: 12px; }
  .section-heading h2 { margin-bottom: 14px; }
  .impact-grid, .skills-grid, .recognition-grid, .learning-grid, .contact-grid { grid-template-columns: 1fr; }
  .impact-grid article { min-height: 176px; }
  .case-list { gap: 16px; }
  .case-trigger { min-height: 0; padding: 22px 18px; grid-template-columns: 34px 1fr 28px; gap: 12px; }
  .case-title strong { font-size: 25px; line-height: 28px; }
  .case-metrics { grid-column: 2 / 4; padding-top: 10px; }
  .case-toggle { grid-column: 3; grid-row: 1; }
  .case-panel { padding: 4px 18px 28px; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .experience-list article { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .skills-grid article { min-height: 280px; }
  #contact .section-heading h2 { font-size: 48px; line-height: 50px; }
  #contact .section-heading p { font-size: 16px; line-height: 25px; }
  .contact-grid { max-width: none; }
  .footer { grid-template-columns: 1fr; gap: 24px; }
}

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

@media print {
  .site-header, .hero-actions, .scroll-cue, .menu-button { display: none !important; }
  .hero { min-height: auto; padding-top: 24px; }
  .case-panel[hidden] { display: block !important; }
}
