/* ==========================================================================
   hz.css — hzagzoug.com design system (2026)
   Tokens, chrome (header / menu / footer), home sections, and a re-theme layer
   that maps the old site's variables onto the new tokens so older inner pages
   (dashboard, admin, auth, projects) pick up the same palette and type.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1320px;
  --r-s: 10px; --r-m: 18px; --r-l: 28px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-o: cubic-bezier(.16, 1, .3, 1);
  /* English pages: an Arabic-only Thmanyah face first, so Arabic words inside English text get Thmanyah */
  --f-display: var(--nf-display-ar-only), var(--nf-display-en), system-ui, sans-serif;
  --f-body: var(--nf-body-ar-only), var(--nf-body-en), system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: var(--nf-mono), var(--nf-body-ar), ui-monospace, "SF Mono", Menlo, monospace;
  --head-h: 72px;
}
html[dir="rtl"] {
  --f-display: var(--nf-display-ar), var(--nf-body-ar), system-ui, sans-serif;
  --f-body: var(--nf-body-ar), system-ui, -apple-system, "Segoe UI", sans-serif;
}
html[data-theme="dark"], html:not([data-theme]) {
  color-scheme: dark;
  --bg: #050404; --bg-2: #0d0b0a; --card: #110e0c; --card-2: #181411;
  --line: rgba(243,235,223,.09); --line-2: rgba(243,235,223,.16);
  --fg: #f3ebdf; --fg-2: #b0a79b; --fg-3: #71685e;
  --acc: #e8833a; --acc-2: #ffb36b; --acc-ink: #1a0d04; --acc-soft: rgba(232,131,58,.13);
  --warm: #ffb36b; --danger: #ff6b6b;
  --glass: rgba(5,4,4,.6);
  --shadow: 0 30px 80px -30px rgba(0,0,0,.7);
  --bg-rgb: 5,4,4; --pane-rgb: 12,10,9; --pane-solid: #0d0b0a; --pane-solid-2: #141110;
  --acc2-rgb: 255,179,107; --ink-rgb: 255,255,255; --vign: rgba(0,0,0,.75); --hero-1: #1a120e; --hero-2: #070504;
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f5efe6; --bg-2: #ece4d8; --card: #fbf8f3; --card-2: #f2ebe1;
  --line: rgba(23,17,12,.09); --line-2: rgba(23,17,12,.17);
  --fg: #17110c; --fg-2: #5b5148; --fg-3: #8f8478;
  --acc: #b4561c; --acc-2: #8a3b12; --acc-ink: #ffffff; --acc-soft: rgba(180,86,28,.1);
  --warm: #b4561c; --danger: #d64545;
  --glass: rgba(245,239,230,.75);
  --shadow: 0 30px 80px -40px rgba(30,25,10,.35);
  --bg-rgb: 245,239,230; --pane-rgb: 251,248,243; --pane-solid: #fbf8f3; --pane-solid-2: #f2ebe1;
  --acc2-rgb: 138,59,18; --ink-rgb: 23,17,12; --vign: rgba(110,80,50,.16); --hero-1: #fbf3e8; --hero-2: #efe4d4;
}

/* 3D pages follow the chosen theme (light mode added 2026-11-26). */

/* ---------- re-theme layer for the old stylesheets ---------- */
html[data-theme] {
  --primary-color: var(--acc); --secondary-color: var(--acc-2); --accent-color: var(--warm);
  --bg-dark: var(--bg); --bg-card: var(--card); --text-primary: var(--fg); --text-secondary: var(--fg-2);
  --border-color: var(--line-2); --bg-input: var(--bg-2); --bg-footer: var(--bg-2);
  --shadow-color: rgba(0,0,0,.25);
  font-size: 100%;
  font-size-adjust: none;
}
html[dir="rtl"] { line-height: 1.7; }
html body {
  font-family: var(--f-body); background: var(--bg); color: var(--fg);
  direction: inherit; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* rtl.css forces Scheherazade with !important on many tags; win it back */
html[dir="rtl"] body :where(a, li, span, div, button, input, textarea, label, select, p, td, th, h1, h2, h3, h4, h5, h6, small, strong, b, em, summary) {
  font-family: var(--f-body) !important;
}
html[dir="rtl"] body :is(h1, h2, h3, .hz-d, .hz-d *, .hz-logo b, .hz-menu ol a, .hz-marq span, .v-phone .ttl, .hz-svc-row .pr):not(.hz-mono) { font-family: var(--f-display) !important; }
html[dir] body :is(.hz-mono, .hz-mono *, .v-api, .v-api *, .v-ledger, .v-ledger *, code, kbd, pre) { font-family: var(--f-mono) !important; }
body::before, body::after, .bg-fixed, #site-stars { display: none !important; }
::selection { background: var(--acc); color: var(--acc-ink); }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.section-title {
  font-family: var(--f-display); font-weight: 700; letter-spacing: -.02em;
  background: none; -webkit-text-fill-color: currentColor; color: var(--fg);
}
html[dir="rtl"] .section-title { letter-spacing: 0; }
.cta-btn, .submit-btn, .btn-primary {
  background: var(--acc) !important; color: var(--acc-ink) !important; border-radius: 12px !important;
  box-shadow: none !important;
}
.service-card, .card, .course-card, .project-card, .dashboard-card, .auth-box, .auth-container, .contact-form, .contact-info, .info-card {
  border-color: var(--line) !important;
}
main, .main-content { flex: 1; }
.hz-page { padding-top: calc(var(--head-h) + 24px); }

/* ---------- primitives ---------- */
.hz-wrap { width: min(var(--maxw), 100% - 2 * var(--gut)); margin-inline: auto; }
.hz-mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
html[dir="rtl"] :is(.hz-mono, .hz-mono *, .hz-foot h4, .hz-aside h4, .hz-field label, .hz-svc-row .pr small, .v-phone .chk small, .hz-card .no) { letter-spacing: 0 !important; }
.hz-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--acc); }
.hz-eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.hz-h2 {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(36px, 5.6vw, 84px);
  line-height: .98; letter-spacing: -.035em; margin: 18px 0 0; color: var(--fg); text-wrap: balance;
}
html[dir="rtl"] .hz-h2 { line-height: 1.2; letter-spacing: 0; font-weight: 700; }
.hz-h2 .dim { color: var(--fg-3); }
.hz-lead { font-size: clamp(17px, 1.45vw, 21px); color: var(--fg-2); max-width: 58ch; line-height: 1.6; text-wrap: pretty; }
.hz-sec { padding-block: clamp(90px, 13vw, 180px); position: relative; }
.hz-sec-head { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 24px; margin-bottom: clamp(40px, 6vw, 80px); }
.hz-sec-head .hz-lead { margin: 0; }

.hz-btn {
  --b: var(--fg); position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding-inline: 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  border: 1px solid var(--line-2); color: var(--fg); background: transparent; cursor: pointer;
  transition: transform .5s var(--ease-o), background .3s, border-color .3s, color .3s; isolation: isolate; overflow: hidden;
  text-decoration: none; white-space: nowrap;
}
.hz-btn:hover { color: var(--fg); border-color: var(--fg-3); }
.hz-btn--acc { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.hz-btn--acc:hover { color: var(--acc-ink); background: var(--acc-2); border-color: var(--acc-2); box-shadow: 0 10px 50px -10px var(--acc); }
html[data-theme="light"] .hz-btn--acc:hover { color: #fff; background: var(--acc); border-color: var(--acc); }
.hz-btn .ar { transition: transform .45s var(--ease-o); display: inline-block; }
.hz-btn:hover .ar { transform: translateX(4px); }
html[dir="rtl"] .hz-btn .ar { transform: scaleX(-1); }
html[dir="rtl"] .hz-btn:hover .ar { transform: scaleX(-1) translateX(4px); }
.hz-btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.hz-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-2); white-space: nowrap; background: var(--bg-2); border-radius: 8px;
}
.hz-dot { width: 8px; height: 8px; border-radius: 50%; background: #5ee39a; --acc: #5ee39a; box-shadow: 0 0 0 0 var(--acc); animation: hzPulse 2.4s infinite; flex: none; }
@keyframes hzPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 10px transparent; } }

/* reveal on scroll (only when scripts run) */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease-o), transform 1.1s var(--ease-o); transition-delay: calc(var(--i, 0) * 80ms); }
  .rv.in { opacity: 1; transform: none; }
  .rv-l > * { display: inline-block; opacity: 0; transform: translateY(105%) rotate(2deg); transition: transform 1.1s var(--ease-o), opacity .8s; transition-delay: calc(var(--i, 0) * 90ms + 150ms); }
  .rv-l.in > * { opacity: 1; transform: none; }
}

/* ---------- header ---------- */
.hz-head {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--head-h);
  transition: background .4s, border-color .4s, transform .5s var(--ease-o); border-bottom: 1px solid transparent;
}
.hz-head.scrolled { background: var(--glass); backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px); border-bottom-color: var(--line); }
.hz-head.hide { transform: translateY(-100%); }
.hz-head .hz-wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.hz-logo { display: flex; align-items: center; gap: 12px; color: var(--fg); text-decoration: none; flex: none; }
.hz-logo:hover { color: var(--fg); }
html body .hz-mark {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, #1b1714, #0b0908); color: #ffb36b; border: 1px solid rgba(255,179,107,.38);
  box-shadow: 0 0 24px rgba(232,131,58,.22), inset 0 1px 0 rgba(255,255,255,.06);
  font-family: var(--nf-display-en), sans-serif !important; font-weight: 800; font-size: 14px; letter-spacing: -.03em;
  position: relative; overflow: hidden;
}
/* the ZG symbol in the tile: copper with a sheen on dark, deep copper on a cream tile in light */
.hz-mark .hz-zg { width: 68%; height: auto; display: block; filter: drop-shadow(0 0 6px rgba(232,131,58,.45)); }
.hz-zg .s0 { stop-color: #ffd4a3; } .hz-zg .s1 { stop-color: #ffb36b; } .hz-zg .s2 { stop-color: #e8833a; } .hz-zg .s3 { stop-color: #9a4214; }
.hz-zg .h0 { stop-color: #fff6ea; stop-opacity: .42; } .hz-zg .h1 { stop-color: #fff6ea; stop-opacity: 0; }
html[data-theme="light"] body .hz-mark { background: linear-gradient(145deg, #fbf5ec, #ece3d6); border-color: rgba(180,86,28,.28); box-shadow: 0 6px 18px rgba(110,80,50,.14), inset 0 1px 0 rgba(255,255,255,.8); }
html[data-theme="light"] .hz-mark .hz-zg { filter: drop-shadow(0 2px 3px rgba(110,60,20,.25)); }
html[data-theme="light"] .hz-zg .s0 { stop-color: #d9772f; } html[data-theme="light"] .hz-zg .s1 { stop-color: #c2611f; }
html[data-theme="light"] .hz-zg .s2 { stop-color: #b4561c; } html[data-theme="light"] .hz-zg .s3 { stop-color: #7a300d; }
.hz-logo b { display: block; font-family: var(--f-display); font-size: 15px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.hz-logo small { display: block; font-size: 11.5px; font-weight: 600; color: var(--acc-2); line-height: 1.2; margin-top: 2px; }
html[data-theme="light"] .hz-logo small { color: var(--acc); }
.hz-status { display: flex; align-items: center; gap: 22px; margin-inline-start: 18px; color: var(--fg-2); font-size: 13px; }
.hz-status > span { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; }
.hz-status .t { font-variant-numeric: tabular-nums; color: var(--fg); }
.hz-nav { margin-inline-start: auto; display: flex; align-items: center; gap: 4px; }
.hz-nav a.l {
  white-space: nowrap; position: relative; padding: 8px 12px; color: var(--fg-2); font-size: 14px; font-weight: 500; text-decoration: none; border-radius: 999px;
  transition: color .25s, background .25s;
}
.hz-nav a.l:hover { color: var(--fg); background: var(--line); }
.hz-nav a.l.on { color: var(--fg); }
.hz-nav a.l.on::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--acc); }
.hz-tools { display: flex; align-items: center; gap: 8px; margin-inline-start: 8px; }
.hz-ib {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2);
  background: transparent; color: var(--fg); cursor: pointer; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background .25s, border-color .25s, transform .4s var(--ease-o);
}
.hz-ib:hover { background: var(--line); color: var(--fg); }
.hz-ib .lang { font-family: var(--f-mono) !important; font-size: 12px; }
html[dir="ltr"] .hz-ib .lang { font-family: var(--nf-body-ar), sans-serif !important; font-size: 15px; }
.hz-ib .sun { display: none; }
html[data-theme="light"] .hz-ib .sun { display: block; }
html[data-theme="light"] .hz-ib .moon { display: none; }
.hz-burger { display: none; place-content: center; }
.hz-burger span { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease-o), opacity .3s; }
.hz-burger span + span { margin-top: 5px; }
html.menu-open .hz-burger span:first-child { transform: translateY(3.3px) rotate(45deg); }
html.menu-open .hz-burger span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* account dropdown (details/summary, no JS needed) */
.hz-acct { position: relative; }
.hz-acct > summary { list-style: none; }
.hz-acct > summary::-webkit-details-marker { display: none; }
.hz-acct .pop {
  position: absolute; inset-inline-end: 0; top: calc(100% + 10px); min-width: 230px; padding: 8px;
  background: var(--card); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow);
  animation: hzPop .35s var(--ease-o);
}
.hz-acct .pop .who { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.hz-acct .pop .who b { display: block; font-size: 14px; }
.hz-acct .pop .who small { color: var(--fg-3); font-size: 12px; }
.hz-acct .pop a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--fg-2); font-size: 14px; text-decoration: none; }
.hz-acct .pop a:hover { background: var(--line); color: var(--fg); }
.hz-acct .pop a i { width: 16px; color: var(--fg-3); }
@keyframes hzPop { from { opacity: 0; transform: translateY(-6px) scale(.98); } }

/* full-screen menu */
.hz-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg); padding: calc(var(--head-h) + 24px) var(--gut) 32px;
  display: flex; flex-direction: column; gap: 28px; overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .7s var(--ease-o), visibility 0s .7s;
}
html.menu-open .hz-menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-o); }
html.menu-open { overflow: hidden; }
.hz-menu ol { list-style: none; margin: 0; padding: 0; counter-reset: m; }
.hz-menu ol li { counter-increment: m; border-bottom: 1px solid var(--line); overflow: hidden; }
.hz-menu ol a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0; color: var(--fg); text-decoration: none;
  font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 8vw, 56px); line-height: 1.1; letter-spacing: -.03em;
  transform: translateY(100%); transition: transform .8s var(--ease-o), color .25s;
}
html[dir="rtl"] .hz-menu ol a { letter-spacing: 0; }
.hz-menu ol a::before { content: "0" counter(m); font: 500 12px var(--f-mono); color: var(--fg-3); letter-spacing: 0; }
.hz-menu ol a:hover, .hz-menu ol a.on { color: var(--acc); }
/* one-line hint under a menu item that needs explaining (FixLang) */
.hz-menu ol a { flex-wrap: wrap; }
html body .hz-menu ol a .hint { flex-basis: 100%; padding-inline-start: 36px; font: 400 14px/1.4 var(--f-body) !important; letter-spacing: 0; color: var(--fg-3); }
html.menu-open .hz-menu ol a { transform: none; }
html.menu-open .hz-menu ol li:nth-child(2) a { transition-delay: .04s; }
html.menu-open .hz-menu ol li:nth-child(3) a { transition-delay: .08s; }
html.menu-open .hz-menu ol li:nth-child(4) a { transition-delay: .12s; }
html.menu-open .hz-menu ol li:nth-child(5) a { transition-delay: .16s; }
html.menu-open .hz-menu ol li:nth-child(6) a { transition-delay: .2s; }
html.menu-open .hz-menu ol li:nth-child(7) a { transition-delay: .24s; }
html.menu-open .hz-menu ol li:nth-child(8) a { transition-delay: .28s; }
.hz-menu .sub { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-menu .cur { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 18px 0; font-size: 13px; color: var(--fg-3); }
.hz-menu .cur a { padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--fg-2); }
.hz-menu .cur a.on { border-color: var(--acc); color: var(--fg); }
.hz-menu .foot { margin-top: auto; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--fg-3); font-size: 13px; }
.hz-menu .foot a { color: var(--fg-2); }

.hz-tools .hz-btn--sm { background: rgba(232,131,58,.08); border-color: color-mix(in srgb, var(--acc) 50%, transparent); color: var(--acc-2); }
html[data-theme="light"] .hz-tools .hz-btn--sm { color: var(--acc); }
.hz-tools .hz-btn--sm:hover { background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 40px -6px var(--acc); }
@media (max-width: 1320px) { .hz-status > span:first-child { display: none; } }
@media (max-width: 1180px) {
  .hz-nav a.l, .hz-acct { display: none; }
  .hz-burger { display: grid; }
}
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hz-status { display: none; } }
@media (max-width: 560px) { .hz-tools .hz-btn { display: none; } .hz-logo small { display: none; } .hz-head .hz-wrap { gap: 8px; } .hz-logo { flex: 0 1 auto; min-width: 0; } .hz-logo > * { min-width: 0; } .hz-logo b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* ---------- footer ---------- */
.hz-foot { border-top: 1px solid var(--line); padding: 72px 0 28px; margin-top: auto; position: relative; overflow: hidden; background: var(--bg); }
.hz-foot .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.hz-foot h4 { font: 500 11.5px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin: 0 0 16px; }
.hz-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.hz-foot a { color: var(--fg-2); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.hz-foot a:hover { color: var(--acc); }
.hz-foot .about p { color: var(--fg-2); max-width: 36ch; margin: 14px 0 0; font-size: 14.5px; }
html body .hz-word {
  display: block; margin: 64px 0 18px; font-family: var(--nf-display-en), sans-serif !important; font-weight: 800;
  font-size: clamp(64px, 17.5vw, 290px); line-height: .78; letter-spacing: -.06em; text-align: center; white-space: nowrap;
  color: transparent; -webkit-text-stroke: 1px var(--line-2); user-select: none; direction: ltr;
  background: linear-gradient(90deg, var(--acc), var(--fg) 60%); -webkit-background-clip: text; background-clip: text;
  background-size: calc(var(--fill, 0) * 100%) 100%; background-repeat: no-repeat; transition: background-size .12s linear;
} /* --fill (0 to 1) follows the scroll: hz.js */
.hz-foot .bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid var(--line); color: var(--fg-3); font-size: 12.5px; }
.hz-foot .bar a { font-size: 12.5px; color: var(--fg-3); }
@media (max-width: 860px) { .hz-foot .cols { grid-template-columns: 1fr 1fr; } .hz-foot .about { grid-column: 1 / -1; } }

/* ==========================================================================
   HOME
   ========================================================================== */

/* hero */
.hz-hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: calc(var(--head-h) + 4vh); overflow: hidden; isolation: isolate; }
.hz-hero::before { /* soft light from above */
  content: ""; position: absolute; inset: -20% -10% auto; height: 80%; z-index: -2; pointer-events: none;
  background: radial-gradient(50% 60% at 70% 20%, var(--acc-soft), transparent 70%);
}
html[dir="rtl"] .hz-hero::before { background: radial-gradient(50% 60% at 30% 20%, var(--acc-soft), transparent 70%); }
.hz-grid-bg { position: absolute; inset: 0; z-index: -3; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%); -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hz-hero .hz-wrap { flex: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 60px); }
.hz-hero h1 {
  font-family: var(--f-display); font-weight: 800; margin: 22px 0 0; color: var(--fg);
  font-size: clamp(50px, 8.4vw, 148px); line-height: .9; letter-spacing: -.055em;
}
html[dir="rtl"] .hz-hero h1 { font-size: clamp(44px, 7vw, 116px); line-height: 1.18; letter-spacing: -.01em; font-weight: 800; }
.hz-hero h1 .ln { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hz-hero h1 .ln > span { display: inline-block; }
.hz-hero h1 .acc { color: var(--acc); position: relative; }
.hz-hero h1 .acc svg { position: absolute; inset-inline: -2%; bottom: -.04em; width: 104%; height: .22em; overflow: visible; }
.hz-hero h1 .acc path { fill: none; stroke: var(--acc); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: hzDraw 1.6s 1.2s var(--ease-o) forwards; }
@keyframes hzDraw { to { stroke-dashoffset: 0; } }
.hz-hero .hz-lead { margin: 28px 0 0; }
.hz-hero .lead b { color: var(--fg); font-weight: 600; }
.hz-hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hz-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; color: var(--fg-3); }
.hz-hero .meta span { display: inline-flex; align-items: center; gap: 8px; }
.hz-hero .meta span + span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--fg-3); margin-inline-end: 14px; }
.hz-stage { position: relative; aspect-ratio: 1 / 1; width: 100%; max-height: 74vh; justify-self: center; }
.hz-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hz-stage .cap { position: absolute; inset-inline-start: 0; bottom: 2%; color: var(--fg-3); display: flex; gap: 10px; align-items: center; }
.hz-stage .cap b { color: var(--acc); font-weight: 500; }
.hz-hero .scroll { display: flex; justify-content: space-between; align-items: center; padding-block: 26px; color: var(--fg-3); border-top: 1px solid var(--line); margin-top: 28px; }
.hz-hero .scroll .m { display: inline-flex; gap: 10px; align-items: center; }
.hz-hero .scroll .m i { display: block; width: 1px; height: 26px; background: linear-gradient(var(--fg-3), transparent); animation: hzScroll 2s infinite var(--ease); transform-origin: top; }
@keyframes hzScroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 980px) {
  .hz-hero .hz-wrap { grid-template-columns: 1fr; }
  .hz-stage { width: min(100%, 520px); margin: 18px auto 0; }
  .hz-stage .cap { inset-inline: 0; justify-content: center; bottom: -4px; }
}

/* marquee */
.hz-marq { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; display: grid; gap: 14px; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hz-marq .row { display: flex; width: max-content; animation: hzMarq 48s linear infinite; }
.hz-marq .row.r { animation-direction: reverse; animation-duration: 56s; }
.hz-marq:hover .row { animation-play-state: paused; }
.hz-marq span { display: inline-flex; align-items: center; gap: 28px; padding-inline-end: 28px; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 2.6vw, 38px); color: var(--fg-2); letter-spacing: -.02em; white-space: nowrap; }
html body .hz-marq .row.r span { color: var(--fg-3); font-family: var(--f-mono) !important; font-size: clamp(14px, 1.3vw, 18px); font-weight: 400; letter-spacing: .04em; }
.hz-marq span::after { content: "✦"; font-size: .5em; color: var(--acc); }
@keyframes hzMarq { to { transform: translateX(-50%); } }

