/* HugBridge holding site. Brand tokens from the HugBridge brand kit (approved 6 Dec 2026). Mobile first. */
:root {
  --hb-ink: #1F2A44;
  --hb-cream: #FBF5EC;
  --hb-rose: #E8857A;
  --hb-amber: #F0A04B;
  --hb-sky: #9CC3D5;
  --hb-sage: #A9C2A0;
  --hb-ink-soft: #4A5470;
  --paper: #F4EADB;
  --paper-hi: #FFFDF8;
  --line: rgba(31, 42, 68, 0.14);
  --hb-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --hb-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hb-font-hand: "Caveat", "Segoe Print", cursive;
  --radius: 22px;
  --shadow-paper: 0 1px 0 rgba(31, 42, 68, 0.06), 0 10px 24px -12px rgba(31, 42, 68, 0.28);
  --wrap: 1160px;
  --gutter: clamp(18px, 5vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--hb-cream);
  color: var(--hb-ink);
  font: 400 1.0625rem/1.6 var(--hb-font-body);
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
}
/* Paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.07;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.16 0 0 0 0 0.27 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { max-width: 100%; }
a { color: var(--hb-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--hb-amber); }
:focus-visible { outline: 3px solid var(--hb-amber); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--hb-font-display);
  font-variation-settings: "SOFT" 100;
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h2 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--hb-ink); color: var(--hb-cream); padding: 10px 14px; border-radius: 10px; z-index: 200; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Wordmark (brand-tokens.css) */
.hb-wordmark { font-family: var(--hb-font-display); font-weight: 620; font-variation-settings: "SOFT" 100; letter-spacing: -0.018em; line-height: 1; color: var(--hb-ink); white-space: nowrap; }
.hb-wordmark .hb-hug { color: var(--hb-rose); }
.hb-on-dark .hb-wordmark { color: var(--hb-cream); }

.envbar, .notice { position: relative; z-index: 5; text-align: center; font-size: 0.9rem; font-weight: 600; padding: 8px var(--gutter); }
.envbar { background: var(--hb-amber); color: var(--hb-ink); }
.notice { background: var(--hb-ink); color: var(--hb-cream); }

/* Header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 12px; position: relative; z-index: 5; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand .hb-wordmark { font-size: 1.45rem; }
@media (min-width: 430px) { .brand .hb-wordmark { font-size: 1.6rem; } }
.brand-mark { width: 34px; height: 34px; flex: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--hb-ink); color: var(--hb-cream);
  font: 600 1rem/1.2 var(--hb-font-body); text-decoration: none; border: 2px solid var(--hb-ink); cursor: pointer;
  box-shadow: 0 6px 0 -2px rgba(240, 160, 75, 0.9);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 -2px var(--hb-amber); text-decoration: none; }
.btn:active { transform: translateY(1px); box-shadow: 0 3px 0 -2px var(--hb-amber); }
.btn--small { min-height: 44px; padding: 10px 16px; font-size: 0.95rem; box-shadow: none; white-space: nowrap; }
.hide-xs { display: none; }
@media (min-width: 430px) { .hide-xs { display: inline; } }
.btn--small:hover { box-shadow: none; background: #2a3a5e; }
.btn--ghost { background: transparent; color: var(--hb-ink); box-shadow: none; }
.btn--ghost:hover { background: var(--paper); box-shadow: none; }
.btn--big { width: 100%; min-height: 56px; font-size: 1.1rem; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* Hero */
.hero { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 56px; display: grid; gap: 34px; }
.arc { position: absolute; left: 0; right: 0; bottom: 6%; width: 100%; height: 62%; z-index: 0; overflow: visible; }
.arc path { fill: none; stroke: var(--hb-sky); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.5 14; vector-effect: non-scaling-stroke; animation: walk 40s linear infinite; }
@keyframes walk { to { stroke-dashoffset: -400; } }
.hero-copy { position: relative; z-index: 2; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-ink-soft); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--hb-amber); box-shadow: 14px 0 0 -2px var(--hb-rose); margin-right: 14px; }
.hero h1 { font-size: clamp(2.6rem, 9.5vw, 5.1rem); line-height: 1.0; margin-bottom: 22px; }
.lede { font-size: clamp(1.08rem, 2.4vw, 1.25rem); color: var(--hb-ink-soft); max-width: 36em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 26px; }
.cta-note { font-size: 0.95rem; color: var(--hb-ink-soft); }
.extra { margin-top: 22px; font-size: 0.92rem; color: var(--hb-ink-soft); border-left: 3px solid var(--hb-sky); padding-left: 12px; max-width: 34em; }

