/* ============================================================
   editorial.css — TátaUp shared design system
   Tokens, base, sidebar/chrome, hero, sections, forms, footer.
   Mirrors landing page (welcome.ejs) aesthetic.
   ============================================================ */

:root {
  --w-pure:    #FFFFFF;
  --w-snow:    #F4EFE8;
  --w-ivory:   #F4EFE8;
  --w-bone:    #ECE6DC;
  --w-cloud:   #DDE5E8;
  --w-mist:    #CFD9DD;

  --ink:       #344657;
  --ink-soft:  #5F6E7B;
  --ink-faint: #8EA4B2;
  --blue:      #7A92A2;
  --blue-soft: #8EA4B2;
  --teal:      #5F6E7B;
  --rust:      #E8A23C;

  --cta:       #E8A23C;
  --cta-ink:   #344657;
  --cta-glow:  rgba(232, 162, 60, 0.45);

  --ok:        #2F8B5D;
  --err:       #C04A3D;

  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body:    "Satoshi", "Inter", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;
  --hand:    "Caveat", "Bradley Hand", cursive;

  --t-caption: 10px;
  --t-meta:    13px;
  --t-body:    16px;
  --t-lead:    26px;
  --t-h3:      42px;
  --t-h2:      68px;
  --t-h1:      110px;
  --t-display: 178px;
  --t-mega:    288px;

  --side-w: 240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  font-family: var(--body);
  font-weight: 500;
  font-size: var(--t-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.55;
  cursor: default;

  background-color: var(--w-snow);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  background-size: 400px 400px;
  background-blend-mode: multiply;
  background-attachment: fixed;
}

::selection { background: var(--ink); color: var(--w-snow); }

.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 4px; z-index: 200;
  background: var(--ink);
  transform-origin: 0 50%;
  transform: scaleX(0);
  animation: progress linear;
  animation-timeline: scroll(root);
}
@keyframes progress { to { transform: scaleX(1); } }
@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.8); }
}

/* ───────── Sidebar ───────── */
.side {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--side-w); z-index: 100;
  background: var(--ink); color: var(--w-snow);
  display: flex; flex-direction: column;
  border-right: 2px solid var(--ink);
  box-shadow: 8px 0 0 -7px var(--rust);
}
.side::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; opacity: 0.7;
}
.side > * { position: relative; z-index: 1; }

.side-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 22px;
  text-decoration: none; color: var(--w-snow);
  border-bottom: 1px solid rgba(244,239,232,0.12);
}
.side-brand .mark {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cta);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-size: 18px; font-weight: 800;
  font-family: var(--hand);
  transform: rotate(-6deg);
  border: 1.5px solid var(--w-snow);
  box-shadow: 2px 2px 0 var(--rust);
  transition: transform 280ms cubic-bezier(0.34,1.56,0.64,1);
}
.side-brand:hover .mark { transform: rotate(6deg) scale(1.05); }
.side-brand .name {
  font-family: var(--display); font-weight: 800;
  font-size: 20px; letter-spacing: -0.03em;
  color: var(--w-snow);
}

.side-section {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: rgba(244,239,232,0.45);
  padding: 22px 22px 10px;
}

.side-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.side-nav a, .side-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: rgba(244,239,232,0.72);
  text-decoration: none;
  transition: background 180ms, color 180ms, transform 180ms;
  background: none; border: none; cursor: pointer; text-align: left; width: 100%;
  font-weight: 500;
}
.side-nav a:hover, .side-nav button:hover {
  background: rgba(244,239,232,0.06);
  color: var(--w-snow);
}
.side-nav a.active {
  background: rgba(232,162,60,0.14);
  color: var(--cta);
  font-weight: 700;
}
.side-nav a.active::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--cta); display: inline-block; margin-left: -2px;
}
.side-nav svg {
  width: 18px; height: 18px; flex-shrink: 0;
  stroke: currentColor; stroke-width: 1.8; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
}

.side-spacer { flex: 1; min-height: 16px; }

.side-crisis-wrap { padding: 14px 14px 12px; }
.side-crisis {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid var(--w-snow);
  border-radius: 999px;
  color: var(--w-snow); text-decoration: none;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--rust);
  transition: transform 200ms, box-shadow 200ms;
  background: transparent;
}
.side-crisis:hover {
  transform: translate(-1px,-1px);
  box-shadow: 4px 4px 0 var(--rust);
}
.side-crisis .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cta);
  animation: pulse 1.6s ease-in-out infinite;
}

