/* =========================================================
   Julian — websites voor zaken uit de buurt
   Zwart op wit, met blauwe pen.
   ========================================================= */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Mynerve";
  src: url("fonts/mynerve-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ---------- tokens ---------- */

:root {
  color-scheme: light dark;

  --paper: #fbfbf9;
  --wash: #f1f1ed;
  --sheet: #ffffff;
  --ink: #15171c;
  --ink-2: #555a64;
  --rule: rgba(21, 23, 28, 0.12);
  --rule-strong: rgba(21, 23, 28, 0.85);
  --pen: #2a3fc0;
  --pen-soft: rgba(42, 63, 192, 0.1);
  --go: #1d8a4b;
  --bezel: #16181c;
  --shadow: 21, 23, 28;

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Mynerve", "Segoe Print", "Bradley Hand", cursive;

  --max: 1240px;
  --gutter: clamp(20px, 4.2vw, 44px);
  --split: minmax(0, 1.12fr) minmax(0, 1fr);
  --split-gap: clamp(40px, 5vw, 80px);
  --section: clamp(80px, 11vw, 148px);
  --radius: 12px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #121417;
    --wash: #181b1f;
    --sheet: #1d2025;
    --ink: #ecece8;
    --ink-2: #a3a7af;
    --rule: rgba(236, 236, 232, 0.13);
    --rule-strong: rgba(236, 236, 232, 0.8);
    --pen: #9eabff;
    --pen-soft: rgba(158, 171, 255, 0.14);
    --go: #4cc38a;
    --bezel: #2a2d33;
    --shadow: 0, 0, 0;
  }
}

:root[data-theme="dark"] {
  --paper: #121417;
  --wash: #181b1f;
  --sheet: #1d2025;
  --ink: #ecece8;
  --ink-2: #a3a7af;
  --rule: rgba(236, 236, 232, 0.13);
  --rule-strong: rgba(236, 236, 232, 0.8);
  --pen: #9eabff;
  --pen-soft: rgba(158, 171, 255, 0.14);
  --go: #4cc38a;
  --bezel: #2a2d33;
  --shadow: 0, 0, 0;
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: clamp(17px, 0.28vw + 16px, 18.5px);
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.9rem, 1.5rem + 5.2vw, 5.75rem); letter-spacing: -0.042em; line-height: 0.96; }
h2 { font-size: clamp(2.15rem, 1.35rem + 2.9vw, 3.6rem); letter-spacing: -0.034em; line-height: 1.02; }
h3 { font-size: clamp(1.2rem, 1.08rem + 0.45vw, 1.45rem); font-weight: 700; letter-spacing: -0.016em; line-height: 1.18; }
p { text-wrap: pretty; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--pen);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--pen); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute;
  left: var(--gutter);
  top: 12px;
  z-index: 30;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* ---------- links & buttons ---------- */

.link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--pen);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-decoration-color 0.2s var(--ease);
}
.link:hover { color: var(--pen); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font: 600 1rem/1 var(--font);
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn:hover { background: var(--pen); }
.btn:active { transform: translateY(1px) scale(0.985); }

.btn-small { min-height: 40px; padding: 0 16px; font-size: 0.94rem; border-radius: 10px; }

.btn-quiet {
  appearance: none;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 600 0.94rem/1 var(--font);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.15s var(--ease);
}
.btn-quiet:hover { border-color: var(--pen); color: var(--pen); }
.btn-quiet:active { transform: translateY(1px) scale(0.985); }
.btn-quiet.is-done { border-color: var(--go); color: var(--go); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  margin-right: auto;
  font-weight: 700;
  font-size: 1.03rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.nav { display: none; gap: 30px; }
.nav a {
  position: relative;
  color: var(--ink-2);
  font-size: 0.97rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: var(--pen);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a[aria-current]::after { transform: none; }

@media (min-width: 820px) { .nav { display: flex; } }

/* ---------- hero ---------- */

.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(72px, 9vw, 120px); }

.hero-grid { display: grid; gap: clamp(56px, 8vw, 72px); }

.hero-copy { display: flex; flex-direction: column; }
.hero h1 { max-width: 11ch; }

.lede {
  margin-top: clamp(22px, 3vw, 30px);
  max-width: 40ch;
  font-size: clamp(1.1rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  margin-top: clamp(28px, 3.6vw, 40px);
}

.facts { margin-top: clamp(40px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--rule); }
.status { display: flex; align-items: center; gap: 10px; font-size: 0.98rem; font-weight: 600; }
.dot {
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--go);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--go) 18%, transparent);
}
.facts dl { display: grid; gap: 10px 28px; margin-top: 16px; font-size: 0.95rem; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; }
.facts dt { color: var(--ink-2); }
.facts dd { font-weight: 500; text-align: right; }

