/* ==========================================================================
   CloudyCode — "drawing sheet" homepage
   Fine graphite illustration on warm paper, laid out as a drawing sheet
   with tools, taped photos and a title block.
   One pen-ink blue for everything you can click.
   Type: Plus Jakarta Sans (headings + body) + Reenie Beanie (handwriting).
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Reenie Beanie';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/reenie-beanie-latin.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  /* paper + graphite */
  --paper: #F4F1EA;
  --paper-tint: rgba(35, 37, 43, 0.045);   /* alternate bands */
  --sheet: #FAF8F3;                         /* a clean page lying on the paper */
  --white: #FFFEFB;
  --graphite: #23252B;                      /* headings, drawn line */
  --graphite-soft: #50525A;                 /* body copy — 7:1 on paper */
  --graphite-faint: #5F6068;                /* labels, numbers — 5.5:1 on paper, 5:1 on tint */
  --rule: rgba(35, 37, 43, 0.16);
  --rule-strong: rgba(35, 37, 43, 0.42);

  /* the one colour: pen ink. Swap this to re-ink the whole page. */
  --ink: #2A4FD0;
  --ink-deep: #1E3BA6;
  --ink-wash: rgba(42, 79, 208, 0.16);
  --error: #B3261E;

  --font-sans: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
  --font-script: 'Reenie Beanie', 'Bradley Hand', cursive;

  /* type scale */
  --fs-h1: clamp(2.75rem, 1.3rem + 4.8vw, 5rem);
  --fs-h2: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  --fs-h3: 1.125rem;
  --fs-lede: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;
  --fs-script: 1.875rem;     /* Reenie Beanie has a tiny x-height */

  /* spacing — 8px base */
  --sp-1: 0.5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-8: 4rem;
  --sp-section: clamp(5rem, 3rem + 8vw, 9.5rem);   /* vertical room around every section */
  --sp-head: clamp(3rem, 2rem + 3.5vw, 5rem);      /* section heading → section content */
  --gap-split: clamp(3rem, 1rem + 6vw, 6.5rem);

  --wrap: 76rem;
  --measure: 34rem;          /* max line length for running text */
  --radius-pill: 999px;
  --radius: 6px;
  --header-h: 5rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }

body {
  margin: 0;
  color: var(--graphite-soft);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  background-color: var(--paper);
  /* paper tooth over a faint drafting grid */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .18 0 0 0 0 .14 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(rgba(35, 37, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 37, 43, 0.035) 1px, transparent 1px);
  background-size: 240px 240px, 32px 32px, 32px 32px;
}

a { color: inherit; }
img, svg { max-width: 100%; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }

.defs { position: absolute; }
.wrap { width: min(100% - 3.5rem, var(--wrap)); margin-inline: auto; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: var(--sp-3); top: -4rem; z-index: 70;
  padding: var(--sp-1) var(--sp-2); background: var(--graphite); color: var(--paper);
}
.skip-link:focus { top: var(--sp-3); }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; color: var(--graphite); font-family: var(--font-sans); text-wrap: balance; }
h1 { font-weight: 800; font-size: var(--fs-h1); line-height: 1.02; letter-spacing: -0.04em; margin-bottom: var(--sp-4); }
h2 { font-weight: 700; font-size: var(--fs-h2); line-height: 1.12; letter-spacing: -0.03em; margin-bottom: var(--sp-4); max-width: 19ch; }
h3 { font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.01em; }

.lede { font-size: var(--fs-lede); max-width: var(--measure); }

/* spaced-caps section label, numbered like sheets in a sketchbook */
.label {
  display: flex; align-items: center; gap: 0.9em;
  font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--graphite); margin-bottom: var(--sp-3);
}
.label span { color: var(--ink); letter-spacing: 0.08em; }
.label span::after { content: ""; display: inline-block; width: 2.25rem; height: 1px; margin-left: 0.9em; vertical-align: middle; background: var(--rule-strong); }

