/**
 * Lumina — interior page styling.
 * Mini hero + editor content, matching the editorial system.
 */

.mini-hero {
  background: var(--linen);
  padding: clamp(7rem, 12vw, 10rem) var(--gutter) clamp(3rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}

.mini-hero::after {
  content: "";
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 0;
  height: 1px;
  background: var(--rule);
  pointer-events: none;
}

.mini-hero__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  position: relative;
}

.mini-hero__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: var(--ink-soft);
  margin: 0;
  max-width: 18ch;
}

.mini-hero__sub {
  margin: 0;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--ash);
  max-width: 56ch;
  line-height: 1.55;
}

/* Contact mini-hero: same WebGL bacteria / aurora / matrix stack as homepage hero */
.mini-hero--cells {
  overflow: hidden;
  isolation: isolate;
}

.mini-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.mini-hero__bg.is-ready {
  opacity: 0.85;
}

.mini-hero__bg canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.mini-hero__bg-veil {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(90% 72% at 6% 30%, rgba(10, 13, 18, 0.9) 0%, rgba(10, 13, 18, 0.55) 38%, rgba(10, 13, 18, 0) 65%),
    radial-gradient(70% 55% at 85% 45%, rgba(10, 13, 18, 0.55) 0%, rgba(10, 13, 18, 0.2) 42%, rgba(10, 13, 18, 0) 68%),
    linear-gradient(to bottom, rgba(10, 13, 18, 0) 35%, rgba(10, 13, 18, 0.5) 82%, rgba(10, 13, 18, 0.94) 100%);
}

/* Bottom rule from .mini-hero::after sits above the veil but under copy */
.mini-hero--cells::after {
  z-index: 0;
}

.mini-hero--cells .mini-hero__inner {
  position: relative;
  z-index: 1;
}

/* Contact page lets the subtitle run the full container width */
.lumina-contact-page .mini-hero__sub {
  max-width: none;
}

/* —————————————————————————————————— */
/* Contact: full-viewport WebGL + single frosted panel */
/* —————————————————————————————————— */
.lumina-contact-page .lumina-contact-canvas {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 100dvh);
}

/* Single fixed canvas behind all contact content (see template-contact.php) */
.lumina-contact-page .lumina-contact-canvas__bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.lumina-contact-page .lumina-contact-canvas__bg.is-ready {
  opacity: 0.85;
}

.lumina-contact-page .lumina-contact-canvas__bg canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

/* Light wash so the animation reads through gaps; content sits above in __stage */
.lumina-contact-page .lumina-contact-canvas__veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 13, 18, 0.42) 0%,
    rgba(10, 13, 18, 0.12) 28%,
    rgba(10, 13, 18, 0.08) 50%,
    rgba(10, 13, 18, 0.22) 100%
  );
}

.lumina-contact-page .lumina-contact-canvas__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-inline: var(--gutter);
  padding-block: clamp(0.5rem, 2vw, 1rem) clamp(2rem, 6vw, 4rem);
}

.lumina-contact-page .lumina-contact-panel {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 13, 18, 0.72);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding:
    clamp(0.25rem, 1vw, 0.5rem)
    clamp(1.1rem, 2vw, 1.65rem)
    clamp(1.15rem, 2.4vw, 1.75rem);
}

/* Contact page: typewriter title — monospace + caret (see main.js) */
.lumina-contact-page .mini-hero__title--typewriter {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  letter-spacing: 0.018em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  min-height: 1.12em;
}

.lumina-contact-page .mini-hero__title--typewriter:not(.is-typewriter-done)::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.88em;
  margin-left: 0.04em;
  vertical-align: -0.06em;
  background: currentColor;
  opacity: 1;
  animation: lumina-typewriter-caret 0.92s steps(1, end) infinite;
}

@keyframes lumina-typewriter-caret {
  0%,
  45% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lumina-contact-page .mini-hero__title--typewriter::after {
    animation: none;
    opacity: 0;
  }
}

