/* Homepage design tokens, scoped so the rest of the website is unchanged. */
body[data-page="home"] {
  --home-section-space: clamp(82px, 9.6vw, 150px);
  --home-section-min: clamp(560px, 70vh, 760px);
  --home-heading-size: clamp(38px, 4.5vw, 66px);
  --home-copy-size: clamp(15px, 1.1vw, 16px);
  --home-hero-tagline-size: clamp(18px, 1.6vw, 22px);
  --home-copy-line: 1.85;
  --home-copy-width: 510px;
  --home-grid-gap: clamp(40px, 7.5vw, 120px);
}
body[data-page="home"] main > section:not(.home-hero){display:flex;align-items:center;min-height:var(--home-section-min);padding:var(--home-section-space) 0}
body[data-page="home"] main section h2{font-family:var(--serif);font-size:var(--home-heading-size);font-weight:700;line-height:1.12;letter-spacing:-.035em}
body[data-page="home"] main section h2 em{font-weight:700}
body[data-page="home"] main :is(.home-section-intro,.lead,.intro-copy>p:not(.eyebrow),.founders-preview__copy>p:not(.eyebrow),.philosophy__copy>p,.property-preview__copy>p:not(.eyebrow),.purpose-strip__copy>p,.pillars p,.product-card__description){font-family:var(--sans);font-size:var(--home-copy-size);font-weight:400;line-height:var(--home-copy-line);letter-spacing:normal}
body[data-page="home"] main :is(.arrow-link,.text-link,.product-card__link){font-family:var(--sans);font-size:10px;font-weight:600;line-height:1.4;letter-spacing:.12em;text-transform:uppercase}
body[data-page="home"] .home-section-intro{margin:24px 0 0;max-width:var(--home-copy-width)}
body[data-page="home"] .ventures-section .home-section-intro{margin-top:30px;max-width:1000px}
body[data-page="home"] .split,body[data-page="home"] .contact-grid{gap:var(--home-grid-gap)}

