/* ============================================================
   MindMap program page · HowToTrade
   ============================================================ */

.mm-eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.mm-gradient {
  background: linear-gradient(100deg, #ff7a45 0%, #ffd166 48%, #ff8a5c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ------------------------------------------------------------ hero */

.mm-hero {
  position: relative;
  overflow: hidden;
  padding: 60px 0 24px;
}

.mm-hero::before,
.mm-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(10px);
}

.mm-hero::before {
  width: 620px;
  height: 620px;
  right: -180px;
  top: -260px;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.2), transparent 62%);
}

.mm-hero::after {
  width: 520px;
  height: 520px;
  left: -220px;
  bottom: -320px;
  background: radial-gradient(circle, rgba(255, 209, 102, 0.12), transparent 62%);
}

.mm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 44px;
  align-items: center;
}

.mm-hero h1 {
  margin: 8px 0 18px;
  font-size: clamp(38px, 5.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.045em;
  font-weight: 720;
}

.mm-lead {
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 56ch;
  margin: 0;
}

.mm-trial {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.mm-trial .hint {
  color: var(--muted-2);
  font-size: 12.5px;
}

.mm-trial .mm-download {
  border-color: rgba(255, 122, 69, 0.42);
  background: var(--accent-soft);
  color: var(--accent);
}

.mm-trial .mm-download:hover {
  background: rgba(255, 122, 69, 0.2);
  border-color: rgba(255, 122, 69, 0.65);
}

.mm-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.mm-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.mm-badge {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.mm-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
}

.mm-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 122, 69, 0.16);
  transform: rotate(-8deg);
}

.mm-visual::after {
  content: "";
  position: absolute;
  inset: 20% 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 209, 102, 0.08);
}

.mm-graph {
  position: relative;
  width: 100%;
  max-width: 570px;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.6));
  z-index: 2;
}

.mm-link {
  fill: none;
  stroke: rgba(255, 122, 69, 0.55);
  stroke-width: 1.6;
  stroke-dasharray: 5 8;
  animation: mmDash 7s linear infinite;
}

.mm-link.y {
  stroke: rgba(255, 209, 102, 0.42);
}

.mm-node rect,
.mm-node circle {
  fill: #12161d;
  stroke: rgba(255, 122, 69, 0.5);
  stroke-width: 1.2;
}

.mm-node.center circle {
  fill: url(#mmCenter);
  stroke: rgba(255, 209, 102, 0.9);
  stroke-width: 1.6;
  filter: url(#mmGlow);
}

.mm-node text {
  fill: #ecebe6;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
}

.mm-node .sub {
  fill: rgba(26, 13, 6, 0.72);
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.mm-node .dot {
  fill: var(--accent);
}

.mm-node.center .dot {
  fill: #1a0d06;
}

.mm-float {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(14, 17, 22, 0.82);
  backdrop-filter: blur(10px);
  color: var(--text);
  font-size: 12.5px;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  animation: mmFloat 7s ease-in-out infinite;
}

.mm-float::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.9);
}

.mm-float.a {
  left: 2%;
  top: 7%;
}

.mm-float.b {
  right: 0;
  bottom: 2%;
  animation-delay: -3.5s;
}

.mm-float.b::before {
  background: var(--accent);
  box-shadow: 0 0 12px rgba(255, 122, 69, 0.9);
}

@keyframes mmDash {
  to {
    stroke-dashoffset: -260;
  }
}

@keyframes mmFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ------------------------------------------------------------ stats */

.mm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.mm-stat {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  padding: 18px 20px;
}

.mm-stat strong {
  display: block;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.mm-stat span {
  display: block;
  margin-top: 4px;
  color: var(--muted-2);
  font-size: 12.5px;
}

/* ------------------------------------------------------------ sections */

.mm-section {
  padding: 66px 0 0;
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.mm-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 22px;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.mm-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 69, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.mm-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 122, 69, 0.4);
  box-shadow: var(--shadow);
}

.mm-card:hover::before {
  opacity: 1;
}

.mm-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255, 122, 69, 0.12);
  color: var(--accent);
  margin-bottom: 14px;
}

