/* ============================================================
   ICLO about pages: company, CEO, FAQ, policies, 404
   Builds on detail.css. Canonical source: docs/design/DESIGN_SYSTEM.md
   Legacy markup (history, locations) keeps its class names for
   company.js; every rule here is scoped to .about-page so it wins
   over the old site.css / global.css editorial layer.
   ============================================================ */

/* Page intro: the service-detail hero surface without a media column. */
.about-hero {
  margin-top: var(--gnb-height);
  padding: clamp(96px, calc(29.333px + 5.5556vw), 136px) 0 clamp(80px, calc(24px + 4.6296vw), 112px);
  background: var(--ds-surface-soft);
}
.about-hero h1 {
  max-width: 820px;
  margin: 0;
  font-size: var(--detail-h1);
  line-height: var(--detail-line-h1);
  letter-spacing: var(--type-tracking-display);
  font-weight: var(--type-weight-bold);
  text-wrap: balance;
}
.about-hero .detail-hero-lede { max-width: 640px; }
.about-hero .detail-actions { margin-top: 36px; }

.about-section { padding: var(--detail-section-space-compact) 0; background: var(--ds-white); }
.about-section--soft { background: var(--ds-surface-soft); }
.about-section .detail-section-heading { margin-bottom: 56px; }

/* Mission / vision */
.about-mv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-mv-card {
  min-width: 0;
  padding: 40px;
  border: 1px solid #e6e9ed;
  border-radius: var(--ds-radius-card);
  background: var(--ds-white);
}
.about-mv-card .detail-kicker { margin-bottom: 16px; }
.about-mv-card h2 {
  margin: 0;
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
}
.about-mv-card p:not(.detail-kicker) {
  margin: 16px 0 0;
  color: var(--ds-muted);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
  font-weight: var(--type-weight-medium);
}

/* History (company.html markup) */
.about-page .history-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ds-ink);
  border-bottom: 1px solid var(--ds-line);
}
.about-page .history-period {
  min-width: 0;
  padding: 36px 40px 36px 0;
  border-right: 1px solid var(--ds-line);
  border-bottom: 0;
}
.about-page .history-period + .history-period { padding-left: 40px; }
.about-page .history-period:last-child { padding-right: 0; border-right: 0; }
.about-page .history-period h3 {
  margin: 0 0 20px;
  color: var(--ds-blue);
  font: var(--type-weight-bold) var(--detail-label)/var(--detail-line-label) var(--font-sans);
  letter-spacing: .02em;
}
.about-page .history-period ol { margin: 0; padding: 0; list-style: none; }
.about-page .history-period li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--ds-line);
}
.about-page .history-period time {
  color: var(--ds-ink);
  font: var(--type-weight-bold) var(--detail-body-1)/var(--detail-line-body-1) var(--font-sans);
  letter-spacing: -.01em;
}
.about-page .history-period strong {
  display: block;
  color: var(--ds-ink);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
  font-weight: var(--type-weight-semibold);
}
.about-page .history-period li span {
  display: block;
  margin-top: 6px;
  color: var(--ds-muted);
  font-size: var(--detail-body-sm);
  line-height: var(--detail-line-body-sm);
}
.about-page .history-archive { border-bottom: 1px solid var(--ds-line); }
.about-page .history-archive summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 20px 0;
  color: var(--ds-ink);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
  font-weight: var(--type-weight-bold);
  list-style: none;
  cursor: pointer;
}
.about-page .history-archive summary::-webkit-details-marker { display: none; }
.about-page .history-archive-action {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ds-muted);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-semibold);
}
.about-page .history-archive-action i {
  color: var(--ds-blue);
  font-size: 22px;
  font-style: normal;
  font-weight: var(--type-weight-regular);
  line-height: 1;
  transition: transform .2s ease;
}
.about-page .history-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 64px);
  padding: 8px 0 40px;
}
.about-page .history-archive-grid h3 {
  margin: 0 0 12px;
  color: var(--ds-ink);
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  font-weight: var(--type-weight-bold);
}
.about-page .history-archive-grid li {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--ds-line);
}
.about-page .history-archive-grid time {
  color: var(--ds-blue);
  font: var(--type-weight-semibold) var(--detail-caption)/var(--detail-line-body-sm) var(--font-sans);
}
.about-page .history-archive-grid li span {
  color: var(--ds-body);
  font-size: var(--detail-body-sm);
  line-height: var(--detail-line-body-sm);
}

/* Locations (company.html markup, driven by company.js) */
.about-page .locations-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  border: 0;
}
.about-page .location-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 220px;
  padding: 28px;
  border: 1px solid #e6e9ed;
  border-radius: 20px;
  color: var(--ds-body);
  background: var(--ds-white);
  box-shadow: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.about-page .location-card:hover { border-color: var(--ds-blue); background: var(--ds-white); }
