/* =========================================================
   dimbonix.com — hand-made, paper & ink, Prague-tram red
   ========================================================= */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/bricolage-latin-ext.woff2") format("woff2");
  font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-latin.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-latin-ext.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-latin-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif";
  src: url("../fonts/source-serif-latin-ext-italic.woff2") format("woff2");
  font-weight: 200 900; font-style: italic; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  src: url("../fonts/caveat-latin-ext.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #FBF7EF;
  --paper-2: #F4EDDF;
  --paper-3: #EAE0CB;
  --ink: #1E1915;
  --ink-2: #4B423B;
  --ink-3: #6F655C;
  --red: #C8281E;
  --red-ink: #B3241B;
  --red-soft: #F8D9D3;
  --yellow: #FFD94A;
  --yellow-soft: #FFF1C2;
  --green: #2E7D4F;

  --font-display: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Source Serif", "Iowan Old Style", Georgia, serif;
  --font-hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --wrap: 1180px;
  --radius: 14px;
  --border: 2px solid var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  background-color: var(--paper);
  /* faint paper grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.12 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1.06rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--red-ink);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: .18em;
  transition: color .2s var(--ease), text-decoration-color .2s var(--ease);
}
a:hover { color: var(--ink); text-decoration-color: var(--red); }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.6rem); }
h3 { font-size: clamp(1.35rem, 1.2rem + .6vw, 1.7rem); letter-spacing: -0.015em; }
h4 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

strong { font-weight: 700; }

mark {
  color: inherit;
  background: linear-gradient(transparent 52%, var(--yellow) 52%, var(--yellow) 90%, transparent 90%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.mono { font-family: var(--font-mono); font-size: .88em; }
.muted { color: var(--ink-3); }
.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 1rem; top: 1rem; z-index: 1000;
  padding: .6em 1em; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; text-decoration: none;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; color: var(--paper); }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { --wrap: 820px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .8em 1.35em;
  border: var(--border); border-radius: 999px;
  background: var(--red); color: #fff;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.1;
  text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background-color .15s;
}
.btn:hover { color: #fff; transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn-small { padding: .55em 1.05em; font-size: .95rem; }
.btn-ink { background: var(--ink); color: var(--paper); box-shadow: 3px 3px 0 var(--red-ink); }
.btn-ink:hover { color: var(--paper); box-shadow: 5px 5px 0 var(--red-ink); }

.link-arrow {
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
  text-decoration-color: var(--yellow); text-decoration-thickness: .3em; text-underline-offset: -.05em;
  text-decoration-skip-ink: none;
}
.link-arrow:hover { text-decoration-color: var(--red); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(251 247 239 / .9);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--ink); }
.header-inner { display: flex; align-items: center; gap: 1rem clamp(1rem, 2vw, 1.6rem); min-height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; margin-right: auto; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--red); color: var(--paper);
  border: var(--border);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.04em;
  transform: rotate(-8deg);
  transition: transform .3s var(--ease);
}
.brand:hover .brand-mark { transform: rotate(8deg) scale(1.05); }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }

.site-nav { display: flex; align-items: center; gap: clamp(.8rem, 2vw, 1.8rem); }
.site-nav a:not(.btn) {
  color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  background: linear-gradient(var(--yellow), var(--yellow)) 0 85% / 0 .4em no-repeat;
  transition: background-size .25s var(--ease);
}
.site-nav a:not(.btn):hover { background-size: 100% .4em; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 2px; flex: none;
  padding: 3px; border: var(--border); border-radius: 999px; background: var(--paper);
  font-family: var(--font-mono); font-size: .76rem; font-weight: 700; letter-spacing: .06em; line-height: 1;
}
.lang-switch > * { padding: .45em .6em; border-radius: 999px; color: var(--ink); text-decoration: none; }
.lang-switch [aria-current] { background: var(--ink); color: var(--paper); }
.lang-switch a:hover { background: var(--yellow); color: var(--ink); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 12px;
  border: var(--border); background: var(--paper); color: var(--ink);
  place-items: center; cursor: pointer; box-shadow: var(--shadow-sm);
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(4.5rem, 3rem + 6vw, 8rem); position: relative; }
.section-tint { background: var(--paper-2); border-block: 2px solid var(--ink); }
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); }
.section-head h2 + .lede { margin-top: 1.1rem; }

.kicker, .eyebrow {
  display: inline-flex; align-items: center; gap: .5em;
  margin-bottom: .9rem;
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--red-ink);
}
.lede { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--ink-2); }

.scribble {
  white-space: nowrap;
  padding-bottom: .12em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c30-6 50-6 70-2s40 4 62-1 44-5 64 1' fill='none' stroke='%23C8281E' stroke-width='3.2' stroke-linecap='round'/%3E%3C/svg%3E") 0 100% / 100% .3em no-repeat;
}

.dot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--ink-3); flex: none; }
.dot-green { background: var(--green); box-shadow: 0 0 0 3px rgb(46 125 79 / .18); }

/* handwritten margin notes */
.note {
  font-family: var(--font-hand); font-weight: 600;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.7rem); line-height: 1.05;
  color: var(--red-ink);
  display: flex; align-items: center; gap: .3rem;
}
.note-arrow { width: 70px; height: 44px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(4rem, 3rem + 5vw, 7rem); overflow-x: clip; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(2.5rem, 2rem + 4vw, 6rem);
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.7rem, 1.6rem + 5vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.035em;
  margin-bottom: clamp(1.8rem, 1.5rem + 1.5vw, 2.8rem);
  font-variation-settings: "opsz" 96;
}
.letter-body { max-width: 640px; }
.letter-body p + p { margin-top: 1em; }
.salutation { font-family: var(--font-hand); font-size: 2rem; font-weight: 600; color: var(--red-ink); line-height: 1; }
.signoff { font-style: italic; color: var(--ink-2); }
.signature {
  font-family: var(--font-hand); font-weight: 700; font-size: 3.4rem; line-height: .9;
  color: var(--ink); transform: rotate(-4deg); transform-origin: left; display: inline-block;
  margin-top: .2em !important;
}
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.6rem; margin-top: 2.4rem; }