.side-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px;
  border-top: 1px solid rgba(244,239,232,0.12);
}
.side-user .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(244,239,232,0.10);
  border: 1.5px solid rgba(244,239,232,0.35);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--hand); font-size: 18px; font-weight: 700;
  color: var(--cta);
}
.side-user .meta { flex: 1; min-width: 0; }
.side-user .name {
  font-family: var(--display); font-weight: 700;
  font-size: 14px; color: var(--w-snow);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.side-user .role {
  font-family: var(--mono); font-size: 9px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(244,239,232,0.45); margin-top: 2px;
}
.side-user .logout {
  background: none; border: none; cursor: pointer;
  color: rgba(244,239,232,0.6);
  padding: 6px; border-radius: 8px;
  display: inline-flex;
}
.side-user .logout:hover { color: var(--cta); background: rgba(244,239,232,0.06); }
.side-user .logout svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 1.8; fill: none; }

/* ───────── Mobile top bar ───────── */
.mobile-bar {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; z-index: 90;
  padding: 12px 16px;
  background: var(--ink); color: var(--w-snow);
  align-items: center; justify-content: space-between;
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 -2px var(--rust);
}
.mobile-bar .brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 800; font-size: 18px;
  letter-spacing: -0.03em; color: var(--w-snow); text-decoration: none;
}
.mobile-bar .brand .mark {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--cta);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); font-family: var(--hand); font-weight: 800; font-size: 16px;
  transform: rotate(-6deg);
  border: 1.5px solid var(--w-snow);
}
.mobile-bar .burger {
  width: 42px; height: 42px;
  background: transparent; border: 1.5px solid var(--w-snow);
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--w-snow);
  box-shadow: 2px 2px 0 var(--rust);
  transition: transform 180ms, box-shadow 180ms;
}
.mobile-bar .burger:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--rust); }
.mobile-bar .burger svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

.side-close {
  display: none;
  position: absolute; top: 14px; right: 14px; z-index: 2;
  width: 42px; height: 42px;
  background: transparent; border: 1.5px solid var(--w-snow);
  border-radius: 10px;
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--w-snow);
  box-shadow: 2px 2px 0 var(--rust);
  transition: transform 180ms, box-shadow 180ms;
}
.side-close:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--rust); }
.side-close svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }

.side-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 95;
  background: rgba(52,70,87,0.45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ───────── Layout offset for sidebar ───────── */
.page-shell { padding-left: var(--side-w); }

/* ───────── Sticky inner top bar (admin pages) ───────── */
.app-topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 16px 32px;
  background: rgba(244,239,232,0.92);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1.5px solid var(--ink);
  box-shadow: 0 4px 0 -2px var(--rust);
}
.app-topbar .title {
  font-family: var(--display); font-weight: 800;
  font-size: 26px; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1; display: inline-flex; align-items: center; gap: 12px;
}
.app-topbar .title em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  display: inline-block; transform: rotate(-2deg);
}
.app-topbar .count {
  font-family: var(--mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-soft);
  padding: 4px 10px;
  border: 1.5px dashed var(--ink-soft); border-radius: 999px;
  background: rgba(255,255,255,0.4);
}
.app-topbar .actions { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Small editorial buttons used in admin top bars */
.btn-sm {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink);
  background: var(--w-pure);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  text-decoration: none; cursor: pointer; font-weight: 700;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform 180ms, box-shadow 180ms, background 180ms, color 180ms;
}
.btn-sm:hover { transform: translate(-1px,-1px); box-shadow: 3px 3px 0 var(--ink); }
.btn-sm.is-pri { background: var(--cta); border-color: var(--ink); }
.btn-sm.is-pri:hover { box-shadow: 3px 3px 0 var(--ink); }
.btn-sm.is-ghost { background: transparent; box-shadow: 2px 2px 0 var(--ink-soft); border-color: var(--ink-soft); color: var(--ink-soft); }
.btn-sm.is-ghost:hover { color: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }

/* ───────── Hero ───────── */
.hero {
  min-height: 92dvh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 80px 32px 80px;
  position: relative;
  overflow: hidden;
  z-index: 2;
  background: var(--w-snow);
}
.hero.compact { min-height: 60dvh; padding: 80px 32px 60px; }
.hero-sketch {
  position: absolute; right: -8%; top: 8%;
  width: 540px; height: 540px;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
  transform: rotate(-6deg);
}
.hero-sketch svg { width: 100%; height: 100%; }

.margin-note {
  position: absolute; z-index: 1;
  font-family: var(--hand);
  font-size: 22px; line-height: 1.1;
  color: var(--rust);
  transform: rotate(var(--r, -4deg));
  opacity: 0.78;
  pointer-events: none;
  max-width: 180px;
}
.margin-note.n1 { top: 18%; right: 6%; --r: 4deg; }
.margin-note.n2 { top: 66%; right: 3%; --r: -6deg; }
.margin-note .arrow {
  display: block;
  width: 60px; height: 30px;
  margin-top: 4px;
}