/* pen underline that draws in under a phrase */
.u { position: relative; display: inline-block; white-space: nowrap; }
.split h2 .u { white-space: normal; }
.u svg { position: absolute; left: -2%; bottom: -0.22em; width: 104%; height: 0.3em; overflow: visible; filter: url(#graphite); }

.script {
  font-family: var(--font-script); font-size: var(--fs-script); line-height: 0.95;
  color: var(--graphite-soft); letter-spacing: 0.01em;
}
.script svg { flex: none; overflow: visible; filter: url(#graphite); }
.script-svg { font-family: var(--font-script); font-size: 27px; fill: var(--graphite-soft); }
.script-svg--tag { font-size: 21px; fill: var(--graphite); }

.text-link {
  display: inline-flex; align-items: center; gap: 0.5em; min-height: 2.75rem;
  color: var(--ink); font-size: var(--fs-small); font-weight: 600; text-decoration: none;
}
.text-link span { transition: transform 0.2s ease-out; }
a.text-link:hover, a:hover > .text-link { color: var(--ink-deep); }
a.text-link:hover span, a:hover > .text-link span { transform: translateX(4px); }
.inline-link { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.inline-link:hover { color: var(--ink-deep); }

/* ---------- Drawn line (SVG) ---------- */
svg .lead { fill: none; stroke: var(--graphite); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
svg .lead--fine { stroke-width: 1; }
svg .lead--bold { stroke-width: 3; }
svg .lead--dash { stroke-dasharray: 2 7; }
svg .sheet { fill: var(--sheet); }
svg .sheet--white { fill: var(--white); }
svg .solid { fill: var(--graphite); }
svg .pen-fill { fill: var(--ink); }
svg .ink { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; }
svg .ink--thin { stroke-width: 1.2; }
/* loose wash of ink behind a drawing */
svg .wash { fill: var(--ink); opacity: 0.075; filter: url(#wash); }

.art { display: block; width: 100%; height: auto; overflow: visible; }
.line-icon { display: block; filter: url(#graphite); }
.logo-mark { filter: brightness(0) opacity(0.85); }
.tool-art { display: block; filter: url(#graphite); overflow: visible; }

/* stroke draw-in + fade, held until the block scrolls into view */
.draw { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js [data-reveal] .draw, .js [data-draw] .draw { stroke-dashoffset: 1; }
.js .is-in .draw { animation: draw var(--t, 0.7s) var(--d, 0.3s) ease-out forwards; }
.js [data-reveal] .fade, .js [data-draw] .fade { opacity: 0; }
.js .is-in .fade { animation: fade 0.8s var(--d, 0s) ease-out forwards; }
/* looping drawings rub themselves out before the next pass */
.js .is-in.is-erasing .draw, .js .is-in.is-erasing .fade { animation: erase 0.7s ease-in forwards; }

.js [data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease-out, transform 0.6s ease-out; }
.js [data-reveal].is-in { opacity: 1; transform: none; }
/* The first screen is never hidden waiting for the script: it only slides up.
   (Hidden text here delayed the page's main paint by seconds on phones.) */
.js .hero [data-reveal], .js .page-hero [data-reveal] { opacity: 1; transform: none; transition: none; animation: rise 0.6s ease-out both; }
@keyframes rise { from { transform: translateY(14px); } }

/* ambient motion inside the drawings */
.string { transform-box: view-box; animation: sway 6s ease-in-out infinite alternate; }
.string--a { transform-origin: 410px 90px; }
.string--b { transform-origin: 506px 90px; animation-duration: 7s; }
.leaves { transform-box: fill-box; transform-origin: 50% 100%; animation: sway 5s ease-in-out infinite alternate; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }
@keyframes erase { from { opacity: 1; stroke-dashoffset: 0; } to { opacity: 0; stroke-dashoffset: 0; } }
@keyframes sway { from { transform: rotate(-1.4deg); } to { transform: rotate(1.4deg); } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.75em;
  min-height: 3rem; padding: 0.8rem 1.6rem;
  font: 600 var(--fs-small)/1.2 var(--font-sans);
  color: #fff; text-decoration: none; cursor: pointer;
  background: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius-pill);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out, transform 0.1s ease-out;
}
.btn span { transition: transform 0.2s ease-out; }
.btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.btn:hover span { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }
.btn--outline { background: transparent; color: var(--ink); }
.btn--outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--small { min-height: 2.5rem; padding: 0.5rem 1.2rem; }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-5); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244, 241, 234, 0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease-out;
}
.site-header.is-stuck { border-bottom-color: var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: var(--header-h); position: relative; }
/* the real CloudyCode logo ships in white; ink it graphite for paper */
.brand { display: inline-block; }
.brand img { display: block; height: auto; filter: brightness(0) opacity(0.87); }

.site-nav ul { display: flex; align-items: center; gap: var(--sp-3) clamp(1.25rem, 2vw, 2rem); }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 0.6rem 0;
  font-size: var(--fs-small); font-weight: 500; color: var(--graphite); text-decoration: none;
}
.site-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.3rem; height: 2px; border-radius: 2px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease-out;
}
.site-nav a:not(.btn):hover::after, .site-nav a:not(.btn):focus-visible::after,
.site-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* menu button: three pencil strokes, no word */
.nav-toggle {
  display: none; place-items: center; flex: none; width: 3rem; height: 3rem; padding: 0; cursor: pointer;
  color: var(--ink); background: transparent; border: 1.5px solid var(--ink); border-radius: 50%;
  transition: background-color 0.2s ease-out, color 0.2s ease-out;
}
.nav-toggle svg { width: 1.75rem; height: 1.75rem; overflow: visible; }
.nav-toggle path { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; transition: transform 0.2s ease-out; transform-origin: left center; transform-box: fill-box; }
.nav-toggle:hover { background: var(--ink); color: #fff; }
.nav-toggle:not(.drawer-close):hover path:nth-child(2) { transform: scaleX(1.3); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 1rem + 5vw, 5.5rem) var(--sp-section); }
.hero-grid { display: grid; gap: var(--sp-8); align-items: center; grid-template-columns: minmax(0, 1fr); }
.script--cta { display: flex; align-items: flex-start; gap: var(--sp-1); margin-top: var(--sp-2); padding-left: 2.5rem; transform: rotate(-3deg); transform-origin: left; }

.facts {
  display: flex; flex-wrap: wrap; gap: var(--sp-1) var(--sp-4);
  margin-top: var(--sp-5); padding-top: var(--sp-3); border-top: 1px solid var(--rule);
  font-size: var(--fs-small); font-weight: 600; color: var(--graphite);
}
.facts li { display: flex; align-items: center; gap: 0.55rem; }
/* pen tick */
.facts li::before {
  content: ""; flex: none; width: 1.1rem; height: 1.1rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4FD0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 6L21 4'/%3E%3C/svg%3E");
}

/* ---------- Ruler divider ---------- */
.ruler {
  position: relative; height: 30px; transform: rotate(-0.35deg);
  border: 1px solid var(--rule-strong); border-radius: 3px;
  background-color: var(--sheet);
  background-image:
    repeating-linear-gradient(90deg, var(--graphite) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, var(--graphite-faint) 0 1px, transparent 1px 8px);
  background-size: 100% 52%, 100% 26%;
  background-repeat: no-repeat;
  background-position: 8px 0, 8px 0;
}
/* hatched cast shadow */
.ruler::after {
  content: ""; position: absolute; left: 6px; right: -6px; top: 100%; height: 6px; margin-top: 1px;
  background: repeating-linear-gradient(-45deg, rgba(35, 37, 43, 0.35) 0 1px, transparent 1px 4px);
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sp-section); }
.section--tint { background-color: var(--paper-tint); border-block: 1px solid var(--rule); }

.section-head { display: grid; gap: var(--sp-3); grid-template-columns: minmax(0, 1fr); margin-bottom: var(--sp-head); }
.section-head h2 { margin-bottom: 0; }
.section-aside { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-2); max-width: var(--measure); }
.section-aside .script { display: flex; align-items: flex-start; gap: var(--sp-1); transform: rotate(-3deg); transform-origin: left; }

.split { display: grid; gap: var(--sp-8); grid-template-columns: minmax(0, 1fr); align-items: start; }
.split > div > p { max-width: var(--measure); }
.split > div > p + p { margin-top: var(--sp-2); }
.script--quote { margin-top: var(--sp-4) !important; transform: rotate(-3deg); transform-origin: left; }

/* ---------- Services: ruled toolkit grid ---------- */
.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); border-top: 1px solid var(--rule-strong); }
.tool {
  display: flex; flex-direction: column; gap: 0.75rem;
  padding: var(--sp-5) var(--sp-4) var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
}
.tool h3 { margin-top: 0.5rem; }
.tool p { font-size: var(--fs-small); line-height: 1.6; }
.tool .tool-price { margin-top: auto; padding-top: var(--sp-2); color: var(--ink); font-weight: 700; }
.tool--all { justify-content: center; }
.tool--all .text-link { margin-top: 0.25rem; }

/* ---------- Work: photos taped to the sheet ---------- */
.snap-grid { display: grid; gap: var(--sp-8) var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); }
.snap { position: relative; }
.snap > a {
  display: flex; flex-direction: column; height: 100%;
  padding: 0.75rem 0.75rem 1.25rem;
  background: var(--white); border: 1px solid var(--rule-strong);
  box-shadow: 5px 6px 0 -1px var(--paper), 5px 6px 0 0 rgba(35, 37, 43, 0.28);
  text-decoration: none;
  transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
}
.snap:nth-child(3n+1) > a { transform: rotate(-1.2deg); }
.snap:nth-child(3n+2) > a { transform: rotate(0.8deg); }
.snap:nth-child(3n) > a { transform: rotate(-0.5deg); }
.snap > a:hover, .snap > a:focus-visible { transform: rotate(0deg) translateY(-5px); box-shadow: 9px 11px 0 -1px var(--paper), 9px 11px 0 0 rgba(35, 37, 43, 0.28); }
/* strip of masking tape */
.snap::before {
  content: ""; position: absolute; z-index: 1; top: -0.8rem; left: 50%;
  width: 6rem; height: 1.5rem; margin-left: -3rem;
  background: var(--ink-wash);
  border-left: 1px dashed rgba(35, 37, 43, 0.3); border-right: 1px dashed rgba(35, 37, 43, 0.3);
  transform: rotate(-3deg);
}
.snap:nth-child(even)::before { background: rgba(35, 37, 43, 0.1); transform: rotate(2.5deg); }
.snap-shot { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: var(--sp-2); border: 1px solid var(--rule-strong); background: var(--paper); }
.snap-shot img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; filter: saturate(0.92); }
.snap-name { color: var(--graphite); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; padding-inline: 0.25rem; }
.snap-text { font-size: var(--fs-small); padding-inline: 0.25rem; margin-top: 0.15rem; }
.snap .text-link { margin-top: auto; padding: 0.75rem 0.25rem 0; }

/* ---------- Process ---------- */
.process { display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.process-step { position: relative; display: flex; flex-direction: column; gap: 0.75rem; }
.process-step h3 { margin-top: 0.5rem; }
.process-step h3 span { color: var(--ink); margin-right: 0.15em; }
.process-step p { font-size: var(--fs-small); line-height: 1.6; }
/* hand-drawn arrow from one step to the next */
.process-step:not(:last-child)::after {
  content: ""; position: absolute; top: 0.75rem; left: 4.5rem; right: 0.5rem; height: 1.5rem;
  background: no-repeat right center / 4rem 1.6rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 24' fill='none' stroke='%2350525A' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 14C18 9 38 9 55 13M55 13l-10-1M55 13l-6-7'/%3E%3C/svg%3E");
}

/* ---------- Pricing slip ---------- */
.tool-art--square { margin-top: var(--sp-6); transform: rotate(8deg); }
.slip {
  position: relative; justify-self: center; width: min(100%, 28rem);
  padding: var(--sp-6) var(--sp-4) var(--sp-4);
  background: var(--white);
  filter: drop-shadow(0 0 0.5px rgba(35, 37, 43, 0.9)) drop-shadow(5px 7px 0 rgba(35, 37, 43, 0.16));
}
.js .slip.is-in { transform: rotate(1.4deg); }
/* torn bottom edge */
.slip::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 10px;
  background:
    linear-gradient(-45deg, transparent 7px, var(--white) 0) 0 0 / 14px 10px repeat-x,
    linear-gradient(45deg, transparent 7px, var(--white) 0) 0 0 / 14px 10px repeat-x;
  transform: scaleY(-1);
}
/* tape holding it to the sheet */
.slip::before {
  content: ""; position: absolute; top: -0.75rem; left: 50%; width: 7rem; height: 1.6rem; margin-left: -3.5rem;
  background: var(--ink-wash); border-left: 1px dashed rgba(35, 37, 43, 0.3); border-right: 1px dashed rgba(35, 37, 43, 0.3);
  transform: rotate(-2.5deg);
}
.slip-title { color: var(--graphite); font-weight: 700; font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.slip dl { margin: 0; border-top: 1px solid var(--rule); }
.slip-row { display: flex; align-items: baseline; gap: var(--sp-1); padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.slip-row dt { order: 1; color: var(--graphite); font-weight: 500; }
.slip-row::after { content: ""; order: 2; flex: 1; min-width: 1rem; border-bottom: 1.5px dotted var(--graphite-faint); transform: translateY(-0.25em); }
.slip-row dd { order: 3; margin: 0; color: var(--graphite); font-weight: 700; white-space: nowrap; }
.slip-foot { margin-top: var(--sp-3); font-size: 1.625rem; transform: rotate(-1.5deg); transform-origin: left; }

/* ---------- Questions ---------- */
.faq { border-top: 1px solid var(--rule-strong); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding-block: 1.35rem; cursor: pointer; list-style: none;
  color: var(--graphite); font-weight: 600; font-size: var(--fs-h3); line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
/* pen-drawn plus that turns into a cross when open */
.faq summary::after {
  content: ""; flex: none; width: 1.25rem; height: 1.25rem; transition: transform 0.25s ease-out;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4FD0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 4v16M4 12.5c5-1 11-1 16-.5'/%3E%3C/svg%3E");
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--ink-deep); }
.faq details p { max-width: var(--measure); padding-bottom: 1.5rem; }

/* ---------- Contact: a fresh page on the sheet ---------- */
.page-sheet {
  position: relative;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px;
  box-shadow: 8px 9px 0 -1px var(--paper), 8px 9px 0 0 rgba(35, 37, 43, 0.3);
}
.tool-art--eraser { position: absolute; right: 7%; top: -1.6rem; transform: rotate(10deg); }
.contact-list { margin-top: var(--sp-4); display: grid; gap: 0; }
.contact-list a { display: inline-block; padding-block: 0.55rem; color: var(--graphite); font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--ink); }

.form { display: grid; gap: var(--sp-3) var(--sp-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: var(--fs-small); font-weight: 600; color: var(--graphite); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 3rem; padding: 0.75rem 0.9rem;
  font: 400 var(--fs-body)/1.4 var(--font-sans); color: var(--graphite);
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  transition: border-color 0.2s ease-out, box-shadow 0.2s ease-out;
}
.field textarea { resize: vertical; min-height: 8rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ink-wash); }
.field [aria-invalid="true"] { border-color: var(--error); }
.form-error { color: var(--error); font-size: var(--fs-small); font-weight: 600; }

/* ---------- Footer: title block ---------- */
.site-footer { padding-block: 0 var(--sp-8); }
.title-block { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); border: 1px solid var(--rule-strong); background: var(--sheet); }
.tb-cell { padding: var(--sp-4); outline: 1px solid var(--rule); outline-offset: -0.5px; }
.tb-cell li + li { margin-top: 0.1rem; }
.tb-cell a { display: inline-block; padding-block: 0.4rem; font-size: var(--fs-small); color: var(--graphite); text-decoration: none; }
.tb-cell a:hover { color: var(--ink); }
.tb-brand > p:not(.script) { margin-top: var(--sp-2); font-size: var(--fs-small); max-width: 22rem; }
.tb-brand .script { margin-top: var(--sp-3); font-size: 1.5rem; transform: rotate(-3deg); transform-origin: left; }
.tb-label { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--graphite-faint); margin-bottom: 0.6rem; }
.tb-meta p:not(.tb-label) { color: var(--graphite); font-weight: 600; font-size: var(--fs-small); margin-bottom: var(--sp-3); }
.tb-meta p:last-child { margin-bottom: 0; }
.fine { margin-top: var(--sp-1); font-size: 0.8125rem; }
.fine a { display: inline-block; padding-block: 0.6rem; }

/* ---------- Floating buttons: WhatsApp left, back-to-top right ---------- */
.wa-float, .to-top {
  position: fixed; bottom: var(--sp-4); z-index: 55;
  display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  background: var(--white); border: 1px solid var(--rule-strong); border-radius: 50%;
  box-shadow: 3px 4px 0 0 rgba(35, 37, 43, 0.3);
  transition: transform 0.2s ease-out, opacity 0.25s ease-out, visibility 0.25s;
}
.wa-float { left: var(--sp-4); }
.wa-float svg { width: 1.7rem; height: 1.7rem; fill: #128C7E; }
.to-top { right: var(--sp-4); padding: 0; cursor: pointer; color: var(--ink); opacity: 0; visibility: hidden; transform: translateY(8px); }
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top svg { width: 1.5rem; height: 1.5rem; filter: url(#graphite); }
.to-top svg path { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.wa-float:hover, .to-top.is-visible:hover { transform: translate(-2px, -2px); }

/* ---------- Breakpoints ---------- */
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: var(--sp-5); }
  .section-head { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); gap: var(--gap-split); align-items: end; }
  .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); gap: var(--gap-split); }
  .split--art { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr); align-items: center; }
  .split--slip { align-items: center; }
  .tool { padding-left: var(--sp-4); border-left: 1px solid var(--rule); }
  .tool-grid { border-right: 1px solid var(--rule); }
  /* eight services sit four across; the "all of it" strip closes the grid */
  .tool-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool--all { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-4); }
  .tool--all h3 { margin-top: 0; }
  .tool--all p { flex: 1 1 18rem; }
  .tool--all .text-link { margin-top: 0; }
}

