/* Amber page: index */
/* ===== index.html ===== */
body[data-page="index"] {
      --ink: #171513;
      --muted: #6d675f;
      --line: #e7dfd5;
      --paper: #fffaf4;
      --soft: #f5ece1;
      --accent: #4f549d;
      --accent-dark: #3a3f78;
      --green: #596b5b;
      --white: #ffffff;
      --shadow: 0 20px 60px rgba(55, 42, 31, .14);
    }

    body[data-page="index"], body[data-page="index"] * { box-sizing: border-box; }
    html { scroll-behavior: smooth; }
    body[data-page="index"] {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.5;
    }
    body[data-page="index"] img, body[data-page="index"] video { display: block; max-width: 100%; }
    body[data-page="index"] a { color: inherit; text-decoration: none; }
    body[data-page="index"] .wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }

    body[data-page="index"] .topbar {
      background: var(--ink);
      color: rgba(255,255,255,.82);
      font-size: 13px;
    }
    body[data-page="index"] .topbar .wrap {
      min-height: 38px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: clamp(8px, .84vw, 16px);
    }
    body[data-page="index"] .topbar a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.35); }

    body[data-page="index"] header {
      position: sticky;
      top: 0;
      z-index: 20;
      background: rgba(255, 250, 244, .94);
      backdrop-filter: blur(16px);
      border-bottom: 1px solid rgba(91, 58, 42, .14);
    }
    body[data-page="index"] nav {
      min-height: 78px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
    body[data-page="index"] .logo {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 174px;
    }
    body[data-page="index"] .logo img { width: 166px; height: auto; }
    body[data-page="index"] .links {
      display: flex;
      align-items: center;
      gap: 26px;
      color: var(--accent-dark);
      font-size: 14px;
      font-weight: 650;
    }
    body[data-page="index"] .nav-actions { display: flex; align-items: center; gap: 10px; }
    body[data-page="index"] .btn {
      min-height: 44px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      padding: 0 18px;
      border: 1px solid var(--accent);
      border-radius: 4px;
      background: var(--accent);
      color: #fff;
      font-weight: 700;
      font-size: 14px;
      white-space: nowrap;
      transition: transform .2s ease, background .2s ease, border-color .2s ease;
    }
    body[data-page="index"] .btn:hover { transform: translateY(-1px); background: var(--accent-dark); border-color: var(--accent-dark); }
    body[data-page="index"] .btn.secondary {
      background: transparent;
      color: var(--accent-dark);
      border-color: rgba(91, 58, 42, .3);
    }

    body[data-page="index"] .hero {
      position: relative;
      min-height: calc(100vh - 116px);
      isolation: isolate;
      display: grid;
      align-items: end;
      overflow: hidden;
      background: #1f1a16;
    }
    body[data-page="index"] .hero::after {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(90deg, rgba(18, 15, 13, .82) 0%, rgba(18, 15, 13, .54) 46%, rgba(18, 15, 13, .18) 100%),
        linear-gradient(0deg, rgba(18, 15, 13, .88) 0%, rgba(18, 15, 13, .1) 54%);
    }
    body[data-page="index"] .hero video, body[data-page="index"] .hero .fallback {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
    body[data-page="index"] .hero video { z-index: -2; }
    body[data-page="index"] .hero .fallback { z-index: -3; }
    body[data-page="index"] .hero-content {
      padding: 92px 0 46px;
      color: #fff;
    }
    body[data-page="index"] .eyebrow {
      margin: 0 0 18px;
      color: #f0d7c2;
      font-size: 13px;
      font-weight: 800;
      letter-spacing: 0;
      text-transform: uppercase;
    }
    body[data-page="index"] h1 {
      max-width: 850px;
      margin: 0;
      font-size: clamp(42px, 6vw, 82px);
      line-height: .98;
      letter-spacing: 0;
    }
    body[data-page="index"] .hero-copy {
      max-width: 650px;
      margin: 210px 0 32px;
      color: rgba(255,255,255,.83);
      font-size: 18px;
    }
    body[data-page="index"] .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    body[data-page="index"] .hero-actions .secondary {
      color: #fff;
      border-color: rgba(255,255,255,.42);
      background: rgba(255,255,255,.08);
    }
    body[data-page="index"] .hero-metrics {
      margin-top: 56px;
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border-top: 1px solid rgba(255,255,255,.22);
    }
    body[data-page="index"] .metric {
      min-height: 92px;
      padding: 22px 28px 0;
      border-right: 1px solid rgba(255,255,255,.16);
    }
    body[data-page="index"] .metric:first-child {
      padding-left: 0;
    }
    body[data-page="index"] .metric:last-child { border-right: 0; }
    body[data-page="index"] .metric strong { display: block; font-size: 26px; line-height: 1; }
    body[data-page="index"] .metric span { display: block; margin-top: 8px; color: rgba(255,255,255,.72); font-size: 13px; }

    body[data-page="index"] section { padding: 86px 0; }
    body[data-page="index"] .section-head {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 34px;
      margin-bottom: 34px;
    }
    body[data-page="index"] h2 {
      margin: 0;
      color: var(--ink);
      font-size: clamp(30px, 4vw, 48px);
      line-height: 1.08;
      letter-spacing: 0;
    }
    body[data-page="index"] .section-head p {
      max-width: 440px;
      margin: 0;
      color: var(--muted);
      font-size: 16px;
    }

    body[data-page="index"] .audience {
      background: var(--paper);
      padding-top: 42px;
    }
    body[data-page="index"] .audience-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: clamp(8px, .84vw, 16px);
    }
    body[data-page="index"] .audience-card {
      position: relative;
      min-height: 430px;
      overflow: hidden;
      border-radius: 8px;
      background: #211b17;
      box-shadow: var(--shadow);
    }
    body[data-page="index"] .audience-card img {
      width: 100%;
      height: 100%;
      min-height: 430px;
      object-fit: cover;
      opacity: .86;
      transition: transform .6s ease;
    }
    body[data-page="index"] .audience-card:hover img { transform: scale(1.045); }
    body[data-page="index"] .audience-card .text {
      position: absolute;
      inset: auto 0 0;
      padding: 26px;
      color: #fff;
      background: linear-gradient(0deg, rgba(17,14,12,.9), rgba(17,14,12,0));
    }
    body[data-page="index"] .audience-card h3 { margin: 0 0 9px; font-size: clamp(13px, 1.25vw, 24px); }
    body[data-page="index"] .audience-card p { margin: 0; color: rgba(255,255,255,.76); }

    body[data-page="index"] .intro {
      padding: 72px 0;
      background: var(--soft);
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    body[data-page="index"] .intro-grid {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 54px;
      align-items: center;
    }
    body[data-page="index"] .intro p { margin: 18px 0 0; color: var(--muted); font-size: 18px; }
    body[data-page="index"] .ticks {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
    }
    body[data-page="index"] .tick {
      min-height: 72px;
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 16px;
      border: 1px solid rgba(91,58,42,.16);
      border-radius: 8px;
      background: rgba(255,255,255,.54);
      color: var(--accent-dark);
      font-weight: 700;
    }
    body[data-page="index"] .tick::before {
      content: "";
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: var(--green);
      flex: 0 0 auto;
    }

    body[data-page="index"] .products {
      background: #fff;
    }
    body[data-page="index"] .product-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      align-items: start;
      column-gap: clamp(8px, .84vw, 16px);
      row-gap: 34px;
    }
    body[data-page="index"] .product {
      position: relative;
      border: 1px solid var(--line);
      border-radius: 8px;
      overflow: hidden;
      background: var(--white);
      transition: transform .2s ease, box-shadow .2s ease, padding-bottom .2s ease;
    }
    body[data-page="index"] .product:hover { transform: translateY(-3px); box-shadow: var(--shadow); padding-bottom: 46px; }
    body[data-page="index"] .product img {
      width: 100%;
      aspect-ratio: 1.1 / 1;
      object-fit: cover;
    }
    body[data-page="index"] .product .body { padding: 16px; }
    body[data-page="index"] .product h3 { margin: 0 0 6px; font-size: 18px; min-height:54px; }
    body[data-page="index"] .product p { min-height: 105px; margin: 0; color: var(--muted); font-size: 14px; }
    body[data-page="index"] .product::after {
      content: "Learn more";
      position: absolute;
      right: 14px;
      bottom: 12px;
      min-height: 34px;
      display: inline-flex;
      align-items: center;
      padding: 0 13px;
      border-radius: 4px;
      background: var(--accent);
      color: #fff;
      font-size: 13px;
      font-weight: 800;
      opacity: 0;
      transform: translateY(54px);
      transition: opacity .2s ease, transform .2s ease, background .2s ease;
      pointer-events: none;
    }
    body[data-page="index"] .product:hover::after {
      opacity: 1;
      transform: translateY(0);
    }

    body[data-page="index"] .factory-support {
      background: var(--paper);
      color: var(--ink);
    }
    body[data-page="index"] .factory-shell {
      padding: 42px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 18px 54px rgba(55,42,31,.08);
    }
    body[data-page="index"] .factory-support h2 { color: var(--ink); }
    body[data-page="index"] .factory-support .section-head p { color: var(--muted); }
    body[data-page="index"] .factory-line {
      display: grid;
      grid-template-columns: 260px 1fr;
      gap: 0;
      border: 1px solid var(--line);
      background: var(--line);
    }
    body[data-page="index"] .factory-line + .factory-line { margin-top: 18px; }
    body[data-page="index"] .factory-line-head {
      min-height: 292px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 26px;
      background: var(--soft);
      border-right: 1px solid var(--line);
    }
    body[data-page="index"] .factory-line-head span {
      color: var(--accent);
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
    }
    body[data-page="index"] .factory-line-head h3 {
      margin: 18px 0 10px;
      font-size: 28px;
      line-height: 1.12;
    }
    body[data-page="index"] .factory-line-head p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
    }
    body[data-page="index"] .factory-line-head .line-copy {
      margin-top: auto;
    }
    body[data-page="index"] .factory-card-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1px;
      background: var(--line);
    }
    body[data-page="index"] .factory-card-grid.finished {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    body[data-page="index"] .factory-card {
      min-height: 360px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 0;
      background: #fff;
      overflow: hidden;
    }
    body[data-page="index"] .factory-photo {
      position: relative;
      height: 220px;
      overflow: hidden;
      background: #16110f;
    }
    body[data-page="index"] .factory-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .9;
      transition: transform .35s ease, opacity .35s ease;
    }
    body[data-page="index"] .factory-card:hover .factory-photo img {
      transform: scale(1.04);
      opacity: 1;
    }
    body[data-page="index"] .factory-card .num {
      position: absolute;
      left: 16px;
      bottom: 14px;
      color: rgba(255,255,255,.78);
      font-size: 13px;
      font-weight: 800;
    }
    body[data-page="index"] .factory-card .body {
      padding: 18px 22px 22px;
    }
    body[data-page="index"] .factory-card h4 {
      margin: 0 0 12px;
      color: var(--ink);
      font-size: 20px;
    }
    body[data-page="index"] .factory-card p {
      margin: 0;
      color: var(--muted);
      font-size: 14px;
      line-height: 1.45;
    }
    body[data-page="index"] .factory-note {
      margin-top: 18px;
      padding: 20px 24px;
      border-left: 4px solid var(--accent);
      background: var(--soft);
      color: var(--accent-dark);
      font-weight: 700;
    }

    body[data-page="index"] .hot {
      padding: 0;
      background: #181310;
      position: relative;
    }
    body[data-page="index"] .hot h2 { color: #fff; }
    body[data-page="index"] .hot-panels {
      display: grid;
      grid-auto-flow: column;
      grid-auto-columns: 100%;
      overflow-x: auto;
      scroll-behavior: smooth;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
    }
    body[data-page="index"] .hot-panels::-webkit-scrollbar { display: none; }
    body[data-page="index"] .hot-panel {
      position: relative;
      min-height: 640px;
      display: block;
      color: #fff;
      background-position: center;
      background-size: cover;
      isolation: isolate;
      scroll-snap-align: start;
    }
    body[data-page="index"] .hot-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background:
        linear-gradient(90deg, rgba(20,15,12,.78), rgba(20,15,12,.28) 56%, rgba(20,15,12,.12)),
        linear-gradient(0deg, rgba(20,15,12,.8), rgba(20,15,12,.04) 58%);
    }
    body[data-page="index"] .hot-panel .text {
      width: min(1240px, calc(100% - 40px));
      min-height: 640px;
      display: flex;
      flex-direction: column;
      margin: 0 auto;
      padding: 76px 0 118px;
    }
    body[data-page="index"] .hot-label {
      display: inline-block;
      margin-bottom: 18px;
      color: #d9c3a6;
      font-size: 13px;
      font-weight: 800;
      text-transform: uppercase;
    }
    body[data-page="index"] .hot-panel h3 {
      max-width: 500px;
      margin: 0 0 12px;
      font-size: clamp(34px, 4vw, 56px);
      line-height: 1;
    }
    body[data-page="index"] .hot-panel p {
      max-width: 470px;
      margin: 0 0 22px;
      color: rgba(255,255,255,.78);
      font-size: 17px;
    }
    body[data-page="index"] .hot-scene-action {
      max-width: 470px;
      margin-top: auto;
      padding-bottom: 34px;
    }
    body[data-page="index"] .hot-static {
      position: absolute;
      inset: 0;
      z-index: 4;
      width: auto;
      left: max(20px, calc((100vw - 1240px) / 2));
      right: max(20px, calc((100vw - 1240px) / 2));
      pointer-events: none;
    }
    body[data-page="index"] .hot-static-copy {
      width: min(380px, 34%);
      margin-left: auto;
      margin-right: 0;
      padding-top: 76px;
      color: #fff;
      text-align: left;
    }
    body[data-page="index"] .hot-static-panel {
      padding: 28px 30px 32px;
      border: 1px solid rgba(255,255,255,.16);
      background: rgba(0,0,0,.36);
      backdrop-filter: blur(8px);
    }
    body[data-page="index"] .hot-static-copy h2 {
      margin: 0 0 16px;
      font-size: clamp(34px, 4vw, 54px);
      line-height: 1.02;
    }
    body[data-page="index"] .hot-static-copy p {
      margin: 0;
      color: rgba(255,255,255,.74);
      font-size: 17px;
    }
    body[data-page="index"] .hot-controls {
      position: absolute;
      left: 50%;
      bottom: 38px;
      z-index: 5;
      width: min(1240px, calc(100% - 40px));
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: clamp(8px, .84vw, 16px);
      transform: translateX(-50%);
      pointer-events: none;
    }
    body[data-page="index"] .hot-arrows {
      display: flex;
      gap: 10px;
    }
    body[data-page="index"] .hot-arrow {
      width: 46px;
      height: 46px;
      border: 1px solid rgba(255,255,255,.32);
      border-radius: 50%;
      background: rgba(255,255,255,.08);
      color: #fff;
      font-size: clamp(13px, 1.25vw, 24px);
      line-height: 1;
      cursor: pointer;
      pointer-events: auto;
    }
    body[data-page="index"] .hot-dots {
      display: flex;
      align-items: center;
      gap: 9px;
    }
    body[data-page="index"] .hot-dot {
      width: 34px;
      height: 3px;
      border: 0;
      border-radius: 999px;
      background: rgba(255,255,255,.28);
      cursor: pointer;
      pointer-events: auto;
    }
    body[data-page="index"] .hot-dot.active { background: #d9c3a6; }

    body[data-page="index"] .process {
      background: #fff;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }
    body[data-page="index"] .process-layout {
      display: grid;
      grid-template-columns: .78fr 1.22fr;
      gap: 54px;
      align-items: start;
    }
    body[data-page="index"] .process-intro {
      position: sticky;
      top: 116px;
      padding: 34px 0;
    }
    body[data-page="index"] .process-intro .eyebrow {
      color: var(--accent);
    }
    body[data-page="index"] .process-intro p {
      max-width: 410px;
      margin: 18px 0 28px;
      color: var(--muted);
      font-size: 17px;
    }
    body[data-page="index"] .process-note {
      padding: clamp(10px, .94vw, 18px) clamp(12px, 1.04vw, 20px);
      border-left: 4px solid var(--accent);
      background: var(--soft);
      color: var(--accent-dark);
      font-weight: 700;
    }
    body[data-page="index"] .steps {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: clamp(8px, .84vw, 16px);
      counter-reset: process;
    }
    body[data-page="index"] .step {
      position: relative;
      min-height: 246px;
      padding: 28px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--paper);
      overflow: hidden;
    }
    body[data-page="index"] .step::after {
      content: "";
      position: absolute;
      left: 28px;
      right: 28px;
      bottom: 24px;
      height: 1px;
      background: rgba(91,58,42,.18);
    }
    body[data-page="index"] .step strong {
      display: block;
      margin-bottom: 44px;
      color: var(--accent);
      font-size: 14px;
    }
    body[data-page="index"] .step h3 { margin: 0 0 10px; font-size: clamp(13px, 1.25vw, 24px); color: var(--ink); }
    body[data-page="index"] .step p { margin: 0; color: var(--muted); }

    body[data-page="index"] .cases {
      background: #fff;
    }
    body[data-page="index"] .case-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      grid-auto-rows: 260px;
      gap: clamp(8px, .84vw, 16px);
    }
    body[data-page="index"] .case-card {
      position: relative;
      min-height: 260px;
      overflow: hidden;
      border-radius: 8px;
      border: 1px solid var(--line);
      background: #171310;
      color: #fff;
    }
    body[data-page="index"] .case-card.featured {
      grid-column: span 2;
      grid-row: span 2;
    }
    body[data-page="index"] .case-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: .88;
      transition: transform .45s ease, opacity .45s ease;
    }
    body[data-page="index"] .case-card:hover img {
      transform: scale(1.04);
      opacity: 1;
    }
    body[data-page="index"] .case-card .text {
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      padding: 24px;
      background: linear-gradient(0deg, rgba(18,15,13,.9), rgba(18,15,13,0));
    }
    body[data-page="index"] .case-card span {
      display: block;
      margin-bottom: 8px;
      color: #d9c3a6;
      font-size: 12px;
      font-weight: 800;
      text-transform: uppercase;
    }
    body[data-page="index"] .case-card h3 {
      max-width: 420px;
      margin: 0;
      font-size: clamp(12px, 1.15vw, 22px);
      line-height: 1.12;
    }
    body[data-page="index"] .case-card.featured h3 {
      font-size: clamp(30px, 3vw, 44px);
    }

    body[data-page="index"] .cta {
      position: relative;
      padding: 76px 0;
      color: #fff;
      background:
        linear-gradient(90deg, rgba(18, 13, 10, .88), rgba(18, 13, 10, .72)),
        url("../cta/warehouse-ready-to-ship.png") center / cover no-repeat;
      isolation: isolate;
    }
    body[data-page="index"] .cta::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: -1;
      background: rgba(0,0,0,.22);
    }
    body[data-page="index"] .cta-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1px;
      background: rgba(255,255,255,.16);
      border: 1px solid rgba(255,255,255,.16);
      backdrop-filter: blur(2px);
    }
    body[data-page="index"] .cta-panel {
      display: flex;
      flex-direction: column;
      padding: 42px;
      background: rgba(18, 13, 10, .68);
    }
    body[data-page="index"] .cta h2 { color: #fff; }
    body[data-page="index"] .cta p { color: rgba(255,255,255,.72); margin: 14px 0 26px; }
    body[data-page="index"] .support-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 24px;
    }
    body[data-page="index"] .cta-panel .support-actions {
      margin-top: auto;
    }
    body[data-page="index"] .support-action {
      width: 100%;
      min-height: 92px;
      display: grid;
      grid-template-columns: 42px minmax(0, 1fr);
      gap: 12px;
      align-items: center;
      padding: 14px;
      border: 1px solid rgba(255,255,255,.18);
      border-radius: 8px;
      background: rgba(255,255,255,.08);
      color: #fff;
      text-align: left;
      cursor: pointer;
      transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background .2s ease;
    }
    body[data-page="index"] .support-action:hover {
      transform: translateY(-2px);
      border-color: rgba(217,195,166,.56);
      box-shadow: 0 16px 36px rgba(0,0,0,.18);
    }
    body[data-page="index"] .support-action-icon {
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border-radius: 8px;
      background: rgba(255,255,255,.14);
      color: #fff;
      font-size: 20px;
      font-weight: 900;
    }
    body[data-page="index"] .support-action-text strong {
      display: block;
      margin-bottom: 4px;
      font-size: 15px;
      line-height: 1.18;
    }
    body[data-page="index"] .support-action-text span {
      display: block;
      color: rgba(255,255,255,.68);
      font-size: 12px;
      line-height: 1.28;
    }
    body[data-page="index"] .support-action.primary {
      border-color: var(--accent);
      background: var(--accent);
    }
    body[data-page="index"] .support-action.primary .support-action-icon {
      background: rgba(255,255,255,.16);
    }
    body[data-page="index"] .support-action.dark {
      border-color: #11110f;
      background: #11110f;
    }
    body[data-page="index"] .catalogue-action {
      width: calc((100% - 24px) / 3);
      margin-top: auto;
    }
    body[data-page="index"] .email-modal {
      position: fixed;
      inset: 0;
      z-index: 80;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(17, 13, 10, .48);
    }
    body[data-page="index"] .email-modal.is-open { display: flex; }
    body[data-page="index"] .email-dialog {
      width: min(460px, 100%);
      padding: 24px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      color: var(--ink);
      box-shadow: 0 24px 80px rgba(17, 13, 10, .24);
    }
    body[data-page="index"] .email-dialog h3 {
      margin: 0 0 8px;
      font-size: clamp(13px, 1.25vw, 24px);
    }
    body[data-page="index"] .email-dialog p {
      margin: 0 0 18px;
      color: var(--muted);
    }
    body[data-page="index"] .email-line {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--soft);
      word-break: break-word;
    }
    body[data-page="index"] .email-dialog-actions {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 18px;
    }
    body[data-page="index"] .btn-small {
      min-height: 34px;
      padding: 0 12px;
      font-size: 12px;
    }

    body[data-page="index"] footer {
      padding: 44px 0 30px;
      background: #161311;
      color: rgba(255,255,255,.7);
      font-size: 14px;
    }
    body[data-page="index"] .footer-grid {
      display: grid;
      grid-template-columns: 1.1fr 1fr 1fr 1.2fr;
      gap: 36px;
    }
    body[data-page="index"] footer h3 { margin: 0 0 14px; color: #fff; font-size: 15px; text-transform: uppercase; }
    body[data-page="index"] footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
    body[data-page="index"] .copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); }

    @media (max-width: 980px) {
      body[data-page="index"] .links { display: none; }
      body[data-page="index"] .hero { min-height: clamp(460px, 37.5vw, 720px); }
      body[data-page="index"] .hero-metrics, body[data-page="index"] .audience-grid, body[data-page="index"] .product-grid, body[data-page="index"] .factory-card-grid, body[data-page="index"] .factory-card-grid.finished, body[data-page="index"] .steps, body[data-page="index"] .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      body[data-page="index"] .intro-grid, body[data-page="index"] .factory-line, body[data-page="index"] .process-layout, body[data-page="index"] .cta-grid { grid-template-columns: 1fr; }
      body[data-page="index"] .process-intro { position: static; padding: 0; }
      body[data-page="index"] .factory-line-head { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
      body[data-page="index"] .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 240px; }
      body[data-page="index"] .case-card.featured { grid-column: span 2; grid-row: span 1; }
      body[data-page="index"] .support-actions { grid-template-columns: 1fr; }
      body[data-page="index"] .catalogue-action { width: 100%; }
    }

    @media (max-width: 640px) {
      body[data-page="index"] .wrap { width: min(100% - 28px, 1240px); }
      body[data-page="index"] .topbar .wrap { justify-content: center; text-align: center; }
      body[data-page="index"] .topbar span:last-child { display: none; }
      body[data-page="index"] nav { min-height: 68px; }
      body[data-page="index"] .logo img { width: 136px; }
      body[data-page="index"] .btn { min-height: 40px; padding: 0 12px; font-size: 13px; }
      body[data-page="index"] .nav-actions .secondary { display: none; }
      body[data-page="index"] .hero { min-height: 680px; }
      body[data-page="index"] .hero-content { padding: 72px 0 32px; }
      body[data-page="index"] h1 { font-size: 42px; }
      body[data-page="index"] .hero-copy { font-size: 16px; }
      body[data-page="index"] .hero-metrics, body[data-page="index"] .audience-grid, body[data-page="index"] .product-grid, body[data-page="index"] .factory-card-grid, body[data-page="index"] .factory-card-grid.finished, body[data-page="index"] .steps, body[data-page="index"] .ticks, body[data-page="index"] .footer-grid { grid-template-columns: 1fr; }
      body[data-page="index"] .metric { padding-left: 0; padding-right: 0; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.16); }
      body[data-page="index"] section { padding: 62px 0; }
      body[data-page="index"] .section-head { display: grid; gap: 14px; }
      body[data-page="index"] .audience-card, body[data-page="index"] .audience-card img { min-height: 330px; }
      body[data-page="index"] .factory-shell { padding: 22px; }
      body[data-page="index"] .factory-card { min-height: 320px; }
      body[data-page="index"] .factory-photo { height: 190px; }
      body[data-page="index"] .hot-panel { min-height: 520px; }
      body[data-page="index"] .hot-panel .text { width: min(100% - 28px, 1240px); min-height: 520px; padding-bottom: 118px; }
      body[data-page="index"] .hot-controls { width: min(100% - 28px, 1240px); bottom: 34px; }
      body[data-page="index"] .hot-static { left: 14px; right: 14px; width: auto; }
      body[data-page="index"] .hot-static-copy { width: 100%; max-width: 420px; margin-left: 0; margin-right: 0; padding-top: 240px; }
      body[data-page="index"] .hot-static-panel { padding: 22px 22px 24px; }
      body[data-page="index"] .hot-panel .text { padding-top: 48px; }
      body[data-page="index"] .case-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
      body[data-page="index"] .case-card.featured { grid-column: span 1; grid-row: span 1; }
      body[data-page="index"] .cta-panel { padding: 28px; }
    }