@media (min-width: 560px) {
  .facts dl { grid-template-columns: repeat(3, auto); justify-content: start; }
  .facts dl > div { display: block; }
  .facts dd { text-align: left; }
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: var(--split);
    align-items: center;
    gap: var(--split-gap);
  }
}

/* ---------- demo: phone + pen notes ---------- */

.demo {
  container-type: inline-size;
  justify-self: start;
  width: 100%;
  max-width: 560px;
}

.demo-stage {
  --pw: min(290px, 56cqw);
  display: grid;
  grid-template-columns: var(--pw) minmax(0, 1fr);
  column-gap: clamp(10px, 4.4cqw, 26px);
}

.phone {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  width: var(--pw);
  aspect-ratio: 9 / 18.6;
  padding: calc(var(--pw) * 0.034);
  border-radius: calc(var(--pw) * 0.16);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 2px 3px rgba(var(--shadow), 0.12),
    0 26px 50px -18px rgba(var(--shadow), 0.4),
    0 50px 90px -40px rgba(var(--shadow), 0.35);
}

/* ---- the little client site inside the phone ---- */

.screen {
  --m-bg: #fffaf3;
  --m-ink: #2a1c12;
  --m-soft: rgba(42, 28, 18, 0.62);
  --m-line: rgba(42, 28, 18, 0.12);
  --m-accent: #8b4a1e;
  --m-hero: #8b4a1e;
  --m-hero-ink: #fff3e4;
  --m-name-font: Georgia, "Times New Roman", serif;
  --m-name-weight: 700;
  --m-name-case: none;
  --m-name-track: -0.01em;
  --m-tag-font: Georgia, "Times New Roman", serif;

  container-type: inline-size;
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--pw) * 0.13);
  background: var(--m-bg);
  color: var(--m-ink);
  font-family: var(--font);
  line-height: 1.25;
  transition: background-color 0.3s var(--ease);
}

.screen[data-sector="kapper"] {
  --m-bg: #fbf8fb;
  --m-ink: #22192a;
  --m-soft: rgba(34, 25, 42, 0.6);
  --m-line: rgba(34, 25, 42, 0.12);
  --m-accent: #5a3470;
  --m-hero: #2b1e33;
  --m-hero-ink: #f6ecf9;
  --m-name-font: var(--font);
  --m-name-weight: 600;
  --m-name-case: uppercase;
  --m-name-track: 0.16em;
  --m-tag-font: var(--font);
}
.screen[data-sector="frituur"] {
  --m-bg: #fffcef;
  --m-ink: #221b0a;
  --m-soft: rgba(34, 27, 10, 0.62);
  --m-line: rgba(34, 27, 10, 0.13);
  --m-accent: #c42525;
  --m-hero: #f6c445;
  --m-hero-ink: #221b0a;
  --m-name-font: var(--font);
  --m-name-weight: 900;
  --m-name-case: uppercase;
  --m-name-track: -0.01em;
  --m-tag-font: var(--font);
}
.screen[data-sector="loodgieter"] {
  --m-bg: #f3f8f9;
  --m-ink: #0e2428;
  --m-soft: rgba(14, 36, 40, 0.62);
  --m-line: rgba(14, 36, 40, 0.12);
  --m-accent: #0b6477;
  --m-hero: #0b6477;
  --m-hero-ink: #e8f6f8;
  --m-name-font: var(--font);
  --m-name-weight: 800;
  --m-name-case: none;
  --m-name-track: -0.02em;
  --m-tag-font: var(--font);
}