@media (max-width: 991.98px) {
  .process-step:not(:last-child)::after { display: none; }
  .section-aside .script, .tool-art--square { display: none; }
}

@media (max-width: 767.98px) {
  :root { --header-h: 4.25rem; }
  .wrap { width: min(100% - 2.5rem, var(--wrap)); }
  .script--cta { display: none; }
  .cta-row .btn { flex: 1 1 100%; }
  .u { white-space: normal; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .tool-art--eraser { right: 5%; width: 64px; }
  .site-footer { padding-bottom: 6.5rem; }   /* clears the floating buttons */
}

/* ==========================================================================
   Inner pages + mobile drawer
   ========================================================================== */

/* ---------- Mobile drawer: full-screen menu that slides in from the right ---------- */
.drawer {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column;
  width: 100%; height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
  background-color: var(--paper);
  background-image:
    linear-gradient(rgba(35, 37, 43, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 37, 43, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.38s cubic-bezier(0.22, 0.8, 0.26, 1), visibility 0s 0.38s;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer-top { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); flex: none; border-bottom: 1px solid var(--rule); }
.drawer-close { display: grid; }
.drawer-body { flex: 1; display: flex; flex-direction: column; padding-block: var(--sp-3) var(--sp-5); }
.drawer-links a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding-block: 1.05rem; border-bottom: 1px solid var(--rule);
  font-size: clamp(1.75rem, 1rem + 4.5vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1;
  color: var(--graphite); text-decoration: none;
}
.drawer-links a::after { content: "→"; font-size: 0.6em; font-weight: 500; color: var(--ink); transition: transform 0.2s ease-out; }
.drawer-links a:hover::after { transform: translateX(4px); }
.drawer-links a[aria-current="page"] { color: var(--ink); }
/* links step in one after another once the drawer is open */
.drawer-links li, .drawer-foot { opacity: 0; transform: translateX(28px); transition: opacity 0.35s ease-out, transform 0.35s ease-out; }
.drawer.is-open .drawer-links li, .drawer.is-open .drawer-foot { opacity: 1; transform: none; transition-delay: calc(0.12s + var(--i, 0) * 0.045s); }
.drawer-foot { --i: 8; margin-top: auto; padding-top: var(--sp-5); display: grid; gap: var(--sp-3); }
.drawer-foot .btn { width: 100%; }
.drawer-contact { display: grid; gap: 0; }
.drawer-contact a { display: inline-block; padding-block: 0.6rem; color: var(--graphite); font-weight: 600; text-decoration: none; }
.drawer-foot .script { transform: rotate(-3deg); transform-origin: left; }
body.has-drawer { overflow: hidden; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 2rem + 5vw, 6rem) clamp(3.5rem, 2rem + 6vw, 6.5rem); border-bottom: 1px solid var(--rule); }
.page-hero-grid { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); align-items: end; }
.page-hero h1 { font-size: clamp(2.5rem, 1.4rem + 4vw, 4.25rem); max-width: 16ch; margin-bottom: var(--sp-3); }
/* each inner page opens with a small looping drawing of what the page is about */
.page-hero-art { width: min(100%, 15rem); }
.page-hero-art .art { display: block; }
svg .tape { fill: var(--ink-wash); stroke: rgba(35, 37, 43, 0.3); stroke-width: 0.8; stroke-dasharray: 2 2; }
.swing { transform-box: view-box; animation: sway 4.5s ease-in-out infinite alternate; }
.swing--tag { transform-origin: 224px 14px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.5em; margin-bottom: var(--sp-3); font-size: var(--fs-small); color: var(--graphite-faint); }
.crumbs a { color: var(--graphite-soft); text-underline-offset: 3px; }
.crumbs li + li::before { content: "/"; margin-right: 0.5em; }

/* ---------- Shared bits ---------- */
.check-list { display: grid; gap: 0.55rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: var(--fs-small); color: var(--graphite); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.2em; width: 1.05rem; height: 1.05rem;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A4FD0' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 13l5 6L21 4'/%3E%3C/svg%3E");
}
.cta-band { text-align: center; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band p { max-width: var(--measure); margin-inline: auto; }
.cta-band .cta-row { justify-content: center; }

/* ---------- Services page ---------- */
.jump-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0.4rem 1rem; cursor: pointer;
  font: 600 var(--fs-small)/1.2 var(--font-sans); color: var(--graphite); text-decoration: none;
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius-pill);
  transition: background-color 0.2s ease-out, color 0.2s ease-out, border-color 0.2s ease-out;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.service-rows { border-top: 1px solid var(--rule-strong); margin-top: var(--sp-head); }
.service-row { display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); border-bottom: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 1rem); }
.service-row h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.25rem); margin: var(--sp-2) 0 0.5rem; }
.service-row .tool-price { color: var(--ink); font-weight: 700; }
.service-row .check-list { margin-top: var(--sp-3); }
.proof { margin-top: var(--sp-3) !important; padding-top: var(--sp-2); border-top: 1px dashed var(--rule-strong); font-size: var(--fs-small); }