.lumina-contact-page .site-header {
  background: rgba(10, 13, 18, 0.38);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.lumina-contact-page .site-header.is-scrolled {
  background: rgba(10, 13, 18, 0.78);
}

/* Canvas + veil are position:fixed with z-index 1–2; footer follows #main and would sit under them without a stacking context above the canvas. */
.lumina-contact-page .site-footer {
  position: relative;
  z-index: 10;
}

.lumina-contact-page .mini-hero {
  background: transparent;
  border-bottom: 0;
  padding: clamp(5.25rem, 11vw, 7.5rem) 0 clamp(1rem, 2vw, 1.35rem);
}

.lumina-contact-page .mini-hero::after {
  display: none;
}

.lumina-contact-page .contact-page {
  background: transparent;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 2rem) 0 clamp(0.15rem, 0.75vw, 0.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lumina-contact-page .contact-page__methods {
  border-top: 0;
  padding: 0;
}

.lumina-contact-page .contact-method {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.lumina-contact-page .contact-method__value {
  font-size: clamp(1.15rem, 2.1vw, 1.5rem);
  letter-spacing: -0.014em;
}

/* Two-column contact: form + aside (contact cards) — stretch columns to equal height */
.lumina-contact-page .contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 370px);
  gap: max(1rem, calc(clamp(2rem, 4.5vw, 3.75rem) - 30px));
  align-items: stretch;
}

.lumina-contact-page .contact-page__form {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lumina-contact-page .contact-form-panel {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.65rem;
  padding:
    clamp(1.05rem, 2.1vw, 1.35rem)
    clamp(1.1rem, 2.2vw, 1.45rem)
    clamp(1.15rem, 2.3vw, 1.5rem);
}

.lumina-contact-page .contact-form-panel__lead {
  margin: 0 0 0.35rem;
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 52ch;
}

.lumina-contact-page .contact-aside__title {
  color: rgba(255, 255, 255, 0.55);
}

.lumina-contact-page .contact-page__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.65rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.lumina-contact-page .contact-page__aside .contact-page__methods {
  border-top: 0;
  padding-top: 0;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lumina-contact-page .contact-page__aside .contact-method {
  margin: 0 0 0.65rem;
  padding: 1rem 1.1rem 1.05rem;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
}

.lumina-contact-page .contact-page__aside .contact-method:last-of-type {
  margin-bottom: 0;
}

.lumina-contact-page .contact-page__aside .contact-method__value {
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
}

.lumina-contact-page .contact-page__aside a.contact-method__value {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

/* Contact — desktop: form panel matches aside height; roomier lead + title rhythm */
@media (min-width: 961px) {
  .lumina-contact-page .contact-page__form {
    align-self: stretch;
    min-height: 100%;
    height: 100%;
  }

  .lumina-contact-page .contact-form-panel {
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    padding:
      clamp(1.2rem, 2.4vw, 1.7rem)
      clamp(1.2rem, 2.5vw, 1.75rem)
      clamp(2rem, 3.8vw, 3rem);
  }

  .lumina-contact-page .contact-form-panel__lead {
    font-size: clamp(1.06rem, 1.75vw, 1.26rem);
    line-height: 1.68;
    margin: 0 0 clamp(1rem, 2vw, 1.4rem);
    max-width: 58ch;
  }
}

/* HubSpot (new forms embed) — theme via official CSS variables + legacy fallbacks */
.lumina-contact-page .contact-hubspot,
.lumina-contact-page .contact-hubspot .hs-form-html {
  --hsf-background__background-color: transparent;
  --hsf-background__border-width: 0;
  --hsf-background__padding: 0;
  --hsf-row__horizontal-spacing: 1rem;
  --hsf-row__vertical-spacing: 0.5rem;
  --hsf-module__vertical-spacing: 0.45rem;
  --hsf-global__font-family: var(--sans);
  --hsf-global__font-size: 1rem;
  --hsf-global__color: var(--ink-soft);
  --hsf-global-error__color: var(--tomato);
  --hsf-heading__font-family: var(--sans);
  --hsf-heading__color: var(--ink-soft);
  --hsf-heading__text-shadow: none;
  --hsf-richtext__font-family: var(--sans);
  --hsf-richtext__font-size: 0.95rem;
  --hsf-richtext__color: var(--ash);
  --hsf-field-label__color: var(--ash);
  --hsf-field-label-requiredindicator__color: var(--green);
  --hsf-field-description__color: var(--ash);
  --hsf-field-input__font-family: var(--sans);
  --hsf-field-input__color: var(--ink-soft);
  --hsf-field-input__background-color: rgba(255, 255, 255, 0.06);
  --hsf-field-input__placeholder-color: var(--ash-soft);
  --hsf-field-input__border-color: rgba(255, 255, 255, 0.12);
  --hsf-field-input__border-width: 1px;
  --hsf-field-input__border-style: solid;
  --hsf-field-input__border-radius: 0.5rem;
  --hsf-field-textarea__color: var(--ink-soft);
  --hsf-field-textarea__background-color: rgba(255, 255, 255, 0.06);
  --hsf-field-textarea__placeholder-color: var(--ash-soft);
  --hsf-field-textarea__border-color: rgba(255, 255, 255, 0.12);
  --hsf-button__font-family: var(--sans);
  --hsf-button__color: #04120c;
  --hsf-button__background-color: var(--green);
  --hsf-button__border-radius: 0.5rem;
  --hsf-button__padding: 0.55rem 1.15rem;
}

/* Tighten legacy HubSpot markup when variables do not apply */
.lumina-contact-page .contact-hubspot .hs-form-html :where(h1, h2, h3, h4) {
  margin: 0 0 0.4rem !important;
}

.lumina-contact-page .contact-hubspot .hs-form-html :where(p) {
  margin: 0 0 0.65rem !important;
}

.lumina-contact-page .contact-hubspot .hs-form-field {
  margin-bottom: 0.65rem !important;
}

.lumina-contact-page .contact-hubspot .hs-submit,
.lumina-contact-page .contact-hubspot .hs-button,
.lumina-contact-page .contact-hubspot .actions {
  margin-top: 0.35rem !important;
}

/* Contact — desktop: looser HubSpot rhythm + space above submit (after base HubSpot rules) */
@media (min-width: 961px) {
  .lumina-contact-page .contact-hubspot,
  .lumina-contact-page .contact-hubspot .hs-form-html {
    --hsf-row__vertical-spacing: 0.72rem;
    --hsf-module__vertical-spacing: 0.68rem;
    --hsf-button__padding: 0.65rem 1.35rem;
  }

  .lumina-contact-page .contact-hubspot .hs-form-field {
    margin-bottom: 0.85rem !important;
  }

  .lumina-contact-page .contact-hubspot .hs-submit,
  .lumina-contact-page .contact-hubspot .hs-button,
  .lumina-contact-page .contact-hubspot .actions {
    margin-top: clamp(1.35rem, 2.8vw, 2.25rem) !important;
    padding-top: clamp(0.5rem, 1.4vw, 0.9rem) !important;
  }
}

.lumina-contact-page .contact-hubspot {
  margin: 0;
  margin-inline: 0;
  padding: 0;
  border: 0;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lumina-contact-page .contact-hubspot__title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: clamp(0.95rem, 2.8vw, 1.5rem) 0 clamp(1.2rem, 3.2vw, 1.85rem);
}

.lumina-contact-page .contact-hubspot .hs-form-html {
  flex: 1 1 auto;
  min-height: 0;
  background: transparent !important;
}

@media (min-width: 961px) {
  .lumina-contact-page .contact-hubspot__title {
    margin: clamp(0.35rem, 1.1vw, 0.65rem) 0 clamp(1.25rem, 2.8vw, 1.95rem);
  }
}

/* Legacy / non-variable HubSpot markup */
.lumina-contact-page .contact-hubspot .hs-form,
.lumina-contact-page .contact-hubspot form.hs-form {
  background: transparent !important;
}

.lumina-contact-page .contact-hubspot .hs-form-field label {
  color: var(--ash) !important;
}

.lumina-contact-page .contact-hubspot .hs-input,
.lumina-contact-page .contact-hubspot textarea.hs-input,
.lumina-contact-page .contact-hubspot select.hs-input {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: var(--ink-soft) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.lumina-contact-page .contact-hubspot .hs-button,
.lumina-contact-page .contact-hubspot input[type="submit"].hs-button {
  background: var(--green) !important;
  color: #04120c !important;
  border: 0 !important;
}

/* Page shell — the editor content area */
.page-shell {
  background: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(5rem, 9vw, 8rem);
}

.page-shell .entry-content,
.page-shell article,
.page-shell .post-list {
  max-width: 880px;
  margin: 0 auto;
}

.page-shell .entry-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.page-shell h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
  margin: 0 0 2rem;
}

.page-shell h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink-soft);
  margin: 3rem 0 1rem;
}

.page-shell h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.15;
  color: var(--ink-soft);
  margin: 2.5rem 0 0.75rem;
}

.page-shell h4 {
  font-family: var(--mono);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin: 2.5rem 0 0.75rem;
}

.page-shell p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 1.4rem;
}

