
  @font-face {
    font-family: "HephopsDisplay";
    src: url(/hephops/landing-b3bfb103757d5f72.ttf) format("truetype");
    font-display: swap;
  }

  :root {
    /* single committed look: white ground, blood-red ink. No dark variant -- red-on-white is the whole point. */
    --ink: #ffffff;
    --ink-panel: #fffbfa;
    --ink-panel-2: #fbe9e7;
    --text: #241a19;
    --text-dim: rgba(36, 26, 25, 0.64);
    --line: #7a0c14;
    --line-dim: rgba(122, 12, 20, 0.62);
    --line-faint: rgba(122, 12, 20, 0.16);
    --grid: #f6d7d3;
    --accent: #8b0000;
    --accent-2: #a3241a;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: #e8c8cb;
    --ice-text: #f6f9fb;
    --ice-muted: #e4eaee;

    --font-display: "HephopsDisplay", ui-sans-serif, sans-serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  }

  * { box-sizing: border-box; }

  html, body {
    margin: 0;
    height: 100%;
    background: var(--ink);
    color: var(--text);
    font-family: var(--font-sans);
    overflow: hidden;
  }

  #bg-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
    background: var(--ink) url("/hephops/hephops-home-poster.jpg") center / cover no-repeat;
  }

  #site-background-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: saturate(1.08) contrast(1.04);
  }

  .site-background-wash {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      linear-gradient(90deg, rgba(255, 251, 251, .28), rgba(255, 251, 251, .08) 52%, rgba(255, 251, 251, .18)),
      linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(76, 7, 13, .06));
  }

  #bg-canvas::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
      linear-gradient(rgba(246, 215, 211, .14) 1px, transparent 1px) 0 0 / 42px 42px,
      linear-gradient(90deg, rgba(246, 215, 211, .14) 1px, transparent 1px) 0 0 / 42px 42px;
  }

  #bg-canvas #ink {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: none;
  }

  .roof-measurement-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .roof-measurement-line {
    fill: none;
    stroke: rgba(255, 255, 255, .9);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 1px 3px rgba(0, 34, 22, .8));
  }

  .roof-measurement-trace {
    fill: none;
    stroke: #8b0000;
    stroke-width: 5;
    stroke-linecap: round;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 110 680;
    animation: roof-measurement-flow 4.8s linear infinite;
    filter: drop-shadow(0 0 7px rgba(139, 0, 0, .92));
  }

  .roof-measurement-trace.trace-two { animation-delay: -1.6s; }
  .roof-measurement-trace.trace-three { animation-delay: -3.2s; }
  .roof-measurement-trace.trace-four { animation-delay: -2.4s; }

  .roof-measurement-tick {
    stroke: #fff;
    stroke-width: 3;
    vector-effect: non-scaling-stroke;
    filter: drop-shadow(0 1px 3px rgba(0, 34, 22, .9));
  }

  .roof-measurement-label rect {
    fill: rgba(76, 7, 13, .9);
    stroke: rgba(222, 108, 116, .95);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
  }

  .roof-measurement-label text {
    fill: #fff;
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 750;
    letter-spacing: 0;
    text-anchor: middle;
  }

  .roof-measurement-dot {
    fill: #8b0000;
    stroke: #fff;
    stroke-width: 2;
    vector-effect: non-scaling-stroke;
    transform-box: fill-box;
    transform-origin: center;
    animation: roof-measurement-pulse 1.8s ease-in-out infinite;
  }

  @keyframes roof-measurement-flow {
    to { stroke-dashoffset: -790; }
  }

  @keyframes roof-measurement-pulse {
    0%, 100% { opacity: .72; transform: scale(.78); }
    50% { opacity: 1; transform: scale(1.22); }
  }

  #app {
    position: relative;
    z-index: 1;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
  }

  #track-wrap {
    flex: 1;
    overflow: hidden;
    position: relative;
  }

  #track {
    height: 100%;
    display: flex;
    will-change: transform;
    transition: transform 620ms cubic-bezier(.65,0,.24,1);
  }

  .slide {
    flex: 0 0 var(--slide-w, 100vw);
    width: var(--slide-w, 100vw);
    height: 100%;
    display: flex;
    align-items: stretch;
    padding: clamp(20px, 4vw, 56px) clamp(24px, 6vw, 96px);
  }

  /* ---- cover slide ---- */
  .cover {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-y: auto;
    gap: 20px;
    padding-top: clamp(8px, 3vh, 40px);
    padding-bottom: 24px;
  }
  .cover-card {
    position: relative;
    flex-shrink: 0;
    margin-block: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 1040px;
    width: 100%;
    overflow: hidden;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 2px solid var(--accent);
    padding: clamp(28px, 4.4vw, 56px);
    box-shadow: 0 30px 80px -40px rgba(122, 12, 20, .3);
    cursor: pointer;
    animation: cover-card-pulse 5s ease-in-out infinite;
  }
  .cover-card:hover { animation: none; box-shadow: 0 0 0 4px rgba(139, 0, 0, .26), 0 30px 80px -40px rgba(122, 12, 20, .3); }
  .cover-ribbon {
    position: absolute;
    z-index: 2;
    top: 70px;
    right: -125px;
    width: 420px;
    padding: 12px 20px;
    transform: rotate(45deg);
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: var(--accent);
    color: #fff8f8;
    text-align: center;
    text-decoration: none;
  }
  .cover-ribbon strong { font-size: 14px; }
  .cover-ribbon span, .cover-ribbon em { font-size: 11px; font-style: normal; }
  .cover-ribbon:hover, .cover-ribbon:focus-visible { background: #b51f1f; }
  @keyframes cover-card-pulse {
    0%, 16%, 31%, 57%, 75%, 100% { box-shadow: 0 30px 80px -40px rgba(122, 12, 20, .3); }
    8%, 23% { box-shadow: 0 0 0 6px rgba(139, 0, 0, .24), 0 30px 80px -40px rgba(122, 12, 20, .3); }
    66% { box-shadow: 0 0 0 9px rgba(139, 0, 0, .3), 0 30px 80px -40px rgba(122, 12, 20, .3); }
  }
  @media (max-width: 640px) {
    .cover-ribbon { top: 40px; right: -73px; width: 245px; padding: 8px 10px; }
    .cover-ribbon strong { font-size: 10px; }
    .cover-ribbon span, .cover-ribbon em { font-size: 9px; }
  }

  .brand-lockup { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 26px); }
  .brand-mark { display: block; height: clamp(140px, 18vw, 240px); width: auto; max-width: 100%; object-fit: contain; }

  .modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(20, 4, 4, 0.45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
  }
  .modal-overlay.open { display: flex; }
  .modal-card {
    position: relative;
    max-width: 720px;
    width: 100%;
    max-height: 84vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, .46);
    -webkit-backdrop-filter: blur(8px) saturate(125%);
    backdrop-filter: blur(8px) saturate(125%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .45);
    padding: clamp(24px, 4vw, 40px);
  }
  .modal-card h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); color: var(--line); margin: 6px 0 4px; }
  .modal-card .desc { font-size: 14px; color: var(--text-dim); margin-bottom: 18px; }
  .modal-card .plan-cards { gap: 10px; }
  .modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--glass-border);
    background: rgba(139, 0, 0, 0.09);
    color: var(--line);
    font-size: 18px;
    cursor: pointer;
  }
  .modal-close:hover { background: var(--accent); color: #fff2ee; border-color: var(--accent); }

  #top-header {
    position: fixed;
    top: 14px;
    right: clamp(10px, 2.4vw, 28px);
    z-index: 6;
    display: flex;
    gap: 10px;
  }
  .small-btn { padding: 9px 14px; font-size: 10px; }
  #top-header .btn { color: var(--line); background: rgba(139, 0, 0, 0.09); border-color: rgba(122, 12, 20, 0.18); }
  #top-header .builder-link { border-color: var(--accent); background: rgba(139, 0, 0, 0.14); }
  #top-header .field-app-link { display: inline-flex; align-items: center; gap: 6px; }
  #top-header .field-app-link img { width: 18px; height: 18px; object-fit: contain; }
  #top-header .btn:hover { color: #fff2ee; background: var(--accent); border-color: var(--accent); }
  @media (max-width: 640px) {
    #top-header { top: 8px; right: 8px; gap: 6px; }
    .small-btn { padding: 7px 9px; font-size: 9px; }
    .small-btn small { display: none; }
  }

  .sub-row {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(280px, 460px);
    gap: clamp(20px, 4vw, 40px);
    align-items: start;
    width: 100%;
  }
  .sub-row .sub { margin: 0; }
  .hero-media .print-frame { margin: 0; }
  @media (max-width: 900px) {
    .sub-row { grid-template-columns: 1fr; }
  }

  .request-block { margin: 10px 0 0; max-width: 1320px; }
  .request-block .col-text {
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: clamp(20px, 2.6vw, 34px);
    box-shadow: 0 24px 60px -32px rgba(122, 12, 20, .28);
  }
  .cover .eyebrow {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--accent-2);
  }
  .cover h1 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(20px, 3.9vw, 53px);
    line-height: .92;
    letter-spacing: -.01em;
    text-wrap: balance;
    color: var(--line);
  }
  .cover h1 span { color: var(--accent); }
  .cover .sub {
    font-size: 19px;
    line-height: 1.75;
    max-width: none;
    color: var(--text-dim);
    margin-top: -15px;
  }
  .cover .ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 16px;
    transform: translateX(-20px);
  }
  .btn {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    padding: 14px 20px;
    border: 1px solid var(--glass-border);
    background: rgba(139, 0, 0, 0.09);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    color: var(--line);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: border-color .18s, background .18s, color .18s;
  }
  .btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff2ee;
  }
  .btn:hover small { opacity: .78; }
  .btn small { opacity: .5; font-size: 10px; transition: opacity .18s; }

  .cover .hint {
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--line-dim);
    opacity: .7;
    margin-top: 4px;
  }
  .cover .powered-by {
    align-self: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    margin-top: 2px;
  }
  .cover .powered-by span {
    font-family: var(--font-sans);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
  }
  .cover .powered-by img {
    display: block;
    width: clamp(132px, 16vw, 190px);
    height: auto;
    opacity: .86;
  }

  /* ---- feature slide ---- */
  .feature {
    align-items: center;
    justify-content: center;
  }
  .feature-grid {
    display: grid;
    grid-template-columns: minmax(260px, 38%) 1fr;
    gap: clamp(24px, 5vw, 72px);
    align-items: center;
    max-width: 1320px;
    width: 100%;
  }

  .feature .col-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: clamp(20px, 2.6vw, 34px);
    box-shadow: 0 24px 60px -32px rgba(122, 12, 20, .28);
  }

  .sheet-code {
    font-family: var(--font-sans);
    font-size: 12px;
    letter-spacing: .18em;
    color: var(--accent-2);
    display: flex;
    align-items: center;
    gap: 10px;
  }
  .sheet-code::before {
    content: "";
    width: 22px;
    height: 1px;
    background: var(--accent-2);
  }
  .diff-badge {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: .1em;
    color: #fff2ee;
    background: var(--accent);
    padding: 3px 8px;
    white-space: nowrap;
  }

  .feature h2 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(26px, 3.4vw, 42px);
    line-height: 1.06;
    text-wrap: balance;
    color: var(--line);
  }

  .feature p.desc {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 42ch;
  }

  .specs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 6px;
    border-top: 1px solid var(--line-faint);
    padding-top: 14px;
  }
  .spec-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 12px;
  }
  .spec-row .k { color: var(--line-dim); white-space: nowrap; }
  .spec-row .leader {
    flex: 1;
    border-bottom: 1px dotted var(--line-faint);
    margin-bottom: 3px;
    min-width: 12px;
  }
  .spec-row .v { color: var(--line); white-space: nowrap; font-weight: 600; }

  /* video / print panel */
  .col-media { position: relative; }
  .print-frame {
    position: relative;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: 14px;
    box-shadow: 0 30px 70px -34px rgba(122, 12, 20, .35);
  }
  .pin {
    position: absolute;
    width: 46px;
    height: 15px;
    background: var(--accent);
    opacity: .78;
    transform: rotate(-4deg);
  }
  .pin.tl { top: -8px; left: 22px; }
  .pin.tr { top: -8px; right: 22px; transform: rotate(4deg); }

  .video-shell {
    position: relative;
    width: 100%;
    aspect-ratio: 16/10;
    background:
      repeating-linear-gradient(135deg, var(--line-faint) 0 1px, transparent 1px 14px),
      var(--ink-panel-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .video-shell video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .video-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    color: var(--line-dim);
    text-align: center;
    padding: 20px;
  }
  .play-ring {
    width: 54px; height: 54px;
    border: 1px solid var(--line-dim);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
  }
  .play-ring::after {
    content: "";
    width: 0; height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 13px solid var(--line-dim);
    margin-left: 3px;
  }
  .video-placeholder .lbl { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
  .video-caption {
    font-family: var(--font-sans);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--line-dim);
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
  }

  /* ---- arrows ---- */
  .nav-arrow {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid var(--glass-border);
    background: rgba(139, 0, 0, 0.09);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    backdrop-filter: blur(14px) saturate(150%);
    color: var(--line);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-size: 18px;
    transition: border-color .18s, opacity .18s, transform .18s, background .18s, color .18s;
  }
  .nav-arrow:hover:not(:disabled) { background: var(--accent); border-color: var(--accent); color: #fff2ee; }
  .nav-arrow:disabled { opacity: .18; cursor: default; }
  .nav-arrow.left { left: clamp(10px, 2.4vw, 28px); }
  .nav-arrow.right {
    right: clamp(10px, 2.4vw, 28px);
    width: 64px;
    height: 64px;
    font-size: 24px;
    background: rgba(139, 0, 0, 0.82);
    border-color: var(--accent);
    color: var(--ice-text);
  }
  .nav-arrow.right.nudge { animation: prompt-right 2.8s ease-in-out infinite; }
  @keyframes prompt-right {
    0%, 62%, 100% { transform: translate(0, -50%); }
    70% { transform: translate(8px, -50%); }
    78% { transform: translate(-3px, -50%); }
    86% { transform: translate(3px, -50%); }
  }

  #arrowHint {
    position: fixed;
    top: 50%;
    right: clamp(90px, 11vw, 112px);
    transform: translateY(-50%);
    z-index: 4;
    font-family: var(--font-sans);
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--line-dim);
    max-width: 12ch;
    text-align: right;
    line-height: 1.4;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
  }
  #arrowHint.visible { opacity: 1; }
  @media (max-width: 860px) { #arrowHint { display: none; } }

  /* ---- title block ---- */
  #titleblock {
    flex: 0 0 auto;
    border-top: 1px solid var(--glass-border);
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    backdrop-filter: blur(20px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px clamp(16px, 3vw, 36px);
  }
  #ruler {
    flex: 1;
    display: flex;
    gap: 4px;
    justify-content: center;
    max-width: 520px;
  }
  .tick {
    height: 12px;
    width: 100%;
    max-width: 34px;
    border: none;
    border-top: 3px solid var(--line-faint);
    background: transparent;
    cursor: pointer;
    padding: 0;
  }
  .tick.active { border-top-color: var(--accent); }
  .tick:hover { border-top-color: var(--line-dim); }

  /* ---- pricing / build-your-system sheets ---- */
  .config { align-items: center; justify-content: center; overflow-y: auto; }
  .config-grid {
    display: grid;
    grid-template-columns: minmax(240px, 32%) 1fr;
    gap: clamp(24px, 5vw, 64px);
    align-items: start;
    max-width: 1320px;
    width: 100%;
    margin: auto 0;
  }
  .config .col-text { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 0; }
  .config .desc { font-size: clamp(15px, 1.3vw, 16px); line-height: 1.6; color: var(--text-dim); max-width: 38ch; }

  .estimate {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: 14px 18px;
    margin-top: 4px;
  }
  .estimate-label { font-family: var(--font-sans); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--line-dim); }
  .estimate-value { font-family: var(--font-sans); font-weight: 700; font-size: 26px; color: var(--line); font-variant-numeric: tabular-nums; }

  .plan-cards, .builder-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .plan-card {
    background: var(--glass-bg);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
    border: 1px solid var(--glass-border);
    padding: 18px 22px;
  }
  .plan-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
  .plan-name { font-family: var(--font-display); font-size: 20px; color: var(--line); }
  .plan-tag { font-family: var(--font-sans); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--line-dim); border: 1px solid var(--line-faint); padding: 3px 8px; }
  .plan-price { font-family: var(--font-sans); font-weight: 700; font-size: 22px; color: var(--accent); margin-top: 6px; font-variant-numeric: tabular-nums; }
  .plan-price span { font-family: var(--font-sans); font-size: 13px; color: var(--text-dim); margin-left: 3px; }
  .plan-desc { font-size: 13px; line-height: 1.55; color: var(--text-dim); margin-top: 8px; max-width: 52ch; }
  .faq-q { font-family: var(--font-display); font-size: 17px; color: var(--line); margin: 0; }

  .field-row { display: flex; flex-direction: column; gap: 8px; }
  .field-label { font-family: var(--font-sans); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--line-dim); }

  .radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
  .radio-chip, .module-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-size: 13px;
    color: var(--text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 9px 12px;
    cursor: pointer;
    accent-color: var(--accent);
  }
  .radio-chip input, .module-chip input { accent-color: var(--accent); width: 15px; height: 15px; }
  .module-chip { justify-content: space-between; }
  .chip-copy { display: inline-flex; flex-direction: column; gap: 2px; min-width: 0; }
  .chip-price { font-size: 10px; line-height: 1.2; color: var(--line-dim); font-weight: 700; white-space: nowrap; }
  .module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }

  .num-input, .select-input, .text-input {
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--text);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 12px;
    max-width: 260px;
  }
  .contact-row { flex-direction: row; flex-wrap: wrap; }
  .contact-row .text-input { flex: 1 1 200px; }

  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
  .reveal.revealed { opacity: 1; transform: translateY(0); }

  /* Compact desktop: laptops and smaller desktop windows. Wide desktops keep
     the original presentation above without any overrides. */
  @media (min-width: 861px) and (max-width: 1599px),
         (min-width: 861px) and (max-height: 820px) {
    #top-header {
      top: 10px;
      right: 18px;
      gap: 7px;
    }
    .small-btn {
      padding: 8px 10px;
      font-size: 9px;
    }
    .small-btn small { font-size: 8px; }

    .slide {
      padding: 58px clamp(70px, 7vw, 92px) 30px;
    }
    .cover {
      gap: 10px;
      padding-top: 58px;
      padding-bottom: 16px;
    }
    .cover-card {
      max-width: 920px;
      max-height: calc(100dvh - 112px);
      gap: 10px;
      padding: 22px 30px;
      overflow-y: auto;
      margin-block: auto;
    }
    .brand-mark { height: 96px; }
    .cover-ribbon {
      top: 52px;
      right: -108px;
      width: 350px;
      padding: 8px 14px;
    }
    .cover-ribbon strong { font-size: 11px; }
    .cover-ribbon span,
    .cover-ribbon em { font-size: 9px; }
    .cover h1 {
      font-size: 34px;
      line-height: .96;
    }
    .sub-row {
      grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
      gap: 24px;
      align-items: center;
    }
    .cover .sub {
      font-size: 15px;
      line-height: 1.48;
      margin-top: 0;
    }
    .hero-media .print-frame { padding: 10px; }
    .hero-media .video-shell { aspect-ratio: 16 / 9; }
    .video-caption { margin-top: 6px; }
    .cover .ctas {
      gap: 10px;
      margin-top: 2px;
      transform: none;
    }
    .cover .ctas .btn { padding: 10px 14px; }
    .cover .hint {
      font-size: 9px;
      margin-top: 0;
    }
    .cover .powered-by {
      flex-direction: row;
      gap: 9px;
      margin-top: 0;
    }
    .cover .powered-by img { width: 126px; }

    .feature-grid,
    .config-grid {
      max-width: 1120px;
      gap: 32px;
    }
    .feature .col-text,
    .request-block .col-text {
      gap: 11px;
      padding: 22px;
    }
    .feature h2 { font-size: 32px; }
    .feature p.desc,
    .config .desc {
      font-size: 15px;
      line-height: 1.5;
    }
    .specs {
      gap: 6px;
      padding-top: 10px;
    }
    .print-frame { padding: 10px; }

    .nav-arrow {
      width: 46px;
      height: 46px;
    }
    .nav-arrow.right {
      width: 56px;
      height: 56px;
      font-size: 21px;
    }
    #arrowHint {
      right: 82px;
      font-size: 9px;
    }
    #titleblock { padding-block: 7px; }
  }

  /* Extra height compression for 720-768px laptop displays. */
  @media (min-width: 861px) and (max-height: 760px) {
    .slide { padding-top: 50px; padding-bottom: 24px; }
    .cover { padding-top: 50px; padding-bottom: 10px; }
    .cover-card {
      max-width: 900px;
      max-height: calc(100dvh - 92px);
      gap: 8px;
      padding: 16px 24px;
    }
    .brand-mark { height: 80px; }
    .cover h1 { font-size: 30px; }
    .cover .sub {
      font-size: 14px;
      line-height: 1.4;
    }
    .hero-media .video-shell { max-height: 176px; }
    .cover .ctas .btn { padding: 8px 12px; }
    .cover .hint { display: none; }
    .cover .powered-by img { width: 112px; }
    .cover-ribbon { top: 44px; }

    .feature .col-text,
    .request-block .col-text { padding: 18px; }
    .feature h2 { font-size: 29px; }
    .feature p.desc,
    .config .desc { line-height: 1.42; }
    #titleblock { padding-block: 5px; }
  }

  @media (max-width: 860px) {
    #site-background-video { object-position: 47% center; }
    .site-background-wash {
      background:
        linear-gradient(180deg, rgba(255, 251, 251, .12), rgba(76, 7, 13, .08)),
        rgba(255, 255, 255, .08);
    }

    #top-header {
      top: max(8px, env(safe-area-inset-top));
      left: 8px;
      right: 8px;
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 4px;
    }
    #top-header .btn {
      min-width: 0;
      min-height: 34px;
      padding: 7px 8px;
      justify-content: center;
      text-align: center;
      font-size: 9px;
      line-height: 1.12;
      background: rgba(255, 255, 255, .82);
      backdrop-filter: blur(12px);
    }
    #top-header .btn small { display: inline; font-size: 8px; }

    #track-wrap { min-height: 0; }
    .slide {
      height: 100%;
      padding: calc(84px + env(safe-area-inset-top)) 12px calc(78px + env(safe-area-inset-bottom));
    }
    .cover,
    .feature,
    .config {
      overflow-x: hidden;
      overflow-y: auto;
      overscroll-behavior: contain;
      -webkit-overflow-scrolling: touch;
      align-items: stretch;
      justify-content: flex-start;
    }

    .cover {
      gap: 0;
      padding-top: calc(84px + env(safe-area-inset-top));
      padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }
    .cover-card {
      width: 100%;
      max-width: none;
      max-height: none;
      margin: 0;
      gap: 12px;
      padding: 16px;
      overflow: hidden;
      animation: none;
      cursor: default;
      border-width: 1px;
      box-shadow: 0 18px 48px -30px rgba(76, 7, 13, .5);
    }
    .brand-mark {
      align-self: center;
      height: 82px;
      max-width: calc(100% - 48px);
    }
    .cover-ribbon {
      top: 32px;
      right: -64px;
      width: 214px;
      padding: 6px 8px;
    }
    .cover-ribbon strong { font-size: 8px; }
    .cover-ribbon span,
    .cover-ribbon em { font-size: 7px; }
    .cover h1 {
      max-width: none;
      width: 100%;
      font-size: clamp(25px, 7.5vw, 30px);
      line-height: .96;
    }
    .sub-row {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 12px;
    }
    .hero-media { order: -1; }
    .hero-media .print-frame { padding: 8px; }
    .hero-media .video-shell { aspect-ratio: 16 / 9; }
    .cover .sub {
      margin: 0;
      font-size: 14px;
      line-height: 1.5;
    }
    .video-caption { margin-top: 6px; font-size: 8px; }
    .video-placeholder { gap: 7px; padding: 12px; }
    .video-placeholder .lbl { font-size: 8px; }
    .play-ring { width: 44px; height: 44px; }
    .cover .ctas {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      margin-top: 0;
      transform: none;
    }
    .cover .ctas .btn {
      width: 100%;
      min-width: 0;
      padding: 10px 8px;
      justify-content: center;
      text-align: center;
      font-size: 10px;
      line-height: 1.2;
    }
    .cover .ctas .btn small { display: none; }
    .cover .hint { display: none; }
    .cover .powered-by {
      flex-direction: row;
      justify-content: center;
      gap: 8px;
      margin-top: 0;
    }
    .cover .powered-by img { width: 112px; }

    .feature-grid,
    .config-grid {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 14px;
      width: 100%;
      margin: 0;
    }
    .config .col-text { position: static; }
    .feature .col-text,
    .request-block .col-text {
      gap: 10px;
      padding: 18px 16px;
    }
    .feature h2 { font-size: 28px; line-height: 1; }
    .feature p.desc,
    .config .desc {
      max-width: none;
      font-size: 14px;
      line-height: 1.5;
    }
    .specs { gap: 6px; margin-top: 2px; padding-top: 10px; }
    .spec-row { font-size: 11px; gap: 5px; }
    .spec-row .leader { min-width: 6px; }
    .spec-row .v {
      max-width: 62%;
      white-space: normal;
      overflow-wrap: anywhere;
      text-align: right;
    }
    .print-frame { padding: 8px; }
    .feature .video-shell { aspect-ratio: 16 / 10; }

    #ruler,
    #titleblock { display: none; }
    .nav-arrow {
      top: auto;
      bottom: calc(14px + env(safe-area-inset-bottom));
      transform: none;
      width: 46px;
      height: 46px;
      background: rgba(255, 255, 255, .9);
      backdrop-filter: blur(12px);
    }
    .nav-arrow.left { left: 12px; }
    .nav-arrow.right {
      right: 12px;
      width: 50px;
      height: 50px;
      font-size: 20px;
    }
    .nav-arrow.right.nudge { animation: prompt-right-mobile 2.8s ease-in-out infinite; }
    @keyframes prompt-right-mobile {
      0%, 62%, 100% { transform: translateX(0); }
      70% { transform: translateX(6px); }
      78% { transform: translateX(-2px); }
      86% { transform: translateX(2px); }
    }
  }
  @media (prefers-reduced-motion: reduce) {
    .reveal { transition: none; opacity: 1; transform: none; }
  }

  @media (prefers-reduced-motion: reduce) {
    #track { transition: none; }
    .nav-arrow.right.nudge { animation: none; }
    .cover-card { animation: none; }
    #site-background-video { display: none; }
    .roof-measurement-trace,
    .roof-measurement-dot { animation: none; }
    .site-background-wash { background: rgba(255, 251, 251, .42); }
  }