/* Preserve the existing blended hero. */
body[data-page="home"] .home-hero{display:block;position:relative;overflow:hidden;background:var(--forest);color:var(--cream)}
body[data-page="home"] .home-hero__content{position:relative;z-index:2;width:56%;height:100%;padding-right:0}
body[data-page="home"] .home-hero h1{color:var(--cream)}
body[data-page="home"] .home-hero .eyebrow{color:var(--cream)}
body[data-page="home"] .home-hero__subtitle{font-family:var(--sans);font-size:var(--home-hero-tagline-size);font-weight:500;line-height:1.5}
body[data-page="home"] .home-hero__intro{font-size:var(--home-copy-size);line-height:var(--home-copy-line);color:var(--cream);opacity:.9}
body[data-page="home"] .home-hero__image{position:absolute;inset:0 0 0 26%;height:100%;background:var(--forest)}
body[data-page="home"] .home-hero__image img{height:100%;width:100%;object-fit:cover;object-position:5% center}
body[data-page="home"] .home-hero__image::after{background:linear-gradient(90deg,#38453b 0%,rgba(56,69,59,.98) 8%,rgba(56,69,59,.83) 22%,rgba(56,69,59,.32) 46%,rgba(56,69,59,.08) 76%),linear-gradient(0deg,rgba(56,69,59,.45),transparent 36%)}
body[data-page="home"] .home-hero__image-caption{left:auto;right:var(--pad);gap:34px;padding-right:calc(34px + 4.27em);color:var(--cream)}
body[data-page="home"] .hero-bottom{z-index:2;color:var(--cream);opacity:.8}

/* Alternate only the two established full-section colours. */
body[data-page="home"] :is(.intro-section,.pillars-section,.ventures-section,.purpose-strip){background:var(--cream);color:var(--forest)}
body[data-page="home"] :is(.founders-preview,.philosophy,.property-preview,.contact-section,.site-footer){background:var(--forest);color:var(--cream)}
body[data-page="home"] :is(.intro-section,.pillars-section,.ventures-section,.purpose-strip) .eyebrow,body[data-page="home"] .intro-copy>p:not(.lead){color:var(--forest)}
body[data-page="home"] :is(.founders-preview,.philosophy,.property-preview,.contact-section) .eyebrow{color:var(--cream)}
body[data-page="home"] .property-preview .caption,body[data-page="home"] .contact-links span{color:var(--cream)}
body[data-page="home"] .contact-links a{border-color:rgba(252,250,245,.38)}
body[data-page="home"] .intro-layout{display:block}
body[data-page="home"] .intro-copy,body[data-page="home"] .intro-copy>p:not(.lead){max-width:1000px}
body[data-page="home"] .pillars-section .home-section-intro{max-width:950px}

/* Three pillars retain their existing grid and gutters. */
body[data-page="home"] .pillars{gap:24px}
body[data-page="home"] .pillars article{border-color:rgba(56,69,59,.38)}
body[data-page="home"] .pillars .number,body[data-page="home"] .pillars p{color:var(--forest)}
body[data-page="home"] .pillars .number{font-size:10px;font-weight:600;letter-spacing:.19em}

/* Equal card architecture; each original mark keeps its own brand colours. */
body[data-page="home"] .product-cards{display:grid;width:min(100%,1000px);margin-inline:auto;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:clamp(32px,6.5vw,80px)}
body[data-page="home"] .product-card{display:flex;flex-direction:column;min-width:0;border:1px solid var(--forest);background:var(--forest);color:var(--cream)}
body[data-page="home"] .product-card__mark{position:relative;width:100%;height:auto;aspect-ratio:6/5;flex:0 0 auto;display:flex;align-items:center;justify-content:center;overflow:hidden}
body[data-page="home"] .product-card__mark--black{background:#000}
body[data-page="home"] .product-card__mark--cream{background:var(--cream);box-shadow:inset 0 0 0 2px #573722}
body[data-page="home"] .product-card__mark img{display:block;width:auto;height:auto;max-width:72%;max-height:80%;object-fit:contain}
body[data-page="home"] .product-card__mark .product-card__viiir{width:52%}
body[data-page="home"] .product-card__mark .product-card__nda{width:58%;mix-blend-mode:multiply}
body[data-page="home"] .product-card__mark .product-card__gotickety{width:68%}
body[data-page="home"] .product-card__body{display:flex;flex-direction:column;flex:1;padding:25px 26px 27px}
body[data-page="home"] .product-card__status{position:absolute;top:15px;left:18px;z-index:1;margin:0;color:var(--cream);font-size:9px;font-weight:600;letter-spacing:.14em;line-height:1.5;text-transform:uppercase}
body[data-page="home"] .product-card__mark--cream .product-card__status{color:#573722}
body[data-page="home"] .product-card__sector{font-size:12px;font-weight:600;letter-spacing:.02em;line-height:1.6;margin:0 0 14px}
body[data-page="home"] .product-card__description{margin:0 0 8px}
body[data-page="home"] .product-card__link{display:flex;justify-content:space-between;align-items:center;gap:14px;width:100%;margin-top:auto;padding-top:20px}
body[data-page="home"] .product-card__link span{font-size:16px;line-height:1}
body[data-page="home"] .product-card__link:hover{text-decoration:underline;text-underline-offset:5px}
body[data-page="home"] .ventures-section .section-end{margin-top:42px}

/* Supplied colour-matched photographs, shown in equal frames without filters. */
body[data-page="home"] .founders-values{display:block;margin:0 0 1.3em;color:var(--cream);font-family:var(--sans);font-size:var(--home-copy-size);font-weight:400;line-height:var(--home-copy-line);letter-spacing:normal;text-align:left}
body[data-page="home"] .founders-values span{display:block;font:inherit;font-style:normal}
body[data-page="home"] .founders-values span+span{margin-top:4px}
body[data-page="home"] .founder-pair figure:nth-child(2){padding-top:0}
body[data-page="home"] .founder-pair__image{position:relative;width:100%;aspect-ratio:3/4;overflow:hidden}
body[data-page="home"] .founder-pair__image img{position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center top;aspect-ratio:auto}
body[data-page="home"] .founder-pair figcaption span{color:var(--cream);opacity:.75}

/* The two philosophy sections use the shared grid and text system. */
body[data-page="home"] .philosophy{text-align:left}
body[data-page="home"] .philosophy__inner{max-width:1440px;display:block}
body[data-page="home"] .philosophy h2{margin:0 0 30px}
body[data-page="home"] .philosophy__copy{width:100%;max-width:850px}
body[data-page="home"] .philosophy__copy p{width:100%;max-width:850px;margin:0 0 1.3em}

/* Purpose and contact copy start at the same point of the shared grid. */
body[data-page="home"] .purpose-strip__inner{grid-template-columns:1fr 1fr;gap:30px var(--home-grid-gap);align-items:start;padding-top:34px;border-top:0}
body[data-page="home"] .purpose-strip__inner>div:first-child{grid-column:1/-1}
body[data-page="home"] .purpose-strip h2{max-width:1050px}
body[data-page="home"] .purpose-strip__copy{grid-column:2;justify-self:start;text-align:left}
body[data-page="home"] .purpose-strip__copy,body[data-page="home"] .contact-grid>div:last-child>p{width:100%;max-width:var(--home-copy-width)}
body[data-page="home"] .purpose-strip__copy p{width:100%;max-width:var(--home-copy-width);margin:0 0 1.3em}
body[data-page="home"] .purpose-strip__links{display:flex;flex-wrap:wrap;justify-content:flex-start;gap:4px 30px}

/* Stack the contact heading above the right-column copy, as in Purpose. */
body[data-page="home"] .contact-grid{grid-template-columns:1fr 1fr;gap:30px var(--home-grid-gap);align-items:start}
body[data-page="home"] .contact-grid>div:first-child{grid-column:1/-1}
body[data-page="home"] .contact-grid>div:last-child{grid-column:2;min-width:0}
/* Let the contact section fit its content and keep a comfortable footer transition. */
body[data-page="home"] main > section.contact-section{min-height:0;padding-bottom:clamp(32px,4vw,56px)}
body[data-page="home"] .site-footer{padding-top:clamp(40px,4.5vw,64px)}

@media(min-width:601px){
 body[data-page="home"] .founders-preview__copy p:not(.eyebrow){width:calc(100% + 28px);max-width:560px}
 body[data-page="home"] .founders-values{width:calc(100% + 28px);max-width:560px}
}
@media(min-width:601px) and (max-width:740px){
 body[data-page="home"] .founders-preview__grid{grid-template-columns:1fr}
 body[data-page="home"] .founders-preview__copy p:not(.eyebrow),body[data-page="home"] .founders-values{width:100%;max-width:100%}
}

@media(max-width:850px){
 body[data-page="home"] .home-hero{height:auto;min-height:680px;max-height:none}
 body[data-page="home"] .home-hero__content{width:80%;min-height:680px;padding:80px var(--pad) 110px}
 body[data-page="home"] .home-hero__image{inset:0;height:100%}
 /* Keep the focal point continuous as the narrow hero becomes a tablet layout. */
 body[data-page="home"] .home-hero__image img{object-position:calc(15% + min(0px,87.5vw - 665px)) center}
 body[data-page="home"] .home-hero__image::after{background:linear-gradient(90deg,rgba(56,69,59,.99) 0%,rgba(56,69,59,.9) 34%,rgba(56,69,59,.5) 68%,rgba(56,69,59,.24) 100%),linear-gradient(0deg,rgba(56,69,59,.58),transparent 45%)}
 body[data-page="home"] .product-cards{width:min(100%,700px);grid-template-columns:repeat(2,minmax(0,1fr));gap:32px}
}
@media(max-width:600px){
 body[data-page="home"]{--home-section-space:80px;--home-heading-size:40px}
 body[data-page="home"] .home-hero{min-height:640px}
 body[data-page="home"] .home-hero__content{width:100%;min-height:640px;padding:72px var(--pad) 100px}
 body[data-page="home"] .home-hero__image img{object-position:53% center}
 body[data-page="home"] .home-hero__image::after{background:linear-gradient(90deg,rgba(56,69,59,.97) 0%,rgba(56,69,59,.88) 50%,rgba(56,69,59,.63) 100%),linear-gradient(0deg,rgba(56,69,59,.6),transparent 45%)}
 body[data-page="home"] .home-hero__image-caption{right:var(--pad);bottom:22px;font-size:8px}
 body[data-page="home"] .home-hero__intro{max-width:310px}
 body[data-page="home"] .product-cards{width:min(100%,320px);grid-template-columns:1fr;gap:24px}
 body[data-page="home"] .product-card__body{min-height:190px;padding:23px}
 body[data-page="home"] .purpose-strip__inner{grid-template-columns:1fr;gap:30px}
 body[data-page="home"] .purpose-strip__inner>div:first-child,body[data-page="home"] .purpose-strip__copy{grid-column:auto}
 body[data-page="home"] .purpose-strip__copy{justify-self:start;text-align:left}
 body[data-page="home"] .purpose-strip__links{justify-content:flex-start}
 body[data-page="home"] .contact-grid{grid-template-columns:1fr;gap:30px}
 body[data-page="home"] .contact-grid>div:first-child,body[data-page="home"] .contact-grid>div:last-child{grid-column:auto}
}
