:root {
  --ink: #f4eddc;
  --ink-soft: #d7cfbd;
  --ink-faint: #9fa994;
  --forest-950: #04180e;
  --forest-900: #062217;
  --forest-800: #0c3020;
  --gold-400: #d8b567;
  --gold-300: #ebcf8e;
  --gold-muted: rgba(216, 181, 103, 0.52);
  --line: rgba(216, 181, 103, 0.34);
  --serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", Georgia, serif;
  --sans: "Avenir Next", Avenir, "Helvetica Neue", Arial, sans-serif;
  --shell: 96rem;
  --gutter: clamp(1.25rem, 4vw, 4.25rem);
  --section-space: clamp(5.5rem, 11vw, 10rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--forest-950); }
body { min-width: 320px; margin: 0; overflow-x: hidden; color: var(--ink); background-color: var(--forest-950); background-image: linear-gradient(rgba(2, 20, 10, 0.12), rgba(2, 20, 10, 0.12)), url("../assets/forest-grain-texture.png"); background-position: center; background-size: cover; background-attachment: fixed; font-family: var(--sans); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; }
a { color: inherit; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 5px; }
.site-shell { width: min(calc(100% - (var(--gutter) * 2)), var(--shell)); margin: 0 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: 1rem; left: 1rem; padding: 0.75rem 1rem; color: var(--forest-950); background: var(--gold-300); font-size: 0.8rem; text-decoration: none; transform: translateY(-160%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 10; }
.header-inner { display: flex; min-height: 6.35rem; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-family: var(--serif); font-size: clamp(1.05rem, 1.6vw, 1.5rem); font-weight: 600; letter-spacing: 0.17em; text-decoration: none; text-transform: uppercase; }
.primary-nav { display: flex; gap: clamp(1.4rem, 3vw, 3.35rem); align-items: center; }
.primary-nav a { color: var(--ink); font-family: var(--serif); font-size: 0.92rem; letter-spacing: 0.17em; text-decoration: none; text-transform: uppercase; transition: color 180ms ease; }
.primary-nav a:hover { color: var(--gold-300); }
.menu-toggle { display: none; }

.hero { position: relative; min-height: 48rem; padding: clamp(5.5rem, 10vw, 10rem) 0 clamp(5rem, 8vw, 8rem); }
.hero-canvas { position: relative; min-height: clamp(39rem, 53vw, 51rem); }
.hero-copy-block { position: relative; z-index: 3; width: min(58%, 45rem); padding-top: clamp(5rem, 9vw, 9.4rem); }
.eyebrow { margin: 0 0 1.5rem; color: var(--gold-400); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.23em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: var(--serif); font-weight: 400; letter-spacing: -0.064em; }
h1 { max-width: none; font-size: clamp(4.1rem, 6.2vw, 7rem); line-height: 0.87; white-space: nowrap; }
h2 { font-size: clamp(3.2rem, 6vw, 6.8rem); line-height: 0.9; }
.hero-summary { max-width: 30rem; margin: clamp(1.75rem, 3vw, 2.7rem) 0 0; color: var(--ink-soft); font-size: clamp(1.02rem, 1.55vw, 1.2rem); line-height: 1.65; }
.button { display: inline-flex; gap: 1rem; align-items: center; justify-content: center; min-height: 3.8rem; margin-top: 2.1rem; padding: 0.75rem 1.35rem; color: var(--ink); font-size: 0.73rem; font-weight: 600; letter-spacing: 0.15em; text-decoration: none; text-transform: uppercase; transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease; }
.button:hover { transform: translateY(-2px); }
.button--outline { border: 1px solid var(--gold-muted); }
.button--outline:hover { color: var(--forest-950); background: var(--gold-300); border-color: var(--gold-300); }
.button--solid { color: var(--forest-950); background: var(--gold-300); }
.button--solid:hover { color: var(--forest-950); background: var(--ink); }

.hero-botanical { position: absolute; z-index: 1; inset: 0 calc(var(--gutter) * -0.35) 0 0; pointer-events: none; }
.hero-flower { position: absolute; display: block; aspect-ratio: 1024 / 1535; overflow: visible; }
.hero-flower--main { top: -7%; right: clamp(1rem, 5vw, 6rem); width: clamp(24rem, 32vw, 37rem); }
.hero-flower--companion { top: 29%; right: clamp(-15rem, -9vw, -7rem); width: clamp(20rem, 27vw, 32rem); transform: rotate(15deg) scaleX(-1); transform-origin: center; opacity: 0.92; }

.section { position: relative; padding: var(--section-space) 0; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(17rem, 0.55fr); gap: clamp(2rem, 9vw, 10rem); align-items: end; margin-bottom: clamp(3rem, 6vw, 6rem); }
.section-heading > p { max-width: 27rem; margin: 0 0 0.5rem; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.2rem, 1.9vw, 1.65rem); line-height: 1.35; }
.project-grid { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.project-card, .project-card[data-layout="wide"] { display: grid; grid-template-columns: minmax(15rem, 21rem) minmax(0, 1fr); gap: clamp(1.75rem, 5vw, 6rem); align-items: start; min-width: 0; padding: clamp(1.75rem, 3.6vw, 3.5rem) 0; border-top: 1px solid var(--line); }
.project-image { position: relative; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; border: 1px solid var(--line); background: var(--forest-800); clip-path: polygon(0 0, 92% 0, 100% 10%, 100% 100%, 8% 100%, 0 90%); }
.project-card[data-shape="right"] .project-image { clip-path: polygon(8% 0, 100% 0, 100% 90%, 92% 100%, 0 100%, 0 10%); }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.88) contrast(1.04); transition: transform 520ms cubic-bezier(.2,.7,.2,1), filter 520ms ease; }
.project-card:hover .project-image img { filter: saturate(1) contrast(1.05); transform: scale(1.035); }
.project-content { min-width: 0; padding-top: 0.35rem; }
.project-meta { display: flex; justify-content: space-between; gap: 1rem; margin: 0; color: var(--ink-faint); font-size: 0.65rem; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; }
.project-status { color: var(--gold-400); text-align: right; }
.project-name { margin: 0.55rem 0 0; font-family: var(--serif); font-size: clamp(1.7rem, 3vw, 2.65rem); font-weight: 400; letter-spacing: -0.045em; line-height: 0.97; }
.project-summary { max-width: 32rem; margin: 0.85rem 0 0; color: var(--ink-soft); font-size: 0.94rem; line-height: 1.58; }
.project-links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; }
.project-links a { color: var(--gold-300); font-size: 0.67rem; font-weight: 600; letter-spacing: 0.13em; text-decoration-color: rgba(216, 181, 103, 0.56); text-underline-offset: 0.35rem; text-transform: uppercase; }

