/* Mobile Portrait */
/* © 2022 EX3 Inc. All Rights Reserved. */

/*
  Breakpoints use Media Queries Level 4 viewport features (width / orientation /
  range syntax). The deprecated device-width / -webkit-device-pixel-ratio queries
  have been removed: they target physical screens rather than the layout viewport,
  miss most current phones, and are ignored by several modern browsers.

  Handheld portrait base  (orientation: portrait) and (width < 1200px)
    Phones .............. + (width < 744px) for the short-screen tweaks
      Short phones ...... + (height < 740px)   e.g. iPhone SE / mini
      Very short phones . + (height < 600px)
    Narrow phones ....... (width < 360px)
  Tablet portrait ....... (orientation: portrait) and (744px <= width < 1200px)
                          iPad mini (744) through iPad Pro 13" (1032)
*/

/******************GLOBAL****************************/
@media (orientation: portrait) {

  :root {
    --p-font-size: 2.3vh;
    --p-line-height: 3.5vh;
  }

  section:nth-of-type(4)::after {
    background-position: 40%;
  }

}

/*ENDS GLOBAL PORTRAIT STYLE*/
/*BEGINS DEVICE SPECIFIC PORTRAIT STYLE*/

/* ----------- Phones + Tablets: Portrait (shared base) ----------- */
@media only screen and (orientation: portrait) and (width < 1200px) {

  :root {
    --m-gutter: 24px;              /* logo box / tile inset */
    --m-text-gutter: 35px;         /* headline inset */
    --m-bar-height: 54px;          /* bottom contact bar */
    --m-banner-width: 121px;
    /* Logo box proportions from the mockup (121 x 145): every size below is
       derived from the width so the badge scales as one unit */
    --m-banner-height: calc(var(--m-banner-width) * 1.2);
  }

  /* Paragraph fade-in finishes brighter and without the desktop 5% indent */
  @keyframes moveInParagraph {
    0% {opacity: 0; left: -10%;}
    100% {opacity: 0.85; left: 0;}
  }

  /*************** CHROME: header, bars, overlays ***************/

  /* Logo box stays a fixed badge on every section */
  header div.logo_banner {
    left: 6%;
    width: var(--m-banner-width);
    min-width: var(--m-banner-width);
    height: var(--m-banner-height);
    background-attachment: scroll;
    background-size: 110%;
    background-position: 50% calc(var(--m-banner-width) * 0.116);
    /* The JS awaits transitionend between the step classes, so each step
       still animates a (visually imperceptible) property. */
    transition: background-color 0.25s ease-in-out, color 0.25s ease-in-out;
  }

  header div.logo_banner.step-1 {
    height: var(--m-banner-height) !important;
    background-color: rgb(1, 1, 1);
  }

  header div.logo_banner.step-2 {
    left: 6% !important;
    width: var(--m-banner-width);
    color: rgb(254, 254, 254);
  }

  header div.logo_banner::after {
    content: "a Hybrid Intelligence Firm";
    position: absolute;
    top: calc(var(--m-banner-width) * 0.48);
    left: 0;
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display';
    font-size: calc(var(--m-banner-width) * 0.0537);
    transform: scale(0.65);
    color: var(--light-grey);
  }

  header div.logo_banner a {
    height: 100%;
  }

  /* Contact buttons become the fixed bottom bar */
  header div.logo_banner div.contact_buttons_holder {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: var(--m-bar-height);
    padding: 9px 0 calc(9px + env(safe-area-inset-bottom));
    box-sizing: content-box;
    align-items: stretch;
    background: rgba(0, 0, 0, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-top: 0;
  }

  header div.logo_banner div.contact_buttons_holder button {
    height: auto;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: var(--white);
    -webkit-tap-highlight-color: transparent;
  }

  header div.logo_banner div.contact_buttons_holder button span {
    font-size: 22px;
    color: var(--light-grey);
  }

  header div.logo_banner div.contact_buttons_holder button::after {
    font-family: 'Playfair Display';
    font-size: 11px;
    white-space: nowrap;
  }

  header div.logo_banner div.contact_buttons_holder button:first-of-type::after {
    content: "Quick Question Chat";
  }

  header div.logo_banner div.contact_buttons_holder button:last-of-type::after {
    content: "Speak with an Advisor";
  }

  header div.logo_banner div.contact_buttons_holder button:not(:first-of-type) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
  }

  /* Chat opens as a sheet above the bottom bar */
  div.chat_holder {
    left: 0;
    bottom: calc(var(--m-bar-height) + 18px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: none;
  }

  div.chat_holder.expand {
    height: 70%;
  }

  /* Desktop-only chrome */
  div.button_group,
  div.section_indicator,
  aside,
  footer {
    display: none;
  }

  /* Bottom blur deepens so text stays legible over full-bleed photos */
  div.gradient_overlay,
  div.gradient_overlay.short {
    height: 60%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.55) 45%, rgba(0, 0, 0, 0.9) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 30%);
    mask-image: linear-gradient(to bottom, transparent, black 30%);
  }

  /*************** SHARED SECTION TYPE ***************/

  section {
    background-size: cover !important;
  }

  section.sectionFadein {
    background-size: cover !important;
  }

  /* Full-bleed photos: scroll with their section (iOS ignores fixed
     attachment, so this keeps every phone consistent). !important because
     the desktop section:nth-of-type(n)::after rules set fixed with higher
     specificity, and iOS Safari paints nothing for fixed pseudo-elements */
  section::after {
    background-attachment: scroll !important;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0.8;
  }

  section div.title_area {
    left: 0;
    width: 100%;
    max-width: none;
    height: auto;
    top: auto;
    padding: 0 var(--m-text-gutter);
    box-sizing: border-box;
    justify-content: flex-end;
  }

  h1 {
    left: 0;
    width: 100%;
    font-size: 26px;
    line-height: 1.25;
    margin-bottom: 12px;
  }

  p {
    left: 0;
    width: 100%;
    font-size: 15px;
    line-height: 1.45;
    color: var(--white);
    margin: 0 0 12px 0;
  }

  /*************** SECTION ONE ***************/

  section:nth-of-type(1)::after {
    background-position: 24% center;
  }

  section:nth-of-type(1) div.title_area {
    bottom: 275px;
  }

  section.one span {
    left: 0;
    font-size: 14.5px;
    line-height: 1.45 !important;
    white-space: normal !important;
    min-height: 0 !important;
    color: var(--light-grey);
    margin-bottom: 22px;
  }

  section.one h1 {
    font-size: 30px;
    line-height: 1.2;
  }

  section.one div.title_area p {
    display: none;
  }

  section:nth-of-type(1) div.clients {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    row-gap: 25px;
    column-gap: 25px;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: auto;
    left: 0;
    bottom: calc(var(--m-bar-height) + 34px);
    padding: 0 var(--m-gutter);
    box-sizing: border-box;
  }

  section:nth-of-type(1) div.clients::before {
    content: "Trusted by Leading Brands";
    position: static;
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 400;
    margin-bottom: 14px;
  }

  section:nth-of-type(1) div.clients img {
    height: 18px;
    width: 100%;
    object-fit: contain;
  }

  /*************** SECTION TWO ***************/

  section:nth-of-type(2)::after {
    background-position: 67% 62%;
    background-size: auto 150%;
  }

  section:nth-of-type(2) div.title_area {
    bottom: calc(var(--m-bar-height) + 24px);
  }

  section:nth-of-type(2) h1 {
    font-size: 22px;
    margin-bottom: 18px;
  }

  section:nth-of-type(2) h1 br {
    display: none;
  }

  section:nth-of-type(2) h1 span {
    font-size: 100%;
    color: var(--white);
  }

  section:nth-of-type(2) h1 span::before {
    content: " ";
  }

  section:nth-of-type(2) p.two_column {
    column-count: 1;
  }

  section:nth-of-type(2) p.two_column b {
    color: inherit;
    font-weight: inherit;
  }

  div.video_control_play {
    bottom: 400px;
    right: 10%;
    width: 86px;
    height: 86px;
  }

  div.video_control_play img {
    opacity: 0.5;
  }

  div.video_control_play::after {
    display: none;
  }

  div.video_holder video {
    background: var(--black);
    object-fit: contain;
  }

  div.video_holder button.video_close {
    top: calc(10px + env(safe-area-inset-top));
    right: 10px;
  }

  /*************** SECTION THREE ***************/

  section:nth-of-type(3)::after {
    background-image: url(../img/hybrid_intel4b.jpg);
    background-attachment: scroll;
    background-position: 38% top;
    background-size: cover;
    background-repeat: no-repeat;
    width: 100%;
    left: 0;
    right: auto;
  }

  section:nth-of-type(3) div.title_area {
    bottom: calc(var(--m-bar-height) + 250px) !important;
  }

  section:nth-of-type(3) h1,
  section:nth-of-type(3) p {
    width: 100%;
  }

  section:nth-of-type(3) h1 {
    font-size: 28px;
  }

  /* 2 x 2 grid of levels; three_levels dissolves so all four links share it */
  section:nth-of-type(3) div.enterprise_areas {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    left: var(--m-gutter);
    right: var(--m-gutter);
    width: auto;
    height: 180px;
    top: auto;
    bottom: calc(var(--m-bar-height) + 18px);
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.2)) center / 100% 1px no-repeat;
  }

  section:nth-of-type(3) div.enterprise_areas div.three_levels {
    display: contents;
  }

  section:nth-of-type(3) div.enterprise_areas a,
  section:nth-of-type(3) div.enterprise_areas a:has(div.enterprise),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.department),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    width: auto;
    height: auto;
    display: flex;
    margin: 14px 0;
    min-width: 0;
  }

  section:nth-of-type(3) div.enterprise_areas > a,
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.department) {
    padding-right: 12px;
  }

  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    padding-left: 18px;
  }

  section:nth-of-type(3) div.enterprise_areas div.enterprise,
  section:nth-of-type(3) div.enterprise_areas div.three_levels div:not(.text_block) {
    background: transparent;
    align-items: center;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block,
  section:nth-of-type(3) div.enterprise_areas div.enterprise div.text_block {
    width: 100%;
    height: auto;
    padding: 0;
    align-self: center;
    text-align: left;
    transition-delay: 0.6s;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block span {
    font-family: 'Playfair Display';
    font-size: 9.5px;
    margin-bottom: 6px;
    white-space: nowrap;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block h2,
  section:nth-of-type(3) div.enterprise_areas div.enterprise div.text_block h2,
  section:nth-of-type(3) div.enterprise_areas div.three_levels div.text_block h2 {
    width: 100%;
    align-self: flex-start;
    font-size: min(21px, 4.9vw);
    line-height: 1.2;
    white-space: nowrap;
    color: var(--white);
  }

  /*************** SECTION FOUR ***************/

  section:nth-of-type(4)::after {
    background-image: url(../img/hybrid_intel4b.jpg);
    background-position: 38% top;
  }

  section:nth-of-type(4) div.title_area {
    bottom: calc(var(--m-bar-height) + 60px);
  }

  section:nth-of-type(4) h1 {
    font-size: 22px;
  }

  a.cta_button:link,
  a.cta_button:visited {
    width: auto;
    min-width: 146px;
    margin: 42px 14px 0 0;
    padding: 10px 20px 12px;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.05;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(40px);
  }

  a.cta_button span {
    font-size: 15px;
    font-weight: 400;
  }

  /*************** SECTION FIVE: Success Stories carousel ***************/

  section:nth-of-type(5) div.title_area {
    display: none;
  }

  section:nth-of-type(5) .project_profile_holder {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    gap: 15px;
    scroll-snap-type: x mandatory;
    scroll-timeline: --stories x;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    cursor: auto;
  }

  section:nth-of-type(5) .project_profile_holder::-webkit-scrollbar {
    display: none;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile,
  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type {
    width: 90%;
    min-width: 90%;
    height: 100%;
    margin: 0;
    opacity: 1;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    background-size: cover;
    background-position: center 20%;
    padding-bottom: calc(var(--m-bar-height) + 110px);
    box-sizing: border-box;
  }

  /* Blur + darken the lower half of each card behind the copy */
  .project_profile::before {
    height: 55%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.6) 40%, rgba(0, 0, 0, 0.95) 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 25%);
    mask-image: linear-gradient(to bottom, transparent, black 25%);
  }

  .project_profile .project_client_logo {
    display: none;
  }

  .project_profile .project_description_holder {
    width: auto;
    min-height: 0;
    padding: 0 36px;
    position: relative;
    z-index: 50;
  }

  .project_profile .project_description_holder::before {
    content: "Success Stories";
    display: block;
    font-family: 'Playfair Display';
    font-size: 17px;
    font-weight: 400;
    color: var(--light-grey);
    margin-bottom: 6px;
  }

  .project_profile h3 {
    font-size: 26px;
    line-height: 1.25;
    font-weight: 500;
    margin: 0 0 22px 0;
  }

  .project_profile p {
    font-size: 15px;
    font-weight: 300;
    color: var(--white);
    opacity: 0.9;
  }

  /* Closing call-to-action card */
  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type {
    justify-content: center;
    align-items: flex-start;
    padding: 0 36px calc(var(--m-bar-height) + 40px);
    background: var(--black);
  }

  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type::before {
    display: none;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type span {
    max-width: 100%;
    font-size: 30px;
    line-height: 1.25;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type a.cta_button {
    float: none;
    margin: 28px 0 0 0;
  }

  /* Pagination pill: 5 dots, active dash tracks the carousel scroll */
  section:nth-of-type(5) {
    timeline-scope: --stories;
  }

  section:nth-of-type(5)::before {
    content: "";
    position: absolute;
    z-index: 60;
    left: 50%;
    bottom: calc(var(--m-bar-height) + 56px);
    transform: translateX(-50%);
    width: 70px;
    height: 32px;
    padding: 0 14px;
    border-radius: 16px;
    pointer-events: none;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5'%3E%3Crect width='14' height='5' rx='2.5' fill='white'/%3E%3C/svg%3E"),
      radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2.5px),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    background-size: 14px 5px, 14px 32px, auto;
    background-position: 0 50%, 0 50%, 0 0;
    background-repeat: no-repeat, repeat-x, no-repeat;
    background-origin: content-box, content-box, border-box;
    background-clip: content-box, content-box, border-box;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  @supports (animation-timeline: scroll()) {
    section:nth-of-type(5)::before {
      animation: storiesPager linear both;
      animation-timeline: --stories;
    }

    /* Cards at the edge of the carousel dim, echoing the desktop hover state */
    section:nth-of-type(5) .project_profile_holder .project_profile {
      animation: storiesCardFocus linear both;
      animation-timeline: view(x);
    }
  }

  @keyframes storiesPager {
    from { background-position: 0 50%, 0 50%, 0 0; }
    to   { background-position: 56px 50%, 0 50%, 0 0; }
  }

  @keyframes storiesCardFocus {
    0%   { opacity: 0.55; }
    35%  { opacity: 1; }
    65%  { opacity: 1; }
    100% { opacity: 0.55; }
  }

}

/* ----------- Short phones (iPhone SE, mini) ----------- */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 740px) {

  section.one h1 {
    font-size: 29px;
  }

  section.one span {
    font-size: 15px;
    margin-bottom: 14px;
  }

  section:nth-of-type(1) div.title_area {
    bottom: 220px;
  }

  section:nth-of-type(2) h1 {
    font-size: 21px;
  }

  section:nth-of-type(2) p,
  section:nth-of-type(3) p,
  section:nth-of-type(4) p {
    font-size: 14px;
  }

  div.video_control_play {
    bottom: auto;
    top: calc(var(--m-banner-height) + 12px);
    width: 70px;
    height: 70px;
  }

  section:nth-of-type(3) h1 {
    font-size: 24px;
  }

  section:nth-of-type(3) div.title_area {
    bottom: calc(var(--m-bar-height) + 215px) !important;
  }

  section:nth-of-type(3) div.enterprise_areas {
    height: 160px;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile {
    padding-bottom: calc(var(--m-bar-height) + 90px);
  }

  section:nth-of-type(5)::before {
    bottom: calc(var(--m-bar-height) + 40px);
  }

  .project_profile h3 {
    font-size: 23px;
  }
}

/* ----------- Very short phones (iPhone 5 / SE 1st gen) ----------- */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 600px) {

  div.video_control_play {
    top: 38px;
    right: 8%;
  }

  section:nth-of-type(3) div.title_area {
    bottom: calc(var(--m-bar-height) + 180px) !important;
  }

  section:nth-of-type(3) h1 {
    font-size: 21px;
    margin-bottom: 8px;
  }

  section:nth-of-type(2) p,
  section:nth-of-type(3) p,
  section:nth-of-type(4) p {
    font-size: 13px;
    line-height: 1.4;
  }

  section:nth-of-type(3) div.enterprise_areas {
    height: 140px;
    bottom: calc(var(--m-bar-height) + 12px);
  }

  section:nth-of-type(3) div.enterprise_areas a,
  section:nth-of-type(3) div.enterprise_areas a:has(div.enterprise),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.department),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    margin: 8px 0;
  }
}

