/* Desktop reference: Figma TOP 225:3373, centre copy 225:3668;
   ABOUT company 130:462. Load after mobile-fixes.css.
   Rules start at 701px so the accepted phone composition remains intact. */

@media (min-width: 701px) {
  .home-about .home-about-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
  }

  .home-about .home-about-message > p {
    max-width: 560px;
    text-align: center;
    font-size: 16px;
    line-height: 2.2;
  }

  .home-about .home-about-message > h3 {
    max-width: 100%;
    line-height: 1;
  }

  .home-about h3 > .copy-line {
    max-width: 100%;
  }

  .home-about h3 .copy-text {
    white-space: nowrap;
  }

  /* Keep the published table position independent of the taller live map. */
  .about-company .about-company-inner {
    align-items: start;
  }

  .about-company .about-company-copy {
    justify-content: flex-start;
    min-width: 0;
  }

  .about-company .about-company-table {
    width: 100%;
    min-width: 0;
  }

  .about-company .about-company-table dt {
    white-space: nowrap;
  }

  .about-company .about-company-table dd {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .about-company .about-office {
    width: 100%;
    height: auto;
    aspect-ratio: 672 / 387;
    object-fit: cover;
  }

  .home-empathy .empathy-copy > .copy-line {
    flex: none;
    width: auto;
    height: max-content;
    writing-mode: vertical-rl;
    white-space: nowrap;
  }

  .home-empathy .empathy-copy .copy-text {
    font: inherit;
    letter-spacing: inherit;
    writing-mode: vertical-rl;
    white-space: nowrap;
  }
}

@media (min-width: 1101px) {
  .home-about-features {
    --about-unit: min(.069444444vw, 1px);
    padding-top: calc(200 * var(--about-unit));
  }

  .home-about {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
    min-height: 521px;
  }

  .home-about > .english-heading {
    font-size: 80px;
  }

  .home-about .home-about-message > h3 {
    font-size: 32px;
    gap: 8px;
  }

  /* All artwork uses one centred 1440px scene, including on wider displays.
     The former negative inset combined with a second transform at 1600px. */
  .home-about .home-about-art {
    position: absolute;
    inset: calc(-200 * var(--about-unit)) auto auto 50%;
    width: min(100vw, 1440px);
    height: calc(920 * var(--about-unit));
    max-width: none;
    margin: 0;
    padding: 0;
    transform: translateX(-50%);
    display: block;
  }

  .home-about .home-about-art > img {
    position: absolute;
    inset: auto;
    margin: 0;
    display: block;
    object-fit: contain;
    max-width: none;
  }

  .home-about .home-about-art .person-art {
    left: 8.333333%;
    top: calc(296 * var(--about-unit));
    width: 19.305556%;
    height: calc(291 * var(--about-unit));
  }

  .home-about .home-about-art .pair-art {
    left: 70%;
    top: calc(86 * var(--about-unit));
    width: 13.888889%;
    height: calc(225 * var(--about-unit));
  }

  .home-about .home-about-art .woman-art {
    left: 82.569444%;
    top: calc(469 * var(--about-unit));
    width: 11.111111%;
    height: calc(150 * var(--about-unit));
  }

  .home-about .home-about-art .shield {
    width: 7.222222%;
    height: calc(103 * var(--about-unit));
  }

  .home-about .home-about-art .shield-one {
    left: 20.902778%;
    top: calc(82 * var(--about-unit));
  }

  .home-about .home-about-art .shield-two {
    left: 72.152778%;
    top: calc(660 * var(--about-unit));
  }

  .home-about .home-about-art .shield-three {
    left: 87.5%;
    top: calc(278 * var(--about-unit));
  }

  .home-about .home-about-art .shield-four {
    left: 5.555556%;
    top: calc(206 * var(--about-unit));
  }

  .home-features {
    margin-top: 200px;
  }

  .home-empathy .empathy-copy {
    top: -54px;
    right: max(118px, calc((100% - 1280px) / 2 + 38px));
    gap: 20px;
  }

  .home-empathy .empathy-copy > p {
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: .06em;
    padding: 12px 12px 4px;
  }

  .home-empathy .empathy-copy > p + p {
    margin-top: 34px;
  }

  .about-company .about-company-inner {
    grid-template-columns: minmax(0, 44fr) minmax(0, 56fr);
    gap: clamp(56px, 5.555556vw, 80px);
  }

  .about-company .about-company-copy {
    gap: clamp(112px, 12.083333vw, 174px);
  }

  .about-company .about-heading h2 {
    font-size: clamp(60px, 5.555556vw, 80px);
  }

  .about-company .about-company-table > div {
    grid-template-columns: 120px minmax(0, 1fr);
  }
}

