/* WellStaffed public site. White, charcoal and cobalt, with a matching dark theme.
   Motion is subtle and every animation is disabled under prefers-reduced-motion. */
:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
  --bg: #ffffff; --surface: #ffffff; --soft: #f5f7fb; --soft-2: #eef1f8;
  --ink: #12151c; --muted: #565d69; --line: #e1e5eb; --line-strong: #c9d0dc;
  --accent: #3048c9; --accent-deep: #2136a5; --accent-weak: #eff2ff; --accent-glow: #3048c926;
  --good: #1e6b46; --good-weak: #e6f4ec; --warn: #8a5300; --warn-weak: #fdf0dc; --bad: #9b1c1c; --bad-weak: #fbe8e8;
  --dark: #12151c; --dark-2: #1b2030; --on-dark: #f3f5fa; --on-dark-muted: #aab2c5;
  --shadow-sm: 0 1px 2px #12182a12, 0 1px 1px #12182a0a; --shadow-md: 0 10px 30px -12px #18234c33, 0 2px 6px #12182a0f; --shadow-lg: 0 30px 70px -28px #18234c59, 0 8px 18px -8px #18234c26;
  --radius: 14px; --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1118; --surface: #151a24; --soft: #121620; --soft-2: #1a2030;
  --ink: #eef1f7; --muted: #a2abbd; --line: #262d3c; --line-strong: #364056;
  --accent: #7b92ff; --accent-deep: #a4b4ff; --accent-weak: #1c2442; --accent-glow: #7b92ff2e;
  --good: #7fd6a5; --good-weak: #14291f; --warn: #f2c27d; --warn-weak: #2c2113; --bad: #f4a3a3; --bad-weak: #2f1a1a;
  --dark: #0a0d13; --dark-2: #151a24;
  --shadow-sm: 0 1px 2px #0006; --shadow-md: 0 12px 32px -14px #000b; --shadow-lg: 0 32px 70px -28px #000d;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1118; --surface: #151a24; --soft: #121620; --soft-2: #1a2030;
    --ink: #eef1f7; --muted: #a2abbd; --line: #262d3c; --line-strong: #364056;
    --accent: #7b92ff; --accent-deep: #a4b4ff; --accent-weak: #1c2442; --accent-glow: #7b92ff2e;
    --good: #7fd6a5; --good-weak: #14291f; --warn: #f2c27d; --warn-weak: #2c2113; --bad: #f4a3a3; --bad-weak: #2f1a1a;
    --dark: #0a0d13; --dark-2: #151a24;
    --shadow-sm: 0 1px 2px #0006; --shadow-md: 0 12px 32px -14px #000b; --shadow-lg: 0 32px 70px -28px #000d;
  }
}
* { box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 88px }
body { margin: 0; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .3s var(--ease), color .3s var(--ease) }
a { color: inherit; text-decoration: none }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0 }
ul, ol { padding: 0; list-style: none }
img, svg { display: block; max-width: 100% }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px }
::selection { background: var(--accent); color: #fff }
.wrap { width: min(1192px, calc(100% - 80px)); margin-inline: auto }
.skip { position: fixed; top: 8px; left: 8px; padding: 12px 16px; z-index: 50; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-md); transform: translateY(-160%) }
.skip:focus { transform: none }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none }
.muted { color: var(--muted) }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px #12182a55 }
.header { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.24rem; font-weight: 740; letter-spacing: -.035em; white-space: nowrap }
.brand img { transition: transform .4s var(--ease) } .brand:hover img { transform: rotate(-8deg) scale(1.06) }
.nav { display: flex; gap: 6px; align-items: center }
.nav a { position: relative; padding: 9px 13px; color: var(--muted); font-size: .96rem; font-weight: 560; border-radius: 8px; transition: color .2s, background-color .2s }
.nav a:hover { color: var(--ink); background: var(--soft) }
.nav a[aria-current="page"] { color: var(--ink) }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent) }
.header-actions { display: flex; align-items: center; gap: 10px }
.icon-btn { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background-color .2s }
.icon-btn:hover { border-color: var(--line-strong); background: var(--soft) } .icon-btn:active { transform: scale(.94) }
.theme-toggle .moon { display: none } :root[data-theme="dark"] .theme-toggle .sun { display: none } :root[data-theme="dark"] .theme-toggle .moon { display: block }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme-toggle .sun { display: none } :root:not([data-theme="light"]) .theme-toggle .moon { display: block } }
.menu-btn { display: none }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; border-radius: 10px; min-height: 48px; padding: 10px 20px; font: inherit; font-weight: 650; white-space: nowrap; cursor: pointer; transition: transform .18s var(--ease), box-shadow .25s, background-color .2s, border-color .2s, color .2s }
.button .ic { width: 18px; height: 18px; transition: transform .25s var(--ease) } .button:hover .ic.go { transform: translateX(3px) }
.button:active { transform: translateY(1px) scale(.99) }
.primary { color: #fff; background: var(--accent); box-shadow: 0 6px 18px -8px var(--accent), inset 0 1px 0 #ffffff33 }
.primary:hover { background: var(--accent-deep); box-shadow: 0 10px 24px -10px var(--accent), inset 0 1px 0 #ffffff33 }
:root[data-theme="dark"] .primary { color: #0e1118 }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .primary { color: #0e1118 } }
.outline { border-color: var(--line-strong); background: var(--surface) } .outline:hover { background: var(--soft); border-color: var(--muted) }
.button.small { min-height: 40px; padding: 8px 14px; font-size: .92rem }
.on-dark .outline { color: var(--on-dark); background: transparent; border-color: #ffffff3d } .on-dark .outline:hover { background: #ffffff14 }

/* mobile menu */
.mobile-nav { display: none }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 36px) } .header { min-height: 66px }
  .nav, .header-actions .button { display: none }
  .menu-btn { display: grid }
  .mobile-nav { display: block; position: fixed; inset: 66px 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); padding: 10px 18px 22px; transform: translateY(-12px); opacity: 0; visibility: hidden; transition: transform .28s var(--ease), opacity .2s, visibility .28s; z-index: 29 }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible }
  .mobile-nav a { display: flex; justify-content: space-between; align-items: center; padding: 15px 4px; border-bottom: 1px solid var(--line); font-weight: 600 }
  .mobile-nav .button { margin-top: 16px; width: 100%; border-bottom: 1px solid transparent }
}