.hero-inner {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto; width: 100%;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--ink-soft);
  padding: 10px 18px;
  border: 1.5px dashed var(--ink-soft);
  border-radius: 999px;
  margin-bottom: 36px;
  background: rgba(255,255,255,0.18);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 1.8s ease-in-out infinite;
}

h1.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(64px, 13vw, 178px);
  line-height: 0.88;
  letter-spacing: -0.05em;
  margin-bottom: 28px;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
h1.display .line { display: block; }
h1.display em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  display: inline-block; transform: rotate(-2deg);
}
h1.display.mid { font-size: clamp(48px, 8vw, 110px); }

.hero-meta {
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  margin-top: 64px; padding-top: 36px;
  border-top: 1px solid var(--ink);
  align-items: end;
  position: relative;
}
.hero-meta::before {
  content: ""; position: absolute; top: -1px; left: 0;
  width: 12px; height: 12px; background: var(--ink); border-radius: 50%;
  transform: translateY(-50%);
}
.hero-desc {
  font-size: var(--t-lead);
  max-width: 580px;
  color: var(--ink);
  line-height: 1.45;
  font-weight: 500;
}
.hero-desc strong { color: var(--ink); font-weight: 700; }
.hero-desc em {
  font-family: var(--hand);
  font-style: normal;
  font-weight: 700; color: var(--rust);
  font-size: 1.15em;
  display: inline-block;
  transform: rotate(-1.5deg);
}

/* ───────── CTA / buttons — sketch-box hand-drawn ───────── */
.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 18px 32px;
  font-family: var(--display); font-weight: 800;
  font-size: 16px; letter-spacing: -0.005em;
  color: var(--ink); background: transparent;
  border: none;
  cursor: pointer; text-decoration: none;
  transition: transform 240ms;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 60' preserveAspectRatio='none'><path d='M8 6 Q 60 3, 120 5 T 232 8 Q 235 30, 233 52 Q 170 55, 120 53 T 6 54 Q 4 30, 8 6 Z' fill='none' stroke='%23344657' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/></svg>");
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0); }
.cta svg {
  width: 20px; height: 20px;
  position: relative; z-index: 1;
  color: var(--rust);
  transition: transform 240ms;
}
.cta:hover svg { transform: translateX(6px); }
.cta span { position: relative; z-index: 1; }
.cta.ghost { color: var(--ink-soft); }
.cta.ghost::before { opacity: 0.5; }
.cta.ghost:hover { color: var(--ink); }
.cta.ghost:hover::before { opacity: 1; }
.cta.block { width: 100%; justify-content: center; }

.hero-secondary {
  margin-top: 16px;
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-soft);
}
.hero-secondary a {
  color: var(--ink); font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  transition: color 200ms, border-color 200ms;
}
.hero-secondary a:hover { color: var(--rust); border-color: var(--rust); }

/* ───────── Trust strip ───────── */
.trust {
  padding: 56px 32px 48px;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  position: relative;
  z-index: 2;
  background: var(--w-ivory);
}
.trust-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
}
.trust-item {
  padding: 0 32px;
  border-right: 1px dashed var(--ink-faint);
  position: relative;
}
.trust-item:last-child { border-right: none; }
.trust-item:first-child { padding-left: 0; }
.trust-item .num {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h2);
  line-height: 0.9; letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
  display: flex; align-items: baseline; gap: 4px;
}
.trust-item .num .unit {
  font-size: var(--t-h3); color: var(--rust);
  font-family: var(--hand); font-style: normal;
  font-weight: 700;
}
.trust-item .label {
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-soft); margin-top: 12px;
}
.trust-item .tick {
  position: absolute; top: -10px; left: -8px;
  font-family: var(--hand); font-size: 16px;
  color: var(--rust); transform: rotate(-12deg);
}

/* ───────── Bento ───────── */
.bento-wrap {
  padding: 100px 32px 140px;
  position: relative; z-index: 2;
  background: var(--w-cloud);
}
.bento-header {
  max-width: 1280px; margin: 0 auto 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px;
  align-items: end;
}
.bento-header h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 5.5vw, 68px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--ink);
  max-width: 820px;
  font-variation-settings: "opsz" 48;
}
.bento-header h2 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  font-size: 1.1em;
  display: inline-block; transform: rotate(-1deg);
}
.bento-header .counter {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h2);
  line-height: 1; letter-spacing: -0.05em;
  color: var(--ink); opacity: 0.18;
  font-variation-settings: "opsz" 48;
}
.reveal-eyebrow {
  font-family: var(--mono);
  font-size: var(--t-meta); text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--rust); margin-bottom: 28px;
  display: inline-flex; align-items: center; gap: 12px;
}
.reveal-eyebrow::before {
  content: ""; width: 32px; height: 1px; background: var(--rust);
}