/* ---------- Work page ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--sp-head); }
.snap.is-hidden { display: none; }
.snap-tag { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-faint); padding: 0 0.25rem; margin-top: 0.5rem; }

/* ---------- Pricing page: plans ---------- */
.plan-grid { display: grid; gap: var(--sp-5) var(--sp-3); grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr)); }
.plan {
  position: relative; display: flex; flex-direction: column; gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-3) var(--sp-3);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px;
  box-shadow: 5px 6px 0 -1px var(--paper), 5px 6px 0 0 rgba(35, 37, 43, 0.28);
}
.section--tint .plan { box-shadow: 5px 6px 0 0 rgba(35, 37, 43, 0.2); }
.plan--featured { border-color: var(--ink); border-width: 1.5px; }
.plan-flag { position: absolute; top: -0.9rem; left: var(--sp-3); padding: 0.15rem 0.7rem; background: var(--ink); color: #fff; border-radius: var(--radius-pill); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-price { color: var(--graphite); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price small { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--graphite-soft); }
.plan-note { font-size: var(--fs-small); margin-top: -0.6rem; }
.spec-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.spec-list li { padding: 0.2rem 0.6rem; border: 1px solid var(--rule-strong); border-radius: var(--radius-pill); font-size: 0.8125rem; font-weight: 600; color: var(--graphite); background: var(--white); }
.plan .text-link { margin-top: auto; padding-top: var(--sp-2); }
.footnote { margin-top: var(--sp-4); font-size: var(--fs-small); }

/* ---------- Pricing page: starting-price cards ---------- */
.plan-grid--lead { grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: var(--sp-5) var(--sp-4); }
.plan-grid--three { grid-template-columns: repeat(auto-fit, minmax(16.5rem, 1fr)); gap: var(--sp-5) var(--sp-3); }
.plan-grid--three .plan { padding: var(--sp-5) var(--sp-4) var(--sp-4); gap: var(--sp-3); }
.plan-grid--three .plan h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.plan-grid--three .plan-price { font-size: clamp(1.875rem, 1.5rem + 1.2vw, 2.5rem); }
.plan-grid--lead .plan { padding: clamp(1.75rem, 1rem + 2.5vw, 3rem); gap: var(--sp-3); }
.plan-grid--lead .plan h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -0.03em; }
.plan-grid--lead .plan-price { font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.25rem); }
.plan-price span { font-size: var(--fs-small); font-weight: 600; letter-spacing: 0; color: var(--graphite-soft); margin-right: 0.15em; }
.plan-foot { padding-top: var(--sp-2); border-top: 1px dashed var(--rule-strong); font-size: var(--fs-small); }
.plan-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: auto; padding-top: var(--sp-2); }
.plan-actions .text-link { min-height: 2.75rem; }
.plan .plan-actions .text-link { margin-top: 0; padding-top: 0; }