.hero-art { position: relative; z-index: 1; min-height: 360px; display: grid; place-items: center; }
.disc {
  width: min(78vw, 340px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--paper-hi), var(--paper) 70%);
  box-shadow: inset 0 0 0 10px rgba(255, 253, 248, 0.6), inset 0 0 0 11px var(--line), var(--shadow-paper);
  display: grid; place-items: center;
}
.hero-mark { width: 64%; height: auto; overflow: visible; }
.note {
  position: absolute; margin: 0; max-width: 13.5em; padding: 14px 16px 12px;
  font: 700 1.45rem/1.15 var(--hb-font-hand); color: var(--hb-ink);
  background: var(--paper-hi); border-radius: 6px; box-shadow: var(--shadow-paper);
}
.tape { position: absolute; top: -10px; left: 50%; width: 64px; height: 20px; transform: translateX(-50%) rotate(-3deg); background: rgba(156, 195, 213, 0.65); border-radius: 2px; }
.note-1 { top: 0; left: 0; transform: rotate(-5deg); }
.note-2 { bottom: 8%; right: 0; transform: rotate(4deg); }
.note-2 .tape { background: rgba(240, 160, 75, 0.55); }
.note-3 { bottom: -4%; left: 4%; transform: rotate(-2deg); font-size: 1.3rem; display: none; }
.note-3 .tape { background: rgba(232, 133, 122, 0.5); }

/* Load choreography */
.anim .reveal { animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.anim .hero-copy .reveal:nth-child(2) { animation-delay: 0.08s; }
.anim .hero-copy .reveal:nth-child(3) { animation-delay: 0.16s; }
.anim .hero-copy .reveal:nth-child(4) { animation-delay: 0.24s; }
.anim .hero-copy .reveal:nth-child(5) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.anim .mark--draw .mark-l, .anim .mark--draw .mark-r { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.5s cubic-bezier(0.6, 0.1, 0.2, 1) 0.2s forwards; }
.anim .mark--draw .mark-r { animation-delay: 0.45s; }
.anim .mark--draw .mark-hg { transform-box: fill-box; transform-origin: center; animation: pop 0.7s cubic-bezier(0.3, 1.6, 0.4, 1) 1.5s both; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); opacity: 0; } }
.anim .note { animation: drop 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.anim .note-1 { animation-delay: 1.1s; }
.anim .note-2 { animation-delay: 1.35s; }
.anim .note-3 { animation-delay: 1.6s; }
@keyframes drop { from { opacity: 0; translate: 0 -16px; } }

/* Sections */
section { position: relative; }
.apart, .features, .faq { max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter); }
.section-lede { color: var(--hb-ink-soft); font-size: 1.1rem; max-width: 38em; margin-bottom: 28px; }

