/* WIRK home page and blog. Warm paper, ink type, one brick accent, painted terracotta panels.
   Everything is a class: the page's Content-Security-Policy refuses inline styles. */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --bg: #f7f3ec;
  --ink: #2a2620;
  --ink-2: #4a453c;
  --ink-3: #6e675c;
  --ink-4: #8f887b;
  --ink-5: #a0968a;
  --btn: #2d2922;
  --on-btn: #f7f3ec;
  --accent: #a3321f;
  --accent-hover: #8c2a19;
  --accent-pale: #f2e3da;
  --panel: #f2ece2;
  --panel-line: #e6ddce;
  --line: #e3dacb;
  --line-2: #ece4d6;
  --chip: #ede5d8;
  --win: #faf6ee;
  --win-side: #f2ece1;
  --paper: #fffdf8;
  --green: #3d7b4f;
  --amber: #8a5a1e;
  --red: #b0412e;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: 32px;
  --max: 1440px;
  --section: 160px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 var(--sans); letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "cv11", "ss01"; overflow-x: clip; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, figure, ul, ol, pre { margin: 0; }
ul { list-style: none; padding: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent-pale); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 20; background: var(--paper); padding: 8px 14px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); }
.skip:focus { left: 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Brand mark: the face winks once on load. */
.brand-face, .static-face { width: 44px; height: 22px; color: var(--accent); flex: none; }
.brand-face .face-friendly { animation: face-friendly 4s step-end 1; }
.brand-face .face-working { opacity: 0; animation: face-working 4s step-end 1; }
.brand-face .face-wink { opacity: 0; animation: face-wink 4s step-end 1; }
@keyframes face-friendly { 0% { opacity: 1; } 25% { opacity: 0; } 50% { opacity: 1; } 75% { opacity: 0; } 100% { opacity: 1; } }
@keyframes face-working { 0% { opacity: 0; } 25% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 0; } }
@keyframes face-wink { 0% { opacity: 0; } 75% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .brand-face g { animation: none !important; } }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px;
  padding: 14px max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
}
.topbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); opacity: 0; transition: opacity .2s; }
.topbar.scrolled::after { opacity: 1; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; font-size: 15.5px; letter-spacing: 0.14em; color: var(--ink); justify-self: start; }
.topnav { display: flex; gap: 36px; font-size: 14.5px; }
.topnav a, .signin { color: var(--ink-2); transition: color .15s; }
.topnav a:hover, .signin:hover { color: var(--ink); }
.topbar-actions { display: flex; align-items: center; gap: 18px; justify-self: end; font-size: 14.5px; }

