:root {
  /* Editor light theme — mid/dark tones only; lightest page bg locked below */
  --ui-bg: #bcc2cd;
  --ui-surface: #d5d9e2;
  --ui-surface-2: #cdd2db;
  --ui-surface-3: #c0c7d2;
  --ui-surface-hover: #b0b8c4;
  --ui-header: #d0d5de;
  --ui-tab: #dce0e8;
  --shot-frame: #a8b0bd;
  --ui-border: rgba(26, 32, 44, 0.26);
  --ui-border-strong: rgba(26, 32, 44, 0.4);
  --ui-text: #1a1c20;
  --ui-text-muted: rgba(26, 28, 32, 0.78);
  --ui-text-faint: rgba(26, 28, 32, 0.62);
  --ui-accent: #155e8a;
  --ui-accent-hover: #1a6a9a;
  --ui-accent-warm: #9a4a0a;
  --ui-on-fg: #f3f4f7;
  --ui-shadow: 0 16px 40px rgba(26, 32, 44, 0.24);
  --shot-shadow: 0 10px 28px rgba(26, 32, 44, 0.28), 0 1px 0 rgba(26, 32, 44, 0.1);

  /* Page background — editor light viewport plate (panels use darker tokens above) */
  --bg: #f5f5f5;
  --panel-bg: color-mix(in srgb, var(--bg) 50%, var(--ui-surface) 50%);
  --bg-band: var(--ui-surface-2);
  --bg-elev: var(--ui-surface);
  --ink: var(--ui-text);
  --muted: var(--ui-text-muted);
  --faint: var(--ui-text-faint);
  --line: var(--ui-border);
  --accent: var(--ui-accent);
  --radius: 12px;
  --max: 1120px;
  --site-brand-logo-h: 48px;
  --site-brand-logo-max-w: 240px;
  --site-brand-tactic-scale: 0.5;
  --site-brand-plate-pad-y: 6px;
  --site-brand-plate-pad-x: 12px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--landing-header-offset, 7.5rem) + env(safe-area-inset-top, 0px));
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--ui-accent-hover);
}

a:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

img {
  max-width: 100%;
  height: auto;
}

.tactic-studio-mark {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  line-height: 1;
}

.tactic-logo {
  display: block;
  width: auto;
  max-width: 160px;
  height: 22px;
  object-fit: contain;
}

.tactic-studio-mark--lg .tactic-logo {
  height: 30px;
  max-width: 180px;
}

.tactic-logo--sm {
  display: inline-block;
  height: 14px;
  max-width: 72px;
  vertical-align: -2px;
}

.tactic-on-dark .tactic-logo,
html[data-theme="dark"] .tactic-logo-auto {
  filter: invert(1) brightness(1.06);
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

section[id],
#main-content {
  scroll-margin-top: calc(var(--landing-header-offset, 7.5rem) + env(safe-area-inset-top, 0px));
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}

a.brand {
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: flex-end;
  gap: 0.65rem;
  color: var(--ink);
  user-select: none;
}

span.brand {
  cursor: default;
}

.brand img:not(.brand-logo):not(.brand-logo-tactic) {
  width: 36px;
  height: 36px;
}


.brand-plate {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: var(--site-brand-plate-pad-y) var(--site-brand-plate-pad-x);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}

.brand-logo {
  display: block;
  height: var(--site-brand-logo-h);
  width: auto;
  max-width: min(var(--site-brand-logo-max-w), 72vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.brand-logo-tactic {
  display: block;
  height: calc(var(--site-brand-logo-h) * var(--site-brand-tactic-scale));
  width: auto;
  max-width: none;
  aspect-ratio: 300 / 81;
  object-fit: contain;
  object-position: left bottom;
  flex-shrink: 0;
  transform: translateY(-5px);
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--ui-accent);
  color: var(--ui-on-fg);
  border-color: rgba(21, 94, 138, 0.45);
  box-shadow: var(--ui-shadow);
}

.btn-primary:hover {
  background: var(--ui-accent-hover);
  color: var(--ui-on-fg);
}

.btn-ghost {
  border-color: var(--ui-border-strong);
  color: var(--ink);
  background: var(--panel-bg);
}

.btn-ghost:hover {
  background: var(--ui-surface-hover);
  color: var(--ink);
}

.hero {
  position: relative;
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
  background: var(--bg-band);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 90% 20%, rgba(21, 94, 138, 0.1), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(154, 74, 10, 0.06), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--ui-border-strong);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--panel-bg);
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.hero-lead {
  margin: 0 0 1.25rem;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}

