/* Match Tile Challenge iOS — Blueprint conveyor layout
   Steampunk palette: #0d0d10 bg, #E68A5C copper, #40E0D0 cyan */

:root {
  --mtci-bg: #0d0d10;
  --mtci-surface: #16161c;
  --mtci-surface-2: #1e1e26;
  --mtci-copper: #e68a5c;
  --mtci-copper-dim: rgba(230, 138, 92, 0.45);
  --mtci-cyan: #40e0d0;
  --mtci-cyan-dim: rgba(64, 224, 208, 0.35);
  --mtci-text: #f0ebe3;
  --mtci-muted: #9a9389;
  --mtci-font-display: "Russo One", system-ui, sans-serif;
  --mtci-font-body: "Chakra Petch", system-ui, sans-serif;
  --mtci-radius: 14px;
  --mtci-nav-h: 64px;
  --mtci-max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body.mtci-body {
  margin: 0;
  font-family: var(--mtci-font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--mtci-text);
  background: var(--mtci-bg);
  overflow-x: hidden;
}

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

a {
  color: var(--mtci-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover { color: var(--mtci-copper); }

button {
  font-family: inherit;
  cursor: pointer;
}

code {
  font-size: 0.85em;
  padding: 0.12em 0.4em;
  border-radius: 4px;
  background: rgba(64, 224, 208, 0.1);
  color: var(--mtci-cyan);
}

/* AOS fallback: visible before init, CDN failure, or reduced motion */
html:not(.aos-init) [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  pointer-events: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
  }
}

/* Never hide page copy — AOS only slides elements in */
html.aos-init [data-aos] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

/* Blueprint grid overlay */
.mtci-blueprint {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(64, 224, 208, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(64, 224, 208, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 20%, transparent 75%);
}

.mtci-skip {
  position: absolute;
  left: -9999px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--mtci-copper);
  color: #1a1008;
  font-weight: 700;
}

.mtci-skip:focus {
  left: 1rem;
  top: 1rem;
}

/* Floating capsule nav */
.mtci-nav {
  position: fixed;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 100;
  transition: top 0.25s ease;
}

.mtci-nav.is-scrolled {
  top: 0.5rem;
}

.mtci-nav__capsule {
  position: relative;
  max-width: var(--mtci-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0.65rem 0.45rem 0.85rem;
  border: 1px solid var(--mtci-copper-dim);
  border-radius: 999px;
  background: rgba(22, 22, 28, 0.88);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.mtci-nav.is-scrolled .mtci-nav__capsule {
  border-color: var(--mtci-copper);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55), 0 0 24px rgba(230, 138, 92, 0.12);
}

.mtci-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mtci-text);
  text-decoration: none;
  flex-shrink: 0;
}

.mtci-nav__brand img {
  border-radius: 10px;
  border: 1px solid var(--mtci-copper-dim);
}

.mtci-nav__brand span {
  font-family: var(--mtci-font-display);
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.mtci-nav__brand small {
  display: block;
  font-family: var(--mtci-font-body);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--mtci-cyan);
  letter-spacing: 0.12em;
}

.mtci-nav__toggle {
  display: flex;
  margin-left: auto;
  padding: 0.4rem;
  border: 1px solid var(--mtci-copper-dim);
  border-radius: 10px;
  background: var(--mtci-surface-2);
  color: var(--mtci-copper);
}

.mtci-nav__toggle svg {
  width: 22px;
  height: 22px;
}

.mtci-nav__panel {
  display: none;
}

@media (min-width: 900px) {
  .mtci-nav__toggle { display: none; }

  .mtci-nav__panel {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-left: auto;
  }

  .mtci-nav__panel nav {
    display: flex;
    gap: 1.25rem;
  }

  .mtci-nav__panel nav a {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mtci-muted);
  }

  .mtci-nav__panel nav a:hover {
    color: var(--mtci-copper);
  }
}

.mtci-nav__panel.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  padding: 1rem;
  border-radius: var(--mtci-radius);
  border: 1px solid var(--mtci-copper-dim);
  background: rgba(22, 22, 28, 0.98);
  gap: 0.75rem;
}

.mtci-nav__panel.is-open nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mtci-nav__panel.is-open nav a {
  padding: 0.5rem 0.65rem;
  color: var(--mtci-text);
  border-radius: 8px;
}

.mtci-nav__panel.is-open nav a:hover {
  background: rgba(230, 138, 92, 0.1);
}

/* Right chapter rail */
.mtci-rail {
  display: none;
}

