/* Cory's Home hero: Sean's animated crest (2026-11-24.4/logo-assembly.js, unchanged)
   inside the simple centered layout with six orbiting service chips.
   Scoped to .crest-hero so no other page or section is affected. */
@font-face{font-family:"Archivo Pinecrest";src:url('/releases/2026-10-09.1/assets/brand/archivo-marketing.ttf') format('truetype');font-weight:100 900;font-style:normal;font-display:swap}

.crest-hero{
 --night:#0c174a;--cyan:#00bfed;--ease:cubic-bezier(.22,.8,.2,1);
 position:relative;overflow:hidden;isolation:isolate;
 min-height:calc(100svh - var(--header));padding:12px 0 clamp(24px,3.6vh,48px);
 display:flex;flex-direction:column;justify-content:flex-end;
 background:
  linear-gradient(var(--night),transparent 140px),
  radial-gradient(60% 50% at 50% 38%,rgba(0,191,237,.16),transparent 70%),
  radial-gradient(100% 80% at 50% 30%,#13246e 0%,var(--night) 90%);
 color:#fff;text-align:center;
 font-family:"Archivo Pinecrest",Archivo,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
 -webkit-font-smoothing:antialiased;
}
.crest-hero.logo-assembly-hero:before{content:none}
/* Opening screen: just the logo, no "Pinecrest Group" wordmark under it. */
body:has(.crest-hero) .opening-wordmark{display:none}
/* Sean's 205svh crest scroll runway (brand-polish.css) left ~990px of blank white under this hero. */
.logo-scroll-wrap.crest-hero-wrap{height:auto}
/* Home only: clean, inverted Apple-gallery white 3D studio stage for
   Passionate / Insatiable / Innovative, softly dissolving from the dark hero
   above and into the dark 3D How We Work field below. */
body:has(.crest-hero) .manifesto-runway{
 position:relative;
 background:#ffffff;
}
body:has(.crest-hero) .manifesto-runway::before{
 content:'';position:absolute;inset:0;pointer-events:none;z-index:0;
 background:
  radial-gradient(50% 54% at 73% 50%,rgba(0,185,235,.075),transparent 72%),
  radial-gradient(48% 50% at 22% 42%,rgba(26,64,158,.035),transparent 70%);
}
body:has(.crest-hero) .manifesto{
 position:relative;background:transparent;color:#0f2159;overflow:hidden;
 min-height:calc(100svh - var(--header) + var(--hdr-cut,28px));
 padding:clamp(40px,5.5vh,80px) var(--gutter);
 display:grid;grid-template-columns:minmax(0,1.02fr) minmax(0,.98fr);
 grid-template-rows:auto auto auto auto;
 align-content:center;align-items:center;gap:0 clamp(28px,4.5vw,76px);
 font-family:"Archivo Pinecrest",Archivo,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
}
body:has(.crest-hero) .manifesto-eyebrow{
 grid-column:1;grid-row:1;position:relative;z-index:6;
 margin-bottom:clamp(18px,2.5vh,28px);
 color:#5e719c;font-size:12px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;
}

body:has(.crest-hero) .manifesto>h2{
 grid-column:1;grid-row:2;position:relative;z-index:6;
 margin:0;font-size:clamp(50px,6.4vw,106px);line-height:.95;font-weight:650;letter-spacing:-.045em;
}
/* Outer span is owned exclusively by GSAP's scroll entrance (zero CSS opacity/transform transitions) */
body:has(.crest-hero) .manifesto>h2 span{
 display:block;text-align:left;width:fit-content;padding:3px 0;cursor:pointer;outline:none;
}
/* Inner .pillar-word owns Apple-style focus dimming, horizontal glide, and left accent bar */
body:has(.crest-hero) .manifesto>h2 .pillar-word{
 display:inline-block;position:relative;font-weight:inherit;color:#0f2159;
 transition:opacity .32s cubic-bezier(.22,.8,.2,1),transform .32s cubic-bezier(.22,.8,.2,1),color .28s ease;
}
body:has(.crest-hero) .manifesto>h2 .pillar-word::before{
 content:'';position:absolute;left:-20px;top:18%;bottom:18%;width:3px;border-radius:999px;
 background:#00b2e6;opacity:0;transform:scaleY(.3);
 transition:opacity .26s ease,transform .28s cubic-bezier(.22,.8,.2,1);
}
body:has(.crest-hero) .manifesto>h2 span .dot{
 font-style:normal;color:inherit;
}
body:has(.crest-hero) .manifesto>h2 span:nth-child(2) .pillar-word{
 color:#00a4dc;
}
/* Apple-style clean focus dimming on white: hovering one pillar focuses it cleanly */
body:has(.crest-hero) .manifesto>h2.has-active .pillar-word{opacity:.24}
body:has(.crest-hero) .manifesto>h2 span:hover .pillar-word,
body:has(.crest-hero) .manifesto>h2 span:focus-visible .pillar-word,
body:has(.crest-hero) .manifesto>h2 span.is-active .pillar-word{
 opacity:1;transform:translateX(10px);
}
body:has(.crest-hero) .manifesto>h2 span:hover .pillar-word::before,
body:has(.crest-hero) .manifesto>h2 span:focus-visible .pillar-word::before,
body:has(.crest-hero) .manifesto>h2 span.is-active .pillar-word::before{
 opacity:1;transform:scaleY(1);
}

body:has(.crest-hero) .manifesto>p{
 grid-column:1;grid-row:3;position:relative;z-index:6;
 margin:clamp(28px,3.6vh,44px) 0 0;max-width:560px;
 padding:clamp(22px,2.8vh,32px) 0 0;
 border-top:1px solid rgba(15,33,89,.12);
 color:#344672;font-size:clamp(16px,1.35vw,21px);line-height:1.56;letter-spacing:-.012em;
 font-weight:400;
}
body:has(.crest-hero) .manifesto-cue{
 grid-column:1;grid-row:4;position:relative;z-index:6;
 display:flex;flex-wrap:wrap;align-items:center;gap:14px 24px;
 margin-top:clamp(22px,2.8vh,34px);
}
body:has(.crest-hero) .manifesto-scroll-pill{
 display:inline-flex;align-items:center;gap:8px;
 color:#1842a4;font-size:16px;font-weight:600;text-decoration:none;
 transition:color .22s ease,transform .22s ease;
}
body:has(.crest-hero) .manifesto-scroll-pill:hover{
 color:#00a4dc;transform:translateY(2px);
}

/* Open architectural 3D showcase stage in the right column */
body:has(.crest-hero) .manifesto-stage{
 grid-column:2;grid-row:1/5;position:relative;z-index:1;
 display:grid;place-items:center;min-height:clamp(340px,58vh,560px);pointer-events:none;
}
body:has(.crest-hero) .manifesto-crest-target{
 width:min(88%,430px);max-height:58vh;aspect-ratio:231/267;position:relative;
}
/* Fallback static crest (shown on phones, paused motion, or reduced motion) */
body:has(.crest-hero) .manifesto-mark{
 position:absolute;inset:0;width:100%;height:100%;left:auto;top:auto;
 display:grid;place-items:center;opacity:.95;transform:none;pointer-events:none;
}
body:has(.crest-hero) .manifesto-mark img{
 width:min(78%,340px);height:auto;aspect-ratio:231/267;object-fit:contain;
 filter:drop-shadow(0 24px 36px rgba(15,33,89,.18));
}
/* Keep downstream sections cleanly above the fixed Manifesto WebGL canvas */
body:has(.crest-hero) .horizontal-section,
body:has(.crest-hero) .field-runway,
body:has(.crest-hero) .cta,
body:has(.crest-hero) footer{position:relative;z-index:8}

/* Home only: the top bar takes the hero's dark navy and joins it without a seam. */
/* Dark canvas behind everything, so overscroll or a slow repaint never flashes white above the bar. */
html:has(.crest-hero){background:#0c174a}

/* Home only: one solid dark bar, always the same colour. As the page scrolls it shrinks
   (header-shrink.js sets --hdr-s from 0 to 1 over the first 160px), then holds that size.
   margin-bottom gives back exactly the height it loses, so the page below never jumps. */
body:has(.crest-hero){--hdr-pad:16px;--hdr-cut:28px}
body:has(.crest-hero) .header{
 background:#0c174a;border-bottom-color:transparent;box-shadow:none;
 height:calc(var(--header) - var(--hdr-s,0) * var(--hdr-cut));
 margin-bottom:calc(var(--hdr-s,0) * var(--hdr-cut));
 padding-top:calc(var(--hdr-pad) - var(--hdr-s,0) * var(--hdr-cut) / 2);
 padding-bottom:calc(var(--hdr-pad) - var(--hdr-s,0) * var(--hdr-cut) / 2);
}
body:has(.crest-hero) .header>.header-brand{transform:scale(calc(1 - var(--hdr-s,0) * .2));transform-origin:left center}
body:has(.crest-hero) .header>.header-contact{transform:scale(calc(1 - var(--hdr-s,0) * .1));transform-origin:right center}
body:has(.crest-hero) .header>.header-contact{gap:10px}
.header-contact-icon svg{display:block;width:20px;height:20px}
@media(max-width:1150px){body:has(.crest-hero){--hdr-pad:14px;--hdr-cut:20px}}
@media(max-width:620px){body:has(.crest-hero){--hdr-pad:12px;--hdr-cut:16px}}

/* Crest stage: the hooks Sean's module needs (.logo-stage-track, .logo-stage.service-hub, .logo-target). */
/* Extra specificity beats brand-polish.css's tablet/phone scroll runway (.logo-scroll-wrap .logo-stage-track …). */
.crest-hero .logo-stage-track.crest-stage-track{position:relative;display:block;width:100%;height:auto;flex:1 1 0;min-height:clamp(240px,30svh,620px);margin:0;grid-column:auto;grid-row:auto;justify-self:auto}
.crest-hero .crest-stage-track .logo-stage.crest-stage{position:absolute;inset:-12% 0;top:-12%;width:100%;height:auto;max-width:none;max-height:none;margin:0;grid-column:auto;grid-row:auto}
.crest-hero .service-hub:before{content:none}
.crest-hero .logo-target,.crest-hero .logo-fallback{
 position:absolute;inset:auto;left:50%;top:50%;width:auto;height:min(56.3%,calc(82.8% - 79px));max-width:86%;
 aspect-ratio:231/267;transform:translate(-50%,-50%);object-fit:contain;
}
.crest-hero .logo-fallback{z-index:1}
.crest-hero .service-hub>#logo-canvas{z-index:2}

/* Orbiting service chips: back chips pass behind the crest, front chips over it. */
.crest-orbit{position:absolute;inset:0;list-style:none;margin:0;padding:0;pointer-events:none}
.crest-orbit li{position:absolute;left:50%;top:50%;z-index:3;margin:0;will-change:transform,opacity;opacity:0;transition:opacity .15s linear}
.crest-stage.chips-ready .crest-orbit li{opacity:var(--o,1)}
.crest-orbit li.behind{z-index:1}
.crest-orbit li.near-crest a{pointer-events:none}
.crest-orbit a{
 pointer-events:auto;display:inline-flex;align-items:center;gap:6.4px;white-space:nowrap;
 padding:6.4px 11.2px 6.4px 8px;border-radius:999px;font-size:11.2px;line-height:1.5;color:var(--chip-fg,#e6e9f5);text-decoration:none;
 background:rgba(13,27,84,.82);border:1px solid rgba(118,210,255,.22);
 box-shadow:0 6px 18px rgba(4,10,38,.36);transition:background .25s,border-color .25s;
}
.crest-orbit a:hover,.crest-orbit a:focus-visible{background:rgba(0,191,237,.18);border-color:rgba(0,191,237,.55)}
.crest-ico{display:block;width:16px;height:16px;flex:none;fill:none;stroke:var(--chip-ico,var(--cyan));stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* Copy */
.crest-copy{position:relative;z-index:4;width:min(1040px,100% - 2 * clamp(20px,5vw,48px));margin-inline:auto}
.crest-hero h1{margin:0;max-width:none;color:#fff;font-size:clamp(28px,4.34vw,58.8px);line-height:.95;font-weight:650;letter-spacing:-.035em}
.crest-hero h1 span{display:block}
.crest-hero h1 .accent{color:var(--cyan)}
.crest-copy>p{margin:17.6px auto 0;max-width:448px;color:#a9b1cc;font-size:clamp(14px,1.47vw,18.2px);line-height:1.3;letter-spacing:-.01em}
.crest-actions{display:flex;flex-wrap:wrap;gap:14px 24px;align-items:center;justify-content:center;margin-top:28.8px}
/* Headline + paragraph slide down together, 10% closer to the buttons. The
   buttons and the orbit above stay put, so the chips get that space. */
.crest-copy{--copy-drop:2.9px}
.crest-hero h1,.crest-copy>p{position:relative;top:var(--copy-drop)}
.crest-btn{
 display:inline-flex;align-items:center;min-height:48px;padding:12px 26px;border-radius:999px;
 background:var(--cyan);color:#050a26;font-size:17px;font-weight:600;text-decoration:none;
 transition:transform .25s var(--ease),background .25s;
}
.crest-btn:hover{background:#33ccf1;transform:translateY(-1px)}
.crest-link{display:inline-flex;gap:6px;align-items:center;color:var(--cyan);font-size:18px;font-weight:500;text-decoration:none}
.crest-link:after{content:"›";font-size:1.3em;line-height:1;transition:transform .25s var(--ease)}
.crest-link:hover:after{transform:translateX(3px)}
.crest-hero a:focus-visible{outline:3px solid var(--cyan);outline-offset:4px;border-radius:999px}

@media(max-width:760px){
 .crest-hero .logo-stage-track.crest-stage-track{min-height:36svh}
 .crest-hero h1{font-size:clamp(25.2px,7.35vw,30.8px)}
 .crest-hero .logo-target,.crest-hero .logo-fallback{height:min(52.2%,calc(82.8% - 79px))}
 .crest-copy>p{font-size:12.6px;margin-top:12.8px}
 .crest-actions{margin-top:19.2px}
 .crest-copy{--copy-drop:1.9px}
 .crest-orbit a{padding:7.2px}
 .crest-orbit a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
 body:has(.crest-hero) .manifesto{
  grid-template-columns:1fr;grid-template-rows:auto;min-height:auto;
  padding:56px 24px 68px;gap:0;
 }
 body:has(.crest-hero) .manifesto-stage{
  grid-column:1;grid-row:1;min-height:200px;margin-bottom:24px;
 }
 body:has(.crest-hero) .manifesto-crest-target{width:170px}
 body:has(.crest-hero) .manifesto-eyebrow{grid-row:2}
 body:has(.crest-hero) .manifesto>h2{grid-row:3;font-size:clamp(42px,11.5vw,64px)}
 body:has(.crest-hero) .manifesto>p{grid-row:4;font-size:17px;margin-top:24px}
 body:has(.crest-hero) .manifesto-cue{grid-row:5}
 body:has(.crest-hero) .manifesto-cue>span{display:none}
}
@media(prefers-reduced-motion:reduce){
 .crest-orbit li,.crest-btn,.crest-link:after,.eyebrow-dot{transition:none;animation:none}
}

/* Scroll shatter (crest-shatter.js): shares the Hero's already-warm #logo-canvas
   WebGL renderer, PMREM studio environment, and compiled PBR materials — zero
   second WebGL context or first-scroll shader compile stutter. */
#logo-canvas.crest-shatter-active{position:fixed!important;left:0!important;top:0!important;width:100vw!important;height:100vh!important;pointer-events:none;z-index:5!important;visibility:visible!important}
.crest-shatter-canvas{position:fixed;left:0;top:0;width:100vw;height:100vh;pointer-events:none;z-index:5;visibility:hidden}
body.crest-shattering .crest-stage>.logo-fallback{visibility:hidden}
/* The orbiting services stay fully normal through the early burst and fade out as the
   pieces spread wide (crest-shatter.js sets --chip-fade from 1 down to 0). */
body:has(.crest-hero) .crest-orbit{opacity:var(--chip-fade,1)}
body.chips-gone .crest-orbit a{pointer-events:none}
/* Where the 3D shatter runs, the live interactive 3D crest takes the fallback SVG's place. */
body.crest-shatter-on .manifesto-mark{visibility:hidden}

/* Longer shatter: on wide screens with motion on, the page holds still twice while you
   scroll: the hero while the crest breaks apart, then the Manifesto 3D chamber while the
   shards swirl in and lock into the living 3D sculpture. */
@media (min-width:761px) and (prefers-reduced-motion:no-preference){
 body:has(.crest-hero){--shatter-hold:58svh}
 body:has(.crest-hero) .logo-scroll-wrap.crest-hero-wrap{background:#0c174a}
 body:has(.crest-hero) .logo-scroll-wrap.crest-hero-wrap::after{content:'';display:block;height:var(--shatter-hold)}
 body:has(.crest-hero) .crest-hero{position:sticky;top:calc(var(--header) - var(--hdr-s,0) * var(--hdr-cut))}
 body:has(.crest-hero) .manifesto-runway>.manifesto{position:sticky;top:calc(var(--header) - var(--hdr-s,0) * var(--hdr-cut) - var(--rest-drift,0px));background:transparent;z-index:6}
 body:has(.crest-hero) .manifesto-hold{height:35svh;background:transparent}
}