.hero-lead + .hero-lead {
  margin-top: -0.5rem;
}

.flow {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px dashed var(--ui-border-strong);
  background: var(--ui-surface-2);
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.08);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-visual {
  width: 79.2%;
  margin-inline: auto;
  background: var(--shot-frame);
  border: 1px solid var(--ui-border-strong);
  border-radius: var(--radius);
  padding: 0.4rem;
  box-shadow: var(--shot-shadow);
  overflow: hidden;
}

.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

@media (max-width: 860px) {
  .hero-visual {
    width: min(79.2%, 100%);
  }
}

.hero-diagram {
  width: 100%;
  height: auto;
  display: block;
}

section {
  padding: 3.5rem 0;
}

section:nth-of-type(even) {
  background: var(--ui-surface-3);
}

.section-head {
  margin-bottom: 2rem;
  max-width: 42rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.09);
}

.tool-card h3 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--ink);
}

.tool-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  flex: 1;
}

.tool-card .diagram {
  border-radius: 8px;
  background: var(--shot-frame);
  border: 1px solid var(--ui-border-strong);
  padding: 0;
  overflow: hidden;
  aspect-ratio: 834 / 597;
  box-shadow: inset 0 0 0 1px rgba(26, 32, 44, 0.07);
}

.tool-card .diagram img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  vertical-align: top;
}

.tool-card .diagram .lightbox-trigger,
.tool-card .diagram .maya-lightbox-trigger,
.hero-visual .lightbox-trigger {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  line-height: 0;
  border-radius: calc(var(--radius) - 4px);
}

.hero-visual .lightbox-trigger {
  height: auto;
}

.lightbox-trigger:focus-visible,
.maya-lightbox-trigger:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

.lightbox-trigger img,
.maya-lightbox-trigger img {
  pointer-events: none;
}

body.maya-lightbox-open {
  overflow: hidden;
}

.maya-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.maya-lightbox[hidden] {
  display: none !important;
}

.maya-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 24, 32, 0.82);
  cursor: zoom-out;
}

.maya-lightbox-panel {
  position: relative;
  z-index: 1;
  max-width: min(96vw, 1200px);
  max-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.maya-lightbox-img {
  display: block;
  max-width: 100%;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: var(--ui-shadow);
  background: var(--shot-frame);
}

.maya-lightbox-close {
  position: absolute;
  top: -0.35rem;
  right: -0.35rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 999px;
  background: var(--ui-surface);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.maya-lightbox-close:hover {
  background: var(--ui-surface-hover);
}

.maya-lightbox-close:focus-visible {
  outline: 2px solid var(--ui-accent);
  outline-offset: 2px;
}

.tool-card svg {
  width: 100%;
  height: auto;
  display: block;
}

.tool-card--future {
  border-style: dashed;
  box-shadow: none;
  opacity: 0.8;
}

.tool-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.present-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.present-card {
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.09);
}

.present-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
}

.present-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.present-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pipeline {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--ui-border-strong);
  background: var(--ui-surface-2);
  text-align: center;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.08);
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 760px) {
  .about-block {
    grid-template-columns: 1fr;
  }
}

.about-block ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.about-text {
  color: var(--muted);
  margin: 0 0 0.75rem;
}

.about-subhead {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
  color: var(--ink);
}

.about-block li {
  margin-bottom: 0.45rem;
}

.disclaimer {
  margin-top: 2rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--ui-border-strong);
  background: var(--ui-surface-2);
  font-size: 0.92rem;
  color: var(--muted);
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.08);
}

.disclaimer strong {
  color: var(--ink);
}

.disclaimer a {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.disclaimer a:hover {
  color: var(--teal-bright, #087f83);
}

.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  background: var(--bg);
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.copyright {
  margin: 0;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.55;
}

.visit-counter {
  display: inline-block;
  vertical-align: middle;
  margin-inline-start: 0.2rem;
}

.footer-visit-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  vertical-align: middle;
  margin-inline-start: 0.15rem;
  white-space: nowrap;
}

.footer-visit-brand .visit-counter {
  margin-inline-start: 0;
}

.footer-visit-brand .brand-logo-tactic {
  transform: none;
  height: calc(var(--site-brand-logo-h) * var(--site-brand-tactic-scale) * 0.88);
}

.visit-counter-digits,
#landing-visit-count {
  display: inline-block;
  min-width: 5.25em;
  padding: 0.42rem 0.7rem 0.46rem;
  text-align: center;
  background: #000;
  border-radius: 6px;
  border: none;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, monospace;
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  font-variant-numeric: tabular-nums;
  color: #f2feff;
  line-height: 1;
  /* Neon tube glow on digits only — softer cyan */
  text-shadow:
    0 0 1px #fff,
    0 0 3px rgba(0, 243, 255, 0.9),
    0 0 8px rgba(0, 232, 255, 0.55),
    0 0 14px rgba(0, 212, 240, 0.35);
  box-shadow: none;
  filter: none;
}

