/**
 * Homepage About module — clean 50/50 B2B split.
 * Visual: one large media (15+ overlay + Explore) + two captioned tiles.
 * Load after make-build on make-home. Do NOT put these in make-home.css (unloaded).
 *
 * Markup: view/index/public/home-about.html
 * Tokens: nw-section-head eyebrow/title, nw-gradient-brand, make .button
 */

body.make-home .nw-about , body.company-page .nw-about {
  /* Section fill → .nw-surface-paper (or soft) on the section element */
}

body.make-home .nw-about__grid , body.company-page .nw-about__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(36px, 4.5vw, 64px);
  align-items: stretch;
}

/* —— Visual collage: large + foot two tiles —— */
body.make-home .nw-about__visual , body.company-page .nw-about__visual {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.make-home .nw-about__media , body.company-page .nw-about__media {
  position: relative;
  flex: 1 1 auto;
  min-height: 280px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #f3f5f9);
  box-shadow: 0 18px 40px #10203a12;
}

body.make-home .nw-about__media > img , body.company-page .nw-about__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

body.make-home .nw-about__media-shade , body.company-page .nw-about__media-shade {
  position: absolute;
  inset: 42% 0 0;
  background: linear-gradient(0deg, #0f1b35c4 0%, #0f1b3500 72%);
  pointer-events: none;
  z-index: 1;
}

/* Explore stays bottom-left on the large frame; 15+ owns bottom-right */
body.make-home .nw-about__media-caption , body.company-page .nw-about__media-caption {
  position: absolute;
  left: 22px;
  right: 160px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
}

body.make-home .nw-about__process , body.company-page .nw-about__process {
  font-size: var(--nw-fs-caption, var(--text-caption));
  letter-spacing: 0.9px;
  line-height: 1.6;
  font-weight: 550;
  color: #e4ebf6;
}

body.make-home .nw-about__play , body.company-page .nw-about__play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: var(--nw-fs-body, var(--text-body));
  font-weight: 500;
  cursor: pointer;
  transform: none;
  transition: color 0.2s ease;
}

body.make-home .nw-about__play-orb , body.company-page .nw-about__play-orb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #ffffff80;
  background: #ffffff14;
  transition:
    background 0.25s var(--nw-surface-ease, ease),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transform: none;
}

body.make-home .nw-about__play-orb .icon , body.company-page .nw-about__play-orb .icon {
  font-size: 15px;
  line-height: 1;
  margin-left: 1px;
}