@media (min-width: 1100px) {
  .mtci-rail {
    display: block;
    position: fixed;
    right: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    z-index: 50;
    width: 120px;
  }

  .mtci-rail__list {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
  }

  .mtci-rail__line {
    position: absolute;
    left: 11px;
    top: 12px;
    bottom: 12px;
    width: 2px;
    background: rgba(230, 138, 92, 0.2);
    border-radius: 2px;
  }

  .mtci-rail__line span {
    display: block;
    width: 100%;
    height: 0%;
    background: linear-gradient(180deg, var(--mtci-cyan), var(--mtci-copper));
    border-radius: 2px;
    transition: height 0.2s ease;
  }

  .mtci-rail__dot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 0;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mtci-muted);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .mtci-rail__dot::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid var(--mtci-copper-dim);
    background: var(--mtci-bg);
    flex-shrink: 0;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .mtci-rail__dot span {
    opacity: 0.5;
    margin-right: 0.15rem;
  }

  .mtci-rail__dot.is-active,
  .mtci-rail__dot:hover {
    color: var(--mtci-copper);
  }

  .mtci-rail__dot.is-active::before {
    border-color: var(--mtci-cyan);
    box-shadow: 0 0 12px rgba(64, 224, 208, 0.6);
    background: var(--mtci-cyan);
  }

  #mtci-main {
    padding-right: 5rem;
  }
}

/* Buttons */
.mtci-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.35rem;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mtci-btn svg {
  width: 18px;
  height: 18px;
}

.mtci-btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.78rem;
}

.mtci-btn--lg {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.mtci-btn--copper {
  background: linear-gradient(180deg, #f0a070, var(--mtci-copper));
  color: #1a1008;
  box-shadow: 0 4px 20px rgba(230, 138, 92, 0.35);
}

.mtci-btn--copper:hover {
  box-shadow: 0 6px 28px rgba(230, 138, 92, 0.5);
}

.mtci-btn--cyan {
  background: linear-gradient(180deg, #5ce8dc, var(--mtci-cyan));
  color: #061816;
  box-shadow: 0 4px 20px rgba(64, 224, 208, 0.35);
}

.mtci-btn--cyan:hover {
  box-shadow: 0 6px 28px rgba(64, 224, 208, 0.5);
}

.mtci-btn--ghost {
  background: transparent;
  color: var(--mtci-cyan);
  border: 2px solid var(--mtci-cyan-dim);
}

.mtci-btn--ghost:hover {
  border-color: var(--mtci-cyan);
  background: rgba(64, 224, 208, 0.08);
}

/* Main */
#mtci-main {
  position: relative;
  z-index: 1;
  max-width: var(--mtci-max);
  margin: 0 auto;
  padding: calc(var(--mtci-nav-h) + 2rem) 1.25rem 4rem;
}

/* Hero editorial */
.mtci-hero {
  position: relative;
  min-height: min(88vh, 900px);
  display: flex;
  align-items: center;
  padding: 2rem 0 4rem;
  overflow: hidden;
}

.mtci-hero__type {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}

.mtci-hero__type-line {
  font-family: var(--mtci-font-display);
  font-size: clamp(4rem, 18vw, 11rem);
  line-height: 0.85;
  letter-spacing: -0.02em;
  color: rgba(230, 138, 92, 0.07);
  white-space: nowrap;
}

.mtci-hero__type-line--ghost {
  margin-left: 0.15em;
  color: rgba(64, 224, 208, 0.05);
}

.mtci-hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  align-items: center;
  width: 100%;
}

@media (min-width: 900px) {
  .mtci-hero__inner {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }
}

.mtci-kicker {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mtci-cyan);
}

.mtci-hero h1 {
  margin: 0 0 1rem;
  font-family: var(--mtci-font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.85rem);
  line-height: 1.12;
  color: var(--mtci-copper);
  max-width: 14ch;
}

.mtci-lead {
  margin: 0 0 1.5rem;
  color: var(--mtci-muted);
  font-size: 1.05rem;
  max-width: 38ch;
}

.mtci-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* Device + conveyor belt */
.mtci-hero__device {
  display: flex;
  justify-content: center;
}

