/* ==========================================================================
   Эскроу-платформа — design system (light + dark, mobile-first)
   ========================================================================== */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #f4f3f0;
  --border: #e8e6e0;
  --text: #1a1a1a;
  --muted: #6b6b66;
  --primary: #f2591f;         /* warm orange — базовый акцент */
  --primary-600: #d8480f;
  --primary-soft: #fdece3;
  --success: #0f9d63;
  --success-soft: #e4f7ee;
  --warn: #c77700;
  --warn-soft: #fdf2dd;
  --danger: #d64550;
  --danger-soft: #fdeaec;
  --info: #2563eb;
  --info-soft: #e6efff;
  --ink: #1a1a1a;             /* графит для тёмных секций */
  --shadow: 0 1px 2px rgba(26,26,26,.04), 0 10px 30px rgba(26,26,26,.07);
  --shadow-sm: 0 1px 2px rgba(26,26,26,.06);
  --radius: 18px;
  --radius-sm: 11px;
  --maxw: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
}
/* Акцентный serif-италик как в референсе (для ключевых слов в заголовках) */
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 500; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-width: none; -ms-overflow-style: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { width: 0; height: 0; display: none; }
::-webkit-scrollbar { width: 0; height: 0; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.22; margin: 0 0 .4em; letter-spacing: -.02em; }
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.18rem; }
p { margin: 0 0 1em; }
small { color: var(--muted); }

/* ---------- Layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.page { padding: 32px 0 110px; }
.row { display: flex; gap: 18px; }
.grid { display: grid; gap: 20px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); letter-spacing: -.03em; font-size: 1.15rem; }
.brand:hover { text-decoration: none; }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--primary);
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: .9rem;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--muted); padding: 9px 14px; border-radius: 9px; font-weight: 500; font-size: 1rem; }
.nav-links a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.nav-links a.active { color: var(--primary); background: var(--primary-soft); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-weight: 700; font-size: .8rem;
}
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }

@media (max-width: 720px) {
  .nav-links {
    position: absolute; top: 60px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 8px 12px 14px; margin: 0;
    box-shadow: var(--shadow); display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; }
  .nav-toggle { display: block; }
}

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px;
}
.card + .card { margin-top: 22px; }
.card-tight { padding: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.card-head h2, .card-head h3 { margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer; transition: .15s;
  background: var(--surface-2); color: var(--text); text-decoration: none; line-height: 1;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px rgba(79,70,229,.28); }
.btn-primary:hover { background: var(--primary-600); }
.btn-success { background: var(--success); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 26px; font-size: 1.08rem; }
.btn-sm { padding: 9px 14px; font-size: .9rem; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600;
  background: var(--surface-2); color: var(--muted); white-space: nowrap;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-primary { background: var(--primary-soft); color: var(--primary); }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }

/* ---------- Stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat .num { font-size: 2.1rem; font-weight: 700; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-size: .92rem; margin-top: 2px; }
@media (max-width: 720px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Deal list ---------- */
.deal-list { display: grid; gap: 16px; }
.deal-item {
  display: flex; align-items: center; gap: 18px; padding: 20px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); transition: .15s;
}
.deal-item:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); }
.deal-icon {
  width: 50px; height: 50px; flex: none; border-radius: 13px;
  background: var(--primary-soft); color: var(--primary);
  display: grid; place-items: center; font-size: 1.05rem; font-weight: 700; letter-spacing: .02em;
}
.deal-main { flex: 1; min-width: 0; }
.deal-title { font-weight: 600; font-size: 1.05rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.deal-sub { color: var(--muted); font-size: .92rem; }
.deal-amount { text-align: right; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.deal-amount small { display: block; font-weight: 500; }
@media (max-width: 560px) {
  .deal-amount { display: none; }
}

/* ---------- Stepper ---------- */
.stepper { display: flex; flex-direction: column; }
.step { display: flex; gap: 16px; position: relative; padding-bottom: 28px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 17px; top: 38px; bottom: 4px; width: 2px;
  background: var(--border);
}
.step:last-child::before { display: none; }
.step .marker {
  width: 36px; height: 36px; flex: none; border-radius: 50%; z-index: 1;
  display: grid; place-items: center; font-size: .95rem; font-weight: 700;
  background: var(--surface); color: var(--muted); border: 2px solid var(--border);
  transition: .2s;
}
.step.done .marker { background: var(--primary); color: #fff; border-color: var(--primary); }
.step.current .marker { background: #fff; color: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-soft); }
.step.done::before { background: var(--primary); }
.step .step-body { padding-top: 6px; }
.step .step-title { font-weight: 600; font-size: 1.02rem; }
.step .step-desc { color: var(--muted); font-size: .92rem; }
.step.current .step-title { color: var(--primary); }
.step.todo .step-title { color: var(--muted); }

/* ---------- Timeline / events ---------- */
.events { list-style: none; margin: 0; padding: 0; }
.events li { display: flex; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; }
.events li:last-child { border-bottom: 0; }
.events .ev-time { color: var(--muted); font-size: .78rem; white-space: nowrap; min-width: 96px; }

/* ---------- Money box ---------- */
.money {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow);
}
.money .amount { color: var(--primary); }
.money .amount { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; }
.money .rows { margin-top: 14px; display: grid; gap: 8px; }
.money .r { display: flex; justify-content: space-between; font-size: .9rem; opacity: .92; }
.money .r b { font-weight: 700; }
.money .divider { height: 1px; background: rgba(255,255,255,.2); margin: 6px 0; }

/* ---------- Forms ---------- */
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: .96rem; margin-bottom: 8px; }
.input, input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text); font-size: 1.02rem; font-family: inherit;
  transition: .15s;
}
.input:focus, input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft);
}
textarea { resize: vertical; }
.help { color: var(--muted); font-size: .82rem; margin-top: 5px; }
.errorlist { color: var(--danger); list-style: none; padding: 0; margin: 6px 0 0; font-size: .85rem; }
.radio-cards { display: grid; gap: 10px; }
.radio-cards label {
  display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 500;
}
.radio-cards label:hover { background: var(--surface-2); }

