/* ── Tern Digital Solutions — Arctic brand system ─────────────────────
   Palette inspired by the arctic tern's migratory range: polar skies,
   glacial blues, sea ice whites, polar-night navy. */

:root {
  /* Brand: deep #00466F · light #CFE1ED · lightest #E4EFF5 */
  --ice: #f4f9fc;
  --snow: #ffffff;
  --mist: #e4eff5;
  --sky: #cfe1ed;
  --glacier: #6fa6c9;
  --arctic: #1b689a;
  --arctic-deep: #00466f;
  --polar-night: #032e49;
  --polar-abyss: #021f33;
  --ink: #0e2c40;
  --ink-soft: #3d5d74;
  --ink-on-dark: #cfe1ed;
  --ink-on-dark-dim: #7fa0b8;
  --hairline: rgba(14, 44, 64, 0.12);
  --hairline-dark: rgba(207, 225, 237, 0.14);
  --radius: 14px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-accent: "Instrument Serif", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--ice);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

/* ── Header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 250, 253, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hairline);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand img.mark { height: 38px; width: auto; }
.brand img.tile { height: 34px; width: 34px; border-radius: 8px; }

.brand .llc { font-weight: 400; color: var(--ink-soft); font-size: 13px; margin-left: 2px; }

.site-nav { display: flex; align-items: center; gap: 6px; }

.site-nav .nav-link {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.15s, background 0.15s;
}

.site-nav .nav-link:hover { color: var(--ink); background: var(--mist); }
.site-nav .nav-link.active { color: var(--ink); background: var(--mist); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14.5px;
  padding: 11px 22px;
  border-radius: 999px;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--polar-night);
  color: var(--snow);
  box-shadow: 0 4px 14px rgba(11, 31, 48, 0.25);
}
.btn-primary:hover { background: var(--polar-abyss); }

.btn-light {
  background: var(--snow);
  color: var(--polar-night);
  box-shadow: 0 4px 14px rgba(11, 31, 48, 0.12);
}

.btn-ghost {
  background: transparent;
  color: var(--polar-night);
  border: 1.5px solid rgba(11, 31, 48, 0.35);
}
.btn-ghost:hover { border-color: var(--polar-night); }

.btn .arrow { font-size: 15px; }

/* ── Hero ───────────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(90% 70% at 85% 0%, rgba(255, 255, 255, 0.75) 0%, rgba(255, 255, 255, 0) 55%),
    linear-gradient(178deg, var(--sky) 0%, var(--mist) 52%, var(--ice) 100%);
  padding: 96px 0 88px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 45% at 12% 88%, rgba(90, 169, 214, 0.28) 0%, rgba(90, 169, 214, 0) 70%);
  pointer-events: none;
}

.hero .wrap { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--arctic-deep);
  margin-bottom: 26px;
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 26px;
  height: 1.5px;
  background: var(--arctic-deep);
  opacity: 0.5;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: var(--polar-night);
  max-width: 13ch;
}

.hero h1 .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--arctic-deep);
}

.hero .lede {
  margin-top: 28px;
  max-width: 52ch;
  font-size: 18px;
  color: var(--ink-soft);
}

.hero-actions { display: flex; gap: 14px; margin-top: 36px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 34px;
  margin-top: 56px;
  flex-wrap: wrap;
}

.hero-meta .meta {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--arctic-deep);
}

.hero-meta .meta span { color: var(--ink-soft); font-weight: 500; }

.hero-bird {
  position: absolute;
  right: 48px;
  top: 60px;
  width: min(380px, 32vw);
  opacity: 0.95;
  pointer-events: none;
}

.hero-bird-2 {
  position: absolute;
  right: 110px;
  top: 350px;
  width: min(120px, 11vw);
  opacity: 0.55;
  pointer-events: none;
}

/* ── Dark sections ──────────────────────────────────────────────────── */

.section { padding: 96px 0; }

.section-dark {
  background: linear-gradient(180deg, var(--polar-night) 0%, var(--polar-abyss) 100%);
  color: var(--ink-on-dark);
}

.section-head { max-width: 640px; margin-bottom: 56px; }

.section-head .kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 16px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  color: var(--polar-night);
}

.section-dark .section-head h2 { color: var(--snow); }

.section-head p { margin-top: 18px; font-size: 16.5px; color: var(--ink-soft); }
.section-dark .section-head p { color: var(--ink-on-dark-dim); }

/* Services */

.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }

/* Horizontal accordion */

.accordion { display: flex; gap: 14px; height: 360px; }

.acc-item {
  position: relative;
  flex: 1 1 0;
  background: rgba(200, 220, 234, 0.06);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: flex-grow 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, border-color 0.3s;
}

.acc-item:hover { border-color: rgba(111, 166, 201, 0.5); }

.acc-item.active {
  flex-grow: 5.5;
  background: rgba(111, 166, 201, 0.08);
  border-color: rgba(111, 166, 201, 0.5);
  cursor: default;
}

.acc-tab {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 28px 0;
  opacity: 1;
  transition: opacity 0.25s;
}

.acc-tab .num { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--glacier); }

.acc-label {
  writing-mode: vertical-rl;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--ink-on-dark);
  max-height: 250px;
  text-align: center;
}

.acc-item.active .acc-tab { opacity: 0; pointer-events: none; }

.acc-body {
  position: absolute;
  inset: 0;
  width: 480px;
  padding: 34px 30px;
  opacity: 0;
  transition: opacity 0.3s;
}