body.make-home .nw-about__play:hover .nw-about__play-orb, body.company-page .nw-about__play:hover .nw-about__play-orb,
body.make-home .nw-about__play:focus-visible .nw-about__play-orb , body.company-page .nw-about__play:focus-visible .nw-about__play-orb {
  background: var(--nw-gradient-brand, var(--gradient-action));
  border-color: transparent;
  box-shadow: var(--nw-shadow-brand-hover, 0 6px 14px #615ced33);
  transform: none;
}

body.make-home .nw-about__play:focus-visible , body.company-page .nw-about__play:focus-visible {
  outline: none;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(var(--main-color-rgb), 0.28);
}

/* 15+ gradient badge — floating corner overlay on large media only */
body.make-home .nw-about__years , body.company-page .nw-about__years {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-width: 120px;
  max-width: 142px;
  padding: 14px 16px 16px;
  border-radius: 8px;
  color: #fff;
  background: var(--nw-gradient-brand, linear-gradient(130deg, var(--main-color), #4c55ee 65%, #615ced));
  background-size: 150% 100%;
  background-position: 0% 50%;
  box-shadow: var(--nw-shadow-brand, 0 10px 22px rgba(var(--main-color-rgb), 0.2), inset 0 1px 0 #ffffff24);
  transform: none;
}

body.make-home .nw-about__years strong , body.company-page .nw-about__years strong {
  font-family: var(--font-heading, inherit);
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -1.6px;
}

body.make-home .nw-about__years strong > span , body.company-page .nw-about__years strong > span {
  font-size: var(--nw-fs-title);
  margin-left: 1px;
  vertical-align: top;
}

body.make-home .nw-about__years > span , body.company-page .nw-about__years > span {
  font-size: var(--nw-fs-caption, var(--text-caption));
  line-height: 1.45;
  color: #ebefff;
}

/* Foot: two equal captioned tiles */
body.make-home .nw-about__foot , body.company-page .nw-about__foot {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.make-home .nw-about__tile , body.company-page .nw-about__tile {
  position: relative;
  min-width: 0;
  min-height: 168px;
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #f3f5f9);
  box-shadow: 0 12px 28px #10203a0e;
}

body.make-home .nw-about__tile > img , body.company-page .nw-about__tile > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
}

body.make-home .nw-about__tile:first-child > img , body.company-page .nw-about__tile:first-child > img {
  object-position: 30% 28%;
}

body.make-home .nw-about__tile:last-child > img , body.company-page .nw-about__tile:last-child > img {
  object-position: 55% 40%;
}

body.make-home .nw-about__tile-shade , body.company-page .nw-about__tile-shade {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(0deg, #0f1b35b8 0%, #0f1b3500 78%);
  pointer-events: none;
  z-index: 1;
}

body.make-home .nw-about__tile-caption , body.company-page .nw-about__tile-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  margin: 0;
  font-size: var(--nw-fs-caption, var(--text-caption));
  line-height: 1.55;
  letter-spacing: 0.55px;
  font-weight: 550;
  color: #f2f5fb;
}

/* —— Copy (unchanged layout from a145dd0) —— */
body.make-home .nw-about__copy , body.company-page .nw-about__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding-top: 4px;
}

body.make-home .nw-about__copy > .eyebrow , body.company-page .nw-about__copy > .eyebrow {
  margin: 0;
}

body.make-home .nw-about__copy > h2 , body.company-page .nw-about__copy > h2 {
  font-size: clamp(30px, 2.65vw, 40px);
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -0.9px;
  margin-top: 14px;
  overflow-wrap: break-word;
}

body.make-home .nw-about__lead , body.company-page .nw-about__lead {
  margin-top: 16px;
  max-width: 62ch;
  font-size: var(--nw-fs-body, var(--text-body));
  line-height: 1.8;
  color: var(--muted, #5b6577);
}

body.make-home .nw-about__caps , body.company-page .nw-about__caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

body.make-home .nw-about__cap , body.company-page .nw-about__cap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 16px 16px 14px;
  border: 1px solid var(--nw-border);
  border-radius: 10px;
  background: #fbfcff;
  box-shadow: none;
  transition:
    border-color 0.25s var(--nw-surface-ease, ease),
    background 0.25s var(--nw-surface-ease, ease);
  transform: none;
}

body.make-home .nw-about__cap:hover , body.company-page .nw-about__cap:hover {
  border-color: var(--nw-border);
  background: #f5f8ff;
  box-shadow: none;
  transform: none;
}

body.make-home .nw-about__cap-icon , body.company-page .nw-about__cap-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, #eef2ff 0%, #f3efff 100%);
  color: var(--main-color);
}

body.make-home .nw-about__cap-icon .icon , body.company-page .nw-about__cap-icon .icon {
  font-size: 24px;
  line-height: 1;
}

body.make-home .nw-about__cap-body , body.company-page .nw-about__cap-body {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

body.make-home .nw-about__cap-body h3 , body.company-page .nw-about__cap-body h3 {
  margin: 0;
  font-size: var(--nw-fs-body, var(--text-body));
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--ink, #121826);
}

body.make-home .nw-about__cap-body p , body.company-page .nw-about__cap-body p {
  margin: 0;
  font-size: var(--nw-fs-caption, var(--text-caption));
  line-height: 1.55;
  color: var(--muted, #5b6577);
}

body.make-home .nw-about__actions , body.company-page .nw-about__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px 28px;
  margin-top: auto;
  padding-top: 28px;
}

body.make-home .nw-about__actions .button , body.company-page .nw-about__actions .button {
  font-size: var(--nw-fs-body, var(--text-body));
  min-height: 48px;
}

body.make-home .nw-about__tel , body.company-page .nw-about__tel {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  transform: none;
  transition: opacity 0.2s ease;
}

body.make-home .nw-about__tel:hover, body.company-page .nw-about__tel:hover,
body.make-home .nw-about__tel:focus-visible , body.company-page .nw-about__tel:focus-visible {
  opacity: 0.88;
  transform: none;
}

body.make-home .nw-about__tel-icon , body.company-page .nw-about__tel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--nw-border);
  background: linear-gradient(135deg, #ffffff, #f8f7ff);
  color: var(--main-color);
  box-shadow: var(--shadow-soft, 0 4px 12px #0f1b3510);
  transition:
    background 0.25s var(--nw-surface-ease, ease),
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
  transform: none;
}

body.make-home .nw-about__tel-icon .icon , body.company-page .nw-about__tel-icon .icon {
  font-size: 20px;
  line-height: 1;
}

body.make-home .nw-about__tel:hover .nw-about__tel-icon, body.company-page .nw-about__tel:hover .nw-about__tel-icon,
body.make-home .nw-about__tel:focus-visible .nw-about__tel-icon , body.company-page .nw-about__tel:focus-visible .nw-about__tel-icon {
  background: var(--nw-gradient-brand, var(--gradient-action));
  background-size: 150% 100%;
  background-position: 100% 50%;
  border-color: transparent;
  color: #fff;
  box-shadow: var(--nw-shadow-brand-hover, 0 6px 14px #615ced33);
  transform: none;
}

body.make-home .nw-about__tel-copy , body.company-page .nw-about__tel-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

body.make-home .nw-about__tel-copy > span , body.company-page .nw-about__tel-copy > span {
  font-size: var(--nw-fs-caption, var(--text-caption));
  color: var(--muted, #5b6577);
}

body.make-home .nw-about__tel-copy > strong , body.company-page .nw-about__tel-copy > strong {
  font-size: var(--nw-fs-body, var(--text-body));
  font-weight: 600;
  color: var(--ink, #121826);
  letter-spacing: -0.2px;
}

/* —— Breakpoints —— */
@media (max-width: 1279px) { /* official tablet top; was 1200 */
  body.make-home .nw-about__grid , body.company-page .nw-about__grid {
    gap: 40px;
  }

  body.make-home .nw-about__media , body.company-page .nw-about__media {
    min-height: 250px;
  }

  body.make-home .nw-about__tile , body.company-page .nw-about__tile {
    min-height: 150px;
  }

  body.make-home .nw-about__copy > h2 , body.company-page .nw-about__copy > h2 {
    font-size: 34px;
  }
}

@media (max-width: 980px) {
  body.make-home .nw-about__grid , body.company-page .nw-about__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  body.make-home .nw-about__media , body.company-page .nw-about__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
    flex: none;
  }

  body.make-home .nw-about__media-caption , body.company-page .nw-about__media-caption {
    right: 150px;
  }

  body.make-home .nw-about__tile , body.company-page .nw-about__tile {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  body.make-home .nw-about__actions , body.company-page .nw-about__actions {
    margin-top: 8px;
  }
}

@media (max-width: 800px) {
  body.make-home .nw-about__caps , body.company-page .nw-about__caps {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    margin-top: 22px;
  }

  body.make-home .nw-about__visual , body.company-page .nw-about__visual {
    gap: 12px;
  }

  body.make-home .nw-about__foot , body.company-page .nw-about__foot {
    gap: 12px;
  }

  body.make-home .nw-about__media , body.company-page .nw-about__media {
    aspect-ratio: 4 / 3;
    border-radius: 7px;
  }

  body.make-home .nw-about__media-caption , body.company-page .nw-about__media-caption {
    left: 16px;
    right: 124px;
    bottom: 14px;
    gap: 10px;
  }

  body.make-home .nw-about__years , body.company-page .nw-about__years {
    right: 10px;
    bottom: 10px;
    min-width: 104px;
    max-width: 120px;
    padding: 12px 12px 13px;
  }

  body.make-home .nw-about__years strong , body.company-page .nw-about__years strong {
    font-size: 32px;
  }

  body.make-home .nw-about__years strong > span , body.company-page .nw-about__years strong > span {
    font-size: var(--nw-fs-body);
  }

  body.make-home .nw-about__tile , body.company-page .nw-about__tile {
    border-radius: 7px;
  }

  body.make-home .nw-about__tile-caption , body.company-page .nw-about__tile-caption {
    left: 12px;
    right: 12px;
    bottom: 11px;
    font-size: var(--nw-fs-meta);
    letter-spacing: 0.4px;
  }

  body.make-home .nw-about__copy > h2 , body.company-page .nw-about__copy > h2 {
    font-size: 28px;
    letter-spacing: -0.7px;
  }

  body.make-home .nw-about__actions , body.company-page .nw-about__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding-top: 22px;
  }

  body.make-home .nw-about__actions .button , body.company-page .nw-about__actions .button {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 520px) {
  /* Keep two tiles side-by-side so “一大两小” stays readable on phone */
  body.make-home .nw-about__tile , body.company-page .nw-about__tile {
    min-height: 120px;
    aspect-ratio: 1 / 1;
  }

  body.make-home .nw-about__process , body.company-page .nw-about__process {
    font-size:var(--nw-fs-meta);
  }

  body.make-home .nw-about__play , body.company-page .nw-about__play {
    font-size: var(--nw-fs-meta);
    gap: 8px;
  }

  body.make-home .nw-about__play-orb , body.company-page .nw-about__play-orb {
    width: 30px;
    height: 30px;
  }
}