.bento {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.bento-card {
  padding: 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative;
  transition: transform 400ms cubic-bezier(0.16,1,0.3,1),
              box-shadow 250ms, filter 250ms;
  opacity: 0;
  transform: translateY(40px) rotate(var(--rot, 0deg));
  animation: rise-card 900ms cubic-bezier(0.16,1,0.3,1) forwards;
  animation-timeline: view();
  animation-range: entry 0% cover 35%;
  text-decoration: none;
  color: inherit;
}
.bento-card > * { position: relative; z-index: 1; }
@keyframes rise-card { to { opacity: 1; transform: translateY(0) rotate(var(--rot, 0deg)); } }
.bento-card .phase {
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: var(--rust);
  font-weight: 500;
}
.bento-card h3 {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h3);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink);
  margin-top: 14px;
  font-variation-settings: "opsz" 32;
}
.bento-card h3 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  font-size: 1.1em;
  display: inline-block; transform: rotate(-1.5deg);
}
.bento-card p {
  font-size: var(--t-body); color: var(--ink-soft);
  margin-top: 14px; line-height: 1.55;
}
.bento-card .ico {
  width: 56px; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  transition: transform 300ms cubic-bezier(0.34,1.56,0.64,1);
}
.bento-card:hover .ico { transform: rotate(-12deg) scale(1.1); }
.bento-card .ico svg {
  width: 26px; height: 26px;
  stroke: var(--ink); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  filter: url(#pencilWobble);
}

.c1 {
  grid-column: span 7; grid-row: span 2;
  background: var(--ink); color: var(--w-snow);
  --rot: -0.8deg;
  padding: 44px 40px 40px;
  overflow: hidden;
  clip-path: polygon(
    0% 1.5%, 4% 0%, 9% 1.8%, 16% 0.6%, 23% 1.4%, 31% 0%, 39% 1.2%, 47% 0.2%,
    55% 1.6%, 63% 0%, 71% 0.9%, 79% 0%, 87% 1.4%, 94% 0.2%, 100% 1%,
    99.6% 6%, 100% 14%, 99% 22%, 100% 30%, 99% 40%, 100% 52%,
    99% 64%, 100% 76%, 99% 88%, 100% 94%, 99% 100%,
    94% 99%, 87% 100%, 79% 99%, 71% 100%, 63% 99%, 55% 100%,
    47% 99%, 39% 100%, 31% 99%, 23% 100%, 16% 99%, 9% 100%, 4% 99%, 0% 99%,
    0.6% 92%, 0% 84%, 1% 74%, 0% 64%, 1% 54%, 0% 44%,
    1% 34%, 0% 24%, 0.6% 14%, 0% 6%
  );
  filter: drop-shadow(8px 10px 0 var(--rust));
}
.c1::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.18 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  pointer-events: none;
}
.c1:hover { filter: drop-shadow(12px 14px 0 var(--rust)); }
.c1 h3 { color: var(--w-snow); font-size: clamp(48px, 5vw, 110px); line-height: 0.9; }
.c1 h3 em { color: var(--cta); }
.c1 p  { color: rgba(244,239,232,0.72); font-size: var(--t-lead); max-width: 460px; }
.c1 .phase { color: var(--cta); }
.c1 .ico {
  background: rgba(255,255,255,0.06);
  border: 2px solid var(--w-snow);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--rust);
}
.c1 .ico svg { stroke: var(--w-snow); }
.c1 .big-num {
  position: absolute; bottom: 28px; right: 44px;
  font-family: var(--hand);
  font-size: var(--t-display); line-height: 0.7;
  color: rgba(255,255,255,0.10);
  font-weight: 700;
  z-index: 1;
  transform: rotate(-8deg);
}

.c2 {
  grid-column: span 5;
  --rot: 1.2deg;
  background: var(--w-pure);
  padding: 24px 24px 64px;
  border: 1px solid rgba(52,70,87,0.08);
  box-shadow: 0 2px 4px rgba(52,70,87,0.08), 0 14px 30px rgba(52,70,87,0.16);
  overflow: hidden;
}
.c2::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.1 0 0 0 0 0.09 0 0 0 0 0.08 0 0 0 0.10 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply; pointer-events: none;
}
.c2 .ico { background: var(--w-bone); border: 1.5px solid var(--ink); border-radius: 50%; }
.c2 .caption {
  position: absolute; bottom: 16px; left: 24px; right: 24px;
  font-family: var(--hand); font-size: 22px;
  color: var(--rust); transform: rotate(-1deg);
  border-top: 1px dashed rgba(52,70,87,0.18);
  padding-top: 12px;
  z-index: 2;
}