@media (max-width: 480px) {
  .visit-counter-digits,
  #landing-visit-count {
    font-size: 1.08rem;
    letter-spacing: 0.17em;
    padding: 0.36rem 0.55rem 0.4rem;
  }

  .footer-visit-brand {
    white-space: normal;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--ui-accent);
  color: var(--ui-on-fg);
  text-decoration: none;
  font-weight: 700;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.site-header .wrap {
  flex-wrap: wrap;
}

.site-nav {
  display: flex;
  order: 3;
  flex: 1 1 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  font-size: 0.85rem;
  padding: 0.35rem 0 0.25rem;
  border-top: 1px solid var(--line);
}

.site-nav-aside {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.site-nav-sep {
  color: var(--faint);
  user-select: none;
  font-weight: 400;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

@media (max-width: 640px) {
  :root {
    --site-brand-logo-h: 40px;
    --site-brand-logo-max-w: 200px;
  }

  .site-nav {
    font-size: 0.78rem;
    gap: 0.3rem 0.55rem;
  }

  .header-actions .btn {
    padding: 0.5rem 0.85rem;
    font-size: 0.82rem;
  }
}

@media (min-width: 900px) {
  .site-nav {
    padding-top: 0.15rem;
  }
}

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

.faq-list li {
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-bg);
  box-shadow: 0 2px 8px rgba(26, 32, 44, 0.09);
}

.faq-list h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: var(--ink);
}

.faq-list p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.faq-list p + p {
  margin-top: 0.65rem;
}

.hero-diagram-wrap {
  aspect-ratio: 420 / 280;
  min-height: 200px;
}

.hero-diagram-wrap .hero-diagram {
  width: 100%;
  height: 100%;
}

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

.prose-section {
  padding: 2.5rem 0;
  text-align: center;
}

.prose-section--band {
  background: var(--bg-band);
}

.prose-section .section-head {
  margin-bottom: 1rem;
  margin-inline: auto;
  max-width: 52rem;
}

