/* =========================================================
   HotelLock by Ang Systems — site styles
   Brand: ink canvas, one red accent, Montserrat + Inter
   (from ~/Desktop/Video Lab/Ang Systems Style Guide/frame.md)
   ========================================================= */

:root {
  --ink: #090909;
  --ink-2: #0f0f0f;
  --card: #161616;
  --paper: #f4f2ee;
  --white: #ffffff;
  --red: #991918;
  --red-deep: #7d1413;
  --red-bright: #d12a20;
  --red-glow: rgba(153, 25, 24, 0.42);
  --text: #ffffff;
  --muted: #b0b0b0;
  --light: #8c8c8c;
  --ink-text: #0a0a0a;
  --ink-muted: #404040;
  --fill: rgba(255, 255, 255, 0.05);
  --fill-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.25);
  --star: #f5b400;
  --wa: #25d366;
  --text-2: #dcdcdc;
  --bg-rgb: 9, 9, 9;
  --bg2-rgb: 15, 15, 15;
  --badge-bg: #0a0a0a;
  --door: #242424;
  --logo-filter: none;
  --wa-text: #cfe9d8;
  color-scheme: dark;

  --r-pill: 999px;
  --r-lg: 22px;
  --r-md: 14px;
  --r-btn: 10px;

  --font-display: "Montserrat", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);
  --header-h: 72px;

  --z-header: 50;
  --z-menu: 60;
  --z-fab: 40;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); text-transform: uppercase; letter-spacing: -0.01em; }

:focus-visible { outline: 2px solid var(--red-bright); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-btn); font-weight: 700; }
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 18px; height: 18px; }
.icon-fill { fill: currentColor; stroke: none; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }
.section-raised { background: var(--ink-2); border-block: 1px solid var(--line); }
.section-paper { background: var(--paper); color: var(--ink-text); }
.section-paper .lead, .section-paper p { color: var(--ink-muted); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.stack > * + * { margin-top: 16px; }

/* ---------- type ---------- */
.h1 { font-size: clamp(2.3rem, 5.4vw, 4.4rem); font-weight: 900; line-height: 1.02; }
.h2 { font-size: clamp(1.75rem, 3.6vw, 2.9rem); font-weight: 800; line-height: 1.08; }
.h3 { font-size: clamp(1.05rem, 1.4vw, 1.2rem); font-weight: 800; line-height: 1.25; letter-spacing: 0; }
.accent { color: var(--red-bright); font-style: italic; }
.section-paper .accent { color: var(--red); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.section-head .h2 { margin: 18px 0 16px; }
.rule { width: 72px; height: 4px; background: var(--red); border: 0; margin: 0 0 20px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border: 1px solid var(--red); border-radius: var(--r-pill);
  color: var(--red-bright); font-family: var(--font-display); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; line-height: 1.4;
}
.section-paper .eyebrow { color: var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 22px; border-radius: var(--r-btn);
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem;
  letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.2; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 0 20px var(--red-glow); }
.btn-primary:hover { background: var(--red-bright); box-shadow: 0 0 28px var(--red-glow); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--text); background: var(--fill); }
.section-paper .btn-ghost { color: var(--ink-text); border-color: rgba(0,0,0,.25); }
.section-paper .btn-ghost:hover { border-color: var(--ink-text); background: rgba(0,0,0,.04); }
.btn-wa { background: var(--wa); color: #06210f; }
.btn-wa:hover { background: #3be07a; }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 0.75rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--red-bright); }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: rgba(var(--bg-rgb), 0.86); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 12px; flex: none; }
.brand img { width: 40px; height: 40px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; letter-spacing: .02em; }
.brand-name span { color: var(--red-bright); }
.brand-sub { font-family: var(--font-display); font-weight: 700; font-size: .62rem; letter-spacing: .28em; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; padding: 10px 11px; border-radius: 8px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 600; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); transition: color .2s ease;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red-bright); border-radius: 2px; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; }
.mobile-menu { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(88vh, 820px); display: flex; align-items: center; padding-block: clamp(72px, 10vw, 128px); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(var(--bg-rgb),.96) 0%, rgba(var(--bg-rgb),.88) 38%, rgba(var(--bg-rgb),.45) 70%, rgba(var(--bg-rgb),.25) 100%), linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 30%); }
.hero-content { max-width: 680px; }
.hero .h1 { margin: 22px 0 20px; }
.hero .lead { color: var(--text-2); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 30px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-pill); font-size: .875rem; font-weight: 500; }
.pill .icon { width: 16px; height: 16px; color: var(--red-bright); stroke-width: 2.4; }
.proof { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 28px; font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .icon { width: 18px; height: 18px; }

.page-hero { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; right: -180px; top: -260px; background: radial-gradient(circle, rgba(153,25,24,.32) 0%, rgba(153,25,24,0) 65%); }
.page-hero .h1 { margin: 20px 0 18px; font-size: clamp(2.1rem, 4.6vw, 3.7rem); }
.page-hero.has-media { min-height: 460px; display: flex; align-items: center; }
.page-hero.has-media::before { width: auto; height: auto; inset: 0; right: 0; top: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb),.97) 0%, rgba(var(--bg-rgb),.85) 45%, rgba(var(--bg-rgb),.4) 100%); }
.page-hero .hero-media img { object-position: center; }
.crumbs { display: flex; gap: 8px; font-size: .8rem; color: var(--light); margin-bottom: 18px; }
.crumbs a:hover { color: var(--text); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--fill); }
.stat { padding: clamp(20px, 3vw, 32px); }
.stat + .stat { border-left: 1px solid var(--line); }
.stat-num { font-family: var(--font-display); font-weight: 900; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.stat-num em { color: var(--red-bright); font-style: normal; }
.stat-label { margin-top: 10px; font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- logo marquee ---------- */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(40px, 5vw, 72px); width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 44px; width: auto; max-width: 150px; object-fit: contain; opacity: .7; filter: var(--logo-filter); transition: opacity .2s ease; }
.marquee img:hover { opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-label { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--light); margin-bottom: 28px; }

/* ---------- cards ---------- */
.card { background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 32px); }
.card .h3 { margin: 16px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: rgba(153,25,24,.14); color: var(--red-bright); border: 1px solid rgba(209,42,32,.3); }
a.card { display: block; transition: border-color .2s ease, background-color .2s ease; }
a.card:hover { border-color: rgba(209,42,32,.55); background: var(--fill-2); }
.section-paper .card { background: #fff; border-color: rgba(0,0,0,.08); }
.section-paper .card p { color: var(--ink-muted); }

/* bento system grid */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento .card { display: flex; flex-direction: column; }
.bento .span-2 { grid-column: span 2; }
.bento .tag { margin-top: auto; padding-top: 18px; font-family: var(--font-display); font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; color: var(--light); }

/* ---------- product cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter-btn { min-height: 44px; padding: 10px 18px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent; font-family: var(--font-display); font-weight: 600; font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: all .2s ease; }
.filter-btn:hover { color: var(--text); border-color: var(--text); }
.filter-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.product { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s ease; }
.product:hover { border-color: rgba(209,42,32,.5); }
.product[hidden] { display: none; }
.product-media { position: relative; aspect-ratio: 4 / 3; background: var(--paper); display: grid; place-items: center; padding: 24px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-media .placeholder { color: var(--red); }
.product-media .placeholder .icon { width: 72px; height: 72px; stroke-width: 1.2; }
.badge { position: absolute; top: 14px; left: 14px; padding: 5px 10px; border-radius: var(--r-pill); background: var(--badge-bg); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; }
.badge-red { background: var(--red); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 22px 22px 24px; }
.product-code { font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .2em; color: var(--light); text-transform: uppercase; }
.product-body .h3 { margin: 6px 0 10px; }
.product-body > p { color: var(--muted); font-size: .94rem; margin-bottom: 16px; }
.specs { list-style: none; display: grid; gap: 0; margin-bottom: 20px; font-size: .9rem; }
.specs li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.specs li:last-child { border-bottom: 0; }
.specs span:first-child { color: var(--light); flex: none; }
.specs span:last-child { text-align: right; color: var(--text-2); }
.product-cta { margin-top: auto; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.btn-icon { width: 50px; min-height: 50px; padding: 0; }
.no-price { display: flex; align-items: center; gap: 8px; font-size: .8rem; color: var(--light); margin-bottom: 14px; }
.no-price .icon { width: 16px; height: 16px; color: var(--red-bright); }

/* featured product */
.feature { display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--card); }
.feature-media { background: var(--paper); display: grid; place-items: center; padding: clamp(24px, 4vw, 56px); min-height: 360px; }
.feature-media img { max-height: 440px; width: auto; mix-blend-mode: multiply; }
.feature-body { padding: clamp(24px, 4vw, 48px); }
.feature-body .h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin: 16px 0 14px; }