.about-page .location-card.is-active { border-color: var(--ds-blue); background: rgba(49, 132, 246, .05); box-shadow: none; }
.about-page .location-title {
  color: var(--ds-ink);
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
}
.about-page .location-address {
  margin-top: 12px;
  color: var(--ds-muted);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
}
.about-page .location-action {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 24px;
  color: var(--ds-body);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-semibold);
}
.about-page .location-card.is-active .location-action { color: var(--ds-blue); }
.about-page .location-map {
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid #e6e9ed;
  border-radius: var(--ds-radius-card);
  background: var(--ds-white);
}
.about-page .location-map-copy {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  padding: 28px 32px;
}
.about-page .location-map-copy span {
  color: var(--ds-blue);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
}
.about-page .location-map-copy h3 {
  margin: 4px 0 0;
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
}
.about-page .location-map-copy p {
  margin: 4px 0 0;
  color: var(--ds-muted);
  font-size: var(--detail-body-sm);
  line-height: var(--detail-line-body-sm);
}
.about-page .location-map-copy > a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: var(--ds-ink);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
}
.about-page .location-map-copy > a:hover { color: var(--ds-blue); }
.about-page .location-map-copy > a span { margin-left: 4px; color: inherit; font-size: inherit; }
.about-page .location-map iframe { display: block; width: 100%; height: 440px; border: 0; background: var(--ds-surface); }
.about-page .locations-contact { display: flex; justify-content: flex-start; padding-top: 24px; }
.about-page .locations-contact div { display: flex; flex-wrap: wrap; gap: 12px; }
.about-page .locations-contact a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ds-line);
  border-radius: 999px;
  color: var(--ds-ink);
  font: var(--type-weight-semibold) var(--detail-label)/var(--detail-line-label) var(--font-sans);
  transition: border-color .2s ease, color .2s ease;
}
.about-page .locations-contact a:hover { border-color: var(--ds-blue); color: var(--ds-blue); }

/* Leadership */
.about-leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.about-leader {
  min-width: 0;
  padding: 32px;
  border: 1px solid #e6e9ed;
  border-radius: var(--ds-radius-card);
  background: var(--ds-white);
}
.about-leader__head { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 28px; align-items: start; }
.about-leader__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 16px;
  background: var(--ds-surface);
}
.about-leader__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.about-leader__role {
  display: block;
  color: var(--ds-blue);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
}
.about-leader h3 {
  margin: 6px 0 0;
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
}
.about-leader__statement {
  display: block;
  margin-top: 16px;
  color: var(--ds-ink);
  font-size: var(--detail-body-1);
  line-height: var(--detail-line-body-1);
  font-weight: var(--type-weight-semibold);
}
.about-leader__head p {
  margin: 12px 0 0;
  color: var(--ds-muted);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
}
.about-leader__history { margin-top: 28px; }
.about-leader__history strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ds-ink);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-bold);
}
.about-leader__history ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ds-line); }
.about-leader__history li {
  position: relative;
  padding: 12px 0 12px 18px;
  border-bottom: 1px solid var(--ds-line);
  color: var(--ds-body);
  font-size: var(--detail-body-2);
  line-height: var(--detail-line-body-2);
}
.about-leader__history li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: calc(12px + (var(--detail-line-body-2) / 2) - 2px);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--ds-blue);
}

/* FAQ: index rail + detail-faq accordions */
.about-faq.detail-faq { padding: var(--detail-section-space-compact) 0; }
.about-faq-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(48px, 6vw, 96px);
  align-items: start;
}
.about-faq-index {
  position: sticky;
  top: calc(var(--gnb-height) + 32px);
  display: grid;
  gap: 4px;
}
.about-faq-index a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--ds-muted);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  font-weight: var(--type-weight-semibold);
  transition: color .2s ease, background-color .2s ease;
}
.about-faq-index a:hover,
.about-faq-index a:focus-visible { color: var(--ds-ink); background: var(--ds-surface); }
.about-faq-group { min-width: 0; scroll-margin-top: calc(var(--gnb-height) + 24px); }
.about-faq-group + .about-faq-group { margin-top: 64px; }
.about-faq-group > h2 {
  margin: 0 0 16px;
  color: var(--ds-blue);
  font-size: var(--detail-label);
  line-height: var(--detail-line-label);
  letter-spacing: .02em;
  font-weight: var(--type-weight-bold);
}
.about-faq-group .detail-faq-grid { margin-top: 0; }

