/* =========================================================================
   JOYDO — Inner pages (About, Services, Career, Contact, Privacy, Data)

   Loaded only on pages that are not the front page, so the single-page
   experience carries none of this weight. Every value here is drawn from the
   tokens declared in joydo.css; no new colours are introduced.
   ========================================================================= */

/* ---------- Scroll reveal ----------------------------------------------
   The hidden state lives behind .js so that a browser with JavaScript off,
   or a failed reveal.js, still shows the content. html.js is set by an inline
   snippet in the head before first paint, which avoids the flash that a
   deferred script would cause.
   ----------------------------------------------------------------------- */
.js [data-reveal]{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .62s var(--ease), transform .62s var(--ease);
  transition-delay:var(--jr-delay,0ms);
  will-change:opacity,transform;
}
.js [data-reveal].is-in{opacity:1;transform:none}

/* Stagger children without needing a delay attribute on every element. */
.jr-stagger > *:nth-child(1){--jr-delay:0ms}
.jr-stagger > *:nth-child(2){--jr-delay:70ms}
.jr-stagger > *:nth-child(3){--jr-delay:140ms}
.jr-stagger > *:nth-child(4){--jr-delay:210ms}
.jr-stagger > *:nth-child(5){--jr-delay:280ms}
.jr-stagger > *:nth-child(6){--jr-delay:350ms}
.jr-stagger > *:nth-child(7){--jr-delay:420ms}
.jr-stagger > *:nth-child(8){--jr-delay:490ms}

@media (prefers-reduced-motion:reduce){
  .js [data-reveal]{opacity:1;transform:none;transition:none}
}

/* ---------- Page hero ---------------------------------------------------
   A calmer cousin of the front-page hero: no doorway, no canvas, just the
   title over a soft wash so inner pages feel part of the same family.
   ----------------------------------------------------------------------- */
.phero{
  position:relative;
  padding:clamp(96px,12vw,150px) 0 clamp(56px,7vw,86px);
  background:
    radial-gradient(1100px 420px at 18% -10%, var(--t-teal) 0%, transparent 62%),
    radial-gradient(760px 340px at 92% 8%, var(--t-yellow) 0%, transparent 58%),
    var(--white);
  overflow:hidden;
}
.phero-in{position:relative;z-index:2;max-width:74ch}
.phero .eyebrow{
  display:inline-flex;align-items:center;gap:9px;
  font-family:var(--head);font-weight:600;font-size:13.5px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--teal);
  background:#fff;border-radius:999px;padding:8px 15px;box-shadow:var(--sh-1);
}
.phero h1{
  margin-top:20px;
  font-size:clamp(32px,5.2vw,58px);
  letter-spacing:-.02em;
}
.phero .lede{
  margin-top:18px;color:var(--ink-60);
  font-size:clamp(16px,1.6vw,19px);line-height:1.62;max-width:62ch;
}

/* Drifting brand squiggles. Purely decorative, hidden from assistive tech. */
.phero-art{position:absolute;inset:0;z-index:1;pointer-events:none}
.phero-art i{
  position:absolute;display:block;border-radius:999px;opacity:.5;
  animation:pfloat 9s var(--ease) infinite alternate;
}
.phero-art i:nth-child(1){width:104px;height:14px;background:var(--yellow);top:22%;right:9%;transform:rotate(-24deg)}
.phero-art i:nth-child(2){width:74px;height:12px;background:var(--green);top:52%;right:19%;transform:rotate(12deg);animation-delay:-3s}
.phero-art i:nth-child(3){width:58px;height:11px;background:var(--teal-soft);top:74%;right:6%;transform:rotate(-8deg);animation-delay:-6s}
@keyframes pfloat{from{transform:translateY(0) rotate(var(--r,0deg))}to{transform:translateY(-16px) rotate(var(--r,0deg))}}
@media (prefers-reduced-motion:reduce){
  .phero-art i{animation:none}
}
@media (max-width:760px){
  .phero-art{display:none}
}