.section--notes { background: rgba(4, 24, 14, 0.78); }
.notes-layout { display: grid; grid-template-columns: minmax(16rem, 0.85fr) minmax(18rem, 0.95fr); gap: clamp(2rem, 13vw, 14rem); }
.notes-copy { max-width: 38rem; padding-top: clamp(4rem, 9vw, 8rem); }
.notes-copy p { margin: 0 0 1.5rem; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.45rem, 2.4vw, 2.25rem); line-height: 1.28; }
.notes-copy p + p { color: var(--ink-faint); font-size: clamp(1.1rem, 1.75vw, 1.45rem); line-height: 1.48; }
.text-link { display: inline-flex; gap: 0.8rem; margin-top: 1.2rem; color: var(--gold-300); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em; text-decoration: none; text-transform: uppercase; }
.text-link:hover { color: var(--ink); }

.about-layout { display: grid; grid-template-columns: minmax(10rem, 0.44fr) minmax(20rem, 1fr); gap: clamp(2rem, 11vw, 12rem); align-items: start; }
.about-mark { display: grid; grid-template-rows: auto 8rem auto; justify-content: start; color: var(--gold-300); font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 4.2rem); letter-spacing: -0.07em; line-height: 0.85; }
.about-mark i { width: 1px; height: 100%; margin-left: 1.1rem; background: var(--gold-muted); }
.about-copy { max-width: 41rem; margin-top: clamp(2rem, 5vw, 4rem); }
.about-copy p { margin: 0 0 1.25rem; color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.25rem, 2vw, 1.85rem); line-height: 1.35; }
.about-copy p + p { color: var(--ink-faint); font-family: var(--sans); font-size: 1rem; line-height: 1.65; }
.site-footer { padding: 1.8rem 0 2.5rem; border-top: 1px solid var(--line); color: var(--ink-faint); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-inner { display: flex; gap: 1.4rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--gold-300); text-decoration: none; }
.footer-links { display: flex; gap: 1.4rem; align-items: center; }