/* Closing call to action */
.about-cta { padding: clamp(72px, calc(24px + 4vw), 104px) 0; background: var(--ds-ink); }
.about-cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.about-cta h2 {
  margin: 0;
  color: var(--ds-white);
  font-size: var(--detail-h2);
  line-height: var(--detail-line-h2);
  letter-spacing: var(--type-tracking-heading);
  font-weight: var(--type-weight-bold);
  text-wrap: balance;
}
.about-cta p {
  margin: 16px 0 0;
  color: #c8d0da;
  font-size: var(--detail-body-1);
  line-height: var(--detail-line-body-1);
}
.about-cta .detail-button { flex: 0 0 auto; }

/* Policies */
.about-prose { max-width: 760px; }
.about-prose h2 {
  margin: 56px 0 16px;
  color: var(--ds-ink);
  font-size: var(--detail-title);
  line-height: var(--detail-line-title);
  letter-spacing: var(--type-tracking-title);
  font-weight: var(--type-weight-bold);
}
.about-prose h2:first-child { margin-top: 0; }
.about-prose p,
.about-prose li { color: var(--ds-body); font-size: var(--detail-body-2); line-height: var(--detail-line-body-2); }
.about-prose p { margin: 0 0 12px; }
.about-prose ul,
.about-prose ol { margin: 0 0 16px; padding-left: 22px; }
.about-prose li + li { margin-top: 6px; }
.about-prose strong { color: var(--ds-ink); font-weight: var(--type-weight-semibold); }
.about-prose .tablescroll { margin: 16px 0 24px; overflow-x: auto; border: 1px solid var(--ds-line); border-radius: 12px; }
.about-prose table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: var(--detail-body-sm); line-height: var(--detail-line-body-sm); }
.about-prose th,
.about-prose td { padding: 14px 16px; border-bottom: 1px solid var(--ds-line); color: var(--ds-body); text-align: left; vertical-align: top; }
.about-prose tr:last-child td { border-bottom: 0; }
.about-prose th { color: var(--ds-ink); background: var(--ds-surface-soft); font-weight: var(--type-weight-bold); }

/* 404 */
.about-404 {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 80px 0;
  background: var(--ds-surface-soft);
  text-align: center;
}
.about-404__logo { display: inline-block; margin-bottom: 40px; color: var(--ds-ink); font-size: 30px; line-height: 1; letter-spacing: -.02em; font-weight: 900; }
.about-404__logo i { color: var(--ds-logo-accent); font-style: normal; }
.about-404 h1 { margin: 0; font-size: var(--detail-h2); line-height: var(--detail-line-h2); letter-spacing: var(--type-tracking-heading); font-weight: var(--type-weight-bold); }
.about-404 p:not(.detail-kicker) { margin: 16px auto 0; color: var(--ds-muted); font-size: var(--detail-body-1); line-height: var(--detail-line-body-1); }
.about-404 .detail-actions { justify-content: center; }

@media (max-width: 1040px) {
  .about-leader__head { grid-template-columns: 120px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 900px) {
  .about-mv-grid,
  .about-leaders { grid-template-columns: 1fr; }
  .about-page .history-overview { grid-template-columns: 1fr; }
  .about-page .history-period,
  .about-page .history-period + .history-period { padding: 32px 0; border-right: 0; border-bottom: 1px solid var(--ds-line); }
  .about-page .history-period:last-child { border-bottom: 0; }
  .about-page .history-archive-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-page .locations-grid { grid-template-columns: 1fr; gap: 12px; }
  .about-page .location-card { min-height: 0; }
  .about-page .location-map-copy { flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px; }
  .about-page .location-map iframe { height: 380px; }
  .about-faq-layout { grid-template-columns: 1fr; gap: 32px; }
  .about-faq-index { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .about-faq-index a { border: 1px solid var(--ds-line); border-radius: 999px; }
  .about-cta__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .about-hero { padding: 72px 0 64px; }
  .about-section .detail-section-heading { margin-bottom: 40px; }
  .about-mv-card,
  .about-leader { padding: 26px 22px; }
  .about-leader__head { grid-template-columns: 1fr; gap: 20px; }
  .about-leader__photo { width: min(100%, 240px); }
  .about-page .history-period li { grid-template-columns: 56px minmax(0, 1fr); gap: 12px; }
  .about-page .location-card { padding: 24px 22px; }
  .about-page .location-map iframe { height: 320px; }
  .about-faq-group + .about-faq-group { margin-top: 48px; }
  .about-cta .detail-button { width: 100%; }
  .about-cta__inner { align-items: stretch; }
  .about-prose h2 { margin-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .about-page .location-card,
  .about-page .history-archive-action i,
  .about-faq-index a { transition: none; }
}