/* Intermediate desktops keep a safe margin beside the full-size copy. */
@media (min-width: 1101px) and (max-width: 1279px) {
  .home-about .home-about-art .person-art {
    left: 4%;
    width: 18%;
  }
}

/* Tablets and unfolded narrow screens retain the surrounding-art composition,
   with dedicated grid cells instead of coordinates that cross the text. */
@media (min-width: 701px) and (max-width: 1100px) {
  .home-about-features {
    padding: 112px 40px 140px;
  }

  .home-about {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr) 120px;
    grid-template-rows: 140px auto auto 124px;
    column-gap: 20px;
    row-gap: 40px;
    max-width: 880px;
    align-items: center;
    justify-items: center;
  }

  .home-about > .english-heading {
    grid-column: 2;
    grid-row: 1;
    font-size: 64px;
  }

  .home-about .home-about-art {
    display: contents;
    position: static;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .home-about .home-about-art > img {
    position: static;
    inset: auto;
    margin: 0;
    object-fit: contain;
    display: block;
  }

  .home-about .home-about-art .person-art {
    grid-column: 1;
    grid-row: 1;
    width: 114px;
    height: 120px;
  }

  .home-about .home-about-art .pair-art {
    grid-column: 3;
    grid-row: 1;
    width: 106px;
    height: 120px;
  }

  .home-about .home-about-art .woman-art {
    grid-column: 3;
    grid-row: 4;
    width: 110px;
    height: 104px;
    align-self: end;
  }

  .home-about .home-about-art .shield {
    width: 45px;
    height: 45px;
  }

  .home-about .home-about-art .shield-one {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
    align-self: start;
  }

  .home-about .home-about-art .shield-two {
    grid-column: 2;
    grid-row: 4;
    justify-self: center;
    align-self: end;
  }

  .home-about .home-about-art .shield-three {
    grid-column: 2;
    grid-row: 4;
    justify-self: end;
    align-self: start;
    width: 34px;
    height: 34px;
  }

  .home-about .home-about-art .shield-four {
    grid-column: 1;
    grid-row: 4;
    justify-self: end;
    align-self: end;
    width: 34px;
    height: 34px;
  }

  .home-about .home-about-message {
    grid-column: 1 / -1;
    grid-row: 2;
    width: 100%;
    max-width: 560px;
    gap: 36px;
  }

  .home-about .home-about-message > h3 {
    font-size: 30px;
    gap: 8px;
  }

  .home-about .home-about-message > p br {
    display: none;
  }

  .home-about > .text-link {
    grid-column: 1 / -1;
    grid-row: 3;
    margin: 0;
    min-height: 48px;
  }

  .home-about .about-orbit {
    top: 180px;
    bottom: auto;
    opacity: .5;
  }

  .home-features {
    margin-top: 130px;
  }

  .home-empathy .empathy-copy {
    right: 40px;
    top: -40px;
    gap: 16px;
  }

  .home-empathy .empathy-copy > p {
    font-size: 28px;
    line-height: 1.15;
    letter-spacing: .06em;
    padding: 12px 10px 6px;
  }

  .about-company {
    padding: 120px 40px 100px;
  }

  .about-company .about-company-inner {
    grid-template-columns: minmax(0, 1fr);
    max-width: 800px;
    gap: 48px;
  }

  .about-company .about-company-copy {
    gap: 48px;
  }

  .about-company .about-heading h2 {
    font-size: 64px;
  }

  .about-company .about-company-table > div {
    grid-template-columns: 120px minmax(0, 1fr);
    font-size: 16px;
  }
}

