/* Global Integrators — design tokens */
:root {
  --midnight: #001A3D;
  --navy: #0A2F64;
  --blue: #1C7AB0;
  --blue-text: #17669A;
  --sky: #2BA9E0;
  --gold: #C8A96A;
  --gold-hover: #D8BE88;
  --ink: #0F2340;
  --slate: #4A5568;
  --on-dark-muted: #C9D4E3;
  --line: #DCE3EC;
  --line-dark: rgba(255, 255, 255, .18);
  --porcelain: #F5F7FA;
  --ice: #E9F0F7;
  --white: #FFFFFF;
  --error: #B42318;

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 9vw, 120px);
  --max: 1240px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 1.0625rem; line-height: 1.65; color: var(--slate); background: var(--white); }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-text); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 700; line-height: 1.14; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.5rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: 1.3rem; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: 104px; }

.wrap { width: min(100% - (var(--gutter) * 2), var(--max)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section--tint { background: var(--porcelain); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 62ch; }
.measure { max-width: 66ch; }
.stack > * + * { margin-top: 20px; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head p { margin-top: 18px; }

.skip { position: absolute; left: 16px; top: -80px; z-index: 100; padding: 12px 18px; background: var(--midnight); color: var(--white); border-radius: var(--radius-sm); }
.skip:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 26px; border: 1.5px solid transparent; border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn--gold { background: var(--gold); color: var(--midnight); }
.btn--gold:hover { background: var(--gold-hover); color: var(--midnight); }
.btn--ghost { border-color: rgba(255, 255, 255, .55); color: var(--white); }
.btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--midnight); }
.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--midnight); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.nav__logo { display: block; flex: none; }
.nav__logo img { width: 190px; height: auto; }
.nav__menu { display: flex; align-items: center; gap: 4px; }
.nav__menu a:not(.btn) { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--ink); font-size: .975rem; font-weight: 500; text-decoration: none; }
.nav__menu a:not(.btn):hover { background: var(--porcelain); }
.nav__menu a[aria-current="page"]:not(.btn) { color: var(--blue-text); font-weight: 700; }
.nav__menu .btn { min-height: 44px; margin-left: 12px; padding: 8px 22px; font-size: .95rem; }
.nav__toggle { display: none; min-width: 48px; min-height: 48px; padding: 0 14px; background: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }

