/* Inner pages (about, services, network, contact). Header, footer, dialogs and the section styles
   they share with the home page come from the other stylesheets; this file only adds what is new.
   The pages are generated by scripts/build-pages.py. */

/* ---------- Page hero: copy on one side, a slanted photo crossed by the X on the other ---------- */
.page-hero { position: relative; isolation: isolate; overflow: clip; padding-block: 44px 30px; }
.page-hero > .hero-grid-pattern { display: block; opacity: .5; }
.page-hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 64px); align-items: center; min-height: 380px; }
.crumbs { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--muted); font-size: 13px; font-weight: 700; }
.crumbs a { transition: color .2s; }
.crumbs a:hover { color: var(--blue); }
.crumbs i { font-size: 9px; color: #9aa3b2; }
html[dir="ltr"] .crumbs i { transform: scaleX(-1); }
.crumbs [aria-current] { color: var(--navy); }
.page-hero h1 { color: var(--navy); font-size: clamp(38px, 4.3vw, 62px); font-weight: 900; line-height: 1.3; letter-spacing: -1.5px; }
.page-hero-lead { margin-top: 16px; max-width: 540px; color: #4f5b70; font-size: 17px; line-height: 2; }

.page-hero-visual { position: relative; height: 360px; }
.page-hero-photo { position: absolute; inset: 0 0 0 10%; overflow: hidden; clip-path: polygon(28% 0,100% 0,72% 100%,0 100%); box-shadow: 0 24px 40px rgb(7 21 46 / 14%); }
html[dir="ltr"] .page-hero-photo { inset: 0 10% 0 0; }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(200deg, transparent 40%, rgb(7 21 46 / 35%)); }
/* the X sits on the photo's lower outer corner, like the mark stamped on the picture */
.page-hero-x { position: absolute; z-index: 1; width: 46%; height: auto; inset-inline-end: -4%; bottom: -26px; overflow: visible; filter: drop-shadow(0 16px 22px rgb(7 21 46 / 22%)); }
.px-sheen { animation: px-sheen 5s ease-in-out 1s infinite; }
@keyframes px-sheen { 0% { transform: translateX(0); } 45%, 100% { transform: translateX(640px); } }
.page-hero + .brand-ticker { margin-top: 8px; }

/* ---------- Shared section heading ---------- */
.page-head { margin-bottom: 40px; }
.page-head h2 { line-height: 1.4; letter-spacing: -1px; }
.page-head h2 > span + span { margin-inline-start: .14em; }
.page-head--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px 64px; }
.page-head-text { max-width: 470px; color: var(--muted); font-size: 16px; line-height: 2; padding-bottom: 6px; }

