/* ==========================================================================
   SUI REALTY — DESIGN SYSTEM
   --------------------------------------------------------------------------
   Foundation layer: tokens, reset, typography, primitives, motion.

   BRAND PRESERVATION NOTE
   Every brand value below is extracted from the live site's stylesheet
   (/wp-content/themes/suirealty/assets/style.css). The magenta #8e208c is
   used 53 times in the original and is unchanged here. What changes is how
   the colour is *deployed*: the original floods a 200px nav block with flat
   magenta; here it is used as a considered accent with a supporting tonal
   ramp, which reads as more premium without altering brand recognition.

   In Elementor these map 1:1 to Global Colors / Global Fonts.
   ========================================================================== */

:root {
  /* ---- BRAND (unchanged from live site) ------------------------------- */
  --sui-magenta:        #8e208c;  /* Elementor Global: Primary   */
  --sui-ink:            #2b2b2b;  /* Elementor Global: Secondary */
  --sui-grey:           #959595;  /* Elementor Global: Text      */
  --sui-line:           #d7d7d7;  /* Elementor Global: Accent    */

  /* ---- BRAND EXTENSIONS (tonal ramp derived from #8e208c) -------------
     Not new brand colours — tints/shades of the existing magenta, added so
     the brand can carry depth, hover states and gradients accessibly.      */
  --sui-magenta-900:    #3d0d3c;
  --sui-magenta-800:    #5c1259;
  --sui-magenta-700:    #741a72;
  --sui-magenta-600:    #8e208c;  /* = brand */
  --sui-magenta-500:    #a63aa4;
  --sui-magenta-300:    #d9a5d8;
  --sui-magenta-100:    #f2e2f1;
  --sui-magenta-050:    #faf3fa;

  /* ---- NEUTRALS -------------------------------------------------------
     Warmed a few degrees off pure grey. Pure #ffffff/#f5f5f5 reads clinical;
     a warm paper tone is the cheapest possible upgrade to "premium".       */
  --ink-900:            #17161a;
  --ink-800:            #2b2b2b;  /* = brand ink */
  --ink-600:            #424242;  /* from original */
  --ink-500:            #5a5a5a;  /* from original */
  --ink-400:            #7b7a80;
  --ink-300:            #959595;  /* from original */
  --paper:              #ffffff;
  --paper-50:           #faf9fa;
  --paper-100:          #f4f2f4;
  --paper-200:          #e9e6ea;
  --hairline:           #e2dfe4;
  --hairline-strong:    #d7d7d7; /* from original */

  /* ---- SEMANTIC -------------------------------------------------------- */
  --bg:                 var(--paper);
  --bg-alt:             var(--paper-50);
  --bg-invert:          var(--ink-900);
  --text:               var(--ink-800);
  --text-muted:         var(--ink-500);
  --text-subtle:        var(--ink-400);
  --text-invert:        #ffffff;
  --brand:              var(--sui-magenta-600);
  --brand-hover:        var(--sui-magenta-700);
  --focus:              #7b4fff;

  --status-sale:        #1f6f4a;
  --status-sale-bg:     #e7f3ed;
  --status-lease:       var(--sui-magenta-700);
  --status-lease-bg:    var(--sui-magenta-100);

  /* ---- TYPOGRAPHY -----------------------------------------------------
     Original site: Proxima Nova (Typekit kit txt0uzy) + Open Sans.
     Both are RETAINED. Figtree/system faces are prototype fallbacks only —
     in production the existing licensed Typekit kit supplies Proxima Nova.  */
  --font-display: "proxima-nova", "Figtree", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", sans-serif;
  --font-body:    "open-sans", "Open Sans", -apple-system, BlinkMacSystemFont,
                  "Segoe UI", sans-serif;

  /* Fluid type scale — 1.250 (major third) on mobile → 1.333 on desktop.
     clamp() removes the need for per-breakpoint font sizes in Elementor.   */
  --fs-display:  clamp(2.75rem, 1.6rem + 5.1vw, 6.25rem);
  --fs-h1:       clamp(2.25rem, 1.5rem + 3.3vw, 4.25rem);
  --fs-h2:       clamp(1.75rem, 1.3rem + 2.0vw, 3rem);
  --fs-h3:       clamp(1.375rem, 1.15rem + 0.95vw, 1.95rem);
  --fs-h4:       clamp(1.125rem, 1.03rem + 0.42vw, 1.375rem);
  --fs-lead:     clamp(1.0625rem, 0.98rem + 0.42vw, 1.3125rem);
  --fs-body:     1rem;
  --fs-sm:       0.9375rem;
  --fs-xs:       0.8125rem;
  --fs-eyebrow:  0.75rem;

  --lh-tight:    1.04;
  --lh-snug:     1.16;
  --lh-normal:   1.5;
  --lh-relaxed:  1.72;

  --ls-display:  -0.035em;
  --ls-heading:  -0.022em;
  --ls-body:     0;
  --ls-eyebrow:  0.16em;

  /* ---- SPACING (8pt base, fluid at the top end) ------------------------ */
  --sp-1:  0.25rem;  --sp-2: 0.5rem;   --sp-3: 0.75rem;  --sp-4: 1rem;
  --sp-5:  1.5rem;   --sp-6: 2rem;     --sp-7: 2.5rem;   --sp-8: 3rem;
  --sp-9:  4rem;     --sp-10: 5rem;    --sp-11: 6rem;    --sp-12: 8rem;
  --section-y:   clamp(4rem, 2.2rem + 7.5vw, 9rem);
  --section-y-lg:clamp(5.5rem, 2.5rem + 11vw, 12rem);

  /* ---- LAYOUT ---------------------------------------------------------- */
  --container:      1280px;
  --container-wide: 1600px;
  --container-text: 68ch;
  --gutter:         clamp(1.25rem, 0.7rem + 2.4vw, 3.5rem);
  --header-h:       92px;

  /* ---- RADIUS / ELEVATION --------------------------------------------- */
  --r-xs: 4px; --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-xl: 32px;
  --r-pill: 999px;

  /* Layered shadows — two-tone, low-opacity. Single harsh shadows are the
     #1 tell of a dated theme.                                              */
  --sh-xs: 0 1px 2px rgba(23,22,26,.05);
  --sh-sm: 0 1px 2px rgba(23,22,26,.05), 0 2px 6px rgba(23,22,26,.05);
  --sh-md: 0 2px 4px rgba(23,22,26,.04), 0 8px 20px rgba(23,22,26,.07);
  --sh-lg: 0 4px 8px rgba(23,22,26,.04), 0 18px 44px rgba(23,22,26,.10);
  --sh-xl: 0 8px 16px rgba(23,22,26,.05), 0 34px 76px rgba(23,22,26,.14);
  --sh-brand: 0 10px 30px rgba(142,32,140,.24);

  /* ---- MOTION ---------------------------------------------------------- */
  --e-out:   cubic-bezier(.22,.61,.36,1);
  --e-inout: cubic-bezier(.65,.05,.36,1);
  --e-spring:cubic-bezier(.34,1.4,.64,1);
  --t-fast:  .18s;
  --t-base:  .32s;
  --t-slow:  .6s;
  --t-vslow: .9s;

  --z-base: 1; --z-sticky: 100; --z-header: 200; --z-drawer: 300;
  --z-modal: 400; --z-toast: 500;
}

