:root {
  --flag-ink: #141a18;
  --flag-paper: #fffaf0;
  --flag-jade: #1f5c50;
  --flag-deep: #0e2c2b;
  --flag-gold: #c8913d;
  --flag-blue: #2774a6;
  --flag-coral: #c86f3a;
}

html.skip-boot .boot {
  display: none !important;
}

.capsule-nav {
  max-width: min(100%, 730px);
}

.capsule-nav a {
  min-width: 70px;
}

.operations .ops-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.operations .op-card {
  min-height: 430px;
}

.flagship-section {
  overflow: hidden;
  padding-bottom: clamp(96px, 12vw, 170px);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0), rgba(255, 250, 240, 0.92) 18%, rgba(237, 231, 218, 0.82) 74%, rgba(245, 242, 235, 0) 100%),
    repeating-linear-gradient(90deg, rgba(31, 92, 80, 0.05) 0 1px, transparent 1px 84px);
}

.flagship-section:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 145, 61, 0.22), transparent 22rem),
    radial-gradient(circle at 92% 76%, rgba(39, 116, 166, 0.18), transparent 26rem);
}

.flagship-section + .timeline-section {
  margin-top: clamp(-96px, -7vw, -54px);
  padding-top: clamp(132px, 14vw, 210px);
}

.flagship-heading {
  position: relative;
  z-index: 1;
}

.flagship-heading h2 {
  color: var(--flag-ink);
}

.flagship-duo {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 34px);
}

.flagship-feature {
  min-height: 680px;
  display: grid;
  grid-template-rows: auto auto auto;
  border: 1px solid rgba(20, 26, 24, 0.18);
  border-radius: 10px;
  overflow: hidden;
  background: var(--flag-paper);
  color: var(--flag-ink);
  box-shadow: 0 30px 80px rgba(20, 26, 24, 0.16);
  transform: translateY(22px);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.2, 0.78, 0.22, 1), opacity 0.55s ease, box-shadow 0.28s ease;
}

.flagship-mounted .flagship-feature {
  transform: translateY(0);
  opacity: 1;
}

.flagship-mounted .flagship-feature:nth-child(2) {
  transition-delay: 0.08s;
}

.flagship-feature:hover {
  transform: translateY(-6px);
  box-shadow: 0 38px 95px rgba(20, 26, 24, 0.22);
}

.flagship-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 0;
  overflow: hidden;
  background: #102a28;
}

.flagship-visual:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 44, 43, 0) 46%, rgba(14, 44, 43, 0.68));
}

.flagship-visual img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 0.7s ease;
}

.flagship-feature:hover .flagship-visual img {
  transform: scale(1.055);
}

.flagship-copy {
  display: grid;
  gap: 10px;
  padding: clamp(22px, 3vw, 34px);
}

.flagship-tag {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(31, 92, 80, 0.24);
  border-radius: 999px;
  color: var(--flag-jade);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.flagship-copy strong {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.flagship-copy em {
  color: var(--flag-gold);
  font-style: normal;
  font-weight: 900;
}

.flagship-copy span:last-child {
  color: #4c5652;
  font-size: 16px;
  line-height: 1.75;
}

.flagship-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(20, 26, 24, 0.12);
  background: rgba(255, 253, 248, 0.72);
}

.flagship-stats span {
  min-height: 104px;
  display: grid;
  align-content: center;
  gap: 2px;
  padding: 18px;
  border-right: 1px solid rgba(20, 26, 24, 0.1);
}

.flagship-stats span:last-child {
  border-right: 0;
}

.flagship-stats b {
  color: var(--flag-jade);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 48px);
  font-weight: 500;
  line-height: 1;
}

.flagship-stats small {
  color: #65706c;
  font-size: 12px;
  font-weight: 800;
}

.flagship-trail .flagship-tag,
.flagship-trail .flagship-copy em {
  color: var(--flag-coral);
}

.flagship-trail .flagship-stats b {
  color: var(--flag-coral);
}

.flagship-op-card {
  text-decoration: none;
}

.flagship-op-card .op-stat-panel {
  background: transparent;
}

.flagship-page {
  margin: 0;
  color: var(--flag-ink);
  background: #f4efe5;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.68;
}

.flagship-page a {
  color: inherit;
  text-decoration: none;
}

.flagship-page img {
  display: block;
  max-width: 100%;
}

.detail-shell {
  min-height: 100svh;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.2), #f4efe5 78%),
    repeating-linear-gradient(90deg, rgba(20, 26, 24, 0.04) 0 1px, transparent 1px 92px);
}

.detail-nav {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  left: max(18px, env(safe-area-inset-left));
  right: auto;
  z-index: 20;
  display: inline-flex;
  width: auto;
  max-width: none;
  padding: 4px;
  border: 1px solid rgba(255, 253, 248, 0.68);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.72);
  transform: none !important;
  box-shadow: 0 18px 42px rgba(17, 23, 20, 0.16);
  backdrop-filter: blur(20px) saturate(1.14);
  -webkit-backdrop-filter: blur(20px) saturate(1.14);
}

.detail-nav a {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #141a18;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.detail-hero {
  position: relative;
  min-height: 92svh;
  display: grid;
  align-items: end;
  padding: clamp(110px, 14vh, 160px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 92px);
  overflow: hidden;
  background: #102a28;
  color: #fffaf0;
}

.nanbo-page .detail-hero > img {
  object-position: center center;
}

.trail-page .detail-hero > img,
.trail-page .detail-hero-media img {
  object-position: center center;
}

.detail-hero > img,
.detail-hero-media,
.detail-hero-media img,
.detail-hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 13, 11, 0.24), rgba(8, 13, 11, 0.28) 38%, rgba(8, 13, 11, 0.82)),
    radial-gradient(circle at 72% 34%, rgba(247, 213, 120, 0.18), transparent 34rem);
}