/* ---------- About: the system, in six connected steps ---------- */
.page-about .about { padding-block: 72px 72px; }
.system { position: relative; background: #f2f5fb; }
.system::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 38%; height: 14px; background: var(--paper); clip-path: polygon(0 0,100% 0,100% 100%,14px 100%); }
html[dir="ltr"] .system::before { clip-path: polygon(0 0,100% 0,calc(100% - 14px) 100%,0 100%); }
.system-steps { position: relative; margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
/* the route that links the steps runs behind the nodes */
.system-steps::before { content: ''; position: absolute; top: 31px; inset-inline: 32px; height: 2px; background: linear-gradient(to left, var(--blue), #9aa3b2); opacity: .45; }
html[dir="ltr"] .system-steps::before { background: linear-gradient(to right, var(--blue), #9aa3b2); }
.system-steps a { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; height: 100%; }
.system-node { width: 64px; height: 64px; display: grid; place-items: center; background: #fff; color: var(--blue); font-size: 22px; clip-path: polygon(13px 0,100% 0,calc(100% - 13px) 100%,0 100%); box-shadow: inset 0 0 0 1px #dde3ed; transition: background .25s, color .25s; }
.system-num { color: #9aa3b2; font: 800 12px Arial, sans-serif; letter-spacing: .14em; }
.system-steps strong { color: var(--navy); font-size: 17px; font-weight: 900; line-height: 1.6; }
.system-steps a:hover .system-node, .system-steps a:focus-visible .system-node { background: var(--blue); color: #fff; }

.purpose-section { padding-top: var(--section-space); }
.purpose-section .about-purpose { margin-top: 0; }

.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.audience-grid li { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 26px 26px 24px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 14px 34px rgb(7 21 46 / 6%); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.audience-grid li::after { content: ''; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--blue); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease); }
html[dir="ltr"] .audience-grid li::after { transform-origin: left; }
.audience-grid li:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgb(7 21 46 / 11%); }
.audience-grid li:hover::after { transform: scaleX(1); }
.audience-grid i { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 14px; background: #eaf0ff; color: var(--blue); font-size: 19px; clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); }
.audience-grid li > span:not(.audience-en) { color: var(--navy); font-size: 21px; font-weight: 900; line-height: 1.5; }
.audience-en { color: #9aa3b2; font: 700 10px Arial, sans-serif; letter-spacing: .18em; }

/* ---------- Services: a sticky index, then one row per service ---------- */
.svc-index { position: sticky; top: 84px; z-index: 30; margin-top: 28px; background: rgb(251 252 255 / 94%); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.svc-index-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.svc-index-list::-webkit-scrollbar { display: none; }
.svc-index-list a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; color: #4f5b70; font-size: 14px; font-weight: 800; white-space: nowrap; clip-path: polygon(7px 0,100% 0,calc(100% - 7px) 100%,0 100%); transition: background .2s, color .2s; }
.svc-index-num { color: #9aa3b2; font: 800 11px Arial, sans-serif; transition: color .2s; }
.svc-index-list a:hover { background: #eaf0ff; color: var(--blue); }
.svc-index-list a.is-active { background: var(--blue); color: #fff; }
.svc-index-list a.is-active .svc-index-num { color: #bcd2ff; }

.svc-detail { padding-top: 64px; }
.svc-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; scroll-margin-top: 170px; }
.svc-row + .svc-row { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
.svc-row:nth-child(even) .svc-row-media { order: 2; }

.svc-row-media { position: relative; margin: 0; aspect-ratio: 16 / 11; }
.svc-row-media img { width: 100%; height: 100%; object-fit: cover; clip-path: polygon(16% 0,100% 0,84% 100%,0 100%); }
/* silver and blue slivers from the X run along the photo's slanted edge */
.svc-row-media::before, .svc-row-media::after { content: ''; position: absolute; top: 0; height: 100%; width: 22%; clip-path: polygon(72% 0,100% 0,28% 100%,0 100%); pointer-events: none; }
.svc-row-media::before { inset-inline-end: -5%; background: linear-gradient(160deg, #eef1f6, #9aa3b2 45%, #d9dee8 60%, #7d8594); opacity: .9; }
.svc-row-media::after { inset-inline-end: -10%; width: 14%; background: linear-gradient(160deg, #118aff, var(--blue) 50%, var(--blue-deep)); clip-path: polygon(80% 0,100% 0,20% 100%,0 100%); }
html[dir="ltr"] .svc-row-media img { clip-path: polygon(0 0,84% 0,100% 100%,16% 100%); }
html[dir="ltr"] .svc-row-media::before, html[dir="ltr"] .svc-row-media::after { transform: scaleX(-1); }
.svc-row-num { position: absolute; bottom: -14px; inset-inline-start: 12%; padding: 6px 22px; background: var(--navy); color: #fff; font: 900 26px/1.2 Arial, sans-serif; clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%); }

.svc-row-kicker { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; color: var(--blue); font: 700 11px/1.4 Arial, sans-serif; letter-spacing: .16em; }
html[dir="rtl"] .svc-row-kicker { justify-content: flex-end; flex-direction: row-reverse; }
.svc-row-icon { width: 42px; height: 42px; display: grid; place-items: center; background: #eaf0ff; font-size: 17px; letter-spacing: 0; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); }
.svc-row h2 { margin-bottom: 14px; color: var(--navy); font-size: clamp(28px, 2.8vw, 40px); line-height: 1.4; letter-spacing: -1px; }
.svc-row-desc { color: #4f5b70; font-size: 16px; line-height: 2.05; }
.svc-row-points { display: grid; gap: 10px; margin-top: 20px; }
.svc-row-points li { position: relative; padding-inline-start: 26px; color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.8; }
.svc-row-points li::before { content: ''; position: absolute; inset-inline-start: 0; top: 9px; width: 14px; height: 9px; background: var(--blue); clip-path: polygon(3px 0,100% 0,calc(100% - 3px) 100%,0 100%); }
.svc-row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; }
.svc-row-actions .angle-button { min-height: 54px; gap: 20px; }
.svc-row-actions .button-orb { width: 40px; height: 40px; font-size: 14px; }
.svc-row-call { display: inline-flex; align-items: center; gap: 12px; line-height: 1.4; }
.svc-row-call > i { width: 40px; height: 40px; display: grid; place-items: center; background: #eaf0ff; color: var(--blue); font-size: 15px; clip-path: polygon(8px 0,100% 0,calc(100% - 8px) 100%,0 100%); transition: background .2s, color .2s; }
.svc-row-call small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.svc-row-call bdi { color: var(--navy); font: 800 16px Arial, sans-serif; letter-spacing: .02em; }
.svc-row-call:hover > i { background: var(--blue); color: #fff; }

/* ---------- Network: international partners + offices ---------- */
.market-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.market-card { position: relative; overflow: hidden; isolation: isolate; padding: 28px 28px 30px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 14px 34px rgb(7 21 46 / 6%); transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.market-card::after { content: ''; position: absolute; z-index: -1; inset-block: -20%; inset-inline-end: -70px; width: 180px; background: #f1f5ff; clip-path: polygon(0 0,43% 0,100% 50%,43% 100%,0 100%,57% 50%); }
.market-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgb(7 21 46 / 11%); }
.market-route { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; color: var(--blue); font: 800 12px Arial, sans-serif; letter-spacing: .14em; }
.market-route span:first-child { color: #9aa3b2; }
.market-route i { position: relative; flex: 1; max-width: 120px; height: 2px; background: linear-gradient(to right, #9aa3b2, var(--blue)); }
.market-route i::after { content: ''; position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px rgb(7 84 255 / 16%); animation: market-dot 3.2s ease-in-out infinite; }
@keyframes market-dot { 0% { left: 0; } 60%, 100% { left: calc(100% - 8px); } }
.market-card h3 { margin-bottom: 6px; color: var(--navy); font-size: 22px; font-weight: 900; }
.market-card p { color: #4f5b70; font-size: 15px; line-height: 1.95; }

.offices-section { padding-bottom: 24px; }
.page-network .markets { padding-bottom: 64px; }

/* ---------- Contact ---------- */
.channels { margin-top: 40px; }
.channel-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.channel-card { display: flex; align-items: center; gap: 14px; height: 100%; padding: 20px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 14px 34px rgb(7 21 46 / 6%); line-height: 1.5; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.channel-card:hover { transform: translateY(-4px); box-shadow: 0 22px 46px rgb(7 21 46 / 11%); }
.channel-icon { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; background: #eaf0ff; color: var(--blue); font-size: 18px; clip-path: polygon(9px 0,100% 0,calc(100% - 9px) 100%,0 100%); transition: background .2s, color .2s; }
.channel-card:hover .channel-icon { background: var(--blue); color: #fff; }
.channel-card small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.channel-card bdi, .channel-card span > span { color: var(--navy); font: 800 15px Arial, sans-serif; letter-spacing: .02em; }
.channel-card span > span { font-family: Cairo, Tahoma, sans-serif; font-size: 14px; letter-spacing: 0; }

.contact-main { padding-block: 56px 72px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 3vw, 40px); align-items: start; }
.contact-grid .dept-panel { position: sticky; top: 112px; }
.contact-form-card { position: relative; padding: 36px 40px 34px; background: #fff; border: 1px solid #e6ebf3; box-shadow: 0 1px 2px rgb(7 21 46 / 4%), 0 18px 44px rgb(7 21 46 / 8%); }
.contact-form-card::before { content: ''; position: absolute; top: 0; inset-inline-start: 40px; width: 64px; height: 4px; background: var(--blue); clip-path: polygon(4px 0,100% 0,calc(100% - 4px) 100%,0 100%); }
.contact-form-card .section-kicker { margin-bottom: 10px; }
.contact-form-card h2 { margin-bottom: 8px; color: var(--navy); font-size: clamp(28px, 2.6vw, 36px); letter-spacing: -1px; }
.contact-form-card .dialog-intro { font-size: 14px; margin-bottom: 22px; }
.contact-form-card .form-grid label > span { font-size: 13px; }
.contact-form-card input, .contact-form-card select, .contact-form-card textarea { font-size: 14px; min-height: 48px; }
.contact-form-card .form-note { font-size: 12px; }

.offices-section--contact { padding-block: 0 72px; }

/* ---------- Closing CTA band ---------- */
.cta-band { padding-block: 24px 88px; }
.cta-band-inner { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px 48px; padding: 44px 52px; background: var(--navy); color: #fff; clip-path: polygon(0 0,100% 0,100% calc(100% - 34px),calc(100% - 34px) 100%,0 100%); }
.cta-band-inner::after { content: ''; position: absolute; z-index: -1; top: -40px; inset-inline-end: 22%; width: 240px; height: 320px; background: rgb(255 255 255 / 4%); clip-path: polygon(0 0,43% 0,100% 50%,43% 100%,0 100%,57% 50%); }
.cta-band-inner::before { content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 34%; height: 4px; background: linear-gradient(to left, var(--blue) 0 70%, #9aa3b2 70%); }
.cta-band .section-kicker { margin-bottom: 8px; color: var(--sky); }
.cta-band h2 { color: #fff; font-size: clamp(30px, 3vw, 44px); line-height: 1.4; letter-spacing: -1px; }
.cta-band-copy p:last-child { margin-top: 6px; color: #b9c4da; font-size: 16px; }
.cta-band-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 28px; flex-shrink: 0; }
.cta-band .angle-button { min-height: 56px; gap: 20px; }
.cta-band .button-orb { width: 40px; height: 40px; font-size: 14px; box-shadow: 0 0 0 5px var(--navy); }
.cta-band-link { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-size: 15px; font-weight: 800; }
.cta-band-link span { border-bottom: 1px solid rgb(255 255 255 / 30%); transition: border-color .2s; }
.cta-band-link:hover span { border-color: #fff; }

/* Home: links from each section to its full page */
.about-intro > .text-link + .text-link { margin-inline-start: 28px; }
.svc-all { margin-top: 14px; }
.ports-more { margin-top: 20px; color: #8abaff; }
.ports-more > span { border-color: rgb(138 186 255 / 40%); }

@media (prefers-reduced-motion: reduce) {
  .px-sheen, .market-route i::after { animation: none; }
}

@media (max-width: 1199px) {
  .system-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 18px; }
  .system-steps::before { display: none; }
  .channel-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .svc-index { top: 68px; }
  .page-hero-inner { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .page-hero-visual { height: 300px; max-width: 640px; width: 100%; }
  .page-head--split { flex-direction: column; align-items: flex-start; }
  .svc-row { grid-template-columns: 1fr; gap: 36px; }
  .svc-row:nth-child(even) .svc-row-media { order: 0; }
  .svc-row-media { max-width: 680px; width: 100%; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .market-cards { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-grid .dept-panel { position: relative; top: 0; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 767px) {
  .svc-index { top: 64px; margin-top: 20px; }
  .page-hero { padding-block: 28px 20px; }
  .page-hero h1 { font-size: clamp(34px, 9vw, 44px); }
  .page-hero-lead { font-size: 15px; }
  .page-hero-visual { height: 220px; }
  .page-hero-photo { inset-inline-start: 0; }
  .page-hero-x { width: 42%; bottom: -16px; inset-inline-end: 0; }
    .page-head { margin-bottom: 28px; }
  .system-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; }
  .system-node { width: 54px; height: 54px; font-size: 19px; }
  .system-steps strong { font-size: 15px; }
  .audience-grid { gap: 12px; }
  .audience-grid li { padding: 20px 16px 18px; }
  .audience-grid li > span:not(.audience-en) { font-size: 18px; }
  .svc-detail { padding-top: 40px; }
  .svc-row { scroll-margin-top: 140px; }
  .svc-row + .svc-row { margin-top: 40px; padding-top: 40px; }
  .svc-row-num { font-size: 20px; padding: 4px 16px; }
  .svc-row-desc { font-size: 15px; }
  .svc-row-points li { font-size: 14px; }
  .channel-cards { grid-template-columns: 1fr; gap: 10px; }
  .channel-card { padding: 16px; }
  .contact-main { padding-block: 40px 48px; }
  .contact-form-card { padding: 28px 18px 24px; }
  .contact-form-card::before { inset-inline-start: 18px; }
    .market-card { padding: 22px 20px 24px; }
  .cta-band { padding-bottom: 56px; }
  .cta-band-inner { padding: 32px 22px 40px; clip-path: polygon(0 0,100% 0,100% calc(100% - 22px),calc(100% - 22px) 100%,0 100%); }
}
