/* LongTable public site — 2F Pulse identity, light theme */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/fonts/PlusJakartaSans.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --teal: #0F766E;
  --teal-deep: #115E59;
  --blue: #2563EB;
  --peach: #FBBF77;
  --ember: #F2955A;
  --ink: #0F172A;
  --slate: #64748B;
  --slate-light: #94A3B8;
  --line: #E2E8F0;
  --bg: #F4F6F9;
  --card: #FFFFFF;
  --dark: #0B1220;
  --radius-card: 20px;
  --radius-btn: 12px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--teal); }
a:hover { color: var(--teal-deep); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; color: #fff; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
.brand-home {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}
.brand-home img { width: 32px; height: 32px; }
.brand-home .brand-name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  text-decoration: none;
  color: var(--slate);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
}
.site-nav a:hover { color: var(--teal-deep); background: rgba(15, 118, 110, 0.07); }
.site-nav a[aria-current="page"] { color: var(--teal); }

/* ---------- Hero / page intro ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(15, 118, 110, 0.08);
  border: 1px solid rgba(15, 118, 110, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}
h1 {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.lede {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--slate);
  max-width: 56ch;
  margin-bottom: 28px;
}
.hero-mark {
  display: flex;
  justify-content: center;
}
.hero-mark img, .hero-mark svg { width: min(320px, 70vw); height: auto; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  border-radius: var(--radius-btn);
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-deep); color: #fff; }
.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover { background: #F8FAFC; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate);
  margin-top: 20px;
}
.status-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ember);
  flex: none;
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section.alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
h2 {
  font-size: clamp(24px, 3.4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.section-head p { color: var(--slate); font-size: 17px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.section.alt .card { background: var(--bg); box-shadow: none; }
.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.card p { font-size: 15px; color: var(--slate); }
.card .glyph {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 118, 110, 0.09);
  margin-bottom: 16px;
}
.card .glyph svg { width: 24px; height: 24px; }

/* ---------- Content pages (legal, about, contact) ---------- */
.page { padding: 56px 0 72px; }
.page-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }
.page h1 { font-size: clamp(28px, 4vw, 38px); }
.updated { font-size: 14px; color: var(--slate); margin-bottom: 28px; }
.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 30px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
  margin-bottom: 18px;
}
.content-card h2 { font-size: 20px; margin: 26px 0 8px; }
.content-card h2:first-child { margin-top: 0; }
.content-card p, .content-card li { font-size: 15.5px; margin-bottom: 10px; }
.content-card ul { padding-left: 22px; margin-bottom: 10px; }
.content-card .muted { color: var(--slate); font-size: 14px; }

dl.fact-list { display: grid; gap: 14px; }
dl.fact-list dt {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
}
dl.fact-list dd { font-size: 16px; margin: 2px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: #CBD5E1;
  padding: 52px 0 40px;
  margin-top: 72px;
}
.site-footer a { color: #E2E8F0; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer-legal { font-size: 13.5px; line-height: 1.7; color: #94A3B8; }
.footer-legal strong { color: #CBD5E1; font-weight: 600; }
.site-footer h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #64748B;
  margin-bottom: 12px;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { text-decoration: none; font-size: 14.5px; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 36px;
  padding-top: 20px;
  font-size: 13px;
  color: #64748B;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { padding: 48px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-mark { order: -1; }
  .hero-mark img { width: min(200px, 50vw); }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 560px) {
  .site-header .wrap { justify-content: center; }
  .site-nav { justify-content: center; }
  .section { padding: 40px 0; }
  .content-card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Pulse identity reveal + continuous radar sweep ----------
   Reveal follows the 2F Pulse motion spec (~1.05s, plays once). The sweep then
   rotates continuously for the life of the page — a deliberate website-only
   amendment to the locked "play once" rule (owner decision, 2026-07-17).
   With animations off (Reduce Motion / old browsers) the static mark shows. */
svg.pulse-reveal { aspect-ratio: 1 / 1; }
.pulse-reveal .pr-sweep,
.pulse-reveal .pr-ping { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .pulse-reveal .pr-core {
    transform-box: view-box;
    transform-origin: 50px 50px;
    animation: pr-core-in 180ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
  .pulse-reveal .pr-arc-support,
  .pulse-reveal .pr-arc-primary {
    stroke-dasharray: 1;
    animation: pr-draw 340ms cubic-bezier(0.4, 0, 0.2, 1) 120ms both;
  }
  .pulse-reveal .pr-blips {
    animation: pr-fade 220ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both;
  }
  .pulse-reveal .pr-sweep {
    transform-box: view-box;
    transform-origin: 50px 50px;
    /* fade in once, then rotate forever (linear = steady radar) */
    animation:
      pr-sweep-in 400ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both,
      pr-sweep-rotate 8s linear 300ms infinite;
  }
  .pulse-reveal .pr-arc-contact {
    animation: pr-fade 160ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms both;
  }
  .pulse-reveal .pr-contact {
    transform-box: view-box;
    transform-origin: 74.57px 32.79px;
    animation: pr-contact-in 160ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms both;
  }
  .pulse-reveal .pr-ping {
    transform-box: view-box;
    transform-origin: 74.57px 32.79px;
    /* forwards (not both): base opacity 0 must hold until the 700ms ping window */
    animation: pr-ping 200ms cubic-bezier(0.2, 0.8, 0.2, 1) 700ms forwards;
  }

  /* Radar afterglow: each blip flares as the sweep's bright edge (350° at rest,
     rotating 360°/8s from t=300ms) crosses its angle, then decays.
     hit time = 300ms + 8000 × ((blipAngle − 350°) mod 360) / 360 */
  .pulse-reveal .pr-blips circle,
  .pulse-reveal .pr-contact circle:nth-of-type(2) {
    transform-box: fill-box;
    transform-origin: center;
  }
  .pulse-reveal .pr-blips circle:nth-of-type(1) { /* 150° */
    animation: pr-blip-glow 8s linear 3856ms infinite;
  }
  .pulse-reveal .pr-blips circle:nth-of-type(2) { /* 210° */
    animation: pr-blip-glow 8s linear 5189ms infinite;
  }
  .pulse-reveal .pr-blips circle:nth-of-type(3) { /* 95° */
    animation: pr-blip-glow 8s linear 2633ms infinite;
  }
  .pulse-reveal .pr-contact circle:nth-of-type(2) { /* warm contact, 325° */
    animation: pr-contact-glow 8s linear 7744ms infinite;
  }
}

@keyframes pr-core-in {
  from { transform: scale(0.6); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pr-draw {
  from { stroke-dashoffset: 1; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}
@keyframes pr-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pr-sweep-in {
  from { opacity: 0; }
  to { opacity: 0.8; }
}
@keyframes pr-sweep-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes pr-contact-in {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes pr-ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}
/* 0% = beam arrives: fast flare (~120ms), slow afterglow decay (~1.5s), then rest */
@keyframes pr-blip-glow {
  0% { transform: scale(1); fill: #0F766E; }
  1.5% { transform: scale(1.45); fill: #14B8A6; }
  20% { transform: scale(1); fill: #0F766E; }
  100% { transform: scale(1); fill: #0F766E; }
}
@keyframes pr-contact-glow {
  0% { transform: scale(1); fill: #F2955A; }
  1.5% { transform: scale(1.4); fill: #FBBF77; }
  20% { transform: scale(1); fill: #F2955A; }
  100% { transform: scale(1); fill: #F2955A; }
}