/* stats */
.hz-stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.hz-stat { padding: clamp(28px, 4vw, 54px) clamp(16px, 2vw, 32px); border-inline-end: 1px solid var(--line); }
.hz-stat:last-child { border-inline-end: 0; }
html body .hz-stat .n { font-family: var(--nf-display-en), sans-serif !important; font-weight: 700; font-size: clamp(52px, 6.4vw, 104px); line-height: .9; letter-spacing: -.05em; color: var(--fg); direction: ltr; display: inline-block; font-variant-numeric: tabular-nums; }
.hz-stat .n sup { font-size: .42em; color: var(--acc); vertical-align: top; margin-inline-start: 4px; position: relative; top: .25em; }
.hz-stat p { margin: 16px 0 0; color: var(--fg-2); font-size: 15px; max-width: 24ch; }
@media (max-width: 860px) { .hz-stats { grid-template-columns: 1fr 1fr; } .hz-stat:nth-child(2) { border-inline-end: 0; } .hz-stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* manifesto (words light up while scrolling) */
.hz-mani { height: 230vh; position: relative; }
.hz-mani .pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
.hz-mani p {
  font-family: var(--f-display); font-weight: 700; font-size: clamp(30px, 4.9vw, 78px); line-height: 1.08; letter-spacing: -.035em;
  margin: 18px 0 0; max-width: 21ch; text-wrap: balance;
}
html[dir="rtl"] .hz-mani p { line-height: 1.45; letter-spacing: 0; max-width: 24ch; }
.hz-mani .w { color: var(--fg); opacity: .14; transition: opacity .25s linear; }
.hz-mani .w.k { color: var(--acc); }
@media (prefers-reduced-motion: reduce) { .hz-mani { height: auto; } .hz-mani .pin { position: static; height: auto; padding-block: 120px; } .hz-mani .w { opacity: 1; } }

/* capability bento */
.hz-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.hz-card {
  --mx: 50%; --my: 0%;
  position: relative; grid-column: span 2; min-height: 380px; border-radius: var(--r-l); background: var(--card); border: 1px solid var(--line);
  padding: 28px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: border-color .4s, transform .6s var(--ease-o);
}
.hz-card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s; background: radial-gradient(500px circle at var(--mx) var(--my), var(--acc-soft), transparent 45%); }
.hz-card:hover { border-color: var(--line-2); }
.hz-card:hover::before { opacity: 1; }
.hz-card.w4 { grid-column: span 4; }
.hz-card.w6 { grid-column: span 6; min-height: 0; }
.hz-card .no { font: 500 12px var(--f-mono); color: var(--fg-3); }
.hz-card h3 { font-family: var(--f-display); font-weight: 700; font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.025em; line-height: 1.05; margin: auto 0 10px; color: var(--fg); }
html[dir="rtl"] .hz-card h3 { letter-spacing: 0; line-height: 1.35; }
.hz-card p { margin: 0; color: var(--fg-2); font-size: 15px; max-width: 46ch; }
.hz-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.hz-card .viz { margin: 22px 0 26px; position: relative; }
@media (max-width: 1000px) { .hz-card, .hz-card.w4 { grid-column: span 3; } }
@media (max-width: 680px) { .hz-bento { grid-template-columns: 1fr; } .hz-card, .hz-card.w4, .hz-card.w6 { grid-column: auto; min-height: 340px; } }

/* viz: ledger */
.v-ledger { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--bg-2); font-family: var(--f-mono) !important; font-size: 12.5px; direction: ltr; }
.v-ledger .r { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); color: var(--fg-2); }
.v-ledger .r:first-child { border-top: 0; color: var(--fg-3); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; }
.v-ledger .r b { color: var(--fg); font-weight: 500; }
.v-ledger .s { font-size: 10.5px; padding: 3px 9px; border-radius: 99px; border: 1px solid var(--line-2); text-transform: uppercase; letter-spacing: .06em; }
.v-ledger .s.ok { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 40%, transparent); background: var(--acc-soft); }
.v-ledger .s.wa { color: var(--warm); border-color: color-mix(in srgb, var(--warm) 40%, transparent); }
.v-ledger .r.new { animation: hzRow 1s var(--ease-o); }
@keyframes hzRow { from { background: var(--acc-soft); } }
@media (max-width: 520px) { .v-ledger .r { grid-template-columns: 1.4fr 1fr auto; } .v-ledger .r > :nth-child(3) { display: none; } }

/* viz: api */
.v-api { font-family: var(--f-mono) !important; font-size: 12.5px; line-height: 1.75; color: var(--fg-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; direction: ltr; text-align: left; min-height: 172px; white-space: pre; overflow: hidden; }
.v-api .k { color: var(--acc); } .v-api .s { color: var(--warm); } .v-api .c { color: var(--fg-3); }
.v-api .cur { display: inline-block; width: 7px; height: 14px; background: var(--acc); vertical-align: -2px; animation: hzBlink 1s steps(1) infinite; }
@keyframes hzBlink { 50% { opacity: 0; } }

/* viz: uptime */
.v-up .bars { display: flex; gap: 3px; height: 54px; align-items: flex-end; direction: ltr; }
.v-up .bars i { flex: 1; border-radius: 3px; background: var(--acc); opacity: .85; transform-origin: bottom; }
.v-up .bars i.d { background: var(--warm); }
.v-up .row { display: flex; justify-content: space-between; margin-top: 12px; color: var(--fg-3); font: 500 11px var(--f-mono); direction: ltr; }
.v-up .srv { display: grid; gap: 8px; margin-top: 18px; font: 500 12.5px var(--f-mono); direction: ltr; }
.v-up .srv div { display: flex; justify-content: space-between; align-items: center; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--fg-2); background: var(--bg-2); }
.v-up .srv span { display: inline-flex; align-items: center; gap: 8px; color: var(--acc); }
.v-up .srv span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* viz: gantt */
.v-gantt { display: grid; gap: 10px; direction: ltr; }
.v-gantt .g { display: grid; grid-template-columns: 74px 1fr; gap: 12px; align-items: center; font: 500 11px var(--f-mono); color: var(--fg-3); }
.v-gantt .t { height: 22px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); position: relative; overflow: hidden; }
.v-gantt .t i { position: absolute; top: 3px; bottom: 3px; border-radius: 4px; background: var(--fg-3); left: var(--a); width: 0; transition: width 1.4s var(--ease-o); transition-delay: calc(var(--d) * 160ms); }
.v-gantt .t i.on { background: var(--acc); }
.in .v-gantt .t i, .v-gantt.in .t i { width: var(--w); }

/* viz: bi chart */
.v-bi { display: flex; align-items: flex-end; gap: 7px; height: 150px; direction: ltr; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; }
.v-bi i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--acc), color-mix(in srgb, var(--acc) 25%, transparent)); height: 0; transition: height 1.2s var(--ease-o); transition-delay: calc(var(--d) * 70ms); }
.v-bi i.lo { background: var(--line-2); }
.in .v-bi i { height: var(--h); }
.v-bi-k { display: flex; justify-content: space-between; margin-top: 10px; font: 500 11px var(--f-mono); color: var(--fg-3); direction: ltr; }
.v-bi-k b { color: var(--acc); font-weight: 500; }

/* viz: phone (mobile card) */
.hz-card.w6 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; padding: clamp(28px, 4vw, 56px); }
.hz-card.w6 h3 { margin-top: 18px; font-size: clamp(30px, 3.4vw, 50px); }
.v-phone { justify-self: center; width: 250px; height: 330px; border-radius: 38px 38px 0 0; border: 1px solid var(--line-2); border-bottom: 0; background: var(--bg-2); padding: 16px 14px 0; position: relative; overflow: hidden; margin-bottom: calc(-1 * clamp(28px, 4vw, 56px)); }
.v-phone::before { content: ""; display: block; width: 76px; height: 22px; border-radius: 99px; background: var(--bg); margin: 0 auto 18px; }
.v-phone .ttl { font: 600 15px var(--f-display); color: var(--fg); margin: 0 4px 12px; }
.v-phone .chk { border-radius: 18px; padding: 18px; background: var(--acc); color: var(--acc-ink); display: grid; gap: 4px; }
.v-phone .chk small { opacity: .75; font: 500 11px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.v-phone .chk b { font: 700 30px var(--nf-display-en), sans-serif; letter-spacing: -.03em; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
.v-phone .li { display: flex; justify-content: space-between; padding: 12px 6px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--fg-2); }
.v-phone .li span:last-child { font-family: var(--f-mono) !important; color: var(--fg-3); }
@media (max-width: 860px) { .hz-card.w6 { grid-template-columns: 1fr; } }

/* career timeline */
.hz-career { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 100px); }
.hz-career .side { position: sticky; top: calc(var(--head-h) + 40px); align-self: start; }
html body .hz-career .side .big { font-family: var(--nf-display-en), sans-serif !important; font-size: clamp(90px, 12vw, 200px); font-weight: 800; line-height: .8; letter-spacing: -.06em; color: var(--fg); margin-top: 40px; direction: ltr; text-align: start; font-variant-numeric: tabular-nums; }
.hz-career .side .big span { color: var(--acc); }
.hz-tl { position: relative; padding-inline-start: 34px; }
.hz-tl::before, .hz-tl .fill { content: ""; position: absolute; inset-inline-start: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.hz-tl .fill { background: var(--acc); transform-origin: top; transform: scaleY(var(--p, 0)); bottom: 8px; }
.hz-role { position: relative; padding: 0 0 64px; }
.hz-role:last-child { padding-bottom: 0; }
.hz-role::before { content: ""; position: absolute; inset-inline-start: -34px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1px solid var(--fg-3); transition: background .4s, border-color .4s, box-shadow .4s; }
.hz-role.lit::before { background: var(--acc); border-color: var(--acc); box-shadow: 0 0 0 6px var(--acc-soft); }
.hz-role .when { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; color: var(--fg-3); }
.hz-role .when .now { color: var(--acc); display: inline-flex; gap: 8px; align-items: center; }
.hz-role h3 { font-family: var(--f-display); font-size: clamp(24px, 2.6vw, 38px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; margin: 14px 0 6px; color: var(--fg); }
html[dir="rtl"] .hz-role h3 { letter-spacing: 0; line-height: 1.4; }
.hz-role .co { color: var(--fg-2); font-size: 16px; }
.hz-role .desc { margin-top: 18px; color: var(--fg-2); font-size: 15px; }
.hz-role .desc ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }
.hz-role .desc li::marker { color: var(--acc); }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hz-career { grid-template-columns: 1fr; } .hz-career .side { position: static; } .hz-career .side .big { margin-top: 20px; } }

/* selected work */
.hz-work { border-top: 1px solid var(--line); counter-reset: w; }
.hz-work details { border-bottom: 1px solid var(--line); counter-increment: w; position: relative; }
.hz-work summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 70px minmax(0, 1fr) auto 50px; gap: 24px; align-items: center;
  padding: clamp(26px, 3.4vw, 44px) 0; position: relative; isolation: isolate;
}
.hz-work summary::-webkit-details-marker { display: none; }
.hz-work summary::before { content: "0" counter(w); font: 500 13px var(--f-mono); color: var(--fg-3); }
.hz-work summary::after { content: ""; position: absolute; inset: 0 calc(-1 * var(--gut)); z-index: -1; background: var(--card); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-o); }
.hz-work details:hover summary::after, .hz-work details[open] summary::after { transform: scaleY(1); }
.hz-work h3 { margin: 0; font-family: var(--f-display); font-size: clamp(26px, 3.8vw, 58px); font-weight: 700; letter-spacing: -.035em; line-height: 1.02; color: var(--fg); transition: transform .6s var(--ease-o), color .3s; }
html[dir="rtl"] .hz-work h3 { letter-spacing: 0; line-height: 1.35; }
.hz-work details:hover h3 { transform: translateX(10px); }
html[dir="rtl"] .hz-work details:hover h3 { transform: translateX(-10px); }
.hz-work .tg { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 360px; }
.hz-work .pl { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--fg); transition: transform .5s var(--ease-o), background .3s, color .3s; font-size: 20px; }
.hz-work details:hover .pl { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.hz-work details[open] .pl { transform: rotate(45deg); }
.hz-work .body { display: grid; grid-template-columns: 70px 1fr; gap: 24px; padding: 0 0 40px; color: var(--fg-2); font-size: 16px; animation: hzPop .5s var(--ease-o); }
.hz-work .body > div { grid-column: 2; max-width: 70ch; }
.hz-work .body ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 8px; }
.hz-work .body .tech { margin-top: 18px; color: var(--fg-3); }
@media (max-width: 860px) {
  .hz-work summary { grid-template-columns: 40px 1fr 44px; }
  .hz-work .tg { display: none; }
  .hz-work .body { grid-template-columns: 40px 1fr; }
  .hz-work .pl { width: 44px; height: 44px; }
}

/* services list */
.hz-svc { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.hz-svc a {
  display: flex; flex-direction: column; gap: 16px; padding: 28px; border-radius: var(--r-l); border: 1px solid var(--line); background: var(--card);
  color: var(--fg); text-decoration: none; min-height: 250px; transition: transform .6s var(--ease-o), border-color .3s, background .3s;
}
.hz-svc a:hover { transform: translateY(-6px); border-color: var(--line-2); color: var(--fg); }
.hz-svc .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); font-size: 20px; }
.hz-svc h3 { margin: auto 0 0; font-family: var(--f-display); font-weight: 700; font-size: 24px; letter-spacing: -.02em; line-height: 1.2; }
html[dir="rtl"] .hz-svc h3 { letter-spacing: 0; }
.hz-svc p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
.hz-svc .pr { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg-2); }
.hz-svc .pr b { color: var(--fg); font-weight: 600; }
.hz-svc .pr .free { color: var(--acc); }

/* process */
.hz-proc { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: p; }
.hz-proc li { list-style: none; counter-increment: p; padding: 32px 26px 10px 0; border-inline-end: 1px solid var(--line); position: relative; }
html[dir="ltr"] .hz-proc li { padding: 32px 26px 10px 0; }
html[dir="rtl"] .hz-proc li { padding: 32px 0 10px 26px; }
.hz-proc li + li { padding-inline-start: 26px !important; }
.hz-proc li:last-child { border-inline-end: 0; }
.hz-proc li::before { content: "0" counter(p); display: block; font: 500 13px var(--f-mono); color: var(--acc); margin-bottom: 70px; }
.hz-proc li::after { content: ""; position: absolute; top: -1px; inset-inline-start: 0; height: 1px; width: 0; background: var(--acc); transition: width 1.2s var(--ease-o); transition-delay: calc(var(--i) * 180ms); }
.hz-proc.in li::after { width: 100%; }
.hz-proc h3 { margin: 0 0 10px; font-family: var(--f-display); font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--fg); }
html[dir="rtl"] .hz-proc h3 { letter-spacing: 0; }
.hz-proc p { margin: 0; color: var(--fg-2); font-size: 14.5px; }
@media (max-width: 980px) {
  .hz-proc { grid-template-columns: 1fr; }
  .hz-proc li, html[dir] .hz-proc li { border-inline-end: 0; border-bottom: 1px solid var(--line); padding: 26px 0 !important; display: grid; grid-template-columns: 60px 1fr; }
  .hz-proc li::before { margin: 6px 0 0; grid-row: span 2; }
  .hz-proc li::after { display: none; }
}

/* courses strip */
.hz-courses { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hz-course { display: flex; flex-direction: column; border-radius: var(--r-l); overflow: hidden; border: 1px solid var(--line); background: var(--card); color: var(--fg); text-decoration: none; transition: transform .6s var(--ease-o), border-color .3s; }
.hz-course:hover { transform: translateY(-6px); border-color: var(--line-2); color: var(--fg); }
.hz-course .th { aspect-ratio: 16 / 9; background: var(--bg-2) center / cover no-repeat; position: relative; overflow: hidden; }
.hz-course .th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1s var(--ease-o); }
.hz-course:hover .th img { transform: scale(1.05); }
.hz-course .th .ph { position: absolute; inset: 0; display: grid; place-items: center; font: 800 54px var(--nf-display-en), sans-serif; color: var(--line-2); letter-spacing: -.05em; }
.hz-course .bd { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hz-course h3 { margin: 0; font-family: var(--f-display); font-size: 21px; font-weight: 700; line-height: 1.25; }
.hz-course .ft { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: center; color: var(--fg-2); font-size: 14px; }

/* final CTA */
.hz-cta { padding-block: clamp(110px, 16vw, 220px); text-align: center; position: relative; overflow: hidden; isolation: isolate; }
.hz-cta::before { content: ""; position: absolute; inset: auto 0 -40% 0; height: 90%; z-index: -1; background: radial-gradient(50% 50% at 50% 100%, var(--acc-soft), transparent 70%); }
.hz-cta h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(54px, 11vw, 190px); line-height: .88; letter-spacing: -.06em; margin: 22px 0 0; color: var(--fg); }
html[dir="rtl"] .hz-cta h2 { line-height: 1.2; letter-spacing: -.01em; font-size: clamp(48px, 9vw, 150px); }
.hz-cta h2 .acc { color: var(--acc); }
.hz-cta .hz-lead { margin: 28px auto 0; }
.hz-cta .acts { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.hz-mail { display: inline-flex; align-items: center; gap: 4px; padding: 6px 6px 6px 22px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); direction: ltr; }
.hz-mail a { font: 500 15px var(--f-mono); color: var(--fg); text-decoration: none; }
.hz-mail button { height: 42px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--line); color: var(--fg); cursor: pointer; font: 500 12px var(--f-mono); letter-spacing: .06em; text-transform: uppercase; margin-inline-start: 12px; transition: background .25s, color .25s; }
.hz-mail button:hover { background: var(--fg); color: var(--bg); }
.hz-mail button.ok { background: var(--acc); color: var(--acc-ink); }
.hz-socials { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }

/* ==========================================================================
   INNER PAGES (shared page header + restyled public pages)
   ========================================================================== */
.hz-ph { padding: calc(var(--head-h) + clamp(60px, 9vw, 130px)) 0 clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; isolation: isolate; }
.hz-ph::before { content: ""; position: absolute; inset: -30% -10% auto; height: 100%; z-index: -1; background: radial-gradient(45% 55% at 75% 10%, var(--acc-soft), transparent 70%); }
.hz-ph h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(46px, 8vw, 128px); line-height: .92; letter-spacing: -.05em; margin: 18px 0 0; color: var(--fg); }
html[dir="rtl"] .hz-ph h1 { line-height: 1.2; letter-spacing: -.01em; font-size: clamp(42px, 6.6vw, 104px); }
.hz-ph .hz-lead { margin-top: 22px; }

/* contact page */
.hz-contact { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(30px, 5vw, 80px); }
.hz-form { display: grid; gap: 4px; }
.hz-field { position: relative; border-bottom: 1px solid var(--line-2); padding-top: 22px; transition: border-color .3s; }
.hz-field:focus-within { border-color: var(--acc); }
.hz-field label { display: block; font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
html[dir="rtl"] .hz-field label { letter-spacing: 0; font-size: 13px; }
html body .hz-field input, html body .hz-field textarea {
  width: 100%; background: transparent !important; border: 0 !important; outline: none; color: var(--fg); padding: 8px 0 16px; box-shadow: none !important;
  font-size: clamp(18px, 1.8vw, 24px); font-family: var(--f-display) !important; resize: vertical; border-radius: 0 !important;
}
.hz-field input::placeholder, .hz-field textarea::placeholder { color: var(--fg-3); opacity: .7; }
.hz-form .hz-btn { margin-top: 30px; justify-self: start; }
.hz-aside { display: grid; gap: 14px; align-content: start; }
.hz-aside .blk { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.hz-aside h4 { margin: 0 0 10px; font: 500 11.5px var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-3); }
.hz-aside a, .hz-aside p { color: var(--fg); font-size: 16px; margin: 0; text-decoration: none; line-height: 1.8; }
.hz-aside a:hover { color: var(--acc); }
.hz-aside .ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.hz-soc { display: flex; flex-wrap: wrap; gap: 8px; }
.hz-soc a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14px; color: var(--fg-2); text-decoration: none; transition: background .25s, color .25s, border-color .25s; }
.hz-soc a:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hz-contact { grid-template-columns: 1fr; } }

/* services page */
.hz-svc-list { border-top: 1px solid var(--line); }
.hz-svc-row { display: grid; grid-template-columns: 70px 64px minmax(0, 1fr) auto; gap: 28px; align-items: center; padding: clamp(26px, 3.2vw, 42px) 0; border-bottom: 1px solid var(--line); counter-increment: s; }
.hz-svc-list { counter-reset: s; }
.hz-svc-row::before { content: "0" counter(s); font: 500 13px var(--f-mono); color: var(--fg-3); }
.hz-svc-row .ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--acc-soft); color: var(--acc); font-size: 22px; }
.hz-svc-row h3 { margin: 0 0 6px; font-family: var(--f-display); font-size: clamp(24px, 2.8vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--fg); }
html[dir="rtl"] .hz-svc-row h3 { letter-spacing: 0; line-height: 1.4; }
.hz-svc-row p { margin: 0; color: var(--fg-2); max-width: 64ch; }
.hz-svc-row .pr { text-align: end; white-space: nowrap; font: 600 18px var(--f-display); color: var(--fg); }
.hz-svc-row .pr small { display: block; font: 500 11px var(--f-mono); color: var(--fg-3); letter-spacing: .08em; text-transform: uppercase; }
.hz-svc-row .pr .free { color: var(--acc); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hz-svc-row { grid-template-columns: 52px 1fr; gap: 14px 18px; } .hz-svc-row::before { display: none; } .hz-svc-row .ic { width: 52px; height: 52px; } .hz-svc-row .pr { grid-column: 2; text-align: start; } }

/* prose pages (about / privacy / templates) */
.hz-prose { max-width: 820px; margin-inline: auto; padding-block: clamp(50px, 7vw, 100px); font-size: 17.5px; color: var(--fg-2); line-height: 1.8; }
.hz-prose :is(h1, h2, h3) { color: var(--fg); font-family: var(--f-display); letter-spacing: -.02em; line-height: 1.2; }
html[dir="rtl"] .hz-prose :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.5; }
.hz-prose a { color: var(--acc); }
.hz-field:has(.error) { border-color: var(--danger); }
.hz-field .field-error, .hz-form .field-error { color: var(--danger); font-size: 13px; padding: 0 0 10px; }

/* ==========================================================================
   HOME — cinematic 3D (fixed WebGL stage + one camera shot per section)
   ========================================================================== */
html:has(.hz-dark) body { background: var(--bg); }
html:has(.hz-dark) .hz-head:not(.scrolled) { background: transparent; }
html:has(.hz-dark) .hz-foot { position: relative; z-index: 2; background: rgba(var(--bg-rgb),.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
html.lenis, html.lenis body { height: auto; }
html.lenis, html.lenis body { scroll-behavior: auto !important; } /* Lenis drives the scroll; native smooth scrolling under it makes them fight (the page pulls back) */
.lenis.lenis-stopped { overflow: hidden; }

.hz3d { position: relative; isolation: isolate; }
.hz3d { overflow-x: clip; } /* clip the wide text scrims here, not per section: Safari clips a section on both axes, which cut the scrim off in a hard line at the bottom of a short hero */
.hz3d-gl { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: -1; opacity: 0; transition: opacity 1.4s var(--ease-o); }
html.gl-on .hz3d-gl { opacity: 1; }
html.no-gl .hz3d { background: radial-gradient(60% 50% at 30% 40%, var(--bg-2), var(--bg) 70%) fixed; }
.hz3d-grain { position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: hz3dGrain 1s steps(4) infinite; }
@keyframes hz3dGrain { 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -2%); } }
.hz3d-vign { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 45%, transparent 55%, var(--vign)); }