/* Pills */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 450; line-height: 1.3; white-space: nowrap;
  transition: background-color .15s, color .15s, box-shadow .15s, transform .15s;
}
.pill.large { padding: 11px 20px; font-size: 15px; gap: 12px; }
.pill.dark { background: var(--btn); color: var(--on-btn); }
.pill.dark:hover { background: #000; }
.pill.soft { background: var(--chip); color: var(--ink); }
.pill.soft:hover { background: #e4d9c8; }
.pill.light { background: rgba(255, 253, 248, .86); color: var(--ink); }
.pill.light:hover { background: var(--paper); }
.pill.outline { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pill.outline:hover { box-shadow: inset 0 0 0 1px var(--ink-4); }
.pill:active { transform: translateY(1px); }
.arrow { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .2s; }
.pill:hover .arrow { transform: translateX(2px); }

/* Hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 112px var(--gutter) 64px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 40px 48px;
}
.hero-main { flex: 1 1 560px; }
.news {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 20px; padding: 3px 12px 3px 3px;
  border: 1px solid var(--line); border-radius: 999px; background: #fbf8f2; font-size: 12.5px; color: var(--ink-2);
  transition: border-color .15s, background-color .15s;
}
.news:hover { border-color: #d6cab6; background: var(--paper); }
.news span { padding: 2px 10px; border-radius: 999px; background: var(--accent-pale); color: var(--accent); font-size: 11.5px; font-weight: 500; }
.news i { font-style: normal; transition: transform .2s; }
.news:hover i { transform: translateX(2px); }
.hero h1 { font-weight: 400; font-size: clamp(34px, 3vw, 44px); line-height: 1.12; letter-spacing: -0.03em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.hero-aside { flex: 0 1 320px; margin-bottom: 8px; font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }

/* Painted canvases. The noise is one cached SVG image, multiplied over a gradient. */
.canvas { position: relative; overflow: hidden; isolation: isolate; }
.canvas.paint {
  background-color: #d7a089;
  background-image: url("/art/paint.svg"),
    radial-gradient(60% 50% at 15% 10%, #efcdb9 0%, rgba(239, 205, 185, 0) 70%),
    radial-gradient(50% 60% at 90% 20%, #d9a48e 0%, rgba(217, 164, 142, 0) 70%),
    radial-gradient(70% 60% at 30% 100%, #c98a72 0%, rgba(201, 138, 114, 0) 70%),
    linear-gradient(165deg, #e9c2ad 0%, #d7a089 55%, #c78c74 100%);
  background-size: 100% 100%; background-blend-mode: multiply, normal, normal, normal, normal;
}
.canvas.stone {
  background-color: #b3aea5;
  background-image: url("/art/grain.svg"), radial-gradient(70% 60% at 50% 40%, #cfcbc3 0%, rgba(207, 203, 195, 0) 75%), linear-gradient(180deg, #bdb8af, #a39e95);
  background-size: 300px 300px, 100% 100%, 100% 100%; background-blend-mode: multiply, normal, normal;
}
.canvas.dunes { background: #ded6c8 url("/art/dunes.svg") center / 100% 100% no-repeat; }

/* Real screens: captures of the app with a fictional team, framed like a window */
.tile { display: inline-grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--btn); color: var(--on-btn); font-size: 10.5px; font-weight: 600; font-style: normal; line-height: 1; }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #d9d0c2; }
.screen {
  position: relative; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--win);
  box-shadow: 0 30px 70px rgba(110, 55, 35, .25), 0 0 0 1px rgba(110, 55, 35, .1);
}
.screen img { display: block; width: 100%; height: auto; }

/* Product shot */
.shot { border-radius: 10px; padding: 48px 5% 0; }
.float {
  position: absolute; z-index: 2; background: var(--paper); border-radius: 12px; font-size: 13px; line-height: 1.4;
  box-shadow: 0 18px 40px rgba(110, 55, 35, .28), 0 0 0 1px rgba(110, 55, 35, .08);
  animation: float-in .7s cubic-bezier(.2, .7, .2, 1) both;
}
.float.wake { top: 22px; right: 5%; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 11px; animation-delay: .5s; }
.float.wake .tile { width: 28px; height: 28px; border-radius: 8px; font-size: 11.5px; }
.float.wake em { font-style: normal; color: var(--ink-3); }
.float.wake strong { font-weight: 500; }
.live { width: 8px; height: 8px; margin-left: 4px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61, 123, 79, .4); animation: live 2.4s ease-out infinite; }
.float.decision { top: 290px; left: 1.2%; max-width: 270px; padding: 13px 16px; animation-delay: .9s; }
.float.decision small { display: block; margin-bottom: 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.float.proof { bottom: 26px; right: 2.5%; padding: 9px 16px; border-radius: 999px; background: var(--btn); color: #efe9de; font: 12px var(--mono); box-shadow: 0 18px 40px rgba(60, 30, 20, .35); animation-delay: 1.3s; }
.float.proof span { color: #93c3a0; }
@keyframes float-in { from { opacity: 0; translate: 0 8px; scale: .98; } to { opacity: 1; translate: none; scale: none; } }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(61, 123, 79, .45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(61, 123, 79, 0); } }
@media (prefers-reduced-motion: reduce) { .float, .live { animation: none; } }

/* Motion. CSS plays the opening and tilts the product shot flat as the page scrolls; landing.js adds the
   scroll choreography with GSAP. Opening animations use translate and scale, never transform, so GSAP's
   transforms compose with them. Everything stands down for reduced motion. */
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero h1 .line > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero h1 .line > span { animation: rise 1s cubic-bezier(.16, .8, .14, 1) both; }
  .hero h1 .line + .line > span { animation-delay: .09s; }
  .news, .hero .actions, .hero-aside { animation: fade-up .9s cubic-bezier(.16, .8, .14, 1) both; }
  .hero .actions { animation-delay: .22s; }
  .hero-aside { animation-delay: .32s; }
  .shot .screen { animation: screen-in 1.2s cubic-bezier(.16, .8, .14, 1) .15s both; }
  @supports (animation-timeline: scroll()) {
    .shot { perspective: 1800px; }
    .shot .screen {
      transform-origin: 50% 0;
      animation: screen-in 1.2s cubic-bezier(.16, .8, .14, 1) .15s both, tilt linear both;
      animation-timeline: auto, scroll(root);
      animation-range: normal, 0 70vh;
    }
  }
}
@keyframes rise { from { translate: 0 108%; } to { translate: none; } }
@keyframes fade-up { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: none; } }
@keyframes screen-in { from { opacity: 0; translate: 0 48px; } to { opacity: 1; translate: none; } }
@keyframes tilt { from { transform: rotateX(16deg) scale(.95); } to { transform: none; } }

/* Works with */
.works { padding-top: 72px; text-align: center; }
.works h2 { font-size: 15px; font-weight: 400; color: var(--ink-3); letter-spacing: -0.005em; }
.works ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 64px; margin-top: 20px; font-size: 19px; font-weight: 500; color: var(--ink-2); letter-spacing: -0.02em; }

/* Section heads */
.section { padding-top: var(--section); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; padding: 0 16px 40px; }
.section-head h2 { font-weight: 400; font-size: clamp(26px, 2.3vw, 32px); line-height: 1.15; letter-spacing: -0.028em; }
.section-head h2 span { color: var(--ink-4); }
.section-head p { flex: 0 1 320px; font-size: 14.5px; line-height: 1.55; color: var(--ink-3); }

/* Drift */
.drift { position: relative; padding: 28px 32px 22px; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 4px; }
.drift-art { width: 100%; height: auto; }
.drift-art .strands path { opacity: .85; }
.drift-art .strands .faint { opacity: .55; }
.drift-art .marks { stroke-width: 2.2; }
.drift-art .bracket { stroke-width: 5; }
.drift-art .marks circle { stroke-width: 2.5; }
.drift-art text { font: 500 14px var(--sans); fill: var(--ink-2); stroke: var(--panel); stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.drift-art text.strong { font-size: 15px; font-weight: 600; fill: var(--ink); }
.drift figcaption { display: flex; justify-content: space-between; margin-top: 8px; font: 12px var(--mono); color: var(--ink-4); }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.card { background: var(--panel); border: 1px solid var(--panel-line); border-radius: 4px; overflow: hidden; padding-bottom: 30px; }
.card > h3 { margin: 26px 30px 6px; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.card > p { margin: 0 30px; max-width: 360px; font-size: 14px; line-height: 1.55; color: var(--ink-3); }
.card-art { height: 340px; }
.card-art.two { background-image: url("/art/paint.svg"), radial-gradient(60% 60% at 85% 85%, #b5725b 0%, rgba(181, 114, 91, 0) 70%), linear-gradient(170deg, #e9c2ad, #cd917a); background-position: 40% 0; }
.card-art.three { background-image: url("/art/paint.svg"), radial-gradient(60% 60% at 15% 90%, #b26c56 0%, rgba(178, 108, 86, 0) 70%), radial-gradient(50% 50% at 80% 10%, #eecdb9 0%, rgba(238, 205, 185, 0) 70%), linear-gradient(200deg, #e1b19b, #c27e66); }

.term { position: absolute; border-radius: 10px; overflow: hidden; font: 12.5px/1.95 var(--mono); }
.term pre { padding: 12px 18px 16px; font: inherit; white-space: pre; }
.term i { font-style: normal; }
.term .term-title { display: flex; align-items: center; gap: 10px; padding: 9px 14px; font: 12px var(--sans); }
.term.light { background: var(--win); color: var(--ink); box-shadow: 0 24px 50px rgba(110, 55, 35, .28), 0 0 0 1px rgba(110, 55, 35, .1); }
.term.light .term-title { color: var(--ink-3); border-bottom: 1px solid var(--line-2); }
.term.dark { background: #2b2620; color: #e6dfd2; box-shadow: 0 24px 50px rgba(60, 30, 20, .4); }
.term.dark .term-title { color: #a59c8d; border-bottom: 1px solid #3a342c; }
.term .ok { color: var(--green); }
.term .dim, .term s { color: var(--ink-5); }
.term s i { color: var(--ink-5); }
.term .good { color: var(--green); font-weight: 400; }
.term.dark .good { color: #93c3a0; }
.term .bad { color: var(--red); font-weight: 400; }
.term .warn { color: #e0a26f; font-weight: 400; }
.term strong { font-weight: 500; }
.term mark { display: block; margin: 4px -18px 4px -6px; padding: 2px 10px; background: transparent; color: inherit; }
.term .flag { background: #f5dcd2; color: var(--accent); margin-left: -8px; }
.term.dark .flag { background: transparent; color: #e0a26f; box-shadow: inset 0 0 0 1px #4a4238; border-radius: 6px; margin-right: 0; }
.term .note { background: #eee6d7; margin-left: -8px; }
.term .note b { color: var(--accent); font-weight: 500; margin-right: 6px; }
.one .term { top: 36px; left: 7%; right: -1px; }
.two .term.back { top: 28px; left: 7%; right: 15%; opacity: .92; }
.two .term.front { top: 118px; left: 14%; right: -1px; }
.three .term { top: 36px; left: 7%; right: -1px; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: minmax(260px, 1fr) minmax(0, 3.3fr); min-height: 640px;
  background: var(--panel); border: 1px solid var(--panel-line); border-radius: 4px; overflow: hidden;
}
.feature + .feature { margin-top: 20px; }
.feature.flip { grid-template-columns: minmax(0, 3.3fr) minmax(260px, 1fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { align-self: center; padding: 48px 44px; }
.feature-copy h3 { font-size: 19px; font-weight: 500; line-height: 1.3; letter-spacing: -0.02em; }
.feature-copy p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.more { display: inline-flex; gap: 6px; margin-top: 24px; font-size: 15px; color: var(--accent); }
.more span { transition: transform .2s; }
.more:hover span { transform: translateX(3px); }
.feature-art { display: flex; align-items: flex-end; justify-content: center; padding: 56px 6% 0; }
.install { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding: 8px 8px 8px 14px; border-radius: 8px; background: var(--chip); max-width: 260px; }
.install code { font: 13px var(--mono); color: var(--ink); }
.copy { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border: 0; border-radius: 7px; background: var(--btn); color: var(--on-btn); cursor: pointer; transition: background-color .15s; }
.copy:hover { background: #000; }
.copy svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.copied { position: absolute; right: 0; top: calc(100% + 6px); font-size: 12px; color: var(--green); }

.feature-art .screen { width: 100%; max-width: 940px; }
.thread-art .screen { max-width: 560px; }
.context-art { padding-bottom: 0; }
.term.cli { position: absolute; right: 6%; bottom: 44px; width: min(440px, 60%); z-index: 2; font-size: 11.5px; line-height: 1.9; }
.term.cli .term-title { justify-content: center; position: relative; }
.term.cli .dots { position: absolute; left: 12px; }
.term.cli .dots i { width: 7px; height: 7px; }
.term.cli pre { white-space: pre-wrap; }
.term .result { display: block; margin: 4px 0 6px; padding: 6px 10px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan { display: flex; flex-direction: column; padding: 30px 30px 34px; border-left: 1px solid var(--line-2); }
.plan:first-child { border-left: 0; }
.plan h3 { display: flex; align-items: center; justify-content: space-between; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.plan .for { margin-top: 2px; min-height: 2.9em; font-size: 13.5px; color: var(--ink-3); }
.plan .price { margin-top: 18px; font-size: 34px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; }
.plan .price span { font-size: 14px; letter-spacing: -0.005em; color: var(--ink-3); }
.plan .bill { margin-top: 6px; font-size: 13px; color: var(--ink-4); }
.plan .pill { margin: 26px 0 0; padding: 11px 16px; font-size: 14.5px; }
.plan ul { display: grid; gap: 9px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.plan > .pill + ul { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.plan li { display: flex; gap: 12px; }
.plan li::before { content: ""; flex: none; width: 10px; height: 1px; margin-top: .72em; background: var(--ink-5); }
.plan ul.accent li::before { background: var(--accent); }
.plus { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: 14px; font-weight: 500; }
.plan.pro { padding: 0 0 34px; }
.pro-head { padding: 30px 30px 26px; }
.pro-head .bill, .pro-head .for, .pro-head .price span { color: #5a4136; }
.plan.pro > :not(.pro-head) { margin-left: 30px; margin-right: 30px; }
.tag { padding: 3px 9px; border-radius: 999px; background: rgba(255, 253, 248, .72); color: var(--accent); font-size: 10.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.plans-note { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 18px 16px 0; font-size: 13px; color: var(--ink-4); }
.plans-note a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 3px; }
.plans-note a:hover { color: var(--accent); text-decoration-color: currentColor; }

/* Closing */
.closing { padding-top: var(--section); }
.closing-card {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 400px); align-items: center; gap: 40px 64px; min-height: 360px; padding: 56px clamp(28px, 6vw, 88px); border-radius: 10px;
  background-image: url("/art/paint.svg"), radial-gradient(60% 80% at 50% 0%, #efcdb9 0%, rgba(239, 205, 185, 0) 70%), linear-gradient(170deg, #e3b6a0, #c68a72);
}
.closing-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.closing h2 { font-size: clamp(32px, 3.6vw, 52px); font-weight: 400; letter-spacing: -0.035em; line-height: 1.05; max-width: 12ch; }
.closing .actions { margin: 0; }
.mood-panel { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mood-panel p { font-size: 16px; letter-spacing: -0.01em; color: #4a3329; }
.mood { width: 100%; padding: 0; border: 0; background: none; color: #f7ece2; cursor: pointer; }
.mood:focus-visible { outline: 2px solid #f7ece2; outline-offset: 10px; border-radius: 8px; }
.mood:disabled { cursor: default; }
.mood .brand-face { width: 100%; height: auto; color: #f7ece2; filter: drop-shadow(0 10px 24px rgba(110, 55, 35, .18)); }
.mood .brand-face g { animation-duration: 4s; animation-iteration-count: infinite; }
.mood[aria-pressed="true"] .brand-face g { animation-play-state: paused; }

/* Footer */
.footer { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 0; overflow: hidden; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 0 16px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 30px; font-size: 14.5px; color: var(--ink-2); }
.footer nav a:hover { color: var(--accent); }
.footer-fine { margin: 14px 16px 0; font-size: 12.5px; color: var(--ink-4); }
.footer-fine a { text-decoration: underline; text-decoration-color: var(--ink-5); text-underline-offset: 2px; }
.giant { width: 100%; height: auto; margin: 36px 0 28px; fill: #e8decd; stroke: #e8decd; }
.giant path { stroke-width: 16; fill: none; }
.giant circle { stroke: none; }
.giant text { font: 500 250px var(--sans); stroke: none; }

/* Responsive */
@media (max-width: 1180px) {
  :root { --section: 128px; }
  .feature, .feature.flip { grid-template-columns: 1fr; min-height: 0; }
  .feature.flip .feature-copy { order: 0; }
  .feature-copy { padding: 36px 36px 28px; max-width: 620px; }
  .feature-art { min-height: 560px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(3) { border-left: 0; }
  .plan:nth-child(n+3) { border-top: 1px solid var(--line-2); }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: 1 / -1; }
  .cards .card:last-child .card-art { height: 300px; }
  .cards .card:last-child .term { left: 4%; right: 4%; }
}
@media (max-width: 900px) {
  .closing-card { grid-template-columns: 1fr; justify-items: center; min-height: 0; padding: 44px 24px 48px; text-align: center; }
  .closing-card .mood-panel { grid-row: 1; width: min(240px, 66%); }
  .closing-copy { align-items: center; }
  .closing h2 { max-width: none; }
  :root { --gutter: 20px; --section: 104px; }
  .topbar { grid-template-columns: auto 1fr; }
  .topnav { display: none; }
  .hero { padding-top: 72px; }
  .float.decision { display: none; }
  .drift { padding: 16px 12px 14px; }
  .drift-art text { font-size: 22px; stroke-width: 8px; }
  .drift-art text.strong { font-size: 24px; }
}
@media (max-width: 680px) {
  :root { --gutter: 16px; --section: 88px; }
  body { font-size: 15px; }
  .topbar { padding-top: 10px; padding-bottom: 10px; }
  .topbar-actions { gap: 14px; }
  .hero { padding: 48px var(--gutter) 40px; }
  .hero-main { flex-basis: 100%; }
  .actions .pill { flex: 1 1 140px; }
  .shot { padding: 64px 4% 0; border-radius: 8px; }
  .float.wake { top: 12px; right: 4%; left: 4%; font-size: 12px; }
  .float.proof { right: 4%; bottom: 14px; font-size: 11px; }
  .works ul { gap: 10px 28px; font-size: 16px; }
  .section-head { padding: 0 4px 28px; }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .card-art, .cards .card:last-child .card-art { height: 300px; }
  .card > h3 { margin: 22px 22px 6px; }
  .card > p { margin: 0 22px; }
  .term { font-size: 11px; }
  .one .term, .three .term, .cards .card:last-child .term { left: 5%; right: -1px; }
  .feature-copy { padding: 28px 22px 24px; }
  .feature-art { min-height: 0; padding: 32px 4% 0; }
  .term.cli { position: relative; right: auto; bottom: auto; width: auto; margin: 0 0 -1px; }
  .context-art { flex-direction: column; align-items: stretch; }
  .context-art { padding: 40px 5% 32px; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-left: 0; border-top: 1px solid var(--line-2); padding: 26px 22px 28px; }
  .plan:first-child { border-top: 0; }
  .plan .for { min-height: 0; }
  .pro-head { padding: 26px 22px 22px; }
  .plan.pro > :not(.pro-head) { margin-left: 22px; margin-right: 22px; }
  .footer-row { padding: 0; }
  .footer-fine { margin-left: 0; }
}

/* ---- Blog ------------------------------------------------------------------------------------ */
.blog .closing { padding-top: 120px; }

.blog-index { padding-top: 88px; }
.blog-head { max-width: 640px; padding: 0 16px; }
.blog-head h1 { font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.1; letter-spacing: -0.032em; }
.blog-head p { margin-top: 14px; font-size: 17px; line-height: 1.55; color: var(--ink-3); }
.post-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 48px; }
.post-card { display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 22px 44px -28px rgba(42, 38, 32, .45); }
.post-card-art { aspect-ratio: 16 / 9; padding: 36px 44px 0; overflow: hidden; border-radius: 0; }
.post-card-art .thumb { height: 100%; overflow: hidden; padding: 22px 24px; border-radius: 12px 12px 0 0; background: var(--paper); box-shadow: 0 18px 40px -22px rgba(60, 30, 20, .55); }
.post-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 26px 28px 28px; }
.post-card h2 { font-weight: 500; font-size: 22px; line-height: 1.25; letter-spacing: -0.02em; }
.post-card p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
.post-card .byline { margin-top: auto; padding-top: 8px; border: 0; font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .post-card, .post-card:hover { transition: none; transform: none; } }

.post { max-width: 768px; margin: 0 auto; padding: 72px var(--gutter) 0; }
.back { display: inline-flex; gap: 6px; font-size: 14px; color: var(--ink-3); }
.back:hover { color: var(--ink); }
.post-head h1 { margin-top: 28px; font-weight: 400; font-size: clamp(34px, 4vw, 50px); line-height: 1.08; letter-spacing: -0.034em; text-wrap: balance; }
.dek { margin-top: 18px; font-size: 19px; line-height: 1.5; color: var(--ink-3); text-wrap: pretty; }
.byline { margin-top: 22px; padding-bottom: 30px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-4); }

.prose { padding-top: 34px; }
.prose p, .prose ul, .prose ol { margin: 0 0 22px; font-size: 17px; line-height: 1.72; color: var(--ink-2); text-wrap: pretty; }
.prose ul { list-style: disc; padding-left: 22px; }
.prose ol { list-style: decimal; padding-left: 22px; }
.prose li { margin-bottom: 8px; padding-left: 4px; }
.prose li::marker { color: var(--ink-5); }
.prose h2 { margin: 60px 0 16px; font-weight: 500; font-size: 27px; line-height: 1.2; letter-spacing: -0.024em; color: var(--ink); text-wrap: balance; }
.prose h3 { margin: 40px 0 10px; font-weight: 600; font-size: 19px; letter-spacing: -0.014em; color: var(--ink); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-hover); }
.prose code { padding: .12em .38em; border-radius: 5px; background: var(--chip); font: 0.86em var(--mono); color: var(--ink); }
.prose pre { margin: 0 0 26px; padding: 18px 22px; overflow-x: auto; border-radius: 12px; background: var(--btn); color: #efe7da; font: 13.5px/1.7 var(--mono); }
.prose pre code { padding: 0; background: none; font: inherit; color: inherit; }
.prose .tok-command { color: #f0b49c; }
.prose .tok-string { color: #cfe0b4; }
.prose blockquote { margin: 0 0 30px; padding: 18px 22px; border-radius: 12px; background: var(--accent-pale); box-shadow: inset 3px 0 0 var(--accent); }
.prose blockquote p { margin: 0; font-size: 15.5px; line-height: 1.6; }
.prose .table { margin: 0 0 30px; overflow-x: auto; border-radius: 12px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.prose th { padding: 11px 16px; background: var(--panel); text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); }
.prose td { padding: 11px 16px; border-top: 1px solid var(--line-2); color: var(--ink-2); vertical-align: top; }
.prose td code { white-space: nowrap; }

.viz { margin: 40px -64px 44px; }
.viz-art { overflow-x: auto; padding: 32px 36px; border-radius: 18px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.viz-art .viz-svg { width: 100%; min-width: 600px; height: auto; }
.viz figcaption { margin: 12px 6px 0; font-size: 13px; line-height: 1.5; color: var(--ink-4); }
.viz-svg { overflow: visible; }
.viz-svg text { font-family: var(--sans); font-size: 12.5px; fill: var(--ink-2); }
.viz-svg .v-b { font-weight: 600; font-size: 13px; fill: var(--ink); }
.viz-svg .v-lg { font-size: 15px; }
.viz-svg .v-sm { font-size: 12px; }
.viz-svg .v-s { font-size: 11.5px; fill: var(--ink-4); }
.viz-svg .v-m { font-family: var(--mono); font-size: 11px; }
.viz-svg .v-h { font-weight: 600; font-size: 11px; letter-spacing: .08em; fill: var(--ink-4); }
.viz-svg .v-w { fill: var(--paper); }
.viz-svg .v-a { fill: var(--accent); }
.viz-svg .v-card { fill: var(--paper); stroke: var(--line); }
.viz-svg .v-focus { stroke: var(--accent); stroke-width: 1.4; }
.viz-svg .v-muted { fill: var(--panel); stroke-dasharray: 4 4; }
.viz-svg .v-soft { fill: var(--panel); }
.viz-svg .v-space { fill: var(--win); stroke: var(--ink-5); stroke-dasharray: 6 6; }
.viz-svg .v-pill { fill: var(--chip); }
.viz-svg .v-tag, .viz-svg .v-msg { fill: var(--accent-pale); }
.viz-svg .v-tagbox { fill: var(--accent-pale); stroke: var(--accent); }
.viz-svg .v-deadend { fill: var(--accent-pale); stroke: #e3b9a8; }
.viz-svg .v-ink { fill: var(--ink-2); }
.viz-svg .v-o1 { fill: #a3321f; }
.viz-svg .v-o2 { fill: #bf5a42; }
.viz-svg .v-o3 { fill: #d58a72; }
.viz-svg .v-o4 { fill: #e6b4a1; }
.viz-svg .v-o5 { fill: #f0d3c6; }
.viz-svg .v-write { fill: var(--paper); stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 3 2; }
.viz-svg .v-ghost { fill: none; stroke: var(--accent); stroke-dasharray: 4 4; }
.viz-svg .v-edge { fill: none; stroke: var(--ink-5); stroke-width: 1.3; }
.viz-svg .v-edge-a { stroke: var(--accent); }
.viz-svg .v-dash { stroke-dasharray: 4 4; }
.viz-svg .v-tip { fill: var(--ink-4); }
.viz-svg .v-axis { fill: none; stroke: var(--ink-5); }
.viz-svg .v-ring { fill: none; stroke: var(--ink-5); stroke-width: 1.5; stroke-dasharray: 2 6; }
.viz-svg .v-dot-on { fill: var(--green); }
.viz-svg .v-dot-off { fill: var(--ink-5); }

@media (max-width: 1000px) {
  .viz { margin-left: 0; margin-right: 0; }
}
@media (max-width: 760px) {
  .post-list { grid-template-columns: 1fr; }
  .post { padding-top: 48px; }
  .prose p, .prose ul, .prose ol { font-size: 16px; }
  .prose h2 { margin-top: 48px; font-size: 23px; }
  .viz-art { padding: 20px; }
  .post-card-art { padding: 22px 24px 0; }
}
