/* Concept: full-screen snapping sections, blue wipe transitions, thin frame lines.
   Fonts: Lexend (geometric, light) + Instrument Serif italic for section numerals. */
:root {
  --blue: #3a8dff;
  --blue-d: #1f6fe0;
  --navy: #0d1733;
  --ink: #1d2a4a;
  --pale: #d6e5ff;
  --mist: #f3f6fc;
  --line: rgba(255, 255, 255, .28);
  --line-d: rgba(13, 23, 51, .1);
  --bar: 32px;
  --gutter: 6vw;
  --sans: "Lexend", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); font-weight: 300; color: var(--ink); background: var(--blue); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; }

/* desktop: page is a stack of fixed panels; JS moves between them */
html.fp, html.fp body { overflow: hidden; }
html.fp main { height: 100vh; overflow: hidden; }
html.fp .panel { position: absolute; inset: 0; visibility: hidden; }
html.fp .panel.is-active { visibility: visible; }

/* ---------- announcement bar ---------- */
.bar { position: fixed; z-index: 60; top: 0; left: 0; right: 0; height: var(--bar); display: flex; align-items: center; justify-content: center; background: var(--blue); color: #fff; font-size: 12px; letter-spacing: .02em; }
.bar a { text-decoration: none; }
.bar a:hover { text-decoration: underline; }
.bar__x { position: absolute; right: 14px; background: none; border: 0; color: #fff; font-size: 18px; line-height: 1; opacity: .8; }
body.no-bar { --bar: 0px; }
body.no-bar .bar { display: none; }

/* ---------- frame ---------- */
.head { position: fixed; z-index: 50; top: var(--bar); left: 0; right: 0; height: 84px; display: grid; grid-template-columns: var(--gutter) 1fr auto; align-items: center; padding-right: 2.2vw; color: #fff; transition: color .4s; }
body.on-light .head { color: var(--ink); }
.logo { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; justify-self: center; }
.logo svg { width: 26px; height: 26px; color: var(--blue); }
.logo span { font-size: 7.5px; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; font-weight: 400; }
.nav { display: flex; justify-content: center; gap: 2.4vw; }
.nav a { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; font-weight: 400; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .35s; }
.nav a:hover::after, .nav a.is-on::after { transform: scaleX(1); transform-origin: left; }
.social { display: flex; gap: 22px; }
.social svg { width: 15px; height: 15px; fill: currentColor; display: block; transition: opacity .2s; }
.social a:hover svg { opacity: .6; }
.burger { display: none; }

.lines { position: fixed; z-index: 40; inset: 0; pointer-events: none; }
.lines i { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); transition: background .4s; }
.lines i:nth-child(1) { left: var(--gutter); }
.lines i:nth-child(2) { right: 11.5vw; }
body.on-light .lines i { background: var(--line-d); }

.dots { position: fixed; z-index: 50; right: calc(11.5vw - 3px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 30px; }
.dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: var(--blue); opacity: .55; transition: transform .3s, opacity .3s; }
.dots button.is-on { opacity: 1; transform: scale(1.6); }

.cta-fixed { position: fixed; z-index: 50; right: 2.2vw; bottom: 26px; display: flex; gap: 10px; text-decoration: none; }
.cta-fixed__arrow { width: 36px; height: 36px; display: grid; place-items: center; background: #fff; color: var(--navy); font-size: 18px; transition: transform .3s; }
.cta-fixed__label { height: 36px; padding: 0 22px; display: grid; place-items: center; background: var(--blue); color: #fff; font-size: 11.5px; font-weight: 400; letter-spacing: .02em; }
.cta-fixed:hover .cta-fixed__arrow { transform: translateX(4px); }
body.on-contact .cta-fixed { opacity: 0; pointer-events: none; }

/* ---------- blue wipe ---------- */
.wipe { position: fixed; z-index: 45; inset: 0; background: var(--blue); transform: translateY(100%); pointer-events: none; }
.wipe.is-in { transition: transform .55s cubic-bezier(.7, 0, .3, 1); transform: translateY(0); }
.wipe.is-out { transition: transform .55s cubic-bezier(.7, 0, .3, 1); transform: translateY(-100%); }
.wipe.up { transform: translateY(-100%); }
.wipe.up.is-in { transform: translateY(0); }
.wipe.up.is-out { transform: translateY(100%); }

/* ---------- shared type ---------- */
.panel { min-height: 100vh; position: relative; overflow: hidden; }
.eyebrow { font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 400; margin: 0 0 14px; color: var(--ink); }
.eyebrow--light { color: rgba(255, 255, 255, .8); }
.h2 { font-weight: 300; font-size: clamp(28px, 2.7vw, 42px); line-height: 1.16; margin: 0 0 22px; color: var(--ink); letter-spacing: -.005em; }
.h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.12em; }
.h2--caps { text-transform: uppercase; letter-spacing: .02em; font-weight: 400; }
.h2--light, .lede--light { color: #fff; }
.copy p, .lede { font-size: 13px; line-height: 1.75; margin: 0 0 14px; max-width: 54ch; }
.copy strong { font-weight: 500; }
.small { font-size: 12px; }
.small a { color: var(--blue-d); }
.actions { display: flex; align-items: center; gap: 26px; margin-top: 28px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 40px; padding: 0 30px; background: var(--blue); color: #fff; border: 0; text-decoration: none; font-size: 12px; font-weight: 400; letter-spacing: .02em; transition: background .25s; }
.btn:hover { background: var(--blue-d); }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { background: var(--pale); }
.btn--full { width: 100%; }
.link { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 3px; }

.numtab { position: absolute; z-index: 3; top: calc(var(--bar) + 84px); right: 11.5vw; width: 64px; height: 64px; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: 30px; color: var(--ink); background: #fff; border: 1px solid var(--line-d); }
.numtab--dark { background: var(--navy); color: #fff; border-color: var(--line); }

/* textures, drawn in CSS so there are no stock images */
.tex { position: absolute; inset: 0; }
.tex--cubes {
  background:
    linear-gradient(rgba(31, 70, 150, .55), rgba(31, 70, 150, .55)),
    conic-gradient(from 210deg at 50% 50%, #4f6ea8 0 120deg, #2b467e 0 240deg, #6c89c0 0) 0 0 / 120px 104px,
    #2b467e;
}
.tex--lines { background: repeating-linear-gradient(135deg, #0d1733 0 14px, #18244a 14px 16px); opacity: .9; }

/* ---------- hero ---------- */
.hero { background: #1b2f5c; color: #fff; display: grid; place-items: center; }
.hero__bg { position: absolute; inset: 0; background: linear-gradient(115deg, #24427e, #33558f 45%, #1b2f5c); }
.hero__bg img { position: absolute; right: 18vw; bottom: 0; height: 92%; width: auto; object-fit: cover; filter: grayscale(1) contrast(1.05); mix-blend-mode: luminosity; opacity: .55; -webkit-mask-image: linear-gradient(to top, transparent, #000 25%), linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); -webkit-mask-composite: source-in; mask-image: linear-gradient(to top, transparent, #000 25%), linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-composite: intersect; transform: scale(1.04); animation: drift 18s ease-in-out infinite alternate; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: rgba(58, 141, 255, .22); mix-blend-mode: multiply; }
@keyframes drift { to { transform: scale(1.1) translateX(-1.5%); } }
.hero__inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero__name { margin: 0; font-weight: 300; font-size: clamp(56px, 9.4vw, 150px); line-height: 1; letter-spacing: -.01em; color: rgba(255, 255, 255, .88); white-space: nowrap; }
.split .ch { display: inline-block; opacity: 0; transform: translateY(.35em); filter: blur(8px); transition: opacity .9s, transform .9s cubic-bezier(.2, .7, .2, 1), filter .9s; }
.split.is-in .ch { opacity: 1; transform: none; filter: none; }
.ticker { width: min(380px, 70vw); overflow: hidden; margin-top: 22px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.ticker__track { display: flex; width: max-content; animation: tick 16s linear infinite; }
.ticker span { font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; white-space: pre; }
@keyframes tick { to { transform: translateX(-50%); } }
.hero__line { margin: 26px 0 0; font-size: 13px; opacity: .78; }
.mouse { margin-top: 36px; width: 22px; height: 36px; border: 1.5px solid #fff; border-radius: 12px; background: none; position: relative; padding: 0; }
.mouse i { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: #fff; border-radius: 2px; animation: wheel 1.6s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }

/* ---------- split panel (01, 03) ---------- */
.split-panel { background: linear-gradient(90deg, #2b467e 0 18vw, var(--pale) 18vw 79vw, #c3d6f7 79vw); }
.anchor { position: absolute; top: 0; }
.split-panel__img { position: absolute; }
.split-panel .tex--cubes { inset: 0 auto auto 0; width: 79vw; height: 30%; }
.split-panel .tex--cubes::after { content: ""; position: absolute; left: 0; top: 100%; width: 18vw; height: 100vh; background: inherit; }
.card { position: absolute; z-index: 2; left: 18vw; right: 21vw; top: 38%; bottom: 0; padding: 6vh 6vw 4vh 6vw; overflow: auto; }
.card--pale { background: var(--pale); top: 30%; }
.card--white { background: #fff; }
.card__bar { display: block; width: 110px; height: 10px; background: #2b467e; margin-bottom: 22px; }

.split-panel--rev { background: linear-gradient(90deg, var(--mist) 0 79vw, #c3d6f7 79vw); }
.split-panel--rev .card { top: 50%; bottom: auto; transform: translateY(-46%); left: 38vw; right: 15vw; max-height: 78vh; }
.media-img { left: calc(var(--gutter) + 3vw); top: 50%; transform: translateY(-46%); width: 25vw; max-width: 380px; height: auto; z-index: 2; }
.media-img img { width: 100%; height: auto; box-shadow: 0 30px 60px -20px rgba(13, 23, 51, .35); }

.stats { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-d); }
.stats li { padding: 18px 0 0; }
.stats li[hidden] { display: none; }
.stats b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 34px; color: var(--blue-d); line-height: 1; }
.stats span { display: block; font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; }

/* ---------- white panel (02) ---------- */
.white-panel { background: #fff; display: flex; align-items: center; }
body.on-speaking .social { color: #fff; }
.white-panel__body { position: relative; z-index: 2; padding: calc(var(--bar) + 40px) 0 0 calc(var(--gutter) + 4vw); width: 66vw; }
.stripes { position: absolute; top: 0; right: 0; bottom: 0; width: 15vw; background: repeating-linear-gradient(135deg, #0d1733 0 16px, #1b2a52 16px 30px); }
.numtab--light { right: 15vw; }
.slider { margin: 34px 0 30px; overflow: hidden; }
.slider__track { display: flex; gap: 14px; transition: transform .6s cubic-bezier(.6, 0, .2, 1); }
.tile { flex: 0 0 calc((100% - 28px) / 3); min-height: 170px; border: 1px solid #1d2a4a; padding: 20px 22px; display: flex; flex-direction: column; transition: background .3s, color .3s; }
.tile:hover { background: var(--navy); color: #fff; }
.tile:hover h3 { color: #fff; }
.tile__n { font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--blue); margin-bottom: auto; }
.tile h3 { font-weight: 400; font-size: 14.5px; line-height: 1.35; margin: 18px 0 8px; color: var(--ink); }
.tile p { font-size: 11.5px; line-height: 1.6; margin: 0; opacity: .8; }
.slider__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 14px; }
.slider__nav button { width: 44px; height: 36px; border: 1px solid #1d2a4a; background: #fff; font-size: 16px; color: var(--ink); transition: background .2s, color .2s; }
.slider__nav button:hover { background: var(--navy); color: #fff; }

/* ---------- dark panel (04) ---------- */
.dark-panel { background: var(--navy); display: flex; align-items: center; }
.dark-panel__body { position: relative; z-index: 2; margin-left: calc(var(--gutter) + 8vw); max-width: 560px; padding: 8vh 4vw; background: rgba(13, 23, 51, .82); backdrop-filter: blur(2px); }
.dark-panel .h2 { font-size: clamp(32px, 3.4vw, 52px); }

/* ---------- contact (05) ---------- */
.contact { background: var(--mist); display: flex; flex-direction: column; }
.contact__grid { flex: 1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 6vw; align-items: center; padding: calc(var(--bar) + 84px) 15vw 0 calc(var(--gutter) + 4vw); }
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea { width: 100%; font: inherit; font-size: 12.5px; color: var(--ink); background: #fff; border: 1px solid #c9d3e6; padding: 12px 14px; border-radius: 0; outline: none; transition: border-color .2s; }
.form input:focus, .form textarea:focus { border-color: var(--blue); }
.form textarea { resize: vertical; }
.chips { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips input { position: absolute; opacity: 0; }
.chips span { display: block; padding: 8px 14px; border: 1px solid #c9d3e6; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; cursor: pointer; background: #fff; transition: all .2s; }
.chips input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.status { font-size: 12px; margin: 0; min-height: 1em; }
.status.is-ok { color: #1a7f4b; }
.status.is-err { color: #c0392b; }
.foot { display: flex; justify-content: space-between; gap: 20px; padding: 22px 15vw 26px calc(var(--gutter) + 4vw); font-size: 10.5px; color: #5a6684; border-top: 1px solid var(--line-d); margin-top: 4vh; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- small screens: ordinary scrolling ---------- */
@media (max-width: 900px) {
  :root { --gutter: 0px; }
  .nav, .social, .dots, .lines, .numtab, .wipe { display: none; }
  .head { grid-template-columns: auto 1fr auto; padding: 0 20px; height: 64px; background: rgba(13, 23, 51, .88); backdrop-filter: blur(8px); color: #fff !important; }
  .logo { flex-direction: row; gap: 10px; justify-self: start; }
  .logo span { font-size: 9px; }
  .burger { display: block; grid-column: 3; width: 34px; height: 34px; background: none; border: 0; position: relative; }
  .burger i { position: absolute; left: 6px; right: 6px; height: 1.5px; background: #fff; transition: transform .3s; }
  .burger i:first-child { top: 13px; } .burger i:last-child { top: 20px; }
  body.menu .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
  body.menu .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  body.menu .nav { display: flex; flex-direction: column; position: fixed; top: calc(var(--bar) + 64px); left: 0; right: 0; background: var(--navy); padding: 24px 20px 30px; gap: 18px; }
  body.menu .nav a { font-size: 13px; }
  .panel { min-height: auto; }
  .hero { min-height: 100svh; }
  .hero__bg img { right: 50%; transform: translateX(50%); height: 80%; }
  .hero__bg img { animation: none; }
  .split-panel, .split-panel--rev { background: var(--pale); padding-top: 0; }
  .split-panel::before { display: none; }
  .split-panel .tex--cubes { position: relative; display: block; width: 100%; height: 160px; }
  .card, .split-panel--rev .card { position: relative; inset: auto; padding: 44px 22px 56px; }
  .media-img { position: relative; inset: auto; width: auto; padding: 90px 22px 0; }
  .media-img img { max-width: 260px; }
  .white-panel__body { width: auto; padding: 60px 22px; }
  .stripes { display: none; }
  .tile { flex-basis: 82%; }
  .dark-panel__body { margin: 0; padding: 80px 22px; }
  .contact__grid { grid-template-columns: 1fr; padding: 60px 22px 20px; }
  .form .row { grid-template-columns: 1fr; }
  .foot { flex-direction: column; padding: 22px; }
  .cta-fixed { right: 14px; bottom: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