/* ---------- About page ---------- */
.timeline { border-top: 1px solid var(--rule-strong); }
.timeline li { display: grid; gap: 0.25rem var(--sp-3); grid-template-columns: minmax(0, 1fr); padding-block: var(--sp-3); border-bottom: 1px solid var(--rule); }
.timeline b { font-family: var(--font-script); font-weight: 400; font-size: 2rem; line-height: 1; color: var(--ink); }
.timeline span { color: var(--graphite); font-weight: 500; }
.value-grid { display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.value { padding-top: var(--sp-3); border-top: 1px solid var(--rule-strong); }
.value h3 { margin: var(--sp-2) 0 0.5rem; }
.value p { font-size: var(--fs-small); }
.statement { font-size: clamp(1.25rem, 1rem + 1.2vw, 1.75rem); line-height: 1.45; color: var(--graphite); font-weight: 500; letter-spacing: -0.015em; max-width: 34ch !important; }

/* ---------- Contact page ---------- */
.reach-list { border-top: 1px solid var(--rule-strong); }
.reach-list li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem var(--sp-2); padding-block: 1.1rem; border-bottom: 1px solid var(--rule); }
.reach-list span { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--graphite-faint); }
.reach-list a, .reach-list b { color: var(--graphite); font-weight: 600; text-decoration: none; }
.reach-list a:hover { color: var(--ink); }
.form-status { font-size: var(--fs-small); font-weight: 600; color: var(--ink-deep); }
.form-status:empty { display: none; }
.form-status:focus { outline: none; }
.form-status.is-bad { color: var(--error); }
.field--trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-check { min-height: 4.0625rem; }
.form-note { font-size: 0.8125rem; color: var(--graphite-faint); }
.form-note a { color: inherit; text-decoration: underline; }
.sitemap-cols { display: grid; gap: var(--sp-6) var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.sitemap-cols h2 { font-size: var(--fs-h3, 1.25rem); margin-bottom: var(--sp-2); }
.sitemap-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.sitemap-cols a { color: var(--graphite); text-decoration: underline; text-underline-offset: 0.2em; }
.sitemap-cols a:hover { color: var(--ink); }
.fine a + a { margin-left: var(--sp-2); }
.form [type="submit"][disabled] { opacity: 0.6; cursor: progress; }
.field .hint { font-size: 0.8125rem; color: var(--graphite-faint); }

/* ---------- Blog ---------- */
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.75rem; font-size: var(--fs-small); color: var(--graphite-soft); }
.post-meta--hero { margin-top: var(--sp-3); }
.post-tag { padding: 0.15rem 0.7rem; border: 1px solid var(--ink); border-radius: var(--radius-pill); color: var(--ink); font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.post-feature {
  display: grid; gap: var(--sp-4); grid-template-columns: minmax(0, 1fr); align-items: center;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px;
  box-shadow: 8px 9px 0 -1px var(--paper), 8px 9px 0 0 rgba(35, 37, 43, 0.3);
}
.post-feature-art { display: block; max-width: 24rem; }
.post-feature h3 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.15; margin: var(--sp-2) 0; }
.post-feature h3 a { text-decoration: none; }
.post-feature h3 a:hover { color: var(--ink); }
.post-feature .text-link { margin-top: var(--sp-3); min-height: 2.75rem; }
.post-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.post-card { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-4); background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px; }
.post-card p:not(.post-meta) { font-size: var(--fs-small); }
/* not written yet: dashed outline, like a box pencilled in */
.post-card--planned { background: transparent; border-style: dashed; }