.hero-side { position: relative; padding-top: 1rem; }

.stamp-wrap {
  width: 196px; margin-left: auto; margin-right: 34px;
  filter: drop-shadow(3px 4px 0 rgb(30 25 21 / .22));
  transform: rotate(4deg);
  transition: transform .4s var(--ease);
}
.stamp-wrap:hover { transform: rotate(-1deg) scale(1.03); }
.stamp {
  --r: 6px;
  --s: 18px;
  padding: 13px;
  background: #fff;
  /* perforated edge: holes only in the padding ring */
  -webkit-mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / var(--s) var(--s) round,
    linear-gradient(#000 0 0) content-box;
  mask:
    radial-gradient(var(--r) at var(--r) var(--r), #0000 97%, #000) calc(-1 * var(--r)) calc(-1 * var(--r)) / var(--s) var(--s) round,
    linear-gradient(#000 0 0) content-box;
}
.stamp-inner {
  border: 2px solid var(--red); background: var(--red-soft); color: var(--red);
  padding: 14px 12px 10px; text-align: center;
  display: grid; gap: 2px;
}
.skyline { width: 100%; height: auto; color: var(--red); }
.stamp-city { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; letter-spacing: -.02em; line-height: 1; margin-top: 6px; }
.stamp-value { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .14em; }

.postmark {
  position: absolute; top: 150px; right: 196px;
  width: 120px; color: var(--ink); opacity: .7;
  transform: rotate(-14deg);
  font-family: var(--font-mono);
  pointer-events: none;
}
.postmark::after {
  /* wavy cancellation lines */
  content: ""; position: absolute; left: 96%; top: 52%; width: 92px; height: 52px; opacity: .8;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 52'%3E%3Cg fill='none' stroke='%231E1915' stroke-width='2.2'%3E%3Cpath d='M0 8q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 26q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3Cpath d='M0 44q10-6 20 0t20 0 20 0 20 0 20 0 20 0'/%3E%3C/g%3E%3C/svg%3E") no-repeat;
}

.facts {
  list-style: none; padding: 1.4rem 1.5rem; margin-top: 3.2rem;
  background: var(--paper); border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: grid; gap: .85rem; font-size: 1rem; line-height: 1.4;
}
.facts li { display: grid; gap: .1rem; }
.facts-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* ---------- Work / case studies ---------- */
.case {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 1.5rem + 4vw, 5.5rem);
  align-items: center;
}
.case + .case { margin-top: clamp(4.5rem, 3.5rem + 5vw, 8rem); }
.case-flip .case-visual { order: 2; }

.case-visual { position: relative; display: grid; justify-items: center; }
.case-meta {
  display: flex; align-items: center; gap: .5em; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: .82rem; color: var(--ink-2); margin-bottom: .7rem;
}
.case h3 { font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.8rem); letter-spacing: -.03em; }
.case-client { margin-top: .8rem; color: var(--ink-2); font-size: 1.1rem; }
.case-story { margin-top: 1.6rem; display: grid; gap: 1.1rem; }
.case-story dt {
  font-family: var(--font-display); font-weight: 800; font-size: .95rem;
  letter-spacing: .02em; text-transform: uppercase; color: var(--red-ink);
}
.case-story dd { margin: .15rem 0 0; }

.ticks { list-style: none; padding: 0; margin-top: 1.4rem; display: grid; gap: .5rem; }
.ticks li { position: relative; padding-left: 2rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .28em; width: 1.25rem; height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 13c3 2 5 4 6 7 3-7 7-12 12-16' fill='none' stroke='%23C8281E' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.stack { list-style: none; padding: 0; margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.stack li {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 600;
  padding: .3em .75em; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper);
}
.stack-lg li { font-size: .85rem; }