/* ==========================================================================
   RESET
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-heading);
  color: var(--ink-900);
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }

/* blockquote/figure carry a UA default of `margin: 1em 40px`. Left unreset
   that is 80px of phantom horizontal indent inside every testimonial card,
   which collapses the text to a ~10-character measure in a 3-up grid. */
blockquote, figure, figcaption, dl, dd { margin: 0; }

img, svg, video, picture {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button, input, select, textarea {
  font: inherit;
  color: inherit;
  margin: 0;
}

button { background: none; border: 0; cursor: pointer; }

/* Visible, on-brand focus ring. The original theme suppressed focus outlines
   entirely — a WCAG 2.4.7 failure. This restores them everywhere.          */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

::selection { background: var(--sui-magenta-100); color: var(--sui-magenta-900); }

/* ==========================================================================
   ACCESSIBILITY UTILITIES
   ========================================================================== */

/* The `hidden` attribute only sets `display: none` at user-agent level, so any
   component rule with an explicit `display` silently beats it — the element
   stays on screen while every script and test that reads `.hidden` is told it
   is gone. Every toggled thing here (form status, conditional fields, the
   favourites count and empty state) sets its own display, so make the
   attribute authoritative. */
[hidden] { display: none !important; }

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

.skip-link {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: var(--z-toast);
  padding: var(--sp-3) var(--sp-6);
  background: var(--ink-900);
  color: #fff;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: transform var(--t-base) var(--e-out);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ==========================================================================
   LAYOUT PRIMITIVES
   ========================================================================== */

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

.section { padding-block: var(--section-y); }
.section--lg { padding-block: var(--section-y-lg); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.section--alt { background: var(--bg-alt); }
.section--invert { background: var(--bg-invert); color: rgba(255,255,255,.82); }
.section--invert h1, .section--invert h2,
.section--invert h3, .section--invert h4 { color: #fff; }

/* Brand-saturated variant.
   Taken from wealthproperties.ph, the site the client pointed at: the reason
   its branding reads as "prominent" is not the logo (200x42 — smaller than
   ours). It is that the brand navy #2D3F58 owns whole full-bleed sections,
   against a palette of exactly three colours. --bg-invert is near-black, so
   an inverted section here reads as neutral, not as SUI. This one reads as
   SUI. Same structure as --invert; only the ground changes.               */
.section--brand { background: var(--sui-magenta-900); color: rgba(255,255,255,.82); }
.section--brand h1, .section--brand h2,
.section--brand h3, .section--brand h4 { color: #fff; }
.section--brand .lead { color: rgba(255,255,255,.72); }
.section--brand .eyebrow { color: var(--sui-magenta-300); }

.stack > * + * { margin-top: var(--flow, var(--sp-4)); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0,1fr)); }

/* Auto-fit grid: the single most useful responsive primitive. Cards reflow
   without a single media query — maps to Elementor container + min-width.  */
.grid--auto {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

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

/* ==========================================================================
   TYPOGRAPHY PRIMITIVES
   ========================================================================== */

.display {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-display);
  font-weight: 600;
}
.h1 { font-size: var(--fs-h1); line-height: var(--lh-tight); letter-spacing: var(--ls-display); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }
.h4 { font-size: var(--fs-h4); }

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-normal);
  color: var(--text-muted);
}
.section--invert .lead { color: rgba(255,255,255,.72); }

.small { font-size: var(--fs-sm); }
.xs    { font-size: var(--fs-xs); }
.muted { color: var(--text-muted); }
.subtle{ color: var(--text-subtle); }

/* Eyebrow — repeated section label. Gives every section a consistent
   entry point and dramatically improves scannability.                      */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow);
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--center::before { display: none; }
.section--invert .eyebrow { color: var(--sui-magenta-300); }