.mm-icon svg {
  width: 21px;
  height: 21px;
}

.mm-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.mm-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.6px;
  line-height: 1.68;
}

/* ------------------------------------------------------------ samples */

.mm-samples {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mm-sample {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: radial-gradient(560px 200px at 10% 0%, rgba(255, 122, 69, 0.13), transparent 62%),
    var(--panel);
}

.mm-sample.eng {
  background: radial-gradient(560px 200px at 10% 0%, rgba(74, 222, 128, 0.1), transparent 62%),
    var(--panel);
}

.mm-sample.chi {
  background: radial-gradient(560px 200px at 10% 0%, rgba(138, 180, 255, 0.11), transparent 62%),
    var(--panel);
}

.mm-sample-top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.mm-sample-badge {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #1a0d06;
  background: linear-gradient(145deg, #ff8a5c, var(--accent));
}

.mm-sample.eng .mm-sample-badge {
  background: linear-gradient(145deg, #86efac, #22c55e);
}

.mm-sample.chi .mm-sample-badge {
  background: linear-gradient(145deg, #a5c8ff, #6c8cff);
}

.mm-sample h3 {
  margin: 14px 0 4px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.mm-sample-stats {
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
}

.mm-sample.eng .mm-sample-stats {
  color: #86efac;
}

.mm-sample.chi .mm-sample-stats {
  color: #a5c8ff;
}

.mm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 16px 0 14px;
}

.mm-tag {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.mm-sample-note {
  border-top: 1px solid var(--line-soft);
  padding-top: 13px;
  color: var(--muted-2);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ workflow */

.mm-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: mmstep;
}

.mm-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 24px 20px 20px;
  background: rgba(255, 255, 255, 0.02);
}

.mm-step::before {
  counter-increment: mmstep;
  content: "0" counter(mmstep);
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 12px;
}

.mm-step h3 {
  margin: 0 0 7px;
  font-size: 15.5px;
}

.mm-step p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

/* ------------------------------------------------------------ preview */

.mm-preview-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 20px;
  align-items: stretch;
}

.mm-window {
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #0b0d11;
  box-shadow: var(--shadow);
}

.mm-window-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line-soft);
  background: #0e1116;
}

.mm-window-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2a303a;
  display: inline-block;
}

.mm-window-bar span {
  margin-left: 10px;
  color: var(--muted-2);
  font-size: 11.5px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.mm-window-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 238px;
  min-height: 330px;
}

.mm-canvas {
  position: relative;
  overflow: hidden;
  background: radial-gradient(420px 260px at 40% 20%, rgba(255, 122, 69, 0.08), transparent 62%),
    #0a0c10;
}

.mm-canvas svg {
  width: 100%;
  height: 100%;
  display: block;
}

.mm-notes {
  border-left: 1px solid var(--line-soft);
  background: #0d1015;
  padding: 16px;
}

.mm-notes-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.2em;
  color: var(--accent);
  border: 1px solid rgba(255, 122, 69, 0.3);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 10px;
}

.mm-notes h4 {
  margin: 0 0 10px;
  font-size: 14px;
}

.mm-note-line {
  height: 7px;
  border-radius: 4px;
  background: #1a1f27;
  margin: 8px 0;
}

.mm-note-line.short {
  width: 66%;
}

.mm-note-hl {
  margin-top: 14px;
  padding: 10px 11px;
  border-radius: 9px;
  border: 1px solid rgba(255, 122, 69, 0.22);
  background: rgba(255, 122, 69, 0.07);
  color: #ffb08c;
  font-size: 11.5px;
  line-height: 1.6;
}

.mm-phone {
  width: min(238px, 100%);
  margin-inline: auto;
  border: 1px solid #2a303a;
  border-radius: 28px;
  padding: 10px;
  background: #0b0d11;
  box-shadow: var(--shadow);
}