.mock-caption {
  margin-top: 1rem; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}

/* phone mockup */
.mock-phone { display: grid; justify-items: center; transform: rotate(-3deg); }
.phone {
  width: 270px; aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 38px; padding: 12px;
  box-shadow: 10px 10px 0 var(--red);
  position: relative;
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 76px; height: 20px; translate: -50% 0; background: var(--ink); border-radius: 12px; z-index: 2; }
.phone > .app-bar, .phone > .app-body { position: relative; }
.app-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 40px 16px 14px; border-radius: 28px 28px 0 0;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: .95rem; letter-spacing: .02em;
}
.app-logo b { color: var(--yellow); padding-inline: 2px; }
.app-avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); border: 2px solid #fff; }
.app-body {
  background: var(--paper); border-radius: 0 0 28px 28px; padding: 14px 12px 12px;
  height: calc(100% - 82px); display: flex; flex-direction: column;
  font-family: var(--font-display);
}
.app-date { font-weight: 700; font-size: .78rem; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; margin: 0 4px 10px; }
.app-jobs { list-style: none; padding: 0; display: grid; gap: 8px; }
.app-jobs li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  padding: 10px; border: 1.5px solid var(--ink); border-radius: 12px; background: #fff;
}
.job-time { font-family: var(--font-mono); font-size: .72rem; font-weight: 700; }
.job-main { display: grid; line-height: 1.15; min-width: 0; }
.job-main b { font-size: .82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job-main i { font-style: normal; font-size: .7rem; color: var(--ink-3); }
.chip { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .7rem; border: 1.5px solid var(--ink); color: var(--ink-3); }
.chip-done { background: var(--green); border-color: var(--green); color: #fff; }
.chip-now { background: var(--yellow); color: var(--red); }
.app-tabbar { margin-top: auto; display: flex; justify-content: space-around; padding-top: 10px; border-top: 1.5px solid var(--paper-3); }
.app-tabbar span { width: 22px; height: 22px; border-radius: 7px; background: var(--paper-3); }
.app-tabbar .on { background: var(--red); }

/* browser mockup */
.mock-browser { width: 100%; display: grid; justify-items: center; transform: rotate(2deg); }
.browser {
  width: min(100%, 520px);
  border: var(--border); border-radius: 16px; overflow: hidden; background: #fff;
  box-shadow: 10px 10px 0 var(--ink);
  font-family: var(--font-display);
}
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper-2); border-bottom: var(--border); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.browser-bar span:first-child { background: var(--red); }
.browser-bar span:nth-child(2) { background: var(--yellow); }
.browser-bar em { margin-left: 10px; flex: 1; font-style: normal; font-family: var(--font-mono); font-size: .72rem; background: var(--paper); border: 1.5px solid var(--ink); border-radius: 999px; padding: 2px 10px; color: var(--ink-2); }
.app-top { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #3D5A80; color: #fff; font-size: .9rem; }
.app-top b { color: #FFD94A; font-weight: 700; }
.app-split { display: grid; grid-template-columns: 54px 1fr; min-height: 250px; }
.app-side { background: var(--paper-2); border-right: 1.5px solid var(--paper-3); display: grid; align-content: start; gap: 10px; padding: 14px 0; justify-items: center; }
.app-side span { width: 24px; height: 24px; border-radius: 7px; background: var(--paper-3); }
.app-side .on { background: #3D5A80; }
.app-main { padding: 14px 16px; }
.app-h { font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.app-main table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.app-main td { padding: 9px 0; border-bottom: 1.5px dashed var(--paper-3); vertical-align: middle; }
.app-main td:first-child { display: grid; line-height: 1.2; }
.app-main td i { font-style: normal; color: var(--ink-3); font-size: .72rem; }
.app-main td:last-child { width: 42%; }
.bar { display: block; height: 10px; border-radius: 99px; background: var(--paper-2); border: 1.5px solid var(--ink); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--yellow); border-right: 1.5px solid var(--ink); }

.note-case-1 { position: absolute; right: -1rem; top: 1.5rem; max-width: 9rem; transform: rotate(5deg); flex-direction: column; align-items: flex-start; }
.note-case-2 { position: absolute; left: -1rem; bottom: -2.4rem; transform: rotate(-4deg); }

.work-more {
  margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); text-align: center;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);
}

/* ---------- Services ---------- */
.services {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem;
}
.service {
  position: relative;
  padding: clamp(1.6rem, 1.3rem + 1vw, 2.3rem);
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.service:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.service:nth-child(1) { background: var(--yellow-soft); }
.service:nth-child(4) { background: var(--red-soft); }
.service-icon { width: 52px; height: 52px; color: var(--red); margin-bottom: 1rem; }
.service h3 { margin-bottom: .7rem; }
.service p { color: var(--ink-2); }
.fit { margin-top: 1.1rem; padding-top: 1rem; border-top: 2px dashed rgb(30 25 21 / .25); font-size: .98rem; }
.fit span { font-family: var(--font-hand); font-size: 1.4rem; font-weight: 700; color: var(--red-ink); margin-right: .2em; }

/* ---------- Process ---------- */
.process-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 2rem + 4vw, 5rem); align-items: start;
}
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 1.8rem; }
.steps li { counter-increment: step; position: relative; padding-left: 4.4rem; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.35rem;
  width: 3.1rem; height: 3.1rem; display: grid; place-items: center;
  font-family: var(--font-hand); font-weight: 700; font-size: 2.1rem; line-height: 1;
  color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 50%;
  transform: rotate(-6deg);
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.5rem; top: 3.1rem; bottom: -1.6rem;
  border-left: 2px dashed rgb(30 25 21 / .35);
}
.steps h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.steps p { color: var(--ink-2); }

