:root {
  --deep: #162c29;
  --deep-2: #0d1c1a;
  --ink: #172a27;
  --muted: #65736d;
  --paper: #f1ede4;
  --paper-2: #e2ddd2;
  --line: rgba(23, 42, 39, .18);
  --accent: #9d8755;
  --accent-soft: #d9c698;
  --display: "Libre Baskerville", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", monospace;
}

/* Each page inherits a palette from its hero image. */
body[data-theme="home"] {
  --deep: #1a3a33;
  --deep-2: #0d2520;
  --ink: #1b302b;
  --muted: #64766e;
  --paper: #f2eee5;
  --paper-2: #dfe6dc;
  --accent: #8b7747;
  --accent-soft: #d5c79b;
}
body[data-theme="amber"] {
  --deep: #513c28;
  --deep-2: #2d2118;
  --ink: #30261d;
  --muted: #786b5b;
  --paper: #f2e8d8;
  --paper-2: #dfc79f;
  --accent: #9b6732;
  --accent-soft: #e7ca95;
}
body[data-theme="sea"] {
  --deep: #1e4050;
  --deep-2: #102a36;
  --ink: #1d343f;
  --muted: #647c86;
  --paper: #e8eff0;
  --paper-2: #c5d5d9;
  --accent: #6c8e9d;
  --accent-soft: #c9dfe4;
}
body[data-theme="mono"] {
  --deep: #2a2d2e;
  --deep-2: #131516;
  --ink: #252729;
  --muted: #6d7274;
  --paper: #efefec;
  --paper-2: #d6d7d4;
  --accent: #777c7d;
  --accent-soft: #d8d8d2;
}
body[data-theme="valley"] {
  --deep: #294638;
  --deep-2: #142a20;
  --ink: #27382e;
  --muted: #6b796d;
  --paper: #eef1e7;
  --paper-2: #d0dbc9;
  --accent: #718966;
  --accent-soft: #d1ddc9;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--paper); }
body { margin: 0; min-width: 320px; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
p, h1, h2, h3 { margin-top: 0; }

/* Image-led hero */
.hero { min-height: 90svh; position: relative; isolation: isolate; display: grid; grid-template-rows: auto 1fr auto; padding: 0 5vw 2.15rem; overflow: hidden; background: var(--deep-2); color: #fbf8ef; }
.hero-image, .hero-shade { position: absolute; inset: 0; }
.hero-image { z-index: 0; background-image: var(--hero-image); background-size: cover; background-position: center; filter: saturate(.78) contrast(1.01) brightness(.7); }
.hero-shade { z-index: 1; background: linear-gradient(180deg, rgba(5, 17, 15, .8) 0%, rgba(10, 25, 22, .14) 42%, rgba(7, 15, 13, .84) 100%); }
.hero--home { --hero-image: url("assets/dartmoor-bluebells.jpeg"); min-height: 100svh; }
.hero--bluebells { --hero-image: url("assets/dartmoor-bluebells.jpeg"); }
.hero--home .hero-image, .hero--bluebells .hero-image { background-position: center top; transform: scale(1.05); transform-origin: center top; filter: saturate(.78) contrast(1.02) brightness(.68); }
.hero--home .hero-shade, .hero--bluebells .hero-shade { background: linear-gradient(180deg, rgba(5, 17, 15, .78) 0%, rgba(10, 25, 22, .08) 40%, rgba(7, 15, 13, .86) 100%); }
.hero--amber { --hero-image: url("assets/devon-amber.jpg"); }
.hero--sea { --hero-image: url("assets/atlantic-light.jpg"); }
.hero--mono { --hero-image: url("assets/coastal-monochrome.jpeg"); }
.hero--valley { --hero-image: url("assets/south-west-valley.jpeg"); }
.hero--amber .hero-image { filter: saturate(.82) contrast(1.03) brightness(.72); }
.hero--sea .hero-image { background-position: center 54%; filter: saturate(.78) contrast(1.04) brightness(.68); }
.hero--mono .hero-image { filter: grayscale(1) contrast(1.08) brightness(.58); }
.hero--valley .hero-image { filter: saturate(.72) contrast(1.02) brightness(.68); }
body[data-theme="home"] .hero-shade { background: linear-gradient(180deg, rgba(5, 20, 17, .78) 0%, rgba(18, 38, 30, .12) 42%, rgba(10, 19, 16, .86) 100%); }
body[data-theme="amber"] .hero-shade { background: linear-gradient(180deg, rgba(38, 24, 15, .72) 0%, rgba(54, 38, 22, .08) 42%, rgba(30, 21, 15, .84) 100%); }
body[data-theme="sea"] .hero-shade { background: linear-gradient(180deg, rgba(10, 29, 39, .75) 0%, rgba(13, 39, 52, .1) 44%, rgba(7, 20, 28, .86) 100%); }
body[data-theme="mono"] .hero-shade { background: linear-gradient(180deg, rgba(8, 9, 10, .74) 0%, rgba(20, 22, 23, .08) 44%, rgba(5, 6, 7, .9) 100%); }
body[data-theme="valley"] .hero-shade { background: linear-gradient(180deg, rgba(13, 31, 23, .74) 0%, rgba(24, 49, 33, .08) 44%, rgba(9, 20, 14, .84) 100%); }

.site-header { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; padding-top: 2.25rem; }
.wordmark { display: inline-flex; flex-direction: column; align-items: center; width: max-content; color: #fbf8ef; }
.wordmark span { padding-left: .42em; font-size: 1rem; font-weight: 600; letter-spacing: .42em; line-height: 1; }
.wordmark small { margin-top: .62rem; padding-left: .5em; font-size: .42rem; font-weight: 600; letter-spacing: .5em; line-height: 1; }
.wordmark i { width: 3rem; height: 2px; margin-top: .9rem; background: currentColor; }
.wordmark--dark { color: var(--deep); }
.desktop-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: .35rem 1.5rem; padding-top: .2rem; font: 500 .64rem/1.2 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.desktop-nav a { opacity: .88; transition: opacity .2s ease, color .2s ease; }
.desktop-nav a:hover { opacity: 1; color: var(--accent-soft); }
.desktop-nav .nav-contact { border-bottom: 1px solid currentColor; padding-bottom: .3rem; opacity: 1; }
.mobile-nav { display: none; position: relative; font: 500 .62rem var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.mobile-nav summary { list-style: none; cursor: pointer; border-bottom: 1px solid currentColor; padding-bottom: .35rem; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 2rem; z-index: 4; display: grid; gap: .9rem; width: 13rem; padding: 1.2rem; background: rgba(11, 27, 24, .98); box-shadow: 0 15px 30px rgba(0, 0, 0, .25); }
.mobile-nav nav a { font-size: .7rem; }

.hero-inner { grid-row: 2; align-self: end; position: relative; z-index: 2; width: min(72rem, 100%); padding: 0 3vw 3.5rem; }
.hero--home .hero-inner--home { grid-column: 1 / -1; align-self: stretch; width: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 3vw 3.7rem; }
.hero--home .hero-inner--home .hero-lockup { position: absolute; top: clamp(4rem, 9vh, 8rem); left: 50%; transform: translateX(-50%); }
.hero-lockup { display: flex; flex-direction: column; align-items: center; width: max-content; margin: 0 auto 4.5rem; color: #fbf8ef; text-align: center; text-shadow: 0 1px 20px rgba(0, 0, 0, .24); }
.hero-lockup span { padding-left: .2em; font-size: clamp(3.3rem, 8vw, 9rem); font-weight: 600; letter-spacing: .21em; line-height: .8; white-space: nowrap; }
.hero-lockup small { margin-top: 1.1rem; padding-left: .56em; font-size: clamp(.55rem, 1.1vw, 1rem); font-weight: 600; letter-spacing: .56em; line-height: 1; }
.hero-lockup i { width: 4.25rem; height: 2px; margin-top: 1.65rem; background: currentColor; }
.hero-content { max-width: 56rem; margin-top: auto; }
.eyebrow, .section-kicker, .card-label { margin: 0 0 1.1rem; color: var(--accent-soft); font: 500 .63rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.hero h1 { max-width: 10em; margin-bottom: 1.65rem; font-size: clamp(3rem, 6vw, 6.8rem); font-weight: 500; letter-spacing: -.075em; line-height: .88; }
h1 em, h2 em { font-family: var(--display); font-weight: 400; letter-spacing: -.075em; }
.hero-lede { max-width: 33rem; margin-bottom: 2rem; color: rgba(251, 248, 239, .9); font-size: 1.02rem; line-height: 1.58; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.45rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .95rem 1.25rem; border: 1px solid transparent; font: 500 .65rem/1 var(--mono); letter-spacing: .055em; text-transform: uppercase; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--light { background: #f4f0e6; color: var(--deep); }
.button--light:hover { background: var(--accent-soft); }
.button--dark { background: var(--deep); color: #f4f0e6; }
.button--dark:hover { background: var(--deep-2); }
.button--outline { border-color: currentColor; color: var(--deep); }
.button--outline:hover { background: var(--deep); color: var(--paper); }
.text-link { display: inline-flex; align-items: center; padding-bottom: .38rem; border-bottom: 1px solid currentColor; font: 500 .65rem/1 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.text-link:hover { color: var(--accent-soft); }
.text-link--light { color: #fbf8ef; }
.hero-meta { grid-row: 3; position: relative; z-index: 3; display: flex; justify-content: space-between; gap: 1rem; color: rgba(251, 248, 239, .76); font: 400 .57rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; }

/* Internal pages keep the same image-led language. */
.page-hero .hero-inner { grid-column: 1 / -1; width: min(78rem, 100%); padding: 0 3vw 3.7rem; }
.page-hero .hero-meta { grid-column: 1 / -1; }
.page-hero .hero-lede { max-width: 38rem; }

/* Home narrative */
.section-pad { padding: clamp(5rem, 8.5vw, 8.5rem) 8vw; }
.section-pad--topless { padding-top: 0; }
.section-pad--dark { background: var(--deep); color: #f2eee5; }
.intro-section { background: var(--paper); }
.intro-copy { display: grid; grid-template-columns: minmax(18rem, .8fr) minmax(20rem, 1.15fr); gap: 9vw; align-items: start; }
.intro-copy h2 { margin: 0; font-size: clamp(2.75rem, 5vw, 5.7rem); font-weight: 500; letter-spacing: -.075em; line-height: .93; }
.intro-copy p { max-width: 38rem; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.intro-copy p + p { margin-top: 1.35rem; }
.inline-link { display: inline-block; margin-top: .85rem; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font: 500 .67rem var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.inline-link:hover { color: var(--accent); }
.feature-strip { background: var(--paper-2); }
.feature-strip.section-pad { padding: 0; }
.feature-copy { display: flex; max-width: 72rem; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(5rem, 8vw, 8rem) 8vw; background: var(--paper-2); color: var(--ink); }
.feature-copy .section-kicker { color: var(--accent); }
.feature-copy h2 { max-width: 15em; margin-bottom: 1.4rem; font-size: clamp(2.3rem, 4vw, 4rem); font-weight: 500; letter-spacing: -.065em; line-height: .96; }
.feature-copy p { max-width: 28rem; margin-bottom: 1.8rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.cards-section .section-kicker { margin-bottom: 2.7rem; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.service-card { display: block; min-height: 20rem; background: var(--paper); color: var(--deep); transition: transform .2s ease, background .2s ease; }
.service-card:hover { transform: translateY(-4px); background: #fffdf8; }
.service-card-body { display: flex; min-height: 20rem; flex-direction: column; align-items: flex-start; padding: 2rem 2rem 2.2rem; }
.service-card-body .card-label { color: var(--accent); }
.service-card h3 { max-width: 12em; margin-bottom: 1rem; font-size: clamp(1.65rem, 2.55vw, 2.65rem); font-weight: 500; letter-spacing: -.065em; line-height: .98; }
.service-card p:not(.card-label) { max-width: 29rem; margin-bottom: 1.6rem; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.card-link { display: inline-block; margin-top: auto; padding-bottom: .25rem; border-bottom: 1px solid currentColor; font: 500 .62rem var(--mono); letter-spacing: .055em; text-transform: uppercase; }
.callout { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; background: var(--paper); }
.callout h2 { max-width: 14em; margin: 0; font-size: clamp(2.2rem, 4.4vw, 4.7rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }

/* Shared page sections */
.page-content { background: var(--paper); }
.page-intro { display: grid; grid-template-columns: minmax(17rem, .7fr) minmax(20rem, 1.2fr); gap: 9vw; }
.page-intro h2 { margin: 0; font-size: clamp(2.5rem, 4.8vw, 5rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.page-intro p { max-width: 40rem; color: var(--muted); font-size: 1.06rem; line-height: 1.67; }
.page-intro p + p { margin-top: 1.35rem; }
.dark-band { background: var(--deep); color: #f1ede4; }
.dark-band .section-kicker { color: var(--accent-soft); }
.dark-band h2 { max-width: 15em; margin-bottom: 2.5rem; font-size: clamp(2.5rem, 4.6vw, 5rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem; }
.principle { border-top: 1px solid rgba(244, 240, 231, .35); padding-top: 1.1rem; }
.principle h3 { margin: 3.1rem 0 1rem; font-size: 1.35rem; font-weight: 500; letter-spacing: -.04em; }
.principle p { margin: 0; color: #c7d0c5; font-size: .95rem; line-height: 1.6; }
.split-story { display: grid; grid-template-columns: 1fr 1fr; min-height: 29rem; }
.split-story-image { background-size: cover; background-position: center; }
.split-story-copy { display: flex; flex-direction: column; justify-content: center; padding: 5rem 8vw; background: var(--paper-2); }
.split-story-copy h2 { max-width: 12em; margin-bottom: 1.35rem; font-size: clamp(2.2rem, 4vw, 4.1rem); font-weight: 500; letter-spacing: -.07em; line-height: .96; }
.split-story-copy p { max-width: 30rem; margin-bottom: 1.8rem; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.about-story { display: block; }
.about-story .split-story-copy { min-height: 25rem; }
.land-values .split-story-copy { background: var(--paper-2); }
.land-values .split-story-copy .section-kicker { color: var(--accent); }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.opportunity { display: block; padding: 1.65rem 1.6rem 1.8rem; border: 1px solid var(--line); background: rgba(255, 255, 255, .2); }
.dark-band .opportunity { border-color: rgba(244, 240, 231, .25); background: rgba(255, 255, 255, .035); }
.opportunity h3 { margin: 2.2rem 0 .7rem; font-size: 1.3rem; font-weight: 500; letter-spacing: -.04em; }
.opportunity p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.dark-band .opportunity p { color: #c7d0c5; }
.section-heading { max-width: 15em; margin: 0 0 2.5rem; font-size: clamp(2.5rem, 4.6vw, 5rem); font-weight: 500; letter-spacing: -.07em; line-height: .95; }
.process-list { display: grid; gap: 0; }
.process-row { display: grid; grid-template-columns: 5rem 1fr 1fr; gap: 2rem; align-items: start; padding: 1.65rem 0; border-top: 1px solid var(--line); }
.process-row:last-child { border-bottom: 1px solid var(--line); }
.process-row > span { color: var(--accent); font: .65rem var(--mono); letter-spacing: .06em; }
.process-row h3 { margin: 0; font-size: 1.4rem; font-weight: 500; letter-spacing: -.04em; }
.process-row p { max-width: 29rem; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
.contact-layout { display: grid; grid-template-columns: minmax(18rem, .85fr) minmax(20rem, 1.15fr); gap: 9vw; }
.contact-layout h2 { margin: 0; font-size: clamp(2.8rem, 5vw, 5.6rem); font-weight: 500; letter-spacing: -.08em; line-height: .91; }
.contact-list { display: grid; gap: 1.1rem; align-content: start; }
.contact-list > p { max-width: 31rem; margin: 0 0 1rem; color: var(--muted); font-size: 1.05rem; line-height: 1.62; }
.contact-item { display: block; width: max-content; max-width: 100%; padding-bottom: .35rem; border-bottom: 1px solid var(--ink); font-size: clamp(1rem, 1.8vw, 1.45rem); overflow-wrap: anywhere; }
.contact-item:hover { color: #887242; }
.small-note { margin-top: 2rem; color: var(--muted); font: .64rem/1.55 var(--mono); letter-spacing: .02em; }

/* Footer */
.site-footer { display: grid; grid-template-columns: 1fr 1.7fr 1fr; gap: 2rem; align-items: start; padding: 3.4rem 8vw 3.7rem; background: var(--paper-2); color: var(--deep); }
.site-footer .wordmark { align-items: flex-start; }
.site-footer .wordmark span, .site-footer .wordmark small { padding-left: 0; }
.site-footer .wordmark i { margin-left: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: .7rem 1.6rem; font: 500 .63rem var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.footer-links a:hover { color: var(--accent); }
.site-footer p { justify-self: end; margin: 0; color: var(--muted); font: .62rem/1.55 var(--mono); letter-spacing: .03em; text-align: right; text-transform: uppercase; }

@media (max-width: 880px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero, .hero--home, .page-hero { min-height: 84svh; padding: 0 1.25rem 1.5rem; }
  .site-header { padding-top: 1.45rem; }
  .wordmark span { font-size: .8rem; }
  .wordmark small { margin-top: .48rem; font-size: .34rem; }
  .wordmark i { width: 2.35rem; margin-top: .7rem; }
  .hero-inner, .hero--home .hero-inner--home, .page-hero .hero-inner { width: 100%; padding: 0 0 2rem; }
  .hero--home .hero-inner--home .hero-lockup { top: 2.5rem; }
  .hero-lockup span { font-size: clamp(2.5rem, 12vw, 4.1rem); letter-spacing: .17em; }
  .hero-lockup small { margin-top: .85rem; font-size: .45rem; letter-spacing: .48em; padding-left: .48em; }
  .hero-lockup i { width: 3.1rem; margin-top: 1.15rem; }
  .hero--home .hero-lockup { margin-bottom: 2.3rem; }
  .hero h1, .page-hero h1 { max-width: 9em; font-size: clamp(2.7rem, 11vw, 4.7rem); }
  .hero-lede { max-width: 30rem; font-size: .96rem; }
  .hero-meta { font-size: .51rem; }
  .section-pad { padding: 5.7rem 1.25rem; }
  .section-pad--topless { padding-top: 0; }
  .intro-copy, .page-intro, .contact-layout { display: block; }
  .intro-copy h2, .page-intro h2, .section-heading { margin-bottom: 2.2rem; font-size: 3rem; }
  .intro-copy p, .page-intro p { font-size: .98rem; }
  .feature-copy { padding: 4.5rem 1.25rem 5rem; }
  .feature-copy h2 { font-size: 2.65rem; }
  .card-grid, .principles-grid, .opportunity-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .service-card, .service-card-body { min-height: 0; }
  .service-card-body { padding: 1.7rem 1.5rem 1.9rem; }
  .service-card h3 { font-size: 2rem; }
  .callout { display: block; }
  .callout h2 { margin-bottom: 2.2rem; font-size: 2.8rem; }
  .site-footer { display: block; padding: 3rem 1.25rem; }
  .site-footer .wordmark { margin-bottom: 2.5rem; }
  .footer-links { display: grid; gap: 1rem; margin-bottom: 2.4rem; }
  .site-footer p { text-align: left; }
  .split-story { display: block; }
  .split-story-image { min-height: 19rem; }
  .split-story-copy, .about-story .split-story-copy { min-height: 0; padding: 4rem 1.25rem 4.3rem; }
  .split-story-copy h2 { font-size: 2.65rem; }
  .process-row { grid-template-columns: 2.6rem 1fr; gap: .9rem; }
  .process-row p { grid-column: 2; }
}

@media (max-width: 420px) {
  .hero-meta span:last-child { display: none; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { min-width: 13rem; }
  .hero h1 { font-size: 2.75rem; }
}