/* ----------- Narrow phones ----------- */
@media only screen and (orientation: portrait) and (width < 360px) {

  :root {
    --m-text-gutter: 24px;
    --m-gutter: 16px;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block span {
    font-size: 8.5px;
    white-space: normal;
    width:70%;
  }

  section:nth-of-type(3) div.enterprise_areas > a,
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.department) {
    padding-right: 6px;
  }

  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    padding-left: 10px;
  }

  header div.logo_banner div.contact_buttons_holder button {
    gap: 8px;
  }
}

/* ----------- Tablets: Portrait (iPad mini through iPad Pro 13") ----------- */
/* Builds on the shared phone base above: same layout and interactions,
   scaled up, with the desktop's top-right contact block, section dots and footer. */
@media only screen and (orientation: portrait) and (744px <= width < 1200px) {

  :root {
    --m-banner-width: clamp(150px, 19vw, 200px);
    --m-gutter: 6vw;               /* logo box / tile inset */
    --m-text-gutter: 9vw;          /* headline inset */
    --m-bar-height: 36px;          /* slim footer */
    --t-contact-height: 52px;
  }

  /* Contact buttons: black block, top right (desktop / landscape pattern) */
  header div.logo_banner div.contact_buttons_holder {
    top: 0;
    bottom: auto;
    left: auto;
    right: 6%;
    width: auto;
    height: var(--t-contact-height);
    padding: 0;
    box-sizing: border-box;
    background: var(--black);
    border-top: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  header div.logo_banner div.contact_buttons_holder button {
    padding: 0 24px;
    gap: 12px;
  }

  header div.logo_banner div.contact_buttons_holder button span {
    font-size: 22px;
  }

  header div.logo_banner div.contact_buttons_holder button::after {
    font-size: 13px;
  }

  div.chat_holder {
    left: auto;
    right: 6%;
    bottom: calc(var(--m-bar-height) + 12px);
    width: 420px;
    max-width: 60%;
  }

  div.chat_holder.expand {
    height: calc(100% - var(--t-contact-height) - var(--m-bar-height) - 36px);
  }

  /* Section dots and footer return (copyright + policy link) */
  div.section_indicator {
    display: flex;
    left: 12px;
    width: 32px;
  }

  footer {
    display: flex;
    height: var(--m-bar-height);
    font-size: 1.1em;
  }

  footer span.label {
    font-size: 0.5em;
  }

  /*************** SHARED TYPE ***************/

  h1 {
    font-size: 4.4vw;
    margin-bottom: 18px;
  }

  p {
    font-size: 2.1vw;
    line-height: 1.5;
    margin-bottom: 16px;
    text-wrap: pretty;             /* no single-word last lines */
  }

  /* Headlines: fewest lines, evenly balanced */
  h1,
  h3,
  section.one span {
    text-wrap: balance;
  }

  /*************** SECTION ONE ***************/

  section:nth-of-type(1)::after {
    background-position: 30% center;
  }

  section:nth-of-type(1) div.title_area {
    bottom: calc(var(--m-bar-height) + 170px);
  }

  section.one span {
    font-size: 2.6vw;
    margin-bottom: 28px;
  }

  /* Two lines, breaking where the markup does */
  section.one h1 {
    font-size: 5.2vw;
  }

  /* All eight logos on one row */
  section:nth-of-type(1) div.clients {
    grid-template-columns: repeat(8, 1fr);
    column-gap: 3vw;
    row-gap: 0;
    bottom: calc(var(--m-bar-height) + 56px);
    padding: 0 var(--m-text-gutter);
  }

  section:nth-of-type(1) div.clients::before {
    font-size: 15px;
    margin-bottom: 26px;
  }

  section:nth-of-type(1) div.clients img {
    height: 24px;
  }

  /*************** SECTION TWO ***************/

  section:nth-of-type(2)::after {
    background-position: 62% 60%;
    background-size: auto 125%;
  }

  section:nth-of-type(2) div.title_area {
    bottom: calc(var(--m-bar-height) + 56px);
  }

  section:nth-of-type(2) h1 {
    font-size: 4vw;
    margin-bottom: 24px;
  }

  section:nth-of-type(2) p.two_column {
    column-count: 2;
    column-gap: 4vw;
  }

  div.video_control_play {
    bottom: 42%;
    right: 12%;
    width: 110px;
    height: 110px;
  }

  /*************** SECTION THREE ***************/

  section:nth-of-type(3)::after {
    background-position: 40% top;
  }

  section:nth-of-type(3) div.title_area {
    bottom: calc(var(--m-bar-height) + 380px) !important;
  }

  section:nth-of-type(3) h1 {
    font-size: 4.6vw;
  }

  section:nth-of-type(3) p {
    max-width: 36em;
  }

  section:nth-of-type(3) div.enterprise_areas {
    height: 300px;
    bottom: calc(var(--m-bar-height) + 48px);
  }

  section:nth-of-type(3) div.enterprise_areas a,
  section:nth-of-type(3) div.enterprise_areas a:has(div.enterprise),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.department),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    margin: 28px 0;
  }

  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.division),
  section:nth-of-type(3) div.enterprise_areas div.three_levels a:has(div.individual) {
    padding-left: 4vw;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block span {
    font-size: 1.6vw;
    margin-bottom: 10px;
  }

  section:nth-of-type(3) div.enterprise_areas div.text_block h2,
  section:nth-of-type(3) div.enterprise_areas div.enterprise div.text_block h2,
  section:nth-of-type(3) div.enterprise_areas div.three_levels div.text_block h2 {
    font-size: 3.7vw;
  }

  /*************** SECTION FOUR ***************/

  section:nth-of-type(4) div.title_area {
    bottom: calc(var(--m-bar-height) + 200px);
  }

  section:nth-of-type(4) h1 {
    font-size: 4.6vw;
  }

  section:nth-of-type(4) p {
    width: 88%;
  }

  a.cta_button:link,
  a.cta_button:visited {
    min-width: 220px;
    margin: 56px 0 0 0;
    padding: 16px 32px 18px;
    font-size: 26px;
  }

  a.cta_button span {
    font-size: 19px;
  }

  /*************** SECTION FIVE ***************/

  section:nth-of-type(5) .project_profile_holder {
    gap: 20px;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile,
  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type {
    width: 66%;
    min-width: 66%;
    padding-bottom: calc(var(--m-bar-height) + 170px);
  }

  .project_profile .project_description_holder {
    padding: 0 48px;
  }

  .project_profile .project_description_holder::before {
    font-size: 21px;
    margin-bottom: 10px;
  }

  .project_profile h3 {
    font-size: 3.9vw;
    margin-bottom: 26px;
  }

  .project_profile p {
    font-size: 19px;
  }

  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type {
    padding: 0 48px calc(var(--m-bar-height) + 60px);
  }

  section:nth-of-type(5) .project_profile_holder .project_profile:last-of-type span {
    font-size: 4.6vw;
  }

  section:nth-of-type(5)::before {
    bottom: calc(var(--m-bar-height) + 80px);
  }
}

/* ===================== MEASUREMENT PAGE (html.horizontal) =====================
   measure-your-hybrid-intelligence.html is the only page with the .horizontal
   class, so every rule below is scoped to it. The page shares section
   :nth-of-type positions with index.html, so the index rules above that would
   otherwise reach it (backgrounds, hidden titles, pager) are reset here too.
   Each question: "Question N of 9" label, headline, then a vertical slider
   whose steps line up with the answer rows beside it. */

/* ----------- Measurement: Phones + Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (width < 1200px) {

  html.horizontal {
    --q-row: 58px;                 /* one answer row = one slider step */
    --q-slider-col: 70px;          /* column holding the track + pill */
    --q-gap: 40px;                 /* track column to answer text */
    --q-pill-w: 58px;
    --q-pill-h: 14px;
    --q-title-gap: 36px;           /* headline to first answer */
    --q-buttons-height: 47px;
    --q-buttons-width: 113px;
    --q-buttons-gap: 30px;         /* answers to buttons, buttons to bar */
    --q-bar-total: calc(var(--m-bar-height) + 19px + env(safe-area-inset-bottom));
  }

  html.horizontal body.horizontal {
    counter-reset: question;
  }

  /* One full-width page per question, content stacked from the bottom so
     the headline always sits right above the answers */
  html.horizontal body.horizontal section {
    counter-increment: question;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    padding: 0 var(--m-text-gutter) calc(var(--q-bar-total) + 2 * var(--q-buttons-gap) + var(--q-buttons-height));
    justify-content: flex-end;
    align-items: stretch;
    background: var(--black);
  }

  /* Backgrounds: question 1 per the mockup, the rest follow the desktop order */
  html.horizontal body.horizontal section::after {
    content: '';
    top: 0;
    position: absolute;
    height: 100%;
    width: 100%;
    left: 0;
    right: auto;
    background-attachment: scroll;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.8;
  }

  html.horizontal body.horizontal section:nth-of-type(1)::after {
    background-image: url(../img/hybrid_intel4b.jpg);
    background-position: 38% top;
  }

  html.horizontal body.horizontal section:nth-of-type(2)::after {
    background-image: url(../img/hybrid_intel4.jpeg);
    background-position: 60% center;
  }

  html.horizontal body.horizontal section:nth-of-type(3)::after {
    background-image: url(../img/hybrid_intel5.jpeg);
    background-position: 62% center;
    background-size: cover;
  }

  html.horizontal body.horizontal section:nth-of-type(4)::after {
    background-image: url(../img/hybrid_intel3.jpeg);
    background-position: 60% center;
  }

  html.horizontal body.horizontal section:nth-of-type(5)::after {
    background-image: url(../img/hybrid_intel2.jpeg);
    background-position: 67% center;
  }

  html.horizontal body.horizontal section:nth-of-type(6)::after {
    background-image: url(../img/hybrid_intel1.jpeg);
    background-position: 30% center;
  }

  /* The desktop leaves 7-10 black; phones and tablets keep a photo on every page */
  html.horizontal body.horizontal section:nth-of-type(7)::after {
    background-image: url(../img/hybrid_intel3a.jpg);
    background-position: 45% top;
  }

  html.horizontal body.horizontal section:nth-of-type(8)::after {
    background-image: url(../img/hybrid_intel4a.jpg);
    background-position: 50% top;
  }

  html.horizontal body.horizontal section:nth-of-type(9)::after {
    background-image: url(../img/hybrid_intel_for_enterprises1.jpg);
    background-position: 40% center;
  }

  html.horizontal body.horizontal section:nth-of-type(10)::after {
    background-image: url(../img/hybrid_intel4b.jpg);
    background-position: 38% top;
  }

  /* Index's Success Stories pager pill */
  html.horizontal body.horizontal section:nth-of-type(5)::before {
    content: none;
    animation: none;
  }

  /*************** Title ***************/

  html.horizontal body.horizontal section div.title_area.full_width {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: 0;
    width: 100% !important;
    max-width: none;
    height: auto;
    padding: 0;
    margin: 0 0 var(--q-title-gap) 0;
    display: flex;
    justify-content: flex-end;
    z-index: 200;
  }

  html.horizontal body.horizontal section div.title_area.full_width::before {
    content: "Question " counter(question) " of 9";
    align-self: flex-start;
    padding: 4px 10px;
    margin-bottom: 12px;
    background: var(--black);
    font-family: 'Playfair Display';
    font-size: 9.5px;
    color: var(--light-grey);
    opacity: 0;
    transition: opacity 0.6s ease 0.3s;
  }

  html.horizontal body.horizontal section.sectionFadein div.title_area.full_width::before {
    opacity: 1;
  }

  html.horizontal body.horizontal section:last-of-type div.title_area.full_width::before {
    content: none;
  }

  html.horizontal body.horizontal section div.title_area.full_width h1 {
    left: 0;
    width: 100% !important;
    margin: 0;
    font-size: 22px;
    line-height: 1.25;
    text-wrap: balance;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.45);
  }

  /* The markup numbers each headline ("1. Where…"); the label carries the
     number now. Floating the "1." out of the line lets the space after it
     collapse at the line start. */
  html.horizontal body.horizontal section:not(:last-of-type) div.title_area.full_width h1::first-letter {
    float: left;
    font-size: 0;
  }

  /* "Move the slider right or left" no longer describes the control */
  html.horizontal body.horizontal section:not(:last-of-type) div.title_area.full_width p {
    display: none;
  }

  html.horizontal body.horizontal section:last-of-type div.title_area.full_width p {
    left: 0;
    width: 100% !important;
    margin-top: 16px;
  }

  /*************** Vertical slider + answers ***************/

  html.horizontal body.horizontal div.measurement {
    --q-rows: 6;
    position: relative;
    left: 0;
    bottom: auto;
    width: 100%;
    height: calc(var(--q-rows) * var(--q-row));
    display: block;
    z-index: 200;
  }

  /* Questions 8 and 9 have four answers */
  html.horizontal body.horizontal div.measurement:has(ol > li:nth-child(4):last-child) {
    --q-rows: 4;
  }

  /* The slider spans the whole block: tapping an answer row jumps to it */
  html.horizontal body.horizontal div.measurement div.range_selector {
    position: absolute;
    inset: 0;
    width: auto;
    display: block;
    z-index: 1;
  }

  html.horizontal body.horizontal div.measurement div.range_selector input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    writing-mode: vertical-lr;     /* first answer at the top */
    direction: ltr;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    background: transparent;
    cursor: pointer;
    touch-action: pan-x;           /* horizontal swipes still change question */
    -webkit-tap-highlight-color: transparent;
  }

  /* Track: a thin line centred in the slider column */
  html.horizontal body.horizontal div.measurement input[type="range"]::-webkit-slider-runnable-track {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15)) no-repeat;
    background-size: 5px calc(100% - var(--q-row) + var(--q-pill-h));
    background-position: calc(var(--q-slider-col) / 2 - 2.5px) center;
  }

  html.horizontal body.horizontal div.measurement input[type="range"]::-moz-range-track {
    width: 100%;
    height: 100%;
    border-radius: 0;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.15)) no-repeat;
    background-size: 5px calc(100% - var(--q-row) + var(--q-pill-h));
    background-position: calc(var(--q-slider-col) / 2 - 2.5px) center;
  }

  /* Thumb: a full-width row = pill on the track + faint highlight band
     behind the selected answer. Its height equals one answer row, so every
     step lands centred on a row. */
  html.horizontal body.horizontal div.measurement input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: var(--q-row);
    margin: 0;
    border: none;
    border-radius: 0;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='14'%3E%3Crect width='58' height='14' rx='5' fill='%23e6e6e6'/%3E%3C/svg%3E")
        calc(var(--q-slider-col) / 2 - var(--q-pill-w) / 2) center / var(--q-pill-w) var(--q-pill-h) no-repeat,
      linear-gradient(to right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02))
        right center / calc(100% - var(--q-slider-col) - var(--q-gap) / 2) calc(100% - 4px) no-repeat;
  }

  html.horizontal body.horizontal div.measurement input[type="range"]::-moz-range-thumb {
    width: 100%;
    height: var(--q-row);
    border: none;
    border-radius: 0;
    background:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='58' height='14'%3E%3Crect width='58' height='14' rx='5' fill='%23e6e6e6'/%3E%3C/svg%3E")
        calc(var(--q-slider-col) / 2 - var(--q-pill-w) / 2) center / var(--q-pill-w) var(--q-pill-h) no-repeat,
      linear-gradient(to right, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02))
        right center / calc(100% - var(--q-slider-col) - var(--q-gap) / 2) calc(100% - 4px) no-repeat;
  }

  html.horizontal body.horizontal div.measurement input[type="range"]:focus-visible::-webkit-slider-thumb {
    outline: 1px solid rgba(255, 255, 255, 0.5);
    outline-offset: -1px;
  }

  /* Answers sit above the slider but let taps through to it */
  html.horizontal body.horizontal div.measurement ol {
    position: relative;
    z-index: 2;
    pointer-events: none;
    display: grid;
    grid-template-rows: repeat(var(--q-rows), var(--q-row));
    align-items: stretch;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0 0 0 calc(var(--q-slider-col) + var(--q-gap));
    box-sizing: border-box;
    list-style: none;
  }

  html.horizontal body.horizontal div.measurement ol li {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    align-self: stretch;
    flex: none;
    text-align: left;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.72);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
  }

  /*************** Prev / Next ***************/

  html.horizontal body.horizontal div.button_group {
    display: flex;
    position: fixed;
    top: auto;
    bottom: calc(var(--q-bar-total) + var(--q-buttons-gap));
    left: 0;
    right: 0;
    width: 100%;
    min-width: 0;
    max-height: none;
    padding: 0;
    justify-content: space-between;
    background: none;
    z-index: 900;
  }

  html.horizontal body.horizontal div.button_group button {
    flex: none;
    width: var(--q-buttons-width);
    height: var(--q-buttons-height);
    padding: 0;
    border: none;
    font-family: 'Playfair Display';
    font-size: 17px;
    line-height: 1;
    text-align: center;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
  }

  html.horizontal body.horizontal div.button_group button#next_btn {
    background: rgba(255, 255, 255, 0.22);
  }

  html.horizontal body.horizontal div.button_group button span {
    font-family: inherit;
    color: inherit;
    mix-blend-mode: normal;
  }
}