.hz3d-sec { position: relative; z-index: 1; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--head-h) + 40px) 0 80px; }
.hz3d-sec > .hz-wrap { width: min(1360px, 100% - 2 * var(--gut)); }
.hz3d .panel { max-width: 640px; position: relative; }
.hz3d .panel.end { margin-inline-start: auto; }
.hz3d .scrim { position: absolute; inset: -40% -60%; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(var(--bg-rgb),.82), transparent); }
/* home hero on wide screens: the circuit board and the big chip sit right behind the headline; a denser
   pool of background behind the text keeps it readable (the scene still shows around it) */
@media (min-width: 761px) and (orientation: landscape), (min-width: 1101px) {
  .hz3d-hero .panel:has(.l.big) .scrim { inset: -30% -45%; background: radial-gradient(closest-side, rgba(var(--bg-rgb),.93) 45%, rgba(var(--bg-rgb),.7) 72%, transparent); }
}
.hz3d-eye { font: 500 13px var(--f-mono); color: var(--acc); display: inline-flex; gap: 10px; align-items: center; }
.hz3d-eye::before { content: "//"; opacity: .7; }

/* gradient-filled words: pad the box so descenders/dots below the line are painted too */
.hz3d .cu {
  padding: .2em .06em .45em; margin: -.2em -.06em -.45em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, #ffcf9a 0%, var(--acc) 45%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* hero */
.hz3d-hero { align-items: flex-end; padding-bottom: 12vh; }
.hz3d-hero .panel { max-width: none; }
.hz3d-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(44px, 8.2vw, 148px); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 0; color: var(--fg); }
html[dir="rtl"] .hz3d-hero h1 { font-weight: 900; font-size: clamp(40px, 8.4vw, 150px); line-height: 1.12; letter-spacing: 0; }
.hz3d-hero h1 .l { display: block; white-space: nowrap; }
.hz3d-hero .lead { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.8; color: var(--fg-2); max-width: 46ch; margin-top: 26px; }
.hz3d-hero .lead b { color: var(--fg); font-weight: 600; }
.hz3d .btns { display: flex; gap: 12px; margin-top: 38px; flex-wrap: wrap; }
.hz3d-b1 { height: 56px; padding: 0 28px; border-radius: 12px; background: var(--fg); color: var(--bg); font-weight: 600; display: inline-flex; align-items: center; gap: 12px; text-decoration: none; transition: all .4s var(--ease-o); }
.hz3d-b1:hover { background: var(--acc-2); color: var(--bg); box-shadow: 0 10px 50px rgba(232,131,58,.45); transform: translateY(-2px); }
.hz3d-b2 { height: 56px; padding: 0 24px; border-radius: 12px; border: 1px solid var(--line-2); display: inline-flex; align-items: center; gap: 10px; color: var(--fg); background: rgba(var(--ink-rgb),.03); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); text-decoration: none; transition: border-color .3s; }
.hz3d-b2:hover { border-color: rgba(var(--acc2-rgb),.5); color: var(--fg); }
.hz3d .ar { display: inline-block; }
html[dir="rtl"] .hz3d .ar { transform: scaleX(-1); }
.hz3d-hero .readout { position: absolute; bottom: 12vh; display: grid; gap: 8px; direction: ltr; text-align: left; color: var(--fg-3); }
.hz3d-hero .readout div { display: flex; gap: 14px; justify-content: space-between; min-width: 230px; border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.hz3d-hero .readout b { color: var(--acc-2); font-weight: 500; }
.hz3d-hero .hint { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--fg-3); }
.hz3d-hero .hint i { width: 1px; height: 42px; background: linear-gradient(var(--acc), transparent); animation: hzScroll 2.2s var(--ease-o) infinite; transform-origin: top; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hz3d-hero { padding-bottom: 16vh; } }
html[dir=rtl] .hz3d-hero .readout { left: calc((100% - min(1360px, 100% - 2 * var(--gut))) / 2); } html[dir=ltr] .hz3d-hero .readout { right: calc((100% - min(1360px, 100% - 2 * var(--gut))) / 2); }
@media (max-width: 900px), (max-height: 640px) { .hz3d-hero .readout { display: none; } }

/* whoami */
.hz3d-who h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(42px, 6.2vw, 106px); line-height: 1.12; letter-spacing: -.04em; margin-top: 18px; color: var(--fg); }
html[dir="rtl"] .hz3d-who h2 { font-weight: 900; line-height: 1.3; letter-spacing: 0; }
.hz3d-who h2 .dim { color: var(--fg-3); }
.hz3d-who .panel { max-width: 100%; width: fit-content; } .hz3d-who .hz3d-term { width: 100%; max-width: none; contain: inline-size; }
.hz3d-term { margin-top: 44px; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--pane-rgb),.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden;
  box-shadow: 0 40px 100px -30px rgba(0,0,0,.8), inset 0 0 0 1px rgba(var(--acc2-rgb),.06); direction: ltr; text-align: left; max-width: 560px; }
