/* Shared chrome and atmosphere for Discuss / Privacy / Terms.
   Loaded after each page's inline styles so spacing and type win. */

.site-header {
  padding-top: max(12px, env(safe-area-inset-top));
  padding-bottom: 12px;
}
.site-header .nav { margin-top: 0; }

.enquiry-hero { padding-block: clamp(40px, 5.5vw, 80px) !important; }
.enquiry-hero h1 {
  max-width: 14ch !important;
  margin-top: 16px !important;
  font-size: clamp(48px, 4.4vw, 64px) !important;
  line-height: 1.02 !important;
}
.hero {
  padding: clamp(40px, 5.5vw, 80px) 0 clamp(36px, 4.5vw, 64px) !important;
}
.hero h1 {
  max-width: 12ch !important;
  font-size: clamp(48px, 4.4vw, 64px) !important;
  line-height: 1.02 !important;
}

.brand {
  letter-spacing: .08em;
  font-weight: 700;
}
.brand-mark {
  overflow: visible;
  border-radius: 0 !important;
  background: #000 !important;
  box-shadow: none !important;
  -webkit-mask: url("assets/brand/logo.png") center / contain no-repeat;
  mask: url("assets/brand/logo.png") center / contain no-repeat;
}
html[data-skin="nocturne"] .brand-mark {
  background: currentColor !important;
}

#grain {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
#vignette {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(11, 23, 52, 0.08) 100%);
}
html[data-skin="nocturne"] #vignette {
  background: radial-gradient(120% 92% at 50% 38%, transparent 34%, rgba(0, 0, 0, 0.58) 100%);
}
.site-stars {
  position: fixed;
  z-index: 6;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
}

.nav-links {
  align-items: center;
}

.brief-list li small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--body);
}
.hero-side > p { max-width: 46ch; }

html[data-skin="nocturne"] {
  --surface: #030712;
  --surface-alt: #0a0f1a;
  --dark: #010409;
  --dark-2: #0f172a;
}

/* The brief band is plain --paper now, the same colour as the rest of the
   site, so it needs no fade from the page into itself. */

/* Homepage footer, ported for Discuss / Privacy / Terms. */
.site-footer {
  padding-top: clamp(20px, 2.5vw, 36px);
  padding-bottom: 0;
  background: var(--paper);
}
.site-footer > .container {
  max-width: 100%;
  padding-inline: clamp(12px, 2vw, 28px);
  padding-bottom: 0;
}
.footer-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(16px, 2.2vw, 28px) clamp(18px, 2.8vw, 38px) 14px;
  border-radius: clamp(22px, 2.5vw, 32px) clamp(22px, 2.5vw, 32px) 0 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 0;
  background: linear-gradient(170deg, #0c162c 0%, #060b17 100%);
  box-shadow: 0 -12px 40px rgba(5, 9, 20, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  color: #f4f0e7;
  margin-bottom: 0;
}
.footer-shell::before {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(240px, 45vw, 520px);
  height: 160px;
  background: radial-gradient(ellipse at center, rgba(83, 103, 238, 0.18), transparent 70%);
  filter: blur(40px);
  content: "";
  pointer-events: none;
}
.footer-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  border-radius: inherit;
}
.footer-topline {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  padding-bottom: clamp(12px, 1.5vw, 18px);
}
.footer-intro h2 {
  max-width: none;
  margin-top: 4px;
  margin-bottom: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2vw, 1.95rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.footer-wordmark-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.footer-wordmark-display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 3.2vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.65) 60%, rgba(154, 184, 255, 0.28) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  user-select: none;
  filter: drop-shadow(0 2px 14px rgba(83, 103, 238, 0.15));
}
.footer-wordmark-kicker {
  color: rgba(244, 240, 231, 0.48);
  font-family: var(--mono);
  font-size: 0.52rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
  margin-bottom: 0;
  white-space: nowrap;
}
.footer-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.footer-cta-button {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  background: #478aff;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 6px 20px -3px rgba(71, 138, 255, 0.45);
}
.footer-cta-button:hover,
.footer-cta-button:focus-visible {
  transform: translateY(-2px);
  background: #6ea3ff;
  color: #ffffff;
  box-shadow: 0 10px 28px -2px rgba(71, 138, 255, 0.6);
}
.footer-cta-button .button-copy { display: inline-flex; align-items: center; gap: 8px; }
.footer-email {
  color: rgba(244, 240, 231, 0.62);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
}
.footer-email:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.footer-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 14px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.footer-shell .footer-col {
  padding-inline: clamp(14px, 2vw, 24px);
  position: relative;
}
.footer-shell .footer-col:not(:last-child) {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-shell .footer-col h3 {
  color: rgba(244, 240, 231, 0.48);
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 6px;
  text-align: center;
}
.footer-shell .footer-col ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px clamp(8px, 1.4vw, 16px);
  font-size: 0.78rem;
  color: rgba(244, 240, 231, 0.72);
}
.footer-shell .footer-col a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .footer-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-top: 6px;
  color: rgba(244, 240, 231, 0.42);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

html[data-skin="nocturne"] .footer-cta-button {
  background: #478aff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 24px -3px rgba(71, 138, 255, 0.45);
}
html[data-skin="nocturne"] .footer-cta-button .button-copy {
  color: #061026;
  font-weight: 700;
}

@media (max-width: 860px) {
  .footer-topline {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 16px;
  }
  .footer-cta { align-items: center; }
  .footer-intro h2 { text-align: center; }
  .footer-grid { grid-template-columns: 1fr; gap: 12px; }
  .footer-shell .footer-col { padding-inline: 0; }
  .footer-shell .footer-col:not(:last-child) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
  }
}