/* ----------- Measurement: Short phones, Portrait ----------- */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 740px) {

  html.horizontal {
    --m-banner-width: 108px;       /* smaller badge, same proportions */
    --q-row: 46px;
    --q-gap: 28px;
    --q-slider-col: 58px;
    --q-pill-w: 48px;
    --q-pill-h: 12px;
    --q-title-gap: 16px;
    --q-buttons-height: 40px;
    --q-buttons-width: 100px;
    --q-buttons-gap: 14px;
  }

  html.horizontal body.horizontal section div.title_area.full_width h1 {
    font-size: 18px;
  }

  html.horizontal body.horizontal section div.title_area.full_width::before {
    margin-bottom: 8px;
  }

  html.horizontal body.horizontal div.measurement ol li {
    font-size: 12px;
    line-height: 1.28;
  }

  html.horizontal body.horizontal div.button_group button {
    font-size: 15px;
  }
}

/* ----------- Measurement: Very short phones, Portrait (iPhone 5 / SE 1st gen) ----------- */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 600px) {

  html.horizontal {
    --m-banner-width: 88px;
    --q-row: 40px;
    --q-slider-col: 48px;
    --q-gap: 20px;
    --q-pill-w: 40px;
    --q-pill-h: 10px;
    --q-title-gap: 12px;
    --q-buttons-height: 34px;
    --q-buttons-width: 88px;
    --q-buttons-gap: 10px;
  }

  html.horizontal body.horizontal section div.title_area.full_width h1 {
    font-size: 16px;
  }

  html.horizontal body.horizontal section div.title_area.full_width::before {
    font-size: 8.5px;
    margin-bottom: 6px;
  }

  html.horizontal body.horizontal div.measurement ol li {
    font-size: 11px;
    line-height: 1.22;
  }

  html.horizontal body.horizontal div.button_group button {
    font-size: 14px;
  }
}