.post-layout { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1fr); }
.post-side-art { max-width: 20rem; margin-bottom: var(--sp-4); }
.post-toc { display: grid; gap: 0.1rem; counter-reset: toc; border-top: 1px solid var(--rule-strong); }
.post-toc li { counter-increment: toc; border-bottom: 1px solid var(--rule); }
.post-toc a { display: flex; gap: 0.75rem; padding-block: 0.7rem; color: var(--graphite); font-weight: 600; font-size: var(--fs-small); text-decoration: none; }
.post-toc a::before { content: counter(toc) "."; color: var(--ink); }
.post-toc a:hover { color: var(--ink); }
/* long-form reading: one comfortable column */
.post { max-width: 42rem; font-size: 1.125rem; line-height: 1.75; }
.post > p + p, .post > ul + p, .post > p + ul { margin-top: var(--sp-3); }
.post h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); max-width: none; margin: var(--sp-8) 0 var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--header-h) + 1rem); }
.post ul { display: grid; gap: 0.5rem; padding-left: 0; }
.post ul li { position: relative; padding-left: 1.6rem; }
.post ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 0.7rem; height: 2px; border-radius: 2px; background: var(--ink); }
.post-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-top: var(--sp-8); padding-top: var(--sp-3); border-top: 1px solid var(--rule-strong); }
.post-foot .text-link { min-height: 2.75rem; }

/* ---------- Single project ---------- */
.shot-frame { margin: 0; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 8px 8px 3px 3px; overflow: hidden; box-shadow: 8px 9px 0 -1px var(--paper), 8px 9px 0 0 rgba(35, 37, 43, 0.3); }
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 0.9rem; border-bottom: 1px solid var(--rule-strong); background: var(--sheet); }
.shot-bar i { width: 0.6rem; height: 0.6rem; border: 1px solid var(--graphite-soft); border-radius: 50%; }
.shot-bar b { margin-left: 0.6rem; font-size: 0.8125rem; font-weight: 500; color: var(--graphite-soft); }
.fact-list { margin: 0; border-top: 1px solid var(--rule-strong); }
.fact-list div { display: grid; gap: 0.15rem var(--sp-2); grid-template-columns: 8.5rem minmax(0, 1fr); padding-block: 1rem; border-bottom: 1px solid var(--rule); }
.fact-list dt { font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-faint); padding-top: 0.3em; }
.fact-list dd { margin: 0; color: var(--graphite); font-weight: 600; }
.story { display: grid; gap: var(--sp-5) var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); counter-reset: story; }
.story > li { counter-increment: story; padding-top: var(--sp-3); border-top: 1px solid var(--rule-strong); }
.story h3 { margin-bottom: 0.6rem; }
.story h3::before { content: counter(story) ". "; color: var(--ink); }
.story .check-list { margin-top: 0.25rem; }
.story > li > p { font-size: var(--fs-body); }
.story .text-link { margin-top: 0.5rem; }
/* a pencilled reminder of content still to come */
.todo { margin-top: var(--sp-2) !important; padding: 0.5rem 0.75rem; border: 1px dashed var(--rule-strong); border-radius: 3px; font-family: var(--font-script); font-size: 1.5rem; line-height: 1.05; color: var(--ink-deep); }

