:root {
  --paper: #f4f1e9;
  --ink: #151513;
  --muted: #67655e;
  --line: #c9c5ba;
  --accent: #d95d39;
  --lime: #c9d66b;
  --blue: #8fa9c6;
  --max: 1280px;
  --pad: clamp(1.25rem, 4vw, 4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--ink); color: white; padding: .75rem 1rem; }
.skip-link:focus { top: 1rem; }
.site-header { position: relative; max-width: var(--max); margin: auto; padding: 1.25rem var(--pad); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.5rem; font-weight: 900; text-decoration: none; letter-spacing: -.08em; }
.wordmark span { color: var(--accent); }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a { text-decoration: none; font-size: .9rem; font-weight: 700; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--accent); }
.nav-contact { border: 1px solid var(--ink); padding: .55rem 1rem; border-radius: 2rem; }
.nav-toggle { display: none; min-height: 2.75rem; padding: .5rem; margin: -.5rem; border: 0; background: none; font: inherit; font-weight: 700; cursor: pointer; }
.section { max-width: var(--max); margin: 0 auto; padding: clamp(4rem, 8vw, 8rem) var(--pad); }
.eyebrow { margin: 0 0 1.5rem; text-transform: uppercase; letter-spacing: .13em; font-size: .72rem; font-weight: 800; }
.status-dot { display: inline-block; width: .55rem; height: .55rem; margin-right: .6rem; border-radius: 50%; background: #4d9b58; box-shadow: 0 0 0 .25rem rgba(77,155,88,.13); }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: .98; letter-spacing: -.045em; }
h1 { font-size: clamp(3.4rem, 7.6vw, 7.4rem); font-weight: 800; }
h2 { font-size: clamp(2.6rem, 5.5vw, 5rem); }
h3 { font-size: 1.6rem; }
.hero { min-height: 760px; display: grid; grid-template-columns: minmax(0, 1fr) clamp(430px, 32vw, 470px); align-items: center; gap: clamp(3rem, 6vw, 6rem); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: clamp(3.4rem, 6.4vw, 6.5rem); }
.hero h1 em { color: var(--accent); font-family: Georgia, serif; font-weight: 400; }
.hero-lead, .page-hero > p, .large-copy { max-width: 48rem; font-size: clamp(1.15rem, 2vw, 1.55rem); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 2.2rem 0; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.35rem; padding: .8rem 1.35rem; border: 1px solid var(--ink); text-decoration: none; font-weight: 800; border-radius: .15rem; transition: transform .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--paper); }
.button-light { background: transparent; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: 0; margin: 3rem 0 0; list-style: none; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.portrait { width: 100%; max-width: 470px; min-width: 0; margin: 0; justify-self: end; transform: rotate(1.25deg); }
.portrait img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; object-position: center; filter: saturate(.83) contrast(1.03); border: 1px solid var(--ink); }
.portrait figcaption { display: flex; justify-content: space-between; padding-top: .7rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.intro-strip { padding-top: 1.4rem; padding-bottom: 1.4rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; text-transform: uppercase; font-weight: 800; font-size: clamp(.75rem, 1.5vw, 1rem); }
.intro-strip p { margin: 0; }
.intro-strip span { color: var(--accent); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; margin-bottom: 4rem; }
.section-heading h2 { margin-bottom: 0; }
.text-link { flex: none; font-weight: 800; text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: .2rem; }
.text-link span { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.project-card { border-top: 1px solid var(--ink); }
.project-card a { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1.5rem; text-decoration: none; padding: 1rem 0 2rem; }
.project-card-large { grid-column: 1 / -1; }
.project-card-large a { grid-template-columns: 1.3fr .7fr; }
.project-visual { min-height: 260px; position: relative; display: grid; place-items: center; overflow: hidden; background: var(--blue); }
.project-card-large .project-visual { min-height: 440px; }
.project-visual-2 { background: #c3d2d4; }
.project-visual-3 { background: #ded093; }
.project-visual-4 { background: #b7aea3; }
.project-visual-5 { background: var(--lime); }
.project-index { position: absolute; top: 1rem; left: 1rem; font: 700 .8rem monospace; }
.project-monogram, .showcase-monogram { font-size: clamp(4rem, 9vw, 10rem); font-weight: 900; letter-spacing: -.12em; text-transform: uppercase; opacity: .9; }
.project-copy { min-width: 0; padding-top: .5rem; }
.project-category { text-transform: uppercase; letter-spacing: .12em; font-size: .68rem; font-weight: 800; color: var(--accent); }
.project-copy p:not(.project-category), .project-list article p { color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
.tags li { border: 1px solid var(--line); border-radius: 2rem; padding: .3rem .65rem; font-size: .72rem; }
.expertise-section { border-top: 1px solid var(--line); }
.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.expertise-grid article { padding: 2rem; border: 1px solid var(--line); border-right: 0; }
.expertise-grid article:last-child { border-right: 1px solid var(--line); }
.expertise-grid article > span { font: 700 .75rem monospace; color: var(--accent); }
.expertise-grid h3 { margin-top: 5rem; }
.expertise-grid p { color: var(--muted); }
.experience-section { border-top: 1px solid var(--line); }
.timeline article { display: grid; grid-template-columns: minmax(160px, .5fr) 1.5fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); }
.timeline-date { font: 700 .75rem monospace; text-transform: uppercase; }
.timeline h3 { margin-bottom: .5rem; }
.organization { font-weight: 800; color: var(--accent); }
.contact-band { max-width: none; background: var(--ink); color: var(--paper); text-align: center; }
.contact-section { border-top:1px solid var(--line); display:grid; grid-template-columns:.8fr 1.2fr; gap:clamp(3rem,8vw,8rem); }
.contact-section > div > p:last-child { max-width:32rem; color:var(--muted); }
.contact-form label { display:grid; gap:.45rem; margin:0 0 1.2rem; font-weight:700; }
.contact-form label span { color:var(--muted); font-weight:400; }
.contact-form input, .contact-form textarea, .contact-form select { width:100%; padding:.85rem; border:1px solid var(--line); background:rgba(255,255,255,.4); font:inherit; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { outline:3px solid rgba(217,93,57,.2); border-color:var(--accent); }
.contact-grid { display:grid; grid-template-columns:1fr 1fr; gap:0 1rem; }
.honeypot { position:absolute!important; left:-10000px!important; width:1px!important; height:1px!important; overflow:hidden!important; }
.form-errors, .form-success { padding:1rem; margin-bottom:1rem; border:1px solid; }
.form-errors { background:#f5d9d2; }.form-success{background:#dce9d5}
.contact-band .button { margin-top: 2rem; border-color: var(--paper); }
.button-invert { color: var(--paper); }
.page-hero { padding-top: clamp(6rem, 11vw, 11rem); padding-bottom: 5rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 2rem; }
.project-list { padding-top: 1rem; }
.project-list article { border-bottom: 1px solid var(--line); }
.project-list article > a { display: grid; grid-template-columns: 70px 1.5fr 1fr 40px; align-items: center; gap: 2rem; padding: 2.5rem 0; text-decoration: none; }
.project-list h2 { font-size: clamp(1.8rem, 3vw, 3rem); margin-bottom: 1rem; }
.list-index { font: 700 .8rem monospace; }
.list-arrow { font-size: 1.5rem; color: var(--accent); }
.project-showcase { min-height: 65vh; display: grid; place-items: center; background: var(--blue); max-width: calc(var(--max) - 2 * var(--pad)); padding: 3rem; margin-top: 5rem; }
.project-story { display: grid; grid-template-columns: .8fr 1.2fr; gap: 6rem; }
.project-story h2 { font-size: clamp(2.5rem, 4vw, 4rem); }
.tags-large li { font-size: .85rem; padding: .45rem .8rem; }
.detail-note { margin-top: 4rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
.cv-hero { position: relative; }
.cv-hero h1 { font-size: clamp(5rem, 13vw, 12rem); }
.cv-layout { display: grid; grid-template-columns: .42fr minmax(0, 1fr); gap: clamp(3rem, 8vw, 8rem); }
.cv-layout aside { border-right: 1px solid var(--line); padding-right: 2rem; }
.cv-layout aside h2 { margin: 3rem 0 1.5rem; font-size: 1.5rem; }
.cv-layout aside h2:first-child { margin-top: 0; }
.cv-layout aside h3 { margin: 1.5rem 0 .4rem; font-size: .8rem; letter-spacing: .03em; text-transform: uppercase; }
.cv-layout aside p { color: var(--muted); }
.cv-main > section { padding-bottom: 5rem; margin-bottom: 5rem; border-bottom: 1px solid var(--line); }
.cv-item { padding: 2rem 0; border-top: 1px solid var(--line); }
.cv-item h2 { font-size: 2rem; margin: .5rem 0; }
.credential-list article { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 2rem; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.credential-list span, .credential-list strong { min-width: 0; overflow-wrap: anywhere; }
.site-footer { max-width: var(--max); margin: auto; padding: 4rem var(--pad) 2rem; display: grid; grid-template-columns: 1fr auto; gap: 3rem; border-top: 1px solid var(--line); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-weight: 700; }
.site-footer small { grid-column: 1 / -1; color: var(--muted); }
.not-found { min-height: 70vh; }

@media (max-width: 1050px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 5rem; }
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; }
  .portrait { order: 3; width: min(100%, 430px); max-width: none; margin: 1rem 0 2.25rem; justify-self: start; transform: none; }
  .hero-lead { order: 4; }
  .hero-actions { order: 5; }
  .hero-meta { order: 6; }
}

@media (max-width: 850px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; z-index: 10; top: calc(100% + 1px); left: var(--pad); right: var(--pad); padding: 1.5rem; background: var(--ink); color: var(--paper); flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card-large { grid-column: auto; }
  .project-card a, .project-card-large a { grid-template-columns: 1fr; }
  .project-card-large .project-visual { min-height: 320px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article { border-right: 1px solid var(--line); border-bottom: 0; }
  .expertise-grid article:last-child { border-bottom: 1px solid var(--line); }
  .expertise-grid h3 { margin-top: 2rem; }
  .project-list article > a { grid-template-columns: 40px 1fr 30px; gap: 1rem; }
  .project-list .tags { grid-column: 2 / 3; }
  .project-story, .cv-layout, .contact-section { grid-template-columns: 1fr; gap: 3rem; }
  .cv-layout aside { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 3rem; }
}

@media (max-width: 560px) {
  .section { padding-top: clamp(3.25rem, 14vw, 4rem); padding-bottom: clamp(3.25rem, 14vw, 4rem); }
  h1, .hero h1 { max-width: 100%; font-size: clamp(2.8rem, 14vw, 3.4rem); overflow-wrap: anywhere; }
  h2 { max-width: 100%; font-size: clamp(2.1rem, 11vw, 2.6rem); overflow-wrap: anywhere; }
  .hero { padding-top: 3.5rem; }
  .portrait { width: 100%; margin-top: .5rem; }
  .portrait figcaption { flex-wrap: wrap; gap: .35rem 1rem; }
  .intro-strip { flex-direction: column; align-items: center; }
  .intro-strip span { display: none; }
  .section-heading { align-items: flex-start; flex-direction: column; margin-bottom: 2.75rem; }
  .timeline article { grid-template-columns: 1fr; gap: .5rem; }
  .hero-actions .button { width: 100%; }
  .project-list article > a { grid-template-columns: 1fr 30px; }
  .list-index { display: none; }
  .project-list .tags { grid-column: 1 / 2; }
  .credential-list article, .contact-grid { grid-template-columns: 1fr; gap: .3rem; }
  .cv-hero h1 { font-size: clamp(3.8rem, 20vw, 5rem); overflow-wrap: normal; }
  .cv-main > section { padding-bottom: 3.5rem; margin-bottom: 3.5rem; }
  .cv-item h2 { font-size: clamp(1.55rem, 8vw, 2rem); overflow-wrap: anywhere; }
  .credential-list article { padding: 1.1rem 0; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer small { grid-column: auto; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