/* type and sections */
h1 { font-size: clamp(2.9rem, 6vw, 5.5rem); font-weight: 740; line-height: 1; letter-spacing: -.045em }
h2.title { font-size: clamp(2rem, 3.8vw, 3.2rem); line-height: 1.07; font-weight: 720; letter-spacing: -.04em }
.lead { font-size: 1.14rem; line-height: 1.62; color: var(--muted); max-width: 52ch }
.section { padding-block: clamp(56px, 8vw, 104px) } .section.soft { background: var(--soft); border-block: 1px solid var(--line) }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px }
.section-head p { color: var(--muted); line-height: 1.6; margin-top: 12px; max-width: 58ch }
.link-arrow { display: inline-flex; align-items: center; gap: 7px; color: var(--accent-deep); font-weight: 650 } .link-arrow .ic { width: 17px; height: 17px; transition: transform .2s var(--ease) } .link-arrow:hover .ic { transform: translateX(4px) }

/* hero */
.hero-bg { position: relative; overflow: hidden; isolation: isolate }
.hero-bg::before { content: ""; position: absolute; inset: -20% -10% auto -10%; height: 90%; z-index: -2; background: radial-gradient(60% 55% at 78% 22%, var(--accent-glow), transparent 70%), radial-gradient(40% 40% at 8% 6%, #3048c914, transparent 70%) }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 9vw, 112px) clamp(56px, 8vw, 100px) }
.hero-copy .lead { margin-block: 24px 28px }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 650; border-radius: 999px; padding: 5px 11px; background: var(--soft-2); color: var(--muted); white-space: nowrap }
.chip.accent { background: var(--accent-weak); color: var(--accent-deep) } .chip.good { background: var(--good-weak); color: var(--good) } .chip.warn { background: var(--warn-weak); color: var(--warn) }
.chip .ic { width: 14px; height: 14px }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr } .stage { max-width: 560px } }


/* cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 26px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s, border-color .25s }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-strong) }
.card .badge-ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 20px; border-radius: 12px; color: var(--accent-deep); background: var(--accent-weak); transition: transform .35s var(--ease), background-color .25s, color .25s }
.card:hover .badge-ic { background: var(--accent); color: #fff }
.card h3 { font-size: 1.14rem; letter-spacing: -.025em; line-height: 1.3 } .card p { color: var(--muted); line-height: 1.58; margin-top: 8px }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr } .card { padding: 22px } }

/* day timeline */
.day { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px }
.day::before { content: ""; position: absolute; top: 19px; left: 6%; right: 6%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--line) 80%); transform-origin: left; transform: scaleX(0); transition: transform 1.2s var(--ease) .15s }
.day.in::before, .no-js .day::before { transform: scaleX(1) }
.day li { position: relative; padding-top: 52px }
.day .dot { position: absolute; top: 8px; left: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 5px var(--bg) }
.day h3 { font-size: 1.05rem; letter-spacing: -.02em } .day p { color: var(--muted); line-height: 1.55; margin-top: 7px; font-size: .96rem }
@media (max-width: 860px) { .day { grid-template-columns: 1fr; gap: 0 } .day::before { top: 8px; bottom: 8px; left: 11px; right: auto; width: 2px; height: auto; transform: scaleY(0); transform-origin: top } .day.in::before, .no-js .day::before { transform: scaleY(1) } .day li { padding: 0 0 28px 48px } .day .dot { top: 2px } }

/* four honest states */
.states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow-sm) }
.states li { position: relative; padding: 24px 22px 26px; border-left: 1px solid var(--line) } .states li:first-child { border-left: 0 }
.states li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease) }
.states li.in::after, .no-js .states li::after { transform: scaleX(1) }
.states li:nth-child(2)::after { transition-delay: .15s } .states li:nth-child(3)::after { transition-delay: .3s } .states li:nth-child(4)::after { transition-delay: .45s; background: var(--good) }
.states h3 { font-size: 1.05rem; margin: 12px 0 6px; letter-spacing: -.02em } .states p { color: var(--muted); font-size: .94rem; line-height: 1.55 }
@media (max-width: 860px) { .states { grid-template-columns: repeat(2, minmax(0, 1fr)) } .states li:nth-child(3) { border-left: 0 } .states li:nth-child(n+3) { border-top: 1px solid var(--line) } }
@media (max-width: 480px) { .states { grid-template-columns: 1fr } .states li { border-left: 0; border-top: 1px solid var(--line) } .states li:first-child { border-top: 0 } }

/* editions */
.edition-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0; height: 100%; color: inherit }
.edition-card .top { display: flex; justify-content: space-between; align-items: flex-start; width: 100%; margin-bottom: 18px }
.edition-card .badge-ic { margin: 0 }
.edition-card p { flex: 1 } .edition-card .more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; color: var(--accent-deep); font-weight: 650; font-size: .95rem } .edition-card .more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease) } .edition-card:hover .more .ic { transform: translateX(4px) }
.toolbar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px }
.filters { display: flex; flex-wrap: wrap; gap: 8px }
.filter { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 8px 15px; font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; transition: all .2s var(--ease) }
.filter:hover { border-color: var(--line-strong); color: var(--ink) } .filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg) }
.search { position: relative; flex: 1; min-width: 220px; max-width: 340px } .search input { width: 100%; height: 44px; padding: 0 14px 0 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; transition: border-color .2s, box-shadow .2s } .search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow) }
.search .ic { position: absolute; left: 14px; top: 12px; color: var(--muted) }
.group-label { display: flex; align-items: center; gap: 14px; margin: 42px 0 18px; font-size: .95rem; font-weight: 700; color: var(--muted) } .group-label::after { content: ""; flex: 1; height: 1px; background: var(--line) }
[data-edition][hidden], .group[hidden] { display: none }
.empty { padding: 56px 20px; text-align: center; color: var(--muted) }