@media (min-width: 768px) {
  .post-feature { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
}
@media (min-width: 992px) {
  .post-layout { grid-template-columns: 16rem minmax(0, 1fr); gap: var(--gap-split); }
  .post-side { position: sticky; top: calc(var(--header-h) + 1.5rem); align-self: start; }
  .split--project { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}

/* ---------- Social samples: posts pegged to a line ---------- */
.page-jump { margin-top: var(--sp-4); }
#websites, #social { scroll-margin-top: var(--header-h); }
.samples-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem var(--sp-3); margin-bottom: var(--sp-3); }
.samples-head h3 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); letter-spacing: -0.02em; }
.samples-head .script { transform: rotate(-2deg); }
.line { position: relative; padding-top: 0.75rem; }
.line + .line { margin-top: var(--sp-5); }
/* the string itself: a taut pencil line with a knot at each end */
.line::before { content: ""; position: absolute; left: 0; right: 0; top: 0.75rem; border-top: 1.5px solid var(--graphite); filter: url(#graphite); }
.line::after {
  content: ""; position: absolute; top: calc(0.75rem - 4px); left: -4px; right: -4px; height: 9px; pointer-events: none;
  background: radial-gradient(circle, var(--graphite) 0 3px, transparent 3.5px) left center / 9px 9px no-repeat,
              radial-gradient(circle, var(--graphite) 0 3px, transparent 3.5px) right center / 9px 9px no-repeat;
}
.line-row { display: grid; gap: var(--sp-4); grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: start; }
.line-row--mixed { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: var(--sp-3); }
.hang { position: relative; padding-top: 1.5rem; transform-origin: 50% 0; transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1); }
.hang:nth-child(odd) { transform: rotate(-1.6deg); }
.hang:nth-child(even) { transform: rotate(1.3deg) translateY(0.5rem); }
.hang:nth-child(3n) { transform: rotate(-0.6deg) translateY(0.9rem); }
.hang:hover, .hang:focus-within { transform: rotate(0deg) translateY(0.25rem); z-index: 2; }
/* clothes peg */
.hang::before {
  content: ""; position: absolute; z-index: 3; top: -0.55rem; left: 50%; width: 0.8rem; height: 2.3rem; margin-left: -0.4rem;
  background: linear-gradient(var(--sheet), var(--sheet)) padding-box, var(--sheet);
  border: 1.5px solid var(--graphite); border-radius: 3px 3px 2px 2px;
  box-shadow: inset 0 -0.85rem 0 -0.05rem var(--ink-wash);
}
.hang-open { display: block; width: 100%; padding: 0.4rem; cursor: zoom-in; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 2px; box-shadow: 4px 5px 0 0 rgba(35, 37, 43, 0.22); }
.hang-open img { display: block; width: 100%; height: auto; }
.hang-cap { margin-top: 0.75rem; font-size: 0.8125rem; line-height: 1.35; color: var(--graphite-soft); }
.hang-cap b { display: block; color: var(--graphite); font-size: var(--fs-small); font-weight: 700; }

/* "there is more" markers: an empty frame on the sheet, a note on the line */
.snap--more::before { display: none; }
.snap--more > a { justify-content: center; gap: 0.5rem; min-height: 16rem; padding: var(--sp-4); background: transparent; border: 1.5px dashed var(--rule-strong); box-shadow: none; }
.snap--more > a:hover, .snap--more > a:focus-visible { box-shadow: none; border-color: var(--ink); }
.more-dots { font-size: 3rem; line-height: 0.6; letter-spacing: 0.1em; color: var(--ink); }
.snap--more .snap-name, .snap--more .snap-text { padding-inline: 0; }
.snap--more .text-link { padding: 0.5rem 0 0; margin-top: 0; }
.peg-note { display: flex; flex-direction: column; justify-content: center; gap: 0.75rem; aspect-ratio: 9 / 15; padding: 0.9rem 0.7rem; text-decoration: none; background: var(--sheet); border: 1.5px dashed var(--rule-strong); border-radius: 3px; }
.peg-note .script { font-size: 1.625rem; line-height: 0.95; color: var(--graphite); transform: rotate(-3deg); }
.peg-note .text-link { font-size: 0.75rem; gap: 0.3em; min-height: 0; }
.peg-note:hover { border-color: var(--ink); }

/* a reel: a phone drawn in pencil, opens the video on Facebook */
.reel {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 0.5rem;
  aspect-ratio: 9 / 15; padding: 0.9rem 0.6rem 0.8rem; text-align: center; text-decoration: none; color: var(--graphite);
  background-color: var(--white);
  background-image: repeating-linear-gradient(-45deg, rgba(35, 37, 43, 0.07) 0 1px, transparent 1px 7px);
  border: 1.5px solid var(--graphite); border-radius: 1.1rem;
  box-shadow: 4px 5px 0 0 rgba(35, 37, 43, 0.22);
}
.reel-top { display: flex; align-items: center; gap: 0.35rem; font-size: 0.6875rem; font-weight: 700; line-height: 1.2; text-align: left; }
.reel-top i { flex: none; width: 1.1rem; height: 1.1rem; border: 1.5px solid var(--graphite); border-radius: 50%; background: var(--sheet); }
.reel-play { width: 46%; max-width: 4rem; filter: url(#graphite); transition: transform 0.25s ease-out; }
.reel-play path { fill: var(--white); stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.reel-play .reel-tri { fill: var(--ink); }
.reel:hover .reel-play { transform: scale(1.12); }
.reel-about { font-family: var(--font-script); font-size: 1.375rem; line-height: 0.95; color: var(--graphite-soft); }
.reel .text-link { font-size: 0.75rem; gap: 0.3em; min-height: 0; }
.samples-hint { display: none; margin-top: var(--sp-2); font-family: var(--font-script); font-size: 1.5rem; color: var(--graphite-soft); text-align: right; }

.lightbox { max-width: min(92vw, 34rem); padding: 0.6rem; background: var(--white); border: 1px solid var(--rule-strong); border-radius: 3px; box-shadow: 10px 12px 0 0 rgba(35, 37, 43, 0.35); overflow: visible; }
.lightbox::backdrop { background: rgba(35, 37, 43, 0.72); }
.lightbox img { display: block; width: 100%; height: auto; max-height: 82vh; object-fit: contain; }
.lightbox-close { position: absolute; top: -1.25rem; right: -1.25rem; background: var(--paper); }

@media (max-width: 991.98px) {
  /* on small screens each line scrolls sideways instead of wrapping */
  .line { margin-inline: -1.25rem; padding-inline: 1.25rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 1rem; }
  .line::-webkit-scrollbar { display: none; }
  .line::before, .line::after { display: none; }
  .line-row, .line-row--mixed { display: flex; gap: var(--sp-3); width: max-content; padding-top: 0; border-top: 1.5px solid var(--graphite); }
  .hang { flex: none; width: 13.5rem; scroll-snap-align: center; }
  .line-row--mixed .hang { width: 11.5rem; }
  .samples-hint { display: block; }
  .lightbox-close { top: 0.5rem; right: 0.5rem; }
}

.form-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* ---------- Plain document pages (privacy) + 404 ---------- */
.doc { max-width: 44rem; }
.doc h2 { font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); max-width: none; margin: var(--sp-6) 0 var(--sp-2); padding-top: var(--sp-4); border-top: 1px solid var(--rule); }
.doc h2:first-of-type { margin-top: var(--sp-4); }
.doc p + p, .doc ul + p, .doc p + ul { margin-top: var(--sp-2); }
.doc ul { display: grid; gap: 0.45rem; }
.doc ul li { position: relative; padding-left: 1.6rem; }
.doc ul li::before { content: ""; position: absolute; left: 0.2rem; top: 0.75em; width: 0.7rem; height: 2px; border-radius: 2px; background: var(--ink); }
.lost { text-align: center; padding-block: clamp(4rem, 2rem + 10vw, 9rem); }
.lost .tool-art { margin: 0 auto var(--sp-4); transform: rotate(-8deg); }
.lost h1 { max-width: 14ch; margin-inline: auto; }
.lost .lede { margin-inline: auto; }
.lost .cta-row { justify-content: center; }

/* ---------- Promotions: both prices are in the page; site.js shows the offer only between its dates ---------- */
.price-was, .price-sale, .offer-note, .offer-banner { display: none; }
.price-was, .price-sale, .price-regular { white-space: nowrap; }
.plan-price.offer-live .price-regular { display: none; }
.plan-price.offer-live .price-was { display: inline; font-size: 0.55em; font-weight: 600; color: var(--graphite-faint); text-decoration-thickness: 2px; margin-right: 0.25em; }
.plan-price.offer-live .price-sale { display: inline; color: var(--ink); }
.offer-note.offer-live { display: inline-block; align-self: flex-start; margin-top: -0.5rem; padding: 0.2rem 0.7rem; background: var(--ink-wash); border: 1px dashed var(--ink); border-radius: var(--radius-pill); color: var(--ink-deep); font-size: 0.8125rem; font-weight: 700; transform: rotate(-1.5deg); }
.offer-banner.offer-live { display: block; padding-block: var(--sp-2); background: var(--ink); color: #fff; }
.offer-banner .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.25rem var(--sp-3); }
.offer-banner .text-link { color: #fff; }
.post a:not(.text-link) { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.post a:not(.text-link):hover { color: var(--ink-deep); }
.post h2 { scroll-margin-top: calc(var(--header-h) + 1rem); }
.post-grid--older { margin-top: var(--sp-5); }

/* ---------- Founders + small helpers ---------- */
.check-list--spaced { margin-top: var(--sp-3); }
.small-note { margin-top: var(--sp-3) !important; font-size: var(--fs-small); color: var(--graphite-faint); }
.founder-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.founder {
  display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: 3px;
  box-shadow: 5px 6px 0 0 rgba(35, 37, 43, 0.2);
}
/* pencil-ringed initials instead of a photo */
.avatar {
  flex: none; display: grid; place-items: center; width: 4.5rem; height: 4.5rem;
  font-family: var(--font-script); font-size: 2.25rem; line-height: 1; color: var(--ink);
  border: 1.5px solid var(--graphite); border-radius: 58% 42% 55% 45% / 48% 56% 44% 52%;
  background: var(--white); transform: rotate(-4deg);
}
.founder h3 span { font-weight: 500; color: var(--graphite-soft); }
.founder-role { margin: 0.2rem 0 0.6rem; font-size: var(--fs-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--graphite-faint); }
.founder p:not(.founder-role) { font-size: var(--fs-small); margin-bottom: 0.75rem; }

@media (min-width: 768px) {
  .timeline li { grid-template-columns: 9rem minmax(0, 1fr); align-items: baseline; }
}
@media (min-width: 992px) {
  .drawer { display: none; }
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: var(--gap-split); align-items: center; }
  .page-hero-art { width: 100%; justify-self: end; }
  .service-row { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); gap: var(--gap-split); }
  .service-row .check-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem var(--sp-3); }
}
@media (max-width: 991.98px) {
  .site-nav { display: none; }
  .nav-toggle { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero [data-reveal], .js .page-hero [data-reveal] { animation: none; }
  .js [data-reveal] .draw, .js [data-draw] .draw { stroke-dashoffset: 0; }
  .js [data-reveal] .fade, .js [data-draw] .fade { opacity: 1; }
}

/* ---------- Cookie notice (shown once, only where statistics are on) ---------- */
.cookie-note {
  position: fixed; z-index: 60; left: 50%; bottom: var(--sp-4); transform: translateX(-50%);
  width: min(34rem, calc(100% - 2 * var(--sp-3)));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-3);
  background: var(--sheet); border: 1px solid var(--rule-strong); border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(35, 37, 43, 0.14);
  font-size: var(--fs-small); color: var(--graphite);
}
.cookie-note p { margin: 0; flex: 1 1 14rem; }
.cookie-note a { color: inherit; text-decoration: underline; }
.cookie-note-actions { display: flex; gap: 0.5rem; }
@media (max-width: 40rem) { .cookie-note { bottom: 5.5rem; } }