.page-shell p.lead,
.page-shell .has-large-font-size {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  line-height: 1.35;
  color: var(--ink-soft);
  margin-bottom: 2rem;
}

.page-shell ul,
.page-shell ol {
  padding-left: 1.25em;
  margin: 0 0 1.5rem;
}

.page-shell li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: var(--ink-soft);
}

.page-shell a {
  color: var(--green);
  border-bottom: 1px solid currentColor;
  transition: color 0.2s var(--ease);
}

.page-shell a:hover {
  color: var(--green-deep);
}

.page-shell blockquote {
  border-left: none;
  padding: 2rem 0;
  margin: 2rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.page-shell blockquote p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  line-height: 1.3;
  color: var(--ink-soft);
  font-style: italic;
  margin: 0;
}

.page-shell hr {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 3rem 0;
}

.page-shell img {
  border-radius: 4px;
  margin: 2rem 0;
}

/* Blog index */
.post-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule);
}

.post-list__item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 2rem;
  align-items: baseline;
}

.post-list__date {
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
}

.post-list__title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.15;
  color: var(--ink-soft);
  margin: 0 0 0.6rem;
}

.post-list__title a {
  color: inherit;
  border-bottom: 0;
}

.post-list__title a:hover {
  color: var(--green);
}

.post-list__excerpt {
  margin: 0;
  color: var(--ash);
  font-size: 1rem;
  line-height: 1.6;
  max-width: 60ch;
}