/* page heads, breadcrumbs, detail layout */
.page-head { padding-block: clamp(44px, 7vw, 84px) clamp(28px, 4vw, 48px) } .page-head .lead { margin-top: 20px }
.crumbs { display: flex; gap: 8px; align-items: center; margin-bottom: 22px; color: var(--muted); font-size: .92rem } .crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px } .crumbs .ic { width: 14px; height: 14px }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(28px, 5vw, 70px); align-items: start }
.sidecard { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; box-shadow: var(--shadow-md) } .sidecard h3 { font-size: 1rem; margin-bottom: 14px }
.checklist li { display: flex; gap: 11px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); color: var(--ink); line-height: 1.45 } .checklist li:first-child { border-top: 0; padding-top: 0 }
.checklist .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent) }
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px }
.role { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .2s, transform .25s var(--ease) } .role:hover { border-color: var(--line-strong); transform: translateY(-2px) }
.role .avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-weak); color: var(--accent-deep); font-weight: 750; flex: none } .role h3 { font-size: 1rem } .role p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin-top: 3px }
.callout { position: relative; border-radius: var(--radius); padding: clamp(26px, 4vw, 44px); background: linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--on-dark); overflow: hidden }
.callout::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, #3048c966, transparent 70%) }
.callout h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); letter-spacing: -.045em; line-height: 1.12; position: relative } .callout p { margin-top: 14px; max-width: 64ch; line-height: 1.65; color: var(--on-dark-muted); position: relative }
.chips { display: flex; flex-wrap: wrap; gap: 8px } .chips .chip { padding: 7px 13px; font-size: .88rem; border: 1px solid var(--line); background: var(--surface) }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px } .pager a { display: block; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; transition: border-color .2s, transform .25s var(--ease) } .pager a:hover { border-color: var(--accent); transform: translateY(-2px) } .pager small { display: block; color: var(--muted); margin-bottom: 4px } .pager strong { font-size: 1.05rem } .pager a:last-child { text-align: right }
@media (max-width: 860px) { .detail-hero, .roles, .pager { grid-template-columns: 1fr } .pager a:last-child { text-align: left } }

/* how it works: flow, explorer, tables */
.flow { display: grid; gap: 0; counter-reset: step }
.flow li { position: relative; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 22px; padding-bottom: 34px }
.flow li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); color: var(--accent-deep); font-weight: 720; z-index: 1 }
.flow li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line) } .flow li:last-child::after { display: none } .flow li:last-child { padding-bottom: 0 }
.flow h3 { font-size: 1.15rem; letter-spacing: -.025em; margin-top: 8px } .flow p { color: var(--muted); line-height: 1.6; margin-top: 6px; max-width: 62ch }
.explorer { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; align-items: start }
.artifact { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-md); overflow: hidden }
.artifact header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; background: var(--soft); border-bottom: 1px solid var(--line) } .artifact h3 { font-size: 1.05rem }
.artifact .body { padding: 22px } .exact { white-space: pre-line; line-height: 1.6; background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 16px; margin-block: 8px 18px; transition: background-color .3s, border-color .3s }
.exact.flash { background: var(--warn-weak); border-color: var(--warn) }
.meta { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px 14px; font-size: .92rem } .meta dt { color: var(--muted) } .meta dd { margin: 0 }
.meta code, code.fp { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em; background: var(--soft-2); border-radius: 6px; padding: 2px 7px }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px } .button:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none }
.status-chip { transition: background-color .3s, color .3s }
.log { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm); padding: 8px 0; max-height: 460px; overflow: auto }
.log h3 { padding: 12px 20px; font-size: 1rem } .log li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; padding: 11px 20px; border-top: 1px solid var(--line); font-size: .92rem; line-height: 1.5; animation: slidein .35s var(--ease) both } .log time { color: var(--muted); font: 12px ui-monospace, monospace; padding-top: 2px }
.log li.refused { background: var(--bad-weak) } .log li.ok { background: var(--good-weak) }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-sm) }
table { width: 100%; border-collapse: collapse; min-width: 560px } th, td { text-align: left; padding: 15px 18px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.5 } th { border-top: 0; background: var(--soft); font-size: .86rem; color: var(--muted); font-weight: 650 } tbody tr { transition: background-color .15s } tbody tr:hover { background: var(--soft) }
.level { display: inline-block; font: 650 .8rem ui-monospace, monospace; padding: 3px 8px; border-radius: 6px; background: var(--accent-weak); color: var(--accent-deep) }
@media (max-width: 860px) { .explorer { grid-template-columns: 1fr } }

