/*
 * Homepage hero: one authoritative layout for HTML-first and React fallback.
 * Uses design.css's --g, --max, --ink, --signal; never duplicate per-device art.
 * The hero occupies the opening viewport, with its content anchored at the foot.
 * On short screens, content can extend the section instead of being clipped.
 */
.hero {
 --hero-ink:var(--ink,#032630);
 --hero-copper:var(--signal,#BE4417);
 position:relative; display:flex; flex-direction:column; justify-content:flex-end; align-items:stretch;
 height:auto; min-height:100vh; min-height:100svh;
 padding:clamp(106px,8.4vw,126px) 0 clamp(30px,3.8vw,50px);
 overflow:clip; isolation:isolate; background:var(--paper,#fff);
}
.hero::before{display:none}
.hero>.wrap.hero-content {
 position:relative; z-index:2; display:grid;
 grid-template-columns:minmax(0,1.4fr) minmax(0,.6fr);
 grid-template-rows:auto auto; column-gap:clamp(18px,2.2vw,38px);
 row-gap:0; align-items:end;
 width:min(calc(100% - (var(--g) * 2)),var(--max));
 max-width:var(--max); min-width:0; margin-inline:auto; padding:0;
}
.hero .hero-copy{grid-column:1;grid-row:1;align-self:end;min-width:0;max-width:100%;position:relative;z-index:2}
.hero .hero-copy .availability{display:inline-flex;align-items:center;gap:10px;margin:0;color:var(--ink2,#093A49);font-size:clamp(11px,.75vw,12px);font-weight:750;letter-spacing:.16em;text-transform:uppercase}
.hero .hero-copy .availability .dot{display:inline-block;width:8px;height:8px;flex:none;border-radius:50%;background:var(--hero-copper);box-shadow:0 0 0 4px rgba(190,68,23,.10)}
.hero .hero-title{width:calc(100% + 14px);max-width:calc(100% + 14px);margin:clamp(22px,2.1vw,32px) 0 0;color:var(--hero-ink);font:650 clamp(56px,5.3vw,94px)/1.02 var(--display,system-ui,sans-serif);letter-spacing:-.062em;text-wrap:balance;overflow-wrap:normal}
.hero .hero-title span{display:block;max-width:100%;white-space:normal}
.hero .hero-title em{font-style:normal;color:var(--hero-copper)}
.hero .hero-description{max-width:55ch;margin:clamp(18px,1.9vw,26px) 0 0;color:var(--sub,#64777D);font-size:clamp(15.5px,1.16vw,18px);line-height:1.68}
.hero .hero-description strong{color:var(--hero-ink);font-weight:650}
.hero .hero-ctas{grid-column:1;grid-row:2;align-self:start;display:flex;justify-content:flex-start;min-width:0;max-width:100%;margin-top:clamp(21px,2vw,29px);position:relative;z-index:3}
.hero .hero-ctas .button{display:inline-flex;align-items:center;justify-content:space-between;gap:26px;min-height:54px;padding:8px 9px 8px 21px;border:0;border-radius:100px;background:var(--hero-ink);color:#fff;font-size:14px;font-weight:650;text-decoration:none}
.hero .hero-ctas .button .button-icon{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.17)}
/* Exactly one icon: the authored SVG, never a CSS-generated second arrow. */
.hero .hero-ctas .button .button-icon::before,.hero .hero-ctas .button .button-icon::after{content:none;display:none}
.hero .hero-ctas .button .button-icon svg{width:20px;height:20px;display:block;transition:transform .25s ease}
.hero .hero-ctas .button:hover .button-icon svg{transform:translate(2px,-2px)}
.hero .hero-visual{grid-column:2;grid-row:1 / 3;align-self:end;justify-self:stretch;position:relative;inset:auto;z-index:1;isolation:isolate;width:100%;min-width:0;height:auto;max-height:430px;aspect-ratio:1.12;margin:0;padding:0;overflow:visible;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:1;pointer-events:auto;transform:translateY(clamp(16px,2.6vw,42px))}
.hero .hero-visual__fallback{position:absolute;inset:0;width:100%;height:100%;display:block;color:var(--hero-copper);opacity:1;pointer-events:none}
.hero .hero-visual.is-rendering .hero-visual__fallback{display:none}
.hero .hero-visual #atelier-canvas{display:block;position:absolute;inset:0;width:100%;height:100%;min-width:0;max-width:none;max-height:none;z-index:2;opacity:1;background:transparent;border:0;border-radius:0;cursor:grab;touch-action:pan-y;pointer-events:auto;user-select:none;-webkit-user-select:none}
.hero .hero-visual #atelier-canvas.is-dragging{cursor:grabbing}
.hero .hero-visual #atelier-canvas:focus-visible{outline:2px dashed var(--hero-copper);outline-offset:-4px}
.hero .hero-bottom{display:none!important}

/* React has a 90px (76px mobile) nav in normal flow; the HTML-first nav overlays
   the page. Both implementations finish the hero at the viewport bottom. */
.eo-premium .hero {
 min-height:calc(100vh - var(--eo-header-height,90px));
 min-height:calc(100svh - var(--eo-header-height,90px));
}

/* Same live sculpture, stacked in natural flow on narrow screens. */
@media(max-width:900px){
 .hero{padding:clamp(97px,13vw,115px) 0 clamp(20px,4vw,32px)}
 .hero>.wrap.hero-content{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;align-items:start}
 .hero .hero-copy{grid-column:1;grid-row:1}
 .hero .hero-title{width:100%;max-width:100%;font-size:clamp(39px,6.6vw,54px);line-height:1.08;letter-spacing:-.054em;margin-top:19px}
 .hero .hero-description{max-width:58ch;margin-top:18px;font-size:15px;line-height:1.68}
 .hero .hero-visual{grid-column:1;grid-row:2;justify-self:center;width:100%;height:clamp(185px,53vw,298px);max-height:none;aspect-ratio:auto;margin:6px 0 0;transform:none}
 .hero .hero-ctas{grid-column:1;grid-row:3;margin-top:8px}
 .hero .hero-visual #atelier-canvas{display:block;pointer-events:auto}
}
@media(max-width:480px){
 /* The authored spans are exactly two editorial lines on phones: keep both
    sentences intact rather than letting a 37px minimum force four rows. */
 .hero .hero-title{font-size:clamp(27px,8.2vw,38px);letter-spacing:-.064em;line-height:1.11}
 .hero .hero-title span{white-space:nowrap;text-wrap:nowrap}
 .hero .hero-description{font-size:14px;line-height:1.7}
 .hero .hero-visual{height:clamp(190px,55vw,245px);margin-top:3px}
 .hero .hero-ctas{margin-top:5px}
 .hero .hero-ctas .button{width:100%;min-height:54px}
}
/* Keep the established editorial entrance without delaying readability. */
@keyframes prem-arrive{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.hero .hero-title{animation:prem-arrive .75s cubic-bezier(.18,.72,.22,1) both}
@media(prefers-reduced-motion:reduce){
 .hero .hero-title{animation:none;opacity:1;transform:none}
 .hero .hero-ctas .button,.hero .hero-ctas .button .button-icon svg{transition:none}
}

/*
 * Homepage type hierarchy. Other section headings previously peaked well
 * above the H1, visually demoting the main promise. Keep sections expressive
 * but subordinate, without changing the typography on inner pages.
 */
body:has([data-home-hero]) :is(.section-top h2, .service-sidebar h2, .about-copy h2, .cta-block h2) {
  font-size: clamp(42px, 4.6vw, 76px);
  font-weight: 650;
  letter-spacing: -.055em;
  line-height: 1.055;
}
body:has([data-home-hero]) .statement p {
  font-size: clamp(44px, 4.7vw, 78px);
  font-weight: 620;
}
/* Transparent fallback tiles share the same signature color as the WebGL art. */
.hero .hero-visual__fallback .hero-visual__letter {
  fill: #fff;
  font: 700 26px/1 var(--display, system-ui, sans-serif);
  text-anchor: middle;
  dominant-baseline: central;
  paint-order: stroke;
}
@media (max-width: 900px) {
  body:has([data-home-hero]) :is(.section-top h2, .service-sidebar h2, .about-copy h2, .cta-block h2, .statement p) {
    font-size: clamp(32px, 5.3vw, 43px);
  }
}
@media (max-width: 480px) {
  body:has([data-home-hero]) :is(.section-top h2, .service-sidebar h2, .about-copy h2, .cta-block h2, .statement p) {
    /* Keep mobile H2s subordinate even with the intentionally compact H1. */
    font-size: clamp(25px, 7.5vw, 34px);
  }
}
