:root {
  --ink: #12110f;
  --ink-soft: #1d1b17;
  --paper: #f4f0e8;
  --paper-deep: #e8e0d2;
  --ivory: #fffaf0;
  --champagne: #c4a46a;
  --champagne-light: #dec99d;
  --gold-deep: #755326;
  --line: rgba(30, 27, 22, 0.18);
  --line-dark: rgba(255, 250, 240, 0.18);
  --muted: #6d675d;
  --shell: min(1180px, calc(100% - 56px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 12px; left: 12px; transform: translateY(-170%); padding: 10px 16px; color: var(--ink); background: var(--ivory); border: 1px solid var(--champagne); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 50; top: 0; background: rgba(244, 240, 232, 0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { height: 78px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; color: var(--champagne-light); background: var(--ink); border: 1px solid rgba(196,164,106,.55); font-family: Georgia, serif; font-size: .78rem; letter-spacing: .13em; }
.brand-name { font-family: Georgia, "Times New Roman", serif; font-size: 1.02rem; letter-spacing: .01em; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { position: relative; text-decoration: none; font-size: .76rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.nav-links a:not(.nav-contact)::after { content: ""; position: absolute; right: 0; bottom: -8px; left: 0; height: 1px; background: var(--champagne); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.nav-links a:not(.nav-contact):hover::after { transform: scaleX(1); transform-origin: left; }
.nav-contact { padding: 10px 18px; color: var(--ivory); background: var(--ink); border: 1px solid var(--ink); }
.nav-contact:hover { color: var(--ink); background: transparent; }
.nav-download { display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; color: var(--ink); border: 1px solid var(--line); }
.nav-download:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.nav-download::after { display: none; }
.nav-download .download-icon { font-size: .8rem; transition: transform .25s ease; }
.nav-download:hover .download-icon { transform: translateY(2px); }
.nav-toggle { display: none; }

.hero { position: relative; min-height: 720px; display: grid; grid-template-columns: 1.4fr .72fr; gap: clamp(58px, 9vw, 126px); align-items: center; padding-block: 100px 106px; color: var(--ivory); }
.hero::before { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); background: linear-gradient(135deg, #0e0d0b 0%, #171510 58%, #201b13 100%); }
.hero::after { content: ""; position: absolute; z-index: -1; top: 0; right: calc((100vw - 100%) / -2); width: 37vw; height: 1px; background: linear-gradient(90deg, transparent, var(--champagne)); }
.eyebrow { margin: 0 0 22px; color: var(--gold-deep); font-size: .72rem; font-weight: 700; letter-spacing: .2em; line-height: 1.4; text-transform: uppercase; }
.hero .eyebrow { color: var(--champagne-light); }
.hero h1 { max-width: 860px; margin: 0; font-family: "Iowan Old Style", Baskerville, Georgia, "Times New Roman", serif; font-size: clamp(3.8rem, 7.4vw, 7.15rem); font-weight: 400; letter-spacing: -.055em; line-height: .91; }
.hero h1 span { display: block; color: var(--champagne-light); font-style: italic; font-weight: 400; }
.hero-intro { max-width: 660px; margin: 34px 0 0; color: #d0c8ba; font-size: clamp(1.08rem, 1.6vw, 1.28rem); font-weight: 350; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 12px 20px; border: 1px solid transparent; text-decoration: none; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: transform .25s ease, background .25s ease, color .25s ease, border-color .25s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--ink); background: var(--champagne-light); border-color: var(--champagne-light); }
.button-primary:hover { color: var(--ivory); background: transparent; }
.button-quiet { color: var(--ivory); border-color: rgba(255,250,240,.32); }
.button-quiet:hover { border-color: var(--champagne); }

.hero-panel { position: relative; padding: 34px; background: rgba(255,250,240,.035); border: 1px solid rgba(196,164,106,.54); box-shadow: 0 32px 70px rgba(0,0,0,.24); }
.hero-panel::before { content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-top: 1px solid var(--champagne); border-right: 1px solid var(--champagne); }
.panel-label { color: var(--champagne); font-size: .69rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.panel-statement { position: relative; margin: 34px 0 40px; font-family: Georgia, "Times New Roman", serif; font-size: 1.32rem; line-height: 1.48; }
.snapshot-grid { position: relative; display: grid; gap: 21px; margin: 0; }
.snapshot-grid div { padding-top: 15px; border-top: 1px solid var(--line-dark); }
.snapshot-grid dt { margin-bottom: 5px; color: #989185; font-size: .67rem; letter-spacing: .15em; text-transform: uppercase; }
.snapshot-grid dd { margin: 0; font-size: .9rem; font-weight: 550; line-height: 1.5; }
.snapshot-grid dd span { color: #b9b1a4; font-weight: 350; }
.panel-rule { display: flex; gap: 6px; margin-top: 32px; }
.panel-rule span { display: block; height: 1px; background: var(--champagne); }
.panel-rule span:nth-child(1) { width: 58%; }.panel-rule span:nth-child(2) { width: 24%; opacity: .55; }.panel-rule span:nth-child(3) { flex: 1; opacity: .25; }

.proof-strip { background: var(--paper-deep); border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-grid div { min-height: 158px; padding: 30px 27px; border-left: 1px solid var(--line); }
.proof-grid div:last-child { border-right: 1px solid var(--line); }
.proof-grid span { display: block; margin-bottom: 19px; color: var(--gold-deep); font-family: Georgia, serif; font-size: .8rem; font-style: italic; }
.proof-grid strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.18rem; font-weight: 400; }
.proof-grid p { margin: 4px 0 0; color: var(--muted); font-size: .85rem; }

.section { padding-block: 126px; }
.section-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 58px; align-items: end; margin-bottom: 66px; }
.section-heading h2 { margin: 0; font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: clamp(2.9rem, 5.4vw, 5rem); font-weight: 400; letter-spacing: -.052em; line-height: .96; }
.section-heading > p { max-width: 420px; margin: 0; color: var(--muted); font-size: .96rem; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 20px; }
.project-card { min-height: 400px; display: flex; flex-direction: column; padding: 30px; background: rgba(255,250,240,.5); border: 1px solid var(--line); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.project-card:hover { transform: translateY(-6px); border-color: rgba(178,138,74,.55); box-shadow: 0 28px 70px rgba(32,27,19,.1); }
.project-featured { grid-column: 1 / -1; min-height: auto; color: var(--ivory); background: var(--ink-soft); border-color: var(--ink-soft); }
.project-topline { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .69rem; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; }
.project-featured .project-topline { color: #a69e91; border-color: var(--line-dark); }
.project-index { margin: 30px 0 auto; color: var(--gold-deep); font-family: Georgia, serif; font-size: .9rem; font-style: italic; }
.project-featured .project-index { color: var(--champagne-light); }
.project-card h3 { max-width: 700px; margin: 17px 0 15px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.5rem, 2.3vw, 2.05rem); font-weight: 400; letter-spacing: -.03em; line-height: 1.14; }
.project-featured h3 { font-size: clamp(1.9rem, 3.4vw, 2.65rem); line-height: 1.08; }
.project-card > p:not(.project-index) { max-width: 700px; margin: 0 0 30px; color: var(--muted); }
.project-body { display: grid; grid-template-columns: 82px 1fr; gap: 26px; align-items: start; padding: 20px 0 30px; }
.project-body .project-index { margin-top: 11px; }
.project-body p:last-child { max-width: 800px; margin: 0; color: #bdb5a8; font-size: 1.03rem; }
.project-media { display: flex; flex-direction: column; gap: 12px; margin: 2px 0 30px; }
.project-media figure { position: relative; min-height: 0; overflow: hidden; margin: 0; background: #f5f2ec; border: 1px solid rgba(196,164,106,.28); }
.project-media img { width: 100%; height: 100%; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.project-media figure:hover img { transform: scale(1.018); }
.project-media.media-quad { display: grid; grid-template-columns: 230px 1fr; align-items: stretch; gap: 12px; }
.project-media .media-primary { background: #fff; }
.project-media .media-primary img { object-fit: contain; }
.project-media .media-side { display: flex; flex-direction: column; gap: 12px; }
.project-media .media-technical { aspect-ratio: 1600 / 322; background: #fff; }
.project-media .media-technical img { object-fit: contain; }
.project-media .media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; flex: 1; }
.project-media .media-row figure { aspect-ratio: 1 / 1; background: #fff; }
.project-media .media-row img { object-fit: contain; }
.project-media figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 12px 15px; color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(10,9,8,.9)); font-size: .69rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.project-outcomes { display: grid; grid-template-columns: repeat(3,1fr); margin-bottom: 28px; border: solid var(--line-dark); border-width: 1px 0; }
.project-outcomes div { padding: 21px 24px 21px 0; }
.project-outcomes div + div { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.project-outcomes strong { display: block; color: var(--champagne-light); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.project-outcomes span { display: block; color: #aaa295; font-size: .78rem; line-height: 1.4; }
.project-media-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 22px; }
.project-media-compact figure { position: relative; margin: 0; overflow: hidden; background: #f5f2ec; border: 1px solid rgba(196,164,106,.28); aspect-ratio: 1 / 1; }
.project-media-compact img { width: 100%; height: 100%; display: block; }
.project-media-compact .media-photo img { object-fit: cover; object-position: center 42%; }
.project-media-compact .media-cad img { object-fit: contain; }
.project-media-compact figcaption { position: absolute; right: 0; bottom: 0; left: 0; padding: 8px 10px; color: var(--ivory); background: linear-gradient(180deg, transparent, rgba(10,9,8,.85)); font-size: .6rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.project-media-compact.media-trio .media-wide { grid-column: 1 / -1; aspect-ratio: 2.35 / 1; }
.project-media-compact.media-trio .media-wide img { object-fit: contain; }
.project-media-compact .media-headband img { object-fit: contain; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: auto 0 0; list-style: none; }
.tags li { padding: 6px 10px; color: #5d564b; background: rgba(196,164,106,.13); border: 1px solid rgba(178,138,74,.22); font-size: .69rem; font-weight: 700; letter-spacing: .04em; }
.project-featured .tags li { color: var(--champagne-light); background: rgba(196,164,106,.08); border-color: rgba(196,164,106,.28); }

.section-dark { color: var(--ivory); background: var(--ink); }
.section-dark .section-heading > p { color: #a9a195; }
.section-dark .eyebrow { color: var(--champagne); }
.timeline { border-top: 1px solid var(--line-dark); }
.timeline-item { display: grid; grid-template-columns: 190px 1fr 120px; gap: 38px; padding: 38px 0; border-bottom: 1px solid var(--line-dark); }
.timeline-date, .timeline-location { color: #928b80; font-size: .7rem; font-weight: 600; letter-spacing: .12em; line-height: 1.55; text-transform: uppercase; }
.timeline-location { text-align: right; }
.timeline-org { margin: 0 0 5px; color: var(--champagne); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.timeline-item h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; letter-spacing: -.02em; }
.timeline-item div > p:last-child { max-width: 720px; margin: 13px 0 0; color: #b8b0a4; }

.skills-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.skill-block { min-height: 245px; padding: 36px; background: var(--paper); }
.skill-block span { color: var(--gold-deep); font-family: Georgia, serif; font-size: .85rem; font-style: italic; }
.skill-block h3 { margin: 43px 0 12px; font-family: Georgia, "Times New Roman", serif; font-size: 1.5rem; font-weight: 400; }
.skill-block p { max-width: 500px; margin: 0; color: var(--muted); }

.contact-section { position: relative; padding-block: 104px; color: var(--ink); background: var(--champagne-light); }
.contact-section::before { content: ""; position: absolute; top: 16px; right: 16px; bottom: 16px; left: 16px; border: 1px solid rgba(18,17,15,.22); pointer-events: none; }
.contact-section .eyebrow { color: #6c5732; }
.contact-inner { display: flex; flex-direction: column; align-items: center; gap: 40px; text-align: center; }
.contact-inner .eyebrow { text-align: center; }
.contact-inner h2 { max-width: 790px; margin: 0; font-family: "Iowan Old Style", Baskerville, Georgia, serif; font-size: clamp(3rem, 5.4vw, 5.4rem); font-weight: 400; letter-spacing: -.058em; line-height: .94; }
.contact-copy { display: flex; flex-direction: column; align-items: center; }
.contact-copy p { max-width: 520px; margin: 0 0 27px; }
.button-light { color: var(--ivory); background: var(--ink); border-color: var(--ink); }
.button-light:hover { color: var(--ink); background: transparent; }
.contact-details { display: flex; flex-wrap: wrap; justify-content: center; gap: 17px 56px; margin: 40px 0 0; padding-top: 26px; border-top: 1px solid rgba(18,17,15,.22); }
.contact-details dt { margin: 0 0 4px; color: #6c5732; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.contact-details dd { margin: 0; font-size: .98rem; font-weight: 600; }
.contact-details a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(18,17,15,.35); transition: border-color .25s ease, opacity .25s ease; }
.contact-details a:hover { border-color: var(--ink); }
.site-footer { padding-block: 30px; color: #8d867b; background: #0b0a09; font-size: .74rem; letter-spacing: .04em; }
.site-footer .shell { display: flex; justify-content: space-between; gap: 30px; }
.site-footer p { margin: 0; }

/* Content is visible by default so it never disappears for visitors, bots, or
   print/PDF exports without JavaScript. The scroll-reveal animation only
   applies once script.js confirms it's running (see the early <html class="js">
   toggle in index.html). */
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  /* Three project cards don't divide evenly into two columns, so this grid
     skips the usual tablet two-column step and goes straight to one column
     rather than leaving an empty cell. */
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 0; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-block: 82px 100px; }
  .hero-panel { max-width: 630px; }
  .proof-grid { grid-template-columns: repeat(2,1fr); }
  .section-heading { grid-template-columns: 1fr; gap: 24px; }
  .timeline-item { grid-template-columns: 150px 1fr; }
  .timeline-location { display: none; }
  .contact-inner { gap: 32px; }
}

@media (max-width: 680px) {
  :root { --shell: min(100% - 30px, 1180px); }
  .nav { height: 66px; }
  .brand-name { display: none; }
  .nav-toggle { width: 44px; height: 44px; display: grid; align-content: center; gap: 7px; padding: 10px; border: 0; background: transparent; }
  .nav-toggle span:not(.sr-only) { width: 22px; height: 1px; display: block; background: var(--ink); transition: transform .2s ease; }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-4px) rotate(-45deg); }
  .nav-links { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 15px 20px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 15px; }
  .nav-download { justify-content: center; margin-top: 5px; }
  .nav-contact { margin-top: 5px; text-align: center; }
  .hero { gap: 60px; padding-top: 62px; }
  .hero h1 { font-size: clamp(3.4rem, 17vw, 5.2rem); }
  .hero-panel { padding: 27px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid div { min-height: 138px; padding: 24px 17px; }
  .section { padding-block: 88px; }
  .project-grid, .skills-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 405px; padding: 26px; }
  .project-featured { grid-column: auto; }
  .project-body { grid-template-columns: 1fr; gap: 0; }
  .project-media.media-quad { grid-template-columns: 1fr; }
  .project-media .media-primary { height: 320px; }
  .project-media .media-primary img { object-fit: cover; object-position: center 45%; }
  .project-outcomes { grid-template-columns: 1fr; }
  .project-outcomes div, .project-outcomes div + div { padding: 15px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .project-outcomes div:first-child { border-top: 0; }
  .timeline-item { grid-template-columns: 1fr; gap: 13px; }
  .contact-section { padding-block: 82px; }
  .contact-section::before { inset: 9px; }
  .site-footer .shell { flex-direction: column; gap: 7px; }
}

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

/* A recruiter saving this page as a PDF gets a readable, light document
   instead of a dark, ink-heavy render with animation artifacts. */
@media print {
  .site-header, .nav-toggle, .skip-link, .hero-actions, .contact-section .button-light { display: none; }
  * { opacity: 1 !important; transform: none !important; box-shadow: none !important; animation: none !important; transition: none !important; }
  body { background: #fff; }
  .hero, .hero::before, .hero::after { background: #fff; color: var(--ink); }
  .hero-panel { border-color: var(--line); box-shadow: none; }
  .hero h1 span, .hero .eyebrow, .panel-label { color: var(--gold-deep); }
  .hero-intro, .snapshot-grid dd span { color: var(--muted); }
  .project-featured, .section-dark, .site-footer { background: #fff; color: var(--ink); }
  .project-featured .project-topline, .timeline-date, .timeline-location { color: var(--muted); }
  .project-featured .tags li { color: var(--gold-deep); border-color: var(--line); }
  .project-outcomes strong { color: var(--gold-deep); }
  .project-card, .timeline-item { break-inside: avoid; }
  .project-media figcaption { position: static; background: none; color: var(--muted); padding: 6px 0 0; }
}