/* ----------- Measurement: Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (744px <= width < 1200px) {

  html.horizontal {
    --q-row: 84px;
    --q-slider-col: 110px;
    --q-gap: 56px;
    --q-pill-w: 80px;
    --q-pill-h: 18px;
    --q-title-gap: 56px;
    --q-buttons-height: 64px;
    --q-buttons-width: 170px;
    --q-buttons-gap: 44px;
    --q-bar-total: var(--m-bar-height);
  }

  html.horizontal body.horizontal section div.title_area.full_width::before {
    font-size: 13px;
    padding: 6px 14px;
    margin-bottom: 18px;
  }

  html.horizontal body.horizontal section div.title_area.full_width h1 {
    font-size: 4.2vw;
  }

  html.horizontal body.horizontal div.measurement ol li {
    font-size: 19px;
    line-height: 1.4;
  }

  html.horizontal body.horizontal div.button_group button {
    font-size: 22px;
  }
}

/* ===================== ENTERPRISES PAGE (body.for_enterprises) =====================
   hybrid-intelligence-operating-model-for-enterprises.html. Desktop styles live
   in for_enterprises.css; every rule below is scoped to body.for_enterprises.
   Sections 4 and 5 share index's markup, so the index rules above cover them.
   Section two becomes a five-slide carousel: intro, then Enterprise, Divisions,
   Departments, Individuals. The layer stack stays pinned below the slides and
   the matching layer lifts out as each level scrolls into view. */