/* ---------- Messages ---------- */
.messages { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.messages li { padding: 12px 16px; border-radius: var(--radius-sm); font-size: .9rem; font-weight: 500; border: 1px solid transparent; }
.messages li.success { background: var(--success-soft); color: var(--success); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.messages li.error { background: var(--danger-soft); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.messages li.info, .messages li.warning { background: var(--info-soft); color: var(--info); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - 60px); display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .brand { justify-content: center; margin-bottom: 18px; }

/* ---------- Misc ---------- */
.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.doc-thumb { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-2); }
.doc-thumb img { width: 100%; height: 96px; object-fit: cover; display: block; }
.doc-thumb .doc-meta { padding: 8px; font-size: .78rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; font-size: 1rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 500; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 2.4rem; margin-bottom: 8px; }
.hero-badge { display:inline-flex; align-items:center; gap:8px; padding:6px 12px; border-radius:999px; background:var(--primary-soft); color:var(--primary); font-weight:600; font-size:.82rem; margin-bottom:12px; }
.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* ==========================================================================
   App shell — sidebar + topbar + content (authenticated area)
   ========================================================================== */
.app { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

.sidebar { position: sticky; top: 0; align-self: start; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 20px 14px; display: flex; flex-direction: column; }
.sidebar .brand { padding: 8px 12px 22px; font-size: 1.2rem; }
.side-nav { display: flex; flex-direction: column; gap: 3px; }
.side-nav a { display: flex; align-items: center; gap: 13px; padding: 12px 13px;
  border-radius: 12px; color: var(--muted); font-weight: 500; font-size: 1.02rem; transition: .12s; }
.side-nav a svg { width: 21px; height: 21px; flex: none; stroke: currentColor; stroke-width: 1.7; fill: none;
  stroke-linecap: round; stroke-linejoin: round; }
.side-nav a:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.side-nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.side-nav a .count { margin-left: auto; background: var(--primary); color: #fff; font-size: .78rem;
  font-weight: 700; padding: 2px 9px; border-radius: 999px; }
.side-sep { height: 1px; background: var(--border); margin: 14px 6px; }
.side-cap { padding: 6px 14px; font-size: .74rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted); }
.side-user { margin-top: auto; border-top: 1px solid var(--border); padding-top: 14px;
  display: flex; align-items: center; gap: 11px; }
.side-user .avatar { width: 40px; height: 40px; font-size: .9rem; }
.side-user .who { min-width: 0; line-height: 1.2; }
.side-user .who b { display: block; font-size: .96rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .who a { font-size: .84rem; color: var(--muted); }
.side-user .who a:hover { color: var(--danger); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 74px;
  background: color-mix(in srgb, var(--surface) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 0 clamp(20px, 4vw, 44px); }
.topbar .tb-title { display: flex; align-items: center; gap: 14px; min-width: 0; }
.topbar h1 { font-size: 1.5rem; margin: 0; letter-spacing: -.02em; white-space: nowrap; }
.topbar .tb-actions { display: flex; align-items: center; gap: 10px; }
.content { padding: clamp(22px, 3vw, 40px); width: 100%; max-width: 1120px; }

.mobile-bar { display: none; }
/* backdrop for mobile drawer — hidden by default on ALL sizes (fixes grid) */
.sb-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 55; }
.sb-backdrop.show { display: block; }
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; width: 264px; transform: translateX(-100%);
    transition: transform .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: none; }
  .mobile-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
    position: sticky; top: 0; z-index: 40; height: 62px; padding: 0 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); }
  .mobile-bar .burger { background: none; border: 0; cursor: pointer; color: var(--text); padding: 6px; }
  .topbar { position: static; height: auto; padding: 20px clamp(16px,4vw,24px) 0; border-bottom: 0;
    background: transparent; backdrop-filter: none; flex-wrap: wrap; }
}