/* Home hero */
.hero-frame { padding: 16px var(--gutter) 0; padding-inline: clamp(8px, 1.5vw, 20px); }
.hero { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--midnight); color: var(--white); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(0, 26, 61, .96) 0%, rgba(0, 26, 61, .88) 48%, rgba(0, 26, 61, .5) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: end; min-height: min(78dvh, 760px); padding-block: clamp(56px, 8vw, 104px) clamp(32px, 4vw, 56px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero__lede { margin-top: 24px; max-width: 56ch; color: #E6ECF4; font-size: clamp(1.1rem, 1.5vw, 1.25rem); }
.hero .btn-row { margin-top: 36px; }

.clocks { padding: 24px; border-radius: var(--radius-md); background: var(--white); color: var(--slate); }
.clocks__title { color: var(--ink); font-size: .95rem; font-weight: 700; }
.clock { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.clock__place { color: var(--ink); font-size: .95rem; font-weight: 600; line-height: 1.3; }
.clock__place span { display: block; color: var(--slate); font-size: .875rem; font-weight: 400; }
.clock__time { color: var(--navy); font-size: 1.45rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.clocks__note { margin-top: 14px; font-size: .9rem; line-height: 1.5; }

/* Inner page hero */
.page-hero { background: var(--midnight); color: var(--on-dark-muted); padding-block: clamp(56px, 8vw, 104px); }
.page-hero h1 { color: var(--white); font-size: clamp(2.3rem, 4.8vw, 3.75rem); max-width: 20ch; }
.page-hero .lede { margin-top: 22px; }

/* Split image and text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius-lg); }
.fact { position: absolute; right: 16px; bottom: 16px; max-width: 250px; padding: 18px 22px; border-radius: var(--radius-md); background: var(--navy); color: var(--on-dark-muted); font-size: .95rem; line-height: 1.45; }
.fact strong { display: block; margin-bottom: 4px; color: var(--white); font-size: 2.25rem; line-height: 1.1; letter-spacing: -.02em; }

.ticks li { position: relative; padding-left: 34px; }
.ticks li + li { margin-top: 12px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 21px; height: 21px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C8A96A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.ticks--dark li { color: var(--on-dark-muted); }

/* Skills list */
.skills { border-top: 1px solid var(--line); }
.skill { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 12px clamp(24px, 5vw, 72px); padding-block: clamp(26px, 3.5vw, 40px); border-bottom: 1px solid var(--line); }
.skill h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.2; letter-spacing: -.02em; }
.skill p + a, .skill p + p { margin-top: 12px; }
.skill a { display: inline-block; font-weight: 600; }

/* 24x7 band */
.band { position: relative; overflow: hidden; background: var(--midnight); color: var(--on-dark-muted); }
.band__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: rgba(0, 26, 61, .9); }
.band > .wrap { position: relative; z-index: 1; }
.band h2, .band h3 { color: var(--white); }
.band__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.band__big { display: block; margin-bottom: 16px; color: var(--gold); font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; }
.band .btn { margin-top: 30px; }
.band__points > li { padding-block: 24px; border-top: 1px solid var(--line-dark); }
.band__points > li:last-child { border-bottom: 1px solid var(--line-dark); }
.band__points p { margin-top: 8px; }

/* Panels */
.panels { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.panel { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.section--tint .panel { border-color: transparent; }
.panel p { margin-top: 10px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.step { counter-increment: step; padding-top: 20px; border-top: 2px solid var(--navy); }
.step::before { content: counter(step); display: block; margin-bottom: 12px; color: var(--blue-text); font-size: 1.75rem; font-weight: 700; line-height: 1; }
.step p { margin-top: 8px; font-size: 1rem; }

/* Service detail */
.detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); padding-block: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.detail__main p { margin-top: 16px; }
.detail__aside { padding: 26px; border-radius: var(--radius-md); background: var(--ice); align-self: start; }
.detail__aside h3 { font-size: 1.05rem; margin-bottom: 14px; }
.detail__aside .ticks li { font-size: 1rem; line-height: 1.5; color: var(--ink); }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.office { padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-md); background: var(--navy); color: var(--on-dark-muted); }
.office h3 { color: var(--white); }
.office address { margin-top: 12px; font-style: normal; }
.office a { display: inline-block; margin-top: 14px; color: var(--white); font-weight: 600; }
.office a:hover { color: var(--gold-hover); }

/* Call to action */
.cta { padding: clamp(40px, 6vw, 72px); border-radius: var(--radius-lg); background: var(--ice); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; }
.cta h2 { max-width: 18ch; }
.cta p { margin-top: 14px; max-width: 52ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field--full, .form__foot { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 6px; color: var(--ink); font-size: .975rem; font-weight: 600; }
.field label span { color: var(--slate); font-weight: 400; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #768396; border-radius: var(--radius-sm); background: var(--white); color: var(--ink); font: inherit; }
.field textarea { min-height: 150px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field__error { margin-top: 6px; color: var(--error); font-size: .925rem; font-weight: 500; }
.form__note { margin-top: 12px; font-size: .95rem; }
.contact-list li + li { margin-top: 24px; }
.contact-list h3 { font-size: 1.05rem; }
.contact-list address { font-style: normal; margin-top: 4px; }
.contact-list a { display: inline-block; padding-block: 4px; font-weight: 600; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--midnight); color: var(--on-dark-muted); padding-block: clamp(48px, 6vw, 80px) 28px; font-size: 1rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr); gap: 36px; }
.footer-logo { width: 220px; height: auto; }
.footer-about { margin-top: 18px; max-width: 34ch; }
.site-footer h2 { color: var(--white); font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--white); text-decoration-color: rgba(255, 255, 255, .4); overflow-wrap: anywhere; }
.site-footer a:hover { color: var(--gold-hover); }
.footer-links li + li { margin-top: 6px; }
.footer-links a { display: inline-block; padding-block: 2px; }
.footer-contact { display: block; margin-top: 10px; }
.legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line-dark); font-size: .9rem; line-height: 1.55; }
.legal p + p { margin-top: 8px; }

@media (max-width: 1060px) {
  .nav__logo img { width: 170px; }
  .nav__toggle { display: inline-flex; align-items: center; }
  .nav__menu { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px; background: var(--white); border-bottom: 1px solid var(--line); box-shadow: 0 16px 28px rgba(0, 26, 61, .12); }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding-block: 13px; }
  .nav__menu .btn { margin: 10px 0 0; min-height: 50px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .clocks { max-width: 440px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 800px) {
  .hero::after { background: rgba(0, 26, 61, .88); }
  .split, .band__grid, .detail, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .split--reverse .split__media { order: 0; }
  .skill { grid-template-columns: minmax(0, 1fr); }
  .panels, .offices { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .form, .steps, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  .cta .btn { width: 100%; }
  .fact { position: static; max-width: none; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