.post-list__nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* —————————————————————————————————— */
/* Contact page                            */
/* —————————————————————————————————— */
.contact-page {
  background: var(--paper);
  padding: clamp(3.5rem, 7vw, 6rem) var(--gutter) clamp(5rem, 9vw, 8rem);
}

.contact-page__inner {
  max-width: var(--container);
  margin: 0 auto;
}

.contact-page__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: stretch;
}

/* Contact template — primary form + aside (direct contact) */
.contact-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(220px, 360px);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.contact-page__form {
  min-width: 0;
  align-self: start;
  width: 100%;
}

.contact-form-panel {
  min-width: 0;
}

.contact-form-panel__lead {
  margin: 0 0 1rem;
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  line-height: 1.55;
  color: var(--ash);
  max-width: 52ch;
}

.contact-page__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-aside__title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  margin: 0 0 1.05rem;
}

.contact-page__aside .contact-page__methods {
  border-top: 0;
  padding-top: 0;
  margin: 0;
}

.contact-page__methods {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--rule);
}

.contact-method {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--rule);
}

.contact-method .cap {
  display: block;
  margin-bottom: 0.9rem;
}

.contact-method__value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.018em;
  color: var(--ink-soft);
  margin: 0 0 0.75rem;
  word-break: break-word;
  text-decoration: none;
  border: 0;
}

a.contact-method__value {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 0.15em;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a.contact-method__value:hover,
a.contact-method__value:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.contact-method__value .arrow {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  transform: translateY(-0.05em);
  transition: transform 0.3s var(--ease);
}

a.contact-method__value:hover .arrow,
a.contact-method__value:focus-visible .arrow {
  transform: translate(0.2em, -0.05em);
}

.contact-method__value--static {
  align-items: center;
  border: 0;
}

.contact-method__pulse {
  position: relative;
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  border-radius: 999px;
  background: var(--green);
  flex-shrink: 0;
  transform: translateY(-0.1em);
}

.contact-method__pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--green);
  opacity: 0.45;
  animation: contact-pulse 2.4s var(--ease) infinite;
}

@keyframes contact-pulse {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(2.6); opacity: 0;    }
  100% { transform: scale(2.6); opacity: 0;    }
}

.contact-method__note {
  margin: 0;
  color: var(--ash);
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 42ch;
}

@media (prefers-reduced-motion: reduce) {
  .contact-method__pulse::before {
    animation: none;
    opacity: 0.35;
    transform: scale(1.6);
  }

  .contact-method__value .arrow,
  a.contact-method__value:hover .arrow,
  a.contact-method__value:focus-visible .arrow {
    transition: none;
    transform: translateY(-0.05em);
  }
}

@media (max-width: 960px) {
  .contact-page__grid {
    grid-template-columns: 1fr;
  }

  .contact-page__layout {
    grid-template-columns: 1fr;
    gap: clamp(2.25rem, 5vw, 3.25rem);
  }

  .lumina-contact-page .contact-page__layout {
    grid-template-columns: 1fr;
    gap: clamp(1.65rem, 4vw, 2.35rem);
  }
}