.apart-grid, .feat-grid, .prom-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.apart-card a {
  display: flex; flex-direction: column; gap: 6px; min-height: 120px; padding: 22px; text-decoration: none;
  background: var(--paper); border-radius: var(--radius); border: 1.5px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.apart-card a:hover { transform: translateY(-3px) rotate(-0.4deg); box-shadow: var(--shadow-paper); border-color: var(--line); }
.apart-card.is-current a { background: var(--paper-hi); border-color: var(--hb-ink); box-shadow: var(--shadow-paper); }
.apart-title { font: 600 1.4rem/1.1 var(--hb-font-display); font-variation-settings: "SOFT" 100; }
.apart-title::after { content: " \2192"; color: var(--hb-amber); }
.apart-line { color: var(--hb-ink-soft); }

.feat { padding: 26px 22px 18px; background: var(--paper-hi); border-radius: var(--radius); box-shadow: var(--shadow-paper); }
.feat h3 { margin-top: 14px; }
.feat p { color: var(--hb-ink-soft); margin: 0; }
.ico { width: 46px; height: 46px; fill: none; stroke: var(--hb-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico .acc { stroke: var(--hb-amber); stroke-width: 2.2; }

/* Promises: the ink section with paper-cut edges */
.promises { background: var(--hb-ink); color: var(--hb-cream); margin: 40px 0; padding: 70px var(--gutter); }
.promises::before, .promises::after {
  content: ""; position: absolute; left: 0; right: 0; height: 26px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 26' preserveAspectRatio='none'%3E%3Cpath d='M0 26 L0 14 Q 60 2 120 12 T 240 10 T 360 14 T 480 8 T 600 13 T 720 9 T 840 14 T 960 7 T 1080 12 T 1200 9 L1200 26 Z' fill='%231F2A44'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.promises::before { top: -25px; }
.promises::after { bottom: -25px; transform: scaleY(-1); }
.promises-inner { max-width: var(--wrap); margin: 0 auto; }
.promises h2 { color: var(--hb-cream); }
.promises .section-lede { color: var(--hb-sky); }
.prom { padding: 22px 0 8px; border-top: 1px solid rgba(251, 245, 236, 0.2); }
.prom h3 { color: var(--hb-cream); display: flex; gap: 12px; align-items: baseline; }
.prom h3::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg) translateY(-2px); background: var(--hb-amber); }
.prom p { color: rgba(251, 245, 236, 0.82); margin: 0; }

/* Join */
.join { max-width: 860px; margin: 0 auto; padding: 56px var(--gutter); scroll-margin-top: 12px; }
.join-card { position: relative; background: var(--paper-hi); border-radius: 28px; padding: 30px 20px; box-shadow: var(--shadow-paper); }
.join-card::before, .join-card::after { content: ""; position: absolute; inset: 0; border-radius: 28px; z-index: -1; }
.join-card::before { background: var(--hb-sky); transform: rotate(-2.2deg) translate(-4px, 8px); opacity: 0.55; }
.join-card::after { background: var(--hb-rose); transform: rotate(1.6deg) translate(6px, 10px); opacity: 0.35; }
.join-intro h2 { margin-bottom: 8px; }
.join-intro p { color: var(--hb-ink-soft); }
.q { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.q legend { font-weight: 600; font-size: 1.05rem; margin-bottom: 10px; padding: 0; }
.hint { font-weight: 400; color: var(--hb-ink-soft); font-size: 0.92rem; }
.choices { display: grid; gap: 10px; }
.choices--chips, .choices--row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice, .chip, .check { position: relative; display: flex; cursor: pointer; }
.choice input, .chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span, .chip span {
  display: flex; align-items: center; min-height: 48px; width: 100%; padding: 10px 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--hb-cream); line-height: 1.3;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.chip span { border-radius: 999px; width: auto; }
.choice span::before { content: ""; flex: none; width: 18px; height: 18px; margin-right: 12px; border-radius: 50%; border: 2px solid var(--hb-ink-soft); background: var(--paper-hi); }
.choice:hover span, .chip:hover span { border-color: var(--hb-ink); }
.choice input:checked + span, .chip input:checked + span { background: var(--hb-ink); border-color: var(--hb-ink); color: var(--hb-cream); }
.choice input:checked + span::before { border-color: var(--hb-amber); background: var(--hb-amber); box-shadow: inset 0 0 0 3px var(--hb-ink); }
.choice input:focus-visible + span, .chip input:focus-visible + span { outline: 3px solid var(--hb-amber); outline-offset: 2px; }
.fields { display: grid; gap: 14px; margin: 6px 0 18px; }
.field { display: grid; gap: 6px; }
.field-label { font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; font: inherit; color: var(--hb-ink);
  background: var(--hb-cream); border: 1.5px solid var(--line); border-radius: 14px; appearance: none;
}
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231F2A44' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.field input:focus, .field select:focus { border-color: var(--hb-ink); outline: 3px solid rgba(240, 160, 75, 0.6); outline-offset: 1px; }
.check { align-items: flex-start; gap: 12px; margin: 0 0 12px; min-height: 44px; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--hb-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 0.9rem; color: var(--hb-ink-soft); margin: 14px 0 0; }
.form-error { background: #FDECE9; border: 1.5px solid var(--hb-rose); color: var(--hb-ink); padding: 12px 14px; border-radius: 12px; font-weight: 600; }
.form-closed { font-weight: 600; }
.thanks { text-align: center; padding: 10px 0; }
.thanks:focus { outline: none; }
.thanks-mark { width: 84px; height: 84px; margin-bottom: 6px; }
.thanks h3 { font-size: 2rem; }
.thanks p { color: var(--hb-ink-soft); max-width: 30em; margin-left: auto; margin-right: auto; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 18px; }
.share-msg { margin-top: 10px; min-height: 1.4em; }

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
details { background: var(--paper); border-radius: 16px; padding: 0 18px; }
summary { list-style: none; cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 1.05rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font: 600 1.6rem/1 var(--hb-font-display); color: var(--hb-amber); transition: transform 0.2s ease; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--hb-ink-soft); padding-bottom: 6px; }

/* Footer */
.foot { background: var(--paper); margin-top: 40px; padding: 48px var(--gutter) 28px; }
.foot-inner { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 28px; }
.brand--foot .hb-wordmark { font-size: 1.5rem; }
.foot-tag { font: 600 1.25rem/1.25 var(--hb-font-display); font-variation-settings: "SOFT" 100; margin: 12px 0 4px; }
.foot-sm { color: var(--hb-ink-soft); }
.foot-nav { display: grid; gap: 2px; align-content: start; }
.foot-nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-h { font-weight: 700; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hb-ink-soft); margin: 0 0 4px; }
.legal { max-width: var(--wrap); margin: 30px auto 0; font-size: 0.85rem; color: var(--hb-ink-soft); }

/* Privacy */
.prose-page { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 40px; }
.prose h1 { font-size: clamp(2.2rem, 7vw, 3.4rem); }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.5em; }
.updated { color: var(--hb-ink-soft); }

/* Larger screens */
@media (min-width: 560px) {
  .apart-grid { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .fields .field:nth-child(2) { grid-column: span 1; }
  .fields .field:nth-child(3) { grid-column: 1 / -1; }
  .join-card { padding: 40px 36px; }
  .note-3 { display: block; }
  .hero-art { min-height: 420px; }
}
@media (min-width: 900px) {
  .hero { grid-template-columns: 1.08fr 0.92fr; align-items: center; padding-top: 34px; padding-bottom: 80px; }
  .hero-art { min-height: 520px; }
  .disc { width: 390px; }
  .note-1 { top: 2%; left: -2%; }
  .note-2 { bottom: 14%; right: -4%; }
  .note-3 { bottom: 0; left: 8%; }
  .apart-grid { grid-template-columns: repeat(4, 1fr); }
  .feat-grid { grid-template-columns: repeat(3, 1fr); }
  .prom-grid { grid-template-columns: repeat(2, 1fr); gap: 10px 48px; }
  .foot-inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* Safety net: if animations never ran, show the final state. */
.anim-done .reveal, .anim-done .note, .anim-done .mark--draw .mark-l, .anim-done .mark--draw .mark-r, .anim-done .mark--draw .mark-hg { animation: none !important; stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .mark--draw .mark-l, .mark--draw .mark-r { stroke-dashoffset: 0; }
}

/* Follow along: every social profile */
.follow { padding: 40px var(--gutter) 64px; }
.follow-inner { max-width: var(--wrap); margin: 0 auto; }
.soc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.soc {
  display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  min-height: 72px; padding: 14px 18px; border-radius: var(--radius); background: var(--paper-hi); box-shadow: var(--shadow-paper);
  text-decoration: none; transition: transform 0.2s ease;
}
.soc:hover { transform: translateY(-3px); }
.soc .soc-ico { grid-row: 1 / span 2; width: 44px; height: 44px; padding: 10px; border-radius: 50%; background: var(--hb-ink); color: var(--hb-cream); }
.soc-name { font: 600 1.15rem/1.1 var(--hb-font-display); font-variation-settings: "SOFT" 100; }
.soc-handle { color: var(--hb-ink-soft); font-size: 0.95rem; }
.foot-soc { gap: 10px; }
.foot-soc .soc-ico { width: 20px; height: 20px; }