/* Section blocks used inside content */
.block { margin-bottom: 28px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.block-head h2 { font-size: 1.15rem; margin: 0; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 4px; gap: 2px; }
.seg a { padding: 8px 16px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg a:hover { text-decoration: none; color: var(--text); }
.seg a.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }

/* ==========================================================================
   Rich deal cards + status colors + next-action hints
   ========================================================================== */
.s-proposed         { --sc: #64748b; --sc-soft: #eef1f5; }
.s-awaiting_payment { --sc: #c77700; --sc-soft: var(--warn-soft); }
.s-funded           { --sc: #2563eb; --sc-soft: var(--info-soft); }
.s-delivered        { --sc: var(--primary); --sc-soft: var(--primary-soft); }
.s-disputed         { --sc: var(--danger); --sc-soft: var(--danger-soft); }
.s-completed        { --sc: var(--success); --sc-soft: var(--success-soft); }
.s-refunded         { --sc: var(--success); --sc-soft: var(--success-soft); }
.s-cancelled        { --sc: var(--muted); --sc-soft: var(--surface-2); }

.dcards { display: grid; gap: 14px; }
.dcard { position: relative; display: flex; gap: 18px; align-items: center;
  padding: 20px 24px 20px 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .16s cubic-bezier(.2,.7,.2,1), box-shadow .16s, border-color .16s; }
.dcard:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none;
  border-color: color-mix(in srgb, var(--sc, var(--primary)) 45%, var(--border)); }
.dcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--sc, var(--border)); }
.dcard-av { width: 54px; height: 54px; flex: none; border-radius: 15px; display: grid; place-items: center;
  font-weight: 700; font-size: 1.1rem; background: var(--sc-soft, var(--surface-2)); color: var(--sc, var(--muted)); }
.dcard-body { flex: 1; min-width: 0; }
.dcard-top { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dcard-title { font-weight: 650; font-size: 1.12rem; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-amount { font-weight: 800; font-size: 1.2rem; white-space: nowrap; letter-spacing: -.02em; }
.dcard-amount .cur { font-size: .78rem; font-weight: 600; color: var(--muted); margin-left: 3px; }
.dcard-sub { color: var(--muted); font-size: .94rem; margin: 3px 0 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dcard-foot { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 560px) { .dcard-amount { font-size: 1.05rem; } .dcard-av { width: 46px; height: 46px; } }

/* next-action hint pill */
.hint { display: inline-flex; align-items: center; gap: 7px; font-size: .88rem; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; white-space: nowrap; }
.hint::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hint-action { background: var(--primary-soft); color: var(--primary); }
.hint-wait   { background: var(--surface-2); color: var(--muted); }
.hint-done   { background: var(--success-soft); color: var(--success); }
.hint-alert  { background: var(--danger-soft); color: var(--danger); }

/* Deal-detail hero banner */
.deal-hero { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  border-radius: 20px; box-shadow: var(--shadow); padding: 28px 30px; margin-bottom: 24px; }
.deal-hero::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--sc, var(--primary)); }
.deal-hero .dh-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.deal-hero .dh-amount { font-size: 2.3rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.deal-hero .dh-amount .cur { font-size: 1rem; font-weight: 600; color: var(--muted); margin-left: 5px; }
.deal-hero .dh-label { color: var(--muted); font-size: .9rem; margin-bottom: 6px; }
.deal-hero .dh-cta { min-width: 220px; }
@media (max-width: 640px) { .deal-hero .dh-cta { min-width: 100%; } }

/* Horizontal progress tracker */
.htrack { display: flex; gap: 0; margin-top: 22px; }
.htrack .hstep { flex: 1; position: relative; text-align: center; padding-top: 26px; }
.htrack .hstep::before { content: ""; position: absolute; top: 9px; left: 0; right: 0; height: 3px; background: var(--border); }
.htrack .hstep:first-child::before { left: 50%; }
.htrack .hstep:last-child::before { right: 50%; }
.htrack .hdot { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); width: 17px; height: 17px;
  border-radius: 50%; background: var(--surface); border: 3px solid var(--border); z-index: 1; }
.htrack .hstep.done::before { background: var(--primary); }
.htrack .hstep.done .hdot { background: var(--primary); border-color: var(--primary); }
.htrack .hstep.current .hdot { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.htrack .hlabel { font-size: .84rem; color: var(--muted); font-weight: 500; }
.htrack .hstep.current .hlabel { color: var(--primary); font-weight: 700; }
.htrack .hstep.done .hlabel { color: var(--text); }
@media (max-width: 560px) { .htrack .hlabel { font-size: .72rem; } }

/* Info tiles with icon */
.stat-ico { display: flex; align-items: center; gap: 14px; }
.stat-ico .ic { width: 46px; height: 46px; flex: none; border-radius: 13px; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); }
.stat-ico .ic svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Scroll-reveal (tasteful, subtle) ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .float, .float-slow { animation: none !important; }
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(var(--rot,0deg)); } 50% { transform: translateY(-18px) rotate(var(--rot,0deg)); } }
.float { animation: floaty 6s ease-in-out infinite; }
.float-slow { animation: floaty 9s ease-in-out infinite; }