.hz3d-term .hd { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.hz3d-term .hd i { width: 10px; height: 10px; border-radius: 50%; background: #3a332e; }
.hz3d-term .hd i:first-child { background: var(--acc); }
.hz3d-term .hd span { margin-left: 10px; font: 12px var(--f-mono); color: var(--fg-3); }
html body .hz3d-term pre { margin: 0; padding: 20px 22px 24px; font: 13.5px/1.95 var(--f-mono) !important; color: var(--fg-2); white-space: pre-wrap; min-height: 250px; background: none; border: 0; }
.hz3d-term .c { color: var(--acc-2); } .hz3d-term .o { color: var(--fg); } .hz3d-term .g { color: #5ee39a; }
.hz3d-term .cur { display: inline-block; width: 8px; height: 15px; background: var(--acc-2); vertical-align: -2px; animation: hzBlink 1s steps(1) infinite; }
@keyframes hzBlink { 50% { opacity: 0; } }

/* services: one per screen */
html body .hz3d-svc .num { font-family: var(--nf-display-en), sans-serif !important; font-weight: 200; font-size: clamp(110px, 15vw, 240px); line-height: 1; color: transparent; -webkit-text-stroke: 1px rgba(var(--acc2-rgb),.5); display: block; margin-bottom: -.12em; direction: ltr; text-align: start; }
.hz3d-svc h3 { font-family: var(--f-display); font-weight: 800; font-size: clamp(38px, 5.2vw, 88px); line-height: 1.1; letter-spacing: -.035em; margin: 0; color: var(--fg); }
html[dir="rtl"] .hz3d-svc h3 { font-weight: 900; line-height: 1.3; letter-spacing: 0; }
.hz3d-svc .tl { font: 500 clamp(18px, 1.6vw, 24px) var(--f-display); color: var(--acc-2); margin-top: 10px; }
.hz3d-svc p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.9; color: var(--fg-2); margin-top: 20px; max-width: 46ch; }
.hz3d-svc .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hz3d-svc .tags span { font: 12px var(--f-mono); padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--fg-2); background: rgba(var(--ink-rgb),.025); }
.hz3d-svc .more { margin-top: 30px; display: inline-flex; gap: 10px; align-items: center; color: var(--fg); font-weight: 500; border-bottom: 1px solid var(--acc); padding-bottom: 4px; text-decoration: none; }
.hz3d-svc .more:hover { color: var(--acc-2); }

/* numbers */
.hz3d-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; }
.hz3d-nums > div { padding: 34px; border-radius: 20px; border: 1px solid var(--line); background: rgba(var(--pane-rgb),.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html body .hz3d-nums b { display: block; font-family: var(--nf-display-en), sans-serif !important; font-weight: 300; font-size: clamp(70px, 8vw, 130px); line-height: 1; direction: ltr; text-align: start; color: var(--fg); letter-spacing: -.04em; }
.hz3d-nums b sup { font-size: .4em; color: var(--acc-2); vertical-align: top; position: relative; top: .3em; }
.hz3d-nums p { color: var(--fg-2); margin-top: 16px; font-size: 16px; line-height: 1.7; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hz3d-nums { grid-template-columns: 1fr; } }

/* cta */
.hz3d-cta { text-align: center; justify-content: center; }
.hz3d-cta .panel { max-width: 1100px; margin-inline: auto; }
.hz3d-cta h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(52px, min(9vw, 15vh), 170px); line-height: 1.08; letter-spacing: -.045em; margin-top: 18px; color: var(--fg); }
html[dir="rtl"] .hz3d-cta h2 { font-weight: 900; line-height: 1.25; letter-spacing: 0; }
.hz3d-cta p { color: var(--fg-2); font-size: clamp(17px, 1.4vw, 21px); margin: 22px auto 0; max-width: 52ch; text-wrap: balance; }
.hz3d-cta .btns { justify-content: center; }
.hz3d-cta .mail { font: 15px var(--f-mono); direction: ltr; color: var(--fg-2); margin-top: 34px; display: inline-block; border-bottom: 1px dashed var(--fg-3); text-decoration: none; }

@media (prefers-reduced-motion: reduce) { .hz3d-grain { animation: none; } }
html[dir] body :is(.hz3d-eye, .hz3d-svc .tags span, .hz3d-cta .mail, .hz3d-term .hd span) { font-family: var(--f-mono) !important; }
html[dir="rtl"] body .hz3d-svc .tl { font-family: var(--f-display) !important; }

/* ==========================================================================
   CV — same cinematic look, no WebGL (a fixed copper glow instead)
   ========================================================================== */
.hzcv { position: relative; isolation: isolate; }
.hzcv-glow { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(55% 45% at 78% 8%, rgba(232,131,58,.16), transparent 70%), radial-gradient(40% 40% at 10% 90%, rgba(138,59,18,.14), transparent 70%), var(--bg); }
html[dir="rtl"] .hzcv-glow { background: radial-gradient(55% 45% at 22% 8%, rgba(232,131,58,.16), transparent 70%), radial-gradient(40% 40% at 90% 90%, rgba(138,59,18,.14), transparent 70%), var(--bg); }
.hzcv-hero { position: relative; z-index: 1; padding: calc(var(--head-h) + clamp(70px, 11vw, 150px)) 0 clamp(50px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.hzcv-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(56px, 10vw, 180px); line-height: 1.05; letter-spacing: -.05em; margin: 20px 0 0; color: var(--fg); white-space: nowrap; }
html[dir="rtl"] .hzcv-hero h1 { font-weight: 900; line-height: 1.2; letter-spacing: 0; }
.hzcv-hero .cu, .hzcv .cu { padding: .2em .06em .45em; margin: -.2em -.06em -.45em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(100deg, #ffcf9a 0%, var(--acc) 45%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hzcv-hero .hl { font: 500 clamp(18px, 1.7vw, 24px)/1.7 var(--f-display); color: var(--fg-2); margin-top: 22px; max-width: 60ch; }
.hzcv-hero .meta { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14.5px; color: var(--fg-3); }
.hzcv-hero .meta a { color: var(--fg-2); text-decoration: none; border-bottom: 1px dashed var(--line-2); }
.hzcv-hero .meta a:hover { color: var(--acc-2); }
.hzcv .ltr { direction: ltr; unicode-bidi: isolate; }
.hzcv .btns { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hzcv-sec { position: relative; z-index: 1; padding-block: clamp(80px, 11vw, 150px); border-bottom: 1px solid var(--line); }
.hzcv-h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 5vw, 76px); line-height: 1.1; letter-spacing: -.04em; margin: 16px 0 0; color: var(--fg); }
html[dir="rtl"] .hzcv-h2 { font-weight: 900; line-height: 1.35; letter-spacing: 0; }
.hzcv-h2 .dim { color: var(--fg-3); }
.hzcv-sum { font: 400 clamp(20px, 2.1vw, 30px)/1.7 var(--f-display); color: var(--fg); max-width: 58ch; margin-top: 22px; }
.hzcv-small { font-size: 14px; color: var(--fg-3); }
.hzcv .hz-career .side .big span { color: var(--acc-2); }
.hzcv-ach { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hzcv-ach li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--fg-2); line-height: 1.75; }
.hzcv-ach .n { font: 500 13px var(--f-mono); color: var(--acc-2); padding-top: 5px; }
.hzcv-skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.hzcv-skills > div { padding: 28px; border-radius: 18px; border: 1px solid var(--line); background: rgba(var(--pane-rgb),.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); transition: border-color .3s, transform .6s var(--ease-o); }
.hzcv-skills > div:hover { border-color: rgba(var(--acc2-rgb),.35); transform: translateY(-4px); }
.hzcv-skills .n { font: 500 12px var(--f-mono); color: var(--acc-2); }
.hzcv-skills h3 { margin: 34px 0 10px; font: 700 22px/1.35 var(--f-display); color: var(--fg); }
.hzcv-skills p { margin: 0; color: var(--fg-2); font-size: 15px; line-height: 1.8; }
.hzcv-soft { margin-top: 30px; color: var(--fg-2); font-size: 16px; line-height: 1.9; }
.hzcv-soft b { color: var(--fg); }
.hzcv-h4 { margin: 10px 0 14px; font: 500 12px var(--f-mono); color: var(--fg-3); letter-spacing: .1em; text-transform: uppercase; }
html[dir="rtl"] .hzcv-h4 { letter-spacing: 0; font-size: 14px; }
.hzcv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hzcv-chips span { padding: 9px 14px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--fg-2); font-size: 14px; background: rgba(var(--ink-rgb),.025); }
.hzcv-lang { color: var(--fg-2); margin: 0; }
.hzcv-lang strong { color: var(--fg); }
.hzcv .hz3d-cta { z-index: 1; }
@media (max-width: 980px) { .hzcv-skills { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .hzcv-skills { grid-template-columns: 1fr; } .hzcv-hero h1 { white-space: normal; } }
html[dir] body :is(.hzcv-hero .meta, .hzcv-ach .n, .hzcv-skills .n) { font-family: var(--f-mono) !important; }
html[dir="rtl"] body :is(.hzcv-hero .hl, .hzcv-sum, .hzcv-skills h3) { font-family: var(--f-display) !important; }
/* hero: the idea big, the journey smaller in copper */
.hz3d-hero h1 { margin-top: 0; }
.hz3d-hero h1 .l.pre { font-size: .36em; color: var(--fg-2); font-weight: 700; margin-bottom: .15em; }
.hz3d-hero h1 .l.big + .l { font-size: .52em; margin-top: .12em; }
html[dir="ltr"] .hz3d-hero h1 { font-size: clamp(38px, 5.4vw, 100px); letter-spacing: -.035em; }
html[dir="ltr"] .hz3d-hero h1 .l.pre, html[dir="ltr"] .hz3d-hero h1 .l.big + .l { letter-spacing: -.012em; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { html[dir="ltr"] .hz3d-hero h1 .l { white-space: normal; } }

/* ============ WORLD (/world) — same cinematic board as home ============ */
.hzw .hzw-p { contain: inline-size; color: var(--fg-2); font-size: clamp(16px, 1.25vw, 19px); line-height: 1.9; margin-top: 18px; }
.hzw-mod .panel { max-width: 600px; }
html body .hzw-mod .num { font-size: clamp(64px, 7vw, 116px); }
.hzw-mod h3 { font-size: clamp(36px, 4.4vw, 72px); }
.hzw-list { list-style: none; margin: 22px 0 0; padding: 4px 20px; display: grid; border-radius: 16px; border: 1px solid var(--line); background: rgba(var(--pane-rgb),.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hzw-list li { display: grid; gap: 2px; padding: 9px 0; border-bottom: 1px solid var(--line); } .hzw-list li:last-child { border-bottom: 0; }
.hzw-list .when { font-size: 11.5px; color: var(--acc-2); display: flex; gap: 12px; align-items: center; }
.hzw-list .when em { font-style: normal; display: inline-flex; gap: 6px; align-items: center; color: #5ee39a; }
.hzw-list .when em .hz-dot { width: 6px; height: 6px; }
.hzw-list b { font-family: var(--f-display); font-weight: 700; font-size: clamp(16px, 1.3vw, 19px); color: var(--fg); }
.hzw-list .sub { color: var(--fg-3); font-size: 13px; line-height: 1.5; }
.hzw-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.hzw-stack > div { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(var(--pane-rgb),.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hzw-stack b { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; color: var(--fg); }
.hzw-stack .tags { margin-top: 10px; gap: 6px; }
.hzw-stack .tags span { padding: 5px 9px; font-size: 11.5px; }
.hzw-mod .btns { margin-top: 30px; }
@media (max-width: 640px) { .hzw-stack { grid-template-columns: 1fr; } .hzw-list .sub { font-size: 13px; } }
.hzw .hz3d-who h2 { font-size: clamp(40px, 4.8vw, 84px); }
.hzw .hz3d-who .hz3d-term { margin-top: 26px; }
html body .hzw .hz3d-who .hz3d-term pre { min-height: 0; }

/* ============ CV FULL (/cv-full) — printable sheet ============ */
.hzr { position: relative; min-height: 100vh; padding: calc(var(--head-h) + 40px) 0 90px; overflow-x: clip; }
.hzr-bar { position: relative; z-index: 2; margin-bottom: 28px; }
.hzr-bar .hz-wrap { max-width: 980px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; }
.hzr-bar .btns { display: flex; gap: 10px; flex-wrap: wrap; margin-inline-start: auto; }
.hzr-bar .hz3d-b1, .hzr-bar .hz3d-b2 { height: 48px; font-size: 15px; cursor: pointer; border: 0; font-family: inherit; }
.hzr-bar .hz3d-b2 { border: 1px solid var(--line-2); }
.hzr-bar small { width: 100%; text-align: end; font-size: 11.5px; color: var(--fg-3); }

.hzr-sheet { --ink: #1b1411; --ink-2: #4a3d35; --ink-3: #85766b; --cu: #b4561c; --cu-2: var(--acc); --rule: #e6dccf; --paper: #fbf7f1;
  position: relative; z-index: 1; width: min(940px, 100% - 2 * var(--gut)); margin: 0 auto; background: var(--paper); color: var(--ink);
  border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px rgba(var(--acc2-rgb),.18), 0 60px 160px -40px rgba(232,131,58,.35), 0 30px 80px -20px rgba(0,0,0,.8);
  font-size: 13.5px; line-height: 1.65; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.hzr-head { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; align-items: center; padding: 34px 40px 30px; color: var(--fg);
  background: radial-gradient(70% 140% at 100% 0%, rgba(232,131,58,.28), transparent 60%), linear-gradient(160deg, var(--hero-1), var(--hero-2)); overflow: hidden; }
html[dir="rtl"] .hzr-head { background: radial-gradient(70% 140% at 0% 0%, rgba(232,131,58,.28), transparent 60%), linear-gradient(200deg, var(--hero-1), var(--hero-2)); }
.hzr-head::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: linear-gradient(90deg, transparent 0 62%, rgba(232,131,58,.35) 62% calc(62% + 1px), transparent 0) 0 0 / 100% 100%,
              linear-gradient(0deg, transparent 0 30%, rgba(232,131,58,.25) 30% calc(30% + 1px), transparent 0);
  -webkit-mask: linear-gradient(90deg, transparent 40%, #000); mask: linear-gradient(90deg, transparent 40%, #000); }
html[dir="rtl"] .hzr-head::after { -webkit-mask: linear-gradient(270deg, transparent 40%, #000); mask: linear-gradient(270deg, transparent 40%, #000); transform: scaleX(-1); }
.hzr-head .mark { grid-row: span 2; width: 74px; height: 74px; border-radius: 16px; display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); border: 1px solid rgba(var(--acc2-rgb),.45); box-shadow: 0 0 0 5px var(--bg), 0 0 0 6px rgba(232,131,58,.3), 0 0 40px rgba(232,131,58,.35); }
.hzr-head .mark::before, .hzr-head .mark::after { content: ""; position: absolute; }
.hzr-head .mark::before { inset: -12px 14px; background: repeating-linear-gradient(90deg, #b4561c 0 4px, transparent 4px 10px) top / 100% 5px no-repeat, repeating-linear-gradient(90deg, #b4561c 0 4px, transparent 4px 10px) bottom / 100% 5px no-repeat; }
.hzr-head .mark::after { inset: 14px -12px; background: repeating-linear-gradient(0deg, #b4561c 0 4px, transparent 4px 10px) left / 5px 100% no-repeat, repeating-linear-gradient(0deg, #b4561c 0 4px, transparent 4px 10px) right / 5px 100% no-repeat; }
.hzr-head .mark .hz-zg { width: 64%; height: auto; display: block; position: relative; filter: drop-shadow(0 0 5px rgba(232,131,58,.4)); }
.hzr-head .mark span { font: 800 24px var(--nf-display-en), sans-serif; letter-spacing: -.04em; background: linear-gradient(100deg, #ffcf9a, var(--acc) 55%, #8a3b12); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hzr-head h1 { font-family: var(--f-display); font-weight: 800; font-size: 40px; line-height: 1.15; margin: 0; letter-spacing: -.03em;
  background: linear-gradient(100deg, #fff4e6, #ffcf9a 45%, var(--acc)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .1em; }
html[dir="rtl"] .hzr-head h1 { font-weight: 900; letter-spacing: 0; line-height: 1.35; }
.hzr-head .hl { margin: 0; color: rgba(243,235,223,.78); font-size: 15px; }
.hzr-head .ct { grid-column: 1 / -1; list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(var(--acc2-rgb),.2); display: flex; flex-wrap: wrap; gap: 6px 26px; font-size: 12.5px; color: rgba(243,235,223,.75); position: relative; z-index: 1; }
.hzr-head .ct li::before { content: "●"; color: var(--acc); font-size: 7px; vertical-align: 2px; margin-inline-end: 8px; }
.hzr-head .ct a { color: #ffcf9a; text-decoration: none; }
.hzr-head .ltr { direction: ltr; unicode-bidi: isolate; }
.hzr-sheet .trace { height: 3px; background: linear-gradient(90deg, #8a3b12, var(--acc) 40%, #ffcf9a 60%, #8a3b12); }

.hzr-cols { display: grid; grid-template-columns: 1fr 290px; }
.hzr-cols main { padding: 30px 36px 30px 40px; }
html[dir="rtl"] .hzr-cols main { padding: 30px 40px 30px 36px; }
.hzr-cols aside { padding: 30px 30px; background: var(--fg); border-inline-start: 1px solid var(--rule); }
.hzr-sheet section + section { margin-top: 24px; }
.hzr-sheet h2 { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 15px; letter-spacing: .02em; color: var(--cu); margin: 0 0 12px; text-transform: uppercase; }
html[dir="rtl"] .hzr-sheet h2 { font-size: 17px; text-transform: none; letter-spacing: 0; }
.hzr-sheet h2::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--cu-2); box-shadow: 0 0 0 3px rgba(232,131,58,.18); flex: none; }
.hzr-sheet h2::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.hzr-sheet p { margin: 0; color: var(--ink-2); }
/* body text justified so both edges line up (summary, role bullets, achievements) */
.hzr-sheet main p, .hzr-sheet .desc, .hzr-sheet main .dots li, .hzr-sheet .ach li { text-align: justify; text-justify: inter-word; }
.hzr-sheet .sum { font-size: 14px; line-height: 1.8; }
.hzr-sheet .role { position: relative; padding-inline-start: 18px; padding-bottom: 14px; }
.hzr-sheet .role::before { content: ""; position: absolute; inset-inline-start: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 2px solid var(--cu-2); }
.hzr-sheet .role::after { content: ""; position: absolute; inset-inline-start: 4.5px; top: 18px; bottom: 0; width: 1px; background: var(--rule); }
.hzr-sheet .role:last-child::after { display: none; }
.hzr-sheet .rh { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.hzr-sheet .rh b { font-family: var(--f-display); font-weight: 800; font-size: 15px; color: var(--ink); }
.hzr-sheet .dt { font: 500 11.5px var(--f-mono); color: var(--cu); white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
html[dir="rtl"] .hzr-sheet .dt { font-family: var(--f-body); font-size: 12px; }
.hzr-sheet .rt { color: var(--ink-2); font-weight: 600; margin-top: 2px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hzr-sheet .bd { font-size: 11px; font-weight: 500; color: var(--ink-3); border: 1px solid var(--rule); border-radius: 99px; padding: 1px 9px; }
.hzr-sheet .desc { color: var(--ink-2); margin-top: 6px; }
.hzr-sheet .desc ul, .hzr-sheet .dots { margin: 4px 0 0; padding-inline-start: 18px; }
.hzr-sheet .desc li, .hzr-sheet .dots li { margin: 3px 0; }
.hzr-sheet .desc li::marker, .hzr-sheet .dots li::marker { color: var(--cu-2); }
.hzr-sheet .tech { margin-top: 6px; font: 11px var(--f-mono); color: var(--cu); direction: ltr; text-align: start; }
.hzr-ach-wide { display: none; }
.hzr-sheet .ach { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.hzr-sheet .ach li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; color: var(--ink-2); }
.hzr-sheet .ach li span { font: 600 11px var(--f-mono); color: var(--cu-2); padding-top: 3px; }
.hzr-sheet .sk + .sk { margin-top: 12px; }
.hzr-sheet .sk b { font-family: var(--f-display); font-weight: 800; font-size: 13.5px; color: var(--ink); display: block; }
.hzr-sheet .sk .mt { color: var(--ink-2); font-size: 12.5px; }
.hzr-sheet .chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.hzr-sheet .chips span { font-size: 11px; padding: 2px 8px; border-radius: 6px; background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); }
.hzr-sheet aside p, .hzr-sheet aside .dots { font-size: 12.5px; }
.hzr-foot { display: flex; justify-content: space-between; padding: 12px 40px; border-top: 1px solid var(--rule); font: 10.5px var(--f-mono); color: var(--ink-3); letter-spacing: .08em; }

@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzr-cols { grid-template-columns: 1fr; }
  .hzr-cols aside { border-inline-start: 0; border-top: 1px solid var(--rule); }
  .hzr-head, .hzr-cols main, html[dir="rtl"] .hzr-cols main, .hzr-cols aside { padding-inline: 22px; }
  .hzr-head h1 { font-size: 30px; } .hzr-head .mark { width: 58px; height: 58px; }
  .hzr-bar small { text-align: start; }
}

@page { size: A4; margin: 10mm; }
@media print {
  html, body { background: #fff !important; }
  .hz-head, .hz-foot, .no-print, #hzMenu, #toastContainer, .hz-splash, #hzSplash { display: none !important; }
  .hzr { padding: 0; min-height: 0; }
  .hzr-sheet { width: 100%; box-shadow: none; border-radius: 0; font-size: 11.5px; }
  .hzr-cols { grid-template-columns: 1fr 230px; }
  .hzr-sheet .role, .hzr-sheet .sk, .hzr-sheet .ach li { break-inside: avoid; }
  .hzr-sheet h2 { break-after: avoid; }
  /* printed CV: plain white paper everywhere, the dark header included; copper stays only as accents */
  .hzr-sheet { --paper: #fff; background: #fff !important; }
  .hzr-head, html[dir="rtl"] .hzr-head { background: #fff !important; color: var(--ink); padding: 0 22px 12px; }
  .hzr-head::after { display: none; }
  /* no ZG mark on paper: the name starts where the mark was */
  .hzr-head { grid-template-columns: 1fr; }
  .hzr-head .mark { display: none; }
  .hz-beta { display: none !important; }
  .hzr-sheet .ach-in { display: none; }
  .hzr-ach-wide { display: block; padding: 6px 22px 22px; border-top: 1px solid var(--rule); }
  .hzr-head h1 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--ink); }
  .hzr-head .hl { color: var(--ink-2); }
  .hzr-head .ct { color: var(--ink-2); border-top-color: var(--rule); }
  .hzr-head { gap: 4px 18px; }
  .hzr-head h1 { font-size: 30px; }
  .hzr-head .hl { font-size: 13px; }
  .hzr-head .ct { margin-top: 10px; padding-top: 10px; gap: 4px 14px; font-size: 11px; flex-wrap: nowrap; justify-content: space-between; white-space: nowrap; }
  .hzr-head .ct a { color: var(--cu); }
  .hzr-cols aside { background: #fff !important; }
  /* ATS: one column on paper, so a parser reading line by line never mixes the sidebar into the experience */
  .hzr-cols { grid-template-columns: 1fr; }
  .hzr-cols main, html[dir="rtl"] .hzr-cols main { padding: 22px 40px 10px; }
  .hzr-cols aside { border-inline-start: 0; border-top: 1px solid var(--rule); padding: 18px 40px 10px; }
  .hzr-head .ct { flex-wrap: wrap; justify-content: flex-start; }
  .hzr-ach-wide { padding-inline: 40px; }
  .hzr-sheet .ach li { display: block; }
  .hzr-sheet .ach li span { margin-inline-end: 8px; }
  /* skills: group name and its tags on one line, so the single column stays short */
  .hzr-cols aside section:first-child .sk b { display: inline; margin-inline-end: 8px; }
  .hzr-cols aside section:first-child .chips { display: inline; }
  .hzr-cols aside section:first-child .chips span { display: inline-block; margin: 2px 0 2px 4px; }
  .hzr-cols aside .sk + .sk { margin-top: 4px; }
  /* a little tighter so the single column still fits on 3 pages */
  .hzr-sheet { font-size: 11px; }
  .hzr-sheet .sum { font-size: 12.5px; line-height: 1.65; }
  .hzr-sheet section + section { margin-top: 16px; }
  .hzr-sheet .role { padding-bottom: 8px; }
  .hzr-sheet .desc li, .hzr-sheet .dots li { margin: 1px 0; }
  .hzr-sheet .ach { gap: 4px; }
  .hzr-cols aside section + section { margin-top: 14px; }
  .hzr-sheet .chips span { background: #fff; }
}

/* ================= services — 3D pick-and-place line ================= */
.hzs .hzs-part .num { margin-bottom: -.05em; }
.hzs .hzs-part .pn { display: inline-flex; gap: 10px; align-items: center; font: 600 13px var(--f-mono); color: var(--acc); letter-spacing: .08em; margin: 6px 0 14px; direction: ltr; }
.hzs .hzs-part .spec { margin: 26px 0 0; max-width: 420px; border-top: 1px dashed var(--line-2); }
.hzs .hzs-part .spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.hzs .hzs-part dt { font: 500 11.5px var(--f-mono); text-transform: uppercase; letter-spacing: .1em; color: var(--fg-3); }
.hzs .hzs-part dd { margin: 0; color: var(--fg); font-size: 15.5px; }
.hzs .hzs-part dd small { color: var(--fg-3); font-size: 12.5px; }
.hzs .hzs-part dd b { font-weight: 600; }
.hzs .hzs-part dd .free { color: #5ee39a; }
html[dir] body .hzs .hzs-part .pn, html[dir] body .hzs .hzs-part dt { font-family: var(--f-mono) !important; }

.hzs .cu, .hzs-path .panel.wide { max-width: 1180px; }
.hzs-path h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.15; margin: 16px 0 0; color: var(--fg); }
html[dir="ltr"] .hzs-path h2 { font-weight: 800; letter-spacing: -.03em; }
.hzs-path .rail { list-style: none; padding: 0; margin: clamp(36px, 6vh, 64px) 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.hzs-path .rail::before, .hzs-path .rail::after { content: ""; position: absolute; top: 21px; inset-inline: 22px; height: 3px; border-radius: 3px; }
.hzs-path .rail::before { background: #3a2414; }
.hzs-path .rail::after { background: linear-gradient(90deg, #8a3b12, var(--acc-2)); transform-origin: left; transform: scaleX(0); transition: transform 2.2s var(--ease-o) .3s; box-shadow: 0 0 14px rgba(255,150,70,.5); }
html[dir="rtl"] .hzs-path .rail::after { transform-origin: right; background: linear-gradient(270deg, #8a3b12, var(--acc-2)); }
.hzs-path .rail.in::after { transform: scaleX(1); }
.hzs-path li { position: relative; z-index: 1; }
.hzs-path .node { width: 45px; height: 45px; border-radius: 50%; display: grid; place-items: center; font: 600 13px var(--f-mono);
  background: var(--pane-solid); border: 2px solid #3a2414; color: var(--fg-3); transition: all .6s var(--ease-o); transition-delay: calc(.4s + var(--i) * .45s); }
.hzs-path .rail.in .node { border-color: var(--acc-2); color: #ffcf9a; box-shadow: 0 0 0 6px rgba(232,131,58,.12), 0 0 24px rgba(255,150,70,.45); }
.hzs-path .k { display: inline-block; margin-top: 20px; font: 500 12px var(--f-mono); color: var(--acc); direction: ltr; }
.hzs-path li b { display: block; font-family: var(--f-display); font-size: clamp(20px, 1.7vw, 25px); font-weight: 800; color: var(--fg); margin-top: 6px; }
.hzs-path li p { color: var(--fg-2); line-height: 1.75; font-size: 15px; margin: 8px 0 0; max-width: 30ch; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzs-path .rail { grid-template-columns: 1fr; gap: 30px; padding-inline-start: 64px; }
  .hzs-path .rail::before, .hzs-path .rail::after { top: 10px; bottom: 10px; height: auto; width: 3px; inset-inline: 21px auto; }
  .hzs-path .rail::after, html[dir="rtl"] .hzs-path .rail::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #8a3b12, var(--acc-2)); }
  .hzs-path .rail.in::after { transform: scaleY(1); }
  .hzs-path .node { position: absolute; inset-inline-start: -64px; top: 0; }
  .hzs-path .k { margin-top: 0; }
}
/* phones: the row of service chips sits at the top; the four steps fit under it as a 2×2 grid */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hz3d-sec.hzs-path { align-items: flex-start; padding-top: calc(var(--head-h) + 33lvh); }
  .hzs-path h2 { font-size: 30px; margin-top: 10px; }
  .hzs-path .rail { grid-template-columns: 1fr 1fr; gap: 18px 16px; padding-inline-start: 0; margin-top: 22px; }
  .hzs-path .rail::before, .hzs-path .rail::after { display: none; }
  .hzs-path .node { position: static; width: 36px; height: 36px; font-size: 12px; }
  .hzs-path .k { margin-top: 10px; }
  .hzs-path li b { font-size: 18px; margin-top: 2px; }
  .hzs-path li p { font-size: 13.5px; line-height: 1.6; margin-top: 4px; }
}

/* ================= contact — "serial console" ================= */
.hzc { position: relative; overflow-x: clip; --pin: #c9954e; }
.hzc > section { position: relative; z-index: 1; }
.hzc-hero { min-height: 92svh; display: grid; align-content: center; padding: calc(var(--head-h) + 24px) 0 clamp(28px, 5vh, 56px); }
.hzc-hero .hz-wrap { position: relative; }
.hzc-hero .hz-wrap > * { max-width: min(640px, 100%); }
.hzc-hero .scrim { inset: -30% auto -30% -20%; width: min(900px, 120%); max-width: none; }
html[dir="rtl"] .hzc-hero .scrim { left: auto; right: -20%; }
.hzc-hero h1 { font-family: var(--f-display); font-weight: 900; font-size: clamp(42px, 6.4vw, 112px); line-height: 1.1; margin: 20px 0 0; color: var(--fg); }
html[dir="ltr"] .hzc-hero h1 { font-weight: 800; letter-spacing: -.035em; line-height: 1.02; font-size: clamp(40px, 5.8vw, 100px); }
.hzc-hero h1 .l { display: block; }
.hzc-hero .lead { font-size: clamp(16px, 1.3vw, 19px); line-height: 1.8; color: var(--fg-2); max-width: 52ch; margin-top: 20px; }

.hzc-main { padding-bottom: clamp(70px, 12vh, 140px); }
.hzc-main .hz-wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }

/* the console window */
.hzc .term { border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: rgba(var(--pane-rgb),.88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 40px 100px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(232,131,58,.04) inset; }
.hzc .term .bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--pane-solid); direction: ltr; }
.hzc .term .dots { display: flex; gap: 7px; }
.hzc .term .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a211c; }
.hzc .term .dots i:first-child { background: var(--acc); }
.hzc .term .tt { font: 500 12.5px var(--f-mono); color: var(--fg-3); flex: 1; text-align: center; }
.hzc .term .led { display: inline-flex; gap: 7px; align-items: center; font: 600 11px var(--f-mono); color: var(--fg-3); letter-spacing: .1em; }

.hzc-form { padding: clamp(18px, 2.6vw, 32px); position: relative; }
.hzc-form .row { display: grid; grid-template-columns: 170px 14px minmax(0, 1fr); align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px dashed var(--line-2); transition: border-color .3s; }
.hzc-form .row:focus-within { border-bottom-color: rgba(var(--acc2-rgb),.6); }
.hzc-form label { font: 500 13px var(--f-mono); color: var(--fg-3); display: flex; gap: 10px; align-items: baseline; transition: color .3s; }
html[dir="rtl"] .hzc-form label { font-family: var(--f-body); font-size: 14.5px; }
.hzc-form label .n { font: 500 11px var(--f-mono); color: #6e4a2c; }
.hzc-form .row:focus-within label { color: #ffcf9a; }
.hzc-form .pr { color: var(--acc); font: 700 16px var(--f-mono); }
/* contact e-mail check: the code row, a resend link, and notes about earlier messages in the log */
.hzc-form .r-otp input { letter-spacing: .5em; font-family: var(--f-mono); }
.hzc-form .resend { background: none; border: 0; padding: 0; color: var(--acc); font: 500 13px var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.hzc-form .resend:disabled { opacity: .5; cursor: default; }
/* contact page buttons lower than the site's 56px; in Arabic "resend code" sits to the right of the send button */
.hzc-form .act .hz3d-b1, .hzc .pinout .wa { height: 44px; padding: 0 20px; font-size: 15px; }
html[dir="rtl"] .hzc-form .act .resend { order: -1; }
/* Chrome's autofill paints a box behind the name / e-mail it fills in: keep the field see-through, text in the site's colour */
.hzc-form :is(input, textarea):is(:-webkit-autofill, :autofill) { -webkit-text-fill-color: var(--fg); caret-color: var(--acc-2);
  -webkit-background-clip: text; background-clip: text; box-shadow: inset 0 0 0 1000px transparent; transition: background-color 99999s 0s, color 99999s 0s; }
html[dir="rtl"] .hzc-form .pr { transform: scaleX(-1); display: inline-block; }
.hzc-form input, .hzc-form textarea { width: 100%; background: transparent; border: 0; outline: 0; color: var(--fg); font: 400 16.5px var(--f-body);
  caret-color: var(--acc-2); padding: 2px 0; resize: vertical; line-height: 1.7; }
.hzc-form input::placeholder, .hzc-form textarea::placeholder { color: #4d443c; }
.hzc-form input[dir="ltr"] { text-align: start; }
html[dir="rtl"] .hzc-form input[dir="ltr"] { text-align: right; }
.hzc-form .r-message { grid-template-columns: 170px 14px minmax(0, 1fr); align-items: start; }
.hzc-form .r-message label, .hzc-form .r-message .pr { padding-top: 4px; }
.hzc-form .hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.hzc-form .act { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.hzc-form .act button { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.hzc-form .act button:disabled { opacity: .6; cursor: progress; transform: none; }
.hzc-form .hint { font: 500 12px var(--f-mono); color: var(--fg-3); }

.hzc-form .log { margin-top: 26px; padding: 14px 16px; border-radius: 12px; background: var(--pane-solid); border: 1px solid var(--line);
  font: 500 12.5px/1.9 var(--f-mono); color: var(--fg-2); min-height: 92px; }
html[dir="rtl"] .hzc-form .log { font-family: var(--f-mono), var(--f-body); }
.hzc-form .log .ln { display: flex; gap: 10px; align-items: baseline; animation: hzcLn .35s var(--ease-o) both; }
.hzc-form .log .ln > span { min-width: 0; }
@keyframes hzcLn { from { opacity: 0; transform: translateY(4px); } }
.hzc-form .log b { font-weight: 600; direction: ltr; unicode-bidi: isolate; white-space: pre; flex: none; }
.hzc-form .log .ok b { color: #5ee39a; }
.hzc-form .log .wait b { color: var(--fg-3); }
.hzc-form .log .tx b { color: var(--acc-2); }
.hzc-form .log .inf b { color: #8fb8ff; } .hzc-form .log .inf span { color: var(--fg); }
.hzc-form .log .ack { color: var(--fg); }
.hzc-form .log .ack b { color: #5ee39a; }
.hzc-form .log .err b, .hzc-form .log .err { color: #ff8a7a; }
.hzc-form .caret { display: inline-block; width: 8px; height: 15px; background: var(--acc-2); vertical-align: -2px; animation: hzsBlink 1s steps(1) infinite; }

/* the wire to the chip; a packet runs along it while sending */
.hzc-form .wire { display: flex; align-items: center; gap: 0; margin-top: 22px; direction: ltr; }
html[dir="rtl"] .hzc-form .wire { flex-direction: row-reverse; }
.hzc-form .wire .port { font: 600 11px var(--f-mono); color: var(--fg-3); letter-spacing: .1em; border: 1px solid var(--line-2); border-radius: 6px; padding: 5px 8px; }
.hzc-form .wire .line { flex: 1; height: 3px; background: #3a2414; position: relative; margin: 0 -1px; }
.hzc-form .wire .chip { font: 800 15px var(--nf-display-en), sans-serif; color: var(--acc); width: 54px; height: 40px; display: grid; place-items: center;
  background: var(--pane-solid-2); border: 1px solid var(--line-2); border-radius: 7px; position: relative; transition: box-shadow .4s, border-color .4s; }
.hzc-form .wire .chip svg { width: 26px; height: auto; display: block; }
.hzc-form .wire .chip::before, .hzc-form .wire .chip::after { content: ""; position: absolute; inset-inline: 8px; height: 5px;
  background: repeating-linear-gradient(90deg, var(--pin) 0 5px, transparent 5px 10px); }
.hzc-form .wire .chip::before { top: -6px; } .hzc-form .wire .chip::after { bottom: -6px; }
.hzc-form .wire .pkt { position: absolute; top: 50%; left: 0; width: 26px; height: 7px; margin-top: -3.5px; border-radius: 4px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--acc-2)); box-shadow: 0 0 14px rgba(255,160,80,.9); }
html[dir="rtl"] .hzc-form .wire .pkt { left: auto; right: 0; background: linear-gradient(270deg, transparent, var(--acc-2)); }
.hzc-form.st-tx .wire .line { background: linear-gradient(90deg, #8a3b12, var(--acc-2)); }
.hzc-form.st-tx .wire .pkt { animation: hzcPkt .55s linear .2s 3; }
html[dir="rtl"] .hzc-form.st-tx .wire .pkt { animation-name: hzcPktR; }
@keyframes hzcPkt { 0% { left: 0; opacity: 1; } 100% { left: calc(100% - 26px); opacity: 1; } }
@keyframes hzcPktR { 0% { right: 0; opacity: 1; } 100% { right: calc(100% - 26px); opacity: 1; } }
.hzc-form.st-tx .wire .chip, .hzc-form.st-ack .wire .chip { border-color: rgba(var(--acc2-rgb),.6); box-shadow: 0 0 30px rgba(232,131,58,.45); }
.hzc-form.st-ack .wire .line { background: linear-gradient(90deg, #8a3b12, #5ee39a); }

/* the pinout of contact channels */
.hzc .pinout { border: 1px solid var(--line-2); border-radius: 18px; background: linear-gradient(180deg, rgba(var(--pane-rgb),.9), rgba(var(--pane-rgb),.88)); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); padding: 22px 22px 20px; position: relative; }
.hzc .pinout .hd { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.hzc .pinout .hd b { font: 600 13px var(--f-mono); color: var(--acc); letter-spacing: .06em; direction: ltr; }
.hzc .pinout .hd span { color: var(--fg-3); font-size: 13.5px; }
.hzc .pinout ol { list-style: none; padding: 0; margin: 6px 0 0; position: relative; }
/* the connector's spine */
.hzc .pinout ol::before { content: ""; position: absolute; inset-inline-start: 15px; top: 22px; bottom: 22px; width: 2px; background: #3a2414; }
.hzc .pinout li { display: grid; grid-template-columns: 32px 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); position: relative; }
.hzc .pinout li:last-child { border-bottom: 0; }
.hzc .pinout .pad { width: 32px; height: 32px; border-radius: 7px; display: grid; place-items: center; font: 600 12px var(--f-mono); color: #1a0d04;
  background: linear-gradient(180deg, #e6b06a, #a8702f); box-shadow: 0 0 0 3px #0a0807; position: relative; z-index: 1; transition: box-shadow .3s; }
.hzc .pinout li:first-child .pad { border-radius: 2px; }
.hzc .pinout li:hover .pad { box-shadow: 0 0 0 3px #0a0807, 0 0 18px rgba(255,160,80,.7); }
.hzc .pinout .sig { font: 600 11.5px var(--f-mono); color: var(--fg-3); letter-spacing: .08em; direction: ltr; text-align: start; }
.hzc .pinout .v { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hzc .pinout .v small { color: var(--fg-3); font-size: 12px; }
.hzc .pinout .v a, .hzc .pinout .v span { color: var(--fg); text-decoration: none; font-size: 14.5px; overflow-wrap: anywhere; line-height: 1.5; }
.hzc .pinout .v a:hover { color: var(--acc-2); }
.hzc .pinout .v [dir="ltr"] { align-self: flex-start; }
.hzc .pinout .soc { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.hzc .pinout .soc small { color: var(--fg-3); font-size: 12px; }
.hzc .pinout .soc div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.hzc .pinout .soc a { display: inline-flex; gap: 8px; align-items: center; padding: 7px 12px; border: 1px solid var(--line-2); border-radius: 99px; color: var(--fg-2);
  text-decoration: none; font-size: 13px; transition: border-color .3s, color .3s; }
.hzc .pinout .soc a:hover { border-color: rgba(var(--acc2-rgb),.5); color: var(--fg); }
.hzc .pinout .st { display: flex; gap: 10px; align-items: center; margin-top: 18px; color: var(--fg-2); font-size: 13.5px; }

@media (max-width: 960px) {
  .hzc-main .hz-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hzc-form .row, .hzc-form .r-message { grid-template-columns: 14px minmax(0, 1fr); row-gap: 4px; }
  .hzc-form label { grid-column: 1 / -1; }
  .hzc .term .tt { font-size: 11px; }
}
@media (hover: none) { .hzc-form .hint { display: none; } }

/* ================= about — "inside the chip" ================= */
.hza h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.6vw, 76px); line-height: 1.1; letter-spacing: -.035em; margin: 18px 0 0; color: var(--fg); }
html[dir="rtl"] .hza h2 { font-weight: 900; line-height: 1.3; letter-spacing: 0; }
.hza .hz3d-hero h1 .l { white-space: normal; }
.hza .hz3d-hero .panel { max-width: 760px; }
.hza .hz3d-hero h1 { font-size: clamp(40px, 6vw, 108px); }
html[dir="rtl"] .hza .hz3d-hero h1 { font-size: clamp(38px, 6vw, 108px); }
.hza .hz3d-hero .lead { max-width: 58ch; font-size: clamp(16px, 1.2vw, 19px); }

.hza-stats { align-items: flex-end; }
.hza-stats .hz3d-nums { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.hza-stats .hz3d-nums > div { padding: 28px; }
html body .hza-stats .hz3d-nums b { font-size: clamp(56px, 6vw, 104px); }
@media (max-width: 1100px) { .hza-stats .hz3d-nums { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .hza-stats .hz3d-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hza-stats .hz3d-nums > div { padding: 16px 16px 14px; border-radius: 16px; }
  html body .hza-stats .hz3d-nums b { font-size: 44px; }
  .hza-stats .hz3d-nums p { font-size: 13.5px; line-height: 1.6; margin-top: 6px; }
  .hz3d-sec.hza-stats { padding-bottom: 6svh; }
}

.hza-ach .panel { max-width: 680px; }
.hza-ach ol { list-style: none; padding: 6px 22px; margin: 30px 0 0; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hza-ach li:last-child { border-bottom: 0; }
.hza-ach li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 16px; align-items: start; padding: 16px 0; border-bottom: 1px dashed var(--line-2); color: var(--fg-2); font-size: clamp(15px, 1.1vw, 17px); line-height: 1.8; }
.hza-ach .cell { font: 600 12px var(--f-mono); color: #1a0d04; background: linear-gradient(180deg, #e6b06a, #a8702f); border-radius: 6px; height: 30px; display: grid; place-items: center; margin-top: 2px; box-shadow: 0 0 18px rgba(232,131,58,.35); }

.hza-stack { align-items: flex-end; }
.hza-stack .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 30px; }
.hza-stack .blk { padding: 22px 24px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hza-stack .blk .id { font: 600 11.5px var(--f-mono); color: var(--acc); letter-spacing: .08em; direction: ltr; display: inline-block; }
.hza-stack .blk h3 { font: 700 19px var(--f-display); color: var(--fg); margin: 14px 0 8px; direction: ltr; text-align: start; }
.hza-stack .blk p { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.7; direction: ltr; text-align: start; }
@media (max-width: 960px) { .hza-stack .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hza-stack .grid { grid-template-columns: 1fr; } }

.hza-edu .panel { max-width: 640px; }
.hza-edu .deg { margin-top: 28px; padding: 20px 22px; border-radius: 16px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hza-edu .deg .when { font: 500 12.5px var(--f-mono); color: var(--acc); direction: ltr; display: inline-block; }
.hza-edu .deg h3 { font: 700 clamp(20px, 1.8vw, 26px) var(--f-display); color: var(--fg); margin: 8px 0 6px; }
.hza-edu .deg .co { color: var(--fg-2); font-size: 15px; }
.hza-edu h4 { font: 500 12.5px var(--f-mono); color: var(--fg-3); margin: 28px 0 12px; letter-spacing: .06em; }
html[dir="rtl"] .hza-edu h4 { font-family: var(--f-body); font-size: 14px; }
.hza-edu .certs { display: flex; flex-wrap: wrap; gap: 8px; }
.hza-edu .certs span { font-size: 13.5px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-2); color: var(--fg-2); background: rgba(var(--ink-rgb),.03); }
.hza-edu .langs { color: var(--fg-2); margin: 0; }
.hza-edu .langs strong { color: var(--fg); }
html[dir] body .hza :is(.cell, .blk .id, .deg .when) { font-family: var(--f-mono) !important; }

/* ================= courses — "eprom programmer" ================= */
.hzk .cu { padding: .2em .06em .45em; margin: -.2em -.06em -.45em; background: linear-gradient(100deg, #ffcf9a 0%, var(--acc) 45%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hzk-c .num { margin-bottom: -.05em; }
/* phones: the big outlined part number sits on the 3D chip; keep it as a quiet mark, not a layer over it */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  html body .hzk-c .num { font-size: 72px; -webkit-text-stroke-color: rgba(var(--acc2-rgb),.32); }
}
.hzk-c .pn { display: inline-flex; font: 600 13px var(--f-mono); color: var(--acc); letter-spacing: .08em; margin: 6px 0 14px; direction: ltr; }
.hzk-c h3 { font-size: clamp(30px, 3.6vw, 60px); }
/* title: two lines at most; description: three lines + a "read more" link */
/* course title: whole (no "…"), the page's language first; the other language on its own smaller line */
.hzk-c h3 { display: block; overflow-wrap: anywhere; }
html body .hzk-c h3 .alt { display: block; margin-top: .35em; font: 600 clamp(15px, 1.5vw, 20px)/1.35 var(--f-body) !important; letter-spacing: 0; color: var(--fg-2); }
.hzk-c .desc .rmore { color: var(--acc); font-weight: 600; text-decoration: none; white-space: nowrap; border: 0; margin-inline-start: 4px; }
.hzk-c .desc .rmore:hover { color: var(--acc-2); text-decoration: underline; }
.hzk-c .acts { margin-top: 28px; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzk-c .acts { justify-content: center; margin-top: 9px; } .hzk-c .acts > a { flex: 0 0 75%; justify-content: center; text-align: center; } }
.hzk-c .thumb { display: block; width: min(420px, 100%); aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; border: 1px solid var(--line-2); margin-top: 22px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.hzk-c .spec { margin: 24px 0 0; max-width: 440px; border-top: 1px dashed var(--line-2); }
.hzk-c .spec > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); }
.hzk-c dt { font: 500 12px var(--f-mono); color: var(--fg-3); }
html[dir="rtl"] .hzk-c dt { font-family: var(--f-body); font-size: 13.5px; }
.hzk-c dd { margin: 0; color: var(--fg-2); font-size: 15px; }
.hzk-c dd b { color: var(--fg); font-weight: 600; }
.hzk-c dd .free { color: #5ee39a; }
.hzk-c dd:has(.off) { display: flex; align-items: center; gap: 8px; } /* price and discount: a real gap whatever the text direction */
.hzk-c dd .off { margin: 0; font: 600 12px var(--f-mono); color: #1a0d04; background: var(--acc-2); border-radius: 6px; padding: 2px 6px; }
.hzk-c .go { margin-top: 28px; }
/* picture, description, specs and button share one column width */
.hzk-c .thumb, .hzk-c .desc, .hzk-c .spec, .hzk-c .acts { width: 100%; max-width: 440px; box-sizing: border-box; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzk-c .acts { margin-top: 18px; } .hzk-c .acts > a { flex: 1 1 100%; } }
html[dir] body .hzk-c .pn { font-family: var(--f-mono) !important; }

/* ================= course — "inside the eprom" ================= */
.hzk1-hero { align-items: center; }
.hzk1-hero .panel { max-width: 640px; }
.hzk1 .back { display: inline-flex; gap: 8px; align-items: center; color: var(--fg-2); text-decoration: none; font-size: 14px; margin-bottom: 22px; }
.hzk1 .back:hover { color: var(--fg); }
html[dir="ltr"] .hzk1 .back .ar { transform: none; }
html[dir="rtl"] .hzk1 .back .ar { transform: scaleX(-1); }
.hzk1-hero .hz3d-eye { display: flex; }
.hzk1-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 4vw, 64px); line-height: 1.2; letter-spacing: -.03em; margin: 16px 0 0; color: var(--fg); }
html[dir="rtl"] .hzk1-hero h1 { font-weight: 900; letter-spacing: 0; line-height: 1.35; }
.hzk1-hero .desc { white-space: pre-line; color: var(--fg-2); font-size: clamp(15px, 1.15vw, 17.5px); line-height: 1.9; margin-top: 18px; max-height: 13.5em; overflow: auto; }
.hzk1-hero .meta { display: flex; gap: 18px; margin-top: 16px; color: var(--fg-3); font-size: 14px; }
.hzk1-hero .meta b { color: var(--fg); font-weight: 600; }
.hzk1 .access { display: grid; grid-template-columns: minmax(0, 230px) minmax(0, 1fr); gap: 0; margin-top: 28px; border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line-2); background: linear-gradient(180deg, rgba(var(--pane-rgb),.78), rgba(var(--pane-rgb),.78)); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(var(--acc2-rgb),.08); }
.hzk1 .access:not(:has(img)) { grid-template-columns: 1fr; }
.hzk1 .access img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 12px; background: rgba(0,0,0,.35); border-inline-end: 1px solid var(--line-2); }
.hzk1 .access .body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; min-width: 0; }
.hzk1 .access .lbl { font: 600 11px var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--acc); direction: ltr; text-align: start; }
.hzk1 .access .price { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2); }
.hzk1 .access .price > * { direction: ltr; unicode-bidi: isolate; }
.hzk1 .access .course-price-final { order: 1; font: 700 clamp(28px, 2.6vw, 36px)/1 var(--nf-display-en), sans-serif; color: var(--fg); letter-spacing: -.02em; }
.hzk1 .access .course-price-old { order: 2; color: var(--fg-3); text-decoration: line-through; font-size: 16px; font-weight: 500; }
.hzk1 .access .course-price-badge { order: 3; font: 700 12px var(--f-mono); color: #1a0d04; background: linear-gradient(180deg, #ffcf9a, var(--acc)); border-radius: 99px; padding: 4px 9px; }
.hzk1 .access .price .free { font: 700 30px var(--f-display); color: #5ee39a; }
.hzk1 .access .hint { margin: 0; color: var(--fg-3); font-size: 13.5px; line-height: 1.7; }
.hzk1 .access form { margin: 0; display: block; }
.hzk1 .access :is(a.hz3d-b1, button.hz3d-b1) { width: 100%; justify-content: center; height: 50px; padding: 0 22px; border: 0; cursor: pointer; font: inherit; font-weight: 600; margin-top: auto; }
@media (max-width: 560px) {
  .hzk1 .access { grid-template-columns: 1fr; }
  .hzk1 .access img { height: auto; aspect-ratio: 16 / 9; border-inline-end: 0; border-bottom: 1px solid var(--line-2); }
}
.hzk1 .badge { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 99px; }
.hzk1 .badge.ok { color: #5ee39a; background: rgba(94,227,154,.1); }
.hzk1 .badge.wait { color: var(--acc-2); background: rgba(var(--acc2-rgb),.1); }
.hzk1-hero .hint-down { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; color: var(--fg-3); text-decoration: none; font-size: 12px; }
.hzk1-hero .hint-down i { width: 1px; height: 42px; background: linear-gradient(var(--acc), transparent); animation: hzScroll 2.2s var(--ease-o) infinite; transform-origin: top; }
@media (max-width: 560px) { .hzk1-hero .hint-down { display: none; } }

.hzk1-bank { align-items: flex-start; }
.hzk1-bank .panel { max-width: 600px; }
.hzk1-bank .addr { display: block; margin-top: 10px; font: 600 12.5px var(--f-mono); color: var(--acc); letter-spacing: .08em; text-transform: uppercase; direction: ltr; text-align: start; }
.hzk1-bank h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(28px, 3.2vw, 52px); line-height: 1.25; margin: 12px 0 0; color: var(--fg); }
html[dir="rtl"] .hzk1-bank h2 { font-weight: 900; }
.hzk1-bank ol { list-style: none; margin: 24px 0 0; padding: 6px 20px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hzk1-bank li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--line); color: var(--fg-2); font-size: 15px; line-height: 1.6; }
.hzk1-bank li:last-child { border-bottom: 0; }
.hzk1-bank .cell { font: 600 11.5px var(--f-mono); color: #1a0d04; background: linear-gradient(180deg, #e6b06a, #a8702f); border-radius: 5px; height: 24px; display: grid; place-items: center; }
.hzk1-empty { position: relative; z-index: 1; padding: 0 0 120px; color: var(--fg-2); }
html[dir] body .hzk1 :is(.addr, .cell, .hz3d-eye) { font-family: var(--f-mono) !important; }

/* ================= projects — "assembly bay" ================= */
.hzp { --st-proposal: var(--acc-2); --st-approved: #7fb8ff; --st-received: var(--acc); --st-delivered: #5ee39a; --st-completed: #5ee39a; }
.hzp .cu { padding: .2em .06em .45em; margin: -.2em -.06em -.45em; background: linear-gradient(100deg, #ffcf9a 0%, var(--acc) 45%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hzp-head { min-height: 78svh; }
.hzp-head .panel { max-width: 620px; }
.hzp-head h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 5.4vw, 92px); line-height: 1.1; letter-spacing: -.04em; margin: 18px 0 0; color: var(--fg); }
html[dir="rtl"] .hzp-head h1 { font-weight: 900; line-height: 1.3; letter-spacing: 0; }
.hzp-head .lead { color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); margin-top: 18px; }
.hzp-head .readout { display: flex; gap: 0; margin-top: 26px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: rgba(var(--pane-rgb),.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: fit-content; }
.hzp-head .readout div { padding: 14px 22px; display: grid; gap: 4px; border-inline-end: 1px solid var(--line); }
.hzp-head .readout div:last-child { border-inline-end: 0; }
.hzp-head .readout b { font: 300 32px/1 var(--nf-display-en), sans-serif; color: var(--fg); direction: ltr; text-align: start; }
.hzp-head .readout span { font-size: 12.5px; color: var(--fg-3); }

.hzp-list { align-items: flex-start; padding-top: calc(var(--head-h) + 20px); }
.hzp .controls { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px; border-radius: 18px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hzp .search { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 12px; background: rgba(var(--ink-rgb),.03); border: 1px solid var(--line); color: var(--fg-3); }
.hzp .search:focus-within { border-color: rgba(var(--acc2-rgb),.5); }
.hzp .search input { flex: 1; background: none; border: 0; outline: 0; color: var(--fg); font: inherit; font-size: 15px; min-width: 0; }
.hzp .tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.hzp .filter-btn { display: inline-flex; gap: 8px; align-items: center; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid transparent; background: none; color: var(--fg-2); font: inherit; font-size: 14px; cursor: pointer; transition: all .25s; }
.hzp .filter-btn small { font: 600 11px var(--f-mono); color: var(--fg-3); }
.hzp .filter-btn:hover { color: var(--fg); background: rgba(var(--ink-rgb),.04); }
.hzp .filter-btn.active { color: var(--fg); border-color: rgba(var(--acc2-rgb),.45); background: rgba(232,131,58,.1); }
.hzp .dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hzp .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin-top: 18px; }
.hzp .project-card { border-radius: 18px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); overflow: hidden; display: flex; flex-direction: column; transition: border-color .3s, transform .3s var(--ease-o); }
.hzp .project-card:hover { border-color: rgba(var(--acc2-rgb),.4); transform: translateY(-3px); }
.hzp .project-card .img { position: relative; display: block; aspect-ratio: 16 / 8; background: var(--pane-solid); }
.hzp .project-card .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hzp .project-card .ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 34px; color: #3a2414;
  background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(214,161,90,.05) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, rgba(214,161,90,.05) 15px 16px); }
.hzp .st { position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; gap: 7px; align-items: center; padding: 5px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; color: var(--fg); background: rgba(var(--pane-rgb),.75); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hzp .st i { width: 7px; height: 7px; border-radius: 50%; }
.hzp .st.st-proposal i, .hzp .dot.st-proposal { background: var(--st-proposal); box-shadow: 0 0 8px var(--st-proposal); }
.hzp .st.st-approved i, .hzp .dot.st-approved { background: var(--st-approved); box-shadow: 0 0 8px var(--st-approved); }
.hzp .st.st-received i, .hzp .dot.st-received { background: var(--st-received); box-shadow: 0 0 8px var(--st-received); }
.hzp .st.st-delivered i, .hzp .dot.st-delivered, .hzp .st.st-completed i, .hzp .dot.st-completed { background: var(--st-completed); box-shadow: 0 0 8px var(--st-completed); }
.hzp .project-card .body { padding: 18px 20px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.hzp .row1 { display: flex; justify-content: space-between; gap: 10px; font: 500 12px var(--f-mono); color: var(--fg-3); }
.hzp .row1 .pn { color: var(--acc); letter-spacing: .06em; direction: ltr; }
.hzp .project-card h3 { text-align: start; margin: 0; font: 700 19px/1.4 var(--f-display); }
.hzp .project-card h3 a { color: var(--fg); text-decoration: none; }
.hzp .project-card h3 a:hover { color: var(--acc-2); }
.hzp .description { margin: 0; color: var(--fg-2); font-size: 14px; line-height: 1.7; }
.hzp .meter { margin-top: auto; padding-top: 6px; }
.hzp .meter .lbl { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--fg-3); }
.hzp .meter .lbl b { font: 600 12.5px var(--f-mono); color: var(--fg); }
.hzp .meter .bar { height: 6px; border-radius: 99px; background: rgba(var(--ink-rgb),.06); margin-top: 7px; overflow: hidden; }
.hzp .meter .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a3b12, var(--acc-2)); box-shadow: 0 0 12px rgba(232,131,58,.6); }
html[dir="rtl"] .hzp .meter .bar i { background: linear-gradient(270deg, #8a3b12, var(--acc-2)); margin-inline-start: 0; }
.hzp .foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.hzp .budget { display: grid; gap: 2px; }
.hzp .budget small { font-size: 11.5px; color: var(--fg-3); }
.hzp .budget b { font-weight: 600; color: var(--fg); font-size: 15px; }
.hzp .acts { display: inline-flex; gap: 8px; align-items: center; }
.hzp .acts .ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--fg-2); text-decoration: none; }
.hzp .acts .ic:hover { color: var(--fg); border-color: rgba(var(--acc2-rgb),.5); }
.hzp .acts .go { height: 38px; padding: 0 14px; border-radius: 10px; display: inline-flex; gap: 8px; align-items: center; background: var(--fg); color: var(--bg); font-weight: 600; font-size: 14px; text-decoration: none; }
.hzp .acts .go:hover { background: var(--acc-2); }
html[dir="rtl"] .hzp .ar { transform: scaleX(-1); display: inline-block; }
.hzp .empty { max-width: 520px; margin-inline: auto; text-align: center; padding: 40px 28px; border-radius: 20px; border: 1px dashed rgba(var(--acc2-rgb),.35); background: rgba(var(--pane-rgb),.7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hzp .empty h3 { font: 800 28px var(--f-display); color: var(--fg); margin: 14px 0 8px; }
.hzp .empty p { color: var(--fg-2); margin: 0 0 22px; }
.hzp .empty .hz3d-eye { justify-content: center; }
@media (max-width: 560px) { .hzp .grid { grid-template-columns: 1fr; } .hzp-head .readout div { padding: 12px 16px; } }
html[dir] body .hzp :is(.row1, .filter-btn small, .meter .lbl b) { font-family: var(--f-mono) !important; }

/* ================= project detail — "bring-up bench" ================= */
.hzpd-hero { min-height: 92svh; }
.hzpd-hero .panel { max-width: 640px; }
.hzpd .back { display: inline-flex; gap: 8px; align-items: center; color: var(--fg-3); text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.hzpd .back:hover { color: var(--fg); }
html[dir="rtl"] .hzpd .ar { transform: scaleX(-1); display: inline-block; }
.hzpd-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.15; letter-spacing: -.035em; margin: 16px 0 0; color: var(--fg); overflow-wrap: anywhere; }
html[dir="rtl"] .hzpd-hero h1 { font-weight: 900; line-height: 1.35; letter-spacing: 0; }
.hzpd .meta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 18px; }
.hzpd .meta .st { position: static; }
.hzpd .meta .mono { font: 500 12.5px var(--f-mono); color: var(--fg-3); direction: ltr; }
.hzpd-hero .readout { display: flex; margin-top: 24px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: rgba(var(--pane-rgb),.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: fit-content; }
.hzpd-hero .readout div { padding: 14px 22px; display: grid; gap: 4px; border-inline-end: 1px solid var(--line); }
.hzpd-hero .readout div:last-child { border-inline-end: 0; }
.hzpd-hero .readout b { font: 300 32px/1 var(--nf-display-en), sans-serif; color: var(--fg); direction: ltr; text-align: start; }
.hzpd-hero .readout span { font-size: 12.5px; color: var(--fg-3); }
.hzpd .track { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; max-width: 560px; }
.hzpd .track::before { content: ""; position: absolute; top: 8px; inset-inline: 10%; height: 2px; background: rgba(214,161,90,.25); }
.hzpd .track li { position: relative; display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 12.5px; color: var(--fg-3); }
.hzpd .track li i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(214,161,90,.5); background: var(--pane-solid); position: relative; z-index: 1; }
.hzpd .track li.done { color: var(--fg-2); }
.hzpd .track li.done i { background: #d6a15a; border-color: #d6a15a; }
.hzpd .track li.now { color: var(--fg); font-weight: 600; }
.hzpd .track li.now i { background: #ff8a3d; border-color: #ffcf9a; box-shadow: 0 0 0 5px rgba(255,138,61,.18), 0 0 18px #ff8a3d; animation: hzpdPulse 1.6s ease-in-out infinite; }
@keyframes hzpdPulse { 50% { box-shadow: 0 0 0 9px rgba(255,138,61,.08), 0 0 26px #ff8a3d; } }
.hzpd .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hzpd .btns form { margin: 0; }

/* shared buttons and inputs */
.hzpd .b { height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.04); color: var(--fg); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; justify-content: center; width: 100%; transition: all .25s; }
.hzpd .btns .b { width: auto; }
.hzpd .b:hover { border-color: rgba(var(--acc2-rgb),.5); }
.hzpd .b.primary { background: var(--fg); color: var(--bg); border-color: transparent; }
.hzpd .b.primary:hover { background: var(--acc-2); }
.hzpd .b.success { color: #5ee39a; border-color: rgba(94,227,154,.35); background: rgba(94,227,154,.07); }
.hzpd .b.warning { color: var(--acc-2); border-color: rgba(var(--acc2-rgb),.35); background: rgba(var(--acc2-rgb),.07); }
.hzpd .b.danger { color: #ff7a6b; border-color: rgba(255,122,107,.3); background: rgba(255,122,107,.06); }
.hzpd .b.danger:hover { background: rgba(255,122,107,.14); }
.hzpd .ic { width: 40px; height: 40px; flex: none; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--fg-2); cursor: pointer; text-decoration: none; font-size: 14px; }
.hzpd .ic:hover { color: var(--fg); border-color: rgba(var(--acc2-rgb),.5); }
.hzpd .ic.danger:hover { color: #ff7a6b; border-color: rgba(255,122,107,.5); }
.hzpd :is(input[type=text], input[type=url], input[type=number], select) { height: 40px; min-width: 0; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(var(--ink-rgb),.03); color: var(--fg); font: inherit; font-size: 14px; outline: 0; }
.hzpd :is(input, select):focus { border-color: rgba(var(--acc2-rgb),.5); }
.hzpd select option { background: var(--pane-solid); }
.hzpd form { margin: 0; }
.hzpd .inline { display: flex; gap: 8px; align-items: center; }
.hzpd .inline input { flex: 1; }
.hzpd .inline .b { width: auto; flex: none; height: 40px; }

/* body: cards over the board */
.hzpd-body { align-items: flex-start; padding-top: calc(var(--head-h) + 20px); padding-bottom: 80px; }
.hzpd .cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hzpd .col { display: grid; gap: 16px; }
.hzpd .side { position: sticky; top: calc(var(--head-h) + 20px); }
.hzpd .card { border-radius: 18px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 20px 22px; }
.hzpd .card h3 { display: flex; gap: 10px; align-items: center; margin: 0 0 14px; font: 700 18px/1.4 var(--f-display); color: var(--fg); text-align: start; }
.hzpd .ref { font: 600 11px var(--f-mono); color: var(--acc); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(var(--acc2-rgb),.3); direction: ltr; }
.hzpd .hd { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hzpd .hd h3 { margin: 0; }
.hzpd .hd .inline { flex: 1 1 220px; max-width: 320px; }
.hzpd .desc { color: var(--fg-2); line-height: 1.85; font-size: 15px; overflow-wrap: anywhere; }
.hzpd .team { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.hzpd .mem { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(var(--ink-rgb),.02); }
.hzpd .mem > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hzpd .mem b { font-size: 14.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzpd .mem small { font-size: 12px; color: var(--fg-3); }
.hzpd .chip { width: 38px; height: 38px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 800 16px var(--nf-display-en), sans-serif; color: var(--fg); background: var(--pane-solid-2); position: relative;
  box-shadow: inset 0 0 0 1px rgba(var(--ink-rgb),.06), 0 0 0 3px var(--pane-solid), 0 0 0 4px rgba(214,161,90,.45); }
.hzpd .mem.lead .chip { color: var(--acc-2); }
.hzpd .x { width: 30px; height: 30px; border-radius: 8px; border: 0; background: none; color: var(--fg-3); cursor: pointer; }
.hzpd .x:hover { color: #ff7a6b; background: rgba(255,122,107,.08); }
.hzpd .upload { display: grid; grid-template-columns: auto 1fr 1.3fr auto; gap: 8px; margin-bottom: 14px; }
.hzpd .files { display: grid; gap: 8px; }
.hzpd .file { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); }
.hzpd .fi { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; color: var(--fg-3); background: rgba(var(--ink-rgb),.03); }
.hzpd .fi.sol { color: #5ee39a; }
.hzpd .fn { flex: 1; min-width: 0; display: grid; gap: 2px; }
.hzpd .fn b { font-size: 14.5px; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzpd .fn small { font-size: 12px; color: var(--fg-3); }
.hzpd .fa { display: flex; gap: 6px; }
.hzpd .none { margin: 0; color: var(--fg-3); font-size: 14px; }
.hzpd .tl { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.hzpd .tl li { position: relative; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; padding: 0 0 18px; padding-inline-start: 28px; color: var(--fg-3); font-size: 14.5px; }
.hzpd .tl li:last-child { padding-bottom: 0; }
.hzpd .tl li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 16px; bottom: -2px; width: 2px; background: rgba(214,161,90,.2); }
.hzpd .tl li:last-child::before { display: none; }
.hzpd .tl li i { position: absolute; inset-inline-start: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(214,161,90,.45); background: var(--pane-solid); }
.hzpd .tl li.done { color: var(--fg-2); }
.hzpd .tl li.done i { background: #d6a15a; border-color: #d6a15a; }
.hzpd .tl li.now { color: var(--fg); font-weight: 600; }
.hzpd .tl li.now i { background: #ff8a3d; border-color: #ffcf9a; box-shadow: 0 0 12px #ff8a3d; }
.hzpd .tl em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--acc-2); background: rgba(255,138,61,.12); }
.hzpd .tl time { font: 500 12px var(--f-mono); color: var(--fg-3); direction: ltr; }
.hzpd .log li.done i { width: 10px; height: 10px; top: 6px; inset-inline-start: 2px; background: rgba(214,161,90,.6); border: 0; }
.hzpd .pay .big { display: flex; gap: 8px; align-items: baseline; direction: ltr; justify-content: flex-start; }
html[dir="rtl"] .hzpd .pay .big { justify-content: flex-end; }
.hzpd .pay .big small { font: 600 13px var(--f-mono); color: var(--fg-3); }
.hzpd .pay .big b { font: 300 40px/1 var(--nf-display-en), sans-serif; color: var(--fg); }
.hzpd .caps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin: 18px 0 14px; }
.hzpd .caps i { aspect-ratio: 1; border-radius: 50%; background: #2a2724; box-shadow: inset 0 0 0 2px #3a3632; }
.hzpd .caps i.on { background: #5ee39a; box-shadow: 0 0 10px rgba(94,227,154,.7); }
.hzpd .pay .row { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line-2); font-size: 14px; color: var(--fg-3); }
.hzpd .ok { color: #5ee39a; } .hzpd .warn { color: var(--acc-2); }
.hzpd .req { border-color: rgba(var(--acc2-rgb),.45); }
.hzpd .req p { color: var(--fg-2); margin: 0 0 14px; }
.hzpd .req p b { color: var(--acc-2); }
.hzpd .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hzpd .stack { display: grid; gap: 10px; }
.hzpd .shot { width: 100%; border-radius: 12px; display: block; margin-bottom: 14px; border: 1px solid var(--line); }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hzpd .cols { grid-template-columns: 1fr; } .hzpd .side { position: static; } }
@media (max-width: 560px) {
  .hzpd-hero .readout div { padding: 12px 14px; }
  .hzpd-hero .readout b { font-size: 26px; }
  .hzpd .track li { font-size: 11px; }
  .hzpd .upload { grid-template-columns: 1fr auto; }
  .hzpd .upload select, .hzpd .upload input[name=file_name] { grid-column: 1 / -1; }
  .hzpd .card { padding: 18px 16px; }
}
html[dir] body .hzpd :is(.ref, .meta .mono, .tl time, .pay .big small) { font-family: var(--f-mono) !important; }

/* ================= project create / edit — "layout bench" ================= */
.hzpf-sec { align-items: flex-start; padding-top: calc(var(--head-h) + 28px); padding-bottom: 80px; min-height: 100svh; }
.hzpf .sheet { max-width: 600px; padding: 28px 30px 30px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.76); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hzpf .back { display: inline-flex; gap: 8px; align-items: center; color: var(--fg-3); text-decoration: none; font-size: 14px; margin-bottom: 16px; }
.hzpf .back:hover { color: var(--fg); }
html[dir="rtl"] .hzpf .ar { transform: scaleX(-1); display: inline-block; }
.hzpf h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 52px); line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 0; color: var(--fg); }
html[dir="rtl"] .hzpf h1 { font-weight: 900; line-height: 1.4; letter-spacing: 0; }
.hzpf h1 .cu { display: block; }
.hzpf .lead { color: var(--fg-2); font-size: 15px; line-height: 1.8; margin: 12px 0 0; }
.hzpf .frm { display: grid; gap: 18px; margin-top: 24px; }
.hzpf .fld { display: grid; gap: 8px; min-width: 0; }
.hzpf .fld > span { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.hzpf .ref { font: 600 10.5px var(--f-mono); font-style: normal; color: var(--acc); letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(var(--acc2-rgb),.3); direction: ltr; }
.hzpf :is(input[type=text], input[type=url], input[type=number], textarea, select) { width: 100%; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--fg); font: inherit; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.hzpf :is(input, textarea, select):focus { border-color: rgba(var(--acc2-rgb),.6); box-shadow: 0 0 0 4px rgba(255,138,61,.1); }
.hzpf textarea { resize: vertical; min-height: 140px; line-height: 1.7; }
.hzpf select { height: 48px; }
.hzpf select option { background: var(--pane-solid); }
.hzpf .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.hzpf .money { position: relative; display: block; direction: ltr; }
.hzpf .money b { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font: 600 12px var(--f-mono); color: var(--fg-3); pointer-events: none; }
.hzpf .money input { padding-inline-end: 52px; }
.hzpf .drop { position: relative; display: grid; place-items: center; gap: 8px; min-height: 120px; padding: 18px; border-radius: 14px; border: 1px dashed rgba(var(--acc2-rgb),.4); background: repeating-linear-gradient(0deg, transparent 0 15px, rgba(214,161,90,.04) 15px 16px), repeating-linear-gradient(90deg, transparent 0 15px, rgba(214,161,90,.04) 15px 16px); color: var(--fg-3); text-align: center; cursor: pointer; overflow: hidden; transition: border-color .2s; }
.hzpf .drop:hover, .hzpf .drop.has { border-color: rgba(var(--acc2-rgb),.8); color: var(--fg); }
.hzpf .drop > i { font-size: 24px; color: var(--acc-2); position: relative; }
.hzpf .drop em { font-style: normal; font-size: 14px; position: relative; overflow-wrap: anywhere; }
.hzpf .drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.hzpf .drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.hzpf .fld small { font-size: 12.5px; color: var(--fg-3); line-height: 1.6; }
.hzpf .fld small a { color: var(--acc-2); }
.hzpf .go { width: 100%; justify-content: center; height: 52px; margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzpf-sec { padding-top: calc(var(--head-h) + 14svh); } .hzpf .sheet { padding: 22px 18px 24px; background: rgba(var(--pane-rgb),.84); } }
html[dir] body .hzpf :is(.ref, .money b) { font-family: var(--f-mono) !important; }

/* ================= login / register — "access reader" ================= */
.hzau .cu { padding: .2em .06em .45em; margin: -.2em -.06em -.45em; background: linear-gradient(100deg, #ffcf9a 0%, var(--acc) 45%, #8a3b12 100%); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }
.hzau-sec { min-height: 100svh; padding-top: calc(var(--head-h) + 28px); padding-bottom: 60px; }
.hzau .sheet { max-width: 500px; padding: 30px 30px 26px; border-radius: 22px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.76); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
.hzau h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(32px, 3.4vw, 52px); line-height: 1.15; letter-spacing: -.03em; margin: 14px 0 0; color: var(--fg); }
html[dir="rtl"] .hzau h1 { font-weight: 900; line-height: 1.4; letter-spacing: 0; }
.hzau .lead { color: var(--fg-2); font-size: 15px; line-height: 1.8; margin: 12px 0 0; }
.hzau-form { display: grid; gap: 16px; margin-top: 24px; }
.hzau .fld { display: grid; gap: 8px; min-width: 0; }
.hzau .fld > span { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--fg-2); }
.hzau .fld .aside { margin-inline-start: auto; font-weight: 500; font-size: 13px; color: var(--fg-3); text-decoration: none; }
.hzau .fld .aside:hover { color: var(--acc-2); }
.hzau .ref { font: 600 10.5px var(--f-mono); font-style: normal; color: var(--acc); letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; border: 1px solid rgba(var(--acc2-rgb),.3); direction: ltr; }
.hzau .fld input { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--fg); font: inherit; font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s; }
html[dir="rtl"] .hzau .fld input[dir="ltr"]::placeholder { text-align: right; }
.hzau .fld input:focus { border-color: rgba(var(--acc2-rgb),.6); box-shadow: 0 0 0 4px rgba(255,138,61,.1); }
.hzau .row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.hzau .go { width: 100%; justify-content: center; height: 52px; margin-top: 4px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: 16px; }
html[dir="rtl"] .hzau .ar { transform: scaleX(-1); display: inline-block; }
.hzau .links { margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: grid; gap: 6px; }
.hzau .links p { margin: 0; font-size: 14px; color: var(--fg-3); }
.hzau .links a { color: var(--acc-2); text-decoration: none; font-weight: 600; }
.hzau .links a:hover { text-decoration: underline; }
.hzau .ok { margin-top: 22px; padding: 16px 18px; border-radius: 14px; border: 1px solid rgba(94,227,154,.35); background: rgba(94,227,154,.07); color: var(--fg); line-height: 1.8; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzau-sec { padding-top: calc(var(--head-h) + 14svh); } .hzau .sheet { padding: 22px 18px 22px; background: rgba(var(--pane-rgb),.84); } }
html[dir] body .hzau .ref { font-family: var(--f-mono) !important; }
/* account pages on the access frame: messages and the client-rendered 2FA forms */
.hzau .msg { margin-top: 22px; padding: 16px 18px; border-radius: 14px; line-height: 1.8; color: var(--fg); }
.hzau .msg.good { border: 1px solid rgba(94,227,154,.35); background: rgba(94,227,154,.07); }
.hzau .msg.bad { border: 1px solid rgba(255,122,107,.35); background: rgba(255,122,107,.07); }
.hzau .msg a { color: var(--acc-2); font-weight: 600; }
.hzau a.go { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; text-decoration: none; }
.hzau .legacy { margin-top: 22px; }
.hzau .legacy .auth-form { display: grid; gap: 16px; }
.hzau .legacy p { margin: 0; color: var(--fg-2); line-height: 1.8; font-size: 15px; }
.hzau .legacy a { color: var(--acc-2); font-weight: 600; text-decoration: none; }
.hzau .legacy .form-group { display: grid; gap: 8px; margin: 0; }
.hzau .legacy .form-group > label { font-size: 14px; font-weight: 600; color: var(--fg-2); display: flex; gap: 10px; align-items: center; }
.hzau .legacy input:not([type=checkbox]) { width: 100%; min-width: 0; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(var(--ink-rgb),.03); color: var(--fg); font: inherit; font-size: 15px; outline: 0; }
.hzau .legacy input#code { font-family: var(--f-mono); font-size: 22px; letter-spacing: .4em; text-align: center; direction: ltr; }
.hzau .legacy input:focus { border-color: rgba(var(--acc2-rgb),.6); box-shadow: 0 0 0 4px rgba(255,138,61,.1); }
.hzau .legacy input[type=checkbox] { accent-color: var(--acc); width: 18px; height: 18px; }
.hzau .legacy .submit-btn, .hzau .legacy .cta-btn { width: 100%; height: 52px; border: 0; border-radius: 12px; background: var(--fg); color: var(--bg); font: inherit; font-weight: 700; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: background .25s; }
.hzau .legacy .submit-btn, .hzau .legacy .cta-btn { background: var(--fg) !important; color: var(--bg) !important; }
.hzau .legacy .submit-btn:hover, .hzau .legacy .cta-btn:hover { background: var(--acc-2) !important; }
.hzau .legacy .submit-btn:disabled { opacity: .6; cursor: wait; }
.hzau .legacy img { border-radius: 12px !important; }
.hzau .legacy .verify-icon { font-size: 44px; color: #5ee39a; text-align: center; }
.hzau .legacy .verify-message { text-align: center; }
.hzau .legacy pre, .hzau .legacy code, .hzau .legacy .ltr { direction: ltr; }

/* ================= dashboard — "mainboard" ================= */
.hzd-hero { min-height: 92svh; }
.hzd-hero .panel { max-width: 640px; }
.hzd-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(36px, 4.6vw, 76px); line-height: 1.15; letter-spacing: -.035em; margin: 16px 0 0; color: var(--fg); }
html[dir="rtl"] .hzd-hero h1 { font-weight: 900; line-height: 1.35; letter-spacing: 0; }
.hzd-hero h1 .cu { display: block; }
.hzd-hero .lead { color: var(--fg-2); font-size: clamp(16px, 1.3vw, 19px); margin-top: 16px; }
.hzd-hero .readout { display: flex; flex-wrap: wrap; margin-top: 24px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: rgba(var(--pane-rgb),.6); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); width: fit-content; max-width: 100%; }
.hzd-hero .readout div { padding: 14px 20px; display: grid; gap: 4px; border-inline-end: 1px solid var(--line); }
.hzd-hero .readout div:last-child { border-inline-end: 0; }
.hzd-hero .readout b { font: 300 30px/1 var(--nf-display-en), sans-serif; color: var(--fg); direction: ltr; text-align: start; }
.hzd-hero .readout b.ok { color: #5ee39a; } .hzd-hero .readout b.warn { color: var(--acc-2); }
.hzd-hero .readout b.word { font: 700 22px/30px var(--f-display); direction: inherit; }
.hzd-hero .readout span { font-size: 12.5px; color: var(--fg-3); }
.hzd .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
html[dir="rtl"] .hzd .ar { transform: scaleX(-1); display: inline-block; }

.hzd-mods { align-items: flex-start; padding-top: calc(var(--head-h) + 24px); padding-bottom: 80px; }
.hzd .mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hzd .mod { border-radius: 20px; border: 1px solid var(--line-2); background: rgba(var(--pane-rgb),.74); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; outline: 0; transition: border-color .3s, transform .3s var(--ease-o); position: relative; }
.hzd .mod:hover { border-color: rgba(var(--acc2-rgb),.45); }
.hzd .mod.wide { grid-column: 1 / -1; }
.hzd .mod header { display: flex; gap: 10px; align-items: center; }
.hzd .mod h2 { margin: 0; font: 700 19px/1.4 var(--f-display); color: var(--fg); text-align: start; }
.hzd .ref { font: 600 11px var(--f-mono); color: var(--acc); letter-spacing: .06em; padding: 3px 7px; border-radius: 6px; border: 1px solid rgba(var(--acc2-rgb),.3); direction: ltr; }
.hzd .more { margin-inline-start: auto; font-size: 13.5px; color: var(--fg-3); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; }
.hzd .more:hover { color: var(--acc-2); }
.hzd .mod p { margin: 0; color: var(--fg-2); line-height: 1.75; font-size: 14.5px; }
.hzd .mod p.none { color: var(--fg-3); }
.hzd .hz3d-b1.sm { height: 44px; padding: 0 18px; font-size: 14.5px; width: fit-content; margin-top: auto; }
.hzd .plist, .hzd .clist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.hzd .plist a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto minmax(80px, 160px) 44px; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); transition: border-color .2s, background .2s; }
.hzd .plist a:hover { border-color: rgba(var(--acc2-rgb),.45); background: rgba(255,138,61,.05); }
.hzd .plist .pn { font: 600 12px var(--f-mono); color: var(--acc); direction: ltr; }
.hzd .plist b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzd .plist .st { position: static; background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 12.5px; color: var(--fg-2); white-space: nowrap; }
.hzd .plist .bar { height: 6px; border-radius: 99px; background: rgba(var(--ink-rgb),.06); overflow: hidden; }
.hzd .plist .bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8a3b12, var(--acc-2)); }
html[dir="rtl"] .hzd .plist .bar i { background: linear-gradient(270deg, #8a3b12, var(--acc-2)); }
.hzd .plist .pc { font: 600 12.5px var(--f-mono); color: var(--fg); text-align: end; direction: ltr; }
.hzd .clist a { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 14.5px; }
.hzd .clist a i { color: #9a7bff; }
.hzd .clist a bdi { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; flex: 1; min-width: 0; overflow: hidden; line-height: 1.55; overflow-wrap: anywhere; }
.hzd .clist a .ar { color: var(--fg-3); }
.hzd .clist a:hover { border-color: rgba(154,123,255,.5); }
.hzd .slot { position: absolute; top: 20px; inset-inline-end: 20px; font: 600 10.5px var(--f-mono); letter-spacing: .08em; color: var(--fg-3); padding: 3px 8px; border-radius: 6px; border: 1px dashed rgba(var(--acc2-rgb),.45); text-transform: uppercase; }
.hzd .mod.safe { border-color: rgba(94,227,154,.3); }
.hzd .mod.warn { border-color: rgba(var(--acc2-rgb),.35); }
.hzd .secline i { margin-inline-end: 6px; }
.hzd .mod.safe .secline i { color: #5ee39a; } .hzd .mod.warn .secline i { color: var(--acc-2); }
.hzd .acts { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.hzd .acts .lnk { color: var(--fg-2); text-decoration: none; font-size: 14px; display: inline-flex; gap: 10px; align-items: center; }
.hzd .acts .lnk:hover { color: var(--acc-2); }
@media (max-width: 960px) { .hzd .mods { grid-template-columns: 1fr 1fr; } .hzd .mod.safe, .hzd .mod.warn { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .hzd .mods { grid-template-columns: 1fr; }
  .hzd .plist a { grid-template-columns: auto minmax(0, 1fr) 44px; }
  .hzd .plist .st, .hzd .plist .bar { display: none; }
  .hzd-hero .readout div { padding: 12px 14px; }
  .hzd-hero .readout b { font-size: 24px; }
}
html[dir] body .hzd :is(.ref, .pn, .pc, .slot) { font-family: var(--f-mono) !important; }

/* ================= liquid glass — every form panel and every button ================= */
/* panels: light frosted glass, a crisp white rim and a soft light that follows the pointer */
:is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal) {
  position: relative; isolation: isolate;
  background: linear-gradient(160deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,.07) 45%, rgba(255,255,255,.09) 100%) !important;
  backdrop-filter: blur(22px) saturate(140%) brightness(1.22) !important; -webkit-backdrop-filter: blur(22px) saturate(140%) brightness(1.22) !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), inset 0 0 30px rgba(255,255,255,.05),
    0 24px 60px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.2) !important;
}
:is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal)::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,.10), transparent 30%),
    radial-gradient(380px circle at var(--lx, 80%) var(--ly, -20%), rgba(255,255,255,.10), transparent 60%); }
:is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal)::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; padding: 1px; z-index: 2;
  background: linear-gradient(155deg, rgba(255,255,255,.65), rgba(255,255,255,.08) 35%, rgba(255,255,255,.04) 65%, rgba(255,255,255,.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.hzau .sheet, .hzpf .sheet { overflow: hidden; }
.hzc .term .bar { background: rgba(255,255,255,.06) !important; }

/* inputs inside: soft white wells */
:is(.hzau, .hzpf, .hzpd, .hzp, .hzd, .hzad, .hzfx) :is(input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select), .hzau .legacy input:not([type=checkbox]) {
  background: rgba(255,255,255,.07) !important; border: 1px solid rgba(255,255,255,.16) !important;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.18);
}
:is(.hzau, .hzpf, .hzpd, .hzp, .hzd, .hzad, .hzfx) :is(input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select):focus, .hzau .legacy input:not([type=checkbox]):focus {
  background: rgba(255,255,255,.11) !important; border-color: rgba(255,255,255,.5) !important; box-shadow: 0 0 0 4px rgba(255,255,255,.08);
}

/* buttons: a clear glass lens with a bright rim and a glossy top half (same for every button) */
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close) {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 14px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.17) 0%, rgba(255,255,255,.06) 50%, rgba(255,255,255,.09) 100%) !important;
  color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.35);
  border: 1px solid rgba(255,255,255,.42) !important;
  backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -2px 6px rgba(0,0,0,.25), inset 0 0 0 1px rgba(255,255,255,.05), 0 8px 24px rgba(0,0,0,.28) !important;
  transition: transform .3s var(--ease-o), box-shadow .3s, background .3s, border-color .3s;
}
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close)::before { content: ""; position: absolute; inset: 1px 1px 52% 1px; z-index: -1; pointer-events: none;
  border-radius: 13px 13px 40% 40% / 13px 13px 14px 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.24), rgba(255,255,255,0)); }
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close)::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(140px circle at var(--bx, 50%) var(--by, 120%), rgba(255,255,255,.28), transparent 62%); opacity: 0; transition: opacity .3s; }
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close):hover::after { opacity: 1; }
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close):hover { transform: translateY(-1px); color: #fff !important; border-color: rgba(255,255,255,.6) !important;
  background: linear-gradient(180deg, rgba(255,255,255,.24) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.12) 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 6px rgba(0,0,0,.25), 0 12px 30px rgba(0,0,0,.32) !important; }
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close):active { transform: translateY(0) scale(.98); }
:is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close) .ar { display: none; }
/* tinted variants keep their meaning, on the same clear glass */
.hzpd .b.success { color: #8af0b8 !important; background: rgba(94,227,154,.14) !important; border-color: rgba(94,227,154,.4) !important; }
.hzpd .b.warning { color: #ffd2a6 !important; background: rgba(var(--acc2-rgb),.14) !important; border-color: rgba(var(--acc2-rgb),.4) !important; }
.hzpd .b.danger, .hzpd .ic.danger:hover { color: #ffaaa0 !important; background: rgba(255,122,107,.14) !important; border-color: rgba(255,122,107,.4) !important; }
.hzp .filter-btn.active { background: linear-gradient(180deg, rgba(255,255,255,.26), rgba(255,255,255,.1)) !important; border-color: rgba(255,255,255,.6) !important; }
.hzp .filter-btn:not(.active)::before { display: none; }
.hzp .filter-btn:not(.active) { box-shadow: none !important; background: transparent !important; border-color: transparent !important; backdrop-filter: none; -webkit-backdrop-filter: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal) { background: rgba(40,34,30,.94) !important; }
}

.hz-clocks { font-family: inherit; }
.hz-clocks b { font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; }

/* email and password fields always read left to right, centred */
input[type=email], input[type=password], input[name=email], input[autocomplete=email], input[autocomplete$=password] { direction: ltr !important; text-align: center !important; }
input[type=email]::placeholder, input[type=password]::placeholder { text-align: center; }

/* browser autofill: keep the glass well instead of the blue/yellow fill */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--fg) !important; caret-color: var(--fg);
  -webkit-box-shadow: 0 0 0 1000px rgba(38,32,28,1) inset !important; box-shadow: 0 0 0 1000px rgba(38,32,28,1) inset !important;
  transition: background-color 9999s ease-out 0s;
}
input:autofill { background: rgba(38,32,28,1) !important; color: var(--fg) !important; }

/* ================= admin: control rack frame ================= */
.hzad-hero { min-height: 0; align-items: flex-end; padding-top: calc(var(--head-h) + 12svh); padding-bottom: 28px; }
.hzad-hero .panel { max-width: 760px; }
.hzad-hero h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(34px, 4.2vw, 66px); line-height: 1.15; letter-spacing: -.035em; margin: 14px 0 0; color: var(--fg); }
.hzad-hero h1 .cu { display: block; overflow-wrap: anywhere; }
.hzad-hero .lead { color: var(--fg-2); font-size: clamp(15px, 1.2vw, 18px); margin-top: 14px; }
.hzad .rack { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.hzad .rack a { display: inline-flex; align-items: center; gap: 9px; padding: 9px 14px; border-radius: 12px; text-decoration: none; color: var(--fg-2); font-size: 14px;
  background: rgba(var(--ink-rgb),.06); border: 1px solid rgba(var(--ink-rgb),.14); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(var(--ink-rgb),.18); transition: border-color .25s, background .25s, color .25s; }
.hzad .rack a i { color: var(--fg-3); font-size: 13px; }
.hzad .rack a b { font: 600 12px var(--f-mono); color: var(--fg-3); padding: 2px 7px; border-radius: 6px; background: rgba(0,0,0,.3); direction: ltr; }
.hzad .rack a:hover { color: var(--fg); border-color: rgba(var(--ink-rgb),.35); }
.hzad .rack a.on { color: #fff; border-color: rgba(255,214,170,.55); background: linear-gradient(180deg, rgba(var(--acc2-rgb),.22), rgba(255,138,61,.08)); }
.hzad .rack a.on i, .hzad .rack a.on b { color: #ffc890; }
.hzad .btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.hzad-body { min-height: 0; align-items: flex-start; padding-top: 8px; padding-bottom: 90px; }
.hzad-body > .hz-wrap { display: grid; gap: 18px; min-width: 0; }
/* legacy admin markup inside the frame */
.hzad .admin-section, .hzad .admin-page-section { padding: 0 !important; background: none !important; min-height: 0 !important; }
.hzad .container { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; }
.hzad .section-title, .hzad .form-header h2, .hzad .back-link-wrapper { display: none !important; }
.hzad .form-header { text-align: start; margin: 0 0 6px; } .hzad .form-header p { color: var(--fg-3); margin: 0; }
.hzad .form-container { margin: 0 !important; max-width: none !important; padding: 26px !important; border-radius: 20px !important; }
.hzad .admin-form-card { padding: 26px !important; border-radius: 20px !important; }
.hzad .admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px !important; }
.hzad .admin-stat-card { border-radius: 18px !important; padding: 18px 20px !important; text-align: start !important; }
.hzad .admin-stat-card p:first-child { color: var(--fg-3) !important; font-size: 13px !important; margin: 0 0 8px !important; }
.hzad .admin-stat-card p:last-child { font: 300 34px/1 var(--nf-display-en), sans-serif !important; color: var(--fg) !important; margin: 0 !important; }
.hzad .admin-stat-card.success p:last-child { color: #8af0b8 !important; } .hzad .admin-stat-card.warning p:last-child { color: #ffc890 !important; } .hzad .admin-stat-card.accent p:last-child { color: #c3b1ff !important; }
.hzad .admin-content-section { border-radius: 20px !important; padding: 20px 22px !important; margin: 0 0 18px !important; }
.hzad .admin-content-section h3 { margin: 0 0 14px !important; font: 700 18px/1.4 var(--f-display) !important; color: var(--fg) !important; text-align: start; }
.hzad .admin-table-container { background: none !important; border: 0 !important; box-shadow: none !important; overflow-x: auto; border-radius: 12px; }
.hzad .admin-table { width: 100%; border-collapse: collapse; background: none !important; }
.hzad .admin-table th { background: rgba(var(--ink-rgb),.05) !important; color: var(--fg-3) !important; font-weight: 600; font-size: 12.5px; text-align: start !important; border-bottom: 1px solid rgba(var(--ink-rgb),.1) !important; padding: 11px 14px !important; }
.hzad .admin-table td { background: none !important; color: var(--fg-2) !important; border-bottom: 1px solid rgba(var(--ink-rgb),.06) !important; padding: 12px 14px !important; text-align: start !important; font-size: 14px; }
.hzad .admin-table tr:hover td { background: rgba(var(--ink-rgb),.03) !important; }
.hzad .admin-action-link { color: var(--acc-2) !important; text-decoration: none; font-weight: 600; }
.hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar { border-radius: 16px !important; padding: 12px 14px !important; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hzad .services-controls:empty { display: none; }
.hzad .search-box, .hzad .orders-search { flex: 1; min-width: 200px; position: relative; }
.hzad .search-box input, .hzad .orders-search input, .hzad .admin-search-input { width: 100%; height: 44px; border-radius: 12px; padding: 0 40px 0 14px; color: var(--fg); }
.hzad .search-box i, .hzad .orders-search i { color: var(--fg-3); }
.hzad .orders-filters { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; align-items: center; }
.hzad .orders-status-filter { height: 44px; border-radius: 12px; padding: 0 12px; color: var(--fg); }
.hzad .services-grid { gap: 16px !important; }
.hzad .service-card-admin, .hzad .order-card { border-radius: 18px !important; }
/* admin overview: users as cards (block / unblock / delete) */
.hzad .uc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.hzad .uc-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(var(--ink-rgb),.04); border: 1px solid rgba(var(--ink-rgb),.09); min-width: 0; }
.hzad .uc-card.is-banned { border-color: rgba(239,68,68,.45); background: rgba(239,68,68,.06); }
.hzad .uc-card header { display: flex; align-items: center; gap: 12px; min-width: 0; }
.hzad .uc-av { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font: 700 17px var(--f-display); color: #1a0d04; background: linear-gradient(160deg, var(--acc-2), var(--acc)); }
.hzad .uc-card.is-banned .uc-av { filter: grayscale(1); opacity: .6; }
.hzad .uc-id { min-width: 0; }
.hzad .uc-id h4 { margin: 0; font-size: 15.5px; font-weight: 700; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hzad .uc-mail { margin: 2px 0 0; font-size: 13px; color: var(--fg-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: start; }
.hzad .uc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hzad .uc-tag { font: 600 11.5px var(--f-mono); letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; background: rgba(var(--ink-rgb),.07); color: var(--fg-2); }
.hzad .uc-tag.role-admin { background: rgba(232,131,58,.16); color: var(--acc-2); }
.hzad .uc-tag.banned { background: rgba(239,68,68,.16); color: #f87171; }
.hzad .uc-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; padding-top: 10px; border-top: 1px dashed rgba(var(--ink-rgb),.12); }
.hzad .uc-meta div { min-width: 0; }
.hzad .uc-meta dt { font-size: 11.5px; color: var(--fg-3); }
.hzad .uc-meta dd { margin: 2px 0 0; font-size: 13.5px; color: var(--fg); font-weight: 600; white-space: nowrap; }
.hzad .uc-acts { display: flex; gap: 8px; margin-top: auto; }
.hzad .uc-acts form { flex: 1; margin: 0; }
.hzad .uc-acts .action-btn { width: 100%; justify-content: center; display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; font-size: 13px; }
.hzad .uc-acts .action-btn.delete { color: #f87171 !important; }
.hzad .uc-empty { color: var(--fg-3); text-align: center; margin: 12px 0; }
.hzad .action-btn.delete, .hzad .confirm-btn.danger { color: #ffaaa0 !important; border-color: rgba(255,122,107,.4) !important; background: rgba(255,122,107,.12) !important; }
.hzad .action-btn.edit { color: #fff !important; }
.hzad label { color: var(--fg-2); }
.hzad .back-link { color: var(--fg-3); text-decoration: none; }
.hzad .back-link:hover { color: var(--acc-2); }
.hzad .empty-state { border-radius: 18px !important; padding: 34px !important; text-align: center; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) { .hzad .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzad-hero { padding-top: calc(var(--head-h) + 14svh); }
  .hzad .rack a { padding: 8px 11px; font-size: 13px; }
  .hzad .admin-table th, .hzad .admin-table td { padding: 10px !important; font-size: 13px; }
}

/* ================= FixLang: keyboard bench ================= */
/* fixlang "copied / saved" toast: a dark glass chip with a copper edge and a check, like the site's other UI */
.hzfx #toast.toast { left: 50%; bottom: 28px; transform: translate(-50%, 16px) scale(.96); display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px 11px 16px; border-radius: 999px; border: 1px solid rgba(255,179,107,.4); border-inline-end-width: 1px;
  background: linear-gradient(160deg, rgba(34,26,20,.92), rgba(12,9,7,.94)); -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  color: var(--fg); font: 600 14px/1.2 var(--f-body, inherit); letter-spacing: 0; white-space: nowrap; width: max-content; min-width: 0; max-width: calc(100vw - 32px); right: auto; top: auto; margin: 0;
  box-shadow: 0 12px 32px rgba(0,0,0,.45), 0 0 22px rgba(232,131,58,.22), inset 0 1px 0 rgba(255,236,214,.08);
  opacity: 0; pointer-events: none; animation: none; transition: opacity .28s ease, transform .4s cubic-bezier(.2,.9,.2,1); z-index: 1200; }
.hzfx #toast.toast::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.5L12 5.4' fill='none' stroke='%23140d08' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 0 10px rgba(232,131,58,.55); }
.hzfx #toast.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
html[data-theme="light"] .hzfx #toast.toast { background: linear-gradient(160deg, rgba(255,251,245,.94), rgba(240,231,219,.94)); border-color: rgba(180,86,28,.32); color: var(--fg);
  box-shadow: 0 12px 28px rgba(110,80,50,.18), inset 0 1px 0 rgba(255,255,255,.8); }
html[data-theme="light"] .hzfx #toast.toast::before { background-color: var(--acc); }
.hzfx-sec { min-height: 100svh; align-items: center; padding-top: calc(var(--head-h) + 40px); padding-bottom: 70px; }
.hzfx .fx-main { display: block; }
.hzfx .fixlang-content { max-width: 600px; margin: 0 !important; padding: 30px 30px 26px !important; border-radius: 22px !important; }
.hzfx .fixlang-content h1 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 3.4vw, 50px) !important; line-height: 1.2 !important; letter-spacing: -.03em;
  text-align: start; margin: 0 0 10px; background: none; -webkit-text-fill-color: currentColor; color: var(--fg); }
.hzfx .fixlang-subtitle { text-align: start; color: var(--fg-2); font-size: 14px; margin: 0 0 20px; }
.hzfx .fixlang-subtitle strong { color: #ffc890; }
/* title and the Mac / Windows switch share one row: switch on the end side (left in Arabic, right in English) */
.hzfx .fx-head { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin: 0 0 10px; }
.hzfx .fx-head h1 { margin: 0 !important; }
.hzfx .keyboard-selector { justify-content: flex-end; margin: 0; margin-inline-start: auto; }
.hzfx .selector-label { color: var(--fg-3); }
.hzfx .kb-btn.on { color: #fff; border-color: rgba(255,214,170,.55) !important; background: linear-gradient(180deg, rgba(var(--acc2-rgb),.24), rgba(255,138,61,.08)) !important; }
.hzfx .fixlang-panels { grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
.hzfx .arrow-separator { height: 30px; margin: 0 !important; transform: none !important; pointer-events: none; }
.hzfx .arrow-circle { width: 30px; height: 30px; background: rgba(var(--acc2-rgb),.16); border: 1px solid rgba(255,200,150,.4); box-shadow: none; animation: none; }
.hzfx .arrow-circle::after { content: "↓"; color: #ffc890; font-size: 15px; }
.hzfx .panel-title.scrambled { color: #ff9a8a; } .hzfx .panel-title.fixed { color: #ffc890; }
.hzfx .char-count { color: var(--fg-3); }
.hzfx #inputText, .hzfx #outputText { min-height: 104px; font-size: 15px; background: rgba(6,5,4,.55) !important; border: 1px solid rgba(var(--ink-rgb),.12) !important; border-radius: 14px; }
.hzfx #outputText { font-family: var(--nf-body-ar), sans-serif; direction: rtl; text-align: right; font-size: 17px; }
.hzfx #inputText:focus { border-color: rgba(255,200,150,.55) !important; box-shadow: 0 0 0 3px rgba(var(--acc2-rgb),.12) !important; }
.hzfx :is(#inputText, #outputText)::placeholder { color: var(--fg-3); }
.hzfx .fixlang-actions { flex-wrap: wrap; margin-bottom: 0; }
.hzfx .btn-copy.done { color: #8af0b8; }
.hzfx .modal { border-radius: 20px !important; }
.hzfx .modal-overlay { background: rgba(var(--bg-rgb),.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hzfx .map-row input { background: rgba(6,5,4,.55); border-color: rgba(var(--ink-rgb),.12); color: var(--fg); }
@media (max-width: 860px) {
  .hzfx-sec { align-items: flex-start; padding-top: calc(var(--head-h) + 14svh); }
  .hzfx .fixlang-content { max-width: none; padding: 22px 18px 20px !important; }
  .hzfx .fixlang-actions { flex-direction: row; }
}
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzfx-sec { padding-top: calc(var(--head-h) + 21svh); padding-bottom: 24px; } } /* phones: the 3D keyboard stays visible above the tool */
.hzfx #inputText { direction: ltr; text-align: left; }
.hzad .admin-form-card { margin: 0 !important; width: 100%; }
.hzad .form-header { display: none !important; }

/* ---------- light mode for the 3D pages ---------- */
html[data-theme="light"] .hz3d .cu { background-image: linear-gradient(100deg, #c2621f 0%, #9a4413 50%, #5e260a 100%); }
html[data-theme="light"] .hz3d-grain { opacity: .035; }
html[data-theme="light"] .hz3d-term .g { color: #1d8a52; }
html[data-theme="light"] input:autofill { background: #fbf8f3 !important; color: var(--fg) !important; }


/* ================= light mode for the 3D pages ================= */
/* panels: clean white cards with a hairline border and a soft shadow */
html[data-theme="light"] :is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal) {
  background: rgba(255,253,250,.86) !important;
  backdrop-filter: blur(16px) saturate(120%) !important; -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
  border: 1px solid rgba(60,40,20,.10) !important;
  box-shadow: 0 1px 2px rgba(60,40,20,.06), 0 18px 48px -12px rgba(60,40,20,.18) !important;
}
html[data-theme="light"] :is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal)::before, html[data-theme="light"] :is(.hzau .sheet, .hzpf .sheet, .hzpd .card, .hzd .mod, .hzp .controls, .hzp .project-card, .hzp .empty, .hzk1 .access, .hzc .term, .hzc .pinout, .hz-glass, .hzad .admin-stat-card, .hzad .admin-content-section, .hzad .form-container, .hzad .admin-form-card, .hzad .service-card-admin, .hzad .order-card, .hzad .empty-state, .hzad .services-controls, .hzad .orders-controls, .hzad .admin-filter-bar, .hzad .course-box, .hzad .confirm-box, .hzfx .fixlang-content, .hzfx .modal)::after { display: none; }
/* buttons: flat, no glass gloss. Secondary = white with a hairline; primary = solid ink */
html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close) {
  color: var(--fg) !important; text-shadow: none;
  background: #fffdfa !important; border: 1px solid rgba(60,40,20,.16) !important;
  backdrop-filter: none; -webkit-backdrop-filter: none;
  box-shadow: 0 1px 2px rgba(60,40,20,.08) !important;
}
html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close)::before, html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close)::after { display: none; }
html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save, .hz3d-b2, .hz-btn:not(.hz-btn--acc), .btn-secondary, .btn-cancel, .hzpd .b:not(.primary), .hzpd .ic, .hzp .acts .ic, .hzp .filter-btn, .hzpf .ic, .hzad .view-btn, .hzad .action-btn, .hzad .confirm-btn, .hzad .mini-btn, .hzfx .kb-btn, .hzfx .btn-clear, .hzfx .btn-edit-map, .hzfx .mini-btn, .hzfx .modal-close):hover { color: var(--fg) !important; background: #fff !important; border-color: rgba(60,40,20,.28) !important; box-shadow: 0 4px 14px rgba(60,40,20,.12) !important; }
html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save) { color: #fbf6ef !important; background: #17110c !important; border-color: #17110c !important; box-shadow: 0 6px 18px -6px rgba(23,17,12,.45) !important; }
html[data-theme="light"] :is(.hz3d-b1, .hz-btn--acc, .submit-btn, .cta-btn, .btn-primary, .btn-submit, .hzpd .b.primary, .hzp .acts .go, .hzfx .btn-copy, .hzfx .btn-save):hover { color: #fff !important; background: #b4561c !important; border-color: #b4561c !important; box-shadow: 0 8px 22px -6px rgba(180,86,28,.5) !important; }
html[data-theme="light"] .hzp .filter-btn:not(.active) { background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
html[data-theme="light"] .hzp .filter-btn.active, html[data-theme="light"] .hzfx .kb-btn.on { color: #fbf6ef !important; background: #17110c !important; border-color: #17110c !important; }
/* fields */
html[data-theme="light"] :is(.hzau, .hzpf, .hzpd, .hzp, .hzd, .hzad, .hzfx) :is(input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], textarea, select),
html[data-theme="light"] .hzfx #inputText, html[data-theme="light"] .hzfx #outputText, html[data-theme="light"] .hzfx .map-row input {
  background: #fffdfa !important; border: 1px solid rgba(60,40,20,.14) !important; box-shadow: inset 0 1px 2px rgba(60,40,20,.05); color: var(--fg); }
html[data-theme="light"] .hzfx .arrow-circle { border-color: rgba(60,40,20,.18); background: #fffdfa; }
html[data-theme="light"] .hzpd .b.success { color: #17723f !important; }
html[data-theme="light"] .hzpd .b.warning { color: #8a3b12 !important; }
html[data-theme="light"] .hzpd .b.danger { color: #b3261e !important; }
html[data-theme="light"] input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px #fffdfa inset !important; box-shadow: 0 0 0 1000px #fffdfa inset !important; }
/* no haze over the scene: drop the vignette, grain and text scrims */
html[data-theme="light"] .hz3d-vign, html[data-theme="light"] .hz3d-grain { display: none; }
html[data-theme="light"] .hz3d .scrim { background: radial-gradient(closest-side, rgba(var(--bg-rgb),.94) 35%, rgba(var(--bg-rgb),.7) 65%, transparent); }
html[data-theme="light"] .hz-foot { background: rgba(245,239,230,.92) !important; }

/* phones: shorter heroes so the text starts closer to the header */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hz3d-hero { min-height: 94svh; padding-bottom: 5svh; }
  .hza .hz3d-hero { min-height: 97svh; padding-bottom: 2svh; } /* about: a long lead, so the text sits as low as it can under the package */
  .hz3d-hero .hint { display: none; }
  .hz3d .btns :is(.hz3d-b1, .hz3d-b2) { height: 50px; }
  .hz3d .btns { justify-content: center; flex-wrap: nowrap; }
  .hz3d-who .panel { width: 100%; margin-inline: 0; }
  /* the chip owns the top of the screen; the text starts under it */
  .hz3d-who, .hz3d-svc { align-items: flex-start; padding-top: calc(var(--head-h) + 30lvh); padding-bottom: 6svh; } /* lvh: these are reached while scrolling, with Safari's toolbar collapsed */
  .hz3d-svc.hzw-mod { padding-top: calc(var(--head-h) + 35lvh); } /* world: taller sections meet the camera a little before its shot */
  .hz3d-cta { align-items: flex-end; padding-bottom: 7svh; }
  /* numbers: three compact rows under the chip instead of three tall cards over it */
  .hz3d-stat { align-items: flex-start; padding-top: calc(var(--head-h) + 34lvh); }
  .hz3d-stat .hz3d-nums { gap: 10px; }
  .hz3d-stat .hz3d-nums > div { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 16px; }
  html body .hz3d-stat .hz3d-nums b { font-size: 50px; }
  .hz3d-stat .hz3d-nums p { margin-top: 0; font-size: 14.5px; line-height: 1.6; }
  .hz3d .btns :is(.hz3d-b1, .hz3d-b2) { padding-inline: 18px; white-space: nowrap; }
  .hzc-hero { min-height: 0; align-content: start; padding-top: calc(var(--head-h) + 30svh); } /* the module and its waves on top, the text under them */
}

/* phones: the footer sits in the middle */
@media (max-width: 560px) {
  .hz-foot { text-align: center; }
  .hz-foot .about .hz-logo { justify-content: center; }
  .hz-foot .about p { margin-inline: auto; }
  .hz-foot ul { justify-items: center; }
  .hz-foot .bar { flex-direction: column; justify-content: center; text-align: center; }
  .hz-foot .bar > * { justify-content: center; }
}
@media (max-width: 380px) { .hz3d .btns :is(.hz3d-b1, .hz3d-b2) { padding-inline: 14px; font-size: 14.5px; } .hz3d .btns { gap: 8px; } }

/* dark mode, 3D sections: flat buttons instead of glass that picks up the scene's brown.
   Primary = solid cream, secondary = dark with a hairline. */
html:not([data-theme="light"]) .hz3d .btns :is(.hz3d-b1, .hz3d-b2) {
  backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,.6) !important;
}
html:not([data-theme="light"]) .hz3d .btns :is(.hz3d-b1, .hz3d-b2)::before,
html:not([data-theme="light"]) .hz3d .btns :is(.hz3d-b1, .hz3d-b2)::after { display: none; }
html:not([data-theme="light"]) .hz3d .btns .hz3d-b1 { background: #f3ebdf !important; color: #120d09 !important; border: 1px solid #f3ebdf !important; }
html:not([data-theme="light"]) .hz3d .btns .hz3d-b1:hover { background: #ffb36b !important; border-color: #ffb36b !important; color: #120d09 !important; }
html:not([data-theme="light"]) .hz3d .btns .hz3d-b2 { background: rgba(12,10,9,.62) !important; color: #f3ebdf !important; border: 1px solid rgba(255,255,255,.22) !important; }
html:not([data-theme="light"]) .hz3d .btns .hz3d-b2:hover { background: rgba(12,10,9,.8) !important; border-color: rgba(255,255,255,.4) !important; }
/* phones: footer as tidy centred groups of pill links instead of long single columns */
@media (max-width: 560px) {
  .hz-foot { padding-top: 48px; }
  .hz-foot .cols { grid-template-columns: 1fr; gap: 30px; }
  .hz-foot .cols > div:not(.about) { padding-top: 24px; border-top: 1px solid var(--line); }
  .hz-foot h4 { margin-bottom: 14px; }
  .hz-foot ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
  .hz-foot ul a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 14px; line-height: 1.3; background: rgba(var(--pane-rgb), .45); }
  .hz-foot ul a:hover { border-color: var(--acc); }
  .hz-foot .about p { font-size: 14px; line-height: 1.8; max-width: 34ch; }
  .hz-foot .hz-word { margin-top: 40px; }
}

/* courses, phones: course card starts right under the header */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hz3d-sec.hzk-c { padding-top: calc(var(--head-h) + 4px); padding-bottom: 4svh; } }

/* the outline button read shorter than the solid one beside it (same 50px box):
   a brighter hairline and the same weight make the pair look equal */
.hz3d .btns .hz3d-b2 { font-weight: 600; }
html:not([data-theme="light"]) .hz3d .btns .hz3d-b2 { border-color: rgba(243,235,223,.42) !important; background: rgba(12,10,9,.72) !important; }

/* about › highlights, phones: room at the top for the die before the long list */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hz3d-sec:is(.hza-ach, .hza-stack) { padding-top: calc(var(--head-h) + 30lvh); } }
/* about › education, phones: text sits low so the package shows above it */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hz3d-sec.hza-edu { align-items: flex-end; padding-bottom: 5svh; } }

/* CV page: its buttons live outside .hz3d, so give them the same flat pair and phone sizing */
html:not([data-theme="light"]) .hzcv .btns :is(.hz3d-b1, .hz3d-b2) { backdrop-filter: none; -webkit-backdrop-filter: none; text-shadow: none; box-shadow: 0 10px 30px -12px rgba(0,0,0,.6) !important; }
html:not([data-theme="light"]) .hzcv .btns :is(.hz3d-b1, .hz3d-b2)::before,
html:not([data-theme="light"]) .hzcv .btns :is(.hz3d-b1, .hz3d-b2)::after { display: none; }
html:not([data-theme="light"]) .hzcv .btns .hz3d-b1 { background: #f3ebdf !important; color: #120d09 !important; border: 1px solid #f3ebdf !important; }
html:not([data-theme="light"]) .hzcv .btns .hz3d-b1:hover { background: #ffb36b !important; border-color: #ffb36b !important; }
html:not([data-theme="light"]) .hzcv .btns .hz3d-b2 { background: rgba(12,10,9,.72) !important; color: #f3ebdf !important; border: 1px solid rgba(243,235,223,.42) !important; }
.hzcv .btns .hz3d-b2 { font-weight: 600; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .btns { justify-content: center; gap: 10px; }
  .hzcv .btns :is(.hz3d-b1, .hz3d-b2) { height: 50px; padding-inline: 16px; white-space: nowrap; font-size: 14.5px; }
}

/* CV page now has the 3D package behind it: drop the flat glow once WebGL is on,
   and keep long text readable with a soft wash on the text sections */
html.gl-on .hzcv-glow { display: none; }
html.gl-on .hzcv-sec { background: linear-gradient(180deg, rgba(var(--bg-rgb),.55), rgba(var(--bg-rgb),.78) 40%, rgba(var(--bg-rgb),.78) 60%, rgba(var(--bg-rgb),.55)); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzcv-hero { padding-top: calc(var(--head-h) + 30svh); } }

/* outline buttons: cream frame the colour of the solid one, so a pair reads the same size */
html:not([data-theme="light"]) :is(.hz3d, .hzcv) .btns .hz3d-b2 { border-color: rgba(243,235,223,.85) !important; }

/* CV › summary on phones: room for the package on top, a calmer paragraph on a glass card,
   numbers as a compact 2x2 grid */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv-sec:has(.hzcv-sum) { padding-top: 30lvh; padding-bottom: 8svh; }
  html[dir] body .hzcv-sum { font-family: var(--f-body) !important; font-size: 16.5px; line-height: 1.95; color: var(--fg-2);
    padding: 20px 20px; border: 1px solid var(--line); border-radius: 18px;
    background: rgba(var(--pane-rgb),.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hzcv .hz3d-nums { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; margin-top: 14px !important; }
  .hzcv .hz3d-nums > div { padding: 16px 16px 14px; border-radius: 16px; }
  html body .hzcv .hz3d-nums b { font-size: 44px; }
  .hzcv .hz3d-nums p { font-size: 13.5px; line-height: 1.6; margin-top: 6px; }
}

.cvsum-more { display: none; }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv-sec:has(.hzcv-sum) { padding-top: 38lvh; }
  .hzcv-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
  .cvsum-t:checked ~ .hzcv-sum { display: block; -webkit-line-clamp: unset; line-clamp: none; }
  .cvsum-more { display: inline-block; margin-top: 10px; color: var(--acc); font-weight: 600; font-size: 15px; cursor: pointer; }
  .cvsum-t:checked ~ .cvsum-more { display: none; }
  .hzcv .hz3d-nums { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px; margin-top: 18px !important; }
  .hzcv .hz3d-nums > div { padding: 12px 10px 10px; border-radius: 14px; text-align: center; }
  html body .hzcv .hz3d-nums b { font-size: 32px; }
  .hzcv .hz3d-nums p { font-size: 12px; line-height: 1.5; margin-top: 4px; }
}

/* CV › summary on phones, take 2: no card (it clipped the last line), plain body text,
   numbers as one clean strip with hairline dividers instead of boxes */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  html[dir] body .hzcv .hzcv-sec .hzcv-sum { font-family: var(--f-body) !important; font-size: 16px; line-height: 1.9; color: var(--fg);
    padding: 0; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none;
    text-shadow: 0 1px 12px rgba(0,0,0,.7); }
  .cvsum-more { margin-top: 6px; }
  html[data-theme="light"][dir] body .hzcv .hzcv-sec .hzcv-sum { text-shadow: none; padding: 16px 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(251,248,243,.66); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); } /* light: the same frosted pane as the number cards under it, so the bright traces never cut through the words */
  .hzcv .hz3d-nums { gap: 0 !important; margin-top: 26px !important; border-block: 1px solid var(--line-2); }
  .hzcv .hz3d-nums > div { padding: 16px 6px 14px; border: 0; border-radius: 0; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hzcv .hz3d-nums > div + div { border-inline-start: 1px solid var(--line-2); }
  html body .hzcv .hz3d-nums b { font-size: 34px; }
  .hzcv .hz3d-nums p { font-size: 12px; line-height: 1.55; color: var(--fg-2); }
}

/* CV, take 3: keep the package bright (no wash over the top of each section, where it sits)
   and bring the number cards back, three in a row */
html.gl-on .hzcv-sec { background: linear-gradient(180deg, transparent 0, transparent 26svh, rgba(var(--bg-rgb),.72) 46svh, rgba(var(--bg-rgb),.72) calc(100% - 10svh), rgba(var(--bg-rgb),.4)); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz3d-nums { gap: 8px !important; border-block: 0; }
  .hzcv .hz3d-nums > div { padding: 14px 10px 12px; border: 1px solid var(--line-2) !important; border-radius: 14px;
    background: rgba(var(--pane-rgb),.62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .hzcv .hz3d-nums > div + div { border-inline-start: 1px solid var(--line-2); }
}
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzcv-sum { -webkit-line-clamp: 6; line-clamp: 6; } }
/* CV with the 3D background: no hairline between sections */
html.gl-on .hzcv :is(.hzcv-hero, .hzcv-sec) { border-bottom: 0; }

/* CV › experience on phones: the heading + year stay pinned at the top while the roles scroll
   under it; the year follows the role in view (hz.js already updates [data-year]) */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career .side { position: sticky; top: 0; z-index: 3; margin-inline: calc(-1 * var(--gut)); padding: calc(var(--head-h) + 10px) var(--gut) 14px;
    display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 12px;
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.97) 78%, rgba(var(--bg-rgb),0)); }
  .hzcv .hz-career .side .hz3d-eye { grid-column: 1 / -1; }
  .hzcv .hz-career .side .hzcv-h2 { margin: 6px 0 0; }
  html body .hzcv .hz-career .side .big { font-size: 54px; margin-top: 0; line-height: .9; }
  .hzcv .hz-career .hz-tl { margin-top: 14px; }
}

/* CV, take 4: no dark wash on the sections at all (it drew a hard band where two sections meet);
   text keeps a soft shadow for contrast. Camera sections leave room on top for the package. */
html.gl-on .hzcv-sec { background: none; }
html.gl-on .hzcv-sec :is(p, li, h2, h3, .hzcv-h2) { text-shadow: 0 1px 14px rgba(0,0,0,.75); }
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) { .hzcv-sec[data-cam] { padding-top: 38lvh; } }
/* the pinned header is for the experience timeline only; other hz-career blocks stay as they were */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career:not(:has([data-tl])) .side { position: static; margin-inline: 0; padding: 0; display: block; background: none; }
}
/* pinned experience header: a light frosted strip instead of a near-black band */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career:has([data-tl]) .side { background: rgba(var(--bg-rgb),.45); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    -webkit-mask-image: linear-gradient(180deg, #000 82%, transparent); mask-image: linear-gradient(180deg, #000 82%, transparent); }
}
/* …and fade its top edge too, so there is no hard line where it starts */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career:has([data-tl]) .side { -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--head-h) - 10px), #000 82%, transparent); mask-image: linear-gradient(180deg, transparent 0, #000 calc(var(--head-h) - 10px), #000 82%, transparent); }
}
/* pinned experience header: no backdrop at all (the user wants the scene clear behind it) */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career:has([data-tl]) .side { background: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; -webkit-mask-image: none !important; mask-image: none !important; }
  .hzcv .hz-career:has([data-tl]) .side :is(.hzcv-h2, .big, .hz3d-eye) { text-shadow: 0 2px 18px rgba(0,0,0,.85); }
}
/* pinned titles follow the site header: header hidden -> title goes to the very top; header back -> title slides under it */
.hz-career .side, .hzpd .side { transition: top .35s cubic-bezier(.2,.7,.2,1), padding-top .35s cubic-bezier(.2,.7,.2,1); }
html:has(#hzHead.hide) .hz-career .side { top: 24px; }
html:has(#hzHead.hide) .hzpd .side { top: 16px; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  /* app-style frosted header: the roles fade out under the title with a blur, no hard edge */
  .hzcv .hz-career:has([data-tl]) .side {
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.42), rgba(var(--bg-rgb),.18)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important;
    mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important;
    padding-bottom: 30px; }
  html:has(#hzHead.hide) .hzcv .hz-career:has([data-tl]) .side { top: 0; padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
}
/* titles move in step with the site header (same duration + easing), so the header never covers the eyebrow mid-slide */
.hz-career .side, .hzpd .side, .hzcv-pin { transition: top .5s var(--ease-o), padding-top .5s var(--ease-o) !important; }
.hzcv-pin { margin-bottom: 40px; }
/* phones: every CV section title is pinned with the app-style frosted header */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hzcv-pin, .hzcv .hz-career .side, .hzcv .hz-career:not(:has([data-tl])) .side {
    position: sticky !important; top: 0; z-index: 3; margin-inline: calc(-1 * var(--gut)) !important;
    padding: calc(var(--head-h) + 10px) var(--gut) 30px !important;
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.42), rgba(var(--bg-rgb),.18)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important;
    mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important; }
  .hzcv .hzcv-pin { margin-bottom: 16px; }
  .hzcv .hz-career:not(:has([data-tl])) .side { display: block !important; margin-bottom: 16px; }
  html:has(#hzHead.hide) .hzcv :is(.hzcv-pin, .hz-career .side) { padding-top: calc(env(safe-area-inset-top, 0px) + 12px) !important; }
  .hzcv :is(.hzcv-pin, .hz-career .side) :is(.hzcv-h2, .big, .hz3d-eye) { text-shadow: 0 2px 18px rgba(0,0,0,.85); }
  .hzcv :is(.hzcv-pin, .hz-career .side) .hzcv-h2 { margin-bottom: 0; }
}
/* phones: the frost shows only while the section's own content scrolls under its title */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hzcv-pin, .hzcv .hz-career .side, .hzcv .hz-career:not(:has([data-tl])) .side {
    background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    -webkit-mask-image: none !important; mask-image: none !important; }
  .hzcv .hzcv-pin.stuck, .hzcv .hz-career .side.stuck {
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.42), rgba(var(--bg-rgb),.18)) !important;
    -webkit-backdrop-filter: blur(18px) saturate(1.4) !important; backdrop-filter: blur(18px) saturate(1.4) !important;
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important;
    mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent) !important; }
}
/* experience title: same rule (its older frosted rule was more specific) */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hzcv .hz-career:has([data-tl]) .side:not(.stuck) {
    background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    -webkit-mask-image: none !important; mask-image: none !important; }
}
/* phones: a pinned title always sits flush to the screen edge (or right under the header) — nothing shows above it */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  html .hzcv :is(.hzcv-pin, .hz-career .side) { top: 0 !important; }
}
/* any page: .hz-pin = a section title that pins on phones, flush to the top edge, and frosts only
   while its own content scrolls under it (hz.js adds .stuck) */
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  .hz-pin { position: sticky; top: 0 !important; z-index: 3; margin-inline: calc(-1 * var(--gut)); padding: calc(var(--head-h) + 10px) var(--gut) 30px;
    margin-bottom: -14px; transition: padding-top .5s var(--ease-o), background .25s; }
  .hz-pin.stuck {
    background: linear-gradient(180deg, rgba(var(--bg-rgb),.42), rgba(var(--bg-rgb),.18));
    -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 26px), transparent); }
  html:has(#hzHead.hide) .hz-pin { padding-top: calc(env(safe-area-inset-top, 0px) + 12px); }
  .hz-pin :is(h2, .hz3d-eye) { text-shadow: 0 2px 18px rgba(0,0,0,.85); }
  .hz-pin h2 { margin-bottom: 0; }
  /* the about panels: the pin needs the panel itself to stay unclipped */
  .hza-ach .panel { overflow: visible; }
  .hza-ach .panel .hz-pin { margin-inline: calc(-1 * var(--gut)); }
}
/* login/register on phones: the card reader sits in clear view above; the sheet starts below it, tighter */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzau-sec { padding-top: calc(var(--head-h) + 36svh); padding-bottom: 28px; }
  .hzau .sheet { padding: 20px 18px 18px; border-radius: 20px; background: rgba(var(--pane-rgb),.72); }
  html[dir="rtl"] .hzau h1 { font-size: 30px; line-height: 1.3; }
  .hzau .lead { font-size: 14px; line-height: 1.7; margin-top: 8px; }
  .hzau-form { gap: 12px; margin-top: 18px; }
  .hzau .fld input { height: 48px; }
  .hzau .go { height: 50px; }
  .hzau .links { margin-top: 14px; padding-top: 12px; }
}
/* login sheet on phones: a notch smaller */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzau .sheet { width: 88%; margin-inline: auto; padding: 16px 16px 14px; border-radius: 18px; }
  .hzau .hz3d-eye { font-size: 11px; }
  html[dir="rtl"] .hzau h1 { font-size: 26px; line-height: 1.3; margin-top: 8px; }
  .hzau .lead { font-size: 13px; margin-top: 6px; }
  .hzau-form { gap: 10px; margin-top: 14px; }
  .hzau .fld { gap: 6px; }
  .hzau .fld > span { font-size: 13px; }
  .hzau .fld input { height: 44px; font-size: 14px; border-radius: 11px; }
  .hzau .go { height: 46px; font-size: 15px; }
  .hzau .links { margin-top: 12px; padding-top: 10px; }
  .hzau .links p { font-size: 13px; }
}
/* auth fields: typed e-mail/password stay LTR but sit on the same side as the label and placeholder */
html[dir="rtl"] .hzau :is(.fld, .legacy) input:not([type=checkbox]):not(#code) { text-align: right !important; }
html[dir="ltr"] .hzau :is(.fld, .legacy) input:not([type=checkbox]):not(#code) { text-align: left !important; }
/* phones: no zoom. Pinch is blocked (touch-action + viewport); every field is 16px so iOS never zooms on focus */
html { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (max-width: 900px), (max-width: 1100px) and (orientation: portrait) {
  input:not([type=checkbox]):not([type=radio]), select, textarea, .hzau .fld input { font-size: 16px !important; }
}
/* iPhone: the site runs under the status bar (viewport-fit=cover). The header grows by the safe area
   so its buttons sit below the clock; --head-h carries it, so every offset that uses it follows. */
:root { --safe-t: env(safe-area-inset-top, 0px); --head-h: calc(72px + var(--safe-t)); }
.hz-head { padding-top: var(--safe-t); box-sizing: border-box; }
.hz-head .hz-wrap { height: 72px; }

/* "Continue with Apple / Google" under the login / register forms */
.hzau-social { display: grid; gap: 10px; margin-top: 18px; }
.hzau-social .or { display: flex; align-items: center; gap: 12px; color: var(--fg-3); font-size: 13px; }
.hzau-social .or::before, .hzau-social .or::after { content: ""; flex: 1; border-top: 1px dashed var(--line-2); }
.hzau-social form { margin: 0; }
.hzau-social .soc { width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 10px; border: 1px solid var(--line-2); cursor: pointer; font: inherit; font-weight: 600; font-size: 15px; }
.hzau-social .soc.apple { background: #fff; color: #000; border-color: #fff; }
.hzau-social .soc.google { background: transparent; color: var(--fg-1, #fff); }
.hzau-social .soc:hover { filter: brightness(.94); }

/* contact: WhatsApp button under the pinout */
.hzc .pinout .wa { display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 4px; }

/* password field with a show / hide eye (beta lock) */
.hzau-form .pw { position: relative; display: block; }
.hzau-form .pw input { width: 100%; padding-right: 44px; } /* the field is always ltr, so the eye sits on the right */
.hzau-form .pw-eye { position: absolute; top: 0; bottom: 0; right: 4px; width: 38px; display: grid; place-items: center; background: none; border: 0; color: var(--fg-3); cursor: pointer; }
.hzau-form .pw-eye:hover, .hzau-form .pw-eye[aria-pressed="true"] { color: var(--acc); }

/* FixLang in the top bar: what it is, in a bubble on hover / keyboard focus */
.hz-nav a.l[data-hint]::before { content: attr(data-hint); position: absolute; top: calc(100% + 8px); inset-inline-start: 50%; transform: translateX(-50%); width: max-content; max-width: 240px; padding: 8px 12px; border-radius: 10px; background: var(--bg-2, #151515); border: 1px solid var(--line-2); color: var(--fg-2); font: 400 13px/1.5 var(--f-body); white-space: normal; text-align: center; opacity: 0; pointer-events: none; transition: opacity .15s; z-index: 5; }
[dir="rtl"] .hz-nav a.l[data-hint]::before { transform: translateX(50%); }
.hz-nav a.l[data-hint]:hover::before, .hz-nav a.l[data-hint]:focus-visible::before { opacity: 1; }
.hz-foot .hint { display: block; font-size: 12px; color: var(--fg-3); }

/* home on phones: the same sections, less empty space (it was ~7,700px tall). Each section no longer
   takes a whole screen, and the gap kept above the text for the chip is smaller. */
@media (max-width: 760px), (max-width: 1100px) and (orientation: portrait) {
  .hzh .hz3d-sec:not(.hz3d-hero) { min-height: 0; }
  .hzh :is(.hz3d-who, .hz3d-svc) { padding-top: calc(var(--head-h) + 22lvh); padding-bottom: 3svh; }
  .hzh .hz3d-stat { padding-top: calc(var(--head-h) + 26lvh); padding-bottom: 3svh; }
  .hzh .hz3d-cta { padding-top: calc(var(--head-h) + 27lvh); padding-bottom: 6svh; } /* a little more: its chip sits lower */
}

/* services: selected work, three cards over the board */
.hz3d-sec.hzs-work { min-height: 0; display: block; padding: clamp(60px, 10vh, 120px) 0; }
.hzs-work h2 { font-family: var(--f-display); font-weight: 900; font-size: clamp(34px, 4.6vw, 76px); line-height: 1.15; margin: 16px 0 0; color: var(--fg); }
html[dir="ltr"] .hzs-work h2 { font-weight: 800; letter-spacing: -.03em; }
.hzs-work .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: clamp(28px, 5vh, 52px); }
.hzs-work .card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 20px; border: 1px solid var(--line-2); background: rgba(var(--bg-rgb), .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.hzs-work .card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1px solid var(--line-2); }
.hzs-work .card .ico { width: 100%; aspect-ratio: 16 / 10; display: grid; place-items: center; border-radius: 12px; background: var(--acc-soft); color: var(--acc); font-size: 44px; }
.hzs-work .card small { color: var(--fg-3); font: 500 12.5px var(--f-mono); }
.hzs-work .card h3 { margin: 0; font-family: var(--f-display); font-size: 21px; line-height: 1.35; color: var(--fg); }
.hzs-work .card p { margin: 0; color: var(--fg-2); font-size: 14.5px; line-height: 1.75; }
.hzs-work .card .res { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line-2); color: var(--fg); }
.hzs-work .card .res b { color: var(--acc); }
@media (max-width: 900px) { .hzs-work .grid { grid-template-columns: 1fr; } .hzs-work .card .ico { aspect-ratio: 16 / 6; } }