/* ---------- Prose ------------------------------------------------------- */
.prose-sec{padding:clamp(52px,7vw,86px) 0}
.prose-sec.is-tint{background:var(--t-neutral)}
.prose-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(28px,4vw,52px)}
.prose-grid.has-media{grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr);align-items:center}
@media (max-width:900px){
  .prose-grid.has-media{grid-template-columns:minmax(0,1fr)}
}
.prose h2{font-size:clamp(25px,3vw,36px);margin-bottom:18px}
.prose-body{color:var(--ink-60);font-size:16.5px;line-height:1.72;max-width:66ch}
.prose-body > * + *{margin-top:16px}
.prose-body strong{color:var(--ink);font-weight:600}
.prose-body a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.prose-body ul,.prose-body ol{margin:16px 0 0;padding-left:22px}
.prose-body li + li{margin-top:9px}
/*
 * height:auto is load-bearing. The block emits real width and height
 * attributes so the browser can reserve space before the image arrives (it
 * keeps cumulative layout shift at zero), but an HTML height attribute beats
 * a CSS width with no height — so width:100% alone squashed a 1254x1254
 * image to 505x1254. The attributes stay; the CSS has to release the height.
 */
.prose-media img{width:100%;height:auto;border-radius:var(--r-panel);box-shadow:var(--sh-2)}