@media (max-width: 720px) {
  .mini-hero {
    padding-top: clamp(5.5rem, 16vw, 7rem);
  }

  .mini-hero__bg.is-ready {
    opacity: 0.5;
  }

  .lumina-contact-page .lumina-contact-canvas__bg.is-ready {
    opacity: 0.5;
  }

  .mini-hero__title {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .mini-hero__sub {
    font-size: 1rem;
  }

  .page-shell .entry-title,
  .page-shell h1 {
    font-size: clamp(1.7rem, 8vw, 2.4rem);
  }

  .page-shell h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }

  .page-shell p {
    font-size: 1rem;
  }

  .page-shell blockquote {
    padding: 1.5rem 0;
    margin: 1.5rem 0;
  }

  .page-shell blockquote p {
    font-size: clamp(1.15rem, 5vw, 1.5rem);
  }

  .post-list__item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    padding: 1.5rem 0;
  }

  .post-list__nav {
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-start;
  }

  .contact-method__value {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }

  /* Contact template — narrow viewports */
  .lumina-contact-page .lumina-contact-canvas__stage {
    padding-inline: clamp(0.7rem, 4.2vw, 1.35rem);
    padding-bottom: clamp(1.25rem, 5vw, 2.5rem);
  }

  .lumina-contact-page .lumina-contact-panel {
    padding-inline: clamp(0.8rem, 4vw, 1.2rem);
    padding-bottom: clamp(1rem, 3.5vw, 1.5rem);
    border-radius: 0.75rem;
  }

  .lumina-contact-page .mini-hero {
    padding: clamp(4.1rem, 15vw, 5.75rem) 0 0.6rem;
  }

  .lumina-contact-page .mini-hero__title--typewriter {
    font-size: clamp(1.6rem, 8.5vw, 2.35rem);
    letter-spacing: 0.012em;
  }

  .lumina-contact-page .contact-page {
    padding: 0.85rem 0 0.35rem;
  }

  .lumina-contact-page .contact-page__layout {
    grid-template-columns: 1fr;
    gap: 1.45rem;
  }

  .lumina-contact-page .contact-form-panel {
    padding: 0.95rem 0.95rem 1.05rem;
    border-radius: 0.55rem;
  }

  .lumina-contact-page .contact-form-panel__lead {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    max-width: none;
  }

  .lumina-contact-page .contact-hubspot__title {
    font-size: 1.12rem;
    margin: clamp(0.75rem, 2.2vw, 1.15rem) 0 clamp(1rem, 2.8vw, 1.45rem);
  }

  .lumina-contact-page .contact-aside__title {
    margin-bottom: 0.85rem;
    letter-spacing: 0.12em;
  }

  .lumina-contact-page .contact-page__aside {
    padding: clamp(0.9rem, 3.5vw, 1.15rem);
  }

  .lumina-contact-page .contact-page__aside .contact-method {
    padding: 0.85rem 0.9rem 0.95rem;
    margin-bottom: 0.55rem;
  }

  .lumina-contact-page .contact-page__aside .contact-method__value {
    font-size: clamp(0.98rem, 3.8vw, 1.2rem);
    word-break: break-word;
  }

  .lumina-contact-page .contact-page__aside .contact-method__note {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .lumina-contact-page .contact-hubspot,
  .lumina-contact-page .contact-hubspot .hs-form-html {
    --hsf-row__horizontal-spacing: 0.55rem;
    --hsf-row__vertical-spacing: 0.45rem;
  }
}

/* iOS: avoid auto-zoom on HubSpot inputs (font size < 16px triggers zoom) */
@media (max-width: 480px) {
  .lumina-contact-page .contact-hubspot,
  .lumina-contact-page .contact-hubspot .hs-form-html {
    --hsf-field-input__font-size: 16px;
    --hsf-global__font-size: 16px;
  }
}

/* —————————————————————————————————— */
/* Careers page (shares contact canvas shell) */
/* —————————————————————————————————— */
.lumina-careers-page .mini-hero__sub {
  max-width: none;
}

.lumina-careers-page .lumina-contact-canvas {
  position: relative;
  isolation: isolate;
  min-height: min(100vh, 100dvh);
}

.lumina-careers-page .lumina-contact-canvas__bg {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  pointer-events: none;
  overflow: hidden;
  opacity: 0;
  transition: opacity 1.2s var(--ease-soft);
}

