/* About family pages — shared visual scale */

.page-about {
  --about-width: min(1280px, 94vw);
  --about-pad-x: clamp(20px, 3vw, 40px);
  /* Alias shared site title scale */
  --about-title-page: var(--title-page);
  --about-title-section: var(--title-section);
  --about-title-chapter: var(--title-chapter);
  --about-section-gap: 72px;
  --about-body-size: 1.12rem;
  --about-ink: #1a1d23;
}

.about-page {
  background: #fff;
  color: #2a2f36;
}

.about-shell {
  max-width: var(--about-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--about-pad-x);
  padding-right: var(--about-pad-x);
}

/* Page-level titles (ABOUT, OUR STORY) */
.about-page-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--about-ink);
}

/* Unified section / module titles */
.about-section-title {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.about-section-title--light {
  color: #fff;
}

.about-section-title--ink {
  color: var(--about-ink);
}

/* ---------- Sticky About sub-nav (on scroll) ---------- */
.about-subnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  transform: translateY(-110%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.page-about.about-scrolled .about-subnav {
  transform: translateY(0);
  pointer-events: auto;
}

.page-about.about-scrolled .site-header {
  transform: translateY(-110%);
  pointer-events: none;
  transition: transform 0.28s ease;
}

.page-about .site-header {
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  transition: transform 0.28s ease, background 0.2s ease;
}

.page-about .mega-panels {
  background: #fff;
}

.page-about .primary-nav {
  background: transparent;
}

@media (max-width: 760px) {
  .page-about .primary-nav {
    background: #fff;
  }
}

.about-subnav-bar {
  position: relative;
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.about-subnav-bar::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: var(--yellow, #f5c400);
  z-index: 1;
}

.about-subnav-inner {
  max-width: var(--about-width);
  margin: 0 auto;
  min-height: 56px;
  padding: 0 var(--about-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.about-subnav-title {
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #1a1d23;
  text-decoration: none;
}

.about-subnav-trigger {
  appearance: none;
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 4px;
  min-height: 44px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 500;
  color: #2a2f36;
}

.about-subnav-trigger:hover {
  opacity: 0.8;
}

.about-subnav-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.about-subnav.is-open .about-subnav-chevron {
  transform: rotate(180deg);
}

.about-subnav-panel {
  background: #fff;
  border-bottom: 1px solid #e4e6ea;
  box-shadow: 0 16px 32px rgba(26, 29, 35, 0.1);
  max-height: min(70vh, 520px);
  overflow-y: auto;
  animation: aboutPanelIn 0.2s ease both;
}

.about-subnav-panel[hidden] {
  display: none !important;
}

@keyframes aboutPanelIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.about-subnav-panel-inner {
  max-width: var(--about-width);
  margin: 0 auto;
  padding: 0 var(--about-pad-x);
}

.about-subnav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-left: auto;
  max-width: 420px;
  width: 100%;
}

.about-subnav-list a {
  display: block;
  width: 100%;
  text-align: right;
  padding: 18px 4px;
  border-bottom: 1px solid #e4e6ea;
  text-decoration: none;
  color: #4a515a;
  font-size: 1rem;
  line-height: 1.35;
}

.about-subnav-list a:last-child {
  border-bottom: 0;
}

.about-subnav-list a:hover {
  color: #1a1d23;
}

.page-about.about-scrolled.about-menu-open {
  overflow: hidden;
}

.about-subnav-backdrop {
  position: fixed;
  inset: 0;
  top: 56px;
  background: rgba(26, 29, 35, 0.18);
  z-index: 105;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.page-about.about-menu-open .about-subnav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.about-page .accent-script {
  font-family: var(--font-script);
  font-style: italic;
  font-weight: 600;
  color: var(--blue);
  font-size: 1.15em;
}

/* Hero */
.about-hero {
  text-align: center;
  padding: 72px var(--about-pad-x) 40px;
  border-top: 0;
  max-width: var(--about-width);
  margin: 0 auto;
}

.about-kicker {
  margin: 0 0 28px;
  font-size: var(--title-page);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--blue-deep);
}

.about-mission {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.7rem, 3.4vw, 2.55rem);
  font-weight: 400;
  line-height: 1.35;
  color: var(--blue-deep);
}

/* Intro */
.about-intro {
  padding: 48px var(--about-pad-x) 72px;
}

.about-intro-inner {
  max-width: var(--about-width);
  margin: 0 auto;
}

.about-intro-inner p {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  line-height: 1.7;
  color: #3a414a;
}

.about-intro-inner p:last-child {
  margin-bottom: 0;
}

/* Cards */
.about-cards {
  padding: 20px var(--about-pad-x) 80px;
}

.about-cards-grid {
  max-width: var(--about-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.about-card-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 18px;
}

.about-card-item h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: var(--blue-deep);
}

.about-card-item p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #4a515a;
  line-height: 1.5;
}

/* Facts — full page width */
.about-facts {
  padding: 0 0 80px;
}

.about-facts-box {
  max-width: none;
  width: 100%;
  margin: 0;
  background: var(--sand);
  border-radius: 0;
  padding: clamp(36px, 5vw, 56px) var(--about-pad-x);
}

.about-facts-box .facts-head,
.about-facts-box .facts-grid {
  max-width: var(--about-width);
  margin-left: auto;
  margin-right: auto;
}

/* FAQ */
.about-faq {
  max-width: var(--about-width);
  margin: 0 auto;
  padding: 20px var(--about-pad-x) 80px;
  border-top: 1px solid #e4e6ea;
}

.about-faq-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 8px;
}

.about-faq-head .about-section-title {
  color: var(--about-ink);
}

.about-facts-box .facts-head h2 {
  font-family: var(--font-sans);
  font-size: var(--title-section);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--about-ink);
}