.c3 {
  grid-column: span 5;
  --rot: 0deg;
  background: transparent;
  padding: 12px 28px;
  border: none; box-shadow: none;
  display: flex; flex-direction: column; justify-content: center;
}
.c3 .ico { width: auto; height: auto; background: transparent; border: none; box-shadow: none; margin-bottom: 14px; }
.c3 .ico svg { width: 36px; height: 36px; stroke: var(--rust); }
.c3 h3 { font-size: clamp(36px, 4vw, 56px); margin-top: 8px; }
.c3 h3 .underline {
  display: inline-block;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 14' preserveAspectRatio='none'><path d='M2,9 Q40,3 80,8 T160,7 T238,9' fill='none' stroke='%23E8A23C' stroke-width='2.4' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 14px;
  padding-bottom: 8px;
}

.c4 {
  grid-column: span 4;
  --rot: -0.4deg;
  background: var(--w-pure);
  border: 1px solid rgba(52,70,87,0.18);
  padding: 28px 26px 28px 60px;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 28px 44px, rgba(52,70,87,0.10) 6px, transparent 7px),
    radial-gradient(circle at 28px 50%, rgba(52,70,87,0.10) 6px, transparent 7px),
    radial-gradient(circle at 28px calc(100% - 44px), rgba(52,70,87,0.10) 6px, transparent 7px),
    linear-gradient(to right, transparent 0 47px, rgba(232,162,60,0.55) 47px 49px, transparent 49px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(142,164,178,0.18) 31px 32px);
  box-shadow: 2px 4px 0 rgba(52,70,87,0.08);
}
.c4 .ico { background: transparent; border: 1.5px dashed var(--ink); border-radius: 50%; }
.c4 h3 {
  font-family: var(--hand); font-size: 46px; font-weight: 700;
  line-height: 1; color: var(--ink);
  letter-spacing: -0.01em;
}
.c4 h3 em { font-family: var(--display); font-weight: 800; font-size: 0.78em; color: var(--rust); transform: none; }
.c4 p { font-family: var(--mono); font-size: 13px; color: var(--ink); line-height: 1.7; }
.c4 .phase { color: var(--rust); }

.c5 {
  grid-column: span 4;
  background: var(--teal); color: var(--w-snow);
  --rot: -1.4deg;
  border-radius: 2px;
  padding: 44px 28px 28px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.14), 0 16px 30px rgba(0,0,0,0.18);
}
.c5::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen; pointer-events: none;
  border-radius: inherit;
}
.c5 h3 { color: var(--w-snow); }
.c5 h3 em { color: var(--cta); }
.c5 p { color: rgba(244,239,232,0.85); }
.c5 .phase { color: rgba(244,239,232,0.75); }
.c5 .ico { background: rgba(255,255,255,0.10); border: 1.5px solid var(--w-snow); border-radius: 50%; }
.c5 .ico svg { stroke: var(--w-snow); }
.c5 .pin {
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  width: 28px; height: 36px;
  z-index: 4;
  filter: drop-shadow(2px 3px 3px rgba(0,0,0,0.28));
}

.c6 {
  grid-column: span 4;
  --rot: 1deg;
  background: transparent;
  border: none; box-shadow: none;
  padding: 16px 20px;
}
.c6 .ico {
  width: 64px; height: 64px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 2px;
  filter: url(#pencilWobble);
  margin-bottom: 18px;
}
.c6 .ico svg { stroke: var(--ink); }
.c6 .phase {
  font-family: var(--hand); font-size: 20px;
  letter-spacing: 0; text-transform: none;
  color: var(--rust); font-weight: 700;
}
.c6 h3 { font-family: var(--hand); font-size: 60px; font-weight: 700; line-height: 0.92; margin-top: 6px; }
.c6 h3 em { font-family: var(--display); font-weight: 800; font-size: 0.55em; transform: none; letter-spacing: -0.04em; }
.c6 p { font-size: 15px; }

.c2:hover, .c4:hover, .c5:hover { transform: translate(-3px, -5px) rotate(var(--rot, 0deg)); }
.c3:hover, .c6:hover { transform: translate(-2px, -3px) rotate(var(--rot, 0deg)); }

/* ───────── Closing ───────── */
.closing {
  padding: 140px 32px;
  position: relative; overflow: hidden;
  z-index: 2;
  background: var(--w-ivory);
}
.closing-bg {
  position: absolute; right: -10%; top: 50%;
  transform: translateY(-50%) rotate(-6deg);
  font-family: var(--hand);
  font-weight: 700;
  font-size: var(--t-mega); line-height: 0.85;
  color: var(--ink); opacity: 0.05;
  pointer-events: none;
}
.closing-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  align-items: center;
  position: relative; z-index: 1;
}
.closing h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 7vw, 110px);
  line-height: 0.95; letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
}
.closing h2 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  font-size: 1.1em;
  display: inline-block; transform: rotate(-2deg);
}
.closing p {
  margin-top: 28px;
  font-size: var(--t-lead); color: var(--ink-soft);
  max-width: 520px; line-height: 1.5;
  font-weight: 500;
}
.closing-actions { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.closing-actions .note {
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-soft);
}
.closing-actions .note a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
  font-weight: 700;
}
.closing-actions .note a:hover { border-color: var(--rust); color: var(--rust); }