.lumina-careers-page .lumina-contact-canvas__bg.is-ready {
  opacity: 0.85;
}

.lumina-careers-page .lumina-contact-canvas__bg canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.lumina-careers-page .lumina-contact-canvas__veil {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(10, 13, 18, 0.42) 0%,
    rgba(10, 13, 18, 0.12) 28%,
    rgba(10, 13, 18, 0.08) 50%,
    rgba(10, 13, 18, 0.22) 100%
  );
}

.lumina-careers-page .lumina-contact-canvas__stage {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-inline: var(--gutter);
  padding-block: clamp(0.5rem, 2vw, 1rem) clamp(2rem, 6vw, 4rem);
}

.lumina-careers-page .lumina-contact-panel {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(10, 13, 18, 0.72);
  box-shadow:
    0 4px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  padding:
    clamp(0.25rem, 1vw, 0.5rem)
    clamp(1.1rem, 2vw, 1.65rem)
    clamp(1.15rem, 2.4vw, 1.75rem);
}

.lumina-careers-page .mini-hero__title--typewriter {
  font-family: var(--mono);
  font-weight: 600;
  font-size: clamp(2.15rem, 5vw, 3.35rem);
  letter-spacing: 0.018em;
  text-transform: none;
  font-variant-numeric: tabular-nums;
  min-height: 1.12em;
}

.lumina-careers-page .mini-hero__title--typewriter:not(.is-typewriter-done)::after {
  content: "";
  display: inline-block;
  width: 0.075em;
  height: 0.88em;
  margin-left: 0.04em;
  vertical-align: -0.08em;
  background: var(--green);
  animation: lumina-caret-blink 1s step-end infinite;
}

.lumina-careers-page .site-header {
  background: rgba(10, 13, 18, 0.38);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.lumina-careers-page .site-header.is-scrolled {
  background: rgba(10, 13, 18, 0.78);
}

.lumina-careers-page .site-footer {
  position: relative;
  z-index: 10;
}

.lumina-careers-page .mini-hero {
  background: transparent;
  border-bottom: 0;
  padding: clamp(5.25rem, 11vw, 7.5rem) 0 clamp(1rem, 2vw, 1.35rem);
}

.lumina-careers-page .mini-hero::after {
  display: none;
}

.careers-page {
  background: transparent;
  margin: 0;
  padding: clamp(1.35rem, 2.8vw, 2rem) 0 clamp(0.15rem, 0.75vw, 0.35rem);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.careers-page__inner {
  max-width: none;
  margin: 0;
}

.careers-page__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 370px);
  gap: max(1rem, calc(clamp(2rem, 4.5vw, 3.75rem) - 30px));
  align-items: stretch;
}

.careers-page__main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.careers-panel {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.65rem;
  padding:
    clamp(1.05rem, 2.1vw, 1.35rem)
    clamp(1.1rem, 2.2vw, 1.45rem)
    clamp(1.15rem, 2.3vw, 1.5rem);
}

.careers-panel__lead {
  margin: 0 0 0.35rem;
  font-size: clamp(1.02rem, 1.45vw, 1.15rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.62);
  max-width: 58ch;
}

.careers-panel__title {
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.careers-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.careers-role {
  margin: 0;
  padding: 1rem 1.1rem 1.05rem;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
}

.careers-role .cap {
  display: block;
  margin-bottom: 0.65rem;
}

.careers-role__link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.15rem, 2.1vw, 1.65rem);
  line-height: 1.08;
  letter-spacing: -0.014em;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0 0 0.15em;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.careers-role__desc {
  margin: 0.75rem 0 0;
  font-size: clamp(0.98rem, 1.35vw, 1.05rem);
  line-height: 1.62;
  color: rgba(255, 255, 255, 0.58);
  max-width: 62ch;
}

.careers-role__desc:empty {
  min-height: 3.1rem;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 45%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: careers-excerpt-shimmer 1.4s ease-in-out infinite;
  border-radius: 0.35rem;
}

@keyframes careers-excerpt-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.careers-role__link:hover,
.careers-role__link:focus-visible {
  color: var(--green);
  border-color: var(--green);
}

.careers-role__link .arrow {
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
  transform: translateY(0.08em);
  transition: transform 0.25s var(--ease);
}