body[data-page="index"] .case-grid {
  grid-auto-rows: clamp(180px, 15vw, 240px);
}
body[data-page="index"] .case-card {
  min-height: 0;
}
body[data-page="index"] .case-card .text {
  padding: clamp(14px, 1.25vw, 22px);
}
body[data-page="index"] .case-card h3 {
  display: -webkit-box;
  overflow: hidden;
  font-size: clamp(16px, 1.25vw, 22px);
  line-height: 1.08;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
body[data-page="index"] .case-card.featured h3 {
  font-size: clamp(24px, 2.25vw, 38px);
  -webkit-line-clamp: 4;
}

/* ===== Index first-screen stability ===== */
@media (min-width: 981px) {
  body[data-page="index"] .topbar {
    display: none;
  }
  body[data-page="index"] nav {
    min-height: clamp(58px, 4.4vw, 78px);
  }
  body[data-page="index"] .logo img {
    width: clamp(118px, 8.4vw, 166px);
  }
  body[data-page="index"] .hero {
    height: calc(100vh - 116px);
    min-height: calc(100vh - 116px);
    max-height: none;
    align-items: end;
  }
  body[data-page="index"] .hero-content {
    display: flex;
    flex-direction: column;
    justify-content: end;
    height: 100%;
    padding: clamp(44px, 8vh, 110px) 0 clamp(26px, 5vh, 70px);
  }
  body[data-page="index"] h1 {
    max-width: 780px;
    font-size: clamp(42px, min(5vw, 7vh), 76px);
  }
  body[data-page="index"] .hero-copy {
    max-width: 620px;
    margin: clamp(48px, 14vh, 190px) 0 clamp(16px, 2.4vh, 26px);
    font-size: clamp(14px, 1.05vw, 17px);
    line-height: 1.45;
  }
  body[data-page="index"] .hero-metrics {
    margin-top: clamp(20px, 4vh, 46px);
  }
  body[data-page="index"] .metric {
    min-height: clamp(64px, 8vh, 92px);
    padding: clamp(12px, 2vh, 22px) clamp(16px, 1.8vw, 28px) 0;
  }
  body[data-page="index"] .metric strong {
    font-size: clamp(22px, 2.1vw, 36px);
  }
  body[data-page="index"] .metric span {
    font-size: clamp(10px, .78vw, 13px);
    line-height: 1.3;
  }
}
@media (min-width: 981px) and (max-height: 760px) {
  body[data-page="index"] .hero {
    min-height: calc(100vh - clamp(58px, 4.4vw, 78px));
  }
  body[data-page="index"] .hero-content {
    padding-top: 28px;
    padding-bottom: 20px;
  }
  body[data-page="index"] .eyebrow {
    margin-bottom: 10px;
    font-size: 11px;
  }
  body[data-page="index"] h1 {
    max-width: 700px;
    font-size: clamp(38px, min(4.35vw, 6.6vh), 64px);
  }
  body[data-page="index"] .hero-copy {
    margin-top: clamp(22px, 8vh, 78px);
    margin-bottom: 14px;
    font-size: 14px;
  }
  body[data-page="index"] .hero-actions .btn {
    min-height: 38px;
    padding: 0 16px;
    font-size: 12px;
  }
  body[data-page="index"] .hero-metrics {
    margin-top: 22px;
  }
  body[data-page="index"] .metric {
    min-height: 58px;
    padding-top: 12px;
  }
}
