/* habl — Omni-series rope light. Dark immersive surface; every colour is an
   alias of a site token (pitch.html pattern) — no new literals. */
:root {
  --hb-dark: var(--ep-black);
  --hb-on-1: var(--ep-white);
  --hb-on-2: rgba(255,255,255,.78);
  --hb-on-3: rgba(255,255,255,.58);
  --hb-hair: rgba(255,255,255,.14);
  --hb-panel: rgba(255,255,255,.04);
  --hb-glow: var(--ep-lumen-500);
}
html { scroll-behavior: smooth; }
.hb [id] { scroll-margin-top: 14px; }
body.hb {
  margin: 0; background: var(--hb-dark); color: var(--hb-on-2);
  font-family: 'IBM Plex Sans', -apple-system, system-ui, sans-serif;
  font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
.hb-in { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.hb-band { padding: 72px 0; border-top: 1px solid var(--hb-hair); }
.hb-band:first-of-type { border-top: 0; }

/* header */
.hb-top { display: flex; align-items: center; gap: 18px; padding: 18px 0; }
.hb-top img.hb-ep { height: 15px; display: block; opacity: .92; }
.hb-top nav { margin-left: auto; display: flex; gap: 4px 16px; flex-wrap: wrap; }
.hb-top nav a { color: var(--hb-on-3); text-decoration: none; font-size: 13.5px; padding: 6px 2px; }
.hb-top nav a:hover, .hb-top nav a[aria-current="page"] { color: var(--hb-on-1); }

/* type */
.hb h1, .hb h2, .hb h3 { font-family: 'EP Montserrat', Montserrat, sans-serif; color: var(--hb-on-1); font-weight: 600; line-height: 1.15; margin: 0 0 14px; }
.hb h1 { font-size: clamp(28px, 4.6vw, 44px); letter-spacing: .01em; }
.hb h2 { font-size: clamp(24px, 3vw, 30px); }
.hb h3 { font-size: 17px; font-family: inherit; font-weight: 600; }
.hb-eyebrow { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--hb-on-3); margin: 0 0 12px; }
.hb p { margin: 0 0 14px; max-width: 64ch; }
.hb-dim { color: var(--hb-on-3); }
.hb-num, .hb-facts, .hb-cap .f { font-family: 'EP JBM', 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; }

/* hero */
.hb-hero { padding: 40px 0 64px; }
/* The wordmark: Habl typeset in the house display face and lit like the rope.
   (The drawn rope wordmark is retired — Mustafa, 2026-08-17.) */
.hb-wordmark {
  font-family: 'EP Montserrat', 'Montserrat', system-ui, sans-serif;
  font-weight: 600; font-style: italic;
  font-size: clamp(64px, 13vw, 148px); line-height: 1.04;
  letter-spacing: .01em; color: #FFF6E4; margin: 14px 0 8px;
  padding-right: .08em; /* the italic 'l' overhangs its box — keep the glow unclipped */
  text-shadow:
    0 0 6px rgba(255, 244, 214, .95),
    0 0 22px rgba(245, 165, 36, .55),
    0 0 70px rgba(245, 165, 36, .38),
    0 0 170px rgba(245, 165, 36, .28);
}
.hb-top nav a.hb-brand { font-style: italic; font-weight: 600; }
.hb-facts { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 13.5px; color: var(--hb-on-3); margin-top: 18px; }
.hb-facts span { white-space: nowrap; }

/* buttons */
.hb-btn { display: inline-block; border: 1px solid var(--hb-hair); border-radius: 999px; padding: 9px 20px; color: var(--hb-on-1); text-decoration: none; font-size: 14.5px; background: none; cursor: pointer; font-family: inherit; }
.hb-btn:hover { border-color: rgba(255,255,255,.34); }
.hb-btn--go { background: var(--hb-glow); border-color: var(--hb-glow); color: var(--ep-ink); font-weight: 600; }
.hb-btn--go:hover { filter: brightness(1.06); }
.hb-btn[disabled] { opacity: .45; cursor: default; }

/* cards */
.hb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; margin-top: 26px; }
.hb-card { margin: 0; background: var(--hb-panel); border: 1px solid var(--hb-hair); border-radius: 14px; overflow: hidden; scroll-margin-top: 84px; }
.hb-card .art { display: block; width: 100%; background: var(--hb-dark); }
.hb-card .art svg { display: block; width: 100%; height: auto; }
.hb-cap { padding: 12px 14px 14px; font-size: 13.5px; color: var(--hb-on-2); display: grid; gap: 6px; }
.hb-cap .t { color: var(--hb-on-1); font-weight: 600; }
.hb-cap .f { font-size: 12.5px; color: var(--hb-on-3); }
.hb-cap a { color: var(--hb-on-3); font-size: 12.5px; text-decoration: none; justify-self: start; border-bottom: 1px solid var(--hb-hair); padding-bottom: 1px; }
.hb-cap a:hover { color: var(--hb-on-1); }
.hb-card.hb-ring { outline: 2px solid var(--hb-glow); outline-offset: 2px; }