/* ----------- Enterprises: Phones + Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (width < 1200px) {

  body.for_enterprises {
    --e-slides: 5;                                   /* intro + one slide per level */
    --e-bar-total: calc(var(--m-bar-height) + 19px + env(safe-area-inset-bottom));
    --e-top: calc(var(--m-banner-height) + 42px);   /* content starts below the logo box */
    --e-stack-height: 290px;                         /* divider + layer stack */
    --e-stack-scale: 0.72;
    --e-stack-shift: 48px;
    --e-pager-space: 58px;
  }

  /* The narrower levels drop their parent level, so their tracks are shorter */
  body.for_divisions   { --e-slides: 4; }
  body.for_departments { --e-slides: 3; }
  body.for_individuals { --e-slides: 2; }

  /* The fixed blur overlay is decorative (and on section two of Enterprises,
     85% tall); let touches
     through so swipes reach the section-two carousel and platform row */
  body.for_enterprises div.gradient_overlay {
    pointer-events: none;
  }

  /* Section four's title area is fixed to the viewport, so its (invisible)
     CTA would otherwise sit over every section and catch taps and swipes */
  body.for_enterprises section:not(.sectionFadein) div.title_area a.cta_button {
    pointer-events: none;
  }

  body.for_enterprises section::after {
    background-attachment: scroll !important;
  }

  /*************** SECTION ONE ***************/

  body.for_enterprises section:nth-of-type(1)::after {
    background-size: cover;
    background-position: 40% center;
  }

  /* Level pages: portrait crops keep the subject in frame */
  body.for_divisions section:nth-of-type(1)::after {
    background-image: url(../img/hybrid_intel4b.jpg);
    background-position: 38% top;
  }

  body.for_departments section:nth-of-type(1)::after {
    background-image: url(../img/hybrid_intel4a.jpg);
    background-position: 30% top;
  }

  body.for_individuals section:nth-of-type(1)::after {
    background-image: url(../img/hybrid_intel3a.jpg);
    background-position: 55% top;
  }

  /* "scroll to learn more" stays visible on this page family (per the design) */
  body.for_enterprises section.one div.title_area p {
    display: block;
    font-size: 15px;
    margin-top: 18px;
  }

  body.for_divisions section.one h1,
  body.for_departments section.one h1,
  body.for_individuals section.one h1 {
    font-size: 27px;
    text-wrap: balance;
  }

  body.for_enterprises section:nth-of-type(1) div.title_area {
    bottom: calc(var(--e-bar-total) + 90px);
  }

  body.for_enterprises section:nth-of-type(1) h1 {
    bottom: auto;
  }

  /*************** SECTION TWO: levels carousel ***************/

  body.for_enterprises section.two {
    display: grid;
    grid-template-rows: 100%;
    grid-auto-flow: column;
    grid-auto-columns: 100%;
    align-items: stretch;
    justify-content: normal;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    scroll-timeline: --levels x;
    timeline-scope: --lv-ent, --lv-div, --lv-dep, --lv-ind;
    /* On a scroll container a plain background stays put while slides move */
    background:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url(../img/hybrid_intel_for_enterprises1.jpg) 55% center / cover no-repeat;
    background-attachment: scroll;
  }

  body.for_enterprises section.two::-webkit-scrollbar {
    display: none;
  }

  body.for_enterprises section.two::after {
    content: none;
  }

  body.for_divisions section.two {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url(../img/hybrid_intel4b.jpg);
    background-position: 0 0, 38% top;
  }

  body.for_departments section.two {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url(../img/hybrid_intel4a.jpg);
    background-position: 0 0, 30% top;
  }

  body.for_individuals section.two {
    background-image:
      linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55)),
      url(../img/hybrid_intel3a.jpg);
    background-position: 0 0, 55% top;
  }

  /* Slide 1: intro */
  body.for_enterprises section.two div.title_area {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: 0;
    width: 100% !important;     /* for_enterprises.css sets 40% !important */
    max-width: none;
    height: 100%;
    padding: calc(var(--e-top) + 12px) var(--m-text-gutter) 0;
    box-sizing: border-box;
    justify-content: flex-start;
    transform: none;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  body.for_enterprises section.two div.title_area h1 {
    font-size: 30px;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 18px;
    text-wrap: balance;
  }

  /* Slides 2-5: one per level */
  body.for_enterprises section.two div.enterprise_areas {
    display: contents;
  }

  body.for_enterprises section.two div.enterprise_areas > div {
    grid-row: 1;
    position: relative;
    z-index: 200;               /* above the page's fixed blur overlay */
    right: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    width: auto;
    height: auto;
    padding: var(--e-top) var(--m-text-gutter) 0;
    box-sizing: border-box;
    transform: none;
    opacity: 1;
    border: none;
    border-image: none;
    cursor: auto;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  /* Level slides follow the intro, however many levels the page has */
  body.for_enterprises section.two div.enterprise_areas > div:nth-child(1) { grid-column: 2; }
  body.for_enterprises section.two div.enterprise_areas > div:nth-child(2) { grid-column: 3; }
  body.for_enterprises section.two div.enterprise_areas > div:nth-child(3) { grid-column: 4; }
  body.for_enterprises section.two div.enterprise_areas > div:nth-child(4) { grid-column: 5; }

  /* Each level slide drives its own layer in the stack */
  body.for_enterprises section.two div.enterprise_areas > div.enterprise   { view-timeline: --lv-ent x; }
  body.for_enterprises section.two div.enterprise_areas > div.divisions    { view-timeline: --lv-div x; }
  body.for_enterprises section.two div.enterprise_areas > div.departments  { view-timeline: --lv-dep x; }
  body.for_enterprises section.two div.enterprise_areas > div.individuals  { view-timeline: --lv-ind x; }

  body.for_enterprises section.two div.text_block {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-items: start;
    text-align: left;
    margin: 0 0 22px 0;
    padding: 0;
    align-self: stretch;
  }

  body.for_enterprises section.two div.text_block span {
    font-size: 11.5px;
    margin-bottom: 4px;
  }

  body.for_enterprises section.two div.enterprise_areas > div h2 {
    font-size: 27px;
    font-weight: 500;
    line-height: 1.15;
    color: var(--white);
  }

  body.for_enterprises section.two div.model_area {
    width: 100%;
    justify-content: flex-start;
  }

  body.for_enterprises section.two div.model_area ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 14px;
    row-gap: 20px;
    width: 100%;
    margin: 0;
  }

  /* Four-item levels use two columns */
  body.for_enterprises section.two div.departments div.model_area ul,
  body.for_enterprises section.two div.individuals div.model_area ul {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 28px;
  }

  body.for_enterprises section.two div.model_area ul li {
    flex-basis: auto;
    min-width: 0;
  }

  body.for_enterprises section.two div.model_area ul li h3 {
    font-size: 16.5px;
    font-weight: 400;
    margin-bottom: 4px;
    color: var(--white);
  }

  body.for_enterprises section.two div.model_area ul li span {
    font-size: 10.5px;
    font-weight: 300;
    line-height: 1.35;
  }

  /* Pinned divider + layer stack, shared by every slide */
  body.for_enterprises section.two div.operating_model_animation {
    grid-column: 1 / span var(--e-slides);
    grid-row: 1;
    position: sticky;
    left: 0;
    bottom: auto;
    align-self: end;
    justify-self: start;
    width: calc(100% / var(--e-slides));   /* one slide of the track */
    height: var(--e-stack-height);
    margin-bottom: calc(var(--e-bar-total) + var(--e-pager-space));
    transform: none;
    z-index: 200;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.45) 55%, rgba(255, 255, 255, 0.12))
      center top / calc(100% - 2 * var(--m-gutter)) 1px no-repeat;
  }

  body.for_enterprises section.two div.operating_model_animation .stg8 {
    height: 100%;
    padding: 0;
    box-sizing: border-box;
    justify-content: center;
  }

  body.for_enterprises section.two div.operating_model_animation .vp8 {
    height: 400px;
    flex: none;
    scale: var(--e-stack-scale);
    translate: 0 var(--e-stack-shift);
  }

  /* The desktop's stacked/individual toggle is left out on phones */
  body.for_enterprises section.two div.operating_model_animation .btnrow8 {
    display: none;
  }

  /* Pager: five dots, dash follows the slides */
  body.for_enterprises section.two::before {
    content: "";
    grid-column: 1 / span var(--e-slides);
    grid-row: 1;
    position: sticky;
    left: calc(50% - (var(--e-slides) * 14px + 28px) / 2);
    align-self: end;
    justify-self: start;
    width: calc(var(--e-slides) * 14px);
    height: 32px;
    padding: 0 14px;
    margin-bottom: calc(var(--e-bar-total) + 18px);
    border-radius: 16px;
    z-index: 210;
    pointer-events: none;
    background-image:
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='5'%3E%3Crect width='14' height='5' rx='2.5' fill='white'/%3E%3C/svg%3E"),
      radial-gradient(circle, rgba(255, 255, 255, 0.35) 2px, transparent 2.5px),
      linear-gradient(rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12));
    background-size: 14px 5px, 14px 32px, auto;
    background-position: 0 50%, 0 50%, 0 0;
    background-repeat: no-repeat, repeat-x, no-repeat;
    background-origin: content-box, content-box, border-box;
    background-clip: content-box, content-box, border-box;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  @supports (animation-timeline: scroll()) {
    body.for_enterprises section.two::before {
      animation: levelsPager linear both;
      animation-timeline: --levels;
    }

    /* Swiping drives the stack, so tapping a slide no longer needs to
       (and must not restart the desktop click animation over it) */
    body.for_enterprises section.two div.enterprise_areas > div {
      pointer-events: none;
    }

    body.for_enterprises .ly8[data-k="ent"] { animation: levelEnt linear both; animation-timeline: --lv-ent; }
    body.for_enterprises .ly8[data-k="div"] { animation: levelDiv linear both; animation-timeline: --lv-div; }
    body.for_enterprises .ly8[data-k="dep"] { animation: levelDep linear both; animation-timeline: --lv-dep; }
    body.for_enterprises .ly8[data-k="ind"] { animation: levelInd linear both; animation-timeline: --lv-ind; }
  }

  /*************** SECTION THREE: platforms ***************/

  /* Spacing sits on the children: padding on a section changes how the
     page's column of sections shares its height */
  body.for_enterprises section.three {
    justify-content: flex-start;
    padding: 0;
    width: 100%;
    min-width: 100%;
  }

  body.for_enterprises section:nth-of-type(3)::after {
    background-size: cover;
    background-position: 28% center;
    opacity: 0.55;
  }

  body.for_enterprises section.three div.title_area {
    position: relative;
    top: auto !important;
    bottom: auto !important;
    left: 0;
    width: 100% !important;     /* for_enterprises.css sets 40% !important */
    height: auto;
    padding: 0 var(--m-text-gutter);
    margin-top: var(--e-top);
    box-sizing: border-box;
    transform: none;
    justify-content: flex-start;
  }

  body.for_enterprises section.three h1 {
    font-size: 26px;
    text-wrap: balance;
  }

  body.for_enterprises section.three div.title_area p {
    font-size: 14px;
    line-height: 1.5;
  }

  /* Ten platforms as a swipeable card row */
  body.for_enterprises section.three div.platform_grid {
    position: relative;
    flex-shrink: 0;
    right: auto;
    bottom: auto;
    margin-top: auto;
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: calc(var(--e-bar-total) + 30px);
    align-items: stretch;
    gap: 12px;
    padding: 0 var(--m-text-gutter);
    box-sizing: border-box;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--m-text-gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    z-index: 200;
  }

  body.for_enterprises section.three div.platform_grid::-webkit-scrollbar {
    display: none;
  }

  body.for_enterprises section.three div.platform_grid div {
    flex: 0 0 62%;
    width: auto;
    align-self: stretch;
    padding: 18px 18px 20px;
    box-sizing: border-box;
    scroll-snap-align: start;
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    cursor: auto;
  }

  body.for_enterprises section.three div.platform_grid h2 {
    font-size: 21px;
    margin-bottom: 8px;
  }

  body.for_enterprises section.three div.platform_grid p {
    font-size: 13px;
    line-height: 1.45;
    margin: 0;
  }
}

