/* ==========================================================================
   Home v12 — translatable native hero + rescaled sections (index.html only)
   Linked only from index.html, after site.css: assets/home/home.css?v=N.
   /assets/* is cached for an hour, so raise ?v= in index.html whenever this file changes.
   Everything below is scoped to body.hh-home (only index.html carries it;
   .home-page is shared by most site pages and is not used as a scope here).
   ========================================================================== */
body.hh-home {
  --hh-max: 1680px;
  --hh-pad: clamp(16px, 3.2vw, 48px);
  --hh-navy: #0b2752;
  --hh-blue: #1474e8;
  --hh-ink-2: #48698f;
  --hh-ink-3: #52719a;
  --hh-line: #d3e2f2;
  --hh-grad: linear-gradient(135deg, #1670e8 0%, #116be5 48%, #0756c9 100%);
  background: #fff;
}
body.hh-home .hh-wrap {
  width: 100%;
  max-width: calc(var(--hh-max) + 2 * var(--hh-pad));
  margin-inline: auto;
  padding-inline: var(--hh-pad);
}
body.hh-home #sections, body.hh-home #pricing { scroll-margin-top: 84px; }
/* site.js injects the header on DOMContentLoaded; keep its height reserved so the hero does not jump */
@supports selector(:has(a)) {
  body.hh-home:not(:has(> .nav)) { padding-top: 73px; }
}

/* ---------- hero ---------- */
/* --hh-u is the hero's scale unit: the viewport width (1vw), and from 1200 px up also limited by the
   viewport height, so that the hero with its stats bar fits under the 73 px header on short screens.
   --hh-k is the hero height in units; the languages whose card meta stacks (see below) need more. */
body.hh-home .hh-hero { --hh-u: 1vw; --hh-k: 55; }
html:lang(zh) body.hh-home .hh-hero { --hh-k: 56; }
html:lang(hi) body.hh-home .hh-hero { --hh-k: 60; }
html:lang(tr) body.hh-home .hh-hero { --hh-k: 62; }
html:lang(es) body.hh-home .hh-hero { --hh-k: 65; }
@media (min-width: 1200px) {
  body.hh-home .hh-hero { --hh-u: min(1vw, (100vh - 73px - var(--hh-bar)) / var(--hh-k)); }
  @supports (height: 1svh) {
    body.hh-home .hh-hero { --hh-u: min(1vw, (100svh - 73px - var(--hh-bar)) / var(--hh-k)); }
  }
}
body.hh-home .hh-hero {
  position: relative; isolation: isolate; overflow: hidden;
  color: var(--hh-navy);
  background:
    radial-gradient(ellipse 46% 60% at 16% 38%, rgba(255,255,255,.96), rgba(255,255,255,0) 72%),
    radial-gradient(ellipse 40% 55% at 60% 40%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%),
    linear-gradient(180deg, #f6faff 0%, #eef5fd 100%);
  border-bottom: 1px solid var(--hh-line);
}
body.hh-home .hh-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(52,116,196,.085) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,116,196,.085) 1px, transparent 1px),
    linear-gradient(rgba(52,116,196,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52,116,196,.04) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 26%, #000 46%);
          mask-image: linear-gradient(90deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 26%, #000 46%);
}
body.hh-home .hh-hero::after {
  /* dashed construction lines of the blueprint */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-linear-gradient(90deg, rgba(64,128,206,.2) 0 7px, transparent 7px 14px) 0 clamp(12px, 1.3 * var(--hh-u), 24px) / 100% 1px no-repeat;
}
body.hh-home .hh-hero-main {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 51fr) minmax(0, 14fr);
  column-gap: clamp(22px, 2.5vw, 52px);
  align-items: center;
  padding-top: clamp(26px, 2.9 * var(--hh-u), 56px);
  padding-bottom: clamp(26px, 2.6 * var(--hh-u), 50px);
}
body.hh-home .hh-copy { min-width: 0; container-type: inline-size; }
body.hh-home .hh-eyebrow {
  margin: 0 0 clamp(12px, 1.55 * var(--hh-u), 28px);
  font-size: clamp(11px, .86 * var(--hh-u), 15px); font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: #4e6f99;
}
body.hh-home .hh-title {
  margin: 0 0 clamp(14px, 1.6 * var(--hh-u), 28px);
  font-family: var(--font-ui); font-weight: 800; line-height: 1.02; letter-spacing: -.045em;
  color: var(--hh-navy);
  font-size: clamp(38px, 4.25 * var(--hh-u), 84px);
}
@supports (width: 1cqi) {
  body.hh-home .hh-title { font-size: clamp(38px, min(13.7cqi, 4.4 * var(--hh-u)), 88px); }
}
body.hh-home .hh-title-accent {
  display: block; color: var(--hh-blue);
  background: linear-gradient(90deg, #2585f2 0%, #1171e8 45%, #0a5fd8 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  padding-bottom: .04em;
}
body.hh-home .hh-lead {
  margin: 0 0 clamp(18px, 2.3 * var(--hh-u), 40px); max-width: 31em;
  font-size: clamp(16px, 1.32 * var(--hh-u), 24px); line-height: 1.42; letter-spacing: -.01em;
  color: var(--hh-ink-2);
}
body.hh-home .hh-feats {
  list-style: none; margin: 0 0 clamp(20px, 2.5 * var(--hh-u), 44px); padding: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 22px);
}
body.hh-home .hh-feat { min-width: 0; }
body.hh-home .hh-feat-ic {
  display: grid; place-items: center;
  width: clamp(40px, 3.3 * var(--hh-u), 60px); aspect-ratio: 1; margin-bottom: clamp(8px, .75 * var(--hh-u), 14px);
  border: 1px solid #c9dbef; border-radius: clamp(9px, .75 * var(--hh-u), 13px);
  background: rgba(255,255,255,.9); color: var(--hh-blue);
  box-shadow: 0 8px 18px rgba(36,92,156,.07);
}
body.hh-home .hh-feat-ic svg { width: 52%; height: 52%; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
body.hh-home .hh-feat-ic .hh-fill { fill: currentColor; stroke: none; }
body.hh-home .hh-feat-t { margin-bottom: 3px; font-size: clamp(14px, 1.18 * var(--hh-u), 21px); font-weight: 700; letter-spacing: -.01em; color: var(--hh-navy); }
body.hh-home .hh-feat-d { font-size: clamp(12px, .93 * var(--hh-u), 16px); line-height: 1.35; color: var(--hh-ink-3); }
body.hh-home .hh-actions { display: flex; flex-wrap: wrap; gap: clamp(10px, 1.1vw, 18px); margin: 0 0 clamp(18px, 2.1 * var(--hh-u), 36px); }
body.hh-home .hh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: clamp(50px, 3.95 * var(--hh-u), 66px); padding: 0 clamp(18px, 1.65vw, 34px);
  border-radius: clamp(9px, .75 * var(--hh-u), 12px);
  font-size: clamp(15px, 1.18 * var(--hh-u), 20px); font-weight: 600; letter-spacing: -.005em; text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
body.hh-home .hh-btn svg { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.hh-home .hh-btn:focus-visible, body.hh-home .hh-card:focus-visible, body.hh-home .hh-cat:focus-visible { outline: 3px solid rgba(20,116,232,.5); outline-offset: 3px; }
body.hh-home .hh-btn-primary {
  min-width: clamp(220px, 16vw, 300px);
  background: var(--hh-grad); color: #fff; border: 1px solid #0f68df;
  box-shadow: 0 12px 26px rgba(17,107,229,.24), inset 0 1px 0 rgba(255,255,255,.22);
}
body.hh-home .hh-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 30px rgba(17,107,229,.3), inset 0 1px 0 rgba(255,255,255,.22); }
body.hh-home .hh-btn-secondary {
  min-width: clamp(150px, 11vw, 200px);
  background: rgba(255,255,255,.92); color: var(--hh-navy); border: 1px solid #bcd2ec;
  box-shadow: 0 8px 18px rgba(36,92,156,.06);
}
body.hh-home .hh-btn-secondary:hover { border-color: #7fb0e8; color: #0b5fcf; background: #fff; }
html[dir="rtl"] body.hh-home .hh-btn svg { transform: scaleX(-1); }
body.hh-home .hh-tags {
  list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; row-gap: 4px;
  font-size: clamp(9.5px, 2.4cqi, 13.5px); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--hh-ink-3);
}
body.hh-home .hh-tags li { display: inline-flex; align-items: center; white-space: nowrap; }
/* separator after each name (not before it), so a wrapped line never starts with a dot */
body.hh-home .hh-tags li:not(:last-child)::after { content: ""; width: 4px; height: 4px; margin-inline: .7em; border-radius: 50%; background: #89a7cb; }

/* category cards: 3 above, 2 below (offset by half a card) */
body.hh-home .hh-cards {
  min-width: 0; position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.15 * var(--hh-u), 22px) clamp(12px, 1.15vw, 22px);
}
body.hh-home .hh-card--beams { grid-column: 1 / 3; }
body.hh-home .hh-card--arches { grid-column: 3 / 5; }
body.hh-home .hh-card--plates { grid-column: 5 / 7; }
body.hh-home .hh-card--frames { grid-column: 2 / 4; }
body.hh-home .hh-card--sections { grid-column: 4 / 6; }
body.hh-home .hh-card {
  display: flex; flex-direction: column; min-width: 0;
  padding: clamp(14px, 1.2 * var(--hh-u), 24px) clamp(14px, 1.25vw, 26px) clamp(12px, 1.05 * var(--hh-u), 20px);
  border: 1px solid #cbdcef; border-radius: clamp(12px, 1vw, 18px);
  background: rgba(255,255,255,.88);
  box-shadow: 0 16px 34px rgba(27,72,128,.085), inset 0 1px 0 #fff;
  color: inherit; text-decoration: none;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.hh-home .hh-card:hover { transform: translateY(-3px); border-color: #9cc0e9; box-shadow: 0 22px 42px rgba(27,72,128,.14), inset 0 1px 0 #fff; }
body.hh-home .hh-card-title { font-size: clamp(15px, 1.27 * var(--hh-u), 23px); font-weight: 700; letter-spacing: -.015em; line-height: 1.2; color: var(--hh-navy); }
body.hh-home .hh-card-art {
  display: block; width: 100%; height: auto; aspect-ratio: 240 / 132;
  margin: clamp(4px, .4 * var(--hh-u), 9px) 0 clamp(8px, .65 * var(--hh-u), 13px);
}
body.hh-home .hh-card-desc { margin: 0 0 auto; padding-bottom: clamp(10px, .9 * var(--hh-u), 16px); font-size: clamp(12.5px, .99 * var(--hh-u), 17px); line-height: 1.38; color: #48678f; }
body.hh-home .hh-card-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: clamp(12px, .93 * var(--hh-u), 15.5px); font-weight: 600; color: #1d3f6b; }
body.hh-home .hh-live {
  display: inline-flex; align-items: center; gap: .45em; flex: none;
  padding: .28em .72em; border-radius: 999px; background: #dcf5e6; color: #137a43; font-weight: 600;
}
body.hh-home .hh-count { white-space: nowrap; }
body.hh-home .hh-live::before { content: ""; width: .5em; height: .5em; border-radius: 50%; background: #16a34a; }
/* count and Live pill share one line where every card has room for both (English, Arabic); in the
   longer languages they always stack, so that the cards of one row never differ from each other */
html:lang(tr) body.hh-home .hh-card-meta, html:lang(es) body.hh-home .hh-card-meta,
html:lang(zh) body.hh-home .hh-card-meta, html:lang(hi) body.hh-home .hh-card-meta { flex-direction: column; align-items: flex-start; }
/* cards of one row share their row heights (title, art, text, meta), so a two-line title in one card
   keeps the illustrations of the row level */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 640px) {
    body.hh-home .hh-card { display: grid; grid-template-rows: subgrid; row-gap: 0; }
    body.hh-home .hh-card--beams, body.hh-home .hh-card--arches, body.hh-home .hh-card--plates { grid-row: 1 / span 4; }
    body.hh-home .hh-card--frames, body.hh-home .hh-card--sections { grid-row: 5 / span 4; }
    body.hh-home .hh-card-desc { margin: 0; }
    body.hh-home .hh-card-meta { align-self: end; }
  }
}

/* right-hand blueprint notes */
body.hh-home .hh-deco { position: relative; align-self: stretch; min-width: 0; display: flex; flex-direction: column; align-items: center; padding-top: clamp(8px, 1 * var(--hh-u), 20px); pointer-events: none; }
body.hh-home .hh-note {
  font-family: "Segoe Print", "Bradley Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  color: #2a6bd0; line-height: 1.12; letter-spacing: -.01em; font-weight: 400;
}
body.hh-home .hh-note--top { font-size: clamp(17px, 1.55 * var(--hh-u), 30px); transform: rotate(-9deg); align-self: flex-start; margin-inline-start: 8%; }
body.hh-home .hh-note--top::after,
body.hh-home .hh-note--sheet::after { content: ""; display: block; width: 112%; height: 2px; margin-top: .3em; border-radius: 2px; background: #2a6bd0; opacity: .85; transform: rotate(-4deg); transform-origin: left; }
body.hh-home .hh-sketch { display: block; width: 82%; max-width: 176px; height: auto; margin-top: clamp(14px, 1.6 * var(--hh-u), 34px); opacity: .9; }

/* paper sheet + pen lying across the lower right corner */
body.hh-home .hh-paper { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
body.hh-home .hh-paper-in { --u: min(var(--hh-u), 17.76px); position: relative; height: 100%; max-width: calc(var(--hh-max) + 2 * var(--hh-pad)); margin-inline: auto; }
body.hh-home .hh-sheet {
  position: absolute; inset-inline-start: 76.5%; top: calc(100% - 14 * var(--u));
  width: calc(33 * var(--u)); aspect-ratio: 1.42 / 1;
  transform: rotate(-24deg); transform-origin: 0 0;
  border-radius: 6px;
  background:
    linear-gradient(rgba(64,128,206,.09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(64,128,206,.09) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: 0 0 0 1px rgba(150,182,218,.45), 0 24px 44px rgba(28,72,128,.13);
}
body.hh-home .hh-sheet::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 6px;
  background: #f4f8fd; box-shadow: 0 0 0 1px rgba(150,182,218,.4), 0 10px 22px rgba(28,72,128,.08);
  transform: translate(-10px, 14px) rotate(-3deg);
}
body.hh-home .hh-sheet::after {
  /* faint drawing on the sheet */
  content: ""; position: absolute; inset: 0; border-radius: 6px; opacity: .55;
  background:
    linear-gradient(90deg, transparent 58%, rgba(64,128,206,.32) 58% calc(58% + 1px), transparent calc(58% + 1px)),
    linear-gradient(90deg, transparent 72%, rgba(64,128,206,.26) 72% calc(72% + 1px), transparent calc(72% + 1px)),
    linear-gradient(180deg, transparent 22%, rgba(64,128,206,.28) 22% calc(22% + 1px), transparent calc(22% + 1px)),
    linear-gradient(180deg, transparent 46%, rgba(64,128,206,.22) 46% calc(46% + 1px), transparent calc(46% + 1px));
  -webkit-mask-image: linear-gradient(90deg, transparent 45%, #000 70%); mask-image: linear-gradient(90deg, transparent 45%, #000 70%);
}
body.hh-home .hh-note--sheet { position: absolute; inset-inline-start: 6%; top: 24%; z-index: 1; font-size: calc(1.4 * var(--u)); white-space: nowrap; }
body.hh-home .hh-pen {
  position: absolute; inset-inline-start: calc(76.5% + 3.9 * var(--u)); top: calc(100% - 24.2 * var(--u));
  width: calc(19.5 * var(--u)); height: auto;
  filter: drop-shadow(12px 18px 12px rgba(12,44,88,.22));
}
body.hh-home .hh-paper-tag {
  position: absolute; inset-inline-end: var(--hh-pad); bottom: clamp(14px, 1.3 * var(--hh-u), 26px);
  display: flex; align-items: center; gap: 14px; max-width: 13em;
  font-size: clamp(10.5px, .8 * var(--hh-u), 14px); font-weight: 600; letter-spacing: .22em; line-height: 1.5; text-transform: uppercase; color: #4e6f99;
}
body.hh-home .hh-paper-tag::after { content: ""; flex: none; width: clamp(28px, 2.6vw, 52px); height: 1px; background: #6f95c6; }

html[dir="rtl"] body.hh-home .hh-sheet { transform: rotate(24deg); transform-origin: 100% 0; }
html[dir="rtl"] body.hh-home .hh-sheet::before { transform: translate(10px, 14px) rotate(3deg); }
html[dir="rtl"] body.hh-home .hh-pen { transform: scaleX(-1); filter: drop-shadow(-12px 18px 12px rgba(12,44,88,.22)); }
html[dir="rtl"] body.hh-home .hh-note--top { transform: rotate(9deg); }
html[dir="rtl"] body.hh-home .hh-note--top::after,
html[dir="rtl"] body.hh-home .hh-note--sheet::after { transform: rotate(4deg); transform-origin: right; }

/* stats bar */
body.hh-home .hh-stats { position: relative; z-index: 2; border-top: 1px solid var(--hh-line); background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(249,252,255,.92)); }
body.hh-home .hh-stats-list {
  list-style: none; margin-block: 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-block: clamp(14px, 1.25 * var(--hh-u), 24px);
}
body.hh-home .hh-stats-list::after { content: none; }
body.hh-home .hh-stat { display: flex; align-items: center; gap: clamp(10px, .9vw, 16px); min-width: 0; padding-inline: clamp(14px, 1.8vw, 36px); border-inline-start: 1px solid var(--hh-line); }
body.hh-home .hh-stat:first-child { padding-inline-start: 0; border-inline-start: 0; }
body.hh-home .hh-stat-ic { flex: none; display: grid; place-items: center; color: #1b5aa6; }
body.hh-home .hh-stat-ic svg { width: clamp(28px, 2.3 * var(--hh-u), 42px); height: clamp(28px, 2.3 * var(--hh-u), 42px); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
body.hh-home .hh-stat-ic .hh-dots { stroke-width: 2.4; }
body.hh-home .hh-stat-txt { min-width: 0; }
body.hh-home .hh-stat-n { font-size: clamp(20px, 1.8 * var(--hh-u), 33px); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--hh-navy); white-space: nowrap; }
body.hh-home .hh-stat-l { margin-top: 2px; font-size: clamp(12px, .9 * var(--hh-u), 15.5px); line-height: 1.3; color: var(--hh-ink-3); }

@media (min-width: 960px) and (max-width: 1299px) {
  body.hh-home .hh-btn { padding-inline: 20px; }
  body.hh-home .hh-btn-primary, body.hh-home .hh-btn-secondary { min-width: 0; }
  body.hh-home .hh-tags { letter-spacing: .1em; }
}
@media (min-width: 1200px) {
  /* leave room on the right of the stats bar for the paper sheet */
  body.hh-home .hh-stats-list { padding-inline-end: calc(var(--hh-pad) + min(25vw, .25 * (var(--hh-max) + 2 * var(--hh-pad)))); }
  /* on short screens the card illustrations follow the height-limited unit (kept whole in their box) */
  body.hh-home .hh-card-art { max-height: calc(6.6 * var(--hh-u)); object-fit: contain; }
}
@media (min-width: 1200px) and (max-height: 760px) {
  /* short laptop screens: card texts keep two lines (the full text stays in the DOM and in the grid below) */
  body.hh-home .hh-card-desc {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
    padding-bottom: 0; margin-bottom: clamp(10px, .9 * var(--hh-u), 16px);
  }
}

/* ---------- hero: laptops / tablets / phones ---------- */
@media (max-width: 1199px) {
  body.hh-home .hh-hero-main { grid-template-columns: minmax(0, 37fr) minmax(0, 63fr); }
  body.hh-home .hh-deco, body.hh-home .hh-paper { display: none; }
  body.hh-home .hh-hero::after { background: none; }
}
@media (max-width: 959px) {
  body.hh-home .hh-hero-main { grid-template-columns: minmax(0, 1fr); row-gap: clamp(26px, 4vw, 40px); padding-top: clamp(26px, 4vw, 44px); }
  body.hh-home .hh-title { font-size: clamp(36px, 8.2vw, 66px); }
  body.hh-home .hh-lead { max-width: 34em; font-size: clamp(16px, 2.2vw, 19px); }
  body.hh-home .hh-feats { max-width: 760px; }
  body.hh-home .hh-hero::before { -webkit-mask-image: none; mask-image: none; opacity: .7; }
  body.hh-home .hh-card-title { font-size: clamp(15px, 2.3vw, 19px); }
  body.hh-home .hh-card-desc { font-size: clamp(13px, 1.75vw, 14.5px); }
  body.hh-home .hh-card-meta { font-size: 13px; }
  body.hh-home .hh-tags { font-size: 11px; }
  body.hh-home .hh-btn { font-size: 16px; }
  body.hh-home .hh-feat-t { font-size: 15px; }
  body.hh-home .hh-feat-d { font-size: 13px; }
  body.hh-home .hh-stat-n { font-size: 22px; }
  body.hh-home .hh-stat-l { font-size: 12.5px; }
}
@media (max-width: 719px) {
  body.hh-home .hh-stats-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
  body.hh-home .hh-stat:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
}
@media (max-width: 639px) {
  body.hh-home .hh-hero-main { padding-top: 24px; padding-bottom: 26px; row-gap: 26px; }
  body.hh-home .hh-eyebrow { font-size: 10.5px; letter-spacing: .24em; margin-bottom: 12px; }
  body.hh-home .hh-title { font-size: clamp(34px, 10.4vw, 48px); margin-bottom: 14px; }
  body.hh-home .hh-lead { font-size: 16px; margin-bottom: 20px; }
  body.hh-home .hh-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; margin-bottom: 22px; }
  body.hh-home .hh-feat { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: min-content 1fr; column-gap: 11px; align-items: start; }
  body.hh-home .hh-feat-ic { grid-row: 1 / 3; width: 40px; margin: 0; }
  body.hh-home .hh-feat-t { font-size: 14.5px; margin-top: 1px; }
  body.hh-home .hh-feat-d { font-size: 12.5px; }
  body.hh-home .hh-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 18px; }
  body.hh-home .hh-btn { width: 100%; min-width: 0; min-height: 52px; }
  body.hh-home .hh-tags { display: none; }
  body.hh-home .hh-actions { margin-bottom: 0; }
  body.hh-home .hh-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  body.hh-home .hh-card--beams, body.hh-home .hh-card--arches, body.hh-home .hh-card--plates,
  body.hh-home .hh-card--frames { grid-column: auto; }
  body.hh-home .hh-card--sections { grid-column: 1 / -1; }
  body.hh-home .hh-card { padding: 13px 13px 12px; border-radius: 14px; }
  body.hh-home .hh-card-title { font-size: 15.5px; }
  body.hh-home .hh-card-art { margin: 6px 0 10px; }
  body.hh-home .hh-card-desc { display: none; }
  body.hh-home .hh-card-meta { font-size: 12px; flex-wrap: wrap; gap: 6px; }
  body.hh-home .hh-card--sections { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 12px; align-items: center; }
  body.hh-home .hh-card--sections .hh-card-title { grid-column: 1; grid-row: 1; align-self: end; }
  body.hh-home .hh-card--sections .hh-card-art { grid-column: 2; grid-row: 1 / 3; margin: 0; }
  body.hh-home .hh-card--sections .hh-card-meta { grid-column: 1; grid-row: 2; align-self: start; margin-top: 10px; justify-content: flex-start; }
  body.hh-home .hh-stats-list { padding-block: 16px; }
  body.hh-home .hh-stat { gap: 10px; padding-inline: 12px; }
  body.hh-home .hh-stat-ic svg { width: 28px; height: 28px; }
  body.hh-home .hh-stat-n { font-size: 20px; }
  body.hh-home .hh-stat-l { font-size: 12px; }
}
@media (max-width: 420px) {
  body.hh-home .hh-card-meta { flex-direction: column; align-items: flex-start; gap: 7px; }
  body.hh-home .hh-card--sections .hh-card-meta { margin-top: 8px; }
}

/* ---------- sections below the hero: same container and scale as the hero ---------- */
body.hh-home .hh-main .section > .wrap,
body.hh-home .hh-main .cta-band > .wrap {
  width: 100%;
  max-width: calc(var(--hh-max) + 2 * var(--hh-pad));
  padding-inline: var(--hh-pad);
}
body.hh-home .hh-main .workflow-section,
body.hh-home .hh-main .disciplines-section,
body.hh-home .hh-main .engineer-section,
body.hh-home .hh-main .pricing-section { padding: clamp(52px, 5.4vw, 100px) 0 !important; margin: 0; }
body.hh-home .hh-main .section .section-head { max-width: 1160px; margin-bottom: clamp(26px, 2.6vw, 48px) !important; }
body.hh-home .hh-main .section .section-head p { max-width: 880px; margin-inline: auto; }
body.hh-home .hh-main .section .eyebrow {
  font-size: clamp(11.5px, .86vw, 14.5px); letter-spacing: .2em; margin-bottom: clamp(10px, .9vw, 16px);
  color: #4e6f99 !important;
}
body.hh-home .hh-main .section .eyebrow::before { width: 30px; background: var(--hh-blue) !important; }
body.hh-home .hh-main .section .section-head h2,
body.hh-home .hh-main .engineer-section .engineer-intro h2 {
  font-size: clamp(30px, 3.05vw, 54px); line-height: 1.1; letter-spacing: -.025em; color: var(--hh-navy);
  margin-bottom: clamp(10px, 1vw, 18px);
}
body.hh-home .hh-main .section .section-head p,
body.hh-home .hh-main .engineer-section .engineer-intro p {
  font-size: clamp(16px, 1.24vw, 21px); line-height: 1.6; color: var(--hh-ink-2);
}

/* 01 workflow */
body.hh-home .hh-main .workflow-section { background: linear-gradient(180deg, #fff 0%, #f8fbff 100%); }
body.hh-home .hh-main .workflow-cards { gap: clamp(16px, 1.7vw, 32px); }
body.hh-home .hh-main .workflow-card {
  min-height: 0; padding: clamp(22px, 2.1vw, 40px);
  border-radius: clamp(14px, 1.2vw, 20px); border-color: #d3e2f2;
  box-shadow: 0 16px 40px rgba(29,75,126,.075);
}
body.hh-home .hh-main .workflow-card .step-n { width: clamp(36px, 2.9vw, 48px); height: clamp(36px, 2.9vw, 48px); border-radius: 12px; font-size: clamp(13px, 1vw, 16px); margin-bottom: 4px; }
body.hh-home .hh-main .workflow-art { height: clamp(110px, 9.6vw, 176px); margin: clamp(8px, .8vw, 14px) 0 clamp(14px, 1.3vw, 24px); }
body.hh-home .hh-main .workflow-art svg { max-width: 420px; }
body.hh-home .hh-main .input-art { max-width: clamp(190px, 16vw, 290px); gap: clamp(7px, .6vw, 11px); }
body.hh-home .hh-main .input-mini { padding: clamp(7px, .6vw, 11px) clamp(10px, .85vw, 15px); font-size: clamp(11px, .85vw, 14px); grid-template-columns: 28px 1fr auto; }
body.hh-home .hh-main .input-mini b { font-size: clamp(13px, 1vw, 17px); }
body.hh-home .hh-main .mini-report { width: clamp(110px, 9.4vw, 166px); height: clamp(94px, 8vw, 142px); padding: clamp(18px, 1.5vw, 28px) clamp(9px, .8vw, 14px) 8px; }
body.hh-home .hh-main .mini-report svg { width: 100%; height: auto; }
body.hh-home .hh-main .pdf-badge { font-size: clamp(11px, .85vw, 14px); padding: 5px 9px; }
body.hh-home .hh-main .workflow-card h4 { font-size: clamp(19px, 1.55vw, 28px); margin-bottom: clamp(6px, .6vw, 12px); color: var(--hh-navy); }
body.hh-home .hh-main .workflow-card p { font-size: clamp(15px, 1.1vw, 18.5px); line-height: 1.6; color: var(--hh-ink-2); }

/* 02 calculator library */
body.hh-home .hh-main .disciplines-section { background: #f4f8fe; }
body.hh-home .hh-main #cat-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(14px, 1.3vw, 26px); }
body.hh-home .hh-cat {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid #d3e2f2; border-radius: clamp(14px, 1.2vw, 20px); background: #fff;
  box-shadow: 0 14px 36px rgba(29,76,127,.07);
  color: inherit; text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
body.hh-home .hh-cat:hover { transform: translateY(-4px); border-color: #a9c8ea; box-shadow: 0 22px 46px rgba(29,76,127,.13); }
body.hh-home .hh-cat-art {
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 1.5vw, 30px) clamp(14px, 1.3vw, 26px);
  border-bottom: 1px solid #e2ecf7;
  background:
    linear-gradient(rgba(64,128,206,.07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(64,128,206,.07) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(180deg, #fbfdff, #f2f7fd);
}
body.hh-home .hh-cat-art img { display: block; width: 100%; max-width: 300px; height: auto; aspect-ratio: 240 / 132; }
body.hh-home .hh-cat-body { flex: 1; display: flex; flex-direction: column; padding: clamp(16px, 1.4vw, 28px) clamp(16px, 1.4vw, 28px) clamp(14px, 1.2vw, 22px); }
body.hh-home .hh-cat h3 { margin: 0 0 clamp(6px, .6vw, 10px); font-family: var(--font-serif); font-size: clamp(20px, 1.6vw, 28px); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; color: var(--hh-navy); }
body.hh-home .hh-cat p { flex: 1; margin: 0 0 clamp(14px, 1.2vw, 22px); font-size: clamp(14.5px, 1.02vw, 17.5px); line-height: 1.55; color: var(--hh-ink-2); }
body.hh-home .hh-cat .cat-meta { margin-top: auto; padding-top: clamp(12px, 1vw, 16px); border-top: 1px solid #e2ecf7; font-size: clamp(13px, .95vw, 16px); font-weight: 600; color: #1d3f6b; }
body.hh-home .hh-cat .pill { font-size: clamp(11.5px, .82vw, 14px); padding: .3em .85em; }
body.hh-home .hh-cat .pill-live { background: #dcf5e6; color: #137a43; }

/* 03 verification */
body.hh-home .hh-main .engineer-layout { grid-template-columns: minmax(0, .95fr) minmax(0, 1.35fr) minmax(0, 1.1fr); gap: clamp(28px, 3vw, 64px); }
body.hh-home .hh-main .engineer-section .engineer-intro h2 { font-size: clamp(28px, 2.6vw, 46px); }
body.hh-home .hh-main .engineer-features { gap: clamp(18px, 1.8vw, 34px) clamp(18px, 1.8vw, 36px); }
body.hh-home .hh-main .engineer-section .feat { min-height: 0; grid-template-columns: clamp(44px, 3.5vw, 60px) 1fr; gap: clamp(12px, 1vw, 18px); }
body.hh-home .hh-main .engineer-section .feat-icon { width: clamp(44px, 3.5vw, 60px); height: clamp(44px, 3.5vw, 60px); border-radius: 14px; }
body.hh-home .hh-main .engineer-section .feat-icon svg { width: clamp(20px, 1.6vw, 28px); height: clamp(20px, 1.6vw, 28px); }
body.hh-home .hh-main .engineer-section .feat h4 { font-size: clamp(16px, 1.2vw, 21px); margin-bottom: 6px; color: var(--hh-navy); }
body.hh-home .hh-main .engineer-section .feat p { font-size: clamp(14px, 1vw, 17px); line-height: 1.55; color: var(--hh-ink-3); }
body.hh-home .hh-main .engineer-report-visual { min-height: clamp(360px, 29vw, 520px); }
/* min-height auto: the sheet keeps its 310:315 shape but grows when a translation needs more room */
body.hh-home .hh-main .report-sheet { width: 72%; min-height: auto; aspect-ratio: 310 / 315; left: 2%; top: 5%; padding: clamp(18px, 1.5vw, 28px); }
body.hh-home .hh-main .sheet-title { font-size: clamp(12px, 1vw, 17px); padding-bottom: 10px; margin-bottom: 12px; }
body.hh-home .hh-main .sheet-values { font-size: clamp(8.5px, .72vw, 12.5px); gap: 5px; }
body.hh-home .hh-main .sheet-values b { font-size: clamp(9.5px, .8vw, 13.5px); }
/* a formula never breaks at its "=" (keeps the sheet short enough in the longer languages) */
body.hh-home .hh-main .sheet-values span { white-space: nowrap; }
body.hh-home .hh-main .sheet-chart { height: clamp(40px, 3.4vw, 62px); }
body.hh-home .hh-main .report-note { font-size: clamp(13px, 1.1vw, 19px); top: 20%; right: 0; }
body.hh-home .hh-main .report-pen { width: clamp(150px, 13vw, 240px); height: auto; bottom: -2%; right: 2%; transform: rotate(-10deg); filter: drop-shadow(6px 10px 8px rgba(12,44,88,.2)); }

/* 04 pricing (markup and logic unchanged) */
body.hh-home .hh-main .pricing-section .pricing-head { margin-inline: auto; }
body.hh-home .hh-main .pricing-section .plans-3 { max-width: none; gap: clamp(16px, 1.7vw, 32px); }
body.hh-home .hh-main .pricing-section .plan { padding: clamp(26px, 2.3vw, 44px) clamp(24px, 2.1vw, 40px); gap: clamp(14px, 1.1vw, 20px); border-radius: clamp(14px, 1.2vw, 20px); }
body.hh-home .hh-main .pricing-section .plan h3 { font-size: clamp(19px, 1.45vw, 26px); }
body.hh-home .hh-main .pricing-section .plan .price b { font-size: clamp(38px, 3.2vw, 58px); }
body.hh-home .hh-main .pricing-section .plan .price span { font-size: clamp(13px, 1vw, 17px); }
body.hh-home .hh-main .pricing-section .plan .desc { min-height: 0; font-size: clamp(14px, 1.02vw, 17px); line-height: 1.55; }
body.hh-home .hh-main .pricing-section .plan ul { gap: clamp(9px, .75vw, 13px); font-size: clamp(14.5px, 1.05vw, 17.5px); padding-top: clamp(16px, 1.3vw, 24px); }
body.hh-home .hh-main .pricing-section .plan li::before { width: 18px; height: 18px; margin-top: .15em; background-size: 11px; }
body.hh-home .hh-main .pricing-section .btn { min-height: clamp(46px, 3.6vw, 58px); font-size: clamp(14.5px, 1.05vw, 17px); border-radius: 10px; }
body.hh-home .hh-main .pricing-section .plan.featured::before { font-size: clamp(11px, .8vw, 13px); padding: 5px 12px; }
body.hh-home .hh-main .pricing-section .pricing-smallprint { max-width: 1040px; margin-top: clamp(20px, 1.8vw, 32px); font-size: clamp(12.5px, .92vw, 15px); }

/* CTA band */
body.hh-home .hh-main .cta-band { padding: clamp(56px, 5.6vw, 104px) 0; }
body.hh-home .hh-main .cta-band h2 { max-width: 1000px; margin-inline: auto; font-size: clamp(30px, 3.05vw, 54px); line-height: 1.12; margin-bottom: clamp(12px, 1vw, 18px); }
body.hh-home .hh-main .cta-band p { max-width: 920px; margin: 0 auto clamp(22px, 2vw, 36px); font-size: clamp(16px, 1.24vw, 21px); }
body.hh-home .hh-main .cta-band .btn-lg { min-height: clamp(50px, 3.9vw, 64px); padding: 0 clamp(26px, 2.2vw, 40px); font-size: clamp(15px, 1.15vw, 19px); border-radius: 10px; }

/* the shared site.js footer keeps the same width and type as on every other page */

@media (max-width: 1199px) {
  body.hh-home .hh-main #cat-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.hh-home .hh-main #cat-grid > .hh-cat { grid-column: span 2; }
  body.hh-home .hh-main #cat-grid > .hh-cat:nth-child(4) { grid-column: 2 / 4; }
  body.hh-home .hh-main .engineer-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); }
  /* the visual's height follows its width, so the tilted sheet (and its pen) stay inside the section */
  body.hh-home .hh-main .engineer-report-visual { max-width: 560px; min-height: 0; aspect-ratio: 1 / .8; }
  body.hh-home .hh-main .report-sheet { width: 66%; transform: rotate(4deg); }
  body.hh-home .hh-main .report-pen { bottom: 3%; }
}
@media (min-width: 760px) and (max-width: 959px) {
  body.hh-home .hh-main .workflow-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  body.hh-home .hh-main .workflow-card { padding: 20px 18px; }
  body.hh-home .hh-main .workflow-card h4 { font-size: 18px; }
  body.hh-home .hh-main .workflow-card p { font-size: 14.5px; }
}
@media (max-width: 899px) {
  body.hh-home .hh-main .engineer-layout { grid-template-columns: minmax(0, 1fr); }
  body.hh-home .hh-main .engineer-intro { max-width: 760px; }
  body.hh-home .hh-main .engineer-report-visual { width: 100%; margin-inline: auto; }
  body.hh-home .hh-main .pricing-section .plans-3 { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; }
}
@media (max-width: 719px) {
  body.hh-home .hh-main #cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.hh-home .hh-main #cat-grid > .hh-cat,
  body.hh-home .hh-main #cat-grid > .hh-cat:nth-child(4) { grid-column: auto; }
  body.hh-home .hh-main #cat-grid > .hh-cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 639px) {
  body.hh-home .hh-main .pricing-section .plans-3 { grid-template-columns: minmax(0, 1fr); }
  body.hh-home .hh-main .engineer-features { grid-template-columns: minmax(0, 1fr); }
  body.hh-home .hh-main .report-sheet { left: 50%; width: min(300px, 84%); transform: translateX(-50%) rotate(3deg); }
  body.hh-home .hh-main .engineer-report-visual { min-height: 0; aspect-ratio: 1 / .92; max-width: 420px; margin-inline: auto; }
  body.hh-home .hh-main #cat-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.hh-home .hh-main #cat-grid > .hh-cat:last-child:nth-child(odd) { grid-column: auto; }
  body.hh-home .hh-cat { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
  body.hh-home .hh-cat-art { border-bottom: 0; border-inline-end: 1px solid #e2ecf7; padding: 10px 8px; }
  body.hh-home .hh-cat-body { padding: 14px 14px 12px; }
  body.hh-home .hh-cat h3 { font-size: 19px; }
  body.hh-home .hh-cat p { font-size: 14px; line-height: 1.5; margin-bottom: 10px; }
  body.hh-home .hh-cat .cat-meta { padding-top: 10px; font-size: 13px; }
}
/* Hindi (Devanagari): letter-spacing breaks the head-line of each word, and tight leading lets the
   vowel signs above a line touch the line before it (display headings and the handwritten notes) */
html:lang(hi) body.hh-home .hh-hero *,
html:lang(hi) body.hh-home .hh-main .section .eyebrow { letter-spacing: normal; }
html:lang(hi) body.hh-home .hh-title { line-height: 1.26; }
html:lang(hi) body.hh-home .hh-main .section .section-head h2,
html:lang(hi) body.hh-home .hh-main .engineer-section .engineer-intro h2,
html:lang(hi) body.hh-home .hh-main .cta-band h2 { line-height: 1.32; }
html:lang(hi) body.hh-home .hh-note { line-height: 1.4; }

/* ---------- our Android app (DWG OfficeZip): a bar under the header, above the hero; hidden in the iOS app (data-not-ios) ----------
   --hh-bar is its height on wide screens, taken off the viewport height the hero is scaled to (see --hh-u) */
body.hh-home { --hh-bar: 52px; }
html.hc-ios body.hh-home { --hh-bar: 0px; }
body.hh-home .hh-appbar { display: block; background: var(--hh-navy); color: #fff; text-decoration: none; }
body.hh-home .hh-appbar:hover { background: #0f3168; }
body.hh-home .hh-appbar:focus-visible { outline: 3px solid #7fb5f4; outline-offset: -3px; }
body.hh-home .hh-appbar-in { display: flex; align-items: center; gap: 14px; min-height: var(--hh-bar); padding-block: 8px; }
body.hh-home .hh-appbar-ico { flex: none; width: 32px; height: 32px; border-radius: 8px; }
body.hh-home .hh-appbar-text { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 12px; font-size: 14.5px; line-height: 1.35; }
body.hh-home .hh-appbar-text strong { flex: none; font-weight: 700; }
body.hh-home .hh-appbar-text div { min-width: 0; color: #c4d6ef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.hh-home .hh-appbar-go { flex: none; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--hh-navy); font-size: 13.5px; font-weight: 700; white-space: nowrap; }
@media (max-width: 860px) {
  body.hh-home .hh-appbar-text div { display: none; }
  body.hh-home .hh-appbar-text strong { flex: 1 1 auto; min-width: 0; line-height: 1.25; }   /* the name may take two lines next to the button */
}
@media (max-width: 520px) {
  body.hh-home .hh-appbar-in { gap: 10px; }
  body.hh-home .hh-appbar-text { font-size: 13.5px; }
  body.hh-home .hh-appbar-go { flex: 0 1 auto; max-width: 48%; padding: 5px 10px; font-size: 12.5px; line-height: 1.25; white-space: normal; text-align: center; }
}