.about-faq-browse-wrap {
  position: relative;
  flex-shrink: 0;
}

.about-faq-browse {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.about-faq-browse-chevron {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.about-faq-browse-wrap.is-open .about-faq-browse-chevron {
  transform: rotate(180deg);
}

.about-faq-browse-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 20;
  min-width: 220px;
  max-width: 260px;
  background: #fff;
  border: 1px solid #2a2f36;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 8px 24px rgba(26, 29, 35, 0.08);
}

.about-faq-browse-menu[hidden] {
  display: none !important;
}

.about-faq-browse-menu a {
  display: block;
  color: #2a2f36;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.98rem;
  line-height: 1.35;
  padding: 8px 0;
}

.about-faq-browse-menu a:hover {
  color: var(--blue);
}

.faq-list {
  border-top: 1px solid #e4e6ea;
}

.faq-item {
  border-bottom: 1px solid #e4e6ea;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 4px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: #2a2f36;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  position: relative;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: #2a2f36;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.faq-icon::before {
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
}

.faq-icon::after {
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
}

.faq-item[open] .faq-icon::after {
  opacity: 0;
  transform: translateX(-50%) scaleY(0);
}

.faq-answer {
  padding: 0 40px 24px 4px;
}

.faq-answer p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a515a;
}

/* Split sections */
.about-split {
  max-width: var(--about-width);
  margin: 0 auto;
  padding: 40px var(--about-pad-x) 80px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.about-split--reverse {
  grid-template-columns: 0.85fr 1.15fr;
}

.about-split-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.about-split-copy .about-section-title {
  margin: 0 0 18px;
}

.about-split-copy p {
  margin: 0 0 18px;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  line-height: 1.6;
  color: #3a414a;
  max-width: 36ch;
}

/* Offices map */
.about-offices {
  padding: 20px var(--about-pad-x) 80px;
}

.offices-map {
  max-width: var(--about-width);
  margin: 0 auto;
  background: #333c4e;
  border-radius: var(--radius-lg);
  padding: 36px 28px 40px;
  color: #fff;
  overflow: visible;
}

.offices-map .offices-title {
  margin: 0 0 24px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.offices-map.is-inview .offices-title {
  opacity: 1;
  transform: none;
}

.offices-map-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 2.1 / 1;
  min-height: 280px;
  overflow: visible;
  border-radius: 12px;
  background:
    radial-gradient(circle at 19% 36%, rgba(245, 196, 0, 0.16), transparent 22%),
    linear-gradient(160deg, #2a3344 0%, #1a2030 55%, #12161f 100%);
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: opacity 0.65s ease 0.35s, transform 0.65s ease 0.35s;
}

.offices-map.is-inview .offices-map-canvas {
  opacity: 1;
  transform: none;
}

.offices-dots {
  position: absolute;
  inset: 8% 2% 5%;
  background-image: radial-gradient(circle, rgba(210, 216, 224, 0.55) 1.1px, transparent 1.2px);
  background-size: 10px 10px;
  /* Approximate continents with soft masks */
  -webkit-mask-image:
    radial-gradient(ellipse 18% 22% at 22% 38%, #000 40%, transparent 70%),
    radial-gradient(ellipse 12% 18% at 30% 42%, #000 30%, transparent 70%),
    radial-gradient(ellipse 14% 20% at 50% 32%, #000 35%, transparent 70%),
    radial-gradient(ellipse 18% 28% at 52% 58%, #000 40%, transparent 72%),
    radial-gradient(ellipse 10% 14% at 56% 78%, #000 35%, transparent 70%),
    radial-gradient(ellipse 16% 20% at 70% 42%, #000 38%, transparent 70%),
    radial-gradient(ellipse 14% 18% at 78% 48%, #000 35%, transparent 70%),
    radial-gradient(ellipse 10% 12% at 82% 62%, #000 30%, transparent 70%);
  mask-image:
    radial-gradient(ellipse 18% 22% at 22% 38%, #000 40%, transparent 70%),
    radial-gradient(ellipse 12% 18% at 30% 42%, #000 30%, transparent 70%),
    radial-gradient(ellipse 14% 20% at 50% 32%, #000 35%, transparent 70%),
    radial-gradient(ellipse 18% 28% at 52% 58%, #000 40%, transparent 72%),
    radial-gradient(ellipse 10% 14% at 56% 78%, #000 35%, transparent 70%),
    radial-gradient(ellipse 16% 20% at 70% 42%, #000 38%, transparent 70%),
    radial-gradient(ellipse 14% 18% at 78% 48%, #000 35%, transparent 70%),
    radial-gradient(ellipse 10% 12% at 82% 62%, #000 30%, transparent 70%);
  -webkit-mask-composite: source-over;
  mask-composite: add;
  opacity: 0.95;
}

.office-markers {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}

.office-marker {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%) scale(0.4);
  opacity: 0;
}

.offices-map.is-inview .office-marker {
  animation: officePin 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

@keyframes officePin {
  from {
    opacity: 0;
    transform: translate(-50%, -100%) scale(0.35);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -100%) scale(1);
  }
}

.office-pin {
  position: relative;
  z-index: 2;
  display: block;
  width: 28px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.office-pin-dot {
  display: block;
  width: 22px;
  height: 22px;
  margin: 0 auto;
  border-radius: 50% 50% 50% 0;
  background: var(--yellow, #f5c400);
  transform: rotate(-45deg);
  box-shadow: 0 0 0 6px rgba(245, 196, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.office-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  transform: translateX(-50%);
}

.office-marker:hover .office-pin-dot,
.office-marker:focus-within .office-pin-dot,
.office-marker.is-open .office-pin-dot {
  background: #ffd84a;
  transform: rotate(-45deg) scale(1.08);
  box-shadow: 0 0 0 8px rgba(245, 196, 0, 0.28);
}

.office-pin:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

.office-popup {
  position: absolute;
  left: 0;
  bottom: calc(100% + 14px);
  z-index: 3;
  width: min(240px, 68vw);
  background: #fff;
  color: #1a1d23;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(0, 8px) scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.office-popup::after {
  content: "";
  position: absolute;
  left: 18px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 3px 3px 6px rgba(0, 0, 0, 0.08);
}

.office-marker:hover .office-popup,
.office-marker:focus-within .office-popup,
.office-marker.is-open .office-popup {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}

.office-popup img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.office-popup-body {
  position: relative;
  z-index: 1;
  padding: 0.75rem 0.9rem 0.9rem;
  background: #fff;
}

.office-popup-place {
  margin: 0 0 0.2rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
}

.office-popup-addr {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.92rem;
  line-height: 1.4;
  color: #4a515c;
}

/* Contact */
.about-contact {
  max-width: var(--about-width);
  margin: 0 auto;
  padding: 20px var(--about-pad-x) 80px;
  border-top: 1px solid #e4e6ea;
}

.about-contact .about-section-title {
  margin: 28px 0 8px;
}

.about-contact-sub {
  margin: 0 0 20px;
  color: #6a7280;
  font-size: 0.98rem;
}

.about-contact-address {
  display: block;
  margin: 0 0 0.65rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: normal;
  line-height: 1.55;
  color: #2a2f36;
}

.about-contact-phone {
  margin: 0 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 600;
}

.about-contact-phone a {
  color: var(--blue, #00558c);
  text-decoration: none;
}

.about-contact-phone a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #e4e6ea;
}

.contact-list li {
  border-bottom: 1px solid #e4e6ea;
}

.contact-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  text-decoration: none;
  color: #2a2f36;
  font-family: var(--font-serif);
  font-size: 1.15rem;
}

.contact-list a:hover {
  color: var(--blue);
}

.contact-list span {
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

/* More about */
.about-more-links {
  max-width: var(--about-width);
  margin: 0 auto;
  padding: 20px var(--about-pad-x) 96px;
  border-top: 1px solid #e4e6ea;
}

.about-more-links > .about-section-title {
  margin: 28px 0 32px;
}

.about-more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.about-more-grid h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  color: var(--blue-deep);
}

.about-more-grid p {
  margin: 0 0 14px;
  font-size: 0.95rem;
  color: #4a515a;
  line-height: 1.5;
}

@media (max-width: 1100px) {
  .about-cards-grid,
  .about-more-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-split,
  .about-split--reverse {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

@media (max-width: 700px) {
  .about-cards-grid,
  .about-more-grid {
    grid-template-columns: 1fr;
  }

  .about-hero {
    padding: 48px 20px 28px;
  }

  .offices-map-canvas {
    aspect-ratio: 1.4 / 1;
  }

  .office-pin {
    width: 26px;
    height: 34px;
  }

  .office-popup {
    width: min(220px, 72vw);
  }
}

@media (max-width: 480px) {
  .page-about {
    --about-pad-x: 14px;
  }

  .about-hero {
    padding: 36px 14px 24px;
  }

  .about-subnav-inner {
    gap: 10px;
    padding: 0 12px;
  }

  .about-section-title,
  .about-page-title {
    letter-spacing: 0.02em;
  }
}

@media (prefers-reduced-motion: reduce) {
  .offices-map .offices-title,
  .offices-map-canvas,
  .office-marker {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }

  .office-marker {
    transform: translate(-50%, -100%) !important;
  }

  .office-popup {
    transition: none !important;
  }
}