.mm-phone-screen {
  position: relative;
  border-radius: 19px;
  overflow: hidden;
  background: radial-gradient(220px 160px at 50% 20%, rgba(255, 122, 69, 0.1), transparent 62%),
    #0a0c10;
  aspect-ratio: 9 / 16;
  display: flex;
  flex-direction: column;
}

.mm-phone-top {
  padding: 14px 14px 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
}

.mm-phone-top small {
  display: block;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 400;
  margin-top: 2px;
}

.mm-phone-screen svg {
  flex: 1;
  width: 100%;
  display: block;
}

.mm-phone-notes {
  margin: 0 10px 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10.5px;
  color: var(--muted);
  line-height: 1.55;
}

.mm-preview-caption {
  margin-top: 14px;
  color: var(--muted-2);
  font-size: 12.5px;
  text-align: center;
}

/* ------------------------------------------------------------ who */

.mm-who {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.mm-who div {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.mm-who strong {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
}

.mm-who span {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ------------------------------------------------------------ CTA */

.mm-cta-band {
  margin: 72px 0 48px;
  padding: 38px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 122, 69, 0.35);
  background: radial-gradient(700px 260px at 18% 0%, rgba(255, 122, 69, 0.16), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.mm-cta-band h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.03em;
}

.mm-cta-band p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
}

.mm-contact {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------ home teaser */

.program-teaser-wrap {
  padding: 28px 0 0;
}

.program-teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 122, 69, 0.3);
  background: radial-gradient(620px 220px at 8% 0%, rgba(255, 122, 69, 0.16), transparent 62%),
    var(--panel);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.program-teaser:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 69, 0.58);
  box-shadow: var(--shadow);
}

.program-teaser .eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 7px;
}

.program-teaser h2 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: -0.025em;
}

.program-teaser p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13.5px;
}

.program-teaser-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.program-teaser-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  color: var(--muted);
}

.program-teaser-cta {
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* ------------------------------------------------------------ mini graphs */

.mm-mini-link {
  fill: none;
  stroke: rgba(255, 122, 69, 0.42);
  stroke-width: 1.2;
}

.mm-mini-node rect {
  fill: #151a21;
  stroke: rgba(255, 122, 69, 0.35);
  stroke-width: 1;
}

.mm-mini-node text {
  fill: #cfd6df;
  font-family: var(--font);
  font-size: 10.5px;
  font-weight: 500;
}

.mm-mini-node.center rect {
  fill: #ff7a45;
  stroke: #ffd166;
}

.mm-mini-node.center text {
  fill: #1a0d06;
  font-weight: 700;
}

/* ------------------------------------------------------------ home landing */

html.is-home #home-landing { display: block; }
html.is-home #works-content { display: none; }
#home-landing { display: none; padding-top: 14px; }

.hero-hl { color: var(--accent); }

html.is-home .works-hero { max-width: none; }
html.is-home .works-hero h1 {
  font-size: clamp(24px, 3.6vw, 46px);
  white-space: nowrap;
  letter-spacing: -0.035em;
}

.home-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 300px);
  align-items: center;
  gap: 24px;
  border: 1px solid rgba(255, 122, 69, 0.3);
  border-radius: var(--radius);
  padding: 26px 28px;
  background: var(--panel);
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 122, 69, 0.52);
  box-shadow: var(--shadow);
}

.home-card.c3d {
  background: radial-gradient(620px 220px at 8% 0%, rgba(255, 122, 69, 0.16), transparent 62%),
    var(--panel);
}

.home-card.ctrade {
  background: radial-gradient(620px 220px at 8% 0%, rgba(74, 222, 128, 0.1), transparent 62%),
    var(--panel);
}

.home-card.cmind {
  background: radial-gradient(620px 220px at 8% 0%, rgba(138, 180, 255, 0.13), transparent 62%),
    var(--panel);
}

