/* Artistic graphics styles — layered decorative elements */

/* ─── Ghost numerals ───────────────────────────────────────── */
.ghost-numeral {
  font-family: var(--f-display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(220px, 30vw, 540px);
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px var(--rule-soft);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  display: inline-block;
  will-change: transform;
  transition: transform 120ms linear;
}

/* ─── Corner frame ─────────────────────────────────────────── */
.corner-frame { position: relative; }
.corner-frame > [class^="corner-frame-"] {
  position: absolute; width: 18px; height: 18px;
  border-color: var(--accent); pointer-events: none;
  opacity: 0.7;
}
.corner-frame-tl { top: -1px; left: -1px; border-top: 1px solid; border-left: 1px solid; }
.corner-frame-tr { top: -1px; right: -1px; border-top: 1px solid; border-right: 1px solid; }
.corner-frame-bl { bottom: -1px; left: -1px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-frame-br { bottom: -1px; right: -1px; border-bottom: 1px solid; border-right: 1px solid; }
.corner-frame-label {
  position: absolute; top: -10px; left: 24px;
  background: var(--ink); padding: 0 8px;
  color: var(--paper-mute); font-size: 10px; letter-spacing: 0.18em;
}

/* ─── ASCII panel ──────────────────────────────────────────── */
.ascii-panel {
  font-family: var(--f-mono);
  font-size: 12px; line-height: 1.35;
  color: var(--paper-mute);
  letter-spacing: 0.02em;
  white-space: pre;
  margin: 0;
  text-transform: none;
  opacity: 0.7;
}
.ascii-panel:hover { color: var(--accent); opacity: 1; }

/* ─── Grid field background ────────────────────────────────── */
.grid-field {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(color-mix(in oklch, var(--paper) 18%, transparent) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black, transparent 90%);
  z-index: 0;
}

/* ─── Constellation canvas wrapper ─────────────────────────── */
.constellation { mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 95%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black, transparent 95%); }

/* ─── Coord tag chip ───────────────────────────────────────── */
.coord-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border: 1px solid var(--rule-soft);
  background: color-mix(in oklch, var(--ink) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 2px;
  font-size: 10px; letter-spacing: 0.14em;
  color: var(--paper-dim);
  text-transform: uppercase;
}
.coord-tag-n { color: var(--accent); }
.coord-tag-bar { width: 14px; height: 1px; background: var(--rule); }
.coord-tag-l { color: var(--paper); }

/* ─── Orbital diagram animation ────────────────────────────── */
.orbital { overflow: visible; }
.orb-ring-1 { transform-origin: 260px 260px; animation: orb-spin 24s linear infinite; }
.orb-ring-2 { transform-origin: 260px 260px; animation: orb-spin 60s linear infinite reverse; }
.orb-ring-3 { transform-origin: 260px 260px; animation: orb-spin 120s linear infinite; }

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

@media (prefers-reduced-motion: reduce) {
  .orb-ring-1, .orb-ring-2, .orb-ring-3 { animation: none; }
  .ghost-numeral { transform: none !important; }
}

/* ─── Stats bar ────────────────────────────────────────────── */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: clamp(48px, 6vw, 96px) 0;
}
.stats-cell {
  background: var(--ink);
  padding: 40px 32px 32px;
  display: flex; flex-direction: column; gap: 10px;
  opacity: 0; transform: translateY(16px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  position: relative;
}
.stats-bar.is-in .stats-cell { opacity: 1; transform: none; }
.stats-cell::before {
  content: ''; position: absolute; left: 32px; top: 24px;
  width: 6px; height: 6px; background: var(--accent);
  opacity: 0.8;
}
.stats-k {
  font-size: clamp(48px, 5vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--paper);
}
.stats-v {
  color: var(--paper-mute);
}

@media (max-width: 1100px) {
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .ghost-numeral { font-size: clamp(140px, 40vw, 260px); }
  .orbital { max-width: 100%; height: auto; }
}

/* ─── Decorative placements ────────────────────────────────── */
/* Services: giant ghost numeral behind title */
.services { position: relative; overflow: hidden; }
.services-ghost-wrap {
  position: absolute; right: -4%; top: 140px;
  pointer-events: none; z-index: 0;
  opacity: 0.6;
}

/* Why: orbital + constellation layer */
.why { position: relative; overflow: hidden; }
.why-orbital-wrap {
  position: absolute; right: -80px; top: 120px;
  pointer-events: none; z-index: 0;
  opacity: 0.45;
}
.why .why-grid { position: relative; z-index: 1; }

/* Engage: ASCII panel positioned as a stand-alone signature card */
.engage { position: relative; overflow: hidden; }
.engage-ascii-wrap {
  position: relative;
  z-index: 2;
  display: flex; justify-content: flex-end;
  padding-top: clamp(60px, 8vw, 120px);
  pointer-events: none;
}
.engage-ascii-card {
  position: relative;
  padding: 28px 32px;
  border: 1px solid var(--rule-soft);
  background: color-mix(in oklch, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-width: 520px;
  pointer-events: auto;
}
.engage-ascii-card .ascii-panel { font-size: 11px; opacity: 1; color: var(--paper-dim); }
.engage-ascii-card:hover .ascii-panel { color: var(--accent); }
.engage-ascii-card-label {
  position: absolute; top: -10px; left: 24px;
  background: var(--ink); padding: 0 8px;
  color: var(--paper-mute); font-size: 10px; letter-spacing: 0.18em;
}

@media (max-width: 900px) {
  .engage-ascii-wrap { justify-content: flex-start; }
  .engage-ascii-card { max-width: 100%; }
}

/* ─── Floating marks / parallax glyphs ────────────────────── */
.floating-marks {
  position: absolute; inset: 0;
  pointer-events: none; z-index: 0;
}
.float-mark {
  display: inline-flex; color: var(--paper-mute);
  opacity: 0.7;
}
.float-mark-text {
  font-size: 10px; letter-spacing: 0.2em;
  color: var(--paper-mute);
  text-transform: uppercase;
  white-space: nowrap;
}
.float-glyph {
  position: absolute;
  color: var(--rule);
  pointer-events: none;
  opacity: 0.6;
}

/* ─── Section edge (hairline cap rule) ────────────────────── */
.section-edge {
  display: grid; grid-template-columns: auto 1fr auto;
  align-items: center; gap: 16px;
  padding: 0 var(--pad-x);
  position: relative; z-index: 1;
}
.section-edge-cap {
  width: 10px; height: 10px;
  border: 1px solid var(--rule);
  display: block;
}
.section-edge-cap-l { border-right: 0; border-bottom: 0; }
.section-edge-cap-r { border-left: 0; border-top: 0; }
.section-edge-rule {
  height: 1px; background: var(--rule-soft);
  display: block;
}
.section-edge-top    { margin-top: -1px; }
.section-edge-bottom { margin-bottom: -1px; }

/* ─── Hero additional parallax layer ──────────────────────── */
.hero-mono-strip {
  position: absolute; left: 0; right: 0;
  bottom: 120px;
  padding: 0 var(--pad-x);
  z-index: 1;
  pointer-events: none;
  display: flex; justify-content: space-between;
  color: var(--paper-mute);
  opacity: 0.55;
  font-family: var(--f-mono);
  font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hero-mono-strip span::before {
  content: '◆ ';
  color: var(--accent); opacity: 0.7;
}

/* ─── Transition band bolstered ────────────────────────────── */
.transition-band { position: relative; }
.transition-band .float-glyph { opacity: 0.3; }

/* ─── Vertical rule along edges ───────────────────────────── */
.has-vrule { position: relative; }

@media (max-width: 900px) {
  .hero-mono-strip, .float-glyph { display: none; }
  .floating-marks { display: none; }
}

/* Between-section banner for coord tags */
.coord-strip {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding: clamp(24px, 3vw, 48px) 0;
  border-bottom: 1px solid var(--rule-soft);
  align-items: center;
}
.coord-strip-rule {
  flex: 1; height: 1px; background: var(--rule);
  min-width: 40px;
}
