/* =========================================================
   Layout
   Announcement bar, navigation, page frame, section headings, footer
   ========================================================= */
/* ---------- Announcement + Nav ---------- */
.announce { display: flex; align-items: center; justify-content: center; gap: 10px; height: 40px; font-size: 13.5px; color: #c9d1dc; background: var(--ink); transition: color .2s; }
.announce:hover { color: #fff; }
.announce-tag { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; background: var(--brand); color: #fff; letter-spacing: .02em; }

.nav { position: sticky; top: 0; z-index: 50; background: rgba(247,248,250,.78); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(247,248,250,.88); }
.nav-inner { max-width: var(--frame); margin: 0 auto; height: 64px; padding: 0 var(--pad); display: flex; align-items: center; gap: 40px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--brandfont); font-weight: 500; font-size: 25px; letter-spacing: .005em; color: var(--slate); }
.brand-mark { width: 32px; height: 32px; color: var(--slate); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { font-size: 14px; color: var(--text-2); padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(13,17,23,.04); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-toggle { display: none; width: 38px; height: 38px; border-radius: 9px; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 15px; } .nav-toggle span:last-child { top: 22px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-menu { display: none; }

/* ---------- Frame ---------- */
.frame { max-width: var(--frame); margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); position: relative; }
.frame > section { position: relative; border-top: 1px solid var(--line); }
.frame > section::before, .frame > section::after { content: ""; position: absolute; top: -6px; width: 11px; height: 11px; z-index: 2;
  background: linear-gradient(var(--text-3), var(--text-3)) center / 1px 100% no-repeat, linear-gradient(var(--text-3), var(--text-3)) center / 100% 1px no-repeat; }
.frame > section::before { left: -6px; } .frame > section::after { right: -6px; }
.frame > section.hero { border-top: 0; }
.frame > section.hero::before, .frame > section.hero::after { display: none; }

.section { padding: clamp(72px, 10vw, 128px) var(--pad); }
.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-head h2 { margin: 14px 0 16px; }
.sec-head p { color: var(--text-2); font-size: 17px; max-width: 58ch; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--brand); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: currentColor; }
.eyebrow-dark { color: #7fa6f0; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.footer-inner { max-width: var(--frame); margin: 0 auto; padding: 56px var(--pad) 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.f-brand p { color: var(--text-2); font-size: 14.5px; margin: 14px 0 18px; max-width: 30ch; }
.f-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.f-col b { font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.f-col a { color: var(--text-2); transition: color .2s; }
.f-col a:hover { color: var(--text); }
.footer-base { max-width: var(--frame); margin: 0 auto; padding: 20px var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-size: 13px; color: var(--text-3); }
.f-mail { font-size: 14.5px; font-weight: 500; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.f-mail:hover { border-color: var(--text); }
.f-meta { display: grid; gap: 6px; margin-top: 16px; font-size: 14px; color: var(--text-2); }
.f-meta a:hover { color: var(--text); }
.footer-base a:hover { color: var(--text); }

/* ---------- Footer wordmark ---------- */
.fw { max-width: var(--frame); margin: 0 auto; padding: 28px var(--pad) 0; overflow: hidden; user-select: none; }
.fw-row { display: flex; align-items: flex-start; justify-content: center; gap: .08em; font-size: clamp(56px, 15.6vw, 212px); height: .86em; }
.fw-mark { width: .7em; height: .7em; margin-top: .06em; flex-shrink: 0; overflow: visible; }
.fw-mark path { fill: #dde2e9; transition: fill .6s var(--ease); }
.fw-mark .fw-line { fill: var(--brand); transform-box: view-box; transform-origin: 4.8% 95%; transform: scale(0); transition: transform 1.4s var(--ease) .5s; filter: drop-shadow(0 0 6px rgba(29,95,214,.6)); }
.fw.in .fw-line { transform: none; }
.fw.in .fw-mark path:not(.fw-line) { fill: #262e36; }
.fw-text { position: relative; font-weight: 600; letter-spacing: -.065em; line-height: .78; white-space: nowrap; }
.fw-base { display: block; color: #dde2e9; }
.fw-base span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--d) * 55ms); }
.fw.in .fw-base span { transform: none; }
.fw-glow { position: absolute; inset: 0; color: transparent; pointer-events: none; opacity: 0; transition: opacity .8s ease 1s;
  background: radial-gradient(.95em circle at var(--x, 30%) var(--y, 40%), #1d5fd6 0%, #5f92ff 30%, rgba(95,146,255,0) 70%);
  -webkit-background-clip: text; background-clip: text; }
.fw.in .fw-glow { opacity: 1; }
.fw-glow span { display: inline-block; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-cta .btn-dark { display: none; }
  .mobile-menu { display: grid; gap: 4px; max-height: 0; overflow: hidden; padding: 0 var(--pad); transition: max-height .4s var(--ease), padding .4s var(--ease); }
  .mobile-menu.open { max-height: 420px; padding: 8px var(--pad) 20px; border-bottom: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .mobile-menu .btn { margin-top: 12px; border: 0; height: 46px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
/* Corner markers sit 6px outside the frame, so hide them once the frame reaches the screen edges. */
@media (max-width: 1230px) {
  .frame > section::before, .frame > section::after { display: none; }
}
@media (max-width: 640px) {
  .frame { border: 0; }
  .footer-base { flex-direction: column; gap: 6px; }
  .announce { font-size: 12.5px; }
}

/* ---------- Contact menu (nav popover) ---------- */
.contact-pop { position: fixed; inset: 68px max(var(--pad), calc((100vw - var(--frame)) / 2 + var(--pad))) auto auto; margin: 0; width: 300px; max-width: calc(100vw - 32px); padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow-lg); color: var(--text); }
.contact-pop b { display: block; padding: 6px 10px 8px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.contact-pop a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 9px; font-size: 14.5px; font-weight: 500; transition: background .2s; }
.contact-pop a:hover { background: var(--surface-2); }
.contact-pop small { display: block; font-size: 12.5px; font-weight: 400; color: var(--text-3); }
.cp-ic { width: 32px; height: 32px; padding: 7px; flex-shrink: 0; border-radius: 8px; background: var(--brand-50); color: var(--brand); fill: currentColor; }
.cp-ic.wa { background: #e8f8ee; color: #25d366; }
.cp-ic.li { background: #e8f1fa; color: #0a66c2; }