.home-card.cgame {
  background: radial-gradient(620px 220px at 8% 0%, rgba(255, 168, 90, 0.12), transparent 62%),
    var(--panel);
}

.home-card-main {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.home-card .mm-eyebrow {
  margin-bottom: 8px;
}

.home-card h2 {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.3vw, 26px);
  letter-spacing: -0.025em;
}

.home-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.8px;
  line-height: 1.65;
  max-width: 78ch;
}

.home-card .home-tagline {
  margin: 0 0 6px;
  color: var(--text);
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.home-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.home-tags span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  color: var(--muted);
}

.home-cta {
  display: inline-block;
  margin-top: 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.18s ease;
}

.home-card:hover .home-cta {
  transform: translateX(4px);
}

.home-card-visual {
  position: relative;
  z-index: 0;
  height: 168px;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0.95;
}

.home-card-visual::before {
  content: "";
  position: absolute;
  inset: 6% 2%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.18), transparent 70%);
  filter: blur(14px);
}

.home-card.ctrade .home-card-visual::before {
  background: radial-gradient(circle, rgba(74, 222, 128, 0.16), transparent 70%);
}

.home-card.cmind .home-card-visual::before {
  background: radial-gradient(circle, rgba(138, 180, 255, 0.18), transparent 70%);
}

.home-card.cgame .home-card-visual::before {
  background: radial-gradient(circle, rgba(255, 168, 90, 0.2), transparent 70%);
}

.home-card-visual svg {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: visible;
  transition: transform 0.3s ease;
}

.home-card:hover .home-card-visual svg {
  transform: scale(1.03);
}

.home-card-visual .whv-chip,
.home-card-visual .qv-chip,
.home-card-visual .qv-price,
.home-card-visual .mm-node text {
  display: none;
}

/* ------------------------------------------------------ game card motion */