.analytics-consent { position: fixed; z-index: 50; right: max(1rem, calc((100vw - var(--shell)) / 2)); bottom: 1rem; left: max(1rem, calc((100vw - var(--shell)) / 2)); display: flex; gap: 1.5rem; align-items: center; justify-content: space-between; max-width: 50rem; margin-left: auto; padding: 1.15rem 1.25rem; border: 1px solid var(--gold-muted); color: var(--ink); background: rgba(4, 24, 14, 0.98); box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.38); }
.analytics-consent--hidden { display: none !important; }
.analytics-consent__copy { max-width: 34rem; }
.analytics-consent__title { margin: 0 0 0.25rem; color: var(--gold-300); font-family: var(--serif); font-size: 1.2rem; }
.analytics-consent__copy p:last-child { margin: 0; color: var(--ink-soft); font-size: 0.78rem; line-height: 1.55; }
.analytics-consent__copy a { color: var(--gold-300); }
.analytics-consent__actions { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: flex-end; }
.analytics-consent__button, .privacy-page__preference { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: 0.65rem 0.85rem; border: 1px solid var(--gold-muted); color: var(--forest-950); background: var(--gold-300); font-size: 0.67rem; font-weight: 700; letter-spacing: 0.12em; text-decoration: none; text-transform: uppercase; cursor: pointer; }
.analytics-consent__button--quiet, .privacy-page__preference { color: var(--ink); background: transparent; }
.analytics-consent__button:hover, .privacy-page__preference:hover { color: var(--forest-950); background: var(--ink); border-color: var(--ink); }

.privacy-page { min-height: calc(100vh - 6.35rem); padding: clamp(4rem, 10vw, 9rem) 0; }
.privacy-page__content { max-width: 54rem; }
.privacy-page h1 { max-width: 39rem; font-size: clamp(3.4rem, 7vw, 6.8rem); }
.privacy-page__copy { max-width: 42rem; margin-top: clamp(2.5rem, 6vw, 4.5rem); }
.privacy-page__copy > p { color: var(--ink-soft); font-family: var(--serif); font-size: clamp(1.08rem, 1.8vw, 1.4rem); line-height: 1.55; }
.privacy-page__copy > p + p { margin-top: 1.45rem; }
.privacy-page__preference { margin-top: 1rem; }

@media (max-width: 760px) {
  .header-inner { min-height: 5rem; }
  .menu-toggle { display: inline-flex; flex-direction: column; gap: 0.35rem; width: 2.65rem; height: 2.65rem; align-items: center; justify-content: center; padding: 0; color: var(--ink); border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .menu-toggle > span:not(.sr-only) { display: block; width: 1.05rem; height: 1px; background: currentColor; transition: transform 180ms ease; }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(2) { transform: translateY(2.75px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:nth-of-type(3) { transform: translateY(-2.75px) rotate(-45deg); }
  .primary-nav { position: absolute; top: calc(100% + 0.45rem); right: var(--gutter); display: none; flex-direction: column; align-items: stretch; min-width: 13rem; gap: 0; padding: 0.55rem; border: 1px solid var(--line); background: rgba(4, 24, 14, 0.96); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28); }
  .primary-nav.is-open { display: flex; }
  .primary-nav a { padding: 0.85rem 1rem; font-size: 0.78rem; }
  .hero { min-height: 0; padding-top: 4.6rem; }
  .hero-canvas { min-height: 46rem; }
  .hero-copy-block { width: min(100%, 35rem); padding-top: 0; }
  h1 { white-space: normal; }
  .hero-botanical { top: 20rem; right: -1.5rem; left: 0; bottom: 0; }
  .hero-flower--main { top: 0; right: 1rem; width: min(25rem, 72vw); }
  .hero-flower--companion { top: 11rem; right: -9.4rem; width: min(21rem, 60vw); }
  .section-heading, .notes-layout, .about-layout { grid-template-columns: 1fr; }
  .section-heading { gap: 1.5rem; }
  .section-heading > p { margin-bottom: 0; }
  .project-card, .project-card[data-layout="wide"] { grid-template-columns: 1fr; gap: 1.35rem; padding: 2rem 0; }
  .project-content { padding-top: 0; }
  .notes-copy { padding-top: 0; }
  .about-mark { grid-template-rows: auto 4rem auto; }
}

@media (max-width: 520px) {
  .site-shell { width: min(calc(100% - 2.1rem), var(--shell)); }
  .wordmark { font-size: 0.94rem; letter-spacing: 0.13em; }
  h1 { font-size: clamp(3.7rem, 17vw, 5.3rem); }
  h2 { font-size: clamp(2.9rem, 14vw, 4.2rem); }
  .hero-canvas { min-height: 47.5rem; }
  .hero-botanical { top: 25.5rem; right: -3.2rem; }
  .hero-flower--main { right: 0; width: min(23rem, 77vw); }
  .hero-flower--companion { top: 11rem; right: -8.8rem; width: min(19rem, 64vw); }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .analytics-consent { right: 1rem; left: 1rem; align-items: flex-start; flex-direction: column; }
  .analytics-consent__actions { width: 100%; justify-content: flex-start; }
  .footer-links { flex-wrap: wrap; }
}

@media (max-width: 760px) {
  body { background-attachment: scroll; }
}

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