/* ==========================================================================
   Footer CTA — the "worthy of a billion-dollar company" close.
   Huge kinetic headline, animated aurora border, magnetic entry point.
   ========================================================================== */

.footer-cta {
  position: relative;
  padding: var(--space-7) 0 var(--space-6);
  text-align: center;
  overflow: hidden;
  border-top: 1px solid var(--hairline);
}

.footer-cta::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 90%;
  height: 1px;
  transform: translateX(-50%);
  background: var(--aurora);
  opacity: 0.5;
  filter: blur(0.5px);
}

.footer-cta::after {
  content: "";
  position: absolute;
  top: -20%;
  left: 50%;
  width: 60vw;
  height: 60vw;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(95,212,216,0.09), transparent 65%);
  pointer-events: none;
}

.footer-cta-eyebrow { margin-bottom: 20px; }

.footer-cta h2 {
  font-size: clamp(38px, 6.4vw, 96px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 920px;
  margin: 0 auto;
}

.footer-cta h2 .accent {
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.footer-cta-sub {
  max-width: 480px;
  margin: 24px auto 0;
  font-size: 17px;
  color: var(--paper-dim);
}

.footer-cta-actions {
  margin-top: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.footer-cta-actions .btn-primary { padding: 18px 38px; font-size: 15px; }

/* ==========================================================================
   Footer — dynamic, not an afterthought
   ========================================================================== */

.site-footer {
  padding: var(--space-6) 0 var(--space-3);
  border-top: 1px solid var(--hairline);
  position: relative;
}

.footer-orb-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  letter-spacing: 0.06em;
}
.footer-orb-caption .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(95,212,216,0.6);
  animation: dot-pulse 2.6s ease-in-out infinite;
}

.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  color: var(--silver);
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.footer-social a:hover { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.footer-social a svg { width: 16px; height: 16px; }

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  padding-bottom: var(--space-5);
}

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr; }
}

.footer-brand-block .nav-brand { margin-bottom: 18px; }
.footer-brand-block p { max-width: 320px; font-size: 14px; color: var(--silver); line-height: 1.6; }

.footer-col h4 {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--silver-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--paper-dim); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: var(--space-3);
  border-top: 1px solid var(--hairline-soft);
  font-size: 12px;
  color: var(--silver-dim);
}

@media (min-width: 700px) {
  .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

.footer-marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 18px 0;
  margin-bottom: var(--space-4);
}

.footer-marquee-track {
  display: inline-flex;
  gap: 48px;
  animation: marquee 32s linear infinite;
}

.footer-marquee-track span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--silver-dim);
  letter-spacing: 0.04em;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ==========================================================================
   Contact form
   ========================================================================== */

.contact-form {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: var(--graphite);
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 9px;
}

.form-label .optional { color: var(--silver-dim); text-transform: none; letter-spacing: 0; }

.form-input, .form-textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus { border-color: var(--cyan); }

select.form-input {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b9098' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding-right: 40px;
}

.form-textarea { resize: vertical; min-height: 110px; }

.form-error { color: #f77b6b; font-size: 12px; margin-top: 6px; }

.form-submit {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
  border: none;
  padding: 15px;
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: background 0.2s ease;
}
.form-submit:hover { background: var(--cyan); }
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status { text-align: center; font-size: 14px; margin-top: 16px; }
.form-status.success { color: var(--cyan); }
.form-status.error { color: #f77b6b; }

/* ==========================================================================
   Interior page header
   ========================================================================== */

.page-header {
  max-width: 760px;
  margin: 0 auto;
  padding: 170px 0 var(--space-4);
  text-align: center;
}

.page-header h1 { font-size: clamp(32px, 4.6vw, 56px); }
.page-header .lede { margin-top: 20px; font-size: 17px; color: var(--paper-dim); }

/* ==========================================================================
   Contact — split layout, form left, "why reach out" ledger right
   ========================================================================== */

.contact-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: start;
}

@media (min-width: 960px) {
  .contact-split { grid-template-columns: 1.1fr 0.9fr; gap: var(--space-5); }
}

.contact-split .contact-form { margin: 0; max-width: none; position: relative; }

.contact-split .contact-form::before {
  content: "";
  position: absolute;
  top: -1px; left: 6%;
  width: 88%;
  height: 1px;
  background: var(--aurora);
  opacity: 0.55;
}

.contact-info-panel {
  padding: var(--space-4);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--graphite), var(--ink-raised));
  height: 100%;
}

.contact-info-panel .status-strip { margin-bottom: var(--space-4); }

.contact-stat-list { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }

.contact-stat .ledger-value { font-size: clamp(26px, 3vw, 36px); }
.contact-stat-label { font-size: 13px; color: var(--silver); margin-top: 4px; }

.contact-info-panel h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-dim);
  margin-bottom: 14px;
}

.contact-channel-list { display: flex; flex-direction: column; gap: 2px; margin-bottom: var(--space-3); }

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 4px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 14px;
  color: var(--paper-dim);
  transition: color 0.2s ease, gap 0.2s ease;
}
.contact-channel:hover { color: var(--cyan); gap: 16px; }
.contact-channel svg { width: 13px; height: 13px; flex-shrink: 0; color: var(--cyan); }

/* ==========================================================================
   404 — an actual moment, not a dead end
   ========================================================================== */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  text-align: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.notfound-orbit { position: absolute; inset: 0; pointer-events: none; z-index: 0; }

.notfound-orbit span {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  opacity: 0.5;
}
.notfound-orbit span:nth-child(1) { width: 420px; height: 420px; top: 50%; left: 50%; margin: -210px 0 0 -210px; animation: orbit-spin 40s linear infinite; }
.notfound-orbit span:nth-child(2) { width: 620px; height: 620px; top: 50%; left: 50%; margin: -310px 0 0 -310px; animation: orbit-spin 60s linear infinite reverse; }
.notfound-orbit span:nth-child(3) { width: 820px; height: 820px; top: 50%; left: 50%; margin: -410px 0 0 -410px; animation: orbit-spin 90s linear infinite; opacity: 0.28; }

.notfound-orbit span::before {
  content: "";
  position: absolute;
  top: -3px; left: 50%;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px 2px rgba(95,212,216,0.7);
}
.notfound-orbit span:nth-child(2)::before { background: var(--violet); box-shadow: 0 0 10px 2px rgba(139,124,246,0.7); }
.notfound-orbit span:nth-child(3)::before { background: var(--blue); box-shadow: 0 0 10px 2px rgba(79,140,255,0.6); }

@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.notfound > * { position: relative; z-index: 1; }

.notfound .code {
  font-family: var(--font-mono);
  font-size: clamp(72px, 14vw, 140px);
  font-weight: 700;
  line-height: 1;
  background: var(--aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  position: relative;
}

.notfound .code::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--cyan);
  opacity: 0;
  -webkit-background-clip: initial;
  background-clip: initial;
  animation: glitch-flicker 5s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes glitch-flicker {
  0%, 92%, 100% { opacity: 0; transform: translate(0,0); }
  93% { opacity: 0.5; transform: translate(-3px, 1px); }
  94% { opacity: 0; }
  95% { opacity: 0.4; transform: translate(3px, -1px); }
  96% { opacity: 0; }
}

.notfound-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}

.notfound-links a {
  font-size: 13px;
  color: var(--silver);
  padding: 8px 16px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.notfound-links a:hover { color: var(--cyan); border-color: var(--cyan-dim); }

@media (prefers-reduced-motion: reduce) {
  .notfound-orbit span { animation: none; }
  .notfound .code::after { animation: none; }
}