.careers-role__link:hover .arrow,
.careers-role__link:focus-visible .arrow {
  transform: translate(0.12em, 0.08em);
}

.careers-role__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
}

.careers-empty {
  padding: 1.25rem 1.1rem;
  border: 1px dashed rgba(255, 255, 255, 0.14);
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.025);
}

.careers-empty__title {
  margin: 0 0 0.45rem;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  color: var(--ink-soft);
}

.careers-empty__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.55);
  max-width: 42ch;
}

.careers-page__aside {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 0.65rem;
  padding: clamp(1rem, 2.2vw, 1.35rem);
}

.careers-aside__title {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 1.05rem;
}

.lumina-careers-page .careers-page__methods {
  border-top: 0;
  padding-top: 0;
  margin: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.lumina-careers-page .careers-page__aside .contact-method {
  margin: 0 0 0.65rem;
  padding: 1rem 1.1rem 1.05rem;
  border-bottom: 0;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.65rem;
}

.lumina-careers-page .careers-page__aside .contact-method:last-of-type {
  margin-bottom: 0;
}

.lumina-careers-page .careers-page__aside .contact-method__value {
  font-size: clamp(1.02rem, 1.65vw, 1.22rem);
}

.lumina-careers-page .careers-page__aside a.contact-method__value {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

@media (min-width: 961px) {
  .careers-page__main {
    align-self: stretch;
    min-height: 100%;
    height: 100%;
  }

  .careers-panel {
    min-height: 100%;
    height: 100%;
    box-sizing: border-box;
    padding:
      clamp(1.2rem, 2.4vw, 1.7rem)
      clamp(1.2rem, 2.5vw, 1.75rem)
      clamp(2rem, 3.8vw, 3rem);
  }

  .careers-panel__lead {
    font-size: clamp(1.06rem, 1.75vw, 1.26rem);
    line-height: 1.68;
    margin: 0 0 clamp(1rem, 2vw, 1.4rem);
  }
}

@media (max-width: 960px) {
  .lumina-careers-page .lumina-contact-canvas__stage {
    padding-inline: max(var(--gutter), var(--safe-l)) max(var(--gutter), var(--safe-r));
  }

  .careers-page__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .lumina-careers-page .mini-hero {
    padding-top: clamp(4.5rem, 16vw, 5.75rem);
  }

  .lumina-careers-page .mini-hero__title--typewriter {
    font-size: clamp(1.85rem, 8.5vw, 2.45rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lumina-careers-page .lumina-contact-canvas__bg.is-ready {
    opacity: 0.72;
  }

  .careers-role__desc:empty {
    animation: none;
    background: rgba(255, 255, 255, 0.05);
  }
}

/* Careers job description modal */
body.is-careers-modal-open {
  overflow: hidden;
}

.careers-modal[hidden] {
  display: none !important;
}

.careers-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

.careers-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.careers-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(92vh, 920px);
  display: flex;
  flex-direction: column;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 13, 18, 0.96);
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.careers-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem) clamp(1rem, 2.2vw, 1.45rem) 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.careers-modal__title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink-soft);
}

.careers-modal__close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.careers-modal__close:hover,
.careers-modal__close:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--green);
}

.careers-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: clamp(0.85rem, 2vw, 1.25rem) clamp(1rem, 2.2vw, 1.45rem) clamp(1.1rem, 2.4vw, 1.5rem);
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 214, 143, 0.06), transparent 55%),
    rgba(255, 255, 255, 0.02);
  font-size: 0.98rem;
  line-height: 1.65;
  color: rgba(238, 242, 247, 0.88);
}

.careers-modal__body > p:first-child {
  margin-top: 0;
}

.careers-modal__body p {
  margin: 0 0 1rem;
}

.careers-modal__section-title {
  margin: 1.35rem 0 0.65rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

.careers-modal__section-title:first-child {
  margin-top: 0;
}

.careers-modal__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

.careers-modal__list li {
  margin-bottom: 0.65rem;
}

.careers-modal__list li:last-child {
  margin-bottom: 0;
}

.careers-modal__empty {
  margin: 0;
  color: rgba(238, 242, 247, 0.72);
}

.careers-modal__empty a {
  color: var(--green);
}

.site-footer__meta a {
  color: rgba(255, 255, 255, 0.62);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.site-footer__meta a:hover,
.site-footer__meta a:focus-visible {
  color: var(--green);
  border-bottom-color: rgba(0, 214, 143, 0.35);
}
