/* Company hero: the seam is decorative and independent of product functionality. */
.brand-hero {
  --hero-ink: #f4f5f7;
  --hero-secondary: #a7abb4;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 125px 0 70px;
  color: var(--hero-ink);
}
.brand-hero .container { width: 100%; max-width: 1200px; }
.brand-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, 270px); gap: clamp(48px, 7vw, 100px); align-items: center; }
.brand-hero-content { min-width: 0; position: relative; z-index: 1; }
.brand-hero-eyebrow { margin: 0 0 34px; color: var(--hero-ink); font-size: 12px; font-weight: 550; line-height: 1.6; }
.brand-hero h1 { font-size: clamp(50px, 5vw, 76px); line-height: 1.1; letter-spacing: -.055em; font-weight: 500; text-wrap: balance; }
.brand-hero h1 > span { display: block; }
.brand-hero-support { max-width: 560px; margin-top: 28px; }
.brand-hero-description { margin: 0; color: var(--hero-secondary); font-size: 19px; line-height: 1.7; text-wrap: pretty; letter-spacing: -.015em; }
.brand-hero-actions { margin-top: 32px; }
.brand-hero-cta.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 36px; padding: 14px 22px; min-height: 52px; border: 1px solid transparent; border-radius: 5px; background: var(--brand-blue-strong); color: #fff; font-size: 15px; font-weight: 550; line-height: 1.5; box-shadow: none; }
.brand-hero-cta.btn:hover { background: var(--brand-blue-hover); box-shadow: none; transform: none; }
.brand-hero-cta:focus-visible { outline-color: var(--brand-blue-bright); outline-offset: 4px; }
.brand-hero-cta > span { font-size: 19px; font-weight: 400; line-height: 1; }
.brand-hero-note { margin-top: 17px; font-size: 12px; line-height: 1.7; color: var(--hero-secondary); }
/* Interlocking fragments reconstruct the approved artwork when closed. */
.hero-cut {
  position: relative;
  width: 410px;
  aspect-ratio: 588 / 760;
  overflow: hidden;
  transform: translateX(-70px);
}
.hero-cut:focus-visible { outline: 2px solid var(--brand-blue-bright); outline-offset: -3px; }
.cut-touch-toggle { position: absolute; z-index: 3; left: 50%; bottom: 7%; transform: translateX(-50%); min-height: 44px; padding: 0 16px; border: 1px solid #3a4657; border-radius: 4px; background: #101318; color: #e5e9f1; font-size: 12px; white-space: nowrap; }
.cut-touch-toggle[hidden] { display: none; }
.cut-touch-toggle span { color: var(--brand-blue-bright); padding-left: 8px; }
.cut-touch-toggle:focus-visible { outline: 2px solid var(--brand-blue-bright); outline-offset: 3px; }
/* Feather the opening artwork into the page; keep the revealed message crisp. */
.cut-half, .cut-art {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 28%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 28%, #000 86%, transparent), linear-gradient(to bottom, transparent, #000 20%, #000 78%, transparent);
  mask-composite: intersect;
}
/* Display only the right-hand artwork of the approved concept, never its mockup text. */
.cut-half { position: absolute; inset: 0; pointer-events: none; }
.cut-piece { position: absolute; inset: 0; display: block; transition: transform 1200ms cubic-bezier(.3,.05,.2,1), opacity 650ms ease; }
/* Shared polygon edges tile the image exactly. Every fragment has its own travel. */
.cut-piece-one { --piece-delay: 0ms; }
.cut-piece-two { --piece-delay: 85ms; }
.cut-piece-three { --piece-delay: 170ms; }
.cut-piece-four { --piece-delay: 255ms; }
.cut-piece-five { --piece-delay: 340ms; }
.cut-piece-six { --piece-delay: 425ms; }
.cut-half-upper .cut-piece-one { clip-path: polygon(0 7%,24% 7%,24% 13%,24% 25%,30% 29%,25% 36.575%,0 15.263%); --piece-x: -2%; --piece-y: -22%; }
.cut-half-upper .cut-piece-two { clip-path: polygon(24% 13%,48% 13%,48% 34%,58% 34%,58% 46%,50% 57.887%,25% 36.575%,30% 29%,24% 25%); --piece-x: 3%; --piece-y: -28%; }
.cut-half-upper .cut-piece-three { clip-path: polygon(58% 34%,62% 34%,62% 46%,82% 46%,82% 65%,80% 70%,75% 79.199%,50% 57.887%,58% 46%); --piece-x: 1%; --piece-y: -23%; }
.cut-half-upper .cut-piece-four { clip-path: polygon(82% 65%,100% 80%,100% 100%,99.398% 100%,75% 79.199%,80% 70%); --piece-x: 4%; --piece-y: -31%; }
.cut-half-upper .cut-piece-five { clip-path: polygon(0 0,55% 0,55% 24%,48% 34%,48% 13%,24% 13%,24% 7%,0 7%); --piece-x: -1%; --piece-y: -18%; }
.cut-half-upper .cut-piece-six { clip-path: polygon(55% 0,100% 0,100% 80%,82% 65%,82% 46%,62% 46%,62% 34%,48% 34%,55% 24%); --piece-x: 2%; --piece-y: -25%; }
.cut-half-lower .cut-piece-one { clip-path: polygon(0 15.263%,25% 36.575%,22% 40%,18% 44%,0 44%); --piece-x: -3%; --piece-y: 24%; }
.cut-half-lower .cut-piece-two { clip-path: polygon(25% 36.575%,50% 57.887%,45% 63%,37% 66%,37% 52%,18% 52%,18% 44%,22% 40%); --piece-x: -1%; --piece-y: 30%; }
.cut-half-lower .cut-piece-three { clip-path: polygon(50% 57.887%,75% 79.199%,72% 83%,78% 86%,57% 79%,57% 66%,37% 66%,45% 63%); --piece-x: -4%; --piece-y: 25%; }
.cut-half-lower .cut-piece-four { clip-path: polygon(75% 79.199%,99.398% 100%,78% 91%,78% 86%,72% 83%); --piece-x: 1%; --piece-y: 32%; }
.cut-half-lower .cut-piece-five { clip-path: polygon(0 44%,18% 44%,18% 52%,37% 52%,37% 66%,45% 66%,45% 87%,34% 92%,34% 100%,0 100%); --piece-x: -2%; --piece-y: 19%; }
.cut-half-lower .cut-piece-six { clip-path: polygon(37% 66%,57% 66%,57% 79%,78% 86%,78% 91%,99.398% 100%,34% 100%,34% 92%,45% 87%,45% 66%); --piece-x: 2%; --piece-y: 27%; }
.cut-piece picture { display: contents; }
.cut-concept { position: absolute; width: 255.952%; max-width: none; height: auto; aspect-ratio: 1505 / 1045; left: -153.061%; top: -17.105%; }
.cut-reveal { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 10% 7% 17% 11%; opacity: 0; transition: opacity 550ms ease; pointer-events: none; }
.cut-message-part { opacity: 0; transform: translateY(8px); transition: opacity 450ms ease, transform 650ms cubic-bezier(.22,1,.36,1); }
.cut-message-title { --message-delay: 800ms; margin: 0; font-weight: 500; letter-spacing: -.04em; }
.cut-message-premise { display: block; margin-bottom: 14px; color: var(--hero-ink); font-size: 20px; line-height: 1.45; letter-spacing: -.025em; font-weight: 450; }
.cut-message-problem { display: block; color: var(--hero-ink); font-size: 35px; line-height: 1.12; }
.cut-message-detail { --message-delay: 1120ms; margin-top: 26px; color: var(--hero-secondary); font-size: 14px; line-height: 1.9; letter-spacing: -.015em; }
.cut-message-purpose { --message-delay: 1460ms; margin-top: 27px; color: var(--brand-blue); font-size: 19px; line-height: 1.4; font-weight: 500; letter-spacing: -.025em; }
.cut-art { position: absolute; inset: 0; display: block; width: 100%; height: 100%; pointer-events: none; }
.cut-shine { stroke: #d9e9ff; stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 9 91; stroke-dashoffset: 12; opacity: 0; vector-effect: non-scaling-stroke; }
@keyframes cut-light-pass {
  0% { stroke-dashoffset: 12; opacity: 0; }
  12% { opacity: .95; }
  82% { opacity: .95; }
  100% { stroke-dashoffset: -100; opacity: 0; }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-cut:is(:hover, :focus-visible) .cut-piece { opacity: 0; transform: translate(var(--piece-x), var(--piece-y)); transition-delay: var(--piece-delay), calc(var(--piece-delay) + 220ms); }
  .hero-cut:is(:hover, :focus-visible) .cut-reveal { opacity: 1; transition-delay: 650ms; }
  .hero-cut:is(:hover, :focus-visible) .cut-message-part { opacity: 1; transform: none; transition-delay: var(--message-delay); }
  .hero-cut:is(:hover, :focus-visible) .cut-shine { animation: cut-light-pass 650ms cubic-bezier(.3,.1,.3,1) both; }
}
@media (max-width: 900px) {
  .brand-hero { padding: 120px 0 60px; }
  .brand-hero-layout { grid-template-columns: minmax(0, 1fr) 150px; gap: 30px; }
  .hero-cut { width: 240px; transform: translateX(-25px); }
  .cut-reveal { padding: 8% 4% 19% 9%; }
  .cut-message-premise { margin-bottom: 10px; font-size: 14px; }
  .cut-message-problem { font-size: 24px; }
  .cut-message-detail { margin-top: 16px; font-size: 12px; line-height: 1.8; }
  .cut-message-purpose { margin-top: 17px; font-size: 16px; }
  .brand-hero h1 { font-size: clamp(46px, 6.3vw, 62px); }
}
@media (max-width: 700px) {
  .brand-hero { min-height: 0; padding: 110px 0 var(--site-space-4); }
  .brand-hero-layout { display: flex; flex-direction: column; align-items: stretch; gap: 28px; }
  .brand-hero-eyebrow { margin-bottom: 26px; font-size: 11px; }
  .brand-hero h1 { font-size: clamp(36px, 9vw, 56px); line-height: 1.1; letter-spacing: -.05em; }
  .brand-hero-support { margin-top: 24px; }
  .brand-hero-description { font-size: 16px; line-height: 1.7; max-width: 460px; }
  .brand-hero-actions { margin-top: 25px; }
  .brand-hero-cta.btn { min-height: 50px; font-size: 14px; gap: 24px; }
  .brand-hero-note { font-size: 11px; margin-top: 14px; }
  .hero-cut { width: min(100%, 310px); aspect-ratio: auto; align-self: center; margin: 0; transform: none; }
  .cut-reveal { position: relative; inset: auto; justify-content: flex-start; padding: var(--site-space-4) 4% var(--site-space-3) 9%; }
  /* Keep the fragment canvas stable while only its outer frame contracts. */
  .hero-cut.cut-touch-ready { height: var(--cut-art-height); transition: height 650ms cubic-bezier(.22,1,.36,1) 1850ms; }
  .hero-cut.cut-touch-ready.is-open { height: var(--cut-message-height); }
  .hero-cut.cut-touch-ready :is(.cut-half, .cut-art) { height: var(--cut-art-height); bottom: auto; }
  .brand-hero + #features { padding-top: var(--site-space-4); }
  .cut-message-premise { font-size: 16px; margin-bottom: 12px; }
  .cut-message-problem { font-size: 30px; }
  .cut-message-detail { margin-top: 20px; font-size: 12px; line-height: 1.85; }
  .cut-message-purpose { margin-top: 22px; font-size: 18px; }
}
@media (hover: none), (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cut-half { opacity: 0; }
  .cut-piece { transition: none; }
  .cut-reveal { opacity: 1; transition: none; }
  .cut-message-part { opacity: 1; transform: none; transition: none; }
  .cut-shine { animation: none; }
}
/* Enhanced touch devices start closed and open when reached by scrolling. */
@media (prefers-reduced-motion: no-preference) {
  .hero-cut.cut-touch-ready .cut-half { opacity: 1; }
  .hero-cut.cut-touch-ready .cut-piece { transition: transform 1200ms cubic-bezier(.3,.05,.2,1), opacity 650ms ease; }
  .hero-cut.cut-touch-ready .cut-reveal { opacity: 0; transition: opacity 550ms ease; }
  .hero-cut.cut-touch-ready .cut-message-part { opacity: 0; transform: translateY(8px); transition: opacity 450ms ease, transform 650ms cubic-bezier(.22,1,.36,1); }
  .hero-cut.cut-touch-ready.is-open .cut-piece { opacity: 0; transform: translate(var(--piece-x), var(--piece-y)); transition-delay: var(--piece-delay), calc(var(--piece-delay) + 220ms); }
  .hero-cut.cut-touch-ready.is-open .cut-reveal { opacity: 1; transition-delay: 650ms; }
  .hero-cut.cut-touch-ready.is-open .cut-message-part { opacity: 1; transform: none; transition-delay: var(--message-delay); }
}