.acc-item.active .acc-body { opacity: 1; transition-delay: 0.2s; }

.acc-body .num { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--glacier); }

.acc-body h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--snow);
}

.acc-body p { margin-top: 12px; font-size: 15px; color: var(--ink-on-dark-dim); max-width: 46ch; }

.acc-body .via { margin-top: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glacier); }
.acc-body .via + .via { margin-top: 6px; }
.acc-body .via.soon { color: var(--ink-on-dark-dim); }

.card {
  background: rgba(200, 220, 234, 0.06);
  border: 1px solid var(--hairline-dark);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: transform 0.2s, border-color 0.2s, background 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(90, 169, 214, 0.5);
  background: rgba(90, 169, 214, 0.08);
}

.card .num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--glacier);
}

.card h3 {
  margin-top: 18px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--snow);
}

.card p { margin-top: 12px; font-size: 15px; color: var(--ink-on-dark-dim); }

.card .via { margin-top: 18px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--glacier); }
.card .via + .via { margin-top: 6px; }
.card .via.soon { color: var(--ink-on-dark-dim); }

/* Brands */

.brand-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.brand-card {
  background: var(--snow);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 38px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 2px 10px rgba(16, 41, 58, 0.04);
}

.brand-card h3 { font-size: 22px; letter-spacing: -0.02em; }

.brand-card .tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--arctic-deep);
  background: var(--mist);
  padding: 5px 12px;
  border-radius: 999px;
}

.brand-card p { color: var(--ink-soft); font-size: 15.5px; flex: 1; }

.brand-card a.link {
  color: var(--arctic-deep);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
}
.brand-card a.link:hover { text-decoration: underline; }

.brand-card.soon { border-style: dashed; background: transparent; box-shadow: none; }
.brand-card.soon .tag { color: var(--ink-soft); background: rgba(16,41,58,0.06); }

/* Story */

.story {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.story .big {
  font-size: clamp(24px, 3vw, 32px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--polar-night);
}

.story .big .accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--arctic-deep);
}

.story p { margin-top: 20px; color: var(--ink-soft); font-size: 16px; }

.story-visual {
  background: linear-gradient(165deg, var(--sky) 0%, var(--mist) 60%, var(--snow) 100%);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}

.story-visual img.tern { width: 70%; position: relative; }

.story-visual .route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* ── CTA band ───────────────────────────────────────────────────────── */

.cta {
  background:
    radial-gradient(80% 90% at 90% 10%, rgba(255,255,255,0.35) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(120deg, var(--arctic) 0%, var(--glacier) 100%);
  color: var(--snow);
  padding: 88px 0;
}

.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.cta h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 800;
  max-width: 16ch;
}

.cta p { margin-top: 14px; color: rgba(255,255,255,0.85); max-width: 44ch; }

.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Footer ─────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--polar-abyss);
  color: var(--ink-on-dark-dim);
  padding: 72px 0 0;
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--hairline-dark);
}

.footer-top .col h4 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--glacier);
  margin-bottom: 18px;
}

.footer-top .col a {
  display: block;
  color: var(--ink-on-dark-dim);
  text-decoration: none;
  font-size: 14.5px;
  margin-bottom: 10px;
}
.footer-top .col a:hover { color: var(--snow); }

.footer-top .intro { font-size: 14.5px; max-width: 30ch; }

.footer-top .intro .brand { color: var(--snow); margin-bottom: 14px; }
.footer-top .intro .email {
  display: inline-block;
  margin-top: 16px;
  color: var(--snow);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1.5px solid var(--glacier);
  padding-bottom: 2px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 24px 0;
  font-size: 13px;
}

.footer-legal a { color: var(--ink-on-dark-dim); text-decoration: none; margin-left: 18px; }
.footer-legal a:hover { color: var(--snow); }

.footer-wordmark {
  font-size: clamp(80px, 14vw, 190px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-align: center;
  padding-bottom: 24px;
  background: linear-gradient(180deg, rgba(90,169,214,0.35) 0%, rgba(90,169,214,0.05) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  white-space: nowrap;
}

/* ── Legal pages ────────────────────────────────────────────────────── */

.legal-hero {
  background: linear-gradient(178deg, var(--sky) 0%, var(--ice) 100%);
  padding: 72px 0 56px;
}

.legal-hero h1 {
  font-size: clamp(34px, 5vw, 54px);
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--polar-night);
}

.legal-hero .updated { margin-top: 14px; color: var(--ink-soft); font-size: 14.5px; }

.legal-body { padding: 64px 0 96px; }

.legal-body .wrap { max-width: 780px; }

.legal-body h2 {
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--polar-night);
  margin: 44px 0 14px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body p, .legal-body li { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }

.legal-body ul { padding-left: 22px; margin-bottom: 16px; }

.legal-body a { color: var(--arctic-deep); }

.legal-note {
  background: var(--mist);
  border-left: 3px solid var(--glacier);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  font-size: 14.5px;
  color: var(--ink-soft);
  margin: 24px 0;
}

/* ── Responsive ─────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .card-grid { grid-template-columns: 1fr; }
  .accordion { flex-direction: column; height: auto; }
  .acc-item, .acc-item.active { flex: none; }
  .acc-tab { display: none; }
  .acc-body { position: static; width: auto; opacity: 1; }
  .brand-grid { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .site-nav .nav-link { display: none; }
  .hero-bird, .hero-bird-2 { display: none; }
}