/* spec table */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; color: var(--light); font-weight: 500; }
.spec-table tr:hover td, .spec-table tr:hover th { background: var(--fill); }
.table-wrap { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }

/* ---------- process / sales flow ---------- */
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: phase; }
.phase { position: relative; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.phase-num { font-family: var(--font-display); font-weight: 900; font-size: 3rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(209,42,32,.8); }
.phase .h3 { margin: 14px 0 14px; }
.phase ol { list-style: none; display: grid; gap: 10px; }
.phase li { display: flex; gap: 10px; align-items: flex-start; font-size: .94rem; color: var(--text-2); }
.phase li b { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--fill-2); font-size: .72rem; font-family: var(--font-display); }
.phase:not(:last-child)::after { content: ""; position: absolute; top: 50%; right: -15px; width: 10px; height: 10px; border-top: 2px solid var(--red-bright); border-right: 2px solid var(--red-bright); transform: translateY(-50%) rotate(45deg); }

.timeline { list-style: none; position: relative; display: grid; gap: 14px; }
.timeline::before { content: ""; position: absolute; left: 27px; top: 28px; bottom: 28px; width: 2px; background: linear-gradient(var(--red), rgba(153,25,24,.15)); }
.step { position: relative; display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 18px 14px 0; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin-left: -1px; border-radius: 50%; background: var(--ink); border: 2px solid var(--red); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.step-body { display: flex; gap: 14px; align-items: center; }
.step-body .icon { color: var(--red-bright); }
.step-body strong { display: block; font-weight: 600; }
.step-body span { display: block; color: var(--muted); font-size: .9rem; }
.who { padding: 6px 12px; border-radius: var(--r-pill); font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap; }
.who-us { background: var(--red); color: #fff; }
.who-hotel { border: 1px solid var(--line-2); color: var(--text); }
.legend { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; font-size: .875rem; color: var(--muted); align-items: center; }

/* how it works steps */
.howto { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: how; }
.howto .card { position: relative; }
.howto .card::before { counter-increment: how; content: "0" counter(how); position: absolute; top: 22px; right: 24px; font-family: var(--font-display); font-weight: 900; font-size: 1.6rem; color: rgba(255,255,255,.12); }

/* ---------- diagrams ---------- */
.diagram { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.diagram svg { width: 100%; height: auto; }
.diagram-caption { margin-top: 16px; font-size: .875rem; color: var(--light); }
.figure-paper { background: #fff; border-radius: var(--r-lg); padding: clamp(10px, 1.5vw, 18px); border: 1px solid var(--line); }
.figure-paper img { border-radius: 10px; width: 100%; }
.zoom-link { display: block; position: relative; }
.zoom-link .zoom-hint { position: absolute; right: 14px; bottom: 14px; display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border-radius: var(--r-pill); background: rgba(var(--bg-rgb),.85); color: #fff; font-size: .78rem; font-weight: 600; }

.esu-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; align-items: stretch; }
.esu-node { position: relative; text-align: center; padding: 22px 12px; }
.esu-node .card-icon { margin: 0 auto 12px; width: 60px; height: 60px; border-radius: 16px; }
.esu-node .card-icon .icon { width: 28px; height: 28px; }
.esu-node strong { display: block; font-family: var(--font-display); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; }
.esu-node span { display: block; color: var(--light); font-size: .82rem; margin-top: 4px; }
.esu-node:not(:last-child)::after { content: ""; position: absolute; top: 52px; right: -8px; width: 16px; height: 2px; background: var(--red-bright); }
.esu-db { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; border: 1px dashed rgba(209,42,32,.6); border-radius: var(--r-md); position: relative; }
.esu-db > .label { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: var(--card); padding: 0 10px; font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .2em; color: var(--red-bright); }
.esu-db .esu-node:last-child::after { display: block; right: -9px; }

.hands { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.hand { background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; text-align: center; }
.hand svg { width: 160px; height: auto; margin: 0 auto 16px; }
.hand .h3 { margin-bottom: 6px; }

.measure { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.measure-list { list-style: none; display: grid; gap: 10px; }
.measure-list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); }
.measure-list b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--text); color: var(--card); font-family: var(--font-display); font-weight: 900; }
.measure-list strong { display: block; }
.measure-list span { color: var(--muted); font-size: .9rem; }

.notes { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.notes li { display: flex; gap: 14px; padding: 18px; background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); font-size: .95rem; color: var(--text-2); }
.notes li .icon { color: var(--red-bright); margin-top: 2px; }
.notes strong { color: var(--text); }

/* sub-nav for long pages */
.subnav { position: sticky; top: var(--header-h); z-index: 30; background: rgba(var(--bg2-rgb), .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { list-style: none; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border-radius: var(--r-pill); white-space: nowrap; font-family: var(--font-display); font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); transition: all .2s ease; }
.subnav a:hover, .subnav a.is-active { color: var(--text); background: var(--fill-2); }

/* ---------- integrations ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; position: relative; }
.flow .card { text-align: left; }
.flow .card:not(:last-child)::after { content: ""; position: absolute; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--fill); font-weight: 600; font-size: .92rem; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); }

/* faq */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--fill); border: 1px solid var(--line); border-radius: var(--r-md); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; color: var(--red-bright); }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }

/* ---------- clients / testimonials / video ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.logo-wall div { display: flex; align-items: center; justify-content: center; min-width: 0; height: clamp(84px, 11vw, 120px); padding: clamp(10px, 1.6vw, 18px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background-color .2s ease; }
.logo-wall div:hover { background: var(--fill); }
.logo-wall img { max-height: 100%; width: auto; max-width: 100%; object-fit: contain; opacity: .82; filter: var(--logo-filter); transition: opacity .2s ease; }
.sticky-head { position: sticky; top: calc(var(--header-h) + 80px); }
@media (max-width: 860px) { .sticky-head { position: static; } }
.logo-wall div:hover img { opacity: 1; }

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.quote { display: flex; flex-direction: column; background: #fff; border: 1px solid rgba(0,0,0,.08); border-radius: var(--r-lg); padding: 28px; color: var(--ink-text); }
.quote .stars { margin-bottom: 14px; }
.quote blockquote { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.55; color: var(--ink-text); }
.quote footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.quote footer img, .quote .avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; background: var(--paper); }
.quote .avatar { display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--red); border: 1px solid rgba(0,0,0,.08); }
.quote cite { font-style: normal; font-weight: 700; display: block; }
.quote footer span { font-size: .875rem; color: var(--ink-muted); }

.videos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; margin-bottom: 12px; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-md); overflow: hidden; background: #000; border: 1px solid var(--line); }
.yt button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .2s ease; }
.yt button:hover img { opacity: 1; }
.yt button:focus-visible { outline: 2px solid var(--red-bright); outline-offset: -4px; }
.yt .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 68px; height: 68px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 24px var(--red-glow); transition: background-color .2s ease; }
.yt button:hover .play { background: var(--red-bright); }
.yt .play .icon { width: 26px; height: 26px; margin-left: 4px; fill: #fff; stroke: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-card h3 { font-family: var(--font-body); text-transform: none; font-weight: 600; font-size: 1rem; letter-spacing: 0; margin-top: 14px; }
.video-card p { color: var(--light); font-size: .875rem; margin: 4px 0 0; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px; background: linear-gradient(transparent, rgba(9,9,9,.9)); color: #fff; font-size: .85rem; font-weight: 600; }

/* ---------- photo band / CTA ---------- */
.photo-card { position: relative; border-radius: var(--r-lg); overflow: hidden; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line); padding: clamp(32px, 6vw, 72px); background: radial-gradient(120% 140% at 100% 0%, rgba(153,25,24,.45) 0%, rgba(153,25,24,0) 55%), var(--card); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.cta-band .h2 { margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.field .req { color: var(--red-bright); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-btn);
  background: var(--ink); border: 1px solid var(--line-2); color: var(--text); font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #7a7a7a; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red-bright); box-shadow: 0 0 0 3px rgba(209,42,32,.25); }
.field .hint { font-size: .8rem; color: var(--light); }
.field .error { font-size: .82rem; color: #ff8a80; display: none; }
.field.invalid input, .field.invalid select { border-color: #ff6b5e; }
.field.invalid .error { display: block; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 10px 14px; border-radius: var(--r-btn); border: 1px solid var(--line); background: var(--fill); cursor: pointer; font-size: .92rem; transition: border-color .2s ease, background-color .2s ease; }
.check:hover { border-color: var(--line-2); }
.check input { width: 18px; height: 18px; accent-color: var(--red); flex: none; }
.check:has(input:checked) { border-color: var(--red-bright); background: rgba(153,25,24,.14); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.form-status { grid-column: 1 / -1; font-size: .9rem; color: var(--muted); min-height: 1.4em; }
.contact-list { list-style: none; display: grid; gap: 4px; }
.contact-list li a, .contact-list li > div { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list li:last-child a, .contact-list li:last-child > div { border-bottom: 0; }
.contact-list .icon { color: var(--red-bright); margin-top: 2px; }
.contact-list small { display: block; color: var(--light); font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; }
.contact-list a:hover strong { color: var(--red-bright); }
.wa-card { background: linear-gradient(145deg, rgba(37,211,102,.16), rgba(37,211,102,.04)); border: 1px solid rgba(37,211,102,.35); border-radius: var(--r-lg); padding: 28px; margin-bottom: 20px; }
.wa-card .h3 { margin: 12px 0 8px; }
.wa-card p { color: var(--wa-text); }
.wa-badge { width: 52px; height: 52px; border-radius: 14px; background: var(--wa); display: grid; place-items: center; color: #06210f; }
.map { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--card); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding-block: clamp(48px, 7vw, 80px) 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-grid h4 { font-size: .72rem; letter-spacing: .22em; color: var(--light); margin-bottom: 16px; font-weight: 700; }
.footer-grid ul { list-style: none; display: grid; gap: 4px; }
.footer-grid li a { display: inline-block; padding: 6px 0; color: var(--muted); font-size: .94rem; transition: color .2s ease; }
.footer-grid li a:hover { color: var(--text); }
.footer-grid p { color: var(--muted); font-size: .94rem; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .82rem; color: var(--light); }

.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-fab); display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: var(--r-pill); background: var(--wa); color: #06210f; font-weight: 700; box-shadow: 0 10px 30px rgba(0,0,0,.45); transition: transform .2s ease, background-color .2s ease; }
.fab-wa:hover { background: #3be07a; transform: translateY(-2px); }
.fab-wa .icon { width: 26px; height: 26px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
/* With "Get a quote" the header needs ~1,370px of page width, plus up to 17px for a
   Windows scrollbar, so the button only shows from 1401px up (was 1360px: 10px sideways scroll at 1366). */
@media (max-width: 1400px) {
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1180px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu { position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-menu); background: var(--ink); padding: 24px var(--gutter) 40px; overflow-y: auto; }
  .mobile-menu.is-open { display: block; }
  .mobile-menu a.m-link { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; text-transform: uppercase; }
  .mobile-menu a.m-link[aria-current="page"] { color: var(--red-bright); }
  .mobile-menu .btn-row { margin-top: 28px; }
}
@media (max-width: 1080px) {
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .howto, .flow { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .split, .feature, .contact-grid, .measure, .video-featured, .cta-band { grid-template-columns: 1fr; }
  .grid-3, .quotes, .videos { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .phases { grid-template-columns: 1fr; }
  .phase:not(:last-child)::after { top: auto; bottom: -15px; right: 50%; transform: translateX(50%) rotate(135deg); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .notes { grid-template-columns: 1fr; }
  .esu-flow { grid-template-columns: 1fr; }
  .esu-db { grid-column: auto; grid-template-columns: 1fr; margin-block: 14px; }
  .esu-node:not(:last-child)::after, .esu-db .esu-node:last-child::after { top: auto; bottom: -8px; right: 50%; width: 2px; height: 16px; }
  .esu-flow > .esu-node:last-child::after { display: none; }
  .hero::before { background: linear-gradient(180deg, rgba(var(--bg-rgb),.55) 0%, rgba(var(--bg-rgb),.88) 45%, rgba(var(--bg-rgb),1) 100%); }
  .hero { align-items: flex-end; }
}
@media (max-width: 600px) {
  :root { --header-h: 64px; }
  .products, .grid-2, .grid-3, .grid-4, .quotes, .videos, .bento, .howto, .flow, .hands, .gallery { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: auto; }
  .form, .check-grid { grid-template-columns: 1fr; }
  .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 56px 1fr; padding-right: 14px; }
  .step .who { grid-column: 2; justify-self: start; margin-top: -6px; }
  .step-body .icon { display: none; }
  .header-cta .btn-primary span { display: none; }
  .header-cta .btn-primary { width: 44px; min-height: 44px; padding: 0; }
  .fab-wa span { display: none; }
  .fab-wa { width: 56px; padding: 0; justify-content: center; }
  .btn-row .btn { flex: 1 1 100%; }
  .spec-table th { width: 44%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: 100%; }
  .marquee-track [aria-hidden="true"] { display: none; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Light theme — same brand (ink type, one red accent) on warm paper
   ========================================================= */
:root[data-theme="light"] {
  --ink: #f7f5f1;
  --ink-2: #efebe4;
  --card: #ffffff;
  --paper: #e9e4dc;
  --text: #0a0a0a;
  --text-2: #262626;
  --muted: #474747;
  --light: #646464;
  --red-bright: #b81f17;
  --red-glow: rgba(153, 25, 24, 0.28);
  --fill: rgba(0, 0, 0, 0.035);
  --fill-2: rgba(0, 0, 0, 0.065);
  --line: rgba(0, 0, 0, 0.10);
  --line-2: rgba(0, 0, 0, 0.24);
  --bg-rgb: 247, 245, 241;
  --bg2-rgb: 239, 235, 228;
  --door: #e6e0d6;
  --logo-filter: brightness(0);
  --wa-text: #1f4d2e;
  color-scheme: light;
}
:root[data-theme="light"] .card-icon { background: rgba(153,25,24,.08); border-color: rgba(153,25,24,.22); }
:root[data-theme="light"] .section-paper { background: var(--paper); }
:root[data-theme="light"] .hero::before { background: linear-gradient(90deg, rgba(var(--bg-rgb),.97) 0%, rgba(var(--bg-rgb),.9) 38%, rgba(var(--bg-rgb),.35) 72%, rgba(var(--bg-rgb),0) 100%), linear-gradient(0deg, rgba(var(--bg-rgb),1) 0%, rgba(var(--bg-rgb),0) 28%); }
:root[data-theme="light"] .phase-num { -webkit-text-stroke-color: var(--red); }
:root[data-theme="light"] .fab-wa { box-shadow: 0 10px 24px rgba(0,0,0,.18); }

/* theme toggle */
.theme-toggle { display: inline-flex; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; align-items: center; justify-content: center; color: var(--text); transition: border-color .2s ease, background-color .2s ease; }
.theme-toggle:hover { border-color: var(--text); background: var(--fill); }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.mobile-menu .theme-row { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 600; }

/* =========================================================
   Door opening direction illustration
   ========================================================= */
.direction { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; }
.direction-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; align-items: end; }
.direction figure { margin: 0; text-align: center; }
.direction svg { width: 100%; height: auto; }
.direction-row.front svg { max-width: 150px; margin-inline: auto; }
.direction figcaption { margin-top: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.direction figcaption b { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--red); color: #fff; font-family: var(--font-display); font-size: .8rem; }
.dd-line { stroke: var(--text); stroke-width: 2; }
.dd-room { fill: var(--fill-2); }
.dd-leaf { fill: var(--card); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.dd-thin { fill: none; stroke: var(--muted); stroke-width: 1.3; }
.dd-handle { fill: none; stroke: var(--red-bright); stroke-width: 2.6; stroke-linecap: round; }
.dd-frame { fill: var(--card); stroke: var(--text); stroke-width: 2; stroke-linejoin: round; }
.dd-arrow { fill: none; stroke: var(--red-bright); stroke-width: 3; stroke-linecap: round; }
.dd-arrow-head { fill: var(--red-bright); }
.dd-person { fill: var(--text); }
.dd-person .dd-back { fill: var(--muted); }
.dd-bag-strap { fill: none; stroke: var(--text); stroke-width: 2.2; }
.dd-text { fill: var(--muted); font: 600 12px var(--font-body); }
.dd-door { fill: var(--door); stroke: var(--muted); stroke-width: 3; }
.dd-mould { fill: none; stroke: var(--muted); stroke-width: 2.5; }
.dd-plate { fill: #0a0a0a; stroke: var(--red-bright); stroke-width: 1.5; }
.dd-plate-screen { fill: var(--red); }
.dd-lever { stroke: var(--red-bright); stroke-width: 6; stroke-linecap: round; }
.dd-knob { fill: var(--red-bright); }
@media (max-width: 860px) { .direction { grid-template-columns: 1fr; } }

/* =========================================================
   Lock-project showcase (clients page)
   ========================================================= */
.projects { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.project { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); grid-column: span 2; aspect-ratio: 4 / 3; }
.project.wide { grid-column: span 3; aspect-ratio: 16 / 10; }
.project img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover img { transform: scale(1.03); }
.project figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 20px 18px; background: linear-gradient(transparent, rgba(9,9,9,.88)); color: #fff; }
.project figcaption strong { display: block; font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .01em; font-size: 1.05rem; }
.project figcaption span { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: #d6d6d6; margin-top: 4px; }
.project figcaption .icon { width: 15px; height: 15px; color: #ff6b5e; }
@media (max-width: 860px) { .project, .project.wide { grid-column: span 3; aspect-ratio: 4 / 3; } }
@media (max-width: 600px) { .projects { grid-template-columns: 1fr; } .project, .project.wide { grid-column: auto; } }

/* =========================================================
   Discourage copying of product and project images
   ========================================================= */
img { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.protect { position: relative; }
.protect::after { content: ""; position: absolute; inset: 0; }
@media (max-width: 600px) { .header-cta > .theme-toggle { display: none; } }
@media (max-width: 860px) { .project:last-child { grid-column: span 6; aspect-ratio: 16 / 9; } }
@media (max-width: 560px) { .project, .project.wide, .project:last-child { grid-column: span 6; aspect-ratio: 4 / 3; } }

/* ---------- Ang Systems family (backlinks) ---------- */
.ang-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ang-card { display: flex; flex-direction: column; }
.ang-card p { font-size: .92rem; }
.ang-tag { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--red-bright); }
.ang-tag .icon { width: 14px; height: 14px; }
.footer-ang { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: .86rem; }
.footer-ang span { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--light); margin-right: 6px; }
.footer-ang a { color: var(--muted); padding: 4px 0; transition: color .2s ease; }
.footer-ang a:hover { color: var(--text); }

/* ---------- Blog ---------- */
.post-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: border-color .2s ease; }
.post-feature:hover { border-color: var(--red); }
.post-feature-media { min-height: 280px; }
.post-feature-media img { width: 100%; height: 100%; object-fit: cover; }
.post-feature-body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; justify-content: center; gap: 16px; }
.post-feature-body .h2 { font-size: clamp(1.4rem, 2.6vw, 2.1rem); }
.post-feature-body .eyebrow { align-self: flex-start; }
.post-meta { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--light); }
.post-meta .icon { width: 16px; height: 16px; color: var(--red-bright); }
.page-hero .post-meta { margin-top: 18px; color: var(--muted); }
.prose { max-width: 780px; }
.prose > p, .prose li { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; }
.prose > p + p { margin-top: 1em; }
.prose > .lead { font-size: 1.2rem; color: var(--text); margin-bottom: 1em; }
.prose h2 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.15; margin: 56px 0 14px; }
.prose h3 { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; font-size: 1.02rem; letter-spacing: .02em; margin: 32px 0 8px; }
.prose a:not(.btn) { color: var(--text); text-decoration: underline; text-decoration-color: var(--red-bright); text-underline-offset: 3px; text-decoration-thickness: 2px; }
.prose a:not(.btn):hover { color: var(--red-bright); }
.prose .measure-list, .prose .notes, .prose .faq { margin-top: 18px; }
.prose .notes + p, .prose .measure-list + p { margin-top: 18px; }
.prose .measure-list li { font-size: 1rem; line-height: 1.5; }
.prose-notes { grid-template-columns: 1fr; }
.prose-notes li { line-height: 1.6; }
.eco-flow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1080px) {
  .ang-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-flow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eco-flow .esu-node:nth-child(3)::after { display: none; }
}
@media (max-width: 760px) {
  .post-feature { grid-template-columns: 1fr; }
  .post-feature-media { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 560px) {
  .ang-grid { grid-template-columns: 1fr; }
  .eco-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eco-flow .esu-node:nth-child(3)::after { display: block; }
  .eco-flow .esu-node:nth-child(2n)::after { display: none; }
}


/* ---------- Interactive 3D ESU room ---------- */
.esu3d-head { margin: clamp(32px, 4vw, 48px) 0 0; }
.esu3d-head .h3 { margin-bottom: 6px; }
.esu3d {
  --e-floor: #4a3b31; --e-wall: #36312d; --e-wood: #6b4630; --e-frame: #4a3627; --e-door: #5a412f;
  --e-sheet: #ece7df; --e-blanket: #991918; --e-plate: #f1efea; --e-dark: #151515; --e-db: #c9c3ba;
  --e-ac: #f4f2ee; --e-lamp: #ddd5c8; --e-wire: #57514c; --e-on: #4ade80; --e-night: .5;
  display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; margin-top: 24px;
}
:root[data-theme="light"] .esu3d {
  --e-floor: #cbb49a; --e-wall: #f2ede6; --e-wood: #8b5e3c; --e-frame: #7a5a40; --e-door: #946a4a;
  --e-db: #d8d3cb; --e-wire: #a49d94; --e-on: #16a34a; --e-night: .32;
}
.esu3d-stage { position: relative; min-width: 0; border-radius: var(--r-lg); border: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 50% 45%, var(--fill-2), transparent 75%), var(--card); overflow: hidden; perspective: 1500px; padding: 56px 12px 64px; touch-action: pan-y; }
.esu3d-scene { transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transform-style: preserve-3d; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.esu3d-svg { display: block; width: 100%; height: auto; overflow: visible; animation: e-sway 11s ease-in-out infinite; }
.esu3d-stage:hover .esu3d-svg { animation-play-state: paused; }
@keyframes e-sway { 0%, 100% { transform: rotateY(-5deg) rotateX(2deg); } 50% { transform: rotateY(5deg) rotateX(-1deg); } }
.esu3d-svg polygon, .esu3d-svg path, .esu3d-svg ellipse { vector-effect: non-scaling-stroke; }
.esu3d .bx .f { fill: var(--m); stroke: rgba(0,0,0,.22); stroke-width: .6; }
.esu3d .sh-t { fill: #fff; opacity: .07; pointer-events: none; }
.esu3d .sh-r { fill: #000; opacity: .08; pointer-events: none; }
.esu3d .sh-l { fill: #000; opacity: .22; pointer-events: none; }
.esu3d .skirt { fill: #000; opacity: .18; }
.esu3d .rug { fill: var(--red); opacity: .28; }
.esu3d .wire { fill: none; stroke: var(--e-wire); stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.esu3d .flow { fill: none; stroke: var(--red-bright); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 3 9; opacity: 0; transition: opacity .45s ease; animation: e-flow .9s linear infinite; }
.esu3d .f-mains, .esu3d .f-l1 { opacity: .5; }
.esu3d.is-signal .f-l2, .esu3d.is-on .f-lights, .esu3d.is-on .f-ac, .esu3d.is-on .f-sockets { opacity: 1; }
@keyframes e-flow { to { stroke-dashoffset: -24; } }
.esu3d .tv-screen { fill: #0c0c0c; transition: fill .6s ease; }
.esu3d.is-on .tv-screen { fill: url(#e-screen); }
.esu3d .tv-glow { fill: url(#e-tv); opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.esu3d.is-on .tv-glow { opacity: 1; }
.esu3d .vent { fill: #000; opacity: .3; }
.esu3d .ac-led, .esu3d .esu-led { fill: #6b6b6b; transition: fill .3s ease; }
.esu3d.is-on .ac-led, .esu3d.is-card .esu-led { fill: var(--e-on); }
.esu3d .airflow { fill: none; stroke: #8fd0ff; stroke-width: 1.8; stroke-linecap: round; stroke-dasharray: 4 8; opacity: 0; transition: opacity .6s ease; animation: e-flow 1.1s linear infinite; }
.esu3d.is-on .airflow { opacity: .75; }
.esu3d .bulb { fill: #5d5d5d; transition: fill .4s ease; }
.esu3d.is-on .bulb { fill: #fff2d2; }
.esu3d .glow-cone { fill: url(#e-cone); }
.esu3d .glow-pool { fill: url(#e-pool); }
.esu3d .glows { opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.esu3d.is-on .glows { opacity: 1; }
.esu3d .night { fill: #04060c; opacity: var(--e-night); transition: opacity .9s ease; pointer-events: none; }
.esu3d.is-on .night { opacity: 0; }
.esu3d .db-inner { fill: #2a2a2a; }
.esu3d .din { fill: #8a8a8a; }
.esu3d .rccb, .esu3d .mcb { fill: #f6f6f4; stroke: #999; stroke-width: .5; }
.esu3d .rccb-t { fill: #1c1c1c; }
.esu3d .contactor { fill: #e4e0da; stroke: #999; stroke-width: .5; }
.esu3d .contactor-ind { fill: #7a7a7a; transition: fill .3s ease; }
.esu3d .contactor-plunger { fill: #3a3a3a; transition: fill .3s ease; }
.esu3d.is-on .contactor-ind { fill: var(--red-bright); }
.esu3d.is-on .contactor-plunger { fill: var(--e-on); }
.esu3d .card { fill: var(--red); stroke: #5c0f0e; stroke-width: .6; }
.esu3d .card-stripe { fill: #fff; opacity: .85; }
.esu3d .keycard { transform: translate(var(--out-x), var(--out-y)); transition: transform .9s cubic-bezier(.3, 1.25, .45, 1); }
.esu3d.is-card .keycard { transform: none; }
.esu3d .slot { fill: #111; }
.esu3d .esu-face { fill: #000; opacity: .06; }
.esu3d .card-chip { fill: #e8c46a; }
.esu3d .wash { fill: url(#e-wash); opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.esu3d.is-on .wash { opacity: 1; }
.esu3d .door { fill: var(--e-door); stroke: rgba(0,0,0,.3); stroke-width: .6; }
.esu3d .door-panel { fill: none; stroke: #000; stroke-opacity: .28; stroke-width: 1.2; }
.esu3d .lock-reader { fill: var(--red-bright); }
.esu3d .lever { stroke: #cfcfcf; stroke-width: 4; stroke-linecap: round; fill: none; }
/* focus mode: dim everything except the chosen part */
.esu3d .part { transition: opacity .35s ease; }
.esu3d[data-focus] .part { opacity: .22; }
.esu3d[data-focus="esu"] .part-esu, .esu3d[data-focus="db"] .part-db, .esu3d[data-focus="lights"] .part-lights,
.esu3d[data-focus="ac"] .part-ac, .esu3d[data-focus="sockets"] .part-sockets, .esu3d[data-focus="lock"] .part-lock { opacity: 1; }
/* hotspot labels */
.esu3d .hs { cursor: pointer; outline: none; }
.esu3d .hs line { stroke: var(--text); stroke-opacity: .45; stroke-width: 1; }
.esu3d .hs rect { fill: var(--ink); stroke: var(--line-2); stroke-width: 1; transition: fill .2s ease, stroke .2s ease; }
.esu3d .hs text { fill: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; pointer-events: none; }
.esu3d .hs-dot { fill: var(--red-bright); }
.esu3d .hs-ring { fill: none; stroke: var(--red-bright); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: e-ping 2.2s ease-out infinite; }
@keyframes e-ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }
.esu3d .hs:hover rect, .esu3d .hs:focus-visible rect, .esu3d .hs.is-active rect { fill: var(--red); stroke: var(--red-bright); }
.esu3d .hs:hover text, .esu3d .hs:focus-visible text, .esu3d .hs.is-active text { fill: #fff; }
.esu3d[data-focus] .hs:not(.is-active) { opacity: .55; }
/* overlays on the stage */
.esu3d-status { position: absolute; top: 16px; left: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(var(--bg-rgb), .8); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); backdrop-filter: blur(6px); }
.esu3d-status b { color: var(--text); font-family: var(--font-display); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; }
.esu3d-led { width: 9px; height: 9px; border-radius: 50%; background: #6b6b6b; transition: background .3s ease, box-shadow .3s ease; }
.esu3d.is-on .esu3d-led { background: var(--e-on); box-shadow: 0 0 10px var(--e-on); }
.esu3d-card-btn { position: absolute; left: 16px; bottom: 16px; }
.esu3d-card-btn .icon { width: 18px; height: 18px; }
/* side panel */
.esu3d-panel { display: flex; flex-direction: column; gap: 14px; padding: clamp(22px, 2.6vw, 32px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.esu3d-dots { display: flex; gap: 8px; }
.esu3d-dot { flex: 1; height: 6px; padding: 0; border: 0; border-radius: 6px; background: var(--fill-2); cursor: pointer; transition: background .3s ease; position: relative; }
.esu3d-dot::before { content: ""; position: absolute; inset: -10px 0; }
.esu3d-dot.is-done { background: var(--red); }
.esu3d-dot.is-current { background: var(--red-bright); }
.esu3d-progress { height: 2px; border-radius: 2px; background: var(--fill); overflow: hidden; }
.esu3d-progress i { display: block; height: 100%; width: 0; background: var(--red-bright); }
@keyframes e-prog { from { width: 0; } to { width: 100%; } }
.esu3d-kicker { font-family: var(--font-display); font-weight: 700; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--red-bright); margin-top: 6px; }
.esu3d-panel .h3 { margin: 0; }
.esu3d-text { color: var(--text-2); min-height: 5.2em; }
.esu3d-controls { display: flex; align-items: center; gap: 10px; }
.esu3d-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.esu3d-btn:hover { border-color: var(--red-bright); }
.esu3d-btn[data-prev] .icon { transform: rotate(180deg); }
.esu3d-play { background: var(--red); border-color: var(--red); color: #fff; }
.esu3d-play .icon { display: none; width: 16px; height: 16px; margin-left: 2px; }
.esu3d.is-paused .esu3d-play .icon { display: block; }
.esu3d.is-paused .esu3d-play .i-pause { display: none; }
.i-pause { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.esu3d-mode { margin-left: 4px; font-size: .8rem; color: var(--light); }
.esu3d-parts { display: none; flex-wrap: wrap; gap: 8px; }
.esu3d-parts button { padding: 9px 14px; min-height: 40px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--fill); color: var(--text); font: 600 .8rem var(--font-body); cursor: pointer; }
.esu3d-parts button.is-active { background: var(--red); border-color: var(--red); color: #fff; }
.esu3d-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--light); }
.esu3d-hint .icon { flex: none; width: 16px; height: 16px; margin-top: 2px; color: var(--red-bright); }
@media (max-width: 1080px) { .esu3d { grid-template-columns: 1fr; } .esu3d-text { min-height: 0; } }
@media (max-width: 760px) {
  .esu3d-stage { padding: 52px 0 66px; }
  .esu3d .hs rect, .esu3d .hs text, .esu3d .hs line { display: none; }
  .esu3d .hs-dot { r: 7px; }
  .esu3d-parts { display: flex; }
}
@media (prefers-reduced-motion: reduce) { .esu3d-svg { animation: none; } .esu3d .flow, .esu3d .airflow { animation: none; stroke-dasharray: none; } }

/* Sales flow table (mirrors the original order sheet) */
.sf-table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; background: var(--card); font-size: .94rem; }
.sf-table thead th { padding: 12px 16px; text-align: left; font-family: var(--font-display); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--light); background: var(--fill); border-bottom: 1px solid var(--line-2); }
.sf-table thead th:first-child { text-align: center; }
.sf-table thead th:last-child { text-align: center; }
.sf-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.sf-table tr:last-child td { border-bottom: 0; }
.sf-table tbody tr:not(.sft-phase) { transition: background .2s ease; }
.sf-table tbody tr:not(.sft-phase):hover { background: var(--fill); }
@media (min-width: 1081px) {
  .sf-table { font-size: 1rem; }
  .sf-table td { padding: 18px 24px; }
  .sf-table thead th, .sf-table .sft-phase th { padding-inline: 24px; }
  .sf-table .sft-num { width: 80px; font-size: 1.05rem; }
  .sf-table .sft-who { min-width: 200px; font-size: .8rem; }
  .sf-table .sft-in strong { display: inline; }
  .sf-table .sft-in span { display: inline; margin: 0 0 0 10px; font-size: .94rem; }
}
.sf-table .sft-phase th { padding: 9px 16px; text-align: left; font-family: var(--font-display); font-weight: 800; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--text); background: var(--fill-2); border-bottom: 1px solid var(--line); }
.sf-table .sft-phase th span { color: var(--red-bright); margin-right: 8px; }
.sft-num { width: 52px; text-align: center; font-family: var(--font-display); font-weight: 800; color: var(--muted); border-right: 1px solid var(--line); }
.sft-in { display: flex; gap: 14px; align-items: flex-start; }
.sf-note { font-style: normal; font-size: .82rem; font-weight: 600; color: var(--red-bright); }
.sft-step .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.sft-us .sft-step .icon { color: var(--red-bright); }
.sft-hotel .sft-step .icon { color: var(--text); }
.sft-step strong { display: block; font-weight: 700; color: var(--text); }
.sft-step span { display: block; color: var(--muted); font-size: .88rem; line-height: 1.5; margin-top: 2px; }
.sft-who { width: 1%; white-space: nowrap; text-align: center; font-family: var(--font-display); font-weight: 800; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; border-left: 1px solid var(--line); }
.sft-us .sft-who { color: var(--red-bright); }
.sft-badge { display: inline-flex; align-items: center; gap: 10px; justify-content: center; }
.sft-badge img { width: 22px; height: 22px; border-radius: 5px; flex: none; }
.sft-hotel-ic { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; border: 1px solid var(--line-2); color: var(--text); flex: none; }
.sft-hotel-ic .icon { width: 14px; height: 14px; }
.sft-hotel .sft-who { color: var(--muted); }
@media (max-width: 480px) {
  .sf-table td { padding: 12px 10px; }
  .sft-num { width: 36px; }
  .sft-in { gap: 10px; }
  .sft-step .icon { width: 18px; height: 18px; }
  .sft-who { font-size: .6rem; white-space: normal; width: 64px; }
  .sft-badge { flex-direction: column; align-items: center; gap: 5px; text-align: center; }
}

/* ---------- Star shimmer + silver button shine (matches angsystems.com) ---------- */
:root { --gold: #f6b300; --gold-hi: #fff4c4; --shine: rgba(255,255,255,.42); }
:root[data-theme="light"] { --gold: #b47b00; --gold-hi: #e8c46a; }
.stars { letter-spacing: 2px; font-size: 1.05rem; line-height: 1; }
.stars-shine {
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 40%, var(--gold-hi) 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: star-shimmer var(--star-dur, 6s) ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}
@keyframes star-shimmer { 0% { background-position: 160% 0; } 45%, 100% { background-position: -60% 0; } }

.btn-shine { position: relative; overflow: hidden; isolation: isolate; }
.btn-shine::after {
  content: ''; position: absolute; top: -20%; bottom: -20%; left: 0; width: 70%;
  transform: translateX(-170%) skewX(-16deg);
  background: linear-gradient(100deg, transparent 0%,
    color-mix(in srgb, var(--shine) 12%, transparent) 28%,
    color-mix(in srgb, var(--shine) 52%, transparent) 42%,
    var(--shine) 50%,
    color-mix(in srgb, var(--shine) 52%, transparent) 58%,
    color-mix(in srgb, var(--shine) 12%, transparent) 72%, transparent 100%);
  filter: blur(2px); pointer-events: none; z-index: 1;
  animation: btn-shine 8s ease-in-out infinite;
}
@keyframes btn-shine { 0% { transform: translateX(-170%) skewX(-16deg); } 38%, 100% { transform: translateX(250%) skewX(-16deg); } }

@media (prefers-reduced-motion: reduce) {
  .btn-shine::after { animation: none; display: none; }
  .stars-shine { animation: none; background: none; -webkit-text-fill-color: var(--gold); color: var(--gold); }
}

/* Scene photos in product cards fill the frame */
.product-media.is-photo { padding: 0; overflow: hidden; }
.product-media.is-photo img { object-fit: cover; mix-blend-mode: normal; }

/* What each product is, under its AS name */
.product-body > p.product-alt { margin: -4px 0 12px; color: var(--text-2); font-weight: 600; font-size: .92rem; }

/* ---------- Graphic line icons (48 grid, brand style: 1.8px stroke, round ends, white + red) ---------- */
.gicon { display: block; width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }
.gicon * { vector-effect: non-scaling-stroke; }
.gicon .ac { stroke: var(--red-bright); }
.gicon .acf { fill: var(--red-bright); stroke: none; }

/* ---------- Lock-system benefits (blog page) ---------- */
.benefits { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.benefit .h3 { margin: 20px 0 8px; }
@media (max-width: 1080px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) {
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .benefit { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .benefit .gicon { width: 44px; height: 44px; grid-row: span 2; }
  .benefit .h3 { margin: 2px 0 6px; }
}

/* ---------- Featured review (clients page) ---------- */
.quote-wide { grid-column: 1 / -1; }
.quote-wide blockquote { font-size: clamp(1.15rem, 1.9vw, 1.45rem); line-height: 1.45; max-width: 56ch; }

/* ---------- ESU wiring chart (order guide): switch → DB box (RCCB, contactor) → lights → air-con ---------- */
.ec { position: relative; overflow: hidden; margin: clamp(32px, 4vw, 56px) 0 0; padding: clamp(22px, 3vw, 40px); background: var(--ink); border: 1px solid var(--line); border-radius: var(--r-lg); }
.ec-mark { position: absolute; z-index: 0; right: -6%; bottom: -30%; width: min(46%, 460px); height: auto; color: var(--text); opacity: .045; pointer-events: none; }
.ec-head { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 3.5vw, 44px); }
.ec-head .h3 { margin: 14px 0 0; }
.ec-logo { flex: none; width: clamp(150px, 15vw, 200px); height: auto; color: var(--text); opacity: .85; }
.ec-logo .lg-ang { fill: var(--red-bright); }
.ec-logo .lg-sys { fill: currentColor; }
.ec-flow { --tile: 88px; --pad: 22px; position: relative; z-index: 1; display: flex; align-items: flex-start; gap: 12px; }
.ec-flow::before, .ec-flow::after { content: ""; position: absolute; z-index: -1; left: 10%; right: 10%; top: calc(var(--pad) + 1.5px + var(--tile) / 2 - 1px); height: 2px; border-radius: 2px; }
.ec-flow::before { background: var(--line-2); }
.ec-flow::after { background: repeating-linear-gradient(90deg, var(--red-bright) 0 10px, transparent 10px 26px); animation: ec-current 1.1s linear infinite; }
@keyframes ec-current { to { background-position: 26px 0; } }
@keyframes ec-current-v { to { background-position: 0 26px; } }
.ec-node { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: calc(var(--pad) + 1.5px); }
.ec-tile { display: grid; place-items: center; width: var(--tile); height: var(--tile); margin-bottom: 14px; border-radius: 22px; background: var(--ink-2); border: 1px solid var(--line-2); }
.ec-tile .gicon { width: 54px; height: 54px; }
.ec-node strong { font-family: var(--font-display); font-weight: 800; font-size: .95rem; line-height: 1.25; }
.ec-node span { margin-top: 6px; max-width: 18ch; font-size: .85rem; line-height: 1.4; color: var(--muted); }
.ec-db { position: relative; flex: 2 1 0; min-width: 0; display: flex; gap: 12px; padding: 0 var(--pad) var(--pad); border: 1.5px dashed var(--line-2); border-radius: 20px; }
.ec-db .ec-node { padding-top: var(--pad); }
.ec-db-label { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); padding: 2px 12px; background: var(--ink); font-family: var(--font-display); font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
@media (max-width: 1080px) { .ec-flow { --tile: 76px; --pad: 18px; } .ec-tile .gicon { width: 46px; height: 46px; } }
@media (max-width: 760px) {
  .ec-flow { --tile: 64px; --pad: 16px; flex-direction: column; align-items: stretch; gap: 14px; }
  .ec-flow::before, .ec-flow::after { left: calc(var(--pad) + 1.5px + var(--tile) / 2 - 1px); right: auto; top: calc(var(--tile) / 2); bottom: calc(var(--tile) / 2); width: 2px; height: auto; }
  .ec-flow::after { background: repeating-linear-gradient(180deg, var(--red-bright) 0 10px, transparent 10px 26px); animation-name: ec-current-v; }
  .ec-node { display: grid; grid-template-columns: var(--tile) 1fr; column-gap: 16px; align-items: center; text-align: left; padding: 0 0 0 calc(var(--pad) + 1.5px); }
  .ec-tile { grid-row: span 2; margin: 0; border-radius: 18px; }
  .ec-tile .gicon { width: 40px; height: 40px; }
  .ec-node strong { align-self: end; }
  .ec-node span { align-self: start; max-width: none; margin-top: 2px; }
  .ec-db { flex-direction: column; gap: 14px; padding: var(--pad) var(--pad) var(--pad) 0; }
  .ec-db .ec-node { padding: 0 0 0 var(--pad); }
  .ec-db-label { left: calc(var(--pad) + var(--tile) + 16px); transform: translateY(-50%); padding: 2px 8px; }
}
@media (prefers-reduced-motion: reduce) { .ec-flow::after { animation: none; } }