/* Layer pull-out per level. Each layer follows its own slide's view timeline
   (--lv-ent etc.): 0% / 100% = a neighbouring slide is snapped, 50% = this
   slide is snapped. The layer rises, then turns to face the viewer in front of
   the stack (the desktop pull8 motion); the per-layer scale makes every pulled
   card the same size. Works for any number of levels on the page. */
@keyframes levelEnt {
  0%, 12%   { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
  30%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  50%       { transform: rotateZ(42deg) rotateX(-58deg) translate3d(0px, -92px, 140px) scale(0.83); background-color: rgba(230, 230, 230, 0.85); }
  70%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  88%, 100% { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
}

@keyframes levelDiv {
  0%, 12%   { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
  30%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  50%       { transform: rotateZ(42deg) rotateX(-58deg) translate3d(0px, -92px, 140px) scale(0.94); background-color: rgba(230, 230, 230, 0.85); }
  70%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  88%, 100% { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
}

@keyframes levelDep {
  0%, 12%   { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
  30%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  50%       { transform: rotateZ(42deg) rotateX(-58deg) translate3d(0px, -92px, 140px) scale(1.08); background-color: rgba(230, 230, 230, 0.85); }
  70%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  88%, 100% { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
}

@keyframes levelInd {
  0%, 12%   { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
  30%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  50%       { transform: rotateZ(42deg) rotateX(-58deg) translate3d(0px, -92px, 140px) scale(1.28); background-color: rgba(230, 230, 230, 0.85); }
  70%       { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), calc(var(--z) + 200px)) scale(1); }
  88%, 100% { transform: rotateZ(0deg) rotateX(0deg) translate3d(var(--x), var(--y), var(--z)) scale(1); background-color: var(--fill); }
}

/* Pager dash: travels one dot per slide, for any slide count (--e-slides) */
@keyframes levelsPager {
  from { background-position: 0 50%, 0 50%, 0 0; }
  to   { background-position: calc((var(--e-slides) - 1) * 14px) 50%, 0 50%, 0 0; }
}

/* ----------- Enterprises: Mid-height phones, Portrait (iPhone mini / 13 / 14) ----------- */
/* Between the compact tier and the 393 x 852 design size the copy wraps onto
   more lines, so the stack gives up a little height to keep clear of it. */
@media only screen and (orientation: portrait) and (width < 744px) and (800px <= height < 850px) {

  body.for_enterprises {
    --e-stack-height: 250px;
    --e-stack-scale: 0.62;
    --e-stack-shift: 38px;
    --e-pager-space: 50px;
  }
}

/* ----------- Enterprises: Short phones, Portrait ----------- */
/* Also narrow Android phones (360 wide) up to 850 tall: the copy wraps onto more lines */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 800px),
       only screen and (orientation: portrait) and (width < 370px) and (height < 850px) {

  body.for_enterprises {
    --m-banner-width: 108px;                        /* smaller badge, same proportions */
    --m-banner-height: calc(var(--m-banner-width) * 1.2);
    --e-top: calc(var(--m-banner-height) + 20px);
    --e-stack-height: 188px;
    --e-stack-scale: 0.45;
    --e-stack-shift: 26px;
    --e-pager-space: 44px;
  }

  body.for_enterprises section.two div.title_area h1 {
    font-size: 25px;
    margin-bottom: 12px;
  }

  body.for_enterprises section.two div.title_area p {
    font-size: 13.5px;
  }

  body.for_enterprises section.two div.text_block {
    margin-bottom: 12px;
  }

  body.for_enterprises section.two div.text_block span {
    font-size: 10.5px;
  }

  body.for_enterprises section.two div.enterprise_areas > div h2 {
    font-size: 22px;
  }

  body.for_enterprises section.two div.model_area ul {
    column-gap: 12px;
    row-gap: 12px;
  }

  body.for_enterprises section.two div.model_area ul li h3 {
    font-size: 14.5px;
    margin-bottom: 2px;
  }

  body.for_enterprises section.two div.model_area ul li span {
    font-size: 10px;
    line-height: 1.3;
  }

  body.for_enterprises section.two::before {
    margin-bottom: calc(var(--e-bar-total) + 10px);
  }

  body.for_enterprises section.three h1 {
    font-size: 23px;
  }

  body.for_enterprises section.three div.title_area p {
    font-size: 13px;
  }
}

/* ----------- Enterprises: Very short phones, Portrait (iPhone 5 / SE 1st gen) ----------- */
/* No room for the layer stack beside the copy: the decorative stack and its
   divider step aside, the slides and pager remain. */
@media only screen and (orientation: portrait) and (width < 744px) and (height < 600px) {

  body.for_enterprises {
    --m-banner-width: 88px;
  }

  body.for_enterprises section.two div.operating_model_animation {
    display: none;
  }

  body.for_enterprises section.two div.title_area h1 {
    font-size: 22px;
  }

  body.for_enterprises section.two div.title_area p {
    font-size: 13px;
  }

  body.for_enterprises section.two div.enterprise_areas > div h2 {
    font-size: 20px;
  }

  body.for_enterprises section.three h1 {
    font-size: 20px;
  }

  body.for_enterprises section.three div.title_area p {
    font-size: 12px;
    margin-bottom: 0;
  }

  body.for_enterprises section.three div.platform_grid {
    margin-bottom: calc(var(--e-bar-total) + 14px);
  }

  body.for_enterprises section.three div.platform_grid div {
    padding: 14px 14px 16px;
  }

  body.for_enterprises section.three div.platform_grid h2 {
    font-size: 18px;
  }

  body.for_enterprises section.three div.platform_grid p {
    font-size: 12px;
  }
}

/* ----------- Enterprises: Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (744px <= width < 1200px) {

  body.for_enterprises {
    --e-bar-total: var(--m-bar-height);
    --e-top: calc(var(--m-banner-height) + 64px);
    --e-stack-height: 440px;
    --e-stack-scale: 1;
    --e-stack-shift: 40px;
    --e-pager-space: 90px;
  }

  body.for_enterprises section.two div.title_area h1 {
    font-size: 5vw;
    margin-bottom: 24px;
  }

  body.for_enterprises section.two div.text_block span {
    font-size: 15px;
  }

  body.for_enterprises section.two div.enterprise_areas > div h2 {
    font-size: 5vw;
  }

  body.for_enterprises section.two div.text_block {
    margin-bottom: 36px;
  }

  body.for_enterprises section.two div.model_area ul {
    column-gap: 4vw;
    row-gap: 34px;
  }

  body.for_enterprises section.two div.model_area ul li h3 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  body.for_enterprises section.two div.model_area ul li span {
    font-size: 15px;
  }

  body.for_enterprises section.two::before {
    margin-bottom: calc(var(--e-bar-total) + 36px);
  }

  body.for_enterprises section.three h1 {
    font-size: 4.6vw;
  }

  body.for_enterprises section.three div.title_area p {
    font-size: 2.1vw;
    max-width: 36em;
  }

  body.for_enterprises section.three div.platform_grid {
    gap: 20px;
  }

  body.for_enterprises section.three div.platform_grid div {
    flex-basis: 40%;
    padding: 26px 26px 30px;
  }

  body.for_enterprises section.three div.platform_grid h2 {
    font-size: 28px;
  }

  body.for_enterprises section.three div.platform_grid p {
    font-size: 17px;
  }
}

/* ===================== PRIVACY POLICY PAGE =====================
   privacy-policy.html. Desktop styles live in privacy_policy.css. 404.html
   shares the body.privacy_policy class but has no policy text, so every rule
   is scoped with :has(section.two main) to reach this page only.
   A photo hero with the title, then the policy as one continuous, freely
   scrolling document: no snap points, no fixed titles, a slim blur band. */

/* ----------- Privacy Policy: Phones + Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (width < 1200px) {

  /* Reading a long document: no snap points */
  html:has(body.privacy_policy section.two main) {
    scroll-snap-type: none;
  }

  body.privacy_policy:has(section.two main) {
    --pp-gutter: var(--m-text-gutter);
    --pp-bar: calc(var(--m-bar-height) + 19px + env(safe-area-inset-bottom));
    height: auto;
    min-height: 100%;
  }

  body.privacy_policy:has(section.two main) section {
    scroll-snap-align: none;
    box-sizing: border-box;
    width: 100%;
    min-width: 100%;
    padding: 0;
    opacity: 1;
  }

  /*************** Hero ***************/

  body.privacy_policy:has(section.two main) section.one {
    height: 48vh;
    min-height: 300px;
    max-height: 520px;
    flex: none;
  }

  body.privacy_policy:has(section.two main) section.one::after {
    background-image:
      linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.7) 100%),
      url(../img/hybrid_intel_for_enterprises1.jpg);
    background-attachment: scroll;
    background-size: cover;
    background-position: center, 55% 30%;
    opacity: 0.9;
  }

  /* Title stays with the hero instead of floating over the policy */
  body.privacy_policy:has(section.two main) section.one div.title_area {
    position: absolute;
    top: auto;
    bottom: 34px;
    left: 0;
    width: 100%;
    height: auto;
    padding: 0 var(--pp-gutter);
    box-sizing: border-box;
  }

  body.privacy_policy:has(section.two main) section.one h1 {
    font-size: 30px;
    margin-bottom: 14px;
  }

  body.privacy_policy:has(section.two main) section.one p.effective {
    display: block;
    font-size: 15px;
    margin: 0;
    color: var(--light-grey);
  }

  /*************** Policy text ***************/

  body.privacy_policy:has(section.two main) section.two {
    height: auto;
    overflow: visible;
    flex: none;
    background: var(--black);
    padding: 44px var(--pp-gutter) calc(var(--pp-bar) + 48px);
  }

  body.privacy_policy:has(section.two main) section.two main {
    position: static;
    width: 100%;
    max-width: 36em;
  }

  body.privacy_policy:has(section.two main) section.two main h1,
  body.privacy_policy:has(section.two main) section.two main h2 {
    font-family: 'Playfair Display';
    font-weight: 400;
    line-height: 1.25;
    color: rgba(255, 255, 255, 0.72);
    margin: 0 0 16px 0;
    transform: none;
  }

  body.privacy_policy:has(section.two main) section.two main h1 {
    font-size: 24px;
  }

  body.privacy_policy:has(section.two main) section.two main h2 {
    font-size: 21px;
    margin-top: 40px;
  }

  body.privacy_policy:has(section.two main) section.two main p,
  body.privacy_policy:has(section.two main) section.two main ul,
  body.privacy_policy:has(section.two main) section.two main address {
    font-size: 15px;
    font-weight: 300;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 16px 0;
  }

  body.privacy_policy:has(section.two main) section.two main ul {
    padding-left: 18px;
  }

  body.privacy_policy:has(section.two main) section.two main ul li {
    margin: 0 0 10px 0;
  }

  body.privacy_policy:has(section.two main) section.two main address {
    font-style: normal;
  }

  body.privacy_policy:has(section.two main) section.two main strong {
    font-weight: 500;
    color: var(--white);
  }

  body.privacy_policy:has(section.two main) section.two main a {
    text-underline-offset: 3px;
  }

  /* A slim blur band above the contact bar; the reading area stays sharp */
  body.privacy_policy:has(section.two main) div.gradient_overlay,
  body.privacy_policy:has(section.two main) div.gradient_overlay.short {
    height: calc(var(--pp-bar) + 36px);
    pointer-events: none;
  }

  body.privacy_policy:has(section.two main) div.section_indicator {
    display: none;
  }
}

/* ----------- Privacy Policy: Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (744px <= width < 1200px) {

  body.privacy_policy:has(section.two main) {
    --pp-bar: var(--m-bar-height);
  }

  body.privacy_policy:has(section.two main) section.one {
    height: 44vh;
    max-height: 620px;
  }

  body.privacy_policy:has(section.two main) section.one div.title_area {
    bottom: 56px;
  }

  body.privacy_policy:has(section.two main) section.one h1 {
    font-size: 5vw;
  }

  body.privacy_policy:has(section.two main) section.one p.effective {
    font-size: 19px;
  }

  body.privacy_policy:has(section.two main) section.two {
    padding-top: 72px;
  }

  body.privacy_policy:has(section.two main) section.two main h1 {
    font-size: 34px;
  }

  body.privacy_policy:has(section.two main) section.two main h2 {
    font-size: 28px;
    margin-top: 56px;
  }

  body.privacy_policy:has(section.two main) section.two main p,
  body.privacy_policy:has(section.two main) section.two main ul,
  body.privacy_policy:has(section.two main) section.two main address {
    font-size: 19px;
  }
}

/* ----------- Assessment results: Phones + Tablets, Portrait ----------- */
/* The Hybrid Intelligence Matrix in the last section (assessment_results.css
   has the desktop base). Compact matrix, readouts stacked, scrolls if needed. */
@media only screen and (orientation: portrait) and (width < 1200px) {

  html.horizontal body.horizontal div.hi_results {
    left: var(--m-text-gutter);
    right: var(--m-text-gutter);
    top: calc(var(--m-banner-height) + 18px);
    bottom: calc(var(--q-bar-total) + 14px);
  }

  div.hi_results .hi_head {
    gap: 10px 18px;
    padding-bottom: 14px;
    margin-bottom: 14px;
  }

  div.hi_results .hi_kicker,
  div.hi_results .hi_scope,
  div.hi_results .hi_axis,
  div.hi_results .hi_k {
    font-size: 9.5px;
  }

  div.hi_results .hi_title {
    font-size: 20px;
    margin-top: 6px;
  }

  div.hi_results .hi_level {
    font-size: 28px;
  }

  div.hi_results .hi_matrix {
    grid-template-columns: 58px repeat(6, minmax(0, 1fr));
    gap: 1px;
  }

  div.hi_results .hi_cell {
    min-height: 40px;
    padding: 5px 4px;
  }

  div.hi_results .hi_xhead {
    padding: 0 3px 6px;
    font-size: 8px;
    letter-spacing: 0;
  }

  div.hi_results .hi_ylabel {
    padding: 4px 6px 4px 0;
  }

  div.hi_results .hi_num {
    font-size: 8.5px;
    margin-bottom: 1px;
  }

  div.hi_results .hi_name {
    font-size: 11px;
  }

  div.hi_results .hi_here .hi_tag {
    font-size: 8.5px;
    line-height: 1.1;
  }

  div.hi_results .hi_target .hi_tag {
    font-size: 7.5px;
    letter-spacing: 0.06em;
  }

  div.hi_results .hi_readout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 16px;
    padding-top: 14px;
  }

  div.hi_results .hi_v {
    font-size: 17px;
  }

  div.hi_results p.hi_n {
    font-size: 13px;
    margin-top: 5px;
  }

  div.hi_results .hi_actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 20px;
  }

  div.hi_results .hi_actions a.cta_button:link,
  div.hi_results .hi_actions a.cta_button:visited,
  div.hi_results .hi_retake {
    text-align: center;
    padding: 13px 20px;
    font-size: 16px;
  }
}

