/* FORM — header lockup, full-viewport hero and the services grid.
   Loaded after theme.css; overrides the older hero/intro layers without touching them. */
:root{--hs-header:92px;--hs-ink:var(--ink,#111210);--hs-line:var(--secondary-line,#ffffff24)}

/* ---------- Fixed header: a full-width frosted bar, so the form can pass beneath it ---------- */
body:not(.packages-page) #site>.header{inset:0 0 auto;padding:0 4.4%;border-bottom:0;box-shadow:none;background:#111210d9;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}
body:not(.packages-page) #site>.header::after{content:'';position:absolute;left:4.4%;right:4.4%;bottom:0;height:1px;background:#ffffff14;pointer-events:none}
@media(min-width:781px){body.admin-open:not(.packages-page) #site>.header{right:430px}}
@media(max-width:780px){
 body:not(.packages-page) #site>.header{left:0;right:0;padding:0 6%}
 body:not(.packages-page) #site>.header::after{left:6%;right:6%}
 body:not(.packages-page) #site>.header nav{padding:10px 6% 13px}
}

/* ---------- Brand lockup: FORM | STUDIO ---------- */
.header .brand small{display:inline-flex;align-items:center;gap:13px;margin:0 0 0 3px;padding:0;border:0;max-width:none;font:500 10.5px/1 var(--font);letter-spacing:.36em;color:var(--secondary-ondark);white-space:nowrap}
.header .brand small::before{content:'';flex:none;width:1px;height:20px;background:var(--hs-line)}
@media(max-width:900px){.header .brand small{display:none}}

/* The mark breathes, sways and (where CSS path morphing exists) flows like the neon form.
   Scale lives on the wrapper so its squash axis stays upright while the mark sways. */
@media(prefers-reduced-motion:no-preference){
 .brand-symbol{animation:hs-mark-breathe 7.5s ease-in-out infinite}
 .brand-symbol .form-mark{transform:none;animation:hs-mark-sway 13s ease-in-out infinite}
 .header .brand:hover .form-mark,footer .brand:hover .form-mark{animation-duration:13s}
}
@supports (d:path("M0 0")){
 @media(prefers-reduced-motion:no-preference){.brand-symbol .form-mark path{animation:hs-mark-morph 11s ease-in-out infinite}}
}
@keyframes hs-mark-breathe{0%,100%{scale:1 .965}50%{scale:.955 1.035}}
@keyframes hs-mark-sway{0%,100%{rotate:-7deg}50%{rotate:9deg}}
@keyframes hs-mark-morph{
 0%,100%{d:path("M32 7C47 7 57 17 56 32C55 48 45 57 31 57C17 57 7 47 8 32C9 18 18 7 32 7ZM32 19C24 19 19 24 19 32C19 41 24 46 32 46C40 46 45 41 45 32C45 24 40 19 32 19Z")}
 35%{d:path("M34 6C49 6 58 16 57 30C56 46 45 58 30 58C16 58 6 48 7 34C8 19 19 6 34 6ZM34 18C26 18 21 23 21 30C21 38 26 43 34 43C42 43 47 38 47 30C47 23 42 18 34 18Z")}
 70%{d:path("M31 9C46 8 57 18 57 33C57 47 47 57 33 57C18 57 7 47 7 31C7 17 17 9 31 9ZM30 21.5C22 21.5 16.5 27 16.5 34C16.5 41 22 46.5 30 46.5C38 46.5 43.5 41 43.5 34C43.5 27 38 21.5 30 21.5Z")}
}

/* ---------- Hero: exactly one viewport, nothing of #services peeks in ---------- */
.hero,.admin-open .hero{height:100svh;min-height:640px;max-height:none;padding:0;overflow:hidden}
.hero .hero-stage{position:relative;top:auto;height:100%;min-height:0;padding:var(--hs-header) 0 0;display:flex;flex-direction:column}
/* All small labels live in the text column; the right half belongs to the form. */
.hero .hero-top{position:relative;inset:auto;z-index:3;display:flex;justify-content:flex-start;align-items:center;gap:16px;padding:34px 4.4% 0;opacity:var(--intro-opacity,1)}
.hero .hero-top .edition::before{content:'';display:inline-block;width:22px;height:1px;margin:0 16px 0 0;vertical-align:middle;background:var(--hs-line)}
.hero .hero-copy,.admin-open .hero .hero-copy{position:relative;inset:auto;z-index:3;flex:1 1 auto;display:flex;flex-direction:column;justify-content:center;width:auto;max-width:none;padding:28px 4.4%;text-align:left;opacity:var(--intro-opacity,1);transform:translate3d(0,var(--intro-offset,0px),0)}
.hero .hero-copy>*{max-width:1050px}
.hero .hero-copy>p{max-width:515px}

/* One clean bottom row: discipline label left, scroll cue centred (the FORMLAYER button owns the right corner). */
.hero .hero-bottom{position:relative;inset:auto;z-index:3;display:grid;grid-template-columns:1fr auto 1fr;align-items:end;padding:0 4.4% 30px;font-size:12px;letter-spacing:1.25px;opacity:var(--intro-opacity,1)}
.hero .hero-bottom>span{grid-column:1;justify-self:start;line-height:1}
.hero .scroll-cue{grid-column:2;display:flex;flex-direction:column;align-items:center;gap:14px;padding:6px 10px 0;color:#dfe5d4;font-size:11px;letter-spacing:.22em;line-height:1;transition:color .2s}
.hero .hero-bottom .scroll-cue span{margin:0;font-size:inherit;color:inherit;line-height:1}
.hero .hero-bottom .scroll-cue-label{padding-left:.22em}
.scroll-cue-line{position:relative;display:block;width:1px;height:46px;overflow:hidden;background:color-mix(in oklab,var(--secondary) 55%,transparent)}
.scroll-cue-line::after{content:'';position:absolute;left:0;top:0;width:1px;height:18px;background:var(--accent);box-shadow:0 0 6px var(--accent);transform:translateY(-100%);animation:hs-cue 2.6s cubic-bezier(.65,0,.35,1) infinite}
.hero .scroll-cue:hover,.hero .scroll-cue:focus-visible{color:var(--accent)}
@keyframes hs-cue{0%{transform:translateY(-100%)}72%,100%{transform:translateY(260%)}}

/* A larger neon form: full stage height, anchored right and bleeding off the edge. */
.hero .sculpture,.admin-open .hero .sculpture{position:absolute;inset:var(--hs-header) -23% 0 auto;width:80%;height:auto;opacity:var(--form-opacity,1);transform:translate3d(0,var(--form-shift,0px),0);z-index:0;-webkit-mask-image:linear-gradient(90deg,transparent,#000 34%),linear-gradient(180deg,transparent,#000 10%);-webkit-mask-composite:source-in;mask-image:linear-gradient(90deg,transparent,#000 34%),linear-gradient(180deg,transparent,#000 10%);mask-composite:intersect}
.hero .sculpture canvas{opacity:.78}

@media(min-width:1600px){.hero .sculpture{width:74%;right:-16%}}
@media(max-width:1100px){.hero .sculpture{width:96%;right:-40%}}
/* FORMLAYER open (desktop): the stage is 430px narrower and the headline is being edited, so keep it legible. */
@media(min-width:781px){
 .admin-open .hero .sculpture{right:-40%;width:86%}
 .admin-open .hero .sculpture canvas{opacity:.6}
 .admin-open .hero h1{font-size:clamp(46px,4.8vw,76px)}
}

@media(max-width:780px){
 :root{--hs-header:124px}
 .hero,.admin-open .hero{min-height:680px}
 .hero .hero-top{padding:26px 6% 0}
 .hero .hero-copy,.admin-open .hero .hero-copy{padding:18px 6% 22px}
 /* The FORMLAYER button docks at the bottom on phones; the cue sits centred above it. */
 .hero .hero-bottom{grid-template-columns:1fr;justify-items:center;padding:0 6% calc(96px + env(safe-area-inset-bottom,0px))}
 .hero .hero-bottom>span{display:none}
 .hero .scroll-cue{grid-column:1}
 .scroll-cue-line{height:34px}
 .hero .sculpture,.admin-open .hero .sculpture{inset:auto -78% 2% auto;width:165%;height:72%;-webkit-mask-image:linear-gradient(180deg,transparent,#000 30%);mask-image:linear-gradient(180deg,transparent,#000 30%);-webkit-mask-composite:source-over;mask-composite:add}
 .hero .sculpture canvas{opacity:.6}
}
@media(max-width:780px) and (max-height:700px){.hero .scroll-cue{display:none}.hero .hero-bottom{padding-bottom:84px}}

@media(prefers-reduced-motion:reduce){
 .scroll-cue-line::after{animation:none;transform:translateY(80%)}
 .hero .hero-copy,.hero .sculpture{transform:none}
}

/* ---------- Services: one hairline system ---------- */
.performance-intro{container-type:inline-size}
.performance-intro .performance-heading{display:block;margin-bottom:60px}
.performance-intro .performance-heading h2{font-size:clamp(38px,5.5cqi,78px);line-height:1.04;max-width:none}
.performance-intro .performance-heading>p{margin:30px 0 0;max-width:560px;font-size:18px}
/* Single 1px lines only: grid top edge, each cell's bottom edge, a divider between columns. */
.svc-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--hs-line)}
.svc-item{display:flex;flex-direction:column;gap:12px;min-width:0;padding:30px 26px 28px;border-bottom:1px solid var(--hs-line);border-right:1px solid var(--hs-line)}
.svc-item:nth-child(4n+1){padding-left:0}
.svc-item:nth-child(4n){padding-right:0;border-right:0}
.svc-item h3{font:500 23px/1.15 var(--display);letter-spacing:-.025em;margin:0;color:#f3f5ec;text-wrap:balance}
.svc-item>p{margin:0;font-size:15.5px;line-height:1.6;color:#b7bdb0;text-wrap:pretty}
.svc-tags{list-style:none;display:flex;flex-wrap:wrap;gap:6px;margin:auto 0 0;padding:12px 0 0}
.svc-tags li{font:500 12px/1 var(--font);letter-spacing:.02em;padding:6px 10px 5px;border:1px solid var(--hs-line);border-radius:999px;color:var(--secondary-ondark);white-space:nowrap}
.svc-tags .is-accent{border-color:color-mix(in oklab,var(--accent) 55%,transparent);color:var(--accent)}

.svc-close{display:grid;grid-template-columns:1.1fr .7fr;gap:10%;align-items:start;margin-top:80px}
.svc-statement{font:500 clamp(36px,3.8vw,58px)/1.04 var(--display);letter-spacing:-.05em;margin:0 0 24px;color:#f3f5ec}
.svc-statement span{color:var(--secondary-ondark)}
.svc-close-copy{font-size:17px;line-height:1.65;color:#bdc2b6;max-width:540px;margin:0;text-wrap:pretty}
.svc-team-label{font-size:12px;font-weight:500;letter-spacing:1.25px;color:var(--secondary-ondark);margin:6px 0 16px}
.performance-intro .studio-details{display:block;border:0;margin:0;padding:0}
.performance-intro .studio-details details{border-top:1px solid var(--hs-line);padding:18px 0}
.performance-intro .studio-details details:last-child{border-bottom:1px solid var(--hs-line)}
.performance-intro .studio-details summary small{display:inline;margin:0 0 0 12px}
.performance-intro .studio-details p{margin:14px 0 4px;font-size:15.5px}

@container (max-width:1000px){
 .svc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .svc-item:nth-child(n){padding:28px 24px 26px;border-right:1px solid var(--hs-line)}
 .svc-item:nth-child(2n+1){padding-left:0}
 .svc-item:nth-child(2n){padding-right:0;border-right:0}
 .svc-close{grid-template-columns:1fr 1fr;gap:8%}
}
@container (max-width:620px){
 .svc-grid{grid-template-columns:1fr}
 .svc-item:nth-child(n){padding:24px 0 22px;border-right:0}
 .svc-item h3{font-size:22px}
 .performance-intro .performance-heading{margin-bottom:40px}
 .performance-intro .performance-heading>p{font-size:16px;margin-top:22px}
 .svc-close{grid-template-columns:1fr;gap:44px;margin-top:60px}
 .svc-statement{font-size:40px}
 .svc-close-copy{font-size:16px}
 .performance-intro .studio-details summary small{display:block;margin:7px 0 0}
}

/* Laptop/desktop: the whole ring sits inside the viewport, right of the headline, instead of bleeding off the edge. */
@media(min-width:1101px){.hero .sculpture{inset:calc(var(--hs-header) + 2%) 2.5% 7% auto;width:50%;-webkit-mask-image:radial-gradient(closest-side,#000 82%,transparent);mask-image:radial-gradient(closest-side,#000 82%,transparent)}}
@media(min-width:1101px) and (min-width:781px){.admin-open .hero .sculpture{inset:calc(var(--hs-header) + 4%) -6% 10% auto;width:56%}}