/* application tiles on the hub — one art aspect for the whole grid, or the
   rows go ragged (each family's natural drawing is a different shape). */
.hb-apps a.hb-card { display: block; text-decoration: none; }
.hb-apps .art { aspect-ratio: 4 / 3; display: grid; place-items: center; }
.hb-apps .art svg { height: 100%; width: 100%; }

/* band tabs (ceiling page) */
.hb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 4px; }
.hb-tabs button { border: 1px solid var(--hb-hair); background: none; color: var(--hb-on-2); border-radius: 999px; padding: 7px 15px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.hb-tabs button[aria-pressed="true"] { background: var(--hb-on-1); color: var(--ep-ink); border-color: var(--hb-on-1); font-weight: 600; }

/* designer + word tool */
.hb-tool { border: 1px solid var(--hb-hair); border-radius: 14px; overflow: hidden; margin-top: 24px; }
.hb-stage { position: relative; background: var(--hb-dark); }
.hb-stage svg { display: block; width: 100%; touch-action: none; }
#hb-draw svg { cursor: crosshair; }
.hb-stage .hint { position: absolute; top: 10px; left: 14px; font-size: 12.5px; color: var(--hb-on-3); pointer-events: none; }
.hb-stage.inked .hint { display: none; }
.hb-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 14px; border-top: 1px solid var(--hb-hair); background: var(--hb-panel); }
.hb-read { margin-right: auto; display: flex; gap: 22px; align-items: baseline; }
.hb-read b { display: block; font-family: 'EP JBM', monospace; font-size: 21px; font-weight: 500; color: var(--hb-on-1); font-variant-numeric: tabular-nums; }
.hb-read span { font-size: 12px; color: var(--hb-on-3); }
.hb-toolbar select, .hb-toolbar input[type="range"], .hb-toolbar input[type="text"] { accent-color: var(--hb-glow); background: var(--hb-dark); color: var(--hb-on-1); border: 1px solid var(--hb-hair); border-radius: 8px; padding: 7px 10px; font-family: inherit; font-size: 13.5px; min-width: 0; }
.hb-toolbar input[type="text"] { width: 150px; }
.hb-toolbar input[type="range"] { padding: 0; border: 0; width: 130px; background: none; }
#hb-xsec svg { display: block; width: 100%; height: auto; }