/* ---------- Feature cards ---------------------------------------------- */
.cards-sec{padding:clamp(52px,7vw,86px) 0}
.cards-sec.is-tint{background:var(--t-neutral)}
.cardgrid{display:grid;gap:22px;grid-template-columns:repeat(auto-fit,minmax(272px,1fr))}
.jcard{
  background:#fff;border-radius:var(--r-card);padding:30px 27px;
  box-shadow:var(--sh-1);position:relative;overflow:hidden;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.jcard::after{
  /* A brand bar that widens on hover — the same gesture the tiles use. */
  content:"";position:absolute;left:0;right:0;bottom:0;height:3px;
  background:linear-gradient(90deg,var(--teal),var(--green));
  transform:scaleX(0);transform-origin:left;
  transition:transform .38s var(--ease);
}
.jcard:hover{transform:translateY(-5px);box-shadow:var(--sh-2)}
.jcard:hover::after{transform:scaleX(1)}
.jcard .ring{
  width:56px;height:56px;border-radius:17px;display:grid;place-items:center;
  background:var(--t-teal);color:var(--teal);margin-bottom:18px;
}
.jcard:nth-child(3n+2) .ring{background:var(--t-green);color:var(--green)}
.jcard:nth-child(3n+3) .ring{background:var(--t-yellow);color:#b98a05}
.jcard .ring svg{width:26px;height:26px}
.jcard h3{font-size:19px;margin-bottom:9px}
.jcard p{color:var(--ink-60);font-size:15px;line-height:1.65}
@media (prefers-reduced-motion:reduce){
  .jcard,.jcard::after{transition:none}
  .jcard:hover{transform:none}
}

/* ---------- Careers ----------------------------------------------------- */
.jobs-sec{padding:clamp(52px,7vw,86px) 0}
.joblist{display:grid;gap:16px;max-width:900px;margin-inline:auto}
.job{
  background:#fff;border-radius:var(--r-card);padding:26px 28px;
  box-shadow:var(--sh-1);display:grid;gap:14px;
  grid-template-columns:minmax(0,1fr) auto;align-items:center;
  transition:transform .3s var(--ease),box-shadow .3s var(--ease);
}
.job:hover{transform:translateY(-3px);box-shadow:var(--sh-2)}
.job h3{font-size:19px}
.job-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:11px}
.job-meta span{
  font-size:12.5px;font-weight:600;color:var(--teal);
  background:var(--t-teal);border-radius:999px;padding:5px 12px;
}
.job p{color:var(--ink-60);font-size:15px;line-height:1.62;margin-top:12px}
@media (max-width:640px){
  .job{grid-template-columns:minmax(0,1fr)}
}
.jobs-empty{
  text-align:center;max-width:620px;margin:0 auto;
  background:var(--t-teal);border-radius:var(--r-panel);padding:44px 32px;
}
.jobs-empty h3{font-size:22px;margin-bottom:12px}
.jobs-empty p{color:var(--ink-60);font-size:16px;line-height:1.65;margin-bottom:22px}

/* ---------- Contact ----------------------------------------------------- */
.contact-sec{padding:clamp(52px,7vw,86px) 0}
.contact-grid{display:grid;gap:clamp(24px,3vw,40px);grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
@media (max-width:900px){
  .contact-grid{grid-template-columns:minmax(0,1fr)}
}
.cpanel{background:#fff;border-radius:var(--r-panel);padding:34px 32px;box-shadow:var(--sh-2)}
.cpanel h2{font-size:24px;margin-bottom:22px}
.crow{display:grid;grid-template-columns:44px minmax(0,1fr);gap:15px;align-items:start;padding:15px 0}
.crow + .crow{border-top:1px solid var(--line)}
.crow .ring{
  width:44px;height:44px;border-radius:14px;display:grid;place-items:center;
  background:var(--t-teal);color:var(--teal);
}
.crow .ring svg{width:21px;height:21px}
.crow dt{font-family:var(--head);font-weight:600;font-size:14px;color:var(--ink);margin-bottom:4px}
.crow dd{margin:0;color:var(--ink-60);font-size:15px;line-height:1.6}
.crow dd a{color:var(--teal)}
.crow dd a:hover{text-decoration:underline}
.cmap{
  border-radius:var(--r-panel);overflow:hidden;box-shadow:var(--sh-2);
  background:var(--t-neutral);min-height:280px;display:grid;place-items:center;
}
.cmap iframe{width:100%;height:100%;min-height:340px;border:0;display:block}

/* ---------- Legal documents -------------------------------------------- */
.legal-sec{padding:clamp(44px,6vw,76px) 0 clamp(60px,8vw,96px)}
.legal-grid{display:grid;grid-template-columns:240px minmax(0,1fr);gap:clamp(28px,4vw,56px);align-items:start}
@media (max-width:920px){
  .legal-grid{grid-template-columns:minmax(0,1fr)}
  .legal-nav{position:static !important;max-height:none !important}
}
.legal-nav{position:sticky;top:96px;max-height:calc(100vh - 120px);overflow-y:auto}
.legal-nav p{
  font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.06em;
  text-transform:uppercase;color:var(--ink-40);margin-bottom:12px;
}
.legal-nav ol{list-style:none;margin:0;padding:0;counter-reset:ln}
.legal-nav li{counter-increment:ln}
.legal-nav a{
  display:block;padding:8px 12px;border-radius:10px;font-size:14.5px;
  color:var(--ink-60);line-height:1.45;
  border-left:2px solid transparent;
  transition:background-color .2s var(--ease),color .2s var(--ease),border-color .2s var(--ease);
}
.legal-nav a::before{content:counter(ln) ". ";color:var(--ink-40);font-weight:600}
.legal-nav a:hover{background:var(--t-teal);color:var(--teal)}
.legal-nav a.is-current{background:var(--t-teal);color:var(--teal);border-left-color:var(--teal);font-weight:600}

.legal-meta{
  display:inline-flex;align-items:center;gap:9px;margin-bottom:26px;
  font-size:13.5px;color:var(--ink-60);
  background:var(--t-neutral);border-radius:999px;padding:8px 16px;
}
.legal-body h2{
  font-size:clamp(21px,2.4vw,27px);margin-top:44px;margin-bottom:14px;
  scroll-margin-top:110px;
}
.legal-body h2:first-of-type{margin-top:0}
.legal-body{color:var(--ink-60);font-size:16px;line-height:1.75;max-width:72ch}
.legal-body p + p{margin-top:15px}
.legal-body ul,.legal-body ol{margin:15px 0 0;padding-left:22px}
.legal-body li + li{margin-top:9px}
.legal-body strong{color:var(--ink);font-weight:600}
.legal-body a{color:var(--teal);text-decoration:underline;text-underline-offset:3px}
.legal-body table{width:100%;border-collapse:collapse;margin-top:18px;font-size:15px}
.legal-body th,.legal-body td{text-align:left;padding:11px 13px;border:1px solid var(--line);vertical-align:top}
.legal-body th{background:var(--t-neutral);font-family:var(--head);font-weight:600;color:var(--ink)}

/* A callout for the things the client still has to confirm or a lawyer must
   sign off. Deliberately visible rather than a hidden HTML comment. */
.legal-callout{
  border-left:3px solid var(--yellow);background:var(--t-yellow);
  border-radius:0 14px 14px 0;padding:18px 20px;margin-top:22px;
  font-size:15px;line-height:1.65;color:var(--ink);
}

/* ---------- Shared closing CTA ------------------------------------------ */
.pcta{padding:clamp(56px,7vw,90px) 0}
.pcta-in{
  background:linear-gradient(135deg,var(--teal) 0%,var(--teal-deep) 100%);
  border-radius:var(--r-panel);padding:clamp(38px,5vw,62px) clamp(26px,4vw,56px);
  color:#fff;text-align:center;position:relative;overflow:hidden;
}
.pcta-in::before{
  content:"";position:absolute;width:320px;height:320px;border-radius:50%;
  background:rgba(255,255,255,.07);top:-140px;right:-90px;
}
.pcta h2{font-size:clamp(24px,3.2vw,36px);color:#fff;position:relative}
.pcta p{margin-top:14px;color:rgba(255,255,255,.84);font-size:16.5px;max-width:54ch;margin-inline:auto;position:relative}
.pcta .row{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;margin-top:28px;position:relative}

/* =========================================================================
   PART 2 — Distinct page layouts

   About, Services and Career were all "hero, prose, card grid, CTA", which
   made three different pages feel like one template with the words swapped.
   Each now gets a layout suited to what it has to say:

     About    editorial — a sticky visual with narrative scrolling past it
     Services bento grid — modular tiles of varying weight
     Career   bold split panels and a kinetic band

   Motion is written twice on purpose. Scroll-driven CSS (animation-timeline)
   runs on the compositor and needs no JavaScript, but only ships in Chromium
   115+ and Safari 26+. Where it is unsupported the existing IntersectionObserver
   in reveal.js still adds .is-in, so nothing depends on the new syntax.
   ========================================================================= */

/* ---------- Shared: kinetic headline -----------------------------------
   text-wrap:balance stops a headline breaking with one orphaned word, which
   is the single cheapest typographic improvement available.
   ----------------------------------------------------------------------- */
.kin{text-wrap:balance}
/*
 * The accent tail of a page headline. Solid brand teal, per the client.
 *
 * This was a three-stop gradient clipped to the text. Painting it as a plain
 * colour is also the more robust of the two: background-clip:text needs
 * transparent text to show the background through, so anywhere that property
 * fails the headline renders invisible rather than merely unstyled.
 *
 * The class is still called .grad because page-hero/render.php emits it and
 * the obvious rename, .accent, is already taken by the front-page hero in
 * joydo.css — the same collision that .bento caused.
 */
.kin .grad{color:var(--teal)}

/* Scroll-linked reveal. Progressive: browsers without it keep the JS path. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js [data-reveal]{
      animation:jr-in linear both;
      animation-timeline:view();
      animation-range:entry 4% entry 44%;
      transition:none;
    }
    /* Once the observer has marked it in, never let the timeline hide it again. */
    .js [data-reveal].is-in{animation:none;opacity:1;transform:none}
  }
}
@keyframes jr-in{
  from{opacity:0;transform:translateY(22px)}
  to{opacity:1;transform:none}
}

/* ---------- ABOUT: editorial masthead ----------------------------------- */
.phero.is-editorial{
  padding:clamp(104px,13vw,168px) 0 clamp(40px,6vw,72px);
  background:
    radial-gradient(900px 480px at 80% -20%, var(--t-green) 0%, transparent 60%),
    radial-gradient(700px 400px at 10% 10%, var(--t-teal) 0%, transparent 62%),
    var(--white);
}
.phero.is-editorial .phero-in{max-width:none}
.ed-grid{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(0,.55fr);gap:clamp(24px,4vw,64px);align-items:end}
@media (max-width:880px){.ed-grid{grid-template-columns:minmax(0,1fr)}}
/*
 * No font-size of its own: the editorial hero inherits the same scale as every
 * other page hero from .phero h1, so all six pages share one headline size.
 * What makes this variant "editorial" is the layout — the headline occupies a
 * wide column with the lede set alongside it — not a larger type scale. It
 * previously ran to 80px against 58px elsewhere, which read as an inconsistency
 * rather than as emphasis.
 */
.ed-grid h1{line-height:1.05}
.ed-aside{padding-bottom:10px}
.ed-aside p{color:var(--ink-60);font-size:16.5px;line-height:1.66;border-left:3px solid var(--yellow);padding-left:18px}

/* ---------- ABOUT: sticky narrative -------------------------------------
   The visual pins while the steps scroll past it. The pin is plain
   position:sticky, so a browser without scroll-driven animation still gets
   the layout — it simply does not cross-fade.
   ----------------------------------------------------------------------- */
.story{padding:clamp(56px,8vw,110px) 0;background:var(--t-neutral)}
.story-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(28px,5vw,80px);align-items:start}
@media (max-width:920px){.story-grid{grid-template-columns:minmax(0,1fr)}}
.story-pin{position:sticky;top:clamp(90px,14vh,140px)}
.story-figure{
  aspect-ratio:4/5;border-radius:var(--r-panel);overflow:hidden;position:relative;
  background:linear-gradient(150deg,var(--teal) 0%,var(--teal-deep) 100%);
  box-shadow:var(--sh-3);display:grid;place-items:center;
}
.story-figure img{width:100%;height:100%;object-fit:cover}
.story-figure .mark{width:44%;max-width:210px;opacity:.9}
.story-figure .mark svg{width:100%;height:auto;color:#fff}
@media (max-width:920px){.story-pin{position:static}.story-figure{aspect-ratio:16/10}}

.story-steps{display:grid;gap:clamp(22px,3vw,40px)}
.story-step{
  background:#fff;border-radius:var(--r-card);padding:clamp(24px,3vw,38px);
  box-shadow:var(--sh-1);position:relative;
  border-left:4px solid transparent;
  transition:border-color .4s var(--ease),box-shadow .4s var(--ease),transform .4s var(--ease);
}
.story-step:hover{box-shadow:var(--sh-2);transform:translateY(-3px)}
.story-step:nth-child(3n+1){border-left-color:var(--teal)}
.story-step:nth-child(3n+2){border-left-color:var(--green)}
.story-step:nth-child(3n+3){border-left-color:var(--yellow)}
.story-step .idx{
  font-family:var(--head);font-weight:700;font-size:13px;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-40);display:block;margin-bottom:12px;
}
.story-step h3{font-size:clamp(20px,2.3vw,27px);margin-bottom:12px}
.story-step p{color:var(--ink-60);font-size:16px;line-height:1.7}

/* ---------- ABOUT: statistics ------------------------------------------- */
.stats{padding:clamp(52px,7vw,92px) 0}
.statgrid{display:grid;gap:clamp(18px,3vw,34px);grid-template-columns:repeat(auto-fit,minmax(190px,1fr));text-align:center}
.stat .n{
  font-family:var(--head);font-weight:700;line-height:1;
  font-size:clamp(40px,6vw,68px);letter-spacing:-.03em;
  background:linear-gradient(140deg,var(--teal),var(--green));
  -webkit-background-clip:text;background-clip:text;
  -webkit-text-fill-color:transparent;color:transparent;
}
.stat .lbl{margin-top:12px;color:var(--ink-60);font-size:15px;line-height:1.55}

/* ---------- SERVICES: bento grid ----------------------------------------
   Twelve columns so tiles can take 6/4/3 and produce genuinely different
   weights rather than a uniform card wall. Collapses to one column on phones.
   ----------------------------------------------------------------------- */
.bentosec{padding:clamp(52px,7vw,92px) 0}
.bentogrid{display:grid;grid-template-columns:repeat(12,1fr);gap:clamp(14px,1.6vw,22px)}
@media (max-width:900px){.bentogrid{grid-template-columns:repeat(6,1fr)}}
@media (max-width:620px){.bentogrid{grid-template-columns:1fr}}

.btile{
  position:relative;overflow:hidden;isolation:isolate;
  border-radius:var(--r-card);padding:clamp(22px,2.6vw,34px);
  background:#fff;box-shadow:var(--sh-1);
  display:flex;flex-direction:column;justify-content:flex-end;gap:10px;
  min-height:210px;
  transition:transform .38s var(--ease),box-shadow .38s var(--ease);
}
.btile:hover{transform:translateY(-6px);box-shadow:var(--sh-3)}
.btile::before{
  /* A soft brand bloom that grows on hover, behind the content. */
  content:"";position:absolute;z-index:-1;inset:auto -30% -55% auto;
  width:260px;height:260px;border-radius:50%;
  background:var(--t-teal);opacity:.75;
  transition:transform .55s var(--ease);
}
.btile:hover::before{transform:scale(1.5)}
.btile .ring{
  width:52px;height:52px;border-radius:16px;display:grid;place-items:center;
  background:var(--t-teal);color:var(--teal);margin-bottom:auto;
}
.btile .ring svg{width:25px;height:25px}
.btile h3{font-size:clamp(18px,2vw,23px)}
.btile p{color:var(--ink-60);font-size:15px;line-height:1.62}

/* Spans. w6/w4/w3 give the grid its rhythm; the tall variant adds a second row. */
.btile.w6{grid-column:span 6}
.btile.w4{grid-column:span 4}
.btile.w3{grid-column:span 3}
.btile.tall{grid-row:span 2;min-height:440px}
@media (max-width:900px){
  .btile.w6,.btile.w4,.btile.w3{grid-column:span 3}
  .btile.tall{grid-row:auto;min-height:230px}
}
@media (max-width:620px){
  .btile.w6,.btile.w4,.btile.w3{grid-column:1 / -1}
}

/* Accent variants so the grid is not a field of white boxes. */
.btile.acc-teal{background:linear-gradient(145deg,var(--teal) 0%,var(--teal-deep) 100%);color:#fff}
.btile.acc-teal h3{color:#fff}
.btile.acc-teal p{color:rgba(255,255,255,.82)}
.btile.acc-teal .ring{background:rgba(255,255,255,.16);color:#fff}
.btile.acc-teal::before{background:rgba(255,255,255,.08)}
.btile.acc-green .ring{background:var(--t-green);color:var(--green)}
.btile.acc-green::before{background:var(--t-green)}
.btile.acc-yellow .ring{background:var(--t-yellow);color:#b98a05}
.btile.acc-yellow::before{background:var(--t-yellow)}

/* ---------- Kinetic marquee ---------------------------------------------
   Duplicated track so the loop is seamless. Hidden entirely from assistive
   tech because it is decorative repetition, and frozen under reduced motion.
   ----------------------------------------------------------------------- */
.marquee{
  overflow:hidden;padding:clamp(16px,2vw,26px) 0;
  background:var(--charcoal);
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 8%,#000 92%,transparent);
}
.marquee-track{display:flex;width:max-content;animation:mq 34s linear infinite}
.marquee:hover .marquee-track{animation-play-state:paused}
.marquee span{
  display:inline-flex;align-items:center;gap:22px;padding-right:22px;
  font-family:var(--head);font-weight:600;font-size:clamp(17px,2.2vw,26px);
  color:rgba(255,255,255,.92);white-space:nowrap;
}
.marquee span i{width:9px;height:9px;border-radius:50%;background:var(--yellow);flex:none}
@keyframes mq{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .marquee-track{animation:none;width:100%;justify-content:center;flex-wrap:wrap}
}

/* ---------- CAREER: split panels ---------------------------------------- */
.split{
  padding:0;
  /*
   * The panel is full-bleed, but its text should still line up with the 1240px
   * shell the rest of the page uses — otherwise the copy hugs the viewport edge
   * on a wide screen and reads as a different site. max() keeps the ordinary
   * padding on narrower screens where the shell is already edge-to-edge.
   */
  --split-gutter:max(clamp(22px,5vw,72px), calc((100vw - var(--shell)) / 2));
}
.split-in{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));min-height:clamp(380px,52vw,560px)}
@media (max-width:860px){.split-in{grid-template-columns:minmax(0,1fr)}}
.split-copy{
  display:flex;flex-direction:column;justify-content:center;gap:18px;
  padding:clamp(36px,6vw,86px) clamp(22px,5vw,72px);
}
.split:not(.is-flip) .split-copy{padding-left:var(--split-gutter)}
.split.is-flip .split-copy{padding-right:var(--split-gutter)}
@media (max-width:860px){
  .split:not(.is-flip) .split-copy,
  .split.is-flip .split-copy{padding-inline:clamp(22px,5vw,72px)}
}
.split-copy h2{font-size:clamp(27px,3.8vw,46px);letter-spacing:-.02em}
.split-copy p{color:var(--ink-60);font-size:17px;line-height:1.7;max-width:50ch}
.split-art{
  position:relative;overflow:hidden;
  background:linear-gradient(150deg,var(--teal) 0%,var(--teal-deep) 100%);
  display:grid;place-items:center;min-height:280px;
}
.split-art img{width:100%;height:100%;object-fit:cover}
.split-art .blob{position:absolute;border-radius:50%;background:rgba(255,255,255,.08)}
.split-art .blob:nth-child(1){width:330px;height:330px;top:-90px;right:-70px}
.split-art .blob:nth-child(2){width:220px;height:220px;bottom:-60px;left:-50px;background:rgba(246,196,69,.16)}
.split-art .mark{width:46%;max-width:230px;position:relative}
.split-art .mark svg{width:100%;height:auto;color:#fff;opacity:.92}
.split.is-flip .split-copy{order:2}
@media (max-width:860px){.split.is-flip .split-copy{order:0}}

/* ---------- CAREER: expanding role rows ---------------------------------
   <details>/<summary> so a role opens with no JavaScript at all and is
   keyboard accessible by default.
   ----------------------------------------------------------------------- */
.roles{display:grid;gap:14px;max-width:900px;margin-inline:auto}
.role{
  background:#fff;border-radius:var(--r-card);box-shadow:var(--sh-1);
  overflow:hidden;transition:box-shadow .3s var(--ease);
}
.role[open]{box-shadow:var(--sh-2)}
.role summary{
  list-style:none;cursor:pointer;padding:24px 26px;
  display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;
}
.role summary::-webkit-details-marker{display:none}
.role summary h3{font-size:19px}
.role .chev{
  width:34px;height:34px;border-radius:50%;background:var(--t-teal);color:var(--teal);
  display:grid;place-items:center;flex:none;transition:transform .32s var(--ease),background-color .32s var(--ease);
}
.role .chev svg{width:17px;height:17px}
.role[open] .chev{transform:rotate(180deg);background:var(--teal);color:#fff}
.role-body{padding:0 26px 26px;color:var(--ink-60);font-size:15.5px;line-height:1.7}
.role-body .job-meta{margin:0 0 14px}
@media (prefers-reduced-motion:reduce){.role .chev{transition:none}}

/* ---------- Consecutive split panels interlock --------------------------
   WordPress gives every top-level block a margin-block-start (24px by
   default), which is right for cards and prose but wrong here: two split
   panels are meant to read as one alternating band, and a gap between them
   leaves a white notch at the inner corner where the artwork of one panel
   meets the copy column of the next.

   Only adjacent panels are joined. The first panel in a run keeps its normal
   spacing from whatever precedes it.
   ----------------------------------------------------------------------- */
.split + .split{margin-block-start:0}
