/* JEA Productions: studio hero (3 Oct 2026). Loaded only by the page that carries hero_studio().
   Masthead with one giant word lit like sun through blinds, then a navy block where ~2,500 particles
   assemble into one of Angelique's brand elements per discipline. Four modes: marketing, branding,
   websites, software. Scoped under .hs so nothing here touches the rest of site.css. */

.hs {
  --hs-paper: var(--bg, #f7f7f5);
  --hs-ink: var(--ink, #17181a);
  --hs-ink-2: var(--ink-2, #3a3c40);
  --hs-navy: #0f1620;
  --hs-navy-2: #16202d;
  --hs-white: #eef0f3;
  --hs-green: #12a52a;
  --hs-blue: #8fb0e0;                      /* branding on navy */
  --hs-c: var(--hs-green);                 /* current mode colour */
  --hs-w1: #04200a; --hs-w2: #0f8a24; --hs-w3: #4ee06a;   /* giant-word light */
  --hs-p: 0;                               /* scroll progress 0..1, set by JS */
  --hs-mx: 50%; --hs-my: 50%;              /* cursor over the word, set by JS */
  --hs-gut: clamp(1rem, 4.2vw, 4rem);
  background: var(--hs-paper);
  color: var(--hs-ink);
  overflow: clip;
  padding-block: 0;
}
/* Branding is navy (3 Oct 2026, replaces coral). Websites is the logo's greys. Software mixes green and navy. */
.hs[data-mode="branding"] { --hs-c: var(--hs-blue); --hs-w1: #06101f; --hs-w2: #1d3f73; --hs-w3: #8fb0e0; }
.hs[data-mode="websites"] { --hs-c: #c9ced6; --hs-w1: #17181a; --hs-w2: #555a62; --hs-w3: #b8bec8; }
.hs[data-mode="software"] { --hs-c: var(--hs-green); --hs-w1: #0b3a14; --hs-w2: #12a52a; --hs-w3: #8fb0e0; }

.hs-in { padding-inline: var(--hs-gut); }

/* masthead row */
.hs-mast { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 1rem; padding-top: clamp(1.25rem, 3vw, 2.75rem); }
.hs-line { justify-self: end; text-align: right; margin: 0; text-wrap: balance; font-family: "Montserrat", system-ui, sans-serif; font-weight: 700; font-size: clamp(.78rem, .95vw, .95rem); line-height: 1.35; max-width: 36ch; color: var(--hs-ink-2); }
.hs-line em { font-style: normal; color: var(--hs-ink); }

.hs-tabs { display: inline-flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(17,18,20,.06); }
.hs-tabs button { font: 700 .74rem/1 "Montserrat", system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--hs-ink-2); background: transparent; border: 0; padding: .7rem 1rem; border-radius: 999px; cursor: pointer; position: relative; overflow: hidden; transition: color .3s, background .3s; }
.hs-tabs button:hover { color: var(--hs-ink); }
.hs-tabs button[aria-pressed="true"] { background: var(--hs-ink); color: #fff; }
/* the auto-advance timer, drawn under the active tab until someone takes control */
.hs-tabs button[aria-pressed="true"]::after { content: ""; position: absolute; left: 14%; right: 14%; bottom: 5px; height: 2px; border-radius: 2px; background: var(--hs-c); transform-origin: left; transform: scaleX(0); }
.hs.is-auto .hs-tabs button[aria-pressed="true"]::after { animation: hs-timer var(--hs-dwell, 5.5s) linear forwards; }
@keyframes hs-timer { to { transform: scaleX(1); } }

/* the word */
.hs-word-clip { overflow: hidden; text-align: center; padding-block: clamp(.4rem, 1.2vw, 1rem) clamp(1rem, 2.6vw, 2.4rem); }
.hs-word {
  display: inline-block; margin: 0; white-space: nowrap;
  font-family: "Anton", "Impact", "Arial Narrow", sans-serif; font-weight: 400; text-transform: uppercase;
  line-height: .86; letter-spacing: -.005em; font-size: 12vw;
  color: var(--hs-w1);
  background-image:
    radial-gradient(circle at var(--hs-mx) var(--hs-my), rgba(255,255,255,.55), rgba(255,255,255,0) 22%),
    repeating-linear-gradient(104deg, rgba(0,0,0,0) 0 7%, rgba(0,0,0,.4) 7% 11.5%),
    linear-gradient(90deg, var(--hs-w1), var(--hs-w2) 28%, var(--hs-w3) 52%, var(--hs-w2) 74%, var(--hs-w1));
  background-size: 100% 100%, 220% 100%, 100% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: hs-light 16s linear infinite;
}
.hs-par { transform: translateY(calc(var(--hs-p) * 22%)); will-change: transform; }
@keyframes hs-light { from { background-position: 0 0, 0% 0, 0 0; } to { background-position: 0 0, -220% 0, 0 0; } }
.hs-word.is-in { animation: hs-light 16s linear infinite, hs-rise 1s cubic-bezier(.2,.9,.1,1) both; }
@keyframes hs-rise { from { transform: translateY(100%); } to { transform: translateY(0); } }

/* the block: starts inset with rounded corners, opens to full bleed as you scroll */
.hs-block {
  position: relative; isolation: isolate; overflow: hidden;
  --hs-ins: calc((1 - var(--hs-p)) * clamp(.5rem, 2vw, 2rem));
  --hs-rad: calc((1 - var(--hs-p)) * clamp(18px, 2vw, 30px));
  clip-path: inset(0 var(--hs-ins) 0 var(--hs-ins) round var(--hs-rad) var(--hs-rad) 0 0);
  background: var(--hs-navy); color: var(--hs-white);
  min-height: clamp(32rem, 44vw, 44rem);
  display: grid; grid-template-rows: auto 1fr auto;
}
.hs-block::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(60% 70% at 72% 50%, color-mix(in srgb, var(--hs-c) 22%, transparent), transparent 70%);
  transition: background .8s; }
.hs-block::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(238,240,243,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(238,240,243,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(80% 90% at 70% 50%, #000, transparent); -webkit-mask-image: radial-gradient(80% 90% at 70% 50%, #000, transparent); }
.hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }

.hs-stats { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; padding-top: clamp(1.75rem, 3.2vw, 3.25rem); }
.hs-stat b { display: block; font-family: "Montserrat", system-ui, sans-serif; font-weight: 800; font-size: clamp(1.3rem, 2.1vw, 2rem); letter-spacing: -.03em; line-height: 1.1; color: #fff; }
.hs-stat span { font-size: clamp(.88rem, 1.05vw, 1.02rem); color: #aeb8c5; }
.hs-stat:nth-child(2) { text-align: right; }

.hs-cap { align-self: center; justify-self: start; text-align: left; margin-left: var(--hs-gut); max-width: 20rem; font-family: "Montserrat", system-ui, sans-serif; position: relative; }
.hs-cap small { display: block; font: 600 .7rem/1 "Instrument Sans", system-ui, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--hs-c); margin-bottom: .6rem; transition: color .6s; }
.hs-cap b { font-weight: 800; font-size: clamp(1.4rem, 2.2vw, 2.1rem); letter-spacing: -.02em; line-height: 1.2; }

.hs-foot { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1.75rem; flex-wrap: wrap; padding-bottom: clamp(1.75rem, 3.2vw, 3.25rem); }
.hs-copy { max-width: 46ch; min-width: 0; }
.hs-copy p { font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.42; margin: 0 0 1.5rem; color: var(--hs-white); text-wrap: pretty; }
.hs-copy p b { font-weight: 600; color: #fff; }
.hs-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }
.hs .btn-primary { background: #fff; color: var(--hs-navy); }
.hs .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hs-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .55rem; max-width: 26rem; }
.hs-tags span { font-size: .86rem; font-weight: 500; padding: .5rem .95rem; border-radius: 999px; background: rgba(238,240,243,.07); border: 1px solid rgba(238,240,243,.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); white-space: nowrap; transition: opacity .35s, transform .35s; }
.hs-tags.is-out span { opacity: 0; transform: translateY(6px); }

@media (max-width: 900px) {
  .hs-mast { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hs-line { display: none; }
  .hs-tabs { order: 3; }
  .hs-word-clip { padding-bottom: 1rem; }
  .hs-cap { align-self: end; margin-inline: var(--hs-gut); max-width: none; padding-bottom: 1rem; }
  .hs-cap small { display: none; }
  .hs-cap b { font-size: 1.35rem; }
  .hs-canvas { opacity: .5; }
  .hs-block::before { background: radial-gradient(80% 50% at 50% 42%, color-mix(in srgb, var(--hs-c) 22%, transparent), transparent 70%); }
}
@media (max-width: 640px) {
  .hs-tabs button { padding: .62rem .62rem; font-size: .64rem; letter-spacing: .05em; }
  .hs-tags { display: none; }
  .hs-block { min-height: 38rem; }
  .hs-ctas { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .hs-ctas .btn { justify-content: center; padding-inline: .8rem; }
  .hs-copy { max-width: none; width: 100%; }
}
@media (pointer: coarse) { .hs-tabs button { min-height: 44px; } }

/* Inner pages: one mode, no tabs. The page's own h1 and sub sit in the block. */
.hs[data-single] .hs-mast { display: none; }
.hs[data-single] .hs-word-clip { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.hs[data-single] .hs-block { grid-template-rows: 1fr auto; min-height: clamp(30rem, 40vw, 40rem); }
.hs-copy h1 { color: #fff; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.04em; line-height: 1.02; margin: 0 0 1rem; max-width: 16ch; text-wrap: balance; }
.hs-copy h1 b { font-weight: inherit; color: var(--hs-c); }
.hs[data-single] .hs-copy { max-width: 40rem; }
.hs[data-single] .hs-copy p { color: rgba(238,240,243,.8); }

@media (prefers-reduced-motion: reduce) {
  .hs-word, .hs-word.is-in { animation: none; }
  .hs-par { transform: none; }
  .hs.is-auto .hs-tabs button[aria-pressed="true"]::after { animation: none; }
}
