@font-face {
  font-family: "Nunito";
  src: url("/assets/Nunito-Variable.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

/* Site palette: pure neutral greys (R=G=B, no blue cast), one blue only for the chosen offer. Surfaces step #fff → --soft → --soft-hover */
:root {
  --bg: #fff;
  --card: #fff;
  --ink: #1d1d1d;
  --muted: #6b6b6b;
  --line: #eeeeee;
  --accent: #6b6b6b;
  --soft: #f5f5f5;
  --soft-hover: #ededed;
  --link: var(--accent);
  /* Bora colours, used by the Bora article figures */
  --bora-bg: #faf8f4;
  --cocoa: #925b3c;
  --leaf: #a6c931;
  --forest: #46b887;
  --ocean: #58acdc;
  --honey: #f2c34b;
  --terracotta: #e99257;
  --guava: #ea7a8d;
  --t-ocean: #c4e2f5;
  --t-honey: #fbe19a;
  --t-forest: #bce8d2;
  --t-terra: #f8cfb1;
  --t-guava: #f9d3da;
  --sans: "Nunito", ui-sans-serif, -apple-system, system-ui, sans-serif;
  --text: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e0e;
    --card: #1b1b1b;
    --ink: #f2f2f2;
    --muted: #9a9a9a;
    --line: #2a2a2a;
    --soft: #1b1b1b;
    --soft-hover: #242424;
    --bora-bg: #1a1613;
    --cocoa: #d39a77;
    --t-ocean: #1b2a33;
    --t-honey: #2e2716;
    --t-forest: #182b22;
    --t-terra: #2f2119;
    --t-guava: #33201f;
  }
}
/* A Bora article keeps the Bora look: warm ink, cocoa links */
body.theme-bora { --ink: #3d3028; --muted: #8c7f76; --line: #ebe5dc; --link: var(--cocoa); }
@media (prefers-color-scheme: dark) {
  body.theme-bora { --bg: #120f0c; --card: #221d19; --ink: #f2edea; --muted: #a39890; --line: #352f2b; }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.47 var(--text);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

/* Header after igortomko.design: full-width bar, uppercase name, nav right */
.site {
  height: 6.6rem;
  padding: 0 2.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f5f5f5;
  font-family: var(--text);
}
.site .logo { font-weight: 600; font-size: var(--fs-heading); letter-spacing: 0.01em; color: var(--ink); text-decoration: none; }
.site nav { display: flex; align-items: center; gap: 1.6rem; }
.site nav a { color: var(--ink); font-weight: 400; font-size: var(--fs-body); text-decoration: none; }
.site nav a:hover { color: var(--accent); }
.site nav a[aria-current] { color: var(--accent); }
.site .li { display: block; width: 2rem; height: 2rem; }
.site .li svg { display: block; width: 100%; height: 100%; }
@media (prefers-color-scheme: dark) { .site { border-color: var(--line); } .site .logo, .site nav a { color: var(--ink); } }
.site .drop { position: relative; }
.site .drop button { display: flex; align-items: center; gap: 0.3rem; background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--ink); font: 400 var(--fs-body) var(--text); }
.site .drop svg { width: 0.85rem; height: 0.85rem; transition: transform .2s; }
.site .menu { position: absolute; top: 100%; left: 50%; z-index: 20; min-width: 15rem; padding: 0.5rem; margin-top: 0.6rem;
  background: var(--card); border-radius: 1rem; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translate(-50%, -4px); transition: opacity .15s, transform .15s, visibility .15s; }
.site .menu::before { content: ""; position: absolute; inset: -0.8rem 0 auto; height: 0.8rem; }
.site .menu a { display: block; padding: 0.6rem 0.8rem; border-radius: 0.6rem; font-size: var(--fs-body); white-space: nowrap; }
.site .menu a:hover { background: var(--soft); }
.site .drop:hover .menu, .site .drop:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site .drop:hover svg, .site .drop:focus-within svg { transform: rotate(180deg); }
@media (prefers-color-scheme: dark) { .site .drop button { color: var(--ink); } }
@media (max-width: 800px) {
  .site { height: 5.4rem; padding: 0 1.25rem; }
  .site nav a:not(.li), .site .drop { display: none; }
}

article { max-width: 45rem; margin: 0 auto; padding: 0 1.25rem 5rem; }

article header { text-align: center; margin: var(--space-5) auto var(--space-3); }
.date { color: var(--muted); font: 400 var(--fs-label)/1.3 var(--text); margin: 0 0 1rem; }
h1 {
  font: 600 var(--fs-title)/1.1 var(--text);
  letter-spacing: -0.015em;
  margin: 0 auto;
  max-width: 34rem;
  text-wrap: balance;
}
/* Article titles are as big as page titles (/blog/, /ai/) */
article header h1 { font: 600 var(--fs-hero)/1.05 var(--text); letter-spacing: -0.025em; max-width: 48rem; }

p { margin: 0 0 var(--space-3); text-wrap: pretty; }
.intro { font-size: var(--fs-lead); line-height: 1.38; margin-bottom: 1.6rem; }

h2 { font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; margin: var(--space-5) 0 var(--space-2); }
h3 { font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

ul, ol:not([class]) { margin: 0 0 var(--space-3); padding-left: 1.2em; }
li { margin-bottom: var(--space-1); padding-left: 0.2em; }
li::marker { color: var(--link); }
b, strong { font-weight: 600; }

/* Figures: tinted panels in Bora colours, white objects, capybaras */
figure { margin: 2.25rem 0 2.5rem; }
figcaption { color: var(--muted); font-size: var(--fs-label); line-height: 1.3; margin-top: 0.75rem; text-align: center; }
.panel { border-radius: 1.5rem; padding: 2.25rem 2rem; position: relative; overflow: hidden; }
.ocean { background: var(--t-ocean); }
.honey { background: var(--t-honey); }
.forest { background: var(--t-forest); }
.terra { background: var(--t-terra); }

.lift { box-shadow: 0 1px 2px rgba(61,48,40,.08), 0 12px 30px rgba(61,48,40,.13); }

.browser { background: #fff; border-radius: 0.8rem; overflow: hidden; }
.browser::before {
  content: "";
  display: block;
  height: 1.5rem;
  background:
    radial-gradient(circle, #e6ded3 0.22rem, transparent 0.24rem) 0.6rem 50% / 0.8rem 0.8rem no-repeat,
    radial-gradient(circle, #e6ded3 0.22rem, transparent 0.24rem) 1.25rem 50% / 0.8rem 0.8rem no-repeat,
    radial-gradient(circle, #e6ded3 0.22rem, transparent 0.24rem) 1.9rem 50% / 0.8rem 0.8rem no-repeat,
    #fff;
  border-bottom: 1px solid #f0ebe3;
}

.with-capy { display: grid; grid-template-columns: 9rem 1fr; gap: 1.5rem; align-items: center; }
.with-capy > img { width: 100%; }
.with-capy.big { grid-template-columns: 15rem 1fr; gap: 1rem; }
.with-capy.big > img { width: 125%; margin: -1.5rem 0 -1.5rem -12%; max-width: none; }

.cards { display: grid; gap: 0.75rem; }
.cards div { background: var(--card); border-radius: 1rem; padding: 1rem 1.1rem; }
.cards strong { display: block; font: 800 2.1rem/1.05 var(--sans); font-variant-numeric: tabular-nums; }
.cards span { display: block; font-size: 0.92rem; color: var(--muted); margin-top: 0.2rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); text-align: center; }
.cards.four img { width: 3rem; height: 3rem; margin: 0 auto 0.5rem; }

.window { max-width: 30rem; margin: 0 auto; background: var(--card); border-radius: 1rem; padding: 1.1rem 1.25rem 0.5rem; }
.window h3 { margin: 0 0 0.5rem; font: 800 1.1rem/1.3 var(--sans); }
.todo { list-style: none; margin: 0; padding: 0; }
.todo li { display: flex; align-items: center; gap: 0.85rem; padding: 0.55rem 0; margin: 0; font-size: var(--fs-body); }
.todo li > img { width: 2.4rem; height: 2.4rem; flex: none; }
.todo li span { flex: 1; }
.todo li strong { font: 700 0.95rem/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.todo .bar { display: block; height: 0.4rem; border-radius: 1rem; background: var(--ocean); margin-top: 0.4rem; width: var(--w); }

.coverage { display: flex; height: 3.25rem; }
.coverage div { display: flex; align-items: center; padding: 0 1rem; font: 800 1.1rem/1 var(--sans); }
.coverage .full { flex: 85; background: var(--leaf); color: #2f3a0c; }
.coverage .part { flex: 14; background: #e4efbd; color: #55661a; padding: 0 0.6rem; border-left: 3px solid var(--bg); }
.coverage .none { flex: 1.5; background: #ddd5ca; padding: 0; border-left: 3px solid var(--bg); }
.legend { display: flex; gap: 1.25rem; flex-wrap: wrap; margin-top: 0.8rem; font-size: var(--fs-label); color: var(--muted); }

.slider .tabs { display: flex; gap: 0.4rem; justify-content: center; margin-bottom: 1rem; position: relative; }
/* One pill slides under the selected tab instead of each tab painting its own background */
.slider .pill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  border-radius: 99px; background: var(--ink);
  transition: transform .35s cubic-bezier(.3,.7,.2,1), width .35s cubic-bezier(.3,.7,.2,1);
}
@media (prefers-reduced-motion: reduce) { .slider .pill { transition: none; } }
.slider [role=tab] {
  font: 600 var(--fs-label)/1 var(--text); color: var(--muted);
  background: none; border: 0; border-radius: 99px; padding: 0.6rem 1rem; cursor: pointer;
}
.slider [role=tab] { position: relative; transition: color .25s; white-space: nowrap; }
.slider [role=tab][aria-selected=true] { color: var(--bg); }
.slider .track {
  /* Padding leaves room for the card shadow; the negative margin keeps the column edge. */
  display: flex; gap: 3rem; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 0.75rem 2rem 2.5rem; margin: -0.75rem -2rem -1.5rem;
  scroll-padding: 0 2rem;
}
.slider .track::-webkit-scrollbar { display: none; }
.slider .track > * { flex: 0 0 100%; scroll-snap-align: start; }

.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.pair .window { max-width: none; margin: 0; }

/* Timeline: the "idea / working demo / final 10%" bar, in Bora colours */
.timeline { background: var(--card); padding: 3.5rem 2.5rem 2.75rem; }
.timeline .bar { display: flex; height: 3.25rem; }
.timeline .bar div + div { border-left: 3px solid var(--bg); }
.timeline .ticks { position: relative; height: 7.5rem; }
.timeline .tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  padding-top: 3.4rem;
  text-align: center;
  font-family: var(--sans);
  white-space: nowrap;
}
.timeline .tick::before { content: ""; position: absolute; left: calc(50% - 1px); top: 0; width: 2px; height: 2.4rem; background: var(--muted); }
.timeline .tick b { display: block; font-weight: 800; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.01em; }
.timeline .tick span { display: block; color: var(--muted); font-weight: 600; font-size: 1.15rem; margin-top: 0.2rem; }
/* First label hangs right of its tick so it never leaves the panel */
.timeline .tick.first { transform: translateX(-2rem); text-align: left; }
.timeline .tick.first::before { left: calc(2rem - 1px); }
/* Label hangs left of its tick, for ticks near the right edge */
.timeline .tick.last { transform: translateX(calc(-100% + 2rem)); text-align: right; }
.timeline .tick.last::before { left: auto; right: calc(2rem - 2px); }
.timeline .ticks.top { height: 6rem; }
.timeline .top .tick { top: auto; bottom: 0; padding: 0 0 3.4rem; }
.timeline .top .tick::before { top: auto; bottom: 0; }
.timeline .tick.mid { transform: translateX(-22%); }
.timeline .tick.mid::before { left: calc(22% - 1px); }

.buy {
  margin: 2.5rem 0;
  padding: 1.6rem 1.75rem;
  border-radius: 1.5rem;
  background: var(--card);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.buy .price { font: 800 2.9rem/1 var(--sans); color: var(--cocoa); }
.buy p { margin: 0; flex: 1 1 15rem; font-size: var(--fs-body); }
.buy a {
  background: var(--cocoa); color: #fff; font: 800 1rem/1 var(--sans);
  padding: 0.9rem 1.3rem; border-radius: 0.8rem; white-space: nowrap; text-decoration: none;
}

.outro { display: grid; grid-template-columns: 1fr 7.5rem; gap: 1.25rem; align-items: center; margin-top: 2rem; }
.outro p { margin: 0; font-size: var(--fs-lead); }

footer {
  max-width: 46rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--fs-label);
}
footer a { color: var(--ink); }

@media (max-width: 640px) {
  article header { margin-top: 3.5rem; }
  h2 { margin-top: var(--space-4); }
  .panel { padding: 1.4rem 1rem; border-radius: 1.2rem; }
  .with-capy { grid-template-columns: 5.5rem 1fr; gap: 0.9rem; }
  .with-capy.big { grid-template-columns: 1fr; }
  .with-capy.big > img { width: 12rem; margin: -1rem auto -0.5rem; }
  .cards.four { grid-template-columns: 1fr 1fr; }
  .cards strong { font-size: 1.8rem; }
  .pair { grid-template-columns: 1fr; }
  .slider .tabs { gap: 0; }
  .slider [role=tab] { padding: 0.55rem 0.7rem; }
  .slider .track { padding: 0.75rem 1.25rem 2rem; margin: -0.75rem -1.25rem -1.25rem; scroll-padding: 0 1.25rem; gap: 2.5rem; }
  .timeline { padding: 2rem 1.25rem 1.5rem; }
  .timeline .bar { height: 2.75rem; }
  .timeline .ticks { height: 10rem; }
  .timeline .tick { padding-top: 2rem; }
  .timeline .tick::before { width: 2px; height: 1.4rem; }
  .timeline .tick b { font-size: 1.05rem; }
  .timeline .tick span { font-size: 0.9rem; }
  .timeline .tick.first { transform: translateX(-1rem); }
  .timeline .tick.first::before { left: calc(1rem - 1.5px); }
  .timeline .tick.last { transform: translateX(calc(-100% + 1rem)); }
  .timeline .tick.last::before { right: calc(1rem - 1.5px); }
  .timeline .ticks.top { height: 4.4rem; }
  .timeline .top .tick { padding: 0 0 2rem; }
  .timeline .tick.mid { padding-top: 6rem; transform: translateX(-50%); }
  .timeline .tick.mid::before { left: calc(50% - 1.5px); }
  .timeline .tick.mid::before { height: 5.4rem; }
  .outro { grid-template-columns: 1fr 5rem; }
}
.window.solo { max-width: none; padding: 1.5rem 1.75rem 1.6rem; border-radius: 1.5rem; background: var(--bora-bg); }
/* Hovered card grows, its siblings step back; only where hover exists */
.cards div { transition: transform .3s cubic-bezier(.3,.7,.2,1), opacity .3s; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cards:hover div { transform: scale(.97); opacity: .7; }
  .cards:hover div:hover { transform: scale(1.04); opacity: 1; position: relative; z-index: 1; }
  .cards.four:hover div { transform: scale(.94); }
  .cards.four:hover div:hover { transform: scale(1.1); }
}

/* Top-5 as thick vertical bars; height is the share of the leader */
.bars5 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.bars5 li { margin: 0; padding: 0; text-align: center; transition: opacity .3s; }
.bars5 .plot { height: 16rem; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.bars5 strong { font: 800 1.3rem/1 var(--sans); font-variant-numeric: tabular-nums; margin-bottom: 0.5rem; }
.bars5 .col {
  width: 100%; height: calc(var(--h) * 0.85); flex: none;
  background: var(--c); border-radius: 1rem 1rem 0.5rem 0.5rem;
  /* Height, not scaleY: the number above rides up with the bar */
  transition: height .35s cubic-bezier(.3,.7,.2,1);
}
.bars5 .col { display: flex; align-items: flex-end; justify-content: center; padding-bottom: 0.9rem; }
/* Stacked white drop-shadows draw an outline so the icon stays readable on its own colour */
.bars5 img {
  width: 3.2rem; height: 3.2rem;
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff);
}
.bars5 span { margin-top: 0.6rem; }
.bars5 img { transform-origin: bottom center; transition: transform .35s cubic-bezier(.3,.7,.2,1.4); }
.bars5 span { display: block; font-size: 0.95rem; line-height: 1.25; margin-top: 0.3rem; overflow-wrap: anywhere; hyphens: auto; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bars5:hover li { opacity: .45; }
  .bars5 li:hover { opacity: 1; }
  .bars5 li:hover .col { height: calc(var(--h) * 0.92); }
  .bars5 li:hover img { transform: scale(1.3) rotate(-6deg); }
}
@media (max-width: 640px) {
  .bars5 { gap: 0.4rem; }
  .bars5 .plot { height: 12rem; }
  .bars5 strong { font-size: 0.95rem; }
  .bars5 img { width: 2.2rem; height: 2.2rem; filter: drop-shadow(1.5px 0 0 #fff) drop-shadow(-1.5px 0 0 #fff) drop-shadow(0 1.5px 0 #fff) drop-shadow(0 -1.5px 0 #fff); }
  .bars5 .col { padding-bottom: 0.5rem; }
  .bars5 span { font-size: 0.75rem; }
  .bars5 .col { border-radius: 0.7rem 0.7rem 0.35rem 0.35rem; }
}

/* Segmented bars: ends rounded on the children, so a hovered segment can grow without clipping */
.coverage > div, .timeline .bar > div { transition: transform .3s cubic-bezier(.3,.7,.2,1), opacity .3s; }
.coverage > :first-child, .timeline .bar > :first-child { border-radius: 0.9rem 0 0 0.9rem; }
.coverage > :last-child, .timeline .bar > :last-child { border-radius: 0 0.9rem 0.9rem 0; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .coverage:hover > div, .timeline .bar:hover > div { opacity: .45; }
  .coverage > div:hover, .timeline .bar > div:hover { opacity: 1; transform: scaleY(1.18); }
}

/* Screenshots break out of the text column on wide screens */
@media (min-width: 64rem) {
  .hero, .slider { margin-left: -6rem; margin-right: -6rem; }
}

/* Demand / deficit cards: same grow-and-step-back hover as the stat cards */
.pair .window { transition: transform .3s cubic-bezier(.3,.7,.2,1), opacity .3s; }
.todo li > img { transition: transform .3s cubic-bezier(.3,.7,.2,1.4); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pair:hover .window { transform: scale(.97); opacity: .7; }
  .pair .window:hover { transform: scale(1.04); opacity: 1; position: relative; z-index: 1; }
  .todo li:hover > img { transform: scale(1.25) rotate(-6deg); }
}
/* Timeline segments grow upward only, so the ticks under the bar stay clear */
.timeline .bar > div { transform-origin: center bottom; }

/* Price card: dark Bora brown with a Honey call to action */
.buy { background: #3d3028; color: #fffcf3; box-shadow: 0 14px 34px rgba(61,48,40,.28); }
.buy .price { color: #f2c34b; }
.buy p { color: rgba(255,252,243,.85); }
.buy a { background: #f2c34b; color: #3d3028; transition: transform .2s, box-shadow .2s; }
.buy a:hover { filter: none; transform: translateY(-2px); box-shadow: 0 8px 18px rgba(242,195,75,.35); }
/* Hovered row reads bold; stroke instead of font-weight so the text does not reflow */
.todo li span, .todo li strong { transition: -webkit-text-stroke-width .2s, color .2s; -webkit-text-stroke: 0 currentColor; }
@media (hover: hover) {
  .todo li:hover span { -webkit-text-stroke-width: 0.035em; }
  .todo li:hover strong { color: var(--ink); }
}

/* Price ladder card: static steps, the live one marked by script */
.buy { display: block; }
.buy-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.buy-k { margin: 0 0 0.3rem; font-size: var(--fs-label); color: rgba(255,252,243,.65); }
.buy .buy-left { margin: 0.5rem 0 0; font-size: var(--fs-label); flex: none; }
.ladder { list-style: none; margin: 2.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.5rem; align-items: end; height: 9rem; }
.ladder li {
  margin: 0; padding: 0.6rem 0.4rem; height: var(--h);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  border-radius: 0.8rem 0.8rem 0.4rem 0.4rem; background: rgba(255,252,243,.1);
  font-family: var(--sans); transition: transform .3s cubic-bezier(.3,.7,.2,1), background .3s;
}
.ladder b { font-weight: 800; font-size: 1.05rem; color: #fffcf3; }
.ladder span { font-size: 0.72rem; color: rgba(255,252,243,.55); white-space: nowrap; }
.ladder li.sold { opacity: .35; }
.ladder li.sold b { text-decoration: line-through; }
.ladder li.now { background: #f2c34b; position: relative; box-shadow: 0 0 0 3px rgba(242,195,75,.35), 0 10px 24px rgba(242,195,75,.3); }
.ladder li.now::before {
  content: attr(data-label); position: absolute; top: -1.9rem; left: 50%; transform: translateX(-50%);
  background: #fffcf3; color: #3d3028; font: 800 0.72rem/1 var(--sans); padding: 0.35rem 0.55rem; border-radius: 99px; white-space: nowrap;
}
.ladder li.now b, .ladder li.now span { color: #3d3028; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ladder li:hover { transform: translateY(-4px); }
}
@media (max-width: 640px) {
  .ladder { gap: 0.3rem; height: 7.5rem; }
  .ladder b { font-size: 0.85rem; }
  .ladder span { font-size: 0.6rem; }
}

/* ===== Site pages: home, blog index, CV ===== */
.site .lang { font-size: var(--fs-label); font-weight: 600; border: 1.5px solid currentColor; border-radius: 0.5rem; padding: 0.25rem 0.45rem; line-height: 1; }
@media (max-width: 800px) { .site nav a.lang { display: inline-block; } }
.foot { max-width: 68rem; margin: 0 auto; padding: 2rem 2.25rem 3rem; color: var(--muted); font-size: var(--fs-label); border-top: 1px solid var(--line); }

.home { max-width: 68rem; margin: 0 auto; padding: 0 2.25rem 4rem; }
.home section { margin: var(--section) 0; }
.home h2 { font: 600 var(--fs-title)/1.1 var(--text); letter-spacing: -0.015em; margin: 0 0 calc(2 * var(--space-2)); }
.page-h1 { font: 600 var(--fs-hero)/1.05 var(--text); letter-spacing: -0.025em; margin: 4rem 0 2rem; }

.hero { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; margin-top: 4.5rem !important; }
.hero h1 { font: 600 var(--fs-hero)/1.05 var(--text); letter-spacing: -0.025em; margin: 0 0 1.25rem; }
.hero .sub { font-size: var(--fs-lead); line-height: 1.38; color: var(--muted); max-width: 40rem; margin: 0; }
.hero .me { width: 12.5rem; height: 12.5rem; border-radius: 2.2rem; transform: rotate(-5deg); object-fit: cover; box-shadow: 0 14px 34px rgba(0,0,0,.12); }

.worked .k { color: var(--muted); font-size: var(--fs-lead); margin: 0 0 1rem; }
/* Logo tiles: hovered one grows and shows its tooltip, the rest step back */
.logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.logos li { position: relative; margin: 0; padding: 0; }
.logos a { display: block; width: 5rem; height: 5rem; border-radius: 1.3rem; text-decoration: none; color: var(--ink);
  transition: transform .3s cubic-bezier(.3,.7,.2,1.3), opacity .3s; }
.logos img { width: 100%; height: 100%; border-radius: inherit; box-shadow: 0 0 0 1px rgba(0,0,0,.06); transition: box-shadow .3s; }
.logos .ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; text-align: center;
  border: 1.5px dashed var(--line); border-radius: inherit; color: var(--muted); font-size: var(--fs-label); line-height: 1.3; }
.logos .tip {
  position: absolute; bottom: calc(100% + 0.9rem); left: 50%; width: 16rem; z-index: 5;
  background: #1d1d1d; color: #fff; border-radius: 1rem; padding: 0.85rem 1rem; font-size: var(--fs-label); line-height: 1.3;
  box-shadow: 0 14px 34px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none; transform: translate(-50%, 6px); transition: opacity .2s, transform .25s;
}
.logos .tip b { display: block; font-size: var(--fs-label); }
.logos .tip em { display: block; font-style: normal; color: rgba(255,255,255,.6); margin: 0.1rem 0 0.4rem; font-size: var(--fs-label); }
.logos .yours .tip em { color: #cfcfcf; margin: 0.4rem 0 0; font-weight: 600; }
.logos a:hover .tip, .logos a:focus-visible .tip { opacity: 1; transform: translate(-50%, 0) rotate(6deg) scale(.84); }
.logos li:first-child .tip { left: 0; transform: translate(0, 6px); }
.logos li:first-child a:hover .tip, .logos li:first-child a:focus-visible .tip { transform: translate(0, 0) rotate(6deg) scale(.84); transform-origin: left bottom; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .logos:hover a { transform: scale(.88); opacity: .45; }
  .logos li a:hover { transform: translateY(-6px) scale(1.2) rotate(-6deg); opacity: 1; z-index: 4; }
  .logos li a:hover img { box-shadow: 0 0 0 1px rgba(0,0,0,.04), 0 14px 26px rgba(0,0,0,.22); }
}
.logos a:hover, .logos a:focus-visible { z-index: 4; }
/* Phones: one tooltip under the whole row instead of a bubble that falls off the edge */
@media (max-width: 640px) {
  .logos { position: relative; gap: 0.6rem; padding-bottom: 0.5rem; }
  .logos li { position: static; }
  .logos a { width: 4rem; height: 4rem; border-radius: 1.05rem; }
  .logos .tip, .logos li:first-child .tip { left: 0; right: 0; width: auto; bottom: auto; top: calc(100% + 0.5rem); transform: translateY(6px); }
  .logos a:focus .tip, .logos li:first-child a:focus .tip { opacity: 1; transform: translateY(0); }
}

.products { display: grid; gap: 1rem; }
.product { display: grid; grid-template-columns: 4rem 1fr auto; gap: 1.25rem; align-items: center;
  padding: 1.5rem; border-radius: 1.5rem; background: var(--soft); transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.product img { width: 4rem; height: 4rem; border-radius: 1rem; object-fit: contain; }
.product h3 { margin: 0 0 0.25rem; font: 600 var(--fs-heading)/1.17 var(--text); }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 span { font-weight: 400; font-size: var(--fs-label); color: var(--muted); margin-left: 0.4rem; }
.product p { margin: 0; color: var(--ink); opacity: .8; }
.product .more { display: inline-block; margin-top: 0.5rem; font-weight: 600; text-decoration: none; }
.product .mrr { text-align: right; min-width: 9rem; }
.product .mrr b { display: block; font: 600 var(--fs-title)/1.1 var(--text); }
.product .mrr span { font-size: var(--fs-label); color: var(--muted); }

.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1.5rem; }
.post { display: block; color: var(--ink); text-decoration: none; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 1.2rem; box-shadow: 0 0 0 1px rgba(0,0,0,.06); margin-bottom: 0.9rem; transition: transform .3s cubic-bezier(.3,.7,.2,1); }
.post .date { display: block; color: var(--muted); font-size: var(--fs-label); }
.post b { display: block; font-size: var(--fs-heading); line-height: 1.17; letter-spacing: -0.01em; margin: 0.2rem 0 0.4rem; }
.post span:last-child { color: var(--muted); font-size: var(--fs-body); }

.about { max-width: 42rem; font-size: var(--fs-lead); line-height: 1.38; }
.personal { margin: 0 0 1.25rem; max-width: 40rem; color: var(--muted); font-size: var(--fs-lead); line-height: 1.38; }
.contacts { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.contacts a { padding: 0.7rem 1.2rem; border-radius: 0.9rem; background: var(--soft); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .2s; }
.contacts a:hover { transform: translateY(-2px); }

@media (max-width: 640px) {
  .home { padding: 0 1.25rem 3rem; }
  .hero { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.5rem !important; }
  .hero .me { order: -1; width: 7rem; height: 7rem; border-radius: 1.4rem; }
  .product { grid-template-columns: 3rem 1fr; padding: 1.1rem; }
  .product img { width: 3rem; height: 3rem; }
  .product .mrr { grid-column: 1 / -1; text-align: left; display: flex; align-items: baseline; gap: 0.6rem; }
  .foot { padding: 1.5rem 1.25rem 2.5rem; }
}

/* CV */
.cv { max-width: 52rem; margin: 0 auto; padding: 0 2.25rem 4rem; }
.cv-head { margin: 4.5rem 0 3rem; }
.cv-head h1 { font: 600 var(--fs-hero)/1.05 var(--text); letter-spacing: -0.025em; margin: 0 0 1rem; }
.cv-head .lead { font-size: var(--fs-lead); line-height: 1.38; max-width: 44rem; }
.cv-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn { display: inline-block; padding: 0.8rem 1.3rem; border-radius: 0.9rem; background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.btn.ghost { background: var(--soft); color: var(--ink); }
.cv-block { margin: 3.5rem 0; }
.cv-block > h2 { font: 600 var(--fs-title)/1.1 var(--text); letter-spacing: -0.015em; margin: 0 0 calc(2 * var(--space-2)); }
.job { display: grid; grid-template-columns: 11rem 1fr; gap: 1.5rem; padding: 1.5rem 0; border-top: 1px solid var(--line); }
.job .when { margin: 0; color: var(--muted); font-size: var(--fs-label); padding-top: 0.25rem; }
.job h3 { margin: 0 0 0.35rem; font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }
.job h3 span { font-weight: 400; color: var(--muted); }
.job .about { margin: 0 0 0.75rem; color: var(--muted); font-size: var(--fs-body); line-height: 1.47; }
.job ul { margin: 0 0 0.5rem; font-size: var(--fs-body); }
.tags-title { font: 600 var(--fs-label)/1.3 var(--text); color: var(--muted); margin: 1.25rem 0 0.75rem; }
.tags { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags li { margin: 0; padding: 0.45rem 0.8rem; border-radius: 99px; background: var(--soft); font-size: var(--fs-label); }
@media (max-width: 640px) {
  .cv { padding: 0 1.25rem 3rem; }
  .job { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* Footer sits at the bottom on short pages and scrolls away on long ones */
body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
body > main, body > article, body > footer, body > .foot { width: 100%; }
body > footer, body > .foot { margin-top: auto; }

/* Post cards: title takes the link colour, the cover lifts */
.post b { transition: color .2s; }
.post img { transition: transform .3s cubic-bezier(.3,.7,.2,1), box-shadow .3s; }
.post:hover b { color: var(--accent); }
/* A visible tooltip takes the pointer, and an invisible bridge covers the gap to its tile,
   so the cursor can travel onto the tooltip (it is part of the same link) */
.logos a:hover .tip, .logos a:focus-visible .tip { pointer-events: auto; }
.logos .tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.2rem; }
@media (max-width: 640px) { .logos .tip::after { top: auto; bottom: 100%; } }

/* Natural shadows: several layers, each twice as far and softer, instead of one big blur */
:root {
  --shadow-rest: 0 0 0 1px rgba(0,0,0,.05), 0 1px 2px rgba(0,0,0,.04);
  --shadow-lift: 0 0 0 1px rgba(0,0,0,.04), 0 1px 1px rgba(0,0,0,.03), 0 2px 4px rgba(0,0,0,.04),
                 0 6px 10px rgba(0,0,0,.05), 0 14px 24px rgba(0,0,0,.06), 0 28px 44px rgba(0,0,0,.06);
}
.logos img, .post img { box-shadow: var(--shadow-rest); }
.logos li a:hover img { box-shadow: var(--shadow-lift); }
.hero .me { box-shadow: var(--shadow-lift); }
.logos .tip { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 16px rgba(0,0,0,.12), 0 20px 36px rgba(0,0,0,.14); }
.product .mrr.closed span { display: inline-block; padding: 0.35rem 0.7rem; border-radius: 99px; background: var(--line); color: var(--muted); font-size: var(--fs-label); font-weight: 600; }

/* ===== Interaction polish (emil-design-eng, better-ui) ===== */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); }

/* Every pressable answers the press: scale 0.96, 160ms */
.btn, .contacts a, .buy a, .slider [role=tab], .logos a, .post, .site nav a, .product .more, .lang {
  transition-property: transform, color, background-color, box-shadow, opacity;
  transition-duration: 160ms; transition-timing-function: var(--ease-out);
}
.btn:active, .contacts a:active, .buy a:active, .slider [role=tab]:active, .post:active,
.site nav a:active, .product .more:active, .lang:active { transform: scale(0.96); }
/* Pressing a lifted tile shrinks it from where it is, not back to rest */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) { .logos li a:hover:active { transform: translateY(-6px) scale(1.15) rotate(-6deg); } }
.logos li a:active { transform: scale(0.96); }

/* Hover only where a pointer hovers; buttons get a visible hover, not only links */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--accent); color: #fff; }
  .btn.ghost:hover { background: var(--line); color: var(--ink); }
  .contacts a:hover { background: var(--accent); color: #fff; transform: none; }
  .slider [role=tab]:hover:not([aria-selected=true]) { color: var(--ink); }
  .product .more:hover { text-decoration: underline; }
  .lang:hover { color: var(--accent); }
}
@media (hover: none) { .contacts a:hover, .buy a:hover { transform: none; } }

/* Hover motion stays under 300ms */
.logos a { transition-duration: 240ms; }
.cards div, .pair .window, .bars5 .col, .bars5 img, .coverage > div, .timeline .bar > div, .product, .post img, .todo li > img { transition-duration: 220ms; transition-timing-function: var(--ease-out); }

/* Tooltip grows out of its tile: from scale .97 at the bottom edge, 160ms */
.logos .tip { transform-origin: bottom center; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); }
.logos li:first-child .tip { transform-origin: bottom left; }

/* Images: a 1px outline at low opacity instead of a ring shadow */
.logos img, .post img, .hero .me, .browser img { outline: 1px solid rgba(0,0,0,.1); outline-offset: -1px; }
@media (prefers-color-scheme: dark) { .logos img, .post img, .hero .me, .browser img { outline-color: rgba(255,255,255,.1); } }
:root { --shadow-rest: 0 1px 2px rgba(0,0,0,.04); }

/* Worked-with tiles as on the Framer site: 20px radius, #ebebeb hairline, tilt alternates left/right */
.logos a { border-radius: 20px; }
.logos img { outline: 1px solid #ebebeb; outline-offset: -1px; }
@media (prefers-color-scheme: dark) { .logos img { outline-color: rgba(255,255,255,.08); } }
.logos li:nth-child(odd) { --tilt: -6deg; }
.logos li:nth-child(even) { --tilt: 6deg; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .logos li a:hover { transform: translateY(-6px) scale(1.2) rotate(var(--tilt)); }
  .logos li a:hover:active { transform: translateY(-6px) scale(1.15) rotate(var(--tilt)); }
  .logos a:hover .tip { transform: translate(-50%, 0) rotate(calc(-1 * var(--tilt))) scale(.84); }
  .logos li:first-child a:hover .tip { transform: translate(0, 0) rotate(calc(-1 * var(--tilt))) scale(.84); }
}
/* Ladder: the lowest step still fits its two lines, and the "now" badge sits clear above it */
.ladder li { min-height: 3.9rem; }
.ladder li.now::before { top: -2.4rem; }
@media (max-width: 640px) { .ladder li { min-height: 3.2rem; } .ladder li.now::before { top: -2.1rem; } }

/* ===== Build in public, after marclou.com ===== */
.stats { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: -0.4rem 0 1rem; color: var(--muted); font-size: var(--fs-label); }
.stats span { display: inline-flex; align-items: center; gap: 0.4rem; }
.stats .pin::before { content: ""; width: 0.9rem; height: 0.9rem; background: currentColor;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a7 7 0 0 0-7 7c0 5 7 13 7 13s7-8 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z"/></svg>') center / contain no-repeat; }
.stats .cash b { color: var(--ink); }

.subscribe { display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 0; padding: 1rem 1rem 1rem 1.25rem;
  border-radius: 1.2rem; background: var(--soft); max-width: 40rem; }
.subscribe p { margin: 0; font-size: var(--fs-body); line-height: 1.47; color: var(--muted); }
.subscribe p b { display: block; color: var(--ink); font-weight: 600; }
.subscribe a { flex: none; padding: 0.75rem 1.1rem; border-radius: 0.9rem; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none;
  transition: transform 160ms var(--ease-out), filter 160ms; }
.subscribe a:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) { .subscribe a:hover { filter: brightness(1.08); } }

.products { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } }
.product { display: block; padding: 1.25rem 1.25rem 1.1rem; border-radius: 1.4rem; background: var(--card); box-shadow: var(--shadow-lift); }
.product-top { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.5rem; }
.product-top img { width: 2.5rem; height: 2.5rem; border-radius: 0.7rem; object-fit: contain; }
.product-top h3 { flex: 1; margin: 0; font: 600 var(--fs-heading)/1.17 var(--text); }
.product p { font-size: var(--fs-body); opacity: 1; color: var(--muted); }
.badge { flex: none; padding: 0.3rem 0.6rem; border-radius: 99px; font-size: var(--fs-label); font-weight: 600; background: #e7f2fe; color: #1f6fc0; font-variant-numeric: tabular-nums; }
.badge.soft { background: var(--soft); color: var(--muted); font-weight: 600; }
.badge.off { background: var(--soft); color: var(--muted); }
.badge.sold { background: #fff3cf; color: #8a6200; }
.spark { position: relative; margin-top: 0.9rem; padding-left: 2.6rem; }
.spark svg { display: block; width: 100%; height: 4.4rem; overflow: visible; }
.spark polygon { fill: rgba(0,0,0,.06); }
.spark polyline { fill: none; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.spark .axis { position: absolute; left: 0; top: 0; bottom: 1.3rem; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.7rem; color: var(--muted); }
.spark .months { display: flex; justify-content: space-between; font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.product .more { margin-top: 0.75rem; }
@media (max-width: 640px) { .product { padding: 1.1rem; } .subscribe { flex-direction: column; align-items: stretch; text-align: left; } .subscribe a { text-align: center; } }
.subscribe .tg { flex: none; width: 2.75rem; height: 2.75rem; }
.subscribe p { flex: 1; }
.subscribe a { background: #1d1d1d; }
@media (prefers-color-scheme: dark) { .subscribe a { background: #fff; color: #1d1d1d; } }
@media (max-width: 640px) { .subscribe .tg { display: none; } }
/* Product card is one link to the product; chart sits at the bottom */
a.product { display: flex; flex-direction: column; align-items: stretch; color: var(--ink); text-decoration: none; transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), opacity 220ms; }
.product .name { flex: 1; font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }
.product .line { display: block; color: var(--muted); font-size: var(--fs-body); line-height: 1.47; margin-bottom: 0.4rem; }
.product .spark { margin-top: auto; padding-top: 0.6rem; }
.spark.empty { display: flex; align-items: center; justify-content: center; height: 5.6rem; margin-top: auto; padding: 0; border-radius: 0.9rem;
  background: repeating-linear-gradient(0deg, transparent 0 1.35rem, var(--line) 1.35rem calc(1.35rem + 1px)); color: var(--muted); font-size: var(--fs-label); }
.product.off { opacity: .6; }
@media (hover: hover) and (pointer: fine) {
  a.product:hover .name { color: var(--accent); }
}
a.product:active { transform: scale(0.98); }
/* Flat grey cards instead of shadows */
.product, a.product { background: var(--soft); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { a.product:hover { background: var(--soft-hover); } }
@media (prefers-color-scheme: dark) { @media (hover: hover) and (pointer: fine) { a.product:hover { background: var(--soft-hover); } } }
.spark.empty { background: rgba(0,0,0,.035); height: 4.8rem; }
@media (prefers-color-scheme: dark) { .spark.empty { background: rgba(255,255,255,.04); } }
.badge.soft, .badge.off { background: var(--card); }
.demo-note { margin: 1.5rem 0 0; padding: 0.6rem 0.9rem; border-radius: 0.7rem; background: #fff3cf; color: #8a6200; font-size: var(--fs-label); display: inline-block; }
/* Location: a small Brazil flag instead of the pin (emoji flags do not render on Windows) */
.stats .pin::before {
  width: 1.3rem; height: 0.9rem; border-radius: 0.15rem; mask: none; background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 20"><rect width="28" height="20" fill="%23009c3b"/><path d="M14 2.6 25.4 10 14 17.4 2.6 10z" fill="%23ffdf00"/><circle cx="14" cy="10" r="4.4" fill="%23002776"/><path d="M9.8 9.1c2.8-.5 5.8.1 8.3 1.6" stroke="%23fff" stroke-width=".9" fill="none"/></svg>') center / cover no-repeat;
  box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.stats .pin::before { background: url('/assets/img/flag-br.svg') center / cover no-repeat; border-radius: 0.18rem; }
.subscribe a { transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .subscribe a:hover { background: #3a3a3a; filter: none; transform: translateY(-1px); }
}
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) { .subscribe a:hover { background: #ddd; } }
.subscribe a:active { transform: scale(0.96); }
/* Logo hairline: translucent, so it darkens each icon's own colour instead of drawing grey on top */
.logos img { outline: 1px solid rgba(0,0,0,.08); outline-offset: -1px; }
@media (prefers-color-scheme: dark) { .logos img { outline-color: rgba(255,255,255,.1); } }
.home section.channel { margin-top: -2rem; }
.channel .subscribe { margin: 0 auto; }
.home section.worked { margin-top: 2.25rem; }
.home section.hero { margin-bottom: 0; } .home section.worked { margin-top: 1.5rem; }
.home section.worked { margin-top: 2.5rem; } .home section.channel { margin-top: 3rem; }

/* MRR chart: glued to the card's bottom and sides, no axes; colour follows the trend */
a.product { overflow: hidden; position: relative; }
.product .spark { position: relative; display: block; margin: auto -1.25rem -1.1rem; padding: 0; height: 5.5rem; cursor: crosshair; }
.product .spark svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spark.up { --c: #7cc142; --fill: rgba(124,193,66,.18); }
.spark.down { --c: #f0a030; --fill: rgba(240,160,48,.18); }
.spark polygon { fill: var(--fill); }
.spark polyline { stroke: var(--c); }
.spark .dot { position: absolute; width: 0.7rem; height: 0.7rem; margin: -0.35rem 0 0 -0.35rem; border-radius: 50%; background: var(--card); border: 2px solid var(--c); opacity: 0; pointer-events: none; transition: opacity 120ms; }
.spark .tipm { position: absolute; bottom: calc(100% + 0.3rem); white-space: nowrap; padding: 0.3rem 0.55rem; border-radius: 0.5rem; background: #1d1d1d; color: #fff; font-size: var(--fs-label); font-weight: 600; opacity: 0; pointer-events: none; transition: opacity 120ms; }
.spark.on .dot, .spark.on .tipm { opacity: 1; }
.spark.empty { margin: auto -1.25rem -1.1rem; border-radius: 0; height: 5.5rem; }
/* Badge carries the only number: salad green when growing, amber when slipping */
.badge.up { background: #e6f5d6; color: #3f7a12; }
.badge.down { background: #fff0d6; color: #a35b00; }
@media (max-width: 640px) { .product .spark, .spark.empty { margin: auto -1.1rem -1.1rem; } }
/* Charts are always blue; only the badge number carries the trend colour */
.spark { --c: #6b6b6b; --fill: rgba(0,0,0,.06); }
.spark polygon { fill: var(--fill); }
.spark polyline { stroke: var(--c); }
.badge.up { background: #e6f5d6; color: #3f7a12; }
.badge.flat { background: #fff6cc; color: #8a6d00; }
.badge.down { background: #ffe9d1; color: #b25a00; }
.badge.fall { background: #ffe0dd; color: #c0291b; }

/* ===== Work grid, after kons.design: full-bleed bento, 8px gaps and radii, mono captions ===== */
.works { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: 26rem; gap: 8px;
  width: 100vw; margin-left: calc(50% - 50vw); padding: 0 8px; }
.work { position: relative; grid-column: span var(--span); margin: 0; border-radius: 8px; overflow: hidden; background: var(--soft); }
.work > img { width: 100%; height: 100%; object-fit: cover; }
.work > img.contain { object-fit: contain; background: #fff; }
.work figcaption { position: absolute; left: 12px; right: 12px; bottom: 10px; display: flex; justify-content: space-between; gap: 1rem;
  font: 400 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: 0.02em; text-transform: uppercase; color: #6b6b6b; pointer-events: none; }
.work figcaption span { background: rgba(255,255,255,.82); padding: 3px 6px; border-radius: 4px; backdrop-filter: blur(6px); }
.work .shot { position: absolute; inset: 2.5rem 2.5rem 0; border-radius: 10px 10px 0 0; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 12px 30px rgba(0,0,0,.08); }
.work .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.work .shot.wide { inset: 2.5rem 12% 0; }
.work .capys { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 2rem 1rem 3rem; }
.work .capys img { width: 32%; height: auto; }
.work .icons { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(3, 1fr); place-items: center; padding: 2rem 2.5rem 3rem; }
.work .icons img { width: 70%; max-width: 6rem; transition: transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .work .icons img:hover { transform: scale(1.15) rotate(-6deg); } }
@media (max-width: 900px) { .works { grid-auto-rows: 20rem; } .work { grid-column: span 12; } }
@media (prefers-color-scheme: dark) { .work figcaption { color: #f2f2f2; } .work figcaption span { background: rgba(0,0,0,.55); } .work > img.contain { background: #fff; } }
/* Products: grey cards on the page, like the service cards */
#projects h2 { margin-bottom: 1.25rem; }
.product, a.product { background: var(--soft); }
@media (hover: hover) and (pointer: fine) { a.product:hover { background: var(--soft); } }
.badge.soft, .badge.off { background: var(--card); }
.spark.empty { background: var(--card); }
/* The full-bleed work grid uses 100vw; never let it add a sideways scroll */
html, body { overflow-x: clip; }
/* Cards on the grey band: the same translucent hairline as the logo tiles */
/* Empty chart: a dashed baseline on the white card, not a grey slab that reads as the band */
.spark.empty { background: none; border-top: 1px dashed var(--line); height: 4rem; align-items: center; }
.product .spark.empty { display: flex; justify-content: center; align-items: center; color: var(--muted); font-size: var(--fs-label); cursor: default; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.sec-head h2 { margin: 0 !important; }
.sec-head .total { margin: 0; color: var(--muted); font-size: var(--fs-body); }
.sec-head .total b { color: var(--ink); font-size: var(--fs-heading); font-weight: 600; margin-left: 0.35rem; }

/* ===== Living work tiles ===== */
@media (prefers-reduced-motion: no-preference) {
  .work { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out) var(--d, 0ms), transform 600ms var(--ease-out) var(--d, 0ms); }
  .work.in { opacity: 1; transform: none; }
  .work-in > img, .work .shot img { transition: transform 700ms var(--ease-out), object-position 6s ease-in-out; }
  .work .icons img { animation: bob 3.2s ease-in-out infinite; }
  .work .icons img:nth-child(3n+2) { animation-delay: -1.1s; }
  .work .icons img:nth-child(3n) { animation-delay: -2.2s; }
}
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(-3deg); } }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .work:hover .work-in > img { transform: scale(1.03); }
  .work:hover .shot img { object-position: bottom; }
  .work .icons img:hover { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) { .work { opacity: 1; } }

/* ===== Products, variant B: brand-colour tiles, mascot art, closed products as a quiet row ===== */
.product .art { display: none; }
.products.brand { grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: 1rem; }
.products.brand a.product { position: relative; min-height: 17rem; background: var(--brand); color: #fff; outline: none; padding: 1.5rem 1.5rem 1.1rem; }
.products.brand .art { display: block; position: absolute; right: -1.2rem; bottom: 2.2rem; width: 9.5rem; height: auto; pointer-events: none; transition: transform 300ms var(--ease-out); }
.products.brand .product-top img { background: rgba(255,255,255,.95); padding: 0.25rem; }
.products.brand .name { color: #fff; }
.products.brand .line { color: rgba(255,255,255,.78); max-width: 70%; }
.products.brand .badge { background: #fff; color: #1d1d1d; display: inline-flex; align-items: center; gap: 0.4rem; }
.products.brand .badge::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #9a9a9a; }
.products.brand .badge.up::before { background: #4caf50; }
.products.brand .badge.down::before { background: #f59e0b; }
.products.brand .badge.fall::before { background: #ef4444; }
.products.brand .spark { --c: #fff; --fill: rgba(255,255,255,.16); }
.products.brand .spark .dot { background: var(--brand); border-color: #fff; }
.products.brand .spark.empty { border-top-color: rgba(255,255,255,.3); color: rgba(255,255,255,.7); }
@media (hover: hover) and (pointer: fine) {
  .products.brand a.product:hover { background: var(--brand); transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,.14); }
  .products.brand a.product:hover .name { color: #fff; }
  .products.brand a.product:hover .art { transform: translateY(-6px) rotate(-4deg); }
}
.graves { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 1.25rem 0 0; color: var(--muted); font-size: var(--fs-label); }
.graves > span { margin-right: 0.25rem; }
.grave { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.7rem 0.35rem 0.35rem; border-radius: 99px; background: var(--card); color: var(--muted); text-decoration: none; outline: 1px solid rgba(0,0,0,.06); }
.grave img { width: 1.4rem; height: 1.4rem; border-radius: 0.4rem; filter: grayscale(1); opacity: .7; }
.grave b { font-weight: 600; color: var(--ink); opacity: .7; }
.grave span { font-variant-numeric: tabular-nums; }
.products.brand .spark, .products.brand .spark.empty { margin: auto -1.5rem -1.1rem; }

/* ===== Products, variant C: ticker board ===== */
.board { background: var(--card); border-radius: 1.2rem; outline: 1px solid rgba(0,0,0,.06); overflow: hidden; }
.b-row { display: grid; grid-template-columns: 2.6rem 1fr 8rem 9rem; align-items: center; gap: 1.1rem; padding: 1rem 1.25rem; color: var(--ink); text-decoration: none; transition: background-color 160ms; }
.b-row + .b-row { border-top: 1px solid var(--line); }
.b-row img { width: 2.6rem; height: 2.6rem; border-radius: 0.7rem; object-fit: contain; }
.b-name b { display: block; font-size: var(--fs-body); }
.b-name span { display: block; color: var(--muted); font-size: var(--fs-label); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini { width: 8rem; height: 1.75rem; }
.mini polyline { fill: none; stroke: var(--accent); stroke-width: 1.75; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mini.none { display: block; width: 8rem; height: 1px; background: repeating-linear-gradient(90deg, var(--line) 0 4px, transparent 4px 8px); }
.b-right { text-align: right; font-variant-numeric: tabular-nums; }
.b-mrr { display: block; font: 600 1.15rem/1.2 ui-monospace, "SF Mono", Menlo, monospace; }
.b-mrr.soft, .b-mrr.off { font: 400 var(--fs-label)/1.2 var(--text); color: var(--muted); }
.b-right em { font-style: normal; font: 500 0.8rem/1 ui-monospace, "SF Mono", Menlo, monospace; }
.b-right em.up { color: #2e8b2e; } .b-right em.dn { color: #d03b2b; }
.b-row.off { opacity: .55; }
@media (hover: hover) and (pointer: fine) { .b-row:hover { background: var(--soft); } }
@media (max-width: 640px) { .b-row { grid-template-columns: 2.4rem 1fr auto; } .b-row .mini { display: none; } }

/* ===== Products, variant D: home screen ===== */
.phone { display: flex; justify-content: center; }
.screen { display: grid; grid-template-columns: repeat(4, 6.5rem); gap: 2rem 1.75rem; padding: 2.5rem 2.75rem; border-radius: 2.5rem;
  background: linear-gradient(160deg, #cfe4ff 0%, #f6d9ff 55%, #ffe9cf 100%); }
.app { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: #1d1d1d; text-decoration: none; }
.ico { position: relative; width: 5.5rem; height: 5.5rem; border-radius: 1.35rem; background: #fff; display: grid; place-items: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 18px rgba(0,0,0,.08); transition: transform 240ms var(--ease-out); }
.ico > img { width: 72%; height: 72%; object-fit: contain; }
.lbl { font-size: var(--fs-label); font-weight: 400; color: #1d1d1d; }
.notif { position: absolute; top: -0.55rem; right: -0.8rem; padding: 0.2rem 0.5rem; border-radius: 99px; color: #fff; font-size: var(--fs-label); font-weight: 600; background: #ff3b30; box-shadow: 0 0 0 2px #fff; font-variant-numeric: tabular-nums; }
.notif.down { background: #ff9500; } .notif.up { background: #34c759; }
.fold { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem; width: 70%; height: 70%; }
.fold img { width: 100%; border-radius: 0.35rem; filter: grayscale(1); opacity: .6; }
.folder .ico { background: rgba(255,255,255,.55); backdrop-filter: blur(8px); }
.app-tip { position: absolute; bottom: calc(100% + 0.8rem); left: 50%; width: 15rem; padding: 0.85rem 0.95rem 0; border-radius: 1rem; background: #1d1d1d; color: rgba(255,255,255,.7);
  font-size: var(--fs-label); line-height: 1.35; overflow: hidden; opacity: 0; pointer-events: none; transform: translate(-50%, 6px) scale(.97); transform-origin: bottom center; transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); z-index: 5; }
.app-tip b { display: block; color: #fff; font-size: var(--fs-label); margin-bottom: 0.2rem; }
.app-tip .spark { margin: 0.6rem -0.95rem 0; height: 3.5rem; --c: #cfcfcf; --fill: rgba(255,255,255,.12); }
.folder .app-tip { padding-bottom: 0.85rem; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .app:hover .ico { transform: translateY(-4px) scale(1.06); }
  .app:hover .app-tip { opacity: 1; transform: translate(-50%, 0) scale(1); }
}
.app:active .ico { transform: scale(0.96); }
@media (max-width: 640px) { .screen { grid-template-columns: repeat(3, 5.5rem); gap: 1.5rem 1rem; padding: 1.75rem 1.25rem; } .ico { width: 4.6rem; height: 4.6rem; } }
/* Fliers: no rise-in; a white frame and a soft shadow while they travel, captions hidden until they land */
.work.flier { transition: box-shadow 200ms; will-change: transform; transform-origin: center; }
.work.flier.flying { z-index: 3; box-shadow: 0 0 0 8px #fff, 0 2px 6px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12); }
.work.flier.flying figcaption { opacity: 0; }
.work figcaption { transition: opacity 200ms; }
.works-sec { overflow: visible; }
/* LinkedIn tile in the header: lifts and tilts on hover, presses in on click */
.site .li { transition: transform 220ms var(--ease-out), filter 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .site .li:hover { transform: translateY(-2px) rotate(-8deg) scale(1.1); filter: drop-shadow(0 6px 10px rgba(10,102,194,.35)); }
}
.site .li:active { transform: scale(0.96); }

/* ===== Centred hero wrapped by the work stacks (kons.design) ===== */
.hero { display: block; margin: 0 !important; min-height: calc(100vh - 6.6rem); display: flex; align-items: center; justify-content: center; padding: 3rem 0 4rem; }
.hero-col { width: min(40rem, 100%); }
.hero-col .me { width: 4.5rem; height: 4.5rem; border-radius: 1.1rem; transform: rotate(-5deg); margin: 0 0 1.5rem; box-shadow: var(--shadow-lift); }
.hero-col h1 { font-size: var(--fs-hero); }
.hero-col .eyebrow { margin: 0 0 0.5rem; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.hero-col .logos { margin-top: 2rem; }
.hero-col .logos a { width: 4.25rem; height: 4.25rem; border-radius: 17px; }
.hero-col .subscribe { margin-top: 2rem; }
.home section.works-sec { margin-top: 0; }
.work.flier { transform-origin: 0 0; }
.work.flier.flying { box-shadow: 0 0 0 8px #fff, 0 2px 6px rgba(0,0,0,.06), 0 18px 40px rgba(0,0,0,.12); }
@media (max-width: 64rem) { .hero { min-height: 0; padding: 2.5rem 0 3rem; } }
.hero-col .logos { gap: 0.65rem; flex-wrap: nowrap; } @media (max-width: 640px) { .hero-col .logos { flex-wrap: wrap; } }
/* Hero order: photo, city, title; the channel card sits apart, near the bottom of the first screen */
.hero-col .stats { margin: 0 0 0.75rem; }
.hero-col .subscribe { margin-top: 4.5rem; }
.me-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; } .me-row .me { margin: 0 !important; } .me-row .stats { margin: 0 !important; }

/* ===== Essays from the channel: hand-drawn ink illustrations, wider than the text ===== */
.essay article header { margin-bottom: 2rem; }
/* Section headings inside posts and cases: title size, so they stand apart from 17px body text */
article h2 { font: 600 var(--fs-title)/1.1 var(--text); letter-spacing: -0.015em; }
figure.ink { margin: 2.5rem 0; }
/* Marker illustrations sit in the page: no frame, and multiply drops the off-white paper into the page white */
figure.ink img { width: 100%; mix-blend-mode: multiply; }
@media (min-width: 64rem) { figure.ink { margin-left: -6rem; margin-right: -6rem; } }
@media (prefers-color-scheme: dark) { figure.ink img { filter: brightness(.92); } }
.essay .source { margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--fs-label); }
/* Channel card sits at the bottom edge of the first screen */
@media (min-width: 64.01rem) {
  .hero { position: relative; min-height: calc(100vh - 6.6rem); padding-bottom: 8rem; }
  .hero-col .subscribe { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: min(40rem, calc(100% - 2.5rem)); margin: 0; }
}
/* Kons look: fliers float in a white frame with no shadow; the grid tucks up under the hero by the same 35vh the hero slides away */
.work.flier.flying { box-shadow: 0 0 0 8px #fff; }
.me-row { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
/* Work tiles: 1px translucent edge so white tiles do not dissolve into the page */
.work::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); pointer-events: none; z-index: 2; }
@media (prefers-color-scheme: dark) { .work::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); } }

/* Work captions in the site text font; the client label opens the same tooltip as the worked-with logos */
.work figcaption { font: 400 var(--fs-label)/1.3 var(--text); letter-spacing: 0; text-transform: none; color: #3a3a3a; align-items: flex-end; }
.work figcaption > span, .work .client { background: rgba(255,255,255,.88); padding: 4px 8px; border-radius: 6px; backdrop-filter: blur(6px); }
.work .client { position: relative; color: inherit; text-decoration: none; pointer-events: auto; transition: background-color 160ms; }
.work .client .tip {
  position: absolute; bottom: calc(100% + 0.6rem); right: 0; width: 16rem; text-align: left;
  background: #1d1d1d; color: #fff; border-radius: 1rem; padding: 0.85rem 1rem; font: 400 var(--fs-label)/1.3 var(--text);
  box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 8px 16px rgba(0,0,0,.12), 0 20px 36px rgba(0,0,0,.14);
  opacity: 0; pointer-events: none; transform: translateY(6px) scale(.97); transform-origin: bottom right;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out); z-index: 5;
}
.work .client .tip b { display: block; font-size: var(--fs-label); }
.work .client .tip em { display: block; font-style: normal; color: rgba(255,255,255,.6); margin: 0.1rem 0 0.4rem; font-size: var(--fs-label); }
.work .client .tip::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.8rem; }
.work .client:hover, .work .client:focus-visible { background: #fff; }
.work .client:hover .tip, .work .client:focus-visible .tip { opacity: 1; transform: none; pointer-events: auto; }
.work { overflow: visible; }
/* content clips inside .work-in so the tile itself can let the client tooltip out */
.work-in { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; display: block; }
.work-in > img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-in > img.contain { object-fit: contain; background: #fff; }
@media (prefers-color-scheme: dark) { .work figcaption { color: #f2f2f2; } .work figcaption > span, .work .client { background: rgba(0,0,0,.6); } }
/* Whole channel card is the link; hovering anywhere lights up its button */
a.subscribe { color: inherit; text-decoration: none; transition: background-color 160ms var(--ease-out); }
.subscribe .sub-btn { flex: none; padding: 0.75rem 1.1rem; border-radius: 0.9rem; background: #1d1d1d; color: #fff; font-weight: 600;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  a.subscribe:hover { background: var(--soft-hover); }
  a.subscribe:hover .sub-btn { background: #3a3a3a; transform: translateY(-1px); }
}
a.subscribe:active .sub-btn { transform: scale(0.96); }
@media (prefers-color-scheme: dark) { .subscribe .sub-btn { background: #fff; color: #1d1d1d; } a.subscribe:hover .sub-btn { background: #ddd; } }
@media (max-width: 640px) { .subscribe .sub-btn { text-align: center; } }
/* Photo: a bit larger; on hover it straightens, lifts and tilts the other way like a picked-up card */
.hero-col .me { width: 6rem; height: 6rem; border-radius: 1.4rem; transition: transform 320ms cubic-bezier(.3,.7,.2,1.4), box-shadow 320ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .hero-col .me:hover { transform: rotate(4deg) translateY(-4px) scale(1.06); box-shadow: var(--shadow-lift); }
}
.me-row { gap: 1.25rem; }
/* City is a Google Maps link */
.stats a.pin { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; transition: color 160ms; }
@media (hover: hover) and (pointer: fine) { .stats a.pin:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 0.2em; } }
.works { position: relative; }
/* Channel card back in the flow: 80px under the logos */
@media (min-width: 64.01rem) {
  .hero { padding-bottom: 4rem; }
  .hero-col .subscribe { position: static; transform: none; width: auto; margin-top: 80px; }
}
.hero-col .subscribe { margin-top: 80px; }
.hero-col { position: static; } .hero { position: relative; }
/* Muted fliers: a white veil over the tile that fades out as it flies into the grid */

/* Accent is grey now: links and hovers go darker grey, not blue */
:root { --link: #1d1d1d; }
a { text-decoration-color: rgba(0,0,0,.3); }
@media (hover: hover) and (pointer: fine) { .site nav a:hover, .lang:hover, .stats a.pin:hover, a.product:hover .name, .post:hover b { color: var(--accent); } }
.site nav a[aria-current] { color: #6b6b6b; }
@media (prefers-color-scheme: dark) { :root { --accent: #9a9a9a; --link: #f2f2f2; } a { text-decoration-color: rgba(255,255,255,.35); } }
@media (max-width: 64rem) { .hero { padding-bottom: 5.5rem; } }

/* Typography: no lonely last words in paragraphs, even line lengths in headings */
p, li, figcaption, .sub, .line, .tip, .lead { text-wrap: pretty; }
h1, h2, h3, .post b, .name { text-wrap: balance; }
html { font-kerning: normal; font-feature-settings: "kern", "liga", "calt"; }

/* ===== Services: two service cards stacked with the channel card, same look; the stack moves as one ===== */
.hero-col .cta-stack { display: grid; gap: 0.6rem; margin-top: 80px; }
.hero-col .cta-stack .subscribe { margin: 0; }
.hero-col .tracks { display: grid; gap: 0.6rem; }
@media (min-width: 40rem) { .hero-col .tracks { grid-template-columns: 1fr 1fr; } }
.track { align-items: flex-start; }
@media (max-width: 640px) { .subscribe.track { flex-direction: row; align-items: flex-start; } }
.track p { align-self: stretch; display: flex; flex-direction: column; }
.track .price { margin-top: auto; padding-top: 0.6rem; color: var(--ink); font-weight: 600; }
.track::after { content: ""; flex: none; align-self: center; width: 1.1rem; height: 1.1rem; background: var(--muted);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M9 5l7 7-7 7"/></svg>') center / contain no-repeat;
  transition: transform 220ms var(--ease-out), background-color 160ms; }
@media (hover: hover) and (pointer: fine) { .track:hover::after { transform: translateX(3px); background: var(--ink); } }
/* Cards everywhere move the same way: the hovered one grows, its siblings shrink back and fade.
   Logo tiles and product icons keep their own tilt-and-grow. */
.cta-stack .subscribe, .products .product, .posts .post, .cases .case {
  transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), background-color 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .cta-stack .subscribe:hover, .products .product:hover, .posts .post:hover, .cases .case:hover { transform: scale(1.03); }
  .cta-stack:has(.subscribe:hover) .subscribe:not(:hover), .products:has(.product:hover) .product:not(:hover),
  .posts:has(.post:hover) .post:not(:hover), .cases:has(.case:hover) .case:not(:hover) { transform: scale(0.97); opacity: 0.6; }
}

/* ===== Offer pages (/design, /ai): six sizes, two weights, 8px spacing ===== */
:root {
  --fs-title: 40px; --fs-heading: 24px; --fs-lead: 24px; --fs-body: 17px; --fs-label: 14px;
  --space-1: 8px; --space-2: 16px; --space-3: 24px; --space-4: 40px; --space-5: 64px; --space-6: 120px;
  --section: var(--space-6); --fs-hero: 72px;
}
@media (max-width: 640px) {
  :root { --fs-title: 28px; --fs-heading: 21px; --fs-lead: 21px; --fs-hero: 40px; --section: calc(var(--space-5) + var(--space-1)); }
}
.services { max-width: calc(52rem + 2 * var(--space-4)); padding: 0 var(--space-4) var(--space-6);
  color: var(--ink); font: 400 var(--fs-body)/1.47 var(--text); }
.services b, .services strong { font-weight: 600; }
.services p { margin: 0 0 var(--space-2); }
.services ul { margin: 0; }
.services li { margin: 0 0 var(--space-1); }
.services section { margin: var(--section) 0; }
.services h2 { font: 600 var(--fs-title)/1.1 var(--text); letter-spacing: -0.015em; margin: 0 0 calc(2 * var(--space-2)); }
.services .btn { padding: calc(1.5 * var(--space-1)) var(--space-3); font: 600 var(--fs-body)/1.47 var(--text); }

.services .s-hero { margin: var(--space-5) 0; }
.services #offers { margin-top: var(--space-5); }
.s-hero h1 { margin: 0 0 var(--space-3); max-width: 48rem; font: 600 var(--fs-hero)/1.05 var(--text); letter-spacing: -0.025em; text-align: left; }
.s-hero .sub { margin: 0; max-width: 40rem; font-size: var(--fs-lead); line-height: 1.38; color: var(--muted); }
/* Apple-style hero: eyebrow, a big tight headline, grey lead with key words in ink, figures with a label above and a caption below */
.s-hero .eyebrow { margin: 0 0 var(--space-2); font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }
.s-hero .sub em { font-style: normal; color: var(--ink); }
.s-stats { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); margin-top: var(--space-5); }
.s-stats p { display: flex; flex-direction: column; margin: 0; }
.s-stats b { margin: 4px 0; font: 600 var(--fs-title)/1.1 var(--text); letter-spacing: -0.015em; }
.services .avail { display: inline-flex; align-items: center; gap: var(--space-1); margin: 0 0 var(--space-3); padding: var(--space-1) var(--space-2); border-radius: 99px;
  background: var(--soft); font: 600 var(--fs-label)/1.3 var(--text); color: var(--muted); }
.avail::before { content: ""; width: var(--space-1); height: var(--space-1); border-radius: 50%; background: currentColor; }
.avail.on { color: #3f6212; background: #f0fdd4; }
.avail.on::before { background: #65a30d; }
@media (prefers-color-scheme: dark) { .avail.on { color: #d9f99d; background: #2a3a0c; } .avail.on::before { background: #a3e635; } }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.o-cta { display: flex; flex-wrap: wrap; gap: calc(1.5 * var(--space-1)); margin: calc(2 * var(--space-2)) 0 0; }

.offer { --pick: #1f6fc0; --pick-bg: #eef6ff; border-radius: 1.2rem; background: var(--soft); margin-bottom: calc(1.5 * var(--space-1));
  interpolate-size: allow-keywords; transition: background-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out); }
@media (prefers-color-scheme: dark) { .offer { --pick: #6fb3ff; --pick-bg: #14243a; } }
/* The open offer is the one you are reading: blue tint, blue price, blue pay button */
.offer[open] { background: var(--pick-bg); }
.offer[open] .o-price { color: var(--pick); }
.offer[open] .o-cta .btn:not(.ghost) { background: var(--pick); color: #fff; }
@media (prefers-color-scheme: dark) { .offer[open] .o-cta .btn:not(.ghost) { color: #0e0e0e; } }
.offer[open] .btn.ghost { background: var(--card); }
/* Open and close slide; browsers without interpolate-size just snap */
.offer::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.offer[open]::details-content { height: auto; }
@media (prefers-reduced-motion: reduce) { .offer, .offer::details-content { transition: none; } }
.offer summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: var(--space-1) var(--space-2);
  padding: var(--space-3); cursor: pointer; list-style: none; position: relative; }
.offer summary::-webkit-details-marker { display: none; }
/* Chevron points down when closed and flips up when open; its box is one title line tall */
.offer summary::after { content: ""; position: absolute; right: var(--space-3); top: var(--space-3); width: 18px; height: calc(var(--fs-heading) * 1.17); background: var(--muted);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9l7 7 7-7"/></svg>') center / 18px no-repeat;
  transition: transform 320ms var(--ease-out), background-color 160ms; }
.offer[open] summary::after { transform: rotate(180deg); background: var(--pick); }
.o-name { font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }
/* Name and price keep clear of the chevron; the promise below runs full width */
.o-name, .o-price { margin-right: var(--space-4); }
.o-price { font: 600 var(--fs-lead)/1.38 var(--text); color: var(--muted); font-variant-numeric: tabular-nums; }
.o-body { padding: var(--space-1) var(--space-3) var(--space-3); }
.o-promise { flex-basis: 100%; max-width: 40rem; font: 400 var(--fs-lead)/1.38 var(--text); color: var(--muted); }
.offer[open] .o-promise { color: var(--ink); }
.o-cols { display: grid; gap: var(--space-3) var(--space-4); }
@media (min-width: 40rem) { .o-cols { grid-template-columns: 1fr 1fr; } }
.o-cols h3 { margin: 0 0 var(--space-1); font: 600 var(--fs-label)/1.3 var(--text); text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.o-cols ul { margin: 0; padding-left: 1.2em; }
.addon { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); margin-top: var(--space-3); padding: var(--space-2) var(--space-3);
  border-radius: 1rem; background: var(--card); }
/* Inverted against the tinted open offer: white card, grey button */
.offer[open] .addon .btn.ghost { background: var(--soft); }
.addon p { flex: 1 1 18rem; margin: 0; color: var(--muted); }
.addon b { display: block; color: var(--ink); }

.services .flow { margin: var(--space-3) 0 0; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.cases { display: grid; gap: calc(1.5 * var(--space-1)); }
@media (min-width: 40rem) { .cases { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); } }
/* Four cases read as 2×2, not 3 + 1. */
@media (min-width: 40rem) { .cases:has(> .case:nth-child(4)) { grid-template-columns: repeat(2, 1fr); } }
.case { display: block; padding: var(--space-3); border-radius: 1.2rem; background: var(--soft); color: var(--ink); text-decoration: none; transition: background-color 160ms var(--ease-out); }
/* Grey cards like the home ones: no shadow, a shade darker on hover */
@media (hover: hover) and (pointer: fine) { .offer:not([open]):hover, .case:hover { background: var(--soft-hover); } }
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) { .offer:not([open]):hover, .case:hover { background: var(--soft-hover); } }
.case img { width: calc(100% + 2 * var(--space-3)); max-width: none; margin: calc(-1 * var(--space-3)) calc(-1 * var(--space-3)) var(--space-3); border-radius: 1.2rem 1.2rem 0 0; aspect-ratio: 16 / 10; object-fit: cover; }
.case .c-role { display: block; font: 600 var(--fs-label)/1.3 var(--text); color: var(--muted); }
.case b { display: block; margin: var(--space-1) 0; font: 600 var(--fs-heading)/1.17 var(--text); letter-spacing: -0.01em; }
.case p { margin: 0; color: var(--muted); }
.case .c-result { margin-top: var(--space-2); color: var(--ink); font-weight: 600; }
.todo { margin-top: 0.6rem !important; padding: 0.3rem 0.6rem; border: 1.5px dashed #e0a100; border-radius: 0.5rem; color: #8a6200 !important; font-weight: 600; }
.services .todo { margin-top: var(--space-2) !important; padding: 4px var(--space-1); font: 600 var(--fs-label)/1.3 var(--text); }

.faq details { border-top: 1px solid var(--line); padding: var(--space-2) 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: var(--space-1) 0 0; color: var(--muted); }
.s-final p { max-width: 40rem; color: var(--muted); font-size: var(--fs-lead); line-height: 1.38; }
@media (max-width: 640px) { .services { padding: 0 var(--space-3) var(--space-5); } .services .s-hero { margin-top: var(--space-4); } }
/* Products open a new chapter, Apple-style: centred headline and subline, cards below */
#projects .sec-head { flex-direction: column; align-items: center; gap: var(--space-1); text-align: center; margin-bottom: var(--space-4); }
#projects .sec-head h2 { font-size: var(--fs-hero); line-height: 1.05; letter-spacing: -0.025em; }
#projects .sec-sub { margin: 0; font-size: var(--fs-lead); line-height: 1.38; color: var(--muted); }

/* Offers are full-width, so they grow less; the open offer never steps back */
.offer { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out), background-color 280ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .offer:not([open]):hover { transform: scale(1.015); }
}
/* While one offer is open the closed ones step back a little; hovering one brings it back to full size */
@media (prefers-reduced-motion: no-preference) {
  #offers:has(.offer[open]) .offer:not([open]) { transform: scale(0.98); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  #offers:has(.offer[open]) .offer:not([open]):hover { transform: none; }
}

/* ===== Motion, one system: hover, open, appear. Buttons answer the press with scale .96 (above) ===== */
/* Buttons: primary goes a step lighter, ghost a step darker, the text keeps its colour */
:root { --btn-hover: #3a3a3a; --ghost-hover: var(--soft-hover); --pick-hover: #1a5fa6; }
@media (prefers-color-scheme: dark) { :root { --btn-hover: #ddd; --ghost-hover: var(--soft-hover); --pick-hover: #94c6ff; } }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-hover); color: var(--bg); }
  .btn.ghost:hover, .contacts a:hover, .offer[open] .btn.ghost:hover, .offer[open] .addon .btn.ghost:hover { background: var(--ghost-hover); color: var(--ink); }
  .offer[open] .o-cta .btn:not(.ghost):hover { background: var(--pick-hover); }
}

/* Header menu: the trigger greys like the links, the panel grows down from under it */
.site .drop button { transition: color 160ms var(--ease-out); }
.site .drop svg { transition: transform 220ms var(--ease-out); }
.site .menu { transform-origin: top center; transform: translate(-50%, -4px) scale(.97);
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out), visibility 160ms; }
.site .drop:hover .menu, .site .drop:focus-within .menu { transform: translate(-50%, 0) scale(1); }
.site .menu a { transition: background-color 160ms var(--ease-out); }
.site .menu a:hover { background: var(--ghost-hover); }
@media (hover: hover) and (pointer: fine) { .site .drop:hover button { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) {
  .site .menu, .site .drop:hover .menu, .site .drop:focus-within .menu { transform: translate(-50%, 0); }
  .site .drop svg { transition: none; }
}

/* FAQ opens like the offers: the answer slides, the chevron flips */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: clip; transition: height 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq details p { margin: 0; padding-top: var(--space-1); }
.faq summary { position: relative; padding-right: var(--space-4); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 1.47em; background: var(--muted);
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M5 9l7 7 7-7"/></svg>') center / 18px no-repeat;
  transition: transform 320ms var(--ease-out), background-color 160ms; }
.faq details[open] summary::after { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover::after { background: var(--ink); } }
@media (prefers-reduced-motion: reduce) { .faq details::details-content, .faq summary::after { transition: none; } }

/* Sections below the fold rise into place once, like the work tiles; script adds .rise only to what starts off screen */
@media (prefers-reduced-motion: no-preference) {
  .rise { opacity: 0; transform: translateY(16px); transition: opacity 500ms var(--ease-out), transform 600ms var(--ease-out); }
  .rise.in { opacity: 1; transform: none; }
}

/* FAQ rows read as pressable: the whole question row tints on hover, the text stays on the column edge */
.faq details { padding: 0; }
.faq summary { margin: 0 calc(-1 * var(--space-2)); padding: var(--space-2) var(--space-5) var(--space-2) var(--space-2); border-radius: 12px;
  transition: background-color 160ms var(--ease-out); }
.faq summary::after { right: var(--space-2); top: var(--space-2); }
.faq details p { padding: 0 0 var(--space-2); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { background: var(--soft); } }
/* The open offer's header still closes it: hovering it deepens the tint and the chevron */
.offer { --pick-bg-hover: #e2eefc; }
@media (prefers-color-scheme: dark) { .offer { --pick-bg-hover: #1a3050; } }
@media (hover: hover) and (pointer: fine) {
  .offer[open]:has(> summary:hover) { background: var(--pick-bg-hover); }
  .offer[open] summary:hover::after { background: var(--pick-hover); }
}

/* Footer: copyright left, where I live right, with the flag */
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-1) var(--space-3); }
.foot .pin { display: inline-flex; align-items: center; gap: 0.4rem; color: inherit; text-decoration: none; transition: color 160ms var(--ease-out); }
.foot .pin::before { content: ""; width: 1.3rem; height: 0.9rem; border-radius: 0.18rem; background: url('/assets/img/flag-br.svg') center / cover no-repeat; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
@media (hover: hover) and (pointer: fine) { .foot .pin:hover { color: var(--ink); } }

/* Care plan add-on: a switch above the pay button; switched on, the pay button includes the plan */
label.addon { cursor: pointer; margin: var(--space-3) 0 0; }
.services .addon + .o-cta { margin-top: var(--space-3); }
.o-cta .with-care, .offer:has(.addon .switch:checked) .o-cta .solo { display: none; }
.offer:has(.addon .switch:checked) .o-cta .with-care { display: inline-block; }
.switch { appearance: none; flex: none; position: relative; width: 51px; height: 31px; margin: 0 0 0 auto; border-radius: 99px; background: #d4d4d4; cursor: pointer;
  transition: background-color 220ms var(--ease-out); }
.switch::before { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.12); transition: transform 220ms var(--ease-out); }
.switch:checked { background: #65a30d; }
.switch:checked::before { transform: translateX(20px); }
.switch:focus-visible { outline: 2px solid #65a30d; outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .switch { background: #3a3a3a; } }
@media (prefers-reduced-motion: reduce) { .switch, .switch::before { transition: none; } }

/* Dubl article: doubl.one brand tokens (cobalt, ivory, orange, ink) for figures only, like the Bora colours in the Bora article */
body.theme-dubl { --dubl: #0755f5; --dubl-ink: #08182d; --dubl-orange: #ff9300; --t-dubl: #fff4d6; --on-dubl: #fff; }
@media (prefers-color-scheme: dark) { body.theme-dubl { --dubl: #3d7bff; --dubl-ink: #f2f2f2; --t-dubl: #221e14; } }
.dubl { background: var(--t-dubl); }
.shot { border-radius: 1rem; overflow: hidden; }
.shot img { width: 100%; }
.phone { max-width: 20rem; margin: 0 auto; border-radius: 2rem; overflow: hidden; border: 0.45rem solid #111; }

/* Brand lockup above the headline: goose from the logo + wordmark in type, so it works on dark too */
.brand { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 1.25rem; font: 900 1.6rem/1 var(--sans); color: var(--dubl-ink); letter-spacing: -0.01em; }
.brand img { width: 2.6rem; height: auto; }
.brand i { font-style: normal; color: var(--dubl-orange); }

/* Raw take → reel: chips for speech, retakes, pauses; .play collapses everything that gets cut */
.reel-panel { background: var(--soft); }
@media (prefers-color-scheme: dark) { .reel-panel .take { background: #2a2a2a; } }
/* Bot flow: numbered steps on a blue thread, with the bot's own buttons as chips */
.flow-panel { background: var(--soft); }
.flow { list-style: none; counter-reset: f; margin: 0; padding: 0; }
.flow li { counter-increment: f; position: relative; margin: 0; padding: 0 0 1.75rem 3rem; }
.flow li:last-child { padding-bottom: 0; }
.flow li::before { content: counter(f); position: absolute; left: 0; top: -0.2rem; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--dubl); color: var(--on-dubl); font: 800 0.95rem/1 var(--sans); }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: calc(1rem - 1px); top: 2.2rem; bottom: 0.4rem; width: 2px;
  border-radius: 1px; background: color-mix(in srgb, var(--dubl) 30%, transparent); }
.flow b { display: block; font: 600 1.05rem/1.3 var(--text); }
.flow span { display: block; margin-top: 0.25rem; color: var(--muted); font-size: 0.95rem; }
.flow .chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.65rem 0 0; }
.flow .chips i { font: 600 0.8rem/1 var(--text); font-style: normal; padding: 0.5rem 0.7rem; border-radius: 0.6rem; background: var(--card); color: var(--ink); }
@media (prefers-color-scheme: dark) { .flow .chips i { background: #2a2a2a; } }
.reel { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; min-height: 7.5rem; align-content: center; }
.reel span { font: 600 0.95rem/1.2 var(--text); padding: 0.55rem 0.75rem; border-radius: 0.7rem; background: var(--card); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.reel .take { color: var(--muted); }
.reel .gap { color: var(--muted); background: transparent; border: 1.5px dashed var(--muted); font-weight: 400; }
.reel .keep { background: var(--dubl); color: var(--on-dubl); }
.reel.play .take, .reel.play .gap { display: none; }
.reel.play { justify-content: center; } /* what is left after the cut sits in the middle */
.reel-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2.25rem; font: 600 var(--fs-label)/1.3 var(--text); }
.reel-meta b { font: 800 1.6rem/1 var(--sans); white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--dubl); }
.reel-switch { display: flex; align-items: center; gap: 0.75rem; cursor: pointer; }
.reel-switch .switch:checked { background: var(--dubl); }
.reel-switch .switch:focus-visible { outline-color: var(--dubl); }

/* Pipeline steps: what happens, and who does it — code or a model */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.25rem 0.75rem; align-items: baseline;
  padding: 0.85rem 0; margin: 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(s); font: 800 1rem/1 var(--sans); color: var(--dubl); font-variant-numeric: tabular-nums; }
.steps li span { color: var(--muted); grid-column: 2 / -1; font-size: 0.95rem; }
.steps li i { grid-column: 3; grid-row: 1; font: 500 0.75rem/1 var(--text); font-style: normal; padding: 0.3rem 0.55rem; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.steps li i.m { background: color-mix(in srgb, var(--dubl) 10%, transparent); color: var(--dubl); }
/* Hovered step stays bright and nudges right, the rest step back */
.steps li { transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .steps:has(li:hover) li:not(:hover) { opacity: 0.45; }
  .steps li:hover { transform: translateX(6px); }
}
.cards.three { grid-template-columns: repeat(3, 1fr); }

/* Apple-style stat: small label, one huge number, grey line with the key words in ink, then bars to scale */
.stat { text-align: center; margin: var(--space-5) 0; }
.stat .eyebrow { color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); margin: 0 0 0.5rem; }
.stat .num { font: 900 clamp(3.5rem, 13vw, 6.5rem)/0.95 var(--sans); letter-spacing: -0.03em; color: var(--dubl); margin: 0 0 1rem; font-variant-numeric: tabular-nums; }
.stat .lead { color: var(--muted); font-size: var(--fs-lead); line-height: 1.35; max-width: 30rem; margin: 0 auto; }
.stat .lead b { color: var(--ink); }
.vs { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem 1rem; align-items: center; margin: 2rem auto 0; max-width: 34rem; text-align: left; font-size: var(--fs-label); }
.vs span { color: var(--muted); }
.vs b { font-variant-numeric: tabular-nums; }
.vs div { height: 0.9rem; border-radius: 99px; background: var(--soft); }
.vs div::before { content: ""; display: block; height: 100%; width: var(--w); min-width: 0.9rem; border-radius: inherit; background: var(--muted); }
.vs .us::before { background: var(--dubl); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.duo div { background: var(--card); border-radius: 1rem; padding: 1.25rem; }
.duo strong { display: block; font: 900 2.2rem/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.duo .us strong { color: var(--dubl); }
.duo span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.4rem; }
.stack { display: flex; gap: 6px; height: 3.25rem; }
/* doubl.one look: chunky ink outline and a hard shadow, like the goose stickers */
.stack div { flex: var(--f) 1 0; min-width: 1.5rem; display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 2px solid var(--dubl-ink); border-radius: 0.9rem; background: var(--c); box-shadow: 0 4px 0 var(--dubl-ink);
  color: var(--on, #fff); font: 800 0.85rem/1 var(--sans); white-space: nowrap;
  transition: flex-grow 450ms var(--ease-out), transform 250ms var(--ease-out), box-shadow 250ms var(--ease-out), opacity 250ms var(--ease-out); }
.stack div b { opacity: 0; transition: opacity 200ms; }
.stack div[style*="--f:10"] b, .stack div[style*="--f:27"] b { opacity: 1; }
.stack-legend { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-top: 0.8rem; font-size: var(--fs-label); color: var(--muted); }
.stack-legend b { display: block; color: var(--ink); font-variant-numeric: tabular-nums; }
.stack-legend span::before { content: ""; display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); margin-right: 0.35rem; }

/* Three levels of control: one tile each, with the doubl.one goose */
.levels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.levels div { background: var(--soft); border-radius: 1.25rem; padding: 1.25rem 1.1rem 1.4rem; text-align: center; }
.levels img { width: 100%; max-width: 9rem; aspect-ratio: 1; object-fit: contain; margin: 0 auto 0.75rem; }
.levels b { display: block; font: 800 1.1rem/1.2 var(--sans); }
.levels span { display: block; color: var(--muted); font-size: 0.92rem; margin-top: 0.35rem; }
@media (max-width: 640px) {
  .cards.three, .levels { grid-template-columns: 1fr; }
  .levels div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 1rem; text-align: left; align-items: center; }
  .levels img { grid-row: span 2; margin: 0; }
  .duo { grid-template-columns: 1fr; }
  .stack-legend { grid-template-columns: 1fr 1fr; }
  .phone { max-width: 16rem; }
}
/* Price in dollars first, roubles under it in grey */
.vs b small { display: block; color: var(--muted); font-weight: 400; font-size: 0.85em; }
.duo small { display: block; color: var(--muted); font: 600 1rem/1.2 var(--text); margin-top: 0.3rem; }
/* Frames from finished reels: one full-bleed row; on narrow screens it scrolls sideways */
.reels { margin-block: 3.5rem; }
.reels-strip { width: 100vw; margin-left: calc(50% - 50vw); display: flex; gap: 8px; padding: 12px 8px; margin-block: -12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reels-strip img { flex: 1 0 0; min-width: 10rem; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 0.75rem; scroll-snap-align: start; }
/* Hovered frame grows, the rest step back, as on the post and case cards */
.reels-strip img { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .reels-strip img:hover { transform: scale(1.04); position: relative; z-index: 1; }
  .reels-strip:has(img:hover) img:not(:hover) { transform: scale(0.97); opacity: 0.6; }
}
/* Library numbers, as on the offers page: big figure, small grey label, no cards */
.dubl-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin: var(--space-4) 0; }
.dubl-stats span { color: var(--muted); font-size: var(--fs-label); line-height: 1.3; }
/* Month of editing: one number the switch counts down, one bar that shrinks */
.cost { text-align: center; }
.cost .eyebrow { margin: 0 0 0.5rem; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.cost-num { margin: 0; font: 900 clamp(3.5rem, 12vw, 6rem)/1 var(--sans); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; transition: color 400ms var(--ease-out); }
.cost.on .cost-num { color: var(--dubl); }
.cost-sub { margin: 0.75rem 0 0; color: var(--muted); }
.cost-bar { max-width: 28rem; height: 0.9rem; margin: 1.75rem auto; border-radius: 99px; background: var(--card); }
.cost-bar div { width: 100%; min-width: 0.9rem; height: 100%; border-radius: inherit; background: var(--muted); transition: width 900ms var(--ease-out), background-color 400ms var(--ease-out); }
.cost.on .cost-bar div { width: 0.45%; background: var(--dubl); }
.cost-switch { justify-content: center; font: 600 var(--fs-label)/1.3 var(--text); }
@media (prefers-color-scheme: dark) { .cost-bar { background: #2a2a2a; } }
/* Hovering a segment or its legend widens it and shows its price; the rest step back */
.stack-legend span { transition: opacity 250ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .stack div:hover { flex-grow: calc(var(--f) + 14); transform: translateY(-3px); box-shadow: 0 7px 0 var(--dubl-ink); }
  .stack div:hover b { opacity: 1; }
  .stack:has(div:hover) div:not(:hover), .mix:has(.stack-legend span:hover) .stack div { opacity: 0.45; }
  .mix:has(.stack div:nth-child(1):hover) .stack-legend span:not(:nth-child(1)),
  .mix:has(.stack div:nth-child(2):hover) .stack-legend span:not(:nth-child(2)),
  .mix:has(.stack div:nth-child(3):hover) .stack-legend span:not(:nth-child(3)),
  .mix:has(.stack div:nth-child(4):hover) .stack-legend span:not(:nth-child(4)) { opacity: 0.4; }
  .mix:has(.stack-legend span:nth-child(1):hover) .stack div:nth-child(1),
  .mix:has(.stack-legend span:nth-child(2):hover) .stack div:nth-child(2),
  .mix:has(.stack-legend span:nth-child(3):hover) .stack div:nth-child(3),
  .mix:has(.stack-legend span:nth-child(4):hover) .stack div:nth-child(4) { opacity: 1; flex-grow: calc(var(--f) + 14); transform: translateY(-3px); box-shadow: 0 7px 0 var(--dubl-ink); }
  .mix:has(.stack-legend span:nth-child(1):hover) .stack div:nth-child(1) b,
  .mix:has(.stack-legend span:nth-child(4):hover) .stack div:nth-child(4) b { opacity: 1; }
  .stack-legend span { cursor: default; }
}
.cost-switch { display: inline-flex; }
/* Goose tiles: hovered one grows, the rest step back, as on the post and case cards */
.levels div { transition: transform 220ms var(--ease-out), opacity 220ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .levels div:hover { transform: scale(1.03); }
  .levels:has(div:hover) div:not(:hover) { transform: scale(0.97); opacity: 0.6; }
}
/* Dubl timeline: the takes strip of the bot's editor (Reels Maker webapp/editor.html), its look and UX carried over as is, without the video.
   Phone: the playhead stays in the middle and the strip scrolls under it. Desktop: the whole recording fits and the playhead moves.
   A piece is as wide as it is long; a cut one keeps its width, only lower and hatched. Tap goes to a piece, double tap cuts it or brings it back. */
.tl { --bg: #0e0e10; --surface: #1a1a1e; --surface-2: #2a2a30; --text: #f4f4f5; --mu: #a1a1aa; --accent: #ffd23f; --on-accent: #111113; --r: 12px; --pps: 22px;
  --kind-keep: #5c5c66; --kind-take: #2f5fd0; --kind-pause: #e8962a;
  display: block; padding: 12px 0 16px; background: var(--bg); color: var(--text); font: 500 15px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-tap-highlight-color: transparent; }
.tl button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
.tl button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tl-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px 8px; }
.tl-play { width: 44px; height: 44px; border-radius: 50% !important; background: var(--accent) !important; color: var(--on-accent) !important; display: grid; place-items: center; }
.tl-play svg { display: block; }
/* Buttons give under the finger and light up under the mouse, as the editor's */
.tl-play, .tl-tog { transition: transform 120ms var(--ease-out), filter 150ms, background-color 150ms; }
.tl-play:active, .tl-tog:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .tl-play:hover, .tl-tog:hover { filter: brightness(1.15); } }
.tl-play .p2, .tl.playing .tl-play .p1 { display: none; }
.tl.playing .tl-play .p2 { display: block; }
.tl-time { flex: 1; font: 500 14px ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tl-tog { height: 44px; min-width: 112px; padding: 0 18px !important; border-radius: var(--r) !important; background: var(--surface-2) !important; font-size: 15px !important; font-weight: 700 !important; }
.tl .tl-tog.off { background: var(--accent) !important; color: var(--on-accent); }
.tl-strip { position: relative; user-select: none; -webkit-user-select: none; }
.tl-scroll { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x; outline-offset: -2px; }
.tl-scroll::-webkit-scrollbar { display: none; }
.tl-scroll:focus-visible { outline: 2px solid var(--accent); }
.tl.drag, .tl.drag * { cursor: grabbing !important; }
.tl-track { display: flex; align-items: center; width: max-content; height: 48px; box-sizing: content-box; padding: 14px 0 8px; }
.tl:not(.tl-mob) .tl-track { padding-inline: 16px; }
.tl-seg { box-sizing: border-box; flex: none; width: calc(var(--d) * var(--pps)); height: 48px; border-right: 2px solid var(--bg); background: var(--k); cursor: pointer;
  transition: height 200ms, opacity 200ms; }
.tl-seg:first-child { border-radius: 8px 0 0 8px; }
.tl-seg:last-child { border-right: 0; border-radius: 0 8px 8px 0; }
.tl-seg[data-k=keep] { --k: var(--kind-keep); }
.tl-seg[data-k=take] { --k: var(--kind-take); }
.tl-seg[data-k=pause] { --k: var(--kind-pause); }
/* Frame of the recording on a kept piece, repeated like a film strip, the kind colour over it (as the editor's has-thumb) */
.tl-seg[style*=--img]:not(.off) { background-image: linear-gradient(color-mix(in srgb, var(--k) var(--tint), transparent), color-mix(in srgb, var(--k) var(--tint), transparent)), var(--img);
  background-size: auto, auto 100%; background-repeat: no-repeat, repeat-x; background-position: 0 0, left center; }
.tl-seg[data-k=keep] { --tint: 30%; }
.tl-seg[data-k=take], .tl-seg[data-k=pause] { --tint: 55%; }
.tl-seg.off { height: 30px; opacity: 0.45; background: repeating-linear-gradient(135deg, var(--k) 0 3px, var(--surface) 3px 8px); }
.tl-seg.off.sel { opacity: 1; }
.tl-seg.sel { box-shadow: inset 0 0 0 2px var(--accent); }
@media (hover: hover) { .tl-seg:hover { filter: brightness(1.25); } .tl-seg.off:hover { opacity: 0.8; } }
/* Playhead: white with a dot and a shadow so it does not get lost on light blocks; the time shows above it while scrubbing */
.tl-head { position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 4px; margin-left: -2px; border-radius: 2px; background: #fff;
  box-shadow: 0 0 0 1px rgb(0 0 0 / .35), 0 2px 6px rgb(0 0 0 / .5); pointer-events: none; will-change: transform; }
.tl-head::before { content: ""; position: absolute; top: -5px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%); border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .5); }
.tl-head b { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); padding: 4px 8px; border-radius: 8px; background: var(--surface-2);
  font: 500 12px ui-monospace, "JetBrains Mono", "SF Mono", Menlo, monospace; white-space: nowrap; box-shadow: 0 2px 8px rgb(0 0 0 / .5); opacity: 0; transition: opacity 150ms; }
.tl.scrub .tl-head b { opacity: 1; }
/* Desktop: the playhead can be grabbed; the grab zone is wider than the line, and hovering it shows the time, as dragging does */
.tl:not(.tl-mob) .tl-head { pointer-events: auto; cursor: grab; }
.tl:not(.tl-mob) .tl-head::after { content: ""; position: absolute; top: -10px; bottom: 0; left: -10px; right: -10px; }
.tl-head::before { transition: transform 150ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tl:not(.tl-mob) .tl-head:hover b { opacity: 1; }
  .tl:not(.tl-mob) .tl-head:hover::before, .tl.drag .tl-head::before { transform: translateX(-50%) scale(1.3); }
}
/* The piece under the playhead, as the editor's tip: kind dot, length, state, then its words */
.tl-say { margin: 8px 16px 0; padding: 8px 10px; min-height: 3.6em; border-radius: 10px; background: var(--surface); font-size: 13px; line-height: 1.35; }
.tl-kind { display: flex; align-items: center; gap: 6px; color: var(--mu); font-size: 12px; }
.tl-kind::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--kd, var(--kind-keep)); }
.tl-text { display: block; margin-top: 4px; }
@media (prefers-color-scheme: dark) { .tl { box-shadow: inset 0 0 0 1px #26262b; } }
@media (prefers-reduced-motion: reduce) { .tl * { transition-duration: 1ms !important; } }
/* doubl.one sticker look across the article: ink outline and a hard shadow, like the goose stickers and the cost bar */
.reels-strip img { border: 2px solid var(--dubl-ink); box-shadow: 0 4px 0 var(--dubl-ink); }
.reel .take, .reel .keep { border: 2px solid var(--dubl-ink); box-shadow: 0 3px 0 var(--dubl-ink); }
.reel .gap { border-color: var(--dubl-ink); }
.flow .chips i { border: 1.5px solid var(--dubl-ink); box-shadow: 0 2px 0 var(--dubl-ink); }
.flow li::before { border: 2px solid var(--dubl-ink); box-shadow: 0 3px 0 var(--dubl-ink); }
/* Bot link: the one big blue button of the article, centred at the foot of the calculator plate */
.bot-cta { margin: var(--space-4) 0 0; text-align: center; }
.dubl-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.5rem; padding: 0 1.75rem; border: 2px solid var(--dubl-ink); border-radius: 1rem;
  background: var(--dubl); color: #fff; font: 800 1.1rem/1 var(--sans); text-decoration: none; box-shadow: 0 5px 0 var(--dubl-ink);
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.dubl-btn:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--dubl-ink); color: #fff; }
.dubl-btn:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--dubl-ink); }
@media (max-width: 640px) { .dubl-btn { display: flex; } }
/* Cost section: three separate sticker plates instead of one long run */
.plate { margin: var(--space-4) 0; padding: 2.25rem 1.5rem; border: 2px solid var(--dubl-ink); border-radius: 1.5rem; background: var(--soft); box-shadow: 0 5px 0 var(--dubl-ink); }
.stat.plate .num { font-size: clamp(3rem, 10vw, 5rem); }
.calc.plate { border: 0; border-radius: 1.25rem; box-shadow: none; } /* plain grey like the goose tiles; the bot button inside carries the sticker look */
.stat.plate .vs { margin-top: 1.5rem; }
.stat.plate .vs div { background: var(--card); }
@media (prefers-color-scheme: dark) { .stat.plate .vs div { background: #2a2a2a; } }
@media (max-width: 640px) { .dubl-btn { display: inline-flex; } }
/* Library numbers in the doubl.one face: rounded heavy blue */
.dubl-stats b { font: 900 clamp(2.4rem, 7vw, 3.5rem)/1 var(--sans); letter-spacing: -0.02em; color: var(--dubl); }
/* Cost calculator: one switch, three figures that recount from the editor to dubl.one */
.calc-head { display: flex; width: fit-content; gap: 2px; margin: 0 auto 1.75rem; padding: 4px; border-radius: 99px; background: var(--card); font: 700 1rem/1.2 var(--text); }
.calc-head label { padding: 0.6rem 1.1rem; border-radius: 99px; color: var(--muted); cursor: pointer; white-space: nowrap; transition: color 300ms var(--ease-out), background-color 300ms var(--ease-out); }
.calc-head input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.calc-head label:has(:checked) { background: var(--ink); color: var(--bg); }
.calc.on .calc-head label:has(:checked) { background: var(--dubl); color: var(--on-dubl); }
.calc-head label:has(:focus-visible) { outline: 2px solid var(--dubl); outline-offset: 2px; }
.calc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
.calc-grid > div { padding: 1.25rem 1rem; border-radius: 1rem; background: var(--card); text-align: center; }
.calc .eyebrow { margin: 0; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.calc-num { margin: 0.4rem 0 0; font: 900 clamp(1.9rem, 5vw, 2.6rem)/1 var(--sans); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; transition: color 400ms var(--ease-out); }
.calc.on .calc-num { color: var(--dubl); }
.calc small { display: block; min-height: 1.3em; margin-top: 0.35rem; color: var(--muted); font-size: var(--fs-label); font-variant-numeric: tabular-nums; }
.calc-bar { display: block; height: 0.5rem; margin-top: 1rem; border-radius: 99px; background: var(--soft); }
.calc-bar::before { content: ""; display: block; width: var(--w, 100%); min-width: 0.5rem; height: 100%; border-radius: inherit; background: var(--muted); transition: width 900ms var(--ease-out), background-color 400ms var(--ease-out); }
.calc.on .calc-bar::before { background: var(--dubl); }
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } .calc.plate { padding-inline: 1rem; } .calc-head { width: 100%; font-size: 0.8125rem; } .calc-head label { flex: auto; padding: 0.6rem 0.45rem; text-align: center; } }
.ledger.plate { border: 0; border-radius: 1.25rem; box-shadow: none; padding: 1.5rem; }
.ledger p { display: flex; justify-content: space-between; gap: 1rem; margin: 0; padding: 0.7rem 0; border-top: 1px solid var(--line); }
.ledger .eyebrow { border: 0; padding-top: 0; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.ledger b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .sum { font-weight: 700; border-top: 2px solid var(--ink); }
.ledger .sum b { color: var(--dubl); }
/* Title: the old time struck out in orange, the new one in blue */
.theme-dubl h1 s { color: color-mix(in srgb, var(--muted) 45%, transparent); text-decoration-color: color-mix(in srgb, var(--dubl-orange) 70%, transparent); text-decoration-thickness: 0.09em; }
.theme-dubl h1 ins { text-decoration: none; color: var(--dubl); font-family: var(--sans); font-weight: 800; } /* rounded, like the 12 c counter */
/* Editor vs dubl.one: the same path, the manual step hatched in one row and struck out in the other */
.path { display: grid; gap: 0.75rem; }
.path-row { background: var(--soft); border-radius: 1.25rem; padding: 1.1rem 1.25rem 1.25rem; }
.path-row .eyebrow { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; margin: 0 0 0.75rem; color: var(--muted); font: 600 var(--fs-label)/1.3 var(--text); }
.path-row .eyebrow b { font: 800 1.35rem/1 var(--sans); color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.path .us .eyebrow b { color: var(--dubl); }
.path ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.6rem; }
.path li { position: relative; padding: 0.55rem 0.8rem; border-radius: 0.7rem; background: var(--card); font: 600 0.95rem/1.2 var(--text); }
.path li + li::before { content: "→"; position: absolute; left: -1.25rem; color: var(--muted); font-weight: 400; }
.path .hand { border: 2px solid var(--dubl-orange); background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--dubl-orange) 20%, transparent) 0 6px, transparent 6px 12px), var(--card); }
.path .us li:not(.gone) { background: var(--dubl); color: var(--on-dubl); }
.path .gone { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); text-decoration: line-through; font-weight: 400; }
@media (prefers-color-scheme: dark) { .path li { background: #2a2a2a; } }
@media (max-width: 640px) {
  .path { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
  .path-row { padding: 0.9rem 0.75rem 1rem; }
  .path-row .eyebrow { flex-direction: column; gap: 0.35rem; }
  .path ol { flex-direction: column; align-items: stretch; gap: 1.1rem; }
  .path li { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
  .path li + li::before { content: "↓"; left: 50%; top: -1.1rem; transform: translateX(-50%); font-size: 0.8rem; }
}
@media (prefers-color-scheme: dark) { .calc-grid > div, .calc-head { background: #242424; } .calc-bar { background: #333; } }

/* Article hero screenshot: the home `.hero` rules above (full-viewport min-height, flex centring) leak onto it */
article figure.hero { display: block; min-height: 0; padding: 0; margin-block: 4rem !important; }
@media (min-width: 64rem) { article figure.hero { margin-block: 6rem !important; } }