.text-brand { color: var(--brand); }

/* Accent rule used under section headings */
.rule {
  width: 56px; height: 3px;
  background: var(--brand);
  border-radius: var(--r-pill);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-bd: transparent;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.75rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              background-color var(--t-base) var(--e-out),
              color var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out);
}

/* Micro-interaction: a brand-tinted wipe rises from the bottom on hover.
   Pure CSS, GPU-composited (transform only), no JS.                        */
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sui-magenta-800);
  transform: translateY(101%);
  transition: transform var(--t-base) var(--e-out);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-brand); }
.btn:active { transform: translateY(0); }

.btn .btn__icon {
  transition: transform var(--t-base) var(--e-out);
  flex: none;
}
.btn:hover .btn__icon { transform: translateX(4px); }

.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-bd: var(--hairline-strong);
}
.btn--outline:hover { --btn-fg: #fff; border-color: var(--sui-magenta-800); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink-900);
  --btn-bd: transparent;
  padding-inline: var(--sp-4);
}
.btn--ghost::after { background: var(--paper-100); }
.btn--ghost:hover { --btn-fg: var(--brand); box-shadow: none; }

.btn--light {
  --btn-bg: #fff;
  --btn-fg: var(--ink-900);
}
.btn--light:hover { --btn-fg: #fff; }

.btn--on-dark {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255,255,255,.34);
}
.btn--on-dark::after { background: #fff; }
.btn--on-dark:hover { --btn-fg: var(--ink-900); border-color: #fff; }

.btn--lg { padding: 1.15rem 2.25rem; font-size: var(--fs-body); }
.btn--sm { padding: 0.65rem 1.15rem; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

/* Text link with animated underline */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--brand);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size var(--t-base) var(--e-out);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1.5px; }
.link svg { transition: transform var(--t-base) var(--e-out); }
.link:hover svg { transform: translateX(3px); }

/* ==========================================================================
   BADGES / PILLS
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.4rem 0.75rem;
  border-radius: var(--r-xs);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
}
.badge--sale  { background: var(--status-sale-bg);  color: var(--status-sale); }
.badge--lease { background: var(--status-lease-bg); color: var(--status-lease); }
.badge--prime {
  background: var(--ink-900);
  color: #fff;
}
.badge--glass {
  background: rgba(23,22,26,.55);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--e-out),
              box-shadow var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

/* ==========================================================================
   FORMS
   ========================================================================== */

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field__label {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.input, .select, .textarea {
  width: 100%;
  padding: 0.9rem 1.05rem;
  background: var(--paper);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--r-sm);
  font-size: var(--fs-body);
  color: var(--text);
  transition: border-color var(--t-fast) var(--e-out),
              box-shadow var(--t-fast) var(--e-out),
              background-color var(--t-fast) var(--e-out);
}
.input::placeholder, .textarea::placeholder { color: var(--text-subtle); }

.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-400); }

