/* /sectors only: four-photo hero, FUNNELS, WHAT CHANGES and the sector cards.
   Motion runs only with script and without reduced motion; otherwise every part shows its finished state:
   the hero tiles share one overlay with all four labels shown, and every funnel step and line is drawn. */

/* Hero: the four main SECTORS photos side by side (2x2 on phones) under a black overlay, copy centred on top. */
.sx-hero { position: relative; display: flex; align-items: center; justify-content: center; height: 680px; padding: 119px 0 72px; background: #111; overflow: hidden; text-align: center; }
.sx-tiles { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sx-tile { position: relative; min-width: 0; overflow: hidden; }
.sx-tile img { width: 100%; height: 100%; object-fit: cover; object-position: var(--sx-focus, 50%) center; }
.sx-tile::after { content: ''; position: absolute; inset: 0; background: #000; opacity: .6; transition: opacity .6s ease; }
.sx-tile-label { position: absolute; z-index: 2; left: 0; right: 0; bottom: 34px; font-family: var(--label); font-size: 18px; line-height: 1; letter-spacing: .08em; color: #fff; transition: opacity .6s ease; }
/* Header shade and a soft centre shade keep the white copy readable whichever tile is lit. */
.sx-hero::before { content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 160px), radial-gradient(ellipse 44% 40% at 50% 56%, rgba(0, 0, 0, .5), rgba(0, 0, 0, 0)); }
.sx-hero-copy { position: relative; z-index: 3; }
.sx-hero h1 > span { display: inline-block; }
.sx-hero .lead { text-wrap: balance; }
.sx-hero .label { color: var(--accent); }
.sx-hero h1 { margin-top: 14px; font-size: clamp(36px, 4vw, 60px); line-height: 1.2; letter-spacing: -1.5px; text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
.sx-hero .lead { max-width: 760px; margin: 26px auto 0; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
@media (prefers-reduced-motion: no-preference) {
  .js .sx-tile::after { opacity: .74; }
  .js .sx-tile.is-on::after { opacity: .22; }
  .js .sx-tile-label { opacity: 0; }
  .js .sx-tile.is-on .sx-tile-label { opacity: 1; }
}
/* PC: the hero ends above the fixed 88px consultation bar on short windows, so the lit label stays in view. */
@media (min-width: 1024px) {
  .sx-hero { height: clamp(600px, calc(100vh - 88px), 800px); }
}

/* FUNNELS: stage names on top, one line per sector, steps joined by thin lines; the last step is the brand orange. */
.sx-fn { margin-top: 56px; }
.sx-fn-head, .sx-fn-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); align-items: center; }
.sx-fn-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.sx-fn-head { padding-bottom: 10px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.sx-fn-row { --rd: calc(var(--r) * .3s); padding: 20px 0; }
.sx-fn-name { font-size: 20px; font-weight: 600; line-height: 1.4; color: #fff; }
.sx-fn-step { display: flex; align-items: center; min-width: 0; }
.sx-fn-stage { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sx-fn-text { flex: 0 1 auto; min-width: 0; font-size: 17px; line-height: 1.45; color: var(--sub); }
.sx-fn-step:last-child .sx-fn-text { color: var(--accent); }
.sx-fn-line { flex: 1 1 auto; min-width: 16px; height: 1px; margin: 0 16px; background: #5c5c5c; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .js .sx-fn-row:not(.is-in) .sx-fn-text { opacity: .16; }
  .js .sx-fn-row:not(.is-in) .sx-fn-line { transform: scaleX(0); }
  .js .sx-fn-row.is-in .sx-fn-text { transition: opacity .4s ease calc(var(--rd) + var(--s) * .25s); }
  .js .sx-fn-row.is-in .sx-fn-line { transition: transform .25s linear calc(var(--rd) + var(--s) * .25s); }
}

/* WHAT CHANGES: item names on the left, one column per sector, thin lines between the rows. */
.sx-wc { display: grid; grid-template-columns: 170px repeat(4, minmax(0, 1fr)); grid-template-rows: auto repeat(4, auto); margin-top: 48px; }
.sx-wc-keys, .sx-wc-col { grid-row: 1 / 6; display: grid; grid-template-rows: subgrid; min-width: 0; }
.sx-wc-col dl { grid-row: 2 / 6; display: grid; grid-template-rows: subgrid; margin: 0; }
.sx-wc-head { padding: 0 24px 22px 0; }
.sx-wc-thumb { width: 100%; max-width: 240px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.sx-wc-head h3 { margin-top: 14px; font-size: 20px; font-weight: 600; line-height: 1.4; }
.sx-wc-key, .sx-wc-cell { padding: 18px 24px 18px 0; border-top: 1px solid #3a3a3a; }
.sx-wc-key:last-child, .sx-wc-cell:last-child { border-bottom: 1px solid #3a3a3a; }
.sx-wc-key { font-size: 14px; line-height: 1.6; color: var(--sub); }
.sx-wc-cell dt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sx-wc-cell dd { margin: 0; font-size: 17px; line-height: 1.55; color: #fff; }

/* Sector cards: two columns, the whole card links to the sector page. */
.sx-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 32px; margin-top: 32px; }
.sx-card { display: flex; flex-direction: column; }
.sx-card-img { overflow: hidden; }
.sx-card-img img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s ease; }
.sx-card:hover .sx-card-img img { transform: scale(1.04); }
.sx-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; }
.sx-card .label { margin-top: 20px; font-size: 18px; color: var(--accent); }
.sx-card h3 { margin-top: 2px; font-size: 32px; font-weight: 500; line-height: 1.25; }
.sx-card-concept { margin-top: 14px; font-size: 22px; font-weight: 500; line-height: 1.45; color: #fff; }
.sx-card-body { margin-top: 12px; font-size: 17px; line-height: 1.7; color: var(--sub); }
.sx-card-funnel { margin: 18px 0 24px; font-size: 14px; font-weight: 500; line-height: 1.6; color: var(--accent); }
.sx-card-funnel span { white-space: nowrap; }
.sx-card-more { align-self: flex-start; margin-top: auto; padding-bottom: 5px; border-bottom: 1px solid #555; font-size: 16px; color: #fff; transition: border-color .2s; }
.sx-card-more span { color: var(--accent); }
.sx-card:hover .sx-card-more, .sx-card:focus-visible .sx-card-more { border-color: var(--accent); }

@media (prefers-reduced-motion: reduce) {
  .sx-tile::after, .sx-tile-label, .sx-card-img img, .sx-card-more { transition: none; }
  .sx-card:hover .sx-card-img img { transform: none; }
}

/* Tablet widths: narrower first columns so the four sector columns keep their text. */
@media (max-width: 1023px) {
  .sx-fn-head, .sx-fn-row { grid-template-columns: 120px minmax(0, 1fr); }
  .sx-fn-text { font-size: 15px; }
  .sx-fn-line { min-width: 10px; margin: 0 10px; }
  .sx-wc { grid-template-columns: 116px repeat(4, minmax(0, 1fr)); }
  .sx-wc-head, .sx-wc-key, .sx-wc-cell { padding-right: 14px; }
  .sx-wc-cell dd { font-size: 15px; }
}

/* Phones: 2x2 hero, and FUNNELS / WHAT CHANGES stacked one sector per block. */
@media (max-width: 767px) {
  .sx-hero { height: auto; min-height: 640px; padding: 88px 0 40px; }
  .sx-tiles { top: 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(0, 1fr)); }
  .sx-tile-label { bottom: 16px; font-size: 14px; }
  /* The top row's labels sit at the tile top: at its bottom edge they would run into the centred copy. */
  .sx-tile:nth-child(-n+2) .sx-tile-label { top: 16px; bottom: auto; }
  .sx-hero h1 { font-size: 32px; line-height: 1.3; letter-spacing: -.8px; }
  .sx-hero .lead { max-width: 340px; margin-top: 20px; }

  .sx-fn { margin-top: 36px; }
  .sx-fn-head { display: none; }
  .sx-fn-row { --rd: 0s; display: block; padding: 0; }
  .sx-fn-row + .sx-fn-row { margin-top: 32px; }
  .sx-fn-name { padding-bottom: 12px; border-bottom: 1px solid #3a3a3a; font-size: 19px; }
  .sx-fn-steps { display: block; margin-top: 14px; }
  .sx-fn-step { display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: baseline; }
  .sx-fn-stage { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 13px; color: #8c8c8c; }
  .sx-fn-text { font-size: 16px; }
  .sx-fn-line { grid-column: 2; width: 1px; height: 14px; min-width: 0; margin: 6px 0; transform-origin: center top; }

  .sx-wc { display: block; margin-top: 32px; }
  .sx-wc-keys { display: none; }
  .sx-wc-col, .sx-wc-col dl { display: block; }
  .sx-wc-col + .sx-wc-col { margin-top: 40px; }
  .sx-wc-head { display: flex; align-items: center; gap: 14px; padding: 0 0 16px; }
  .sx-wc-thumb { width: 112px; flex: none; }
  .sx-wc-head h3 { margin-top: 0; font-size: 19px; }
  .sx-wc-cell { padding: 12px 0; }
  .sx-wc-cell dt { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 13px; line-height: 1.5; color: var(--sub); }
  .sx-wc-cell dd { margin-top: 3px; font-size: 16px; }

  .sx-cards { grid-template-columns: minmax(0, 1fr); gap: 48px; margin-top: 24px; }
  .sx-card .label { margin-top: 14px; font-size: 16px; }
  .sx-card h3 { font-size: 26px; }
  .sx-card-concept { margin-top: 10px; font-size: 19px; }
  .sx-card-body { font-size: 15px; }
  .sx-card-funnel { margin: 14px 0 20px; font-size: 13px; }
  .sx-card-more { font-size: 15px; }
}
@media (max-width: 767px) and (prefers-reduced-motion: no-preference) {
  .js .sx-fn-row:not(.is-in) .sx-fn-line { transform: scaleY(0); }
}