.screen::before {
  content: "";
  position: absolute;
  top: 2.6cqw;
  left: 50%;
  width: 29cqw;
  height: 8cqw;
  translate: -50% 0;
  border-radius: 99px;
  background: var(--bezel);
}

.screen p { margin: 0; }

.m-top { padding: 13.5cqw 4.5cqw 1.5cqw; }
.m-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  height: 9.6cqw;
  padding: 0 4cqw;
  border-radius: 99px;
  background: var(--m-line);
  color: var(--m-ink);
  font: 500 4.1cqw/1 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.m-bar svg { flex: none; width: 3.8cqw; height: 3.8cqw; fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.7; }
.m-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  min-height: 15cqw;
  padding: 2.5cqw 5.5cqw;
}
.m-name {
  font-family: var(--m-name-font);
  font-weight: var(--m-name-weight);
  font-size: 6.4cqw;
  line-height: 1.05;
  letter-spacing: var(--m-name-track);
  text-transform: var(--m-name-case);
  overflow-wrap: anywhere;
}
.screen[data-sector="kapper"] .m-name { font-size: 5cqw; }
.screen .m-name.is-long { font-size: 5.2cqw; }
.screen .m-name.is-longer { font-size: 4.3cqw; }
.m-menu {
  flex: none;
  width: 6cqw;
  height: 4.2cqw;
  border-top: 0.75cqw solid currentColor;
  border-bottom: 0.75cqw solid currentColor;
  position: relative;
}
.m-menu::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  border-top: 0.75cqw solid currentColor;
  translate: 0 -50%;
}