.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--sui-magenta-100);
}

.textarea { min-height: 150px; resize: vertical; line-height: var(--lh-normal); }

/* Custom select chevron — native arrows are inconsistent across platforms
   and were a visible rough edge on the original filter bar.                */
.select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none'%3E%3Cpath d='M1 1L7 7L13 1' stroke='%235a5a5a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.05rem center;
  cursor: pointer;
}

/* ==========================================================================
   MOTION — SCROLL REVEAL
   --------------------------------------------------------------------------
   Elements opt in with [data-reveal]. JS adds .is-visible via
   IntersectionObserver. Transform+opacity only, so it composites on the GPU
   and never triggers layout — safe on mid-range devices.

   Content is visible by default if JS fails (.no-js escape hatch below).
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition: opacity var(--t-vslow) var(--e-out),
              transform var(--t-vslow) var(--e-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.js [data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(32px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="fade"]  { transform: none; }

.js [data-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  will-change: auto;
}

/* Stagger children: --stagger sets the step, index set inline by JS */
.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity var(--t-slow) var(--e-out),
              transform var(--t-slow) var(--e-out);
  transition-delay: calc(var(--i, 0) * var(--stagger, 80ms));
}
.js [data-stagger].is-visible > * {
  opacity: 1;
  transform: translate3d(0,0,0);
}

/* ---- Line-by-line headline reveal (masked) --------------------------
   Driven entirely by CSS. There is deliberately NO JavaScript in this
   effect and no class to toggle.

   The earlier version started each line at translateY(105%) and waited
   for JS to add .is-visible. That makes the headline — the single most
   important element on the page — invisible until a script succeeds.
   Any condition that delays requestAnimationFrame (a background tab, a
   throttled device, a JS error earlier in the bundle) leaves the H1
   masked and unreadable.

   A keyframe animation with `forwards` needs nothing to trigger it and
   settles at the visible state on its own, so the headline can fail
   only to *not animate*, never to disappear. */
.reveal-line {
  display: block;
  overflow: hidden;          /* the mask; box is auto-height so wrapped
                                text grows it rather than being clipped */
  padding-bottom: .08em;     /* room for descenders inside the mask */
}
.reveal-line > span {
  display: block;
  transform: translateY(105%);
  animation: line-in .95s var(--e-out) forwards;
  animation-delay: calc(var(--i, 0) * 110ms);
}
@keyframes line-in {
  to { transform: translateY(0); }
}

/* NOTE: .reveal-line keeps overflow:hidden at every breakpoint. It is a
   block with auto height, so if the text wraps the box grows to fit and
   nothing is clipped — the mask only ever hides the span while it is
   translated. Releasing the mask on small screens (an earlier attempt at
   "safety") instead let the in-flight headline paint over the paragraph
   below it for the duration of the animation. */

/* ---- REDUCED MOTION -------------------------------------------------
   Honours the OS setting. All reveals resolve instantly; decorative
   animation stops. Nothing becomes unreachable.                        */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal],
  .js [data-stagger] > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .reveal-line > span { transform: none !important; }
}

/* ==========================================================================
   DECORATIVE
   ========================================================================== */

/* Soft brand light bloom — used behind heroes and CTAs for depth.
   A blurred radial gradient is far cheaper than a background video.        */
.bloom {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  pointer-events: none;
  z-index: 0;
}

.noise {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hairline { height: 1px; background: var(--hairline); border: 0; margin: 0; }
