/* BlueBear Design — styles */

:root {
  --bg: #050b1f;
  --bg-2: #081334;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(160, 190, 255, 0.14);
  --border-strong: rgba(160, 190, 255, 0.28);
  --text: #eef3ff;
  --text-muted: #a9b8d8;
  --text-dim: #7f90b5;
  --blue: #1f6bff;
  --blue-bright: #5b9cff;
  --blue-ice: #bfe0ff;
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1140px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

a { color: var(--blue-bright); text-decoration: none; }
a:hover { color: var(--blue-ice); }

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 16px; top: -48px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--radius-sm);
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 11, 31, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: rgba(5, 11, 31, 0.88);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 650;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand:hover { color: #fff; }
.brand img { width: 36px; height: 36px; }
.brand-light { font-weight: 400; color: var(--text-muted); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 28px);
  font-size: 0.95rem;
}
.site-nav a { color: var(--text-muted); white-space: nowrap; transition: color 0.2s; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta {
  color: var(--text);
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s;
}
.site-nav .nav-cta:hover { border-color: var(--blue-bright); background: rgba(31, 107, 255, 0.12); }

/* Mobile menu (Capabilities / Work / Who We Help): shown only at the mobile breakpoint, where those links are hidden. */
.nav-menu { display: none; position: relative; }
.nav-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  /* The button has its own open/hover state; the default square tap flash clashes with its round shape. */
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s;
}
.nav-menu-toggle:hover,
.nav-menu-toggle[aria-expanded="true"] { border-color: var(--blue-bright); background: rgba(31, 107, 255, 0.12); }
.nav-menu-toggle svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}
.nav-menu-list {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 176px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(8, 19, 52, 0.98);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.6);
}
.nav-menu-list[hidden] { display: none; }
.site-nav .nav-menu-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  white-space: nowrap;
}
.site-nav .nav-menu-list a:hover,
.site-nav .nav-menu-list a:focus-visible { color: var(--text); background: var(--surface-hover); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 10vw, 128px) 0 clamp(64px, 10vw, 120px);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 55% at 78% 42%, rgba(31, 107, 255, 0.28), transparent 70%),
    radial-gradient(ellipse 40% 40% at 10% 0%, rgba(91, 156, 255, 0.10), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(160, 190, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(160, 190, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 20%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.6rem, 6.4vw, 4.75rem);
  line-height: 1.08;
  /* room for descenders — background-clip:text clips glyphs to the element box */
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  font-weight: 700;
  letter-spacing: -0.035em;
  background: linear-gradient(180deg, #ffffff 30%, #bcd3ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
  margin-top: 20px;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  color: var(--blue-ice);
}
.tagline .dot { color: var(--blue-bright); }

.lede {
  margin-top: 24px;
  max-width: 36em;
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--text-muted);
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 8px 28px -10px rgba(31, 107, 255, 0.8);
}
.btn-primary:hover { background: #3a7dff; color: #fff; transform: translateY(-1px); }
.btn-ghost {
  color: var(--text);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { color: #fff; border-color: var(--blue-bright); background: rgba(31, 107, 255, 0.1); }

.hero-mark {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  aspect-ratio: 1;
}
.hero-mark img {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  box-shadow: 0 30px 80px -20px rgba(0, 60, 200, 0.7), 0 0 0 1px rgba(160, 190, 255, 0.15);
  animation: float 9s ease-in-out infinite;
}
.mark-ring {
  position: absolute;
  inset: -9%;
  border-radius: 50%;
  border: 1px solid rgba(160, 190, 255, 0.14);
}
.mark-ring::before {
  content: "";
  position: absolute;
  inset: -12%;
  border-radius: 50%;
  border: 1px dashed rgba(160, 190, 255, 0.10);
  animation: spin 80s linear infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Sections ---------- */

.section {
  padding: clamp(72px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}

.section-head { max-width: 40rem; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}

/* Section CTA: "Start a conversation" above a section's content, aligned right - the same place as
   Selected Work's (right of its project tabs, 18px above the panel). */
.section-cta { display: flex; justify-content: flex-end; margin-bottom: 18px; }
/* A heading followed by the CTA keeps only a small gap, so title -> content is about the button's
   height plus margins (12px + 46px + 18px) instead of the full heading margin plus the button. */
.section-head:has(+ .section-cta) { margin-bottom: 12px; }

/* Capabilities */

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.cap {
  position: relative;
  padding: clamp(24px, 3vw, 36px);
  background: var(--bg);
  transition: background 0.25s;
}
.cap:hover { background: #07112b; }

.cap-num {
  position: absolute;
  top: clamp(24px, 3vw, 36px);
  right: clamp(24px, 3vw, 36px);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cap-icon {
  width: 40px;
  height: 40px;
  padding: 8px;
  margin-bottom: 22px;
  border-radius: 10px;
  background: rgba(31, 107, 255, 0.12);
  border: 1px solid rgba(91, 156, 255, 0.25);
  fill: none;
  stroke: var(--blue-ice);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cap h3 {
  font-size: 1.12rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.cap p { font-size: 0.97rem; color: var(--text-muted); }

/* Work */

.section-work {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}

/* The heading is longer than the others; let it use the full width so it stays on one line on desktop. */
.section-work .section-head { max-width: none; }

.work-tabs { display: grid; gap: 18px; }

/* Tabs on the left, "Start a conversation" on the right; the button drops below when they don't fit. */
.work-tabbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.work-cta { margin-left: auto; }

/* Without JS the tabs can't work, so they stay hidden and every project is listed. */
.work-tablist { display: none; }
.work-tabs.is-tabs .work-tablist {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}

.work-card[hidden] { display: none; }
.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: clamp(32px, 5vw, 64px);
  padding: clamp(28px, 4.5vw, 56px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(31, 107, 255, 0.14), transparent 70%),
    var(--surface);
}

.work-name {
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
/* The selected tab already names the project. */
.work-tabs.is-tabs .work-name { display: none; }

.work-lede {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text);
}

.work-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 28px;
  padding: 10px 18px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  transition: border-color 0.2s, background 0.2s;
}
.work-link svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform 0.2s;
}
.work-link:hover { color: #fff; border-color: var(--blue-bright); background: rgba(31, 107, 255, 0.12); }
.work-link:hover svg { transform: translate(2px, -2px); }

/* Image placeholder until the real project images arrive. */
.work-media {
  display: grid;
  place-items: center;
  margin-top: 28px;
  aspect-ratio: 16 / 10;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: rgba(3, 8, 24, 0.45);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.work-media.has-image {
  border-style: solid;
  border-color: var(--border);
  background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(31, 107, 255, 0.22), transparent 75%), rgba(3, 8, 24, 0.45);
}
.work-media picture { display: block; height: 82%; aspect-ratio: 1; }
.work-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 40, 140, 0.55));
}
/* Photos fill the frame edge to edge instead of floating like a logo. */
.work-media.is-photo { overflow: hidden; }
.work-media.is-photo picture { width: 100%; height: 100%; aspect-ratio: auto; }
.work-media.is-photo img { object-fit: cover; filter: none; }

.highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 32px;
}
.highlights li {
  padding-left: 16px;
  border-left: 2px solid rgba(91, 156, 255, 0.35);
}
.highlights h3 {
  font-size: 1rem;
  font-weight: 620;
  margin-bottom: 4px;
}
.highlights p { font-size: 0.94rem; color: var(--text-muted); }

/* Audience ("I am a…") */

.audience { display: grid; gap: 18px; }

/* Without JS the tabs can't work, so they stay hidden and every panel is listed. */
.audience-tablist { display: none; }
.audience.is-tabs .audience-tablist {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
}
.audience-tab,
.work-tab {
  min-height: 46px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.audience-tab:hover,
.work-tab:hover { color: var(--text); background: var(--surface-hover); }
.audience-tab[aria-selected="true"],
.work-tab[aria-selected="true"] {
  color: #fff;
  background: rgba(31, 107, 255, 0.22);
  border-color: rgba(91, 156, 255, 0.45);
}
.work-tab { padding: 10px 22px; }

.audience-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(26px, 4.5vw, 48px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 60% at 0% 0%, rgba(31, 107, 255, 0.14), transparent 70%),
    var(--surface);
}
.audience-panel[hidden] { display: none; }
.audience-panel h3 {
  margin-top: 10px;
  max-width: 30em;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.audience-panel p:not(.audience-for) { margin-top: 14px; max-width: 46em; color: var(--text-muted); }
.audience-for {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-bright);
}
/* Image on the left, text on the right; images keep their own shape (no cropping). */
.audience-media img {
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, 0.7);
}
/* The selected tab already names the audience. */
.audience.is-tabs .audience-for { display: none; }
.audience.is-tabs .audience-panel h3 { margin-top: 0; }

/* Contact */

.section-contact { text-align: center; }
.contact-inner { max-width: 44rem; }
.section-contact h2 {
  margin-top: 14px;
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.contact-copy { margin-top: 14px; color: var(--text-muted); }
.contact-form {
  display: grid;
  /* One shrinkable column: an implicit auto track grows to the inputs'
     intrinsic width (~20ch), which overflows the card on narrow phones. */
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 40px;
  padding: clamp(22px, 4vw, 36px);
  text-align: left;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(31, 107, 255, 0.12), transparent 70%),
    var(--surface);
}
.field-row {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.field .optional { font-weight: 400; color: var(--text-dim); }
.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: rgba(3, 8, 24, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(91, 156, 255, 0.25);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: #ff8a8a; }

.hp-field {
  position: absolute !important;
  left: -10000px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.turnstile { min-height: 65px; max-width: 100%; }
.contact-form .btn { border: 0; cursor: pointer; font-family: inherit; }
.contact-form .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.form-status { min-height: 1.5em; font-size: 0.95rem; color: var(--text-muted); }
.form-status:empty { display: none; }
.form-status.is-error { color: #ff9e9e; }
.form-status.is-success { color: #8fe3b0; }

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px 24px;
}
.footer-inner > :last-child { justify-self: end; }
.footer-location { color: var(--text-muted); text-align: center; }
.footer-flag { display: inline-block; width: 18px; height: 12px; vertical-align: -1px; }
.footer-location-detail { color: var(--text-dim); }
/* Slightly larger than the text so it stays visible on small screens; line-height 0 keeps the line box unchanged. */
.footer-sep { display: inline-block; margin: 0 0.2em; font-size: 1.4em; font-weight: 700; line-height: 0; vertical-align: -0.1em; color: var(--text-muted); }
.site-footer a { color: var(--text-muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Reveal animation (progressive enhancement) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Nav/hero links target section headings; a slide-in would shift them under the sticky header after the jump. */
.js .section-head.reveal,
.js .section-contact .reveal { transform: none; }

/* ---------- Responsive ---------- */

/* Stack the tagline wherever it would otherwise wrap with a dangling separator. */
@media (max-width: 1100px) {
  .tagline { flex-direction: column; align-items: flex-start; }
  .tagline .dot { display: none; }
}

@media (max-width: 960px) {
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-mark { order: -1; justify-self: start; width: 132px; }
  .mark-ring { display: none; }
  .highlights { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .form-foot .btn { width: 100%; }
  .audience.is-tabs .audience-tablist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience-panel { grid-template-columns: minmax(0, 1fr); }
  .section-cta .btn,
  .work-cta { width: 100%; }
}

/* Header: hamburger menu. The three section links plus Contact need about 580px beside the brand,
   so switch well before that. */
@media (max-width: 720px) {
  .site-nav { gap: 10px; }
  .site-nav > a:not(.nav-cta) { display: none; }
  .site-nav .nav-cta { white-space: nowrap; }
  .nav-menu { display: block; flex-shrink: 0; }
}

@media (max-width: 600px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .footer-inner > :last-child { justify-self: center; }
}

@media (max-width: 380px) {
  .brand-light { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- "Check your email" dialog ---------- */

.dialog {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31, 107, 255, 0.18), transparent 70%),
    #0a1430;
  border: 1px solid var(--border-strong);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(160, 190, 255, 0.06);
  overflow: auto;
}
.dialog::backdrop {
  background: rgba(2, 6, 18, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.dialog[open] { animation: dialog-in 0.22s ease-out; }
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}
.dialog-inner {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: clamp(26px, 5vw, 36px);
  text-align: center;
}
.dialog h2 {
  font-size: 1.45rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.dialog p { color: var(--text-muted); font-size: 0.98rem; }
.dialog p + p { margin-top: 10px; }
.dialog strong { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.dialog .dialog-note {
  margin-top: 16px;
  padding: 10px 14px;
  font-size: 0.9rem;
  color: var(--blue-ice);
  background: rgba(31, 107, 255, 0.1);
  border: 1px solid rgba(91, 156, 255, 0.22);
  border-radius: var(--radius-sm);
}
.dialog form { margin-top: 6px; width: 100%; display: flex; justify-content: center; }
.dialog .btn { border: 0; cursor: pointer; font-family: inherit; min-width: 140px; }

.form-status:focus { outline: none; }

/* ---------- Shared status icon ---------- */

.status-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(31, 107, 255, 0.14);
  border: 1px solid rgba(91, 156, 255, 0.3);
}
.status-icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--blue-ice); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.status-icon.is-success { background: rgba(60, 200, 130, 0.12); border-color: rgba(110, 220, 160, 0.35); }
.status-icon.is-success svg { stroke: #8fe3b0; stroke-width: 2; }

/* ---------- Verification result pages ---------- */

.status-body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
.status-main {
  position: relative;
  flex: 1;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: clamp(48px, 10vw, 96px) 0;
}
.status-main .container { position: relative; }
.status-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 44px);
  text-align: center;
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(31, 107, 255, 0.14), transparent 70%),
    var(--surface);
}
.status-card h1 {
  margin-top: 6px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.status-card p { color: var(--text-muted); }
.status-card .btn { margin-top: 12px; border: 0; cursor: pointer; font-family: inherit; }
.status-card form { display: flex; justify-content: center; }
.js-only { display: none; }
.js .js-only { display: block; }
.js #verify-form { display: none; }

.dialog .masked-email-link[href] {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(91, 156, 255, 0.55);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s, color 0.2s;
}
.dialog .masked-email-link[href]:hover {
  color: #fff;
  text-decoration-color: var(--blue-bright);
}