/* CCT pills — one per shipping colour temperature */
.hb-ccts { display: inline-flex; gap: 5px; }
.hb-ccts .hb-btn { padding: 7px 11px; font-variant-numeric: tabular-nums; }
.hb-ccts .hb-btn::before {
  content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 999px;
  margin-right: 7px; vertical-align: 0; background: #FFD9A0;
}
.hb-ccts .hb-btn[data-cct="neutral"]::before { background: #FFF2DC; }
.hb-ccts .hb-btn[data-cct="cool"]::before { background: #E3EEFB; }
.hb-ccts .hb-btn[aria-pressed="true"] { border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .10); }
.hb-toolhelp { font-size: 12.5px; color: var(--hb-on-3); margin: 10px 2px 0; }

/* Family overlay: application cards open in a dialog over the hub */
dialog.hb-dlg {
  border: 1px solid rgba(255, 255, 255, .16); border-radius: 14px;
  background: var(--hb-dark); color: var(--hb-on-1); padding: 0;
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain;
}
dialog.hb-dlg::backdrop { background: rgba(0, 0, 0, .62); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.hb-dlg-head { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; padding: 12px 12px 0; }
.hb-dlg-x {
  width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--hb-hair);
  background: rgba(10, 11, 13, .72); color: var(--hb-on-2); font-size: 15px; line-height: 1;
  cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hb-dlg-x:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.hb-dlg-body { padding: 0 26px 6px; margin-top: -26px; }
.hb-dlg-body h1 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 10px; }
.hb-dlg-body > p { color: var(--hb-on-2); max-width: 62ch; }
.hb-dlg-body .hb-rise, dialog.hb-dlg .hb-rise { opacity: 1; transform: none; }
.hb-dlg-foot { display: flex; flex-wrap: wrap; gap: 10px; padding: 20px 26px 24px; border-top: 1px solid var(--hb-hair); margin-top: 22px; }
@media (max-width: 700px) {
  dialog.hb-dlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .hb-dlg-body { padding: 0 18px 6px; }
  .hb-dlg-foot { padding: 16px 18px 22px; }
}

/* paired photos */
.hb-photos--duo { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.hb-photos--duo45 .hb-shot img { aspect-ratio: 4 / 5; object-fit: cover; }

/* process */
.hb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 24px; counter-reset: hbstep; }
.hb-steps div { border: 1px solid var(--hb-hair); border-radius: 14px; padding: 16px 16px 14px; font-size: 14px; }
.hb-steps div::before { counter-increment: hbstep; content: counter(hbstep, decimal-leading-zero); display: block; font-family: 'EP JBM', monospace; color: var(--hb-glow); font-size: 13px; margin-bottom: 8px; }
.hb-steps b { color: var(--hb-on-1); display: block; margin-bottom: 4px; font-weight: 600; }

/* finishes */
.hb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.hb-chips span { border: 1px solid var(--hb-hair); border-radius: 999px; padding: 6px 14px; font-size: 13px; color: var(--hb-on-2); }

/* enquiry */
.hb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; max-width: 720px; }
.hb-form .full { grid-column: 1 / -1; }
.hb-form label { display: grid; gap: 6px; font-size: 13px; color: var(--hb-on-3); }
.hb-form input[type="text"], .hb-form select, .hb-form textarea {
  background: var(--hb-panel); border: 1px solid var(--hb-hair); border-radius: 8px;
  color: var(--hb-on-1); padding: 10px 12px; font-family: inherit; font-size: 14.5px; width: 100%; box-sizing: border-box;
}
.hb-form textarea { min-height: 96px; resize: vertical; }
.hb-form input:focus, .hb-form textarea:focus, .hb-form select:focus { outline: 1px solid var(--hb-glow); border-color: var(--hb-glow); }
.hb-form .chk { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--hb-on-2); }
.hb-form .chk input { accent-color: var(--hb-glow); width: 16px; height: 16px; }
.hb-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hb-sketchnote { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--hb-on-3); }
.hb-sketchnote img { height: 44px; border: 1px solid var(--hb-hair); border-radius: 6px; display: block; }
.hb-msg { font-size: 14px; margin-top: 4px; }
.hb-msg.ok { color: var(--hb-glow); }
.hb-alt { margin-top: 18px; font-size: 13.5px; color: var(--hb-on-3); }
.hb-alt a { color: var(--hb-on-2); }

/* ── motion ─────────────────────────────────────────────────────────────
   Two devices only, both restrained: content rises 16px as it enters view,
   and rope artwork DRAWS itself (stroke-dashoffset) — the page's one piece
   of showmanship, and on-theme for a product that is a drawn line.
   Everything is opt-in via .hb-rise / .hb-draw, so a JS failure or a
   reduced-motion preference leaves a complete, static page. */
/* The failsafe animation is load-bearing: it reveals content ~2s in even if
   JS never runs, IntersectionObserver never fires, or the viewport measures
   zero. Without it a single JS failure would leave a blank black page. */
.hb-rise { opacity: 0; transform: translateY(16px); animation: hb-failsafe .01s linear 2s forwards; }
@keyframes hb-failsafe { to { opacity: 1; transform: none; } }
.hb-lit .hb-rise { opacity: 1; transform: none; animation: none; transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.hb-lit .hb-rise:nth-child(2) { transition-delay: .06s; }
.hb-lit .hb-rise:nth-child(3) { transition-delay: .12s; }
.hb-lit .hb-rise:nth-child(4) { transition-delay: .18s; }
.hb-lit .hb-rise:nth-child(5) { transition-delay: .24s; }
/* rope draw-in: paths carry pathLength="1", so one rule fits every length */
.hb-draw path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.hb-lit .hb-draw path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.5s cubic-bezier(.22,1,.36,1); }
.hb-card { transition: border-color .35s ease, transform .35s cubic-bezier(.16,1,.3,1); }
.hb-apps a.hb-card:hover { border-color: rgba(255,255,255,.30); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hb-rise, .hb-lit .hb-rise { opacity: 1; transform: none; transition: none; }
  .hb-draw path, .hb-lit .hb-draw path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
}