.prose-section p {
  max-width: 68ch;
  margin: 0 auto 1rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.prose-section p:last-child {
  margin-bottom: 0;
}

.prose-section code {
  font-size: 0.88em;
}

/* ── Contact page ── */
body:has(.contact-page) {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

body:has(.contact-page) .site-footer {
  padding: clamp(0.65rem, 1.5dvh, 1.25rem) 0 clamp(0.75rem, 2dvh, 1.25rem);
  flex-shrink: 0;
}

.contact-page {
  --contact-vh: 100vh;
  --contact-vh: 100dvh;
  --contact-chrome: calc(
    4.75rem + 5.25rem + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)
  );
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.35rem 0 0.35rem;
  background: var(--bg-band);
}

.contact-wrap {
  max-width: 68rem;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: min(var(--max), calc(100% - 0.75rem));
  margin-inline: auto;
}

.contact-card {
  background: var(--panel-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(0.85rem, 1.8dvh, 1.5rem) clamp(0.85rem, 1.5vw, 1.75rem) clamp(0.65rem, 1.2dvh, 1.15rem);
  box-shadow: var(--ui-shadow);
  max-width: 100%;
  flex: 1 1 auto;
  min-height: calc(var(--contact-vh) - var(--contact-chrome));
  max-height: calc(var(--contact-vh) - var(--contact-chrome));
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

.contact-panel:not([hidden]) {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

.contact-back {
  margin-bottom: clamp(0.75rem, 2dvh, 1.75rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: var(--bg);
  border-color: var(--line);
  color: var(--muted);
  box-shadow: none;
}

.contact-back:hover {
  background: var(--ui-tab);
  border-color: var(--ui-border);
  color: var(--ink);
}

.contact-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-card h1 {
  margin: 0 0 clamp(0.35rem, 1.2dvh, 0.65rem);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: none;
  text-align: center;
}

.contact-lead {
  margin: 0 0 1.5rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.98rem;
  max-width: none;
}

.contact-tactic-promo {
  margin: 0 0 clamp(0.5rem, 1.2dvh, 1rem);
  max-width: none;
  flex: 0 0 auto;
}

.contact-tactic-promo-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  line-height: 0;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.contact-tactic-promo-link:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.contact-tactic-promo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.contact-tactic-promo-preview {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1024 / 740;
  max-height: min(52dvh, 740px);
  background: var(--bg-band, #0a0a0a);
  color-scheme: dark;
  overflow: hidden;
}

.contact-tactic-promo-fallback {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}

.contact-tactic-promo-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.contact-tactic-promo-preview.is-live .contact-tactic-promo-iframe {
  opacity: 1;
}

.contact-tactic-promo-preview.is-static .contact-tactic-promo-iframe {
  display: none;
}

.contact-tactic-promo-open-hint {
  position: absolute;
  right: 0.65rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  color: #fff;
  background: rgba(0, 0, 0, 0.72);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.contact-tactic-promo-link:hover .contact-tactic-promo-open-hint,
.contact-tactic-promo-link:focus-visible .contact-tactic-promo-open-hint {
  opacity: 1;
  transform: translateY(0);
}

.contact-mail {
  margin: 0 0 clamp(0.65rem, 1.5dvh, 1.75rem);
  padding: 0.55rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface, rgba(0, 0, 0, 0.03));
  max-width: none;
  text-align: right;
}

.contact-mail-label {
  margin: 0 0 0.15rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-mail-address {
  margin: 0 0 0.3rem;
  font-size: clamp(1.15rem, 3.2vw, 1.45rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--ink);
}

.contact-mail-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-mail-link:hover {
  color: var(--ink);
}

.contact-mail-hint {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--muted);
}

.contact-mail-copy {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.12em;
  cursor: pointer;
}

.contact-mail-copy:hover {
  color: var(--ink);
}

.contact-mail-copy:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

.contact-field label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.55rem 0 0.7rem;
  border: none;
  border-bottom: 1.5px solid var(--ui-border-strong);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.45;
  resize: vertical;
  transition: border-color 0.15s ease;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: var(--faint);
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-bottom-color: var(--ui-accent);
}

.contact-field input:focus-visible,
.contact-field textarea:focus-visible {
  outline: none;
  box-shadow: 0 2px 0 0 var(--ui-accent);
}

.contact-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.contact-submit {
  align-self: stretch;
  margin-top: 0.35rem;
  padding: 0.85rem 1.25rem;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.contact-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.contact-status--error {
  color: var(--ui-accent-warm);
}

.contact-privacy {
  margin: 1.35rem 0 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--faint);
}

.contact-privacy a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-privacy a:hover {
  color: var(--ui-accent);
}

.contact-alt {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-lead--compact {
  margin-bottom: 1.15rem;
  padding-bottom: 1rem;
}

.contact-policy-title {
  margin: 0 0 0.65rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.contact-policy-body {
  overflow: visible;
  padding-right: 0;
}

.contact-policy-body h3 {
  margin: 1.15rem 0 0.4rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.contact-policy-body h3:first-child {
  margin-top: 0;
}

.contact-policy-body p,
.contact-policy-body li {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.contact-policy-body ul {
  margin: 0 0 0.75rem;
  padding-left: 1.2rem;
}

.contact-policy-body li {
  margin-bottom: 0.35rem;
}

.contact-policy-body code {
  font-size: 0.85em;
}

.contact-panel[hidden] {
  display: none !important;
}

@media (max-width: 560px) {
  .contact-card {
    padding: 1.15rem 1rem 1rem;
  }

  .contact-tactic-promo-iframe {
    display: none !important;
  }

  .contact-tactic-promo-preview.is-live .contact-tactic-promo-iframe {
    opacity: 0;
  }
}

@media (max-height: 820px) {
  .contact-page {
    --contact-chrome: calc(
      4.25rem + 4.75rem + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)
    );
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
  }

  .contact-tactic-promo {
    min-height: 0;
  }

  .contact-eyebrow {
    margin-bottom: 0.4rem;
  }

  .contact-privacy {
    margin-top: 0.85rem;
  }
}

@media (max-height: 620px) {
  .contact-page {
    --contact-chrome: calc(
      3.75rem + 4.25rem + env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px)
    );
  }

  .contact-tactic-promo {
    min-height: 0;
  }

  .contact-card h1 {
    font-size: clamp(1.35rem, 4.5vw, 1.65rem);
  }
}

@media (max-height: 820px) and (max-width: 560px) {
  .contact-card {
    padding: 0.85rem 0.85rem 0.75rem;
  }
}