.mtci-device {
  position: relative;
  width: min(260px, 72vw);
  padding: 12px;
  border-radius: 32px;
  background: linear-gradient(160deg, #3d3028, #1a1410);
  border: 2px solid #6b5340;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(64, 224, 208, 0.1);
}

.mtci-device__belt {
  position: absolute;
  bottom: -18px;
  left: -20%;
  right: -20%;
  height: 8px;
  background: repeating-linear-gradient(
    90deg,
    var(--mtci-copper) 0,
    var(--mtci-copper) 12px,
    #3d3028 12px,
    #3d3028 24px
  );
  border-radius: 4px;
  animation: mtci-belt 4s linear infinite;
}

@keyframes mtci-belt {
  to { background-position: 48px 0; }
}

.mtci-device__screen {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  background: #0a0a0c;
  border-radius: 22px;
  border: 2px solid #0a0a0c;
}

/* Sections */
.mtci-section {
  padding: 4rem 0;
}

.mtci-section__head {
  margin-bottom: 2.5rem;
  max-width: 36rem;
}

.mtci-section__head h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mtci-font-display);
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mtci-copper);
}

.mtci-section__head p {
  margin: 0;
  color: var(--mtci-muted);
}

/* Pipeline */
.mtci-pipeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.mtci-pipeline::before {
  content: "";
  position: absolute;
  left: 27px;
  top: 24px;
  bottom: 24px;
  width: 3px;
  background: linear-gradient(180deg, var(--mtci-cyan), var(--mtci-copper), var(--mtci-cyan));
  border-radius: 3px;
  opacity: 0.5;
}

@media (min-width: 768px) {
  .mtci-pipeline::before {
    left: 50%;
    transform: translateX(-50%);
  }
}

.mtci-pipeline__step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
  align-items: start;
}

@media (min-width: 768px) {
  .mtci-pipeline__step {
    grid-template-columns: 1fr 56px 1fr;
    gap: 1.5rem;
  }

  .mtci-pipeline__step--alt {
    direction: rtl;
  }

  .mtci-pipeline__step--alt > * {
    direction: ltr;
  }

  .mtci-pipeline__step--alt .mtci-pipeline__node {
    grid-column: 2;
  }

  .mtci-pipeline__step--alt .mtci-pipeline__card {
    grid-column: 1;
    text-align: right;
  }

  .mtci-pipeline__step:not(.mtci-pipeline__step--alt) .mtci-pipeline__card {
    grid-column: 3;
  }

  .mtci-pipeline__step:not(.mtci-pipeline__step--alt) .mtci-pipeline__node {
    grid-column: 2;
    grid-row: 1;
  }
}

.mtci-pipeline__node {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mtci-surface);
  border: 2px solid var(--mtci-copper);
  color: var(--mtci-copper);
  box-shadow: 0 0 20px rgba(230, 138, 92, 0.2);
  z-index: 1;
}

.mtci-pipeline__node svg {
  width: 26px;
  height: 26px;
}

.mtci-pipeline__node--cyan {
  border-color: var(--mtci-cyan);
  color: var(--mtci-cyan);
  box-shadow: 0 0 20px rgba(64, 224, 208, 0.25);
}

.mtci-pipeline__card {
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--mtci-copper-dim);
  border-radius: var(--mtci-radius);
  background: var(--mtci-surface);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtci-pipeline__card:hover {
  border-color: var(--mtci-copper);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.mtci-pipeline__card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mtci-font-display);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

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

/* Zones 2×2 */
.mtci-zones {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .mtci-zones {
    grid-template-columns: repeat(2, 1fr);
  }
}

.mtci-zone {
  position: relative;
  padding: 1.5rem;
  border-radius: var(--mtci-radius);
  border: 1px solid var(--mtci-copper-dim);
  background: var(--mtci-surface);
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
  cursor: default;
}

.mtci-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.12;
  pointer-events: none;
}