/* ───────── Footer ───────── */
footer {
  padding: 100px 32px 48px;
  background: var(--ink); color: var(--w-snow);
  border-top: 2px solid var(--ink);
  position: relative; z-index: 2;
}
footer::before {
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  pointer-events: none; opacity: 0.6;
}
.foot-inner { max-width: 1280px; margin: 0 auto; position: relative; z-index: 1; }
.foot-meta {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(244,239,232,0.18);
}
.foot-brand h3 {
  font-family: var(--display); font-weight: 800;
  font-size: var(--t-h3); line-height: 0.95; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 32;
}
.foot-brand h3 em {
  font-family: var(--hand); font-style: normal;
  color: var(--cta); font-weight: 700;
  font-size: 1.1em;
  display: inline-block; transform: rotate(-2deg);
}
.foot-brand p {
  margin-top: 18px;
  color: rgba(244,239,232,0.7); font-size: var(--t-body);
  max-width: 380px; line-height: 1.6;
}
.foot-col h4 {
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.2em;
  color: rgba(244,239,232,0.5); margin-bottom: 16px; font-weight: 500;
}
.foot-col a, .foot-col button {
  display: block; color: var(--w-snow); text-decoration: none;
  font-size: var(--t-body); padding: 5px 0;
  opacity: 0.78; transition: opacity 200ms, transform 200ms, color 200ms;
  background: none; border: none; font-family: inherit; cursor: pointer; text-align: left;
}
.foot-col a:hover, .foot-col button:hover { opacity: 1; transform: translateX(4px); color: var(--cta); }
.foot-bottom {
  padding-top: 28px;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: rgba(244,239,232,0.5);
}

/* ───────── Page intro (for inner pages) ───────── */
.page-intro {
  padding: 80px 32px 56px;
  position: relative; z-index: 2;
  background: var(--w-snow);
  border-bottom: 1.5px solid var(--ink);
}
.page-intro-inner { max-width: 1280px; margin: 0 auto; }
.page-intro h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 110px);
  line-height: 0.92; letter-spacing: -0.04em;
  color: var(--ink);
  font-variation-settings: "opsz" 48;
  margin-bottom: 16px;
}
.page-intro h1 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  display: inline-block; transform: rotate(-2deg);
}
.page-intro .lead {
  font-size: var(--t-lead); color: var(--ink-soft);
  max-width: 720px; line-height: 1.45; font-weight: 500;
}
.page-intro .back-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: var(--t-meta);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-soft); text-decoration: none;
  margin-bottom: 18px;
}
.page-intro .back-link:hover { color: var(--rust); }

.page-body {
  padding: 64px 32px 120px;
  position: relative; z-index: 2;
}
.page-body-inner { max-width: 1280px; margin: 0 auto; }

/* ───────── Phase grid (for journey index) ───────── */
.phase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1280px; margin: 0 auto;
}
.phase-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 28px 26px;
  background: var(--w-pure);
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 220ms cubic-bezier(0.34,1.56,0.64,1), box-shadow 220ms;
  position: relative;
}
.phase-card:hover {
  transform: translate(-3px,-3px);
  box-shadow: 7px 7px 0 var(--rust);
}
.phase-card .phase-emoji {
  font-size: 38px; line-height: 1;
  display: inline-block;
  transform: rotate(-4deg);
  margin-bottom: 4px;
}
.phase-card strong {
  font-family: var(--display); font-weight: 800;
  font-size: 24px; letter-spacing: -0.02em; color: var(--ink);
  line-height: 1.05;
}
.phase-card p {
  font-size: 15px; color: var(--ink-soft); line-height: 1.55;
}
.phase-card::after {
  content: "→";
  position: absolute; top: 22px; right: 22px;
  font-family: var(--display); font-weight: 800;
  font-size: 20px; color: var(--rust);
  transition: transform 220ms;
}
.phase-card:hover::after { transform: translateX(6px); }