/* ── category photo galleries + text form rows (photo-first rebuild) ──── */
.hb-photos { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.hb-photos .hb-shot { min-width: 0; }
.hb-photos .hb-shot img { aspect-ratio: 16 / 9; max-width: 100%; }
.hb-photos .hb-shot--tall img { aspect-ratio: auto; }
.hb-heights { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-top: 16px; }
.hb-heights figure { margin: 0; border: 1px solid var(--hb-hair); border-radius: 14px; overflow: hidden; background: #000; }
.hb-heights img { display: block; width: 100%; height: auto; }
.hb-heights figcaption { padding: 8px 12px; font-size: 12.5px; color: var(--hb-on-3); font-family: 'EP JBM', monospace; }
.hb-forms { margin-top: 26px; border: 1px solid var(--hb-hair); border-radius: 14px; overflow: hidden; }
.hb-form-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 14px 16px; border-top: 1px solid var(--hb-hair); }
.hb-form-row:first-child { border-top: 0; }
.hb-form-row .t { color: var(--hb-on-1); font-weight: 600; font-size: 14.5px; }
.hb-form-row > span:not(.t):not(.f) { color: var(--hb-on-2); font-size: 13.5px; flex: 1 1 240px; }
.hb-form-row .f { font-size: 12.5px; color: var(--hb-on-3); font-family: 'EP JBM', monospace; font-variant-numeric: tabular-nums; }
.hb-form-row a { color: var(--hb-on-3); font-size: 12.5px; text-decoration: none; border-bottom: 1px solid var(--hb-hair); padding-bottom: 1px; }
.hb-form-row a:hover { color: var(--hb-on-1); }
.hb-form-row.hb-ring { outline: 2px solid var(--hb-glow); outline-offset: -2px; }
.hb-apps .art img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ── photography ───────────────────────────────────────────────────────── */
.hb-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--hb-hair); background: #000; }
.hb-shot img { display: block; width: 100%; max-width: 100%; height: 100%; object-fit: cover; }
.hb-shots { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.hb-shots .hb-shot img { aspect-ratio: 4 / 5; }
@media (max-width: 560px) { .hb-shots { grid-template-columns: 1fr; } }

/* ── specification table ───────────────────────────────────────────────── */
.hb-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1px; margin-top: 28px; background: var(--hb-hair); border: 1px solid var(--hb-hair); border-radius: 14px; overflow: hidden; }
.hb-spec div { background: var(--hb-dark); padding: 18px 18px 16px; }
.hb-spec dt { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--hb-on-3); margin: 0 0 8px; }
.hb-spec dd { margin: 0; font-family: 'EP JBM', 'JetBrains Mono', monospace; font-variant-numeric: tabular-nums; font-size: 20px; color: var(--hb-on-1); line-height: 1.3; }
.hb-spec dd small { display: block; font-family: 'IBM Plex Sans', system-ui, sans-serif; font-size: 13px; color: var(--hb-on-3); margin-top: 6px; line-height: 1.5; }
.hb-dimming { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hb-dimming > span { border: 1px solid var(--hb-hair); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--hb-on-2); }
.hb-dimming > span b { color: var(--hb-on-1); font-weight: 600; }
.hb-dimming > span span { color: var(--hb-on-3); }

/* footer */
.hb-foot { padding: 34px 0 48px; border-top: 1px solid var(--hb-hair); font-size: 13px; color: var(--hb-on-3); display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; }
.hb-foot img { height: 12px; opacity: .7; }
.hb-foot a { color: var(--hb-on-3); }

@media (max-width: 560px) {
  .hb-band { padding: 52px 0; }
  .hb-form { grid-template-columns: 1fr; }
  .hb-read b { font-size: 18px; }
  .hb-top nav { gap: 2px 12px; }
  .hb-top nav a { font-size: 12.5px; padding: 8px 2px; }
}