.detail-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  gap: 18px;
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.36);
}

.detail-hero-copy p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(17px, 1.6vw, 24px);
}

.detail-eyebrow {
  color: #f7d578;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.detail-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(46px, 6vw, 90px);
  line-height: 0.95;
  letter-spacing: 0;
  text-wrap: balance;
}

.detail-hero h1 span {
  display: block;
}

.detail-content {
  padding: clamp(64px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.detail-grid {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
}

.detail-aside {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 16px;
}

.detail-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.detail-stat {
  min-height: 128px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 20px;
  border: 1px solid rgba(20, 26, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.82);
}

.detail-stat b {
  color: var(--flag-jade);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.8vw, 62px);
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  word-break: keep-all;
}

.detail-stat span {
  color: #65706c;
  font-size: 13px;
  font-weight: 900;
}

.detail-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(20, 26, 24, 0.13);
  border-radius: 10px;
  background: rgba(255, 250, 240, 0.82);
  box-shadow: 0 22px 70px rgba(20, 26, 24, 0.09);
}

.detail-panel h2,
.detail-panel h3 {
  margin: 0 0 14px;
  line-height: 1.08;
}

.detail-panel h2 {
  font-size: clamp(30px, 4vw, 58px);
}

.detail-panel h3 {
  font-size: clamp(22px, 2.4vw, 34px);
}

.detail-panel p {
  margin: 0 0 14px;
  color: #4c5652;
}

.detail-panel ul {
  margin: 0;
  padding-left: 1.1em;
  color: #4c5652;
}

.detail-main {
  display: grid;
  gap: 18px;
}

.work-list {
  display: grid;
  gap: 12px;
}

.work-link {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(20, 26, 24, 0.12);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.78);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.work-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 92, 80, 0.36);
}

.work-link b {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--flag-jade);
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 500;
}

.work-link span {
  color: var(--flag-ink);
  font-weight: 900;
  line-height: 1.3;
}

.work-link small {
  color: #65706c;
  font-weight: 800;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th,
.data-table td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(20, 26, 24, 0.1);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--flag-jade);
  font-size: 12px;
  font-weight: 900;
}

.data-table td:nth-child(n + 3),
.data-table th:nth-child(n + 3) {
  text-align: right;
}

.detail-note {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(20, 26, 24, 0.12);
  color: #65706c !important;
  font-size: 14px;
  font-weight: 800;
}

.trail-page .detail-stat b,
.trail-page .work-link b {
  background: var(--flag-coral);
  color: #fffaf0;
}

.trail-page .detail-stat b {
  color: var(--flag-coral);
  background: transparent;
}

.trail-page .detail-eyebrow {
  color: #f0a15b;
}

.media-strip {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 12px;
}

.media-strip img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 8px;
}

.interview-shot {
  overflow: hidden;
  border: 1px solid rgba(20, 26, 24, 0.12);
  border-radius: 8px;
  background: #111714;
}

.interview-shot img {
  width: 100%;
  max-height: min(760px, 82vh);
  object-fit: cover;
  object-position: top center;
}

@media (max-width: 980px) {
  .flagship-duo,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .flagship-feature {
    min-height: 0;
  }

  .detail-aside {
    position: static;
  }
}

@media (max-width: 720px) {
  .operations .ops-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations .op-card {
    min-height: auto;
  }

  .capsule-nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .flagship-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .flagship-visual,
  .flagship-visual img {
    min-height: 0;
  }

  .flagship-stats,
  .media-strip {
    grid-template-columns: 1fr;
  }

  .detail-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .detail-stat {
    min-height: 108px;
    padding: 15px 12px;
  }

  .detail-stat b {
    font-size: clamp(30px, 8.6vw, 38px);
    letter-spacing: 0;
  }

  .detail-stat span {
    font-size: 12px;
    line-height: 1.28;
  }

  .flagship-stats span {
    min-height: 86px;
    border-right: 0;
    border-bottom: 1px solid rgba(20, 26, 24, 0.1);
  }

  .detail-nav {
    top: max(12px, env(safe-area-inset-top));
    left: max(12px, env(safe-area-inset-left));
    right: auto;
    width: auto;
    max-width: none;
    padding: 4px;
  }

  .detail-nav a {
    width: 38px;
    height: 38px;
    font-size: 22px;
  }

  .detail-hero {
    min-height: 78svh;
    padding: 96px 18px 34px;
    align-items: end;
  }

  .nanbo-page .detail-hero > img {
    object-position: 58% center;
  }

  .trail-page .detail-hero {
    min-height: 88svh;
  }

  .trail-page .detail-hero-media img {
    object-fit: cover;
    object-position: center center;
    background: #111714;
  }

  .detail-hero:after {
    background:
      linear-gradient(180deg, rgba(8, 13, 11, 0.12), rgba(8, 13, 11, 0.34) 35%, rgba(8, 13, 11, 0.9)),
      radial-gradient(circle at 58% 38%, rgba(247, 213, 120, 0.12), transparent 24rem);
  }

  .detail-hero-copy {
    gap: 12px;
  }

  .detail-eyebrow {
    font-size: 11px;
  }

  .detail-hero h1 {
    max-width: 9em;
    font-size: clamp(36px, 11vw, 48px);
    line-height: 1.02;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .detail-hero-copy p {
    max-width: 100%;
    font-size: 17px;
    line-height: 1.72;
  }

  .detail-content {
    padding-left: 16px;
    padding-right: 16px;
  }

  .detail-panel {
    padding: 22px 18px;
  }

  .work-link {
    grid-template-columns: auto 1fr;
  }

  .work-link small {
    grid-column: 2;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