/* ───────── Forms ───────── */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-soft); font-weight: 600;
}
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="number"],
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--body); font-size: 16px;
  color: var(--ink);
  background: var(--w-pure);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  outline: none;
  transition: box-shadow 180ms, transform 180ms, border-color 180ms;
  box-shadow: 3px 3px 0 var(--ink);
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--rust);
  box-shadow: 4px 4px 0 var(--rust);
  transform: translate(-1px,-1px);
}
.field .hint {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-faint); letter-spacing: 0.04em;
}
.field-row { display: grid; grid-template-columns: 1fr; gap: 18px; }
.input-wrap { position: relative; }
.input-wrap .eye-toggle {
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--ink-soft);
  padding: 6px;
  display: inline-flex;
}
.input-wrap .eye-toggle:hover { color: var(--rust); }
.input-wrap .eye-toggle svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }

/* ───────── Alerts ───────── */
.alert {
  padding: 14px 18px;
  border-radius: 4px;
  font-size: 14px;
  margin-bottom: 18px;
  border: 1.5px solid var(--ink);
  font-family: var(--body);
  box-shadow: 3px 3px 0 var(--ink);
}
.alert-ok  { background: rgba(47,139,93,0.10); border-color: var(--ok); box-shadow: 3px 3px 0 var(--ok); color: var(--ink); }
.alert-err { background: rgba(192,74,61,0.10); border-color: var(--err); box-shadow: 3px 3px 0 var(--err); color: var(--err); }