/* call to action and footer */
.cta { position: relative; overflow: hidden; border-radius: 22px; padding: clamp(36px, 6vw, 72px); background: radial-gradient(70% 90% at 90% 0%, #3048c966, transparent 65%), linear-gradient(135deg, var(--dark), var(--dark-2)); color: var(--on-dark) }
.cta h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -.04em; line-height: 1.07; max-width: 20ch } .cta p { margin: 16px 0 28px; color: var(--on-dark-muted); max-width: 52ch; line-height: 1.6 }
.cta .hero-cta { position: relative } .cta .primary { background: #fff; color: #12151c; box-shadow: none } .cta .primary:hover { background: #e9edff }
.site-footer { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); background: var(--soft) }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 52px 36px } .footer-grid h3 { font-size: .86rem; color: var(--muted); margin-bottom: 14px; font-weight: 650 }
.footer-grid li + li { margin-top: 10px } .footer-grid a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 4px } .footer-note { color: var(--muted); font-size: .92rem; line-height: 1.6; margin-top: 14px; max-width: 34ch }
.footer-copy { color: var(--muted); font-size: .9rem; margin-top: 10px }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr } .footer-grid > :first-child { grid-column: 1 / -1 } } @media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr } }
.notfound { min-height: 62vh; display: grid; place-content: center; text-align: center; gap: 16px; padding: 60px 20px } .notfound h1 { font-size: clamp(3.4rem, 12vw, 7rem) } .notfound p { color: var(--muted) }

/* motion */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s) }
.js [data-reveal].in { opacity: 1; transform: none }
@keyframes sheen { to { background-position: 200% center } }
@keyframes floaty { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-8px) } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor } 70%, 100% { box-shadow: 0 0 0 9px transparent } }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px) } }
@keyframes rise { from { opacity: 0; transform: translateY(16px) } }
.hero-copy > * { animation: rise .7s var(--ease) both } .hero-copy > :nth-child(2) { animation-delay: .08s } .hero-copy > :nth-child(3) { animation-delay: .16s } .hero-copy > :nth-child(4) { animation-delay: .24s } .hero-copy > :nth-child(5) { animation-delay: .32s }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important }
  .js [data-reveal] { opacity: 1; transform: none } .day::before, .states li::after { transform: none }
}

