:root {
  --paper: #f4f1e9;
  --paper-2: #ebe6da;
  --white: #fbfaf6;
  --ink: #171816;
  --muted: #69675f;
  --line: rgba(23, 24, 22, .18);
  --gold: #9a7447;
  --sage: #7f8a78;
  --serif: 'Prata', Georgia, serif;
  --sans: 'Manrope', Arial, sans-serif;
  box-sizing: border-box;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--sans); -webkit-font-smoothing: antialiased; }
body, button, input, textarea { font-family: var(--sans); }
img { display: block; width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 { margin-bottom: 32px; font-size: clamp(3.2rem, 7.6vw, 7.6rem); line-height: .97; letter-spacing: -.055em; }
h2 { margin-bottom: 24px; font-size: clamp(2.35rem, 5vw, 5rem); line-height: 1.03; letter-spacing: -.045em; }
h3 { line-height: 1.25; }
.wrap { width: min(1320px, calc(100% - 72px)); margin: 0 auto; }
.section { padding: 126px 0; border-top: 1px solid var(--line); }
.section-kicker, .eyebrow { margin-bottom: 20px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244, 241, 233, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 16px var(--serif); }
.site-nav { margin-left: auto; display: flex; gap: 28px; align-items: center; }
.site-nav a, .header-cta { font-size: 13px; font-weight: 600; text-decoration: none; }
.site-nav a { position: relative; color: var(--muted); }
.site-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -6px; height: 1px; background: var(--ink); transition: right .25s ease; }
.site-nav a:hover { color: var(--ink); }
.site-nav a:hover::after { right: 0; }
.header-cta { margin-left: 8px; padding: 12px 18px; border: 1px solid var(--ink); border-radius: 99px; transition: background .2s, color .2s; }
.header-cta:hover { background: var(--ink); color: var(--white); }
.menu-button { display: none; margin-left: auto; padding: 10px 0; border: 0; background: transparent; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 22px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #2b2d28; }
.button:disabled { opacity: .55; cursor: progress; transform: none; }
.text-action { display: inline-flex; align-items: center; min-height: 48px; color: var(--muted); font-size: 13px; font-weight: 700; text-underline-offset: 5px; }
.text-action:hover { color: var(--ink); }

.hero { min-height: calc(100vh - 84px); display: grid; align-items: center; padding: 70px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, .93fr) minmax(480px, 1.07fr); gap: 70px; align-items: center; }
.hero-copy em { display: block; color: var(--gold); font-style: normal; }
.hero-lead { max-width: 680px; margin-bottom: 36px; color: var(--muted); font-size: clamp(1.06rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; }
.hero-stage { position: relative; min-height: 650px; }
.stage-card { position: absolute; overflow: hidden; background: var(--white); box-shadow: 0 22px 70px rgba(49, 43, 32, .16); }
.stage-card img { height: 100%; object-fit: cover; }
.stage-card span { position: absolute; left: 18px; bottom: 16px; padding: 8px 11px; background: rgba(251, 250, 246, .88); font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(8px); }
.stage-main { left: 8%; top: 0; width: 53%; height: 83%; transform: rotate(-2deg); }
.stage-main img { object-position: center top; }
.stage-small { right: 0; bottom: 4%; width: 52%; height: 44%; transform: rotate(2.5deg); }
.stage-seal { position: absolute; left: 3%; bottom: 4%; width: 116px; height: 116px; display: grid; place-content: center; border: 1px solid var(--ink); border-radius: 50%; background: var(--paper); font: 25px/1 var(--serif); text-align: center; transform: rotate(-9deg); }
.stage-seal small { margin-top: 8px; font: 8px var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.signal-bar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.signal-bar .wrap { min-height: 70px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.signal-bar span { padding-left: 24px; border-left: 1px solid var(--line); color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.signal-bar span:first-child { padding-left: 0; border-left: 0; }

.intro-grid { display: grid; grid-template-columns: minmax(180px, .5fr) minmax(0, 1.5fr); gap: 90px; }
.intro-grid h2 { max-width: 980px; }
.intro-grid > div > p { max-width: 720px; margin: 0 0 0 auto; color: var(--muted); font-size: 18px; }
.section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 70px; align-items: end; margin-bottom: 62px; }
.section-head h2 { margin-bottom: 0; }
.section-head > p { max-width: 530px; margin: 0; color: var(--muted); }

.projects { background: var(--white); }
.projects-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 34px; }
.project-card { grid-column: span 6; display: flex; min-width: 0; flex-direction: column; background: var(--paper); color: var(--ink); text-decoration: none; transition: transform .35s ease, box-shadow .35s ease; }
.project-card:hover { transform: translateY(-7px); box-shadow: 0 28px 70px rgba(49, 43, 32, .13); }
.project-card-0:nth-child(6n + 1), .project-card-2:nth-child(6n + 3) { grid-column: span 7; }
.project-card-1:nth-child(6n + 2), .project-card-0:nth-child(6n + 4) { grid-column: span 5; }
.project-image { aspect-ratio: 16 / 10; overflow: hidden; background: #ded8cb; }
.project-image img { height: 100%; object-fit: cover; object-position: top center; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.project-card:hover .project-image img { transform: scale(1.025); }
.project-card:first-child .project-image img { object-position: center 18%; }
.project-card-copy { min-height: 320px; display: flex; flex-direction: column; padding: 30px 32px 28px; }
.project-meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 45px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.project-card h3 { margin: 0 0 14px; font: 400 clamp(1.8rem, 3vw, 3.2rem)/1.03 var(--serif); letter-spacing: -.035em; }
.project-card p { max-width: 520px; margin-bottom: 26px; color: var(--muted); }
.project-link { margin-top: auto; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.project-link b { float: right; color: var(--ink); }

.expertise-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.expertise-grid article { min-height: 350px; padding: 28px 24px 28px 0; border-bottom: 1px solid var(--ink); }
.expertise-grid article + article { padding-left: 24px; border-left: 1px solid var(--line); }
.expertise-grid span { color: var(--gold); font-size: 10px; font-weight: 700; }
.expertise-grid h3 { margin: 105px 0 16px; font: 400 1.55rem/1.15 var(--serif); }
.expertise-grid p { margin: 0; color: var(--muted); font-size: 14px; }

.principles { background: var(--ink); color: var(--white); }
.principles .section-kicker { color: #c5a77e; }
.principles-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); gap: 100px; }
.principles h2 { font-size: clamp(2.7rem, 5.5vw, 5.8rem); }
.principles ol { padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.32); }
.principles li { display: grid; grid-template-columns: 45px 1fr; gap: 20px; padding: 25px 0; border-bottom: 1px solid rgba(255,255,255,.32); }
.principles li > span { padding-top: 3px; color: #c5a77e; font-size: 10px; }
.principles h3 { margin: 0 0 7px; font: 400 1.25rem var(--serif); }
.principles li p { margin: 0; color: rgba(255,255,255,.64); font-size: 14px; }

.more { background: var(--paper-2); }
.product-list { border-top: 1px solid var(--ink); }
.product-row { display: grid; grid-template-columns: 55px minmax(180px, .7fr) minmax(300px, 1.3fr) 28px; gap: 28px; align-items: center; padding: 27px 0; border-bottom: 1px solid var(--ink); text-decoration: none; transition: padding .25s ease, color .25s ease; }
.product-row:hover { padding-left: 10px; color: var(--gold); }
.product-row > span { color: var(--gold); font-size: 10px; }
.product-row h3 { margin: 0; font: 400 1.6rem var(--serif); }
.product-row p { margin: 0; color: var(--muted); }
.product-row b { font-size: 18px; font-weight: 400; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .8fr); gap: 100px; align-items: start; }
.contact-grid > div > p:not(.section-kicker) { max-width: 580px; color: var(--muted); font-size: 18px; }
.contact-note { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.contact-note span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.lead-form { padding: 34px; border: 1px solid var(--line); background: var(--white); }
.lead-form label { display: block; margin-bottom: 23px; color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.lead-form input, .lead-form textarea { width: 100%; margin-top: 9px; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; line-height: 1.5; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus { border-color: var(--ink); }
.lead-form .button { width: 100%; margin-top: 5px; }
.lead-form small, .form-status { display: block; margin: 14px 0 0; color: var(--muted); font-size: 11px; }
.form-status { min-height: 18px; }
.form-status.is-success { color: #476643; }
.form-status.is-error { color: #9a3f35; }

.site-footer { padding: 70px 0 38px; border-top: 1px solid var(--line); background: var(--paper-2); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 70px; }
.brand-footer { margin-bottom: 20px; }
.footer-grid p { color: var(--muted); font-size: 13px; }
.footer-nav { display: grid; align-content: start; gap: 10px; }
.footer-nav a, .footer-meta a { font-size: 13px; text-underline-offset: 4px; }
.footer-meta { text-align: right; }

[data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* Project pages */
.case-hero { padding: 52px 0 0; }
.back-link { display: inline-block; margin-bottom: 70px; color: var(--muted); font-size: 12px; font-weight: 700; text-underline-offset: 5px; }
.case-title-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(330px, .7fr); gap: 80px; align-items: end; margin-bottom: 62px; }
.case-title-grid h1 { margin: 0; font-size: clamp(3.4rem, 7vw, 7.2rem); }
.case-deck > p { color: var(--muted); font-size: 19px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 99px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.case-cover { height: min(68vw, 820px); margin: 0; overflow: hidden; background: #ddd5c6; }
.case-cover img { height: 100%; object-fit: cover; object-position: top center; }
.case-story { background: var(--white); }
.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 90px; }
.story-grid article { padding-right: 45px; }
.story-grid article + article { padding: 0 0 0 70px; border-left: 1px solid var(--line); }
.story-grid h2 { font-size: clamp(2.2rem, 4vw, 3.9rem); }
.story-grid article > p:last-child { color: var(--muted); font-size: 18px; }
.case-results { background: var(--paper-2); }
.results-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 100px; }
.results-grid ol { padding: 0; margin: 0; list-style: none; counter-reset: result; border-top: 1px solid var(--ink); }
.results-grid li { counter-increment: result; position: relative; padding: 28px 40px 28px 70px; border-bottom: 1px solid var(--ink); font: 400 clamp(1.4rem, 2.4vw, 2.35rem)/1.25 var(--serif); }
.results-grid li::before { content: '0' counter(result); position: absolute; left: 0; top: 35px; color: var(--gold); font: 10px var(--sans); }
.case-details { background: var(--ink); color: var(--white); }
.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.22); }
.detail-grid article { min-height: 300px; padding: 35px; background: var(--ink); }
.detail-grid span { color: #c5a77e; font-size: 10px; }
.detail-grid p { max-width: 510px; margin: 100px 0 0; color: rgba(255,255,255,.72); font-size: 17px; }
.case-gallery { background: var(--white); }
.case-figure { margin: 0 0 44px; padding: 26px; background: var(--paper); }
.case-figure:last-child { margin-bottom: 0; }
.case-figure img { max-height: 900px; object-fit: contain; object-position: top center; }
.case-next { text-align: center; }
.case-next h2 { max-width: 900px; margin: 0 auto 36px; }
.case-next > .wrap > div { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 25px; }
.not-found { min-height: 70vh; display: grid; align-items: center; padding: 100px 0; }
.not-found p:not(.section-kicker) { color: var(--muted); font-size: 18px; }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 35px; }
  .hero-stage { min-height: 540px; }
  .projects-grid { gap: 24px; }
  .project-card, .project-card-0:nth-child(6n + 1), .project-card-2:nth-child(6n + 3), .project-card-1:nth-child(6n + 2), .project-card-0:nth-child(6n + 4) { grid-column: span 6; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid article:nth-child(3) { border-left: 0; }
  .principles-grid, .contact-grid { gap: 55px; }
}

@media (max-width: 780px) {
  .wrap { width: min(100% - 32px, 680px); }
  .section { padding: 86px 0; }
  .header-inner { min-height: 70px; }
  .menu-button { display: block; }
  .header-cta { display: none; }
  .site-nav { position: absolute; left: 0; right: 0; top: 70px; display: none; padding: 22px 16px 28px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .site-nav.is-open { display: grid; gap: 14px; }
  .site-nav a { font-size: 16px; }
  .hero { min-height: auto; padding-top: 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { min-height: 540px; margin-top: 25px; }
  .stage-main { left: 0; width: 60%; }
  .stage-small { width: 56%; }
  .signal-bar .wrap { grid-template-columns: repeat(2, 1fr); padding: 18px 0; row-gap: 18px; }
  .signal-bar span:nth-child(3) { padding-left: 0; border-left: 0; }
  .intro-grid, .section-head, .principles-grid, .contact-grid, .case-title-grid, .story-grid, .results-grid { grid-template-columns: 1fr; gap: 34px; }
  .intro-grid > div > p { margin-left: 0; }
  .section-head { align-items: start; }
  .projects-grid { display: block; }
  .project-card { margin-bottom: 24px; }
  .project-card-copy { min-height: 280px; padding: 25px 24px; }
  .project-meta { margin-bottom: 32px; }
  .expertise-grid { grid-template-columns: 1fr; }
  .expertise-grid article, .expertise-grid article + article, .expertise-grid article:nth-child(3) { min-height: 280px; padding: 26px 0; border-left: 0; }
  .expertise-grid h3 { margin-top: 75px; }
  .product-row { grid-template-columns: 35px 1fr 24px; gap: 15px; }
  .product-row p { grid-column: 2 / 4; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-meta { grid-column: 1 / -1; padding-top: 25px; border-top: 1px solid var(--line); text-align: left; }
  .back-link { margin-bottom: 48px; }
  .case-hero { padding-top: 38px; }
  .case-cover { height: 70vw; }
  .story-grid article, .story-grid article + article { padding: 0; border-left: 0; }
  .story-grid article + article { padding-top: 35px; border-top: 1px solid var(--line); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-grid article { min-height: 240px; }
  .detail-grid p { margin-top: 70px; }
  .case-figure { padding: 12px; }
}

@media (max-width: 480px) {
  h1 { font-size: clamp(3rem, 16vw, 5rem); }
  h2 { font-size: clamp(2.15rem, 11vw, 3.2rem); }
  .hero-stage { min-height: 440px; }
  .stage-main { width: 68%; height: 78%; }
  .stage-small { width: 62%; height: 42%; }
  .stage-seal { width: 92px; height: 92px; font-size: 20px; }
  .project-image { aspect-ratio: 4 / 3; }
  .project-card h3 { font-size: 2rem; }
  .principles li { grid-template-columns: 32px 1fr; gap: 12px; }
  .lead-form { padding: 25px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { grid-column: auto; }
  .case-title-grid h1 { font-size: clamp(2.35rem, 10.5vw, 3.6rem); overflow-wrap: anywhere; }
  .case-cover { height: 82vw; }
  .results-grid li { padding-right: 0; padding-left: 46px; }
}

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