.code-card {
  background: var(--ink); color: #EDE6DA;
  border: var(--border); border-radius: var(--radius);
  box-shadow: 8px 8px 0 var(--red);
  overflow: hidden;
  position: sticky; top: 100px;
}
.code-head { display: flex; align-items: center; justify-content: space-between; padding: .7rem 1rem; border-bottom: 1px solid rgb(255 255 255 / .12); }
.code-file { font-family: var(--font-mono); font-size: .8rem; color: #C9BFB3; }
.code-run {
  font-family: var(--font-display); font-weight: 800; font-size: .85rem; letter-spacing: .06em; text-transform: uppercase;
  padding: .4em .95em; border-radius: 999px; border: 2px solid var(--paper);
  background: var(--red); color: #fff; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s;
}
.code-run:hover { transform: translateY(-1px); background: #D9362B; }
.code-run:disabled { opacity: .6; cursor: progress; transform: none; }
.code {
  margin: 0; padding: 1.2rem 1.2rem 1rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: clamp(.78rem, .72rem + .2vw, .9rem); line-height: 1.75;
  tab-size: 2;
}
.code .c { color: #9C9083; font-style: italic; }
.code .k { color: #FF8A7A; font-weight: 600; }
.code .f { color: #FFD94A; }
.code .s { color: #9FD7A8; }
.code-out {
  min-height: 7.4rem; padding: 1rem 1.2rem 1.2rem;
  background: #2A231E; border-top: 1px dashed rgb(255 255 255 / .18);
  font-family: var(--font-mono); font-size: .85rem; line-height: 1.75;
}
.code-out .muted { color: #9C9083; }
.code-out .ok { color: #9FD7A8; }
.code-out div { white-space: pre-wrap; }
.code-out .cursor::after { content: "▍"; animation: blink 1s steps(1) infinite; color: var(--yellow); margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.sub-head { margin: clamp(3.5rem, 3rem + 2vw, 5rem) 0 1.4rem; font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); }
.about-text .sub-head { margin-top: 2.6rem; margin-bottom: 1rem; font-size: 1.45rem; }

.plans { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.plan {
  position: relative;
  padding: 1.6rem; background: var(--paper);
  border: var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.plan h4 { margin-bottom: .5rem; }
.plan p { color: var(--ink-2); font-size: 1rem; }
.plan-featured { background: var(--ink); color: var(--paper); box-shadow: 5px 5px 0 var(--red); }
.plan-featured p { color: #D9D0C4; }
.plan .plan-badge {
  position: absolute; top: -1rem; right: 1rem;
  font-family: var(--font-hand); font-weight: 700; font-size: 1.3rem; line-height: 1;
  color: var(--ink); background: var(--yellow); border: var(--border); border-radius: 999px; padding: .3em .7em;
  transform: rotate(4deg);
}

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2.5rem, 2rem + 5vw, 7rem); align-items: start; }
.about-photo { position: sticky; top: 110px; display: grid; justify-items: center; }
.polaroid {
  width: min(100%, 340px);
  padding: 14px 14px 0; background: #fff;
  border: var(--border); box-shadow: var(--shadow);
  transform: rotate(-3deg);
  position: relative;
}
.polaroid::before {
  /* tape */
  content: ""; position: absolute; top: -16px; left: 50%; width: 110px; height: 32px; translate: -50% 0; rotate: 3deg;
  background: rgb(255 217 74 / .75); border: 1px solid rgb(30 25 21 / .15);
}
.polaroid img { aspect-ratio: 1; object-fit: cover; width: 100%; border: 1.5px solid var(--ink); }
.polaroid figcaption { font-family: var(--font-hand); font-weight: 700; font-size: 1.8rem; text-align: center; padding: .55rem 0 .7rem; }
.note-about { margin-top: 2rem; max-width: 18rem; transform: rotate(-2deg); flex-direction: column; align-items: flex-start; }
.note-about .note-arrow { transform: scaleY(-1) rotate(-10deg); margin-left: 3rem; order: -1; }
.about-text h2 { margin-bottom: 1.2rem; }
.about-text > p + p { margin-top: 1em; }
.beliefs { padding-left: 0; list-style: none; display: grid; gap: .7rem; }
.beliefs li { padding-left: 2rem; position: relative; }
.beliefs li::before {
  content: "✦"; position: absolute; left: .1rem; top: .05em; color: var(--red); font-size: 1.05em;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 1rem; }
.faq details {
  background: var(--paper); border: var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s var(--ease);
}
.faq details[open] { box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 1.4rem;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none;
  width: 2rem; height: 2rem; display: grid; place-items: center;
  border: var(--border); border-radius: 50%; background: var(--yellow);
  font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; line-height: 1;
  transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); background: var(--red); color: #fff; }
.faq details p { padding: 0 1.4rem 1.3rem; color: var(--ink-2); max-width: 65ch; }

/* ---------- Contact ---------- */
.section-red { background: var(--red); color: var(--paper); border-top: 2px solid var(--ink); }
.section-red a { color: var(--paper); text-decoration-color: var(--yellow); }
.section-red a:hover { color: #fff; text-decoration-color: #fff; }
.kicker-light { color: var(--yellow-soft); }
.contact-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 2rem + 4vw, 6rem); align-items: start; }
.contact-intro h2 { font-size: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem); letter-spacing: -.035em; margin-bottom: 1.2rem; }
.contact-intro > p { font-size: 1.2rem; }
.contact-direct { list-style: none; padding: 0; margin-top: 2.2rem; display: grid; gap: .9rem; }
.contact-direct li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .8rem; }
.contact-label {
  min-width: 6.2rem;
  font-family: var(--font-mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-soft);
}
.contact-direct a { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; }
.copy-btn {
  font-family: var(--font-mono); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .3em .8em; border-radius: 999px; border: 1.5px solid var(--paper);
  background: transparent; color: var(--paper); cursor: pointer;
}
.copy-btn:hover { background: var(--paper); color: var(--red-ink); }

.letter {
  position: relative;
  color: var(--ink);
  background-color: var(--paper);
  background-image: repeating-linear-gradient(transparent 0 2.35rem, rgb(30 25 21 / .09) 2.35rem calc(2.35rem + 1px));
  background-position: 0 1.6rem;
  border: var(--border); border-radius: 6px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(1.6rem, 1.2rem + 2vw, 2.8rem) clamp(1.4rem, 1rem + 2vw, 2.8rem) clamp(1.6rem, 1.2rem + 1.5vw, 2.4rem) clamp(2.4rem, 1.8rem + 2.5vw, 4rem);
  transform: rotate(.6deg);
  font-size: clamp(1.08rem, 1rem + .35vw, 1.25rem);
  line-height: 2.35rem;
}
.letter::before {
  /* margin rule */
  content: ""; position: absolute; top: 0; bottom: 0; left: clamp(1.4rem, 1rem + 1.6vw, 2.6rem);
  border-left: 2px solid rgb(200 40 30 / .35);
}
.letter-line { margin: 0; }
.letter-line:first-child { font-family: var(--font-hand); font-weight: 700; font-size: 2rem; color: var(--red-ink); }
.letter-label { display: block; }
.letter input, .letter select, .letter textarea {
  font: inherit; color: var(--red-ink);
  font-family: var(--font-hand); font-weight: 700; font-size: 1.45em; line-height: 1;
  background: transparent; border: 0; border-bottom: 2px dashed var(--ink);
  padding: 0 .2em; border-radius: 0;
}
.letter input { width: 11ch; max-width: 100%; }
.letter input[name="email"] { width: 15ch; }
.letter input[name="company"] { width: 16ch; }
.letter select { cursor: pointer; padding-right: .2em; max-width: 100%; }
.letter input::placeholder, .letter textarea::placeholder { color: rgb(111 101 92 / .7); font-weight: 600; }
.letter textarea {
  display: block; width: 100%; resize: vertical; min-height: 7rem;
  margin: .3rem 0 .6rem; padding: .3em .5em;
  border: 2px dashed var(--ink); border-radius: 8px; background: rgb(255 255 255 / .5);
  font-size: 1.4em; line-height: 1.25;
}
.letter :is(input, select, textarea):focus { outline: none; border-color: var(--red); border-style: solid; background: var(--yellow-soft); }
.letter :is(input, select):user-invalid { border-bottom-color: var(--red); border-bottom-style: solid; }
.letter-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.4rem; line-height: 1.4; }
.letter-status { font-size: 1rem; color: var(--ink-2); }
.letter-status.is-error { color: var(--red-ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #D9D0C4; padding-block: 3rem; font-size: 1rem; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: .8rem 2rem; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: .8rem; font-family: var(--font-display); font-weight: 700; color: var(--paper); font-size: 1.1rem; }
.footer-brand .brand-mark { width: 2.2rem; height: 2.2rem; font-size: .95rem; border-color: var(--paper); }
.footer-small { grid-column: 1; color: #B5AA9C; font-size: .95rem; }
.footer-nav { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.footer-nav a { color: var(--paper); text-decoration-color: var(--red); font-family: var(--font-display); font-weight: 600; }
.footer-nav a:hover { color: var(--yellow); }

/* ---------- 404 ---------- */
.not-found { min-height: 100vh; min-height: 100dvh; display: grid; align-items: center; }
.not-found h1 { font-size: clamp(2.6rem, 1.6rem + 4.5vw, 5rem); line-height: 1; letter-spacing: -.035em; margin-bottom: 1.4rem; }
.not-found .note { margin-top: 2rem; transform: rotate(-3deg); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .case, .process-grid, .about-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .case-flip .case-visual { order: 0; }
  .hero-side { display: grid; grid-template-columns: auto 1fr; gap: 2rem; align-items: center; padding-top: 0; }
  .stamp-wrap { margin: 0; }
  .postmark { top: 60px; left: 150px; right: auto; width: 110px; }
  .postmark::after { display: none; }
  .facts { margin-top: 0; }
  .code-card, .about-photo { position: static; }
  .about-photo { justify-items: start; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: end; }
  .polaroid { width: 260px; }
  .note-about { margin-top: 0; }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .note-case-1 { right: 0; }
  .note-case-2 { left: 0; bottom: -2.8rem; }
}

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute; top: calc(100% + 2px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: .5rem 1.25rem 1.25rem;
    background: var(--paper); border-bottom: var(--border);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: .85rem 0; border-bottom: 1.5px dashed rgb(30 25 21 / .2); font-size: 1.15rem; background: none; }
  .site-nav .btn { margin-top: 1rem; justify-content: center; }
  .site-header { border-bottom-color: var(--ink); }
  .services { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .brand-name { font-size: 1rem; }
  .hero-side { grid-template-columns: minmax(0, 1fr); }
  .stamp-wrap { width: 160px; justify-self: start; margin-left: .5rem; }
  .postmark { top: 30px; left: 140px; width: 96px; }
  .stamp-city { font-size: 1.5rem; }
  .phone { width: 240px; }
  .note-case-1, .note-case-2 { position: static; transform: rotate(-3deg); margin-top: 1.2rem; }
  .note-case-1 { flex-direction: row; align-items: center; max-width: none; }
  .note-case-1 .note-arrow { display: none; }
  .note-case-2 .note-arrow { display: none; }
  .about-photo { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .note-about { align-items: center; text-align: center; }
  .note-about .note-arrow { display: none; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
  .footer-nav { grid-column: 1; grid-row: auto; }
  .letter { transform: none; }
  .letter .nowrap { white-space: normal; }
  .letter .punct { display: none; }
  .letter input, .letter input[name="email"], .letter input[name="company"] { width: 100%; }
  .letter select { width: 100%; }
  .scribble { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  .site-header, .nav-toggle, .code-run, .code-out, .letter, .copy-btn { display: none !important; }
  body { background: #fff; }
  .section-red { background: #fff; color: #000; }
  .section-red a { color: #000; }
}