.gv-boat {
  animation: gv-bob 4.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gv-heli {
  animation: gv-hover 4.2s ease-in-out infinite;
}

.gv-rotor {
  animation: gv-spin 0.7s linear infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gv-jet {
  animation: gv-jet 5.6s ease-in-out infinite;
}

.gv-soldier {
  animation: gv-soldier 3.6s ease-in-out infinite;
}

.gv-reticle {
  animation: gv-lock 2.8s ease-in-out infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.gv-reticle circle:first-child {
  stroke-dasharray: 5 7;
  animation: gv-orbit 7s linear infinite;
}

.gv-tracer {
  stroke-dasharray: 3 7;
  animation: gv-trace 0.9s linear infinite;
}

.gv-tracer.b {
  animation-delay: 0.28s;
}

@keyframes gv-bob {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(2.5px) rotate(-1.2deg); }
}

@keyframes gv-hover {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes gv-spin {
  to { transform: rotate(360deg); }
}

@keyframes gv-jet {
  0%, 100% { transform: translate(0, 0); opacity: 0.9; }
  50% { transform: translate(-14px, 4px); opacity: 1; }
}

@keyframes gv-soldier {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@keyframes gv-lock {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes gv-orbit {
  to { stroke-dashoffset: -96; }
}

@keyframes gv-trace {
  to { stroke-dashoffset: -30; }
}

.hr-sweep {
  transform-box: view-box;
  transform-origin: 230px 160px;
  animation: hr-sweep 7s linear infinite;
}

.hr-blip circle:first-child {
  animation: hr-blip 2.8s ease-in-out infinite;
}

.hr-blip.b circle:first-child { animation-delay: 0.9s; }
.hr-blip.c circle:first-child { animation-delay: 1.7s; }

.hr-blip circle:last-child {
  transform-box: fill-box;
  transform-origin: center;
  animation: hr-ring 2.8s ease-out infinite;
}

.hr-blip.b circle:last-child { animation-delay: 0.9s; }
.hr-blip.c circle:last-child { animation-delay: 1.7s; }

@keyframes hr-sweep {
  to { transform: rotate(360deg); }
}

@keyframes hr-blip {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes hr-ring {
  0% { opacity: 0.7; transform: scale(0.7); }
  80%, 100% { opacity: 0; transform: scale(1.6); }
}

/* ------------------------------------------------------- 3D works hero */

.works-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
  max-width: none;
}

.works-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.works-hero-eyebrow {
  margin-bottom: 12px;
}

.works-hero-lead {
  max-width: 54ch;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.works-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.works-hero-gradient {
  background: linear-gradient(100deg, #ffd166 0%, #ff7a45 58%, #ff5e3a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.works-hero-visual {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-hero-visual svg {
  display: block;
  width: 100%;
  max-width: 460px;
  height: auto;
  filter: drop-shadow(0 34px 70px rgba(255, 122, 69, 0.16));
}

.whv-glow {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 69, 0.2), transparent 68%);
  filter: blur(30px);
  pointer-events: none;
}

.whv-object {
  animation: whv-float 7s ease-in-out infinite;
  transform-origin: 230px 180px;
}

.whv-chip {
  animation: whv-chip-float 6s ease-in-out infinite;
}

.whv-chip.b {
  animation-delay: -2.2s;
}

.whv-pulse {
  animation: whv-ping 2.6s ease-out infinite;
  transform-origin: 230px 92px;
}

@keyframes whv-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes whv-chip-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes whv-ping {
  0% {
    transform: scale(0.7);
    opacity: 0.8;
  }
  80%,
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

html.is-home .works-hero {
  display: block;
  max-width: none;
  text-align: center;
}

html.is-home .works-hero-copy {
  max-width: none;
}

html.is-home .works-hero-eyebrow,
html.is-home .works-hero-lead,
html.is-home .works-hero-actions,
html.is-home .works-hero-visual {
  display: none;
}

html.is-home .works-hero h1 {
  margin-left: auto;
  margin-right: auto;
}

/* ------------------------------------------------------- bottom contact */

.works-contact {
  margin: 64px auto 90px;
  text-align: center;
}

.works-contact-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(620px 260px at 50% 0%, rgba(255, 122, 69, 0.14), transparent 64%),
    var(--panel);
}

.works-contact .mm-eyebrow {
  margin-bottom: 10px;
}

.works-contact h2 {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.03em;
}

.works-contact p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
}

.works-contact .mm-contact {
  justify-content: center;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .works-hero {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .works-hero-visual {
    min-height: 220px;
  }

  .works-hero-visual svg {
    max-width: 380px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whv-object,
  .whv-chip,
  .whv-pulse,
  .gv-boat,
  .gv-heli,
  .gv-rotor,
  .gv-jet,
  .gv-soldier,
  .gv-reticle,
  .gv-reticle circle:first-child,
  .gv-tracer,
  .hr-sweep,
  .hr-blip circle {
    animation: none !important;
  }
}

.home-contact {
  margin: 36px 0 28px;
}

@media (max-width: 900px) {
  .home-card {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .home-card-visual {
    display: none;
  }

  .home-cta {
    align-self: flex-start;
  }

  html.is-home .works-hero h1 {
    white-space: normal;
  }
}

/* ------------------------------------------------------------ responsive */

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

  .mm-visual {
    min-height: 380px;
    order: -1;
  }

  .mm-grid,
  .mm-flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .mm-samples {
    grid-template-columns: 1fr;
  }

  .mm-preview-grid {
    grid-template-columns: 1fr;
  }

  .mm-stats,
  .mm-who {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .mm-hero {
    padding-top: 34px;
  }

  .mm-visual {
    min-height: 300px;
  }

  .mm-float {
    display: none;
  }

  .mm-grid,
  .mm-flow,
  .mm-stats,
  .mm-who {
    grid-template-columns: 1fr;
  }

  .mm-window-body {
    grid-template-columns: 1fr;
  }

  .mm-notes {
    display: none;
  }

  .mm-cta-band {
    padding: 26px;
  }

  .program-teaser {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-link,
  .mm-float {
    animation: none !important;
  }
}