.m-hero {
  position: relative;
  overflow: hidden;
  min-height: 60cqw;
  margin: 0 4.5cqw;
  padding: 6.5cqw 6cqw 7cqw;
  border-radius: 5cqw;
  background: var(--m-hero);
  color: var(--m-hero-ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.m-kind { font-size: 3.7cqw; font-weight: 600; opacity: 0.82; }
.m-tagline {
  position: relative;
  z-index: 1;
  max-width: 72%;
  margin-top: 2.4cqw !important;
  font-family: var(--m-tag-font);
  font-size: 8.4cqw;
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}
.m-art {
  display: none;
  position: absolute;
  right: -1cqw;
  bottom: -2cqw;
  width: 38cqw;
  height: 38cqw;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.3;
}
.screen[data-sector="bakker"] .m-art[data-art="bakker"],
.screen[data-sector="kapper"] .m-art[data-art="kapper"],
.screen[data-sector="frituur"] .m-art[data-art="frituur"],
.screen[data-sector="loodgieter"] .m-art[data-art="loodgieter"] { display: block; }

.m-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.6cqw;
  margin: 4cqw 4.5cqw 0;
}
.m-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6cqw;
  height: 11.5cqw;
  border: 0.55cqw solid var(--m-accent);
  border-radius: 3cqw;
  color: var(--m-accent);
  font-size: 4.2cqw;
  font-weight: 700;
}
.m-btn svg { width: 4.2cqw; height: 4.2cqw; fill: currentColor; }
.m-btn-main { background: var(--m-accent); color: #fff; }

.m-hours { margin: 6.5cqw 5.5cqw 0; font-size: 3.9cqw; }
.m-hours-title { font-size: 4.7cqw; font-weight: 700; }
.m-status {
  display: flex;
  align-items: center;
  gap: 1.8cqw;
  margin: 1.6cqw 0 2.2cqw !important;
  color: var(--m-soft);
  font-weight: 600;
}
.m-dot { flex: none; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; background: var(--m-soft); }
.m-status.is-open { color: #17804a; }
.m-status.is-open .m-dot { background: #1f9d5a; box-shadow: 0 0 0 0.9cqw rgba(31, 157, 90, 0.18); }
.m-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 3cqw;
  padding: 1.9cqw 0;
  border-top: 0.3cqw solid var(--m-line);
}
.m-rows dt { color: var(--m-soft); }
.m-rows dd { margin: 0; text-align: right; }
.m-rows .is-today dt, .m-rows .is-today dd { color: var(--m-ink); font-weight: 700; }

.m-more { margin: 7cqw 5.5cqw 0; font-size: 3.9cqw; color: var(--m-soft); }
.m-more-title { margin-bottom: 1.4cqw !important; color: var(--m-ink); font-size: 4.7cqw; font-weight: 700; }

/* ---- pen notes ---- */

.notes { grid-column: 2; grid-row: 1; position: relative; min-width: 0; }
.notes ul { position: absolute; top: 0; left: 0; right: 0; height: calc(var(--pw) * 18.6 / 9); pointer-events: none; }

.note {
  --reach: clamp(28px, 8cqw, 44px);
  position: absolute;
  top: var(--y);
  left: calc(-1 * var(--reach));
  display: flex;
  align-items: center;
  width: calc(100% + var(--reach));
  color: var(--pen);
  font-family: var(--hand);
  font-size: clamp(15px, 4.3cqw, 24px);
  line-height: 1.04;
  translate: 0 -50%;
}
.note svg {
  flex: none;
  width: clamp(32px, 10.5cqw, 58px);
  height: auto;
  margin-right: 3px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.note-text { display: block; min-width: 0; }

.note-1 { --y: 11%; }
.note-2 { --y: 50%; }
.note-3 { --y: 61.5%; }
.note-1 svg { align-self: flex-start; margin-top: -0.2em; }
.note-3 svg { align-self: flex-start; margin-top: -0.45em; }

/* one orchestrated moment: the notes are written in once */
.js .note path { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
.js .note-text { clip-path: inset(-10% 100% -10% 0); }
.pen-go .note path { animation: pen-draw 0.5s var(--ease) forwards; animation-delay: var(--d); }
.pen-go .note-text { animation: pen-write 0.8s cubic-bezier(0.45, 0.1, 0.3, 1) forwards; animation-delay: calc(var(--d) + 0.32s); }
.note-1 { --d: 0.35s; }
.note-2 { --d: 1.25s; }
.note-3 { --d: 2.15s; }

/* safety net: if the script never runs, show the notes anyway */
.js:not(.pen-go) .note path { animation: pen-draw 0.01s 4s forwards; }
.js:not(.pen-go) .note-text { animation: pen-write 0.01s 4s forwards; }

@keyframes pen-draw { to { stroke-dashoffset: 0; } }
@keyframes pen-write { to { clip-path: inset(-10% -4% -10% 0); } }

/* ---- controls ---- */

.demo-controls {
  position: relative;
  z-index: 1;
  grid-column: 1 / -1;
  grid-row: 2;
  display: grid;
  gap: 10px;
  max-width: 460px;
  margin-top: clamp(26px, 7cqw, 36px);
}
.demo-controls[hidden] { display: none; }

/* wide enough: the controls move in beside the phone, under the notes */
@container (min-width: 530px) {
  .demo-stage { grid-template-rows: 1fr auto; }
  .phone, .notes { grid-row: 1 / 3; }
  .demo-controls { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; }
}
.demo-label { font-size: 0.95rem; font-weight: 600; }
.demo-input {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--sheet);
  color: var(--ink);
  font: 500 1rem/1 var(--font);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.demo-input::placeholder { color: var(--ink-2); opacity: 0.8; }
.demo-input:hover { border-color: color-mix(in srgb, var(--ink) 30%, transparent); }
.demo-input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 4px var(--pen-soft); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.chips label { position: relative; }
.chips input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chips span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 clamp(10px, 3cqw, 15px);
  border: 1px solid var(--rule);
  border-radius: 99px;
  color: var(--ink-2);
  font-size: 0.93rem;
  font-weight: 600;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.chips label:hover span { border-color: color-mix(in srgb, var(--ink) 35%, transparent); color: var(--ink); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2px solid var(--pen); outline-offset: 3px; }

/* ---------- promises ---------- */

.promises {
  background: var(--wash);
  padding: clamp(28px, 4vw, 44px) 0;
}
.promise {
  display: grid;
  gap: 10px 40px;
  padding: clamp(26px, 3.6vw, 40px) 0;
  border-top: 1px solid var(--rule);
}
.promise:first-child { border-top: 0; }
.promise h3 {
  font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.promise p { max-width: 42ch; color: var(--ink-2); font-size: clamp(1.02rem, 0.95rem + 0.3vw, 1.15rem); }

@media (min-width: 820px) {
  .promise { grid-template-columns: var(--split); column-gap: var(--split-gap); align-items: baseline; }
}

/* ---------- sections ---------- */

.section { padding: var(--section) 0 calc(var(--section) * 1.05); }

.section-head {
  display: grid;
  gap: 16px 48px;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.intro {
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
}
.section-head h2 { max-width: 16ch; }

@media (min-width: 900px) {
  .section-head { grid-template-columns: var(--split); column-gap: var(--split-gap); align-items: end; }
  .section-head .intro { padding-bottom: 6px; }
}

/* ---------- services ---------- */

.service-list { display: grid; gap: 0 clamp(28px, 4vw, 56px); }
.service {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 0 30px;
  border-top: 2px solid var(--ink);
}
.service p { color: var(--ink-2); }
.service .service-for {
  margin-top: auto;
  padding-top: 12px;
  color: var(--pen);
  font-family: var(--hand);
  font-size: 1.4rem;
  line-height: 1.1;
  rotate: -1.5deg;
  transform-origin: left;
}

@media (min-width: 820px) {
  .service-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service { padding-bottom: 0; }
}

/* ---------- work ---------- */

.work { background: var(--wash); }

.case { display: grid; gap: clamp(40px, 5vw, 64px); }

.case-media {
  position: relative;
  padding-right: clamp(40px, 9vw, 120px);
  padding-bottom: clamp(28px, 5vw, 56px);
}

.browser {
  overflow: hidden;
  border-radius: 12px;
  background: var(--sheet);
  box-shadow:
    0 0 0 1px var(--rule),
    0 24px 48px -24px rgba(var(--shadow), 0.3);
}
.browser-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  border-bottom: 1px solid var(--rule);
}
.browser-bar span {
  padding: 3px 14px;
  border-radius: 99px;
  background: var(--wash);
  color: var(--ink-2);
  font-size: 0.78rem;
  font-weight: 500;
}
.browser img { width: 100%; aspect-ratio: 1456 / 962; object-fit: cover; object-position: top; }

.case-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: clamp(92px, 21%, 196px);
  padding: clamp(4px, 0.6vw, 7px);
  border-radius: clamp(16px, 2.4vw, 30px);
  background: var(--bezel);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 30px 50px -20px rgba(var(--shadow), 0.45);
}
.case-phone img {
  width: 100%;
  aspect-ratio: 488 / 1000;
  object-fit: cover;
  object-position: top;
  border-radius: clamp(12px, 1.9vw, 24px);
}

.case-body h3 { font-size: clamp(1.9rem, 1.3rem + 2vw, 2.7rem); letter-spacing: -0.03em; line-height: 1.02; }
.case-kind { margin-top: 8px !important; color: var(--ink-2); font-weight: 500; }
.case-body > p:not(.case-kind) { margin-top: 22px; max-width: 48ch; color: var(--ink-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 30px; }
.tags li {
  padding: 5px 12px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
}

@media (min-width: 980px) {
  .case { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: center; }
}

.next {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
  margin-top: clamp(56px, 7vw, 88px);
  padding-top: 24px;
  border-top: 1px solid var(--rule);
  color: var(--ink-2);
}
.next-label { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.next-label::before {
  content: "";
  width: 9px; height: 9px;
  border: 2px solid var(--pen);
  border-radius: 50%;
}

/* ---------- included ---------- */

.checklist { display: grid; gap: 0 clamp(28px, 4vw, 56px); }
.checklist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
}
.tick {
  width: 32px;
  height: 32px;
  margin-top: -4px;
  fill: none;
  stroke: var(--pen);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.checklist h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
.checklist p { margin-top: 4px; color: var(--ink-2); font-size: 0.98rem; }

@media (min-width: 640px) { .checklist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .checklist { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- process ---------- */

.process { background: var(--wash); }

.steps { display: grid; counter-reset: step; }
.steps li {
  position: relative;
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  column-gap: 16px;
  padding-bottom: 34px;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.steps li::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 52px;
  bottom: 10px;
  width: 2px;
  background: var(--rule);
}
.steps li:last-child { padding-bottom: 0; }
.steps li:last-child::after { display: none; }
.steps h3 { margin-top: 2px; }
.steps p { margin-top: 6px; color: var(--ink-2); max-width: 32ch; }

@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 40px); }
  .steps li { display: block; padding: 0; }
  .steps li::before { display: block; margin-bottom: 26px; font-size: clamp(3rem, 2rem + 2vw, 4.2rem); }
  .steps li::after { left: 64px; right: 0; top: 24px; bottom: auto; width: auto; height: 2px; }
}

/* ---------- faq ---------- */

.faq-grid { display: grid; gap: 40px clamp(48px, 7vw, 112px); }
.faq-head h2 { max-width: 12ch; }
.faq-head .intro { margin-top: 18px; }
.qa { padding: 26px 0 28px; border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa h3 { font-size: clamp(1.15rem, 1.05rem + 0.35vw, 1.3rem); }
.qa p { margin-top: 10px; max-width: 58ch; color: var(--ink-2); }

@media (min-width: 900px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .faq-head { position: sticky; top: 108px; align-self: start; }
}

/* ---------- contact ---------- */

.contact {
  padding: var(--section) 0 calc(var(--section) * 0.9);
  border-top: 1px solid var(--rule);
}
.contact-grid { display: grid; gap: 28px clamp(48px, 7vw, 112px); }
.contact h2 {
  max-width: 9ch;
  font-size: clamp(3rem, 1.6rem + 5.4vw, 6.25rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
}
.contact-mail { margin-top: clamp(30px, 4vw, 44px); }
.big-mail {
  display: inline-block;
  max-width: 100%;
  font-size: clamp(1.5rem, 0.9rem + 2.6vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  text-decoration: underline;
  text-decoration-color: var(--pen);
  text-decoration-thickness: 3px;
  text-underline-offset: 9px;
  overflow-wrap: anywhere;
  transition: color 0.2s var(--ease);
}
.big-mail:hover { color: var(--pen); }
.contact-alt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  margin-top: 26px;
}
.contact-alt .link { font-weight: 500; }

.signoff {
  margin-top: clamp(40px, 6vw, 64px);
  color: var(--pen);
  font-family: var(--hand);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  line-height: 1.1;
}
.signoff-name { display: block; margin-top: 4px; margin-left: 0.8em; font-size: 1.5em; rotate: -4deg; transform-origin: left; }

@media (min-width: 980px) {
  .contact-grid { grid-template-columns: var(--split); column-gap: var(--split-gap); align-items: start; }
  .contact-body { padding-top: 12px; }
}

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--rule); }
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 32px;
  padding-top: 26px;
  padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px));
  color: var(--ink-2);
  font-size: 0.9rem;
}
.footer-inner a { text-decoration-color: var(--rule); text-underline-offset: 4px; }
.footer-inner a:hover { color: var(--ink); text-decoration-color: var(--pen); }

/* ---------- 404 ---------- */

.lost { min-height: 70vh; display: grid; align-content: center; padding: var(--section) 0; }
.lost h1 { max-width: 12ch; }
.lost .lede { margin-top: 24px; }
.lost .actions { margin-top: 36px; }
.lost .pen-aside {
  margin-bottom: 18px;
  color: var(--pen);
  font-family: var(--hand);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem);
  rotate: -2deg;
  transform-origin: left;
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
  .js .note path { stroke-dashoffset: 0; }
  .js .note-text { clip-path: none; }
  .pen-go .note path, .pen-go .note-text { animation: none; }
}

@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
}
