/* FORME homepage hero — geometric arches in FORME colors, headline bottom-right. */
.fhero{
  --cream:#F7F3ED;--green:#1A4A35;--ink:#0A1F16;--gold:#C9A055;--sand:#E3D9C8;--white:#FFFFFF;
  --u:clamp(64px,10.5vw,180px);
  position:relative;overflow:hidden;background:var(--cream);
  min-height:max(640px,100vh);
  display:flex;align-items:flex-end;justify-content:flex-end;
  padding:120px 6% 9vh;box-sizing:border-box;
  font-family:'Inter',sans-serif;color:var(--ink);
}
.fhero-art{position:absolute;inset:80px 0 0 0;pointer-events:none}
.fs{position:absolute;display:block;opacity:0;animation:fs-in .9s cubic-bezier(.2,.7,.2,1) forwards}
/* shape primitives */
.fs-half{width:calc(var(--u)*2);height:var(--u);border-radius:var(--u) var(--u) 0 0}
.fs-arch{width:calc(var(--u)*1.3);height:calc(var(--u)*1.9);border-radius:calc(var(--u)*.65) calc(var(--u)*.65) 0 0}
.fs-quarter{width:var(--u);height:var(--u);border-radius:var(--u) 0 0 0}
.fs-dot{width:calc(var(--u)*.55);height:calc(var(--u)*.55);border-radius:50%}
.c-green{background:var(--green)}.c-ink{background:var(--ink)}.c-gold{background:var(--gold)}
.c-sand{background:var(--sand)}.c-white{background:var(--white)}

/* desktop composition (positions in % of the art area) */
.s1{left:5%;top:-2%;transform:rotate(180deg)}
.s2{left:5%;top:34%;transform:rotate(90deg);transform-origin:center}
.s3{left:23%;top:24%}
.s4{left:37%;top:4%;transform:rotate(-45deg)}
.s5{left:27%;top:62%;transform:rotate(180deg)}
.s6{left:4%;top:78%}
.s7{left:41%;top:41%}
.s8{left:57%;top:2%;transform:rotate(-90deg)}
.s9{left:74%;top:4%;transform:rotate(180deg)}
.s10{left:86%;top:30%;transform:rotate(-90deg)}
.s11{left:71%;top:31%}
.s12{left:14%;top:66%}

.s1{animation-delay:.05s}.s2{animation-delay:.15s}.s3{animation-delay:.25s}.s4{animation-delay:.35s}
.s5{animation-delay:.45s}.s6{animation-delay:.55s}.s7{animation-delay:.3s}.s8{animation-delay:.2s}
.s9{animation-delay:.1s}.s10{animation-delay:.4s}.s11{animation-delay:.5s}.s12{animation-delay:.6s}
@keyframes fs-in{from{opacity:0;translate:0 18px}to{opacity:1;translate:0 0}}

/* copy block, bottom-right */
.fhero-copy{
  position:relative;z-index:2;max-width:760px;
  /* solid cream backing so text contrast never depends on the shapes behind it */
  background:var(--cream);padding:28px 32px 32px;margin:0 -32px -32px 0;
  opacity:0;animation:fs-in 1s .5s cubic-bezier(.2,.7,.2,1) forwards;
}
.fhero-eyebrow{
  display:inline-block;margin:0 0 18px;font-size:12px;font-weight:600;letter-spacing:.24em;
  text-transform:uppercase;color:#7A6328;
}
.fhero h1{
  margin:0;font-family:'Source Serif 4',Georgia,serif;font-weight:500;
  font-size:clamp(48px,6vw,90px);line-height:1;letter-spacing:-.015em;color:var(--ink);
}
.fhero-sub{margin:16px 0 0;font-family:'Montserrat',sans-serif;font-size:16px;font-weight:300;line-height:1.5;color:#3A3A3A}
.fhero h1 span{display:block;white-space:nowrap}
.fhero-ctas{display:flex;gap:14px;margin-top:34px;flex-wrap:wrap}
.fhero-btn{
  display:inline-flex;align-items:center;justify-content:center;padding:16px 34px;
  font-family:'Montserrat',sans-serif;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;
  text-decoration:none;transition:background .25s ease,color .25s ease,border-color .25s ease;
}
.fhero-btn.primary{background:var(--green);color:var(--cream);border:1.5px solid var(--green)}
.fhero-btn.primary:hover{background:var(--ink);border-color:var(--ink)}
.fhero-btn.ghost{background:rgba(247,243,237,.85);color:var(--ink);border:1.5px solid var(--ink)}
.fhero-btn.ghost:hover{background:var(--ink);color:var(--cream)}
.fhero-btn:focus-visible,.fhero-cue:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* scroll cue */
.fhero-cue{
  position:absolute;left:50%;bottom:22px;transform:translateX(-50%);z-index:2;
  width:44px;height:44px;border:0;background:none;cursor:pointer;color:var(--ink);opacity:.75;
  transition:opacity .2s ease;
}
.fhero-cue:hover{opacity:1}

/* the old React hero is replaced by this one */
#root #hero{display:none!important}

/* mobile: React's top bar sits on cream now, so give it dark marks */
@media (max-width:1023px){
  nav[code-path="src/sections/Navigation.tsx:75:7"]{background:rgba(247,243,237,.96)!important}
  nav[code-path="src/sections/Navigation.tsx:75:7"] a>span:first-child{color:#0A1F16!important}
  nav[code-path="src/sections/Navigation.tsx:75:7"] button span{background:#0A1F16!important}
}

/* tablet */
@media (max-width:1023px){
  .fhero{--u:clamp(56px,13vw,120px)}
  .fhero{justify-content:flex-start}
  .fhero-copy{max-width:640px;margin:0 0 -32px -32px}
  .s5,.s6,.s8,.s12{display:none}
}
/* phone: shapes on top, copy below */
@media (max-width:640px){
  .fhero{--u:21vw;min-height:auto;flex-direction:column;align-items:stretch;padding:0}
  .fhero-art{position:relative;inset:auto;margin-top:72px;height:calc(var(--u)*3.6);flex:none}
  .s1{left:-6%;top:0}
  .s3{left:44%;top:6%}
  .s4{left:64%;top:-4%}
  .s5{left:6%;top:44%}
  .s7{display:block;left:66%;top:60%}
  .s10{left:84%;top:30%}
  .s5{display:block}
  .s2,.s6,.s9,.s11,.s8,.s12{display:none}
  .fhero-copy{margin:0;max-width:none;padding:28px 24px 64px}
  .fhero h1{font-size:clamp(40px,13vw,56px)}
  .fhero-sub{font-size:15px}
  .fhero-eyebrow{white-space:nowrap;font-size:min(11px,2.85vw);letter-spacing:.12em}
  .fhero-ctas{flex-direction:column}
  .fhero-btn{width:100%}
  .fhero-cue{display:none}
}
@media (prefers-reduced-motion:reduce){
  .fs,.fhero-copy{animation:none;opacity:1}
}

/* screen-reader-only helper */
.fsr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.fhero h1:focus{outline:none}


/* homepage section headings use the same serif as the inner pages */
#philosophy h2.font-heading,#philosophy h3.font-heading,#forme-services h2{font-family:'Source Serif 4',Georgia,serif!important;font-weight:500!important;letter-spacing:-.01em}
#philosophy h2.font-heading{line-height:1.25}
