/* SEYLAC_HOMEPAGE_V4 — six connected finance stories + mobile hero composition. */
.s4-features {
  --s4-deep: #063d52;
  --s4-ink: #102e39;
  --s4-teal: #087d78;
  --s4-mint: #c7f3df;
  --s4-soft: #eef6f4;
  --s4-cream: #f7f5e9;
  --s4-yellow: #ffd43b;
  --s4-line: rgba(6, 61, 82, .12);
  padding: clamp(72px, 8vw, 118px) 0;
  color: var(--s4-ink);
  background:
    radial-gradient(circle at 96% 2%, rgba(8, 125, 120, .11), transparent 26%),
    linear-gradient(180deg, #f8fbfa 0%, #eef5f3 100%);
}

.s4-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(300px, .72fr);
  align-items: end;
  gap: clamp(32px, 6vw, 88px);
  margin-bottom: clamp(38px, 5vw, 64px);
}

.s4-kicker,
.s4-eyebrow {
  display: block;
  color: var(--s4-teal);
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.s4-section-head h2 {
  max-width: 760px;
  margin: 15px 0 0;
  font-family: "Instrument Sans", "Mona Sans", Arial, sans-serif;
  font-size: clamp(42px, 5.1vw, 72px);
  font-weight: 560;
  letter-spacing: -.06em;
  line-height: .98;
}

.s4-section-head h2 em {
  color: var(--s4-teal);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

.s4-section-head > p {
  max-width: 470px;
  margin: 0;
  color: #64747a;
  font-size: clamp(15px, 1.35vw, 18px);
  line-height: 1.67;
}

.s4-story-stack {
  display: grid;
  gap: clamp(22px, 3vw, 38px);
}

.s4-story {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--s4-line);
  border-radius: clamp(24px, 3vw, 36px);
  background: #fff;
  box-shadow: 0 25px 70px rgba(6, 61, 82, .08);
  isolation: isolate;
}

.s4-story h3,
.s4-story h4,
.s4-story p,
.s4-story figure {
  margin: 0;
}

.s4-story h3 {
  font-family: "Instrument Sans", "Mona Sans", Arial, sans-serif;
  font-size: clamp(35px, 4.2vw, 58px);
  font-weight: 590;
  letter-spacing: -.055em;
  line-height: 1;
}

.s4-story p {
  color: #627279;
  font-size: 15px;
  line-height: 1.66;
}

.s4-number {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  place-items: center;
  color: #fff;
  background: var(--s4-teal);
  border-radius: 14px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .08em;
}

.s4-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: var(--s4-deep);
  font-size: 14px;
  font-weight: 820;
  text-decoration: none;
}

.s4-link span {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  background: var(--s4-deep);
  border-radius: 50%;
  transition: transform .2s ease;
}

.s4-link:hover span { transform: translateX(3px); }

/* 01 — all in one */
.s4-story-platform {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(330px, 1.05fr) minmax(260px, .72fr);
  grid-template-areas:
    "copy visual list"
    "note visual list";
  min-height: 620px;
  padding: clamp(32px, 4.4vw, 66px);
  background: #fff;
}

.s4-story-platform::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  right: 25%;
  bottom: -240px;
  border-radius: 50%;
  background: rgba(199, 243, 223, .5);
  box-shadow: 0 0 0 70px rgba(199, 243, 223, .18);
}

.s4-story-copy {
  grid-area: copy;
  align-self: center;
  padding-right: clamp(18px, 3vw, 50px);
}

.s4-story-copy h3 { margin: 14px 0 24px; }
.s4-platform-visual { position: relative; grid-area: visual; min-width: 0; align-self: stretch; }
.s4-platform-visual img { position: absolute; z-index: 2; inset: 50% auto auto 50%; width: min(90%, 430px); height: auto; transform: translate(-50%, -50%); border-radius: 50%; filter: drop-shadow(0 30px 30px rgba(6, 61, 82, .12)); }
.s4-orbit { position: absolute; inset: 50% auto auto 50%; width: min(94%, 470px); aspect-ratio: 1; transform: translate(-50%, -50%); border: 2px solid var(--s4-teal); border-radius: 50%; box-shadow: 0 0 0 18px rgba(199, 243, 223, .45); }