/* Keep the original two-circle philosophy diagram within tablet widths. */
@media (min-width: 701px) and (max-width: 1000px) {
  .about-philosophy {
    height: auto;
    min-height: 820px;
    padding: 130px 40px 150px;
  }

  .about-philosophy .about-philosophy-inner {
    width: 100%;
    max-width: 872.52px;
    margin-inline: auto;
  }

  .about-philosophy .about-trust-circles {
    width: 100%;
    gap: 24px;
  }

  .about-philosophy .about-trust-circle {
    width: calc((100% - 24px) / 2);
    height: auto;
    min-width: 0;
    max-width: none;
    max-height: none;
    aspect-ratio: 1;
    gap: 14px;
    padding: 16px 12px 24px;
  }

  .about-philosophy .about-trust-circle h3 {
    max-width: 100%;
    font-size: clamp(24px, 3.2vw, 32px);
    line-height: 1.5;
    letter-spacing: .04em;
    white-space: nowrap;
    text-align: center;
  }

  .about-philosophy .about-trust-circle p {
    font-size: clamp(12px, 1.4vw, 14px);
    line-height: 1.5;
    white-space: nowrap;
    text-align: center;
  }

  .about-philosophy .about-trust-caption {
    width: min(72%, 477px);
  }

  .about-philosophy .about-trust-caption > img {
    width: 100%;
  }

  .about-philosophy .about-trust-team {
    position: absolute;
    left: auto;
    right: -8px;
    top: -92px;
    width: clamp(175px, 25vw, 240px);
    height: auto;
    aspect-ratio: 347 / 260;
    transform: none;
  }

  .about-philosophy .about-trust-people {
    position: absolute;
    inset: auto auto 26px -8px;
    width: clamp(100px, 15vw, 140px);
    height: auto;
    aspect-ratio: 178 / 240;
    margin: 0;
  }

  .about-philosophy .about-philosophy-word {
    top: auto;
    bottom: 0;
    font-size: clamp(110px, 16vw, 160px);
  }
}

/* Two readable actions fit below each tablet card without crowding the arrows. */
@media (min-width: 761px) and (max-width: 1000px) {
  .guidance-card-actions { flex-direction: column; }
  .guidance-card-actions > a,
  .guidance-card-actions > button {
    flex: none;
    width: 100%;
    min-height: 50px;
    height: auto;
    padding: 12px 16px;
    font-size: 15px;
    white-space: normal;
  }
}

@media (max-width: 359px) {
  .recruit-page .rec-fitting-panel h2 { font-size: clamp(22px, 8vw, 28px); }
}

.insurer-logo[data-insurer=aflac] > img { max-width: 100%; }

@media (min-width: 701px) and (max-width: 1100px) {
  .home-insurers { grid-template-columns: max-content minmax(0, 1fr); }
}

@media (min-width: 761px) and (max-width: 1000px) {
  .recruit-page .rec-message-copy > .rec-heading {
    font-size: clamp(48px, 6.5vw, 68px);
  }
}

@media (max-width: 380px) {
  .footer-nav-title { white-space: normal; }
}

/* A small news panel shares the first view, aligned to the viewport's right edge. */
.home-opening { position: relative; }
@media (min-width: 1001px) {
  .home-opening > .home-news-ticker {
    position: absolute;
    inset: auto 0 22px auto;
    width: 460px;
    max-width: 46%;
    min-height: 94px;
    margin: 0;
    padding: 19px 24px 19px 25px;
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) 70px;
    align-items: start;
    gap: 14px;
    border: 0;
    border-left: 3px solid #08a8d2;
    border-radius: 12px 0 0 12px;
    background: linear-gradient(105deg, #fff 55%, #f3fbfe);
    box-shadow: -5px 8px 28px #237e9810;
    animation: news-dock-enter 1.1s cubic-bezier(.22,.61,.36,1) .8s backwards;
  }
  .home-opening > .home-news-ticker.ticker-settled { animation: none; }
  .home-opening > .home-news-ticker:focus-within { translate: 0 0 !important; }
  .home-news-ticker .ticker-label {
    align-self: start;
    padding: 0;
    border: 0;
    font-size: 12px;
    line-height: 19px;
    white-space: nowrap;
  }
  .home-news-ticker .ticker-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    min-height: 48px;
  }
  .home-news-ticker .ticker-item time {
    font-size: 11px;
    line-height: 19px;
    letter-spacing: .05em;
    color: #758390;
  }
  .home-news-ticker .ticker-item > span {
    max-width: 100%;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: .015em;
  }
  .home-news-ticker .ticker-controls {
    display: grid;
    grid-template-columns: 34px 28px;
    gap: 6px 8px;
    justify-content: end;
    align-items: center;
  }
  .home-news-ticker .ticker-controls > span {
    grid-column: 1 / -1;
    justify-self: center;
    margin: 0;
    font-size: 10px;
    line-height: 14px;
    font-variant-numeric: tabular-nums;
  }
  .home-news-ticker .ticker-controls button {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .home-news-ticker .ticker-controls [data-ticker-pause] {
    width: 28px;
    border: 0;
    background: transparent;
    font-size: 13px;
  }
  .home-news-ticker .ticker-controls [data-ticker-pause]:hover {
    background: #e0f3fa;
    box-shadow: none;
  }
  .home-news-ticker .ticker-item:hover > span { color: #078bad; }
}
@keyframes news-dock-enter {
  from { translate: calc(100% + 1px) 0; }
  to { translate: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .home-opening > .home-news-ticker { animation: none; }
}