/* hero stage: a looping illustration of one piece of work, from inquiry to confirmed */
.stage { --loop: 14s; position: relative; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-lg); overflow: hidden }
.stage-bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--soft); border-bottom: 1px solid var(--line) }
.avatars { display: inline-flex } .avatars i { display: grid; place-items: center; width: 28px; height: 28px; margin-left: -7px; border-radius: 50%; border: 2px solid var(--soft); background: var(--accent-weak); color: var(--accent-deep); font: 700 .74rem/1 inherit; font-style: normal } .avatars i:first-child { margin-left: 0 } .avatars i:nth-child(2) { background: var(--soft-2); color: var(--ink) } .avatars i:nth-child(3) { background: var(--accent); color: #fff }
.stage-time { position: relative; margin-left: auto; width: 4.2em; height: 1.3em; font: 650 .88rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted) } .stage-time b { position: absolute; inset: 0; text-align: right; font-weight: inherit; opacity: 0 }
.feed li { display: grid; grid-template-columns: 38px minmax(0, 1fr) 26px; gap: 14px; align-items: center; padding: 15px 20px; border-top: 1px solid var(--line) } .feed li:first-child { border-top: 0 }
.queue-icon { display: grid; place-items: center; width: 38px; height: 38px; color: var(--accent-deep); background: var(--accent-weak); border-radius: 10px }
.feed h3 { font-size: .96rem; font-weight: 680; line-height: 1.3 } .feed p { color: var(--muted); font-size: .85rem; line-height: 1.4; margin-top: 2px }
.tick { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--good-weak); color: var(--good) } .tick .ic { width: 14px; height: 14px }
.draft { margin: 6px 16px 16px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg) }
.draft-head { display: flex; align-items: center; justify-content: space-between; gap: 10px } .draft h3 { font-size: .98rem }
.state { position: relative; display: block; width: 8.6rem; height: 28px } .state .chip { position: absolute; right: 0; top: 0; opacity: 0 }
.lines { display: grid; gap: 8px; margin: 16px 0 }
.lines i { display: block; height: 8px; border-radius: 6px; background: var(--soft-2); transform-origin: left; transform: scaleX(0) } .lines i:nth-child(1) { width: 92% } .lines i:nth-child(2) { width: 78% } .lines i:nth-child(3) { width: 54% }
.draft-foot { display: flex; align-items: center; gap: 14px } .progress { flex: 1; height: 6px; border-radius: 6px; background: var(--soft-2); overflow: hidden } .progress b { display: block; height: 100%; width: 100%; border-radius: 6px; background: var(--accent); transform-origin: left; transform: scaleX(0) }
.approve { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 650; font-size: .9rem } .approve .ic { width: 16px; height: 16px }
:root[data-theme="dark"] .approve { color: #0e1118 } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .approve { color: #0e1118 } }
.stage .r1 { animation: r1 var(--loop) infinite } .stage .r2 { animation: r2 var(--loop) infinite } .stage .r3 { animation: r3 var(--loop) infinite }
.stage .lines i { animation: line var(--loop) infinite } .stage .lines i:nth-child(2) { animation-delay: .12s } .stage .lines i:nth-child(3) { animation-delay: .24s }
.stage .progress b { animation: fill var(--loop) infinite } .stage .approve { animation: press var(--loop) infinite }
.stage .s1 { animation: s1 var(--loop) infinite } .stage .s2 { animation: s2 var(--loop) infinite } .stage .s3 { animation: s3 var(--loop) infinite } .stage .s4 { animation: s4 var(--loop) infinite }
.stage .t1 { animation: t1 var(--loop) infinite } .stage .t2 { animation: t2 var(--loop) infinite } .stage .t3 { animation: t3 var(--loop) infinite } .stage .t4 { animation: t4 var(--loop) infinite }
@keyframes r1 { 0%, 3% { opacity: 0; transform: translateY(10px) } 8%, 93% { opacity: 1; transform: none } 98%, 100% { opacity: 0; transform: none } }
@keyframes r2 { 0%, 12% { opacity: 0; transform: translateY(10px) } 17%, 93% { opacity: 1; transform: none } 98%, 100% { opacity: 0; transform: none } }
@keyframes r3 { 0%, 21% { opacity: 0; transform: translateY(10px) } 26%, 93% { opacity: 1; transform: none } 98%, 100% { opacity: 0; transform: none } }
@keyframes line { 0%, 28% { transform: scaleX(0) } 38%, 93% { transform: scaleX(1) } 98%, 100% { transform: scaleX(0) } }
@keyframes fill { 0%, 40% { transform: scaleX(0) } 60% { transform: scaleX(.5) } 84%, 93% { transform: scaleX(1) } 98%, 100% { transform: scaleX(1); opacity: 0 } }
@keyframes press { 0%, 56% { transform: none; box-shadow: 0 0 0 0 transparent } 60% { transform: scale(.93) } 64% { transform: none; box-shadow: 0 0 0 8px var(--accent-glow) } 70%, 100% { transform: none; box-shadow: 0 0 0 0 transparent } }
@keyframes s1 { 0%, 28% { opacity: 0 } 31%, 45% { opacity: 1 } 48%, 100% { opacity: 0 } }
@keyframes s2 { 0%, 47% { opacity: 0 } 50%, 58% { opacity: 1 } 61%, 100% { opacity: 0 } }
@keyframes s3 { 0%, 60% { opacity: 0 } 63%, 72% { opacity: 1 } 75%, 100% { opacity: 0 } }
@keyframes s4 { 0%, 74% { opacity: 0 } 77%, 93% { opacity: 1 } 97%, 100% { opacity: 0 } }
@keyframes t1 { 0%, 24% { opacity: 1 } 27%, 100% { opacity: 0 } }
@keyframes t2 { 0%, 26% { opacity: 0 } 29%, 52% { opacity: 1 } 55%, 100% { opacity: 0 } }
@keyframes t3 { 0%, 54% { opacity: 0 } 57%, 70% { opacity: 1 } 73%, 100% { opacity: 0 } }
@keyframes t4 { 0%, 72% { opacity: 0 } 75%, 94% { opacity: 1 } 98%, 100% { opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .stage .feed li, .stage .lines i, .stage .progress b { opacity: 1; transform: none } .stage .s4, .stage .t4 { opacity: 1 } }
@media (max-width: 520px) { .stage-bar, .feed li { padding-inline: 16px } .draft { margin-inline: 12px } .state { width: 7.6rem } }