.s4-capability-list {
  grid-area: list;
  display: grid;
  align-content: center;
}

.s4-capability-list > span {
  display: grid;
  grid-template-columns: 43px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 19px 0;
  border-bottom: 1px solid var(--s4-line);
}

.s4-capability-list > span:last-child { border-bottom: 0; }
.s4-capability-list i { grid-row: 1 / 3; display: grid; width: 43px; height: 43px; place-items: center; color: var(--s4-deep); background: var(--s4-mint); border-radius: 50%; font-size: 10px; font-style: normal; font-weight: 850; }
.s4-capability-list b { align-self: end; font-size: 14px; }
.s4-capability-list small { color: #758186; font-size: 11px; line-height: 1.45; }
.s4-platform-note { grid-area: note; align-self: end; width: fit-content; padding: 16px 20px; color: #fff; background: var(--s4-deep); border-radius: 15px; font-size: 12px; }
.s4-platform-note span { margin-right: 8px; color: var(--s4-yellow); }

/* 02 — smarter teamwork */
.s4-story-team {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 5vw, 76px);
  padding: clamp(34px, 4.8vw, 70px);
}

.s4-team-intro { display: flex; min-width: 0; flex-direction: column; }
.s4-team-intro h3 { max-width: 650px; margin: 14px 0 22px; }
.s4-team-intro > p { max-width: 590px; }
.s4-team-intro figure { position: relative; min-height: 230px; margin-top: auto; padding-top: 30px; }
.s4-team-intro figure img { width: 100%; height: auto; display: block; object-fit: contain; filter: drop-shadow(0 20px 22px rgba(6, 61, 82, .11)); }
.s4-benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.s4-benefit-grid > div { display: flex; min-height: 235px; flex-direction: column; justify-content: flex-end; padding: 27px; color: #fff; background: var(--s4-deep); border-radius: 25px; }
.s4-benefit-grid > div:nth-child(2), .s4-benefit-grid > div:nth-child(3) { color: var(--s4-ink); background: var(--s4-mint); }
.s4-benefit-grid > div:nth-child(4) { background: var(--s4-teal); }
.s4-benefit-grid span { display: grid; width: 44px; height: 44px; margin-bottom: auto; place-items: center; color: var(--s4-deep); background: #fff; border-radius: 50%; font-size: 20px; }
.s4-benefit-grid h4 { margin: 24px 0 9px; font-size: 21px; letter-spacing: -.025em; }
.s4-benefit-grid p { color: rgba(255, 255, 255, .72); font-size: 12px; line-height: 1.5; }
.s4-benefit-grid > div:nth-child(2) p, .s4-benefit-grid > div:nth-child(3) p { color: #49635f; }

/* 03 — value */
.s4-story-value { display: grid; grid-template-columns: minmax(280px, .74fr) minmax(0, 1.26fr); min-height: 610px; padding: 18px; background: #edf6f5; }
.s4-value-photo { min-height: 574px; overflow: hidden; border-radius: 24px; }
.s4-value-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.s4-value-content { display: flex; flex-direction: column; padding: clamp(26px, 4vw, 58px); }
.s4-value-content header { padding: 0 0 30px; }
.s4-value-content h3 { max-width: 760px; margin-top: 14px; }
.s4-value-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: auto; }
.s4-value-points > div { min-height: 225px; padding: 24px; background: #fff; border: 1px solid var(--s4-line); border-radius: 20px; box-shadow: 0 15px 34px rgba(6, 61, 82, .06); }
.s4-value-points span { display: grid; width: 42px; height: 42px; place-items: center; color: #fff; background: var(--s4-teal); border-radius: 13px; font-size: 18px; }
.s4-value-points h4 { margin: 27px 0 11px; font-size: 18px; letter-spacing: -.025em; }
.s4-value-points p { font-size: 12px; line-height: 1.55; }

/* 04 — dashboard */
.s4-story-dashboard { display: grid; grid-template-columns: minmax(0, .83fr) minmax(440px, 1.17fr); min-height: 575px; padding: clamp(34px, 5vw, 70px); background: linear-gradient(135deg, #fff 0%, #f3f1ff 62%, #e9faf6 100%); }
.s4-dashboard-copy { align-self: center; padding-right: clamp(20px, 4vw, 70px); }
.s4-dashboard-copy h3 { margin: 14px 0 23px; }
.s4-dashboard-signals { display: flex; gap: 34px; margin-top: 28px; }
.s4-dashboard-signals span { padding-left: 14px; border-left: 3px solid var(--s4-teal); }
.s4-dashboard-signals strong, .s4-dashboard-signals small { display: block; }
.s4-dashboard-signals strong { font-size: 20px; }
.s4-dashboard-signals small { margin-top: 4px; color: #708086; font-size: 10px; }
.s4-dashboard-visual { position: relative; min-width: 0; align-self: center; }
.s4-dashboard-visual > img { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 30px rgba(17, 29, 64, .16)); }
.s4-live-card { position: absolute; left: 1%; bottom: 3%; width: min(250px, 48%); padding: 19px; color: #fff; background: rgba(6, 61, 82, .94); border: 1px solid rgba(255, 255, 255, .2); border-radius: 18px; box-shadow: 0 20px 45px rgba(6, 61, 82, .26); backdrop-filter: blur(12px); }
.s4-live-card > span { display: flex; align-items: center; justify-content: space-between; color: rgba(255, 255, 255, .74); font-size: 10px; }
.s4-live-card i { padding: 4px 7px; color: var(--s4-deep); background: var(--s4-mint); border-radius: 999px; font-style: normal; font-weight: 850; }
.s4-live-card > strong, .s4-live-card > small { display: block; }
.s4-live-card > strong { margin-top: 15px; font-size: 26px; }
.s4-live-card > small { color: rgba(255, 255, 255, .6); font-size: 9px; }
.s4-live-card > div { height: 45px; margin-top: 16px; display: flex; align-items: flex-end; gap: 7px; }
.s4-live-card b { width: 13%; border-radius: 4px 4px 0 0; background: #65c9b2; }
.s4-live-card b:nth-child(1) { height: 32%; } .s4-live-card b:nth-child(2) { height: 55%; } .s4-live-card b:nth-child(3) { height: 44%; } .s4-live-card b:nth-child(4) { height: 74%; } .s4-live-card b:nth-child(5) { height: 63%; } .s4-live-card b:nth-child(6) { height: 100%; background: var(--s4-yellow); }

/* 05 — core flows */
.s4-story-core { padding: clamp(34px, 5vw, 68px); color: #fff; background: linear-gradient(145deg, #063d52, #082f3d); border-color: rgba(255, 255, 255, .1); }
.s4-story-core::before { content: ""; position: absolute; z-index: -1; width: 310px; height: 310px; right: -130px; top: -170px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%; box-shadow: 0 0 0 60px rgba(255, 255, 255, .025); }
.s4-story-core header { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr); align-items: end; gap: 58px; margin-bottom: 38px; }
.s4-story-core .s4-number { color: var(--s4-deep); background: var(--s4-yellow); }
.s4-story-core .s4-eyebrow { color: #8edfc9; }
.s4-story-core h3 { max-width: 760px; margin-top: 14px; color: #fff; }
.s4-story-core header > p { color: rgba(255, 255, 255, .67); }
.s4-core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.s4-core-grid > div { min-height: 280px; padding: 28px; color: var(--s4-ink); background: #f8f7ec; border-radius: 23px; }
.s4-core-grid > div:nth-child(2) { background: var(--s4-mint); }
.s4-core-grid > div:nth-child(3) { background: #fff; }
.s4-core-grid span { display: grid; width: 50px; height: 50px; place-items: center; color: var(--s4-deep); background: rgba(8, 125, 120, .12); border-radius: 15px; }
.s4-core-grid svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.s4-core-grid h4 { margin: 53px 0 13px; font-size: 24px; letter-spacing: -.035em; }
.s4-core-grid p { font-size: 13px; line-height: 1.6; }

/* 06 — forward */
.s4-story-forward { display: grid; grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr); grid-template-areas: "copy photo" "steps steps"; gap: 26px 46px; padding: clamp(34px, 4.5vw, 64px); }
.s4-forward-copy { grid-area: copy; align-self: center; }
.s4-forward-copy h3 { margin: 14px 0 23px; }
.s4-forward-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 32px; padding: 22px 0; color: #fff; background: var(--s4-deep); border-radius: 18px; }
.s4-forward-proof span { padding: 0 18px; border-right: 1px solid rgba(255, 255, 255, .17); }
.s4-forward-proof span:last-child { border-right: 0; }
.s4-forward-proof strong, .s4-forward-proof small { display: block; }
.s4-forward-proof strong { color: var(--s4-yellow); font-size: 13px; }
.s4-forward-proof small { margin-top: 5px; color: rgba(255, 255, 255, .68); font-size: 9px; line-height: 1.35; }
.s4-story-forward > figure { grid-area: photo; min-height: 350px; overflow: hidden; border-radius: 25px; }
.s4-story-forward > figure img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center; }
.s4-forward-steps { grid-area: steps; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 20px; padding: 26px; background: #eef6f4; border-radius: 22px; }
.s4-forward-steps > div { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 14px; align-items: center; }
.s4-forward-steps span { grid-row: 1 / 3; display: grid; width: 52px; height: 52px; place-items: center; color: #fff; background: var(--s4-teal); border-radius: 15px; font-size: 11px; font-weight: 850; }
.s4-forward-steps strong { font-size: 16px; }
.s4-forward-steps small { color: #6c7a7f; font-size: 10px; line-height: 1.4; }
.s4-forward-steps > i { color: var(--s4-teal); font-size: 27px; font-style: normal; }

@media (max-width: 1080px) {
  .s4-story-platform { grid-template-columns: .86fr 1.14fr; grid-template-areas: "copy visual" "note visual" "list list"; }
  .s4-capability-list { grid-template-columns: 1fr 1fr; margin-top: 28px; }
  .s4-capability-list > span:nth-child(odd) { padding-right: 20px; }
  .s4-capability-list > span:nth-child(3) { border-bottom: 0; }
  .s4-story-team { grid-template-columns: 1fr 1fr; gap: 32px; }
  .s4-benefit-grid > div { min-height: 215px; padding: 22px; }
  .s4-value-points { grid-template-columns: 1fr; }
  .s4-value-points > div { min-height: 0; display: grid; grid-template-columns: 42px minmax(0, 1fr); column-gap: 15px; }
  .s4-value-points span { grid-row: 1 / 3; }
  .s4-value-points h4 { margin: 2px 0 7px; }
  .s4-story-dashboard { grid-template-columns: .9fr 1.1fr; }
}

@media (max-width: 820px) {
  .s4-section-head { grid-template-columns: 1fr; gap: 22px; }
  .s4-story-platform, .s4-story-team, .s4-story-value, .s4-story-dashboard, .s4-story-forward { grid-template-columns: 1fr; }
  .s4-story-platform { grid-template-areas: "copy" "visual" "list" "note"; min-height: 0; }
  .s4-platform-visual { min-height: 500px; }
  .s4-story-copy { padding-right: 0; }
  .s4-story-team { gap: 34px; }
  .s4-team-intro figure { min-height: 0; }
  .s4-story-value { padding: 16px; }
  .s4-value-photo { min-height: 520px; }
  .s4-value-content { padding: 34px 20px 22px; }
  .s4-value-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .s4-value-points > div { display: block; min-height: 215px; }
  .s4-value-points h4 { margin: 24px 0 9px; }
  .s4-story-dashboard { gap: 30px; }
  .s4-dashboard-copy { padding-right: 0; }
  .s4-story-core header { grid-template-columns: 1fr; gap: 22px; }
  .s4-core-grid { grid-template-columns: 1fr; }
  .s4-core-grid > div { min-height: 0; }
  .s4-core-grid h4 { margin-top: 32px; }
  .s4-story-forward { grid-template-areas: "copy" "photo" "steps"; }
}

@media (max-width: 620px) {
  .s4-features { padding: 64px 0; }
  .s4-section-head h2 { font-size: clamp(38px, 11.5vw, 50px); }
  .s4-story-stack { gap: 17px; }
  .s4-story { border-radius: 22px; }
  .s4-story h3 { font-size: clamp(34px, 10.4vw, 44px); }
  .s4-number { width: 42px; height: 42px; margin-bottom: 18px; border-radius: 12px; }
  .s4-story-platform, .s4-story-team, .s4-story-dashboard, .s4-story-core, .s4-story-forward { padding: 24px; }
  .s4-platform-visual { min-height: 335px; }
  .s4-platform-visual img, .s4-orbit { width: min(86vw, 330px); }
  .s4-capability-list { grid-template-columns: 1fr; }
  .s4-capability-list > span, .s4-capability-list > span:nth-child(odd) { padding-right: 0; }
  .s4-capability-list > span:nth-child(3) { border-bottom: 1px solid var(--s4-line); }
  .s4-platform-note { margin-top: 22px; }
  .s4-benefit-grid { grid-template-columns: 1fr; }
  .s4-benefit-grid > div { min-height: 205px; }
  .s4-value-photo { min-height: 430px; }
  .s4-value-points { grid-template-columns: 1fr; }
  .s4-value-points > div { display: grid; min-height: 0; grid-template-columns: 42px minmax(0, 1fr); }
  .s4-value-points h4 { margin: 2px 0 7px; }
  .s4-dashboard-signals { gap: 18px; }
  .s4-dashboard-visual { margin-top: 10px; }
  .s4-live-card { left: 0; bottom: -10px; width: 54%; padding: 14px; }
  .s4-live-card > div { height: 35px; }
  .s4-forward-proof { grid-template-columns: 1fr; gap: 0; padding: 10px 18px; }
  .s4-forward-proof span { padding: 12px 0; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
  .s4-forward-proof span:last-child { border-bottom: 0; }
  .s4-story-forward > figure { min-height: 260px; }
  .s4-forward-steps { grid-template-columns: 1fr; padding: 20px; }
  .s4-forward-steps > i { display: none; }
}

/* Mobile hero: image starts immediately below the sticky nav; its lower cut fades
   into the hero so the portrait and title share the first viewport. */
@media (max-width: 760px) {
  .shv-home .shv-hero-grid {
    width: 100% !important;
    min-height: calc(100svh - 76px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .shv-home .shv-hero-image {
    order: 1 !important;
    width: 100% !important;
    height: clamp(285px, 78vw, 338px) !important;
    min-height: 0 !important;
    margin: 0 !important;
    background: #063d52 !important;
    overflow: hidden !important;
  }

  .shv-home .shv-hero-image::after {
    content: "";
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 84px;
    background: linear-gradient(180deg, rgba(6, 61, 82, 0), #063d52 84%);
    pointer-events: none;
  }

  .shv-home .shv-hero-image > img {
    inset: auto auto -54px 50% !important;
    width: min(70vw, 300px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    transform: translateX(-50%) !important;
    object-fit: contain !important;
    object-position: center bottom !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  .shv-home .shv-hero-copy {
    order: 2 !important;
    align-self: auto !important;
    margin-top: -23px !important;
    padding: 0 22px 40px !important;
    text-align: left !important;
  }

  .shv-home .shv-label { margin-bottom: 11px !important; font-size: 11px !important; }
  .shv-home .shv-hero h1 { margin-bottom: 19px !important; font-size: clamp(36px, 10.3vw, 44px) !important; line-height: 1.01 !important; }
  .shv-home .shv-title-line { white-space: normal !important; }
  .shv-home .shv-title-line + .shv-title-line { margin-top: .08em !important; }
}

@media (max-width: 390px) {
  .shv-home .shv-hero-image { height: 272px !important; }
  .shv-home .shv-hero-image > img { bottom: -52px !important; width: min(69vw, 270px) !important; }
  .shv-home .shv-hero-copy { margin-top: -20px !important; padding-right: 18px !important; padding-left: 18px !important; }
  .shv-home .shv-hero h1 { font-size: clamp(34px, 10.2vw, 40px) !important; }
}

@media (prefers-reduced-motion: reduce) {
  .s4-link span { transition: none; }
}

/* SEYLAC_HOMEPAGE_BALANCE_R8
   Full mobile portrait, lower secondary hero content, medium feature visuals. */
@media (max-width: 760px) {
  .shv-home .shv-hero-image {
    display: block !important;
  }

  .shv-home .shv-hero-image > img {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    width: min(78vw, 315px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 10px auto 0 !important;
    transform: none !important;
  }

  .shv-home .shv-hero-copy > p {
    margin-top: clamp(84px, 18svh, 145px) !important;
  }

  .shv-home .shv-actions {
    margin-top: 24px !important;
  }

  .s4-platform-visual { min-height: 285px !important; }
  .s4-platform-visual img { width: min(72vw, 285px) !important; }
  .s4-orbit { width: min(76vw, 305px) !important; }
  .s4-team-intro figure img { width: min(100%, 430px) !important; margin-inline: auto; }
  .s4-value-photo { min-height: 340px !important; max-height: 400px; }
  .s4-dashboard-visual > img { width: min(92%, 500px) !important; margin-inline: auto; }
  .s4-story-forward > figure { min-height: 230px !important; max-height: 290px; }
}

@media (max-width: 390px) {
  .shv-home .shv-hero-image > img {
    width: min(80vw, 300px) !important;
    margin-top: 8px !important;
  }
}

@media (min-width: 821px) {
  .s4-features .shv-shell {
    width: min(1040px, calc(100% - 48px));
  }

  .s4-platform-visual img { width: min(75%, 340px); }
  .s4-orbit { width: min(80%, 380px); }
  .s4-team-intro figure img { width: min(100%, 430px); margin-inline: auto; }
  .s4-story-value { min-height: 520px; }
  .s4-value-photo { min-height: 0; height: 480px; align-self: center; }
  .s4-dashboard-visual > img { width: min(86%, 520px); margin-inline: auto; }
  .s4-story-forward > figure { min-height: 300px; max-height: 360px; align-self: center; }
}

/* SEYLAC_HOMEPAGE_PROPORTIONS_R9
   R14 consolidation: desktop/tablet feature proportions preserved;
   the old R9 mobile hero rules were intentionally removed. */
@media (min-width: 821px) {
  .s4-features {
    padding-top: clamp(58px, 5.5vw, 82px);
    padding-bottom: clamp(58px, 5.5vw, 82px);
  }

  .s4-features .shv-shell {
    width: min(1180px, calc(100% - 48px));
  }

  .s4-story-stack { gap: clamp(20px, 2.2vw, 30px); }
  .s4-story-platform { min-height: 520px; padding-block: clamp(30px, 3.2vw, 48px); }
  .s4-platform-visual img { width: min(90%, 430px); }
  .s4-orbit { width: min(94%, 470px); }

  .s4-story-team { padding-block: clamp(30px, 3.2vw, 48px); }
  .s4-team-intro figure { min-height: 190px; padding-top: 22px; }
  .s4-team-intro figure img { width: 100%; max-width: none; max-height: 280px; object-fit: contain; }
  .s4-benefit-grid > div { min-height: 190px; padding: 23px; }

  .s4-story-value { min-height: 500px; }
  .s4-value-photo { min-height: 0; height: 460px; }
  .s4-value-points > div { min-height: 190px; }

  .s4-story-dashboard { min-height: 500px; padding-block: clamp(30px, 3.2vw, 48px); }
  .s4-dashboard-visual > img { width: 100%; max-width: none; max-height: 410px; object-fit: contain; }

  .s4-story-core { padding-block: clamp(30px, 3.2vw, 48px); }
  .s4-core-grid > div { min-height: 215px; padding: 24px; }
  .s4-core-grid h4 { margin-top: 32px; }

  .s4-story-forward { padding-block: clamp(30px, 3.2vw, 48px); }
  .s4-story-forward > figure { min-height: 270px; max-height: 310px; width: 100%; }
}

/* SEYLAC_HOMEPAGE_R15_FINAL_SAFE
   Final mobile-only hero repair.
   - Restores the complete executive portrait.
   - Gives the portrait a real fixed stage so it cannot collapse.
   - Keeps the head safely below the navigation.
   - Keeps title/description/CTA spacing compact and predictable.
   - Does not change layout above 760px.
*/
@media (max-width: 760px) {
  html body .shv-hero .shv-hero-grid {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: clamp(390px, 104vw, 430px) auto !important;
    align-items: stretch !important;
    align-content: start !important;
    background: #063d52 !important;
  }

  html body .shv-hero .shv-hero-image {
    order: 1 !important;
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #07566e !important;
    box-sizing: border-box !important;
    isolation: isolate !important;
  }

  html body .shv-hero .shv-hero-image::before {
    content: "" !important;
    display: block !important;
    position: absolute !important;
    z-index: 0 !important;
    width: min(92vw, 430px) !important;
    aspect-ratio: 1 !important;
    left: 50% !important;
    bottom: -34% !important;
    transform: translateX(-50%) !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,.07) !important;
    pointer-events: none !important;
  }

  html body .shv-hero .shv-hero-image::after {
    content: "" !important;
    position: absolute !important;
    z-index: 3 !important;
    inset: auto 0 0 !important;
    height: 54px !important;
    background: linear-gradient(
      180deg,
      rgba(7, 86, 110, 0) 0%,
      rgba(7, 86, 110, .36) 58%,
      #07566e 100%
    ) !important;
    pointer-events: none !important;
  }

  html body .shv-hero .shv-hero-image img {
    position: absolute !important;
    z-index: 2 !important;
    top: 18px !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    inset: 18px 0 auto !important;
    display: block !important;
    width: 100% !important;
    height: calc(100% - 18px) !important;
    max-width: 100% !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center top !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
  }

  html body .shv-hero .shv-hero-copy {
    order: 2 !important;
    position: relative !important;
    z-index: 4 !important;
    align-self: stretch !important;
    margin: 0 !important;
    padding: 20px 28px 48px !important;
    background: #20262a !important;
    text-align: left !important;
  }

  html body .shv-hero .shv-label {
    display: block !important;
    margin: 0 0 10px !important;
  }

  html body .shv-hero h1 {
    max-width: 680px !important;
    margin: 0 0 16px !important;
    font-size: clamp(38px, 10.4vw, 44px) !important;
    line-height: 1.05 !important;
    letter-spacing: -.035em !important;
  }

  html body .shv-hero .shv-title-line {
    display: block !important;
    white-space: normal !important;
  }

  html body .shv-hero .shv-title-line + .shv-title-line {
    margin-top: .08em !important;
  }

  html body .shv-hero .shv-hero-copy > p {
    max-width: 560px !important;
    margin: 0 0 22px !important;
    display: block !important;
    overflow: visible !important;
    -webkit-line-clamp: unset !important;
    font-size: 15px !important;
    line-height: 1.62 !important;
  }

  html body .shv-hero .shv-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  html body .shv-hero .shv-actions .shv-button {
    width: 100% !important;
    min-height: 54px !important;
  }

  html body .shv-hero .shv-trust {
    margin-top: 24px !important;
  }
}

@media (max-width: 430px) {
  html body .shv-hero .shv-hero-grid {
    grid-template-rows: clamp(385px, 105vw, 410px) auto !important;
  }

  html body .shv-hero .shv-hero-image img {
    top: 16px !important;
    inset: 16px 0 auto !important;
    height: calc(100% - 16px) !important;
  }

  html body .shv-hero .shv-hero-copy {
    padding: 18px 22px 42px !important;
  }

  html body .shv-hero h1 {
    margin-bottom: 14px !important;
    font-size: clamp(36px, 10.2vw, 42px) !important;
  }

  html body .shv-hero .shv-hero-copy > p {
    margin-bottom: 20px !important;
    font-size: 15px !important;
    line-height: 1.6 !important;
  }
}