.mtci-zone--green::before { background: linear-gradient(135deg, #3d8b5a, transparent); }
.mtci-zone--desert::before { background: linear-gradient(135deg, #c47a3a, transparent); }
.mtci-zone--frozen::before { background: linear-gradient(135deg, #5ba8d4, transparent); }
.mtci-zone--harbor::before { background: linear-gradient(135deg, var(--mtci-cyan), transparent); }

.mtci-zone:hover {
  border-color: var(--mtci-copper);
  transform: translateY(-2px);
}

.mtci-zone__id {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--mtci-font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--mtci-copper);
}

.mtci-zone h3 {
  margin: 0 0 0.35rem;
  font-family: var(--mtci-font-display);
  font-size: 1.1rem;
}

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

/* Screenshots — bronze forge frames (matches dark steampunk theme) */
.mtci-polaroids {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 1.25rem;
  align-items: flex-end;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--mtci-copper) transparent;
}

.mtci-polaroid {
  position: relative;
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  padding: 10px;
  background: linear-gradient(155deg, #242018 0%, #16161c 55%, #121218 100%);
  border: 1px solid var(--mtci-copper-dim);
  border-radius: var(--mtci-radius-sm);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(230, 138, 92, 0.12);
  transform: rotate(-1deg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: default;
}

/* Inner blueprint inset + bottom energy strip */
.mtci-polaroid::before {
  content: "";
  position: absolute;
  inset: 8px 8px 26px;
  border: 1px solid rgba(64, 224, 208, 0.14);
  border-radius: 6px;
  pointer-events: none;
}

.mtci-polaroid::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mtci-cyan), var(--mtci-copper));
  opacity: 0.55;
}

.mtci-polaroid--raise {
  transform: rotate(1deg) translateY(-8px);
}

.mtci-polaroid:hover {
  border-color: var(--mtci-copper);
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.55),
    0 0 28px rgba(230, 138, 92, 0.12),
    inset 0 1px 0 rgba(230, 138, 92, 0.2);
  z-index: 2;
}

.mtci-polaroid:hover::before {
  border-color: rgba(64, 224, 208, 0.28);
}

.mtci-polaroid:hover::after {
  opacity: 0.85;
}

.mtci-polaroid img {
  position: relative;
  z-index: 1;
  width: min(260px, 72vw);
  height: auto;
  max-height: min(72vh, 560px);
  object-fit: contain;
  object-position: center top;
  display: block;
  background: #0a0a0c;
  border: 1px solid rgba(230, 138, 92, 0.3);
  border-radius: 6px;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.35);
}

@media (min-width: 1100px) {
  .mtci-polaroids {
    flex-wrap: wrap;
    justify-content: center;
    overflow-x: visible;
    scroll-snap-type: none;
  }

  .mtci-polaroid img {
    width: min(220px, 18vw);
    max-height: 480px;
  }
}

/* Download forge */
.mtci-forge {
  text-align: center;
  padding: 2.5rem 1.5rem;
  border: 2px solid var(--mtci-copper-dim);
  border-radius: var(--mtci-radius);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(230, 138, 92, 0.12), transparent 55%),
    var(--mtci-surface);
}

.mtci-forge__icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
  border: 2px solid var(--mtci-copper);
  box-shadow: 0 0 28px rgba(230, 138, 92, 0.3);
}

.mtci-forge h2 {
  margin: 0 0 0.5rem;
  font-family: var(--mtci-font-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: var(--mtci-copper);
}

.mtci-forge > p {
  margin: 0 auto 1.5rem;
  max-width: 40ch;
  color: var(--mtci-muted);
}

.mtci-forge__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Footer */
.mtci-footer {
  position: relative;
  z-index: 1;
  padding: 2rem 1.25rem 5rem;
  border-top: 1px solid var(--mtci-copper-dim);
  text-align: center;
}

.mtci-footer p {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--mtci-muted);
}

.mtci-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 1.5rem;
}

.mtci-footer a {
  font-size: 0.9rem;
  color: var(--mtci-muted);
}

/* FAB */
.mtci-fab {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 90;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mtci-cyan), #2db8a8);
  color: #061816;
  box-shadow: 0 8px 28px rgba(64, 224, 208, 0.45);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mtci-fab svg {
  width: 24px;
  height: 24px;
}

.mtci-fab:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 36px rgba(64, 224, 208, 0.55);
}

@media (min-width: 900px) {
  .mtci-fab {
    bottom: 2rem;
    right: 8rem;
  }
}

/* Modal */
.mtci-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.mtci-modal[hidden] {
  display: none;
}

.mtci-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
}

.mtci-modal__panel {
  position: relative;
  width: min(400px, 100%);
  padding: 2rem 1.75rem;
  border: 2px solid var(--mtci-copper);
  border-radius: var(--mtci-radius);
  background: var(--mtci-surface);
  text-align: center;
  box-shadow: 0 0 40px rgba(64, 224, 208, 0.2);
}

.mtci-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--mtci-copper-dim);
  border-radius: 8px;
  background: var(--mtci-surface-2);
  color: var(--mtci-muted);
  cursor: pointer;
}

.mtci-modal__close:hover {
  color: var(--mtci-copper);
}

.mtci-modal h2 {
  margin: 0 0 0.75rem;
  font-family: var(--mtci-font-display);
  color: var(--mtci-cyan);
}

.mtci-modal p {
  margin: 0 0 1.25rem;
  color: var(--mtci-muted);
}

/* Focus */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--mtci-cyan);
  outline-offset: 3px;
}