/* ───────── Mood chips (check-in) ───────── */
.mood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.mood-chip {
  position: relative;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 10px 16px 28px;
  background: transparent;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: var(--mono); font-weight: 600;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink);
  box-shadow: none;
  transition: color 180ms;
  text-align: center;
}
.mood-chip::before {
  content: ""; position: absolute; inset: 0;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  filter: url(#pencilWobble);
  pointer-events: none;
  transition: background 180ms, border-color 180ms;
}
.mood-chip > span { position: relative; z-index: 2; }
.mood-chip input { position: absolute; opacity: 0; pointer-events: none; }
.mood-chip:hover::before { background: rgba(232,162,60,0.10); }
.mood-chip:focus-within::before { border-color: var(--rust); }
.mood-chip .scratch {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1;
}
.mood-chip .scratch path {
  fill: none;
  stroke: var(--cta);
  stroke-width: 22;
  stroke-linecap: butt;
  stroke-linejoin: miter;
  opacity: 0;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 260ms cubic-bezier(0.5, 0, 0.4, 1), opacity 160ms;
}
.mood-chip:has(input:checked) .scratch path { opacity: 0.38; stroke-dashoffset: 0; }
.mood-chip:has(input:checked) .scratch path:nth-child(2) { transition-delay: 200ms; }
.mood-chip:has(input:checked) .scratch path:nth-child(3) { transition-delay: 400ms; }
.mood-chip:has(input:checked) .scratch path:nth-child(4) { transition-delay: 600ms; }

/* ───────── Auth (login) ───────── */
.auth-shell {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 18px;
  position: relative;
}
.auth-card {
  position: relative;
  width: 100%; max-width: 520px;
  background: var(--w-pure);
  border: none;
  border-radius: 0;
  padding: 44px 40px 40px 76px;
  box-shadow: 2px 4px 0 rgba(52,70,87,0.08);
  background-image:
    radial-gradient(circle at 28px 44px, rgba(52,70,87,0.10) 6px, transparent 7px),
    radial-gradient(circle at 28px 50%, rgba(52,70,87,0.10) 6px, transparent 7px),
    radial-gradient(circle at 28px calc(100% - 44px), rgba(52,70,87,0.10) 6px, transparent 7px),
    linear-gradient(to right, transparent 0 55px, rgba(232,162,60,0.55) 55px 57px, transparent 57px),
    repeating-linear-gradient(to bottom, transparent 0 31px, rgba(142,164,178,0.18) 31px 32px);
}
.auth-card > * { position: relative; z-index: 1; }
.auth-brand {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px dashed var(--ink);
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 22px;
}
.auth-brand svg {
  width: 22px; height: 22px;
  stroke: var(--ink); fill: none; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
}
.auth-eyebrow {
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--rust);
  margin-bottom: 8px;
  font-weight: 500;
}
.auth-card h1 {
  font-family: var(--hand); font-weight: 700;
  font-size: 52px; line-height: 1; letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 24px;
}
.auth-card h1 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  display: inline-block; transform: rotate(-2deg);
}
.auth-foot {
  margin-top: 22px;
  text-align: center;
  font-family: var(--mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.15em;
  color: var(--ink-faint);
}
.auth-foot code {
  font-family: var(--mono); color: var(--ink);
  background: var(--w-bone);
  padding: 2px 6px; border-radius: 3px;
}
.auth-side-link {
  margin-top: 18px; text-align: center;
  font-family: var(--mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.15em;
}
.auth-side-link a {
  color: var(--ink); font-weight: 700;
  text-decoration: none;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 1px;
}
.auth-side-link a:hover { color: var(--rust); border-color: var(--rust); }

/* ───────── Error pages ───────── */
.error-shell {
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 24px;
  position: relative;
}
.error-shell .code {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(120px, 26vw, 320px);
  line-height: 0.85; letter-spacing: -0.05em;
  color: var(--ink); opacity: 0.12;
}
.error-shell h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1; letter-spacing: -0.03em;
  color: var(--ink); margin-top: -32px;
  margin-bottom: 18px;
}
.error-shell h1 em {
  font-family: var(--hand); font-style: normal;
  color: var(--rust); font-weight: 700;
  display: inline-block; transform: rotate(-2deg);
}
.error-shell p {
  font-size: 18px; color: var(--ink-soft);
  max-width: 480px; margin-bottom: 32px; line-height: 1.55;
}
.error-shell .actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.error-shell .error-detail {
  margin-top: 24px;
  font-family: var(--mono); font-size: 11px;
  background: var(--w-bone); color: var(--ink-soft);
  padding: 16px; border-radius: 4px; max-width: 720px;
  white-space: pre-wrap; word-break: break-word;
  border: 1px solid rgba(52,70,87,0.12);
  text-align: left;
}

/* ───────── Responsive ───────── */
@media (max-width: 1000px) {
  :root {
    --t-h1: 64px; --t-h2: 44px; --t-h3: 30px; --t-lead: 19px;
  }
  .hero { padding: 100px 22px 60px; }
  .hero.compact { min-height: auto; padding: 100px 22px 50px; }
  .hero-meta, .closing-inner, .bento-header { grid-template-columns: 1fr; }
  .bento-header .counter { display: none; }
  .trust-inner { display: flex; flex-direction: column; gap: 0; }
  .trust-item {
    padding: 22px 0 !important;
    border-right: none !important;
    border-bottom: 1px dashed var(--ink-faint);
    display: flex; justify-content: space-between; align-items: baseline;
  }
  .trust-item:last-child { border-bottom: none; }
  .trust-item .label { margin-top: 0; }
  .trust-item .num { font-size: 48px; }
  .trust-item .tick { display: none; }
  .foot-meta { grid-template-columns: 1fr; gap: 32px; }
  .margin-note { display: none !important; }
  .hero-sketch { width: 320px; height: 320px; right: -20%; top: 12%; opacity: 0.10; }

  /* Sidebar becomes slide-in drawer on mobile */
  .page-shell { padding-left: 0; padding-top: 66px; }
  .mobile-bar { display: flex; }
  .side {
    transform: translateX(-100%);
    transition: transform 280ms cubic-bezier(0.16,1,0.3,1);
    width: 100vw;
    max-width: 100%;
    box-shadow: none;
  }
  .side.open { transform: translateX(0); }
  .side.open .side-close { display: inline-flex; }
  .side-backdrop.open { display: block; }

  .bento-wrap { padding: 70px 18px 100px; }
  .bento {
    display: flex; flex-direction: column;
    gap: 32px;
    grid-template-columns: none;
  }
  .bento-card {
    grid-column: auto !important;
    grid-row: auto !important;
    width: auto;
    padding: 28px 22px;
    min-height: 0;
  }
  .bento-card:nth-child(1)  { --rot: -1deg; margin-right: 12px; }
  .bento-card:nth-child(2)  { --rot:  1.2deg; margin-left: 18px; }
  .bento-card:nth-child(3)  { --rot: -0.6deg; margin-right: 24px; }
  .bento-card:nth-child(4)  { --rot:  0.8deg; margin-left: 8px; }
  .bento-card:nth-child(5)  { --rot: -1.4deg; margin-right: 6px; }
  .bento-card:hover { transform: translateY(-2px) rotate(var(--rot, 0deg)); }
  .bento-card h3, .c1 h3 { font-size: 30px; line-height: 1; }
  .c1 h3 { font-size: 38px; }
  .c1 p { font-size: 17px; }
  .c1 .big-num { font-size: 140px; bottom: 16px; right: 18px; }

  .page-intro { padding: 80px 22px 40px; }
  .page-body { padding: 48px 22px 90px; }
  .closing { padding: 90px 22px; }

  .auth-card { padding: 32px 22px 28px 64px; }
  .auth-card h1 { font-size: 42px; }
}

@media (max-width: 600px) {
  :root { --t-lead: 17px; }
  h1.display { font-size: clamp(48px, 14vw, 80px); }
  .hero-meta { gap: 28px; padding-top: 26px; }
  .hero-meta > div:last-child { width: 100%; }
  .cta { padding: 18px 24px; font-size: 15px; }
  .trust { padding: 36px 22px 28px; }
  .mood-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
