/* Syndio Hero Slider */
/* Selectors are prefixed with html:not(#syn#syn) (always matches <html>) to outrank
   the theme's ID-based rules like "#container .entry-content p". Sizes are in px
   because the theme sets html{font-size:10px}, which would shrink rem values. */

/* The section's own background is the colour the hero fades into (black on load, set by JS while scrolling). */
html:not(#syn#syn) .syn-hs{--hs-title:clamp(40px,4vw,69.6px);position:relative;overflow:clip;background:var(--syn-black);color:#fff}
html:not(#syn#syn) .syn-hs__bg{position:absolute;inset:0;z-index:0;pointer-events:none;background:var(--syn-black)}
/* With the fade on, the background and the photos fade out at the bottom into the section colour
   (still black on load, so nothing shows until the page is scrolled). The copy is never faded. */
html:not(#syn#syn) .syn-hs.has-fade .syn-hs__bg,html:not(#syn#syn) .syn-hs.has-fade .syn-hs__stage{-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 76%,transparent 100%);mask-image:linear-gradient(to bottom,#000 0%,#000 76%,transparent 100%)}
html:not(#syn#syn) .syn-hs__tex{position:absolute;inset:0;background-size:cover;background-position:center}
html:not(#syn#syn) .syn-hs__tex::after{content:"";position:absolute;inset:0;background:rgba(14,13,12,.55)}
/* Darker on the left so the copy reads well over the texture. */
html:not(#syn#syn) .syn-hs__bg::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(14,13,12,.55) 0%,rgba(14,13,12,.1) 36%,rgba(14,13,12,0) 58%)}

/* Same container as the header (.syn-wrap: 1440px max, side gutters), so the copy lines up with the logo at every width. */
html:not(#syn#syn) .syn-hs__inner{position:relative;z-index:2;display:grid;grid-template-columns:auto minmax(300px,1fr);min-height:100svh;max-width:1440px;margin-inline:auto;padding-inline:var(--syn-gutter)}

/* ---------- copy (left), vertically centred ---------- */
/* Copy: always 74px right of the logo's left edge. Vertically centred on the screen using its tallest
   size (--hs-block, measured by JS with the longest prompt + answer), never closer than 200px to the top. */
html:not(#syn#syn) .syn-hs__copy{position:relative;z-index:3;align-self:start;width:calc(11 * var(--hs-title));margin:max(200px,calc((100svh - var(--hs-block,560px)) / 2)) 0 0 74px;padding-bottom:48px}
html:not(#syn#syn) .syn-hs .syn-eyebrow{color:rgba(255,255,255,.72);margin:0 0 3.2px}
html:not(#syn#syn) .syn-hs .syn-hs__title{font-size:var(--hs-title);line-height:1.02;letter-spacing:-.032em;max-width:none}
html:not(#syn#syn) .syn-hs__title .syn-mask:first-child{margin-top:-.2em}
html:not(#syn#syn) .syn-hs__title span{font-weight:400}
/* Desktop: the copy column is sized by the heading (11x its font size) and the photos take the rest,
   so each heading line stays on one line (2 lines by default) at every width. */
@media (min-width:981px){html:not(#syn#syn) .syn-hs__title .syn-mask>span{white-space:nowrap}}
html:not(#syn#syn) .syn-hs__cta{margin-top:32px}

/* The live area keeps a fixed height on desktop, so the heading never moves while
   prompts are typed and answers open; a taller answer simply extends below it. */
/* Min-height = the tallest prompt + answer (measured by JS), so the block never changes size. */
html:not(#syn#syn) .syn-hs__live{min-height:var(--hs-live-m,280px);margin-top:20px}

/* prompt pill */
html:not(#syn#syn) .syn-hs__ask{border-radius:30px;padding:6.7px 6.7px 6.7px 18.4px;background:rgba(32,30,28,.78);border:1px solid rgba(255,255,255,.16);box-shadow:0 22px 60px rgba(0,0,0,.38);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px)}
html:not(#syn#syn) .syn-hs__q{display:flex;gap:12px;align-items:center;min-height:43.2px;font-size:16px;line-height:1.35;letter-spacing:-.011em}
html:not(#syn#syn) .syn-hs__qt{flex:1;min-width:0;transition:opacity .25s ease}
html:not(#syn#syn) .syn-hs__ask.is-clearing .syn-hs__qt{opacity:0}
html:not(#syn#syn) .syn-hs__caret{display:inline-block;width:1.5px;height:1em;background:#fff;vertical-align:-.12em;margin-left:1px;animation:syn-hs-blink 1s steps(2) infinite}
html:not(#syn#syn) .syn-hs__ask:not(.is-typing) .syn-hs__caret{visibility:hidden}
html:not(#syn#syn) .syn-hs__send{flex:none;display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--syn-black);transition:transform .35s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__ask.is-sent .syn-hs__send{animation:syn-hs-send .5s var(--syn-ease)}

/* thinking + answer share one spot: thinking fades out as the answer box opens */
html:not(#syn#syn) .syn-hs__below{display:grid;margin-top:24.8px;align-items:start}
html:not(#syn#syn) .syn-hs__below>*{grid-area:1/1}

html:not(#syn#syn) .syn-hs__think{display:flex;align-items:center;gap:10.4px;min-height:25.6px;padding-left:4px;color:rgba(255,255,255,.78);font-size:15.7px;opacity:0;transform:translateY(10px);filter:blur(4px);pointer-events:none;transition:opacity .45s ease,transform .6s var(--syn-ease),filter .45s ease}
html:not(#syn#syn) .syn-hs__think.is-on{opacity:1;transform:none;filter:none}
html:not(#syn#syn) .syn-hs__think.is-off{opacity:0;transform:translateY(-8px);filter:blur(4px);transition-duration:.3s,.4s,.3s}
html:not(#syn#syn) .syn-hs__orbit{position:relative;flex:none;width:22px;height:22px}
html:not(#syn#syn) .syn-hs__star{display:block;width:18px;height:18px;margin:2px;transform:scale(.4) rotate(-45deg);transition:transform .6s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__think.is-on .syn-hs__star{transform:none}
html:not(#syn#syn) .syn-hs__spin{position:absolute;inset:-4px;animation:syn-hs-spin 1.7s linear infinite}
html:not(#syn#syn) .syn-hs__spin i{position:absolute;left:50%;top:0;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#9be7a8;box-shadow:0 0 8px #7fd4c8;animation:syn-hs-dot 1.7s ease-in-out infinite}
html:not(#syn#syn) .syn-hs__think-t{background:linear-gradient(100deg,rgba(255,255,255,.32) 0%,rgba(255,255,255,.32) 36%,#fff 50%,rgba(255,255,255,.32) 64%,rgba(255,255,255,.32) 100%);background-size:220% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:syn-hs-shimmer 1.8s linear infinite}

/* Answer box: height is animated by JS (0 → content); the content fades in once it has room. */
html:not(#syn#syn) .syn-hs__ans{position:relative;z-index:4;width:92%;height:0;overflow:hidden;border-radius:18px;background:#f6f4ee;color:var(--syn-ink);box-shadow:0 18px 44px rgba(0,0,0,.28);opacity:0;transform:translateY(10px) scale(.97);transform-origin:20% 0;transition:height .6s var(--syn-ease),opacity .35s ease,transform .6s var(--syn-ease),border-radius .6s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__ans.is-open{opacity:1;transform:none}
html:not(#syn#syn) .syn-hs__ans.is-closing{opacity:0;transform:translateY(-6px) scale(.98);transition:height .45s var(--syn-ease),opacity .35s ease,transform .45s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__ans-in{padding:18.4px 22.4px 20px;font-size:15.7px;line-height:1.4;letter-spacing:-.011em}
html:not(#syn#syn) .syn-hs__who{display:flex;align-items:center;gap:6.4px;margin-bottom:6.4px;font-family:var(--syn-mono);font-size:9.3px;letter-spacing:.14em;text-transform:uppercase;color:#6d747c;opacity:0;transform:translateY(4px);transition:opacity .35s ease,transform .45s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__spark{width:14px;height:14px;flex:none;color:var(--syn-ink)}
html:not(#syn#syn) .syn-hs__reply{clip-path:inset(0 100% 0 0)}
html:not(#syn#syn) .syn-hs__ans.is-text .syn-hs__who{opacity:1;transform:none}
html:not(#syn#syn) .syn-hs__ans.is-text .syn-hs__reply{animation:syn-hs-reveal 1.15s cubic-bezier(.2,.7,.2,1) .08s forwards}

/* Visual/image below the line: the row grows open, then its pieces animate in. */
html:not(#syn#syn) .syn-hs__grow{display:grid;grid-template-rows:0fr;transition:grid-template-rows .65s var(--syn-ease)}
html:not(#syn#syn) .syn-hs__grow:empty{display:none}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs__grow{grid-template-rows:1fr}
html:not(#syn#syn) .syn-hs__grow .syn-hs__sheet{min-height:0;overflow:hidden}
html:not(#syn#syn) .syn-hs__grow .syn-hs__sheet>*:first-child{margin-top:13.6px;padding-top:14.4px;border-top:1px solid #e4e0d8}
html:not(#syn#syn) .syn-hs__grow .syn-hs__sheet>*{opacity:0;transform:translateY(8px)}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs__sheet>*{animation:syn-hs-piece .5s var(--syn-ease) both}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs__sheet>*:nth-child(1){animation-delay:.12s}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs__sheet>*:nth-child(2){animation-delay:.4s}

html:not(#syn#syn) .syn-hs__viz{display:block;width:100%}
html:not(#syn#syn) .syn-hs__viz img,html:not(#syn#syn) .syn-hs__viz svg{display:block;width:100%;height:auto;max-height:min(248px,28vh);max-width:100%;object-fit:contain;object-position:left top}
html:not(#syn#syn) .syn-hs__viz.is-lg img,html:not(#syn#syn) .syn-hs__viz.is-lg svg{max-height:min(300px,34vh)}
html:not(#syn#syn) .syn-hs__img{display:block;width:auto;max-width:100%;height:auto;max-height:min(260px,30vh);border-radius:8px}

html:not(#syn#syn) .syn-hs__chips{display:flex;flex-wrap:wrap;gap:7.2px;margin-top:11.2px}
html:not(#syn#syn) .syn-hs__chip{display:inline-flex;align-items:center;gap:6.4px;height:31.2px;padding:0 12px;border-radius:999px;background:#fff;border:1px solid #e4e0d8;color:#2c2928;font-size:12.2px;letter-spacing:-.011em;white-space:nowrap;box-shadow:0 1px 2px rgba(22,21,19,.04)}
html:not(#syn#syn) .syn-hs__chip.is-next{background:transparent;border-style:dashed;border-color:#b7b1a8;box-shadow:none}
html:not(#syn#syn) .syn-hs__chip.is-next svg{color:#b5c21a}
html:not(#syn#syn) .syn-hs__swatch{width:10px;height:10px;border-radius:3px;background:#3dbebf;flex:none}
html:not(#syn#syn) .syn-hs__swatch.is-pdf{background:#e26a62}
html:not(#syn#syn) .syn-hs__swatch.is-sheet{background:#3aa7a3}
html:not(#syn#syn) .syn-hs__dl{margin-left:2.4px;color:#8a847c}
/* Document file chip (icon + file name that shortens with "…" when there is no room). */
html:not(#syn#syn) .syn-hs__chip.is-doc{max-width:100%;color:#3a3f45}
html:not(#syn#syn) .syn-hs__chip.is-doc .syn-hs__docic{flex:none;color:#8a847c}
html:not(#syn#syn) .syn-hs__chip.is-doc>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* SVG pieces (tagged by JS) */
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-doc{animation:syn-hs-wipe .7s var(--syn-ease) both}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-doc text{animation:syn-hs-in .4s ease both;animation-delay:calc(.3s + var(--i,0) * 28ms)}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-bx,html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-by{transform-box:fill-box;animation-duration:.55s;animation-timing-function:var(--syn-ease);animation-fill-mode:both;animation-delay:calc(.3s + var(--i,0) * 55ms)}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-bx{transform-origin:left center;animation-name:syn-hs-gx}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-by{transform-origin:center bottom;animation-name:syn-hs-gy}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-dot{transform-box:fill-box;transform-origin:center;animation:syn-hs-pop .35s var(--syn-ease) both;animation-delay:calc(.4s + var(--i,0) * 18ms)}
html:not(#syn#syn) .syn-hs__ans.is-grow .syn-hs-draw{animation:syn-hs-draw .7s var(--syn-ease) both;animation-delay:calc(.35s + var(--i,0) * 80ms)}

/* ---------- photo slider (right) ---------- */
html:not(#syn#syn) .syn-hs__stage{position:relative;min-height:100%;touch-action:none;user-select:none;-webkit-user-select:none;opacity:0;transition:opacity 1.1s var(--syn-ease) .15s}
/* The photos fade in once on load (JS adds .is-in when they are placed and the current one has loaded). */
html:not(#syn#syn) .syn-hs__stage.is-in,html:not(#syn#syn) .fl-builder-edit .syn-hs__stage{opacity:1}
html:not(#syn#syn) .syn-hs__card{position:absolute;left:0;top:0;width:min(320px,23vw);aspect-ratio:3/4;margin:0;border-radius:18px;overflow:hidden;background:#1a1918;box-shadow:0 22px 50px rgba(0,0,0,.42);cursor:pointer;opacity:0;transition:transform 1.05s var(--syn-ease),opacity 1.05s ease}
html:not(#syn#syn) .syn-hs__card[aria-current="true"]{cursor:default}
html:not(#syn#syn) .syn-hs__card picture{position:absolute;inset:0;display:block}
html:not(#syn#syn) .syn-hs__card img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--pos,center);-webkit-user-drag:none;pointer-events:none}
html:not(#syn#syn) .syn-hs__stage.is-dragging,html:not(#syn#syn) .syn-hs__stage.is-dragging .syn-hs__card{cursor:grabbing}
html:not(#syn#syn) .syn-hs__card:focus-visible{outline:2px solid #fff;outline-offset:4px}

/* ---------- mobile: copy first, then a horizontal strip of landscape photos ---------- */
@media (max-width:980px){
  html:not(#syn#syn) .syn-hs{--hs-title:clamp(38px,9vw,66.4px)}
  html:not(#syn#syn) .syn-hs__bg::after{background:linear-gradient(180deg,rgba(14,13,12,.35) 0%,rgba(14,13,12,.1) 60%,rgba(14,13,12,0) 100%)}
  /* One column: heading, photo strip, prompt + answer. The copy box "dissolves" (display:contents)
     so the strip can sit between the heading and the prompt. */
  html:not(#syn#syn) .syn-hs__inner{grid-template-columns:minmax(0,1fr);min-height:0;max-width:none;padding:calc(var(--syn-header-h) + 28px) var(--syn-gutter) 64px}
  html:not(#syn#syn) .syn-hs__copy{display:contents}
  html:not(#syn#syn) .syn-hs__copy>*{order:1}
  html:not(#syn#syn) .syn-hs__stage{order:2}
  html:not(#syn#syn) .syn-hs__live,html:not(#syn#syn) .syn-hs__copy>.syn-editor-notice{order:3}
  html:not(#syn#syn) .syn-hs__cta{order:4}
  /* The strip is mid-page here: only the background fades at the bottom. */
  html:not(#syn#syn) .syn-hs.has-fade .syn-hs__stage{-webkit-mask-image:none;mask-image:none}
  html:not(#syn#syn) .syn-hs__ans{width:100%}
  /* Height = the tallest prompt + answer (measured by JS), so nothing below moves between slides. */
  html:not(#syn#syn) .syn-hs__live{margin-top:0}
  html:not(#syn#syn) .syn-hs__ask{border-radius:24px}
  html:not(#syn#syn) .syn-hs__q{font-size:15.7px}
  html:not(#syn#syn) .syn-hs__below{margin-top:16px}
  html:not(#syn#syn) .syn-hs__ans-in{padding:16px 18.4px 18.4px;font-size:15.2px}
  html:not(#syn#syn) .syn-hs__viz img,html:not(#syn#syn) .syn-hs__viz svg,html:not(#syn#syn) .syn-hs__viz.is-lg img,html:not(#syn#syn) .syn-hs__viz.is-lg svg{max-height:240px}
  html:not(#syn#syn) .syn-hs__img{max-height:240px}

  html:not(#syn#syn) .syn-hs__stage{--card-w:min(66vw,442px);min-height:0;height:calc(var(--card-w) * .625);margin:28px calc(var(--syn-gutter) * -1) 28px;touch-action:pan-y}
  html:not(#syn#syn) .syn-hs__card{width:var(--card-w);aspect-ratio:16/10;border-radius:14px}
  html:not(#syn#syn) .syn-hs__card img{object-position:var(--pos-m,var(--pos,center))}
}

/* Inside the Beaver Builder editor show everything at once (no typing). */
html:not(#syn#syn) .fl-builder-edit .syn-hs__ans{height:auto;opacity:1;transform:none}
html:not(#syn#syn) .fl-builder-edit .syn-hs__who{opacity:1;transform:none}
html:not(#syn#syn) .fl-builder-edit .syn-hs__reply{clip-path:none}
html:not(#syn#syn) .fl-builder-edit .syn-hs__grow{grid-template-rows:1fr}
html:not(#syn#syn) .fl-builder-edit .syn-hs__grow .syn-hs__sheet>*{opacity:1;transform:none}

@media (prefers-reduced-motion:reduce){
  html:not(#syn#syn) .syn-hs__reply{clip-path:none}
  html:not(#syn#syn) .syn-hs-draw{stroke-dashoffset:0 !important}
  html:not(#syn#syn) .syn-hs__think-t{color:rgba(255,255,255,.78);background:none}
}

@keyframes syn-hs-blink{50%{opacity:0}}
@keyframes syn-hs-send{40%{transform:translateY(-4px) scale(.92)}}
@keyframes syn-hs-spin{to{transform:rotate(360deg)}}
@keyframes syn-hs-dot{0%,100%{opacity:.15}45%{opacity:1}}
@keyframes syn-hs-shimmer{from{background-position:80% 0}to{background-position:-50% 0}}
@keyframes syn-hs-reveal{to{clip-path:inset(0 0 0 0)}}
@keyframes syn-hs-piece{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes syn-hs-wipe{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes syn-hs-in{from{opacity:0}to{opacity:1}}
@keyframes syn-hs-gx{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes syn-hs-gy{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes syn-hs-pop{from{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}
@keyframes syn-hs-draw{to{stroke-dashoffset:0}}

/* Off-screen copy used by JS to measure the tallest slide on mobile (no transitions/animations). */
html:not(#syn#syn) .syn-hs__live.is-measure{position:absolute;left:-9999px;top:0;visibility:hidden;pointer-events:none;min-height:0}
html:not(#syn#syn) .syn-hs__live.is-measure *{transition:none !important;animation:none !important}
html:not(#syn#syn) .syn-hs__live.is-measure .syn-hs__ans{height:auto;opacity:1;transform:none}
html:not(#syn#syn) .syn-hs__live.is-measure .syn-hs__grow{grid-template-rows:1fr}
