.m-hero { position: relative; overflow: hidden; padding: clamp(36px, 5vw, 70px) 0 clamp(90px, 10vw, 140px); background: linear-gradient(160deg, #effbfd 0%, #f4fbff 45%, #f7f4fe 100%); }
.m-hero::before { content: ""; position: absolute; inset: -25% -8% auto auto; width: 70vw; height: 70vw; max-width: 900px; max-height: 900px; background: radial-gradient(closest-side, rgba(14, 191, 216, .22), transparent 70%); pointer-events: none; }
.m-hero .wave { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(50px, 7vw, 100px); display: block; }
.m-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.m-logo { width: 230px; height: auto; margin-bottom: 22px; }
.m-hero h1 { font-size: clamp(2.3rem, 4.8vw, 3.8rem); margin-bottom: .35em; }
.m-hero .lead { margin-bottom: 1.6rem; }
.m-orbit { position: relative; max-width: 520px; margin: 0 auto; width: 100%; }
.m-orbit img { width: 100%; height: auto; filter: drop-shadow(0 30px 40px rgba(14, 120, 150, .18)); }
.m-hero-photo { border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3.2; }
.m-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.m-pill { display: inline-flex; align-items: center; gap: 8px; font: 700 .8rem/1 var(--sans); color: #0b6b7b; background: #fff; border: 1px solid #c9eef4; border-radius: 999px; padding: 8px 12px; margin-bottom: 18px; }
.m-pill svg { width: 16px; height: 16px; stroke: var(--teal-600); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.m-replace { display: grid; grid-template-columns: .9fr 1.3fr; gap: clamp(26px, 5vw, 60px); align-items: center; }
.m-replace-card { background: var(--grad-violet); color: #fff; border-radius: 26px; padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.m-replace-card::after { content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(closest-side, rgba(51, 228, 219, .45), transparent 70%); }
.m-replace-card > * { position: relative; z-index: 1; }
.m-replace-card .eyebrow { color: #fff; }
.m-replace-card .eyebrow::before { background: #fff; }
.m-replace-card ul { display: grid; gap: 4px; }
.m-replace-card li { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.95rem); font-weight: 700; line-height: 1.25; }
.m-replace-card svg { width: 54px; height: 54px; stroke: #fff; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }

.m-band { position: relative; overflow: hidden; border-radius: 30px; background: linear-gradient(140deg, #e6f8fb 0%, #eef4ff 55%, #f3effd 100%); border: 1px solid #d9eef3; padding: clamp(32px, 6vw, 70px) clamp(20px, 5vw, 60px) 0; text-align: center; }
.m-band h2 { margin-bottom: .35em; }
.m-band .lead { margin: 0 auto 30px; }
.m-band .laptop { max-width: 980px; margin: 0 auto; }
.m-band .laptop img { width: 100%; height: auto; }
.m-band .chips { justify-content: center; margin-bottom: 26px; }
.m-band .chip { background: #fff; border: 1px solid #d5e9f0; }

.m-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 26px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; color: var(--text); }
.m-tile:hover { border-color: var(--violet-100); box-shadow: var(--shadow); }
.m-tile img { width: 118px; height: 118px; object-fit: contain; margin: -6px auto 6px; }
.m-tile h3 { font-size: 1.32rem; margin-bottom: .4em; }
.m-tile p { font-size: .95rem; color: var(--muted); margin-bottom: 14px; }
.m-tile .kb-links { margin-top: auto; width: 100%; text-align: left; }

.m-mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.m-mods > * { flex: 0 0 calc((100% - 56px) / 5); }
.m-mod { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 14px 16px; text-align: center; display: flex; flex-direction: column; align-items: center; color: var(--text); transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
a.m-mod:hover { border-color: var(--violet-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.m-mod img { width: 84px; height: 84px; object-fit: contain; margin-bottom: 4px; }
.m-mod strong { font-size: .95rem; color: var(--plum); line-height: 1.25; }
.m-mod span { font-size: .82rem; color: var(--muted); line-height: 1.4; margin-top: 4px; }
.m-mod-group { margin-bottom: 34px; }
.m-mod-group h3 { font-family: var(--sans); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.m-mod-group h3::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.m-stack { position: relative; }
.m-stack .frame:first-child { width: 88%; }
.m-stack .frame + .frame { width: 50%; margin-top: -26%; margin-left: 50%; position: relative; z-index: 1; }
.m-shot-pair { display: grid; grid-template-columns: 1.2fr 1fr; gap: 18px; align-items: start; }
.m-shot-pair .frame:last-child { margin-top: 40px; }

.m-anchors { position: sticky; top: 76px; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.m-anchors .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 12px; padding-bottom: 12px; scrollbar-width: none; }
.m-anchors .wrap::-webkit-scrollbar { display: none; }
.m-anchors a { flex: none; font: 700 .85rem/1 var(--sans); color: var(--plum); background: var(--bg-soft); border: 1px solid var(--line); padding: 9px 13px; border-radius: 999px; }
.m-anchors a:hover { color: var(--violet); border-color: var(--violet-100); background: var(--violet-50); }
.m-sec { scroll-margin-top: 140px; }

.m-feats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; margin: 22px 0 26px; }
.m-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; }
.m-feats li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 7px; background: var(--teal-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.3l2.2 2.2 4.8-5' fill='none' stroke='%230a9cb2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.m-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.m-who .door-body h3 { font-size: 1.22rem; }
.m-who .door-body p { margin-bottom: 0; }
.m-who-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 16px; }
.m-who-head h3 { margin: 0; font-size: 1.3rem; }
.m-who-head span { color: var(--muted); font-size: .92rem; }
.m-who + .m-who-head { margin-top: 40px; }

.m-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-way { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.m-way:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--violet-100); color: var(--text); }
.m-way-img { aspect-ratio: 16 / 9; overflow: hidden; background: #f3f6fa; border-bottom: 1px solid var(--line); }
.m-way-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.m-way-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.m-way-body h3 { font-size: 1.35rem; margin-bottom: .35em; }
.m-way-body p { font-size: .95rem; color: var(--muted); }
.m-way-body .go { margin-top: auto; font-weight: 700; color: var(--violet); }

.m-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.m-gallery figure { margin: 0; display: flex; flex-direction: column; }
.m-gallery .frame { flex: none; }
.m-gallery figcaption { padding: 14px 4px 0; font-size: .93rem; color: var(--muted); }
.m-gallery figcaption strong { display: block; color: var(--plum); font-size: 1rem; margin-bottom: 2px; }

.m-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; font-size: .94rem; }
.m-table th, .m-table td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.m-table thead th { background: var(--bg-soft); font: 700 .78rem/1.2 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }
.m-table tr:last-child td { border-bottom: 0; }
.m-table td:first-child { font-weight: 700; color: var(--plum); white-space: nowrap; }
.m-table td a { font-weight: 700; }
.m-table td span { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }

@media (max-width: 1060px) {
  .m-hero-grid, .m-replace { grid-template-columns: 1fr; }
  .m-orbit { max-width: 440px; }
  .m-tiles, .m-ways, .m-gallery { grid-template-columns: repeat(2, 1fr); }
  .m-tiles > :last-child:nth-child(odd), .m-ways > :last-child:nth-child(odd), .m-gallery > :last-child:nth-child(odd) { grid-column: 1 / -1; }
  .m-mods > * { flex-basis: calc((100% - 28px) / 3); }
  .m-who { grid-template-columns: repeat(2, 1fr); }
  .m-anchors { top: 68px; }
  .m-sec { scroll-margin-top: 130px; }
}
@media (max-width: 640px) {
  .m-logo { width: 190px; }
  .m-tiles, .m-ways, .m-gallery, .m-feats { grid-template-columns: 1fr; }
  .m-mods > * { flex-basis: calc((100% - 14px) / 2); }
  .m-who { grid-template-columns: 1fr; }
  .m-shot-pair { grid-template-columns: 1fr; }
  .m-shot-pair .frame:last-child { margin-top: 0; }
  .m-stack .frame:first-child, .m-stack .frame + .frame { width: 100%; margin: 16px 0 0; }
  .m-table td:first-child { white-space: normal; }
  .m-table th, .m-table td { padding: 12px 14px; }
  .m-who-head { flex-direction: column; gap: 4px; }
  .m-band { border-radius: 22px; }
}