/* ----------- Assessment results: Tablets, Portrait ----------- */
@media only screen and (orientation: portrait) and (744px <= width < 1200px) {

  html.horizontal body.horizontal div.hi_results {
    top: calc(var(--m-banner-height) + 32px);
    bottom: calc(var(--q-bar-total) + 28px);
  }

  div.hi_results .hi_kicker,
  div.hi_results .hi_scope,
  div.hi_results .hi_axis,
  div.hi_results .hi_k {
    font-size: 11.5px;
  }

  div.hi_results .hi_title {
    font-size: 4vw;
  }

  div.hi_results .hi_level {
    font-size: 6vw;
  }

  div.hi_results .hi_matrix {
    grid-template-columns: 110px repeat(6, minmax(0, 1fr));
    gap: 2px;
  }

  div.hi_results .hi_cell {
    min-height: 64px;
    padding: 9px 8px;
  }

  div.hi_results .hi_xhead {
    padding: 0 8px 10px;
    font-size: 12px;
  }

  div.hi_results .hi_ylabel {
    padding: 8px 12px 8px 0;
  }

  div.hi_results .hi_num {
    font-size: 11px;
  }

  div.hi_results .hi_name {
    font-size: 17px;
  }

  div.hi_results .hi_here .hi_tag {
    font-size: 13px;
  }

  div.hi_results .hi_target .hi_tag {
    font-size: 10px;
  }

  div.hi_results .hi_readout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px 36px;
    margin-top: 24px;
    padding-top: 20px;
  }

  div.hi_results .hi_v {
    font-size: 22px;
  }

  div.hi_results p.hi_n {
    font-size: 16px;
  }

  div.hi_results .hi_actions {
    flex-direction: row;
    align-items: center;
    margin-top: 28px;
  }

  div.hi_results .hi_actions a.cta_button:link,
  div.hi_results .hi_actions a.cta_button:visited,
  div.hi_results .hi_retake {
    font-size: 18px;
    padding: 14px 26px;
  }
}

/****************************END ALL STYLES************************************/
