:root {
  --paper: #f3eee4;
  --paper-deep: #e7e0d3;
  --ink: #1f2924;
  --muted: #66716a;
  --line: rgba(31, 41, 36, 0.16);
  --forest: #1e332d;
  --forest-soft: #314b41;
  --copper: #b65d43;
  --copper-dark: #8f422f;
  --sage: #d5d9c7;
  --white: #fffdf8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --mono: 'Space Mono', monospace;
  --shadow: 0 24px 60px rgba(31, 41, 36, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); line-height: 1.65; -webkit-font-smoothing: antialiased; }
body, button, a { font-family: var(--sans); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 400; line-height: 1.06; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.035em; }
h1 { font-size: clamp(4rem, 8vw, 8rem); }
h2 { font-size: clamp(2.7rem, 5.5vw, 5.4rem); }
h3 { font-size: clamp(1.4rem, 2vw, 2rem); }
.container { width: min(1240px, calc(100% - 56px)); margin: 0 auto; }
.section-pad { padding: 132px 0; }
.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; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(243, 238, 228, 0.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.utility-bar { padding: 9px 0; color: var(--paper); background: var(--forest); font: 0.68rem var(--mono); letter-spacing: 0.08em; }
.utility-inner { display: flex; justify-content: space-between; gap: 20px; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; min-height: 86px; gap: 36px; }
.brand { display: inline-flex; align-items: center; width: 142px; }
.brand img { width: 100%; height: auto; }
.site-nav { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; }
.site-nav a { padding: 10px 13px; border: 1px solid transparent; border-radius: 999px; transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease; }
.site-nav a:not(.nav-cta):hover { color: var(--copper); background: var(--white); border-color: var(--line); }
.site-nav a:hover { color: var(--copper); }
.nav-cta { padding: 12px 18px; color: var(--paper); background: var(--forest); border-radius: 999px; }
.nav-cta:hover { color: var(--paper) !important; background: var(--copper); }
.menu-toggle { display: none; width: 44px; height: 44px; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 23px; height: 1px; margin: 6px auto; background: var(--ink); }

/* Hero */
.hero { position: relative; padding: 118px 0 150px; overflow: hidden; background: var(--paper); }
.hero::before { position: absolute; content: ''; width: min(42vw, 620px); height: min(42vw, 620px); right: -150px; top: 70px; border: 1px solid rgba(182, 93, 67, 0.2); border-radius: 50%; box-shadow: 0 0 0 34px rgba(182, 93, 67, 0.035), 0 0 0 68px rgba(182, 93, 67, 0.025); pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.78fr); gap: clamp(50px, 8vw, 132px); align-items: center; }
.hero-copy { padding: 26px 0 0; }
.kicker, .section-label, .media-label span, .hero-note, .service-index, .system-card span, .work-card span { font: 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; color: var(--copper); }
.kicker span { display: inline-grid; place-items: center; width: 31px; height: 31px; color: var(--paper); background: var(--copper); border-radius: 50%; font-size: 0.65rem; }
.hero h1 { max-width: 760px; }
.hero h1 em { color: var(--copper); font-style: italic; }
.hero-lede { max-width: 530px; margin-top: 32px; color: var(--muted); font-size: 1.12rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 40px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 15px 21px; border-radius: 999px; font-weight: 700; transition: transform 0.2s ease, background 0.2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { color: var(--paper); background: var(--forest); }
.button-dark:hover { background: var(--copper); }
.button-light { color: var(--forest); background: var(--paper); }
.quiet-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; border-bottom: 1px solid var(--ink); padding-bottom: 5px; }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 72px; color: var(--muted); }
.note-mark { color: var(--copper); font-size: 1.2rem; }
.hero-media { position: relative; max-width: 520px; justify-self: end; }
.hero-media::before { position: absolute; content: ''; inset: 22px -22px -22px 22px; border: 1px solid var(--copper); border-radius: 220px 220px 14px 14px; }
.hero-media img { position: relative; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 220px 220px 14px 14px; filter: saturate(0.82); }
.media-label { position: absolute; right: -10px; bottom: 22px; display: grid; gap: 6px; width: min(230px, 54%); padding: 17px; color: var(--paper); background: var(--forest); }
.media-label span { color: #f1b39e; }
.media-label strong { font-family: var(--serif); font-size: 1.2rem; line-height: 1.08; font-weight: 400; }

/* Shared */
.section-label { margin-bottom: 24px; color: var(--copper); }
.manifesto { color: var(--paper); background: var(--forest); }
.manifesto-grid { display: grid; grid-template-columns: 0.4fr 1.3fr 0.45fr; gap: 50px; align-items: start; }
.manifesto .section-label, .section-intro-light .section-label { color: #eeb29f; }
.manifesto-main h2 { max-width: 830px; color: var(--paper); }
.manifesto-main p { max-width: 600px; margin-top: 28px; color: rgba(243, 238, 228, 0.74); font-size: 1.05rem; }
.manifesto-mark { display: grid; gap: 10px; justify-items: end; text-align: right; }
.manifesto-mark strong { color: #eeb29f; font: 5rem var(--serif); line-height: 0.8; }
.manifesto-mark span { color: rgba(243, 238, 228, 0.65); font: 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.section-intro { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.55fr); gap: 80px; align-items: end; margin-bottom: 70px; }
.section-intro h2 { max-width: 720px; }
.section-intro > p { max-width: 390px; color: var(--muted); }
.section-intro-light > p { color: rgba(243, 238, 228, 0.68); }

/* Services */
.services { position: relative; background: var(--paper); }
.services::after { position: absolute; content: 'L'; right: 6vw; bottom: 40px; color: rgba(182, 93, 67, 0.12); font: 22rem var(--serif); line-height: 0.6; pointer-events: none; }
.service-list { border-top: 1px solid var(--line); }
.service-card { display: grid; grid-template-columns: 80px 1fr; gap: 28px; padding: 34px 0; border-bottom: 1px solid var(--line); transition: padding 0.25s var(--ease), background 0.25s ease; }
.service-card:hover { padding-right: 24px; padding-left: 24px; background: var(--paper-deep); }
.service-index { padding-top: 7px; color: var(--copper); }
.service-card h3 { max-width: 600px; }
.service-card p { max-width: 620px; margin-top: 10px; color: var(--muted); }
.service-card-featured { background: rgba(182, 93, 67, 0.07); }
.text-link { display: inline-flex; gap: 8px; margin-top: 18px; color: var(--copper-dark); font-weight: 700; }

/* Systems */
.systems { color: var(--paper); background: var(--forest); }
.systems-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.system-card { position: relative; min-height: 440px; overflow: hidden; background: var(--forest-soft); }
.system-card img { width: 100%; height: 290px; object-fit: cover; opacity: 0.88; transition: transform 0.5s var(--ease); }
.system-card:hover img { transform: scale(1.05); }
.system-card > div { padding: 26px; }
.system-card span { color: #eeb29f; }
.system-card h3 { margin-top: 12px; color: var(--paper); }

/* Field notes */
.work { background: var(--sage); }
.work-grid { display: grid; grid-template-columns: 1.18fr 0.82fr; grid-template-rows: 270px 270px; gap: 20px; }
.work-card { position: relative; min-height: 270px; overflow: hidden; background: var(--forest); border-radius: 2px; }
.work-card-large { grid-row: span 2; }
.work-card-wide { grid-column: 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.72); transition: transform 0.5s var(--ease), filter 0.5s ease; }
.work-card:hover img { transform: scale(1.05); filter: saturate(1); }
.work-card::after { position: absolute; content: ''; inset: 35% 0 0; background: linear-gradient(transparent, rgba(20, 33, 28, 0.9)); }
.work-card > div { position: absolute; z-index: 1; right: 28px; bottom: 24px; left: 28px; color: var(--paper); }
.work-card span { color: #f1b39e; }
.work-card h3 { margin-top: 8px; color: var(--paper); }

/* Profile and approach */
.profile { background: var(--paper-deep); }
.profile-grid, .approach-grid { display: grid; grid-template-columns: 0.9fr 1fr; gap: clamp(50px, 10vw, 150px); align-items: start; }
.profile h2, .approach h2 { max-width: 650px; }
.profile-copy > p, .approach-grid > div > p:last-child { max-width: 560px; color: var(--muted); font-size: 1.08rem; }
.profile-details { margin-top: 48px; border-top: 1px solid var(--line); }
.profile-details > div { display: grid; grid-template-columns: 0.7fr 1fr; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-details span { color: var(--muted); font: 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.profile-details strong { font-weight: 600; }
.approach { background: var(--paper); }
.steps { border-top: 1px solid var(--line); }
.step { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.step > span { color: var(--copper); font: 0.72rem var(--mono); padding-top: 6px; }
.step h3 { font-size: 1.5rem; }
.step p { margin-top: 6px; color: var(--muted); }

/* Contact and footer */
.contact { padding: 112px 0; color: var(--paper); background: var(--copper); }
.contact-grid { display: grid; grid-template-columns: 1fr 0.8fr; gap: 80px; align-items: end; }
.contact .section-label { color: #f7d4c6; }
.contact h2 { max-width: 700px; }
.contact-grid > div > p:last-child { max-width: 560px; margin-top: 26px; color: rgba(255, 253, 248, 0.76); font-size: 1.05rem; }
.contact-actions { display: grid; justify-items: start; gap: 14px; font-weight: 600; }
.contact-actions a:not(.button), .contact-actions address { color: rgba(255, 253, 248, 0.82); font-style: normal; }
.site-footer { color: rgba(243, 238, 228, 0.72); background: var(--forest); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; min-height: 118px; font-size: 0.84rem; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: var(--paper); }
.footer-brand img { width: 92px; height: auto; }
.footer-brand span { color: #eeb29f; font: 0.66rem var(--mono); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-inner a { color: #eeb29f; }

/* Motion */
.js [data-reveal], .js .service-card { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible, .js .service-card.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .container { width: min(100% - 40px, 680px); }
  .section-pad { padding: 92px 0; }
  .hero { padding: 82px 0 110px; }
  .hero-grid, .manifesto-grid, .section-intro, .profile-grid, .approach-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-media { width: min(100%, 570px); justify-self: center; }
  .manifesto-mark { justify-items: start; text-align: left; }
  .section-intro { margin-bottom: 48px; }
  .section-intro > p { max-width: 600px; }
  .systems-grid { grid-template-columns: 1fr 1fr; }
  .system-card:last-child { grid-column: span 2; }
  .contact-grid { gap: 50px; }
}

@media (max-width: 680px) {
  .utility-inner { font-size: 0.58rem; }
  .utility-inner span:last-child { display: none; }
  .nav-wrap { min-height: 74px; }
  .brand { width: 122px; }
  .menu-toggle { display: block; }
  .site-nav { position: absolute; top: 100%; right: 20px; left: 20px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 13px 12px; border-radius: 12px; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .hero { padding: 62px 0 84px; }
  .hero::before { width: 420px; height: 420px; right: -220px; top: 290px; }
  h1 { font-size: clamp(3.6rem, 16vw, 5.8rem); }
  .hero-lede { font-size: 1rem; }
  .hero-note { margin-top: 50px; }
  .hero-media::before { inset: 12px -12px -12px 12px; }
  .media-label { right: 8px; bottom: 12px; width: 52%; }
  .service-card { grid-template-columns: 48px 1fr; gap: 12px; padding: 26px 0; }
  .service-card:hover { padding-right: 10px; padding-left: 10px; }
  .systems-grid, .work-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .system-card:last-child, .work-card-large, .work-card-wide { grid-column: auto; grid-row: auto; }
  .work-card { min-height: 320px; }
  .profile-details > div { grid-template-columns: 1fr; gap: 6px; }
  .footer-inner { flex-direction: column; align-items: flex-start; justify-content: center; padding: 26px 0; }
}

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