/* =========================================================
   Breakfast — design system
   Editorial neobrutalism: cream paper, hard offset shadows,
   thick ink borders, yellow + purple accents. Self-hosted,
   privacy-friendly, no external requests.
   ========================================================= */

/* ---------- Fonts (self-hosted; add woff2 to /assets/fonts).
   Falls back gracefully to system fonts if the files are absent,
   so the site is never blocked on a font download. ---------- */
@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: local("Inter"), url("/assets/fonts/inter-variable.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: local("JetBrains Mono"), url("/assets/fonts/jetbrains-mono.woff2") format("woff2");
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: local("Caveat"), url("/assets/fonts/caveat.woff2") format("woff2");
}

/* ---------- Design tokens ---------- */
:root {
  --primary: #fdc800;
  --secondary: #432dd7;
  --success: #16a34a;
  --danger: #dc2626;
  --surface: #fbfbf9;
  --text: #1c293c;
  --muted: #44546f;
  --bg: #f5efe3;
  --bg-alt: #fff7e6;
  --white: #ffffff;

  --font: "Inter var", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --hand: "Caveat", "Segoe Script", cursive;

  /* Fluid spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
  --s-20: clamp(3.5rem, 7vw, 5rem);
  --s-24: clamp(4.5rem, 9vw, 7rem);

  --border: 2px solid var(--text);
  --border-3: 3px solid var(--text);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-sm: 4px 4px 0 var(--text);
  --shadow: 6px 6px 0 var(--text);
  --shadow-lg: 10px 10px 0 var(--text);

  --maxw: 1200px;
  --maxw-prose: 44rem;
  --header-h: 78px;

  --z-header: 100;
  --z-sticky: 200;
  --z-skip: 1200;

  --motion: 0.16s ease;

  /* Motion system — one set of easing + duration tokens for the whole site. */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 0.16s;      /* interaction (hover/press) */
  --dur-mid: 0.4s;        /* card/section transitions */
  --dur-reveal: 0.6s;     /* scroll reveals */
  --stagger: 90ms;        /* per-item reveal delay step */

  --ink: #1c293c;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(circle at 1px 1px, rgba(28, 41, 60, 0.07) 1px, transparent 0);
  background-size: 28px 28px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:where(h1, h2, h3, h4) { line-height: 1.05; font-weight: 900; letter-spacing: -0.03em; overflow-wrap: break-word; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--s-6); }
.container--prose { max-width: var(--maxw-prose); }
.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;
}
.section { padding-block: var(--s-20); }
.section--tight { padding-block: var(--s-16); }
.section--alt { background: var(--bg-alt); border-block: var(--border-3); }

/* ---------- Text accents ---------- */
/* No nowrap: the clone box-decoration handles multi-line highlights and nowrap
   forces horizontal overflow on narrow screens. */
.hl { position: relative; padding: 0 0.18em; border: var(--border); border-radius: 8px; box-shadow: var(--shadow-sm); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hl--yellow { color: var(--text); background: var(--primary); }
.hl--purple { color: var(--white); background: var(--secondary); }
.note { font-family: var(--hand); font-weight: 700; font-size: 1.5rem; line-height: 1; color: var(--secondary); }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-family: var(--mono); font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.eyebrow {
  padding: var(--s-2) var(--s-3); color: var(--text); max-width: 100%;
  background: var(--white); border: var(--border); border-radius: var(--radius-pill); box-shadow: var(--shadow-sm);
}
.eyebrow__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--success); border: 1.5px solid var(--text); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: var(--s-2); top: -100px; z-index: var(--z-skip);
  background: var(--primary); color: var(--text); border: var(--border); box-shadow: var(--shadow-sm);
  padding: var(--s-2) var(--s-4); font-weight: 700; border-radius: var(--radius-sm); transition: top var(--motion);
}
.skip-link:focus { top: var(--s-2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; min-width: 44px; padding: var(--s-3) var(--s-6);
  font-size: 1rem; font-weight: 700; line-height: 1.1; text-align: center;
  color: var(--text); background: var(--white);
  border: var(--border-3); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  cursor: pointer; transition: transform var(--motion), box-shadow var(--motion), background-color var(--motion);
}
.btn--lg { min-height: 56px; padding: var(--s-4) var(--s-8); font-size: 1.08rem; }
.btn--primary { background: var(--primary); }
.btn--secondary { background: var(--secondary); color: var(--white); }
.btn--ghost { background: var(--white); }
.btn:hover { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--text); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--text); }
.btn:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.btn--secondary:focus-visible { outline-color: var(--text); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: var(--shadow-sm); }

.link-cta {
  display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px;
  font-weight: 800; color: var(--secondary); border-bottom: 3px solid transparent; transition: gap var(--motion), border-color var(--motion);
}
.link-cta:hover { gap: var(--s-3); border-color: var(--secondary); }
.link-cta:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 4px; }

/* ---------- Header & nav ---------- */
.site-header { position: sticky; top: 0; z-index: var(--z-header); background: var(--surface); border-bottom: 3px solid var(--text); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: var(--header-h); }
.logo { display: inline-flex; align-items: baseline; font-weight: 900; font-size: 1.5rem; letter-spacing: -0.02em; }
.logo__egg { position: relative; width: 0.62em; height: 0.62em; margin-left: 1px; align-self: center; }
.logo__white { position: absolute; inset: 0; display: grid; place-items: center; background: var(--white); border: 2px solid var(--text); border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%; }
.logo__yolk { width: 52%; height: 52%; background: var(--primary); border: 1.5px solid var(--text); border-radius: 50%; }

.nav { display: flex; align-items: center; gap: var(--s-4); }
.nav__toggle { display: none; align-items: center; gap: var(--s-2); min-height: 44px; padding: var(--s-2) var(--s-3); font-weight: 700; background: var(--primary); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); cursor: pointer; }
.nav__toggle-bars { display: inline-grid; gap: 3px; }
.nav__toggle-bars span { display: block; width: 20px; height: 2.5px; background: var(--text); border-radius: 2px; transition: transform var(--motion), opacity var(--motion); }
.nav[data-open="true"] .nav__toggle-bars span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle-bars span:nth-child(2) { opacity: 0; }
.nav[data-open="true"] .nav__toggle-bars span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.nav__menu { display: flex; align-items: center; gap: var(--s-1); }
.nav__link { display: inline-flex; align-items: center; min-height: 44px; padding: var(--s-2) var(--s-3); font-weight: 600; border: 2px solid transparent; border-radius: var(--radius-sm); transition: background-color var(--motion), border-color var(--motion); }
.nav__link:hover, .nav__link[aria-current="page"] { background: var(--bg-alt); border-color: var(--text); }
.nav__link:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }
.nav__cta { display: inline-flex; }

/* ---------- Announcement banner ---------- */
.announcement { background: var(--secondary); color: var(--white); text-align: center; padding: var(--s-2) var(--s-4); font-weight: 600; font-size: 0.95rem; border-bottom: 3px solid var(--text); }

/* ---------- Hero ---------- */
.hero { padding-block: var(--s-24) var(--s-20); }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-16); align-items: center; }
.hero__title { margin-top: var(--s-6); font-size: clamp(2.6rem, 6.5vw, 5rem); line-height: 0.98; }
.hero__sub { margin-top: var(--s-6); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.3rem); color: var(--muted); max-width: 32ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-8); }
.hero__availability { margin-top: var(--s-6); }
.hero__media { border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--white); }

/* ---------- Section heads ---------- */
.section__head { max-width: 46rem; margin-bottom: var(--s-12); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { margin-top: var(--s-3); font-size: clamp(2rem, 4.5vw, 3.2rem); }
.section__lead { margin-top: var(--s-4); font-size: 1.15rem; color: var(--muted); }

/* ---------- Cards & grids ---------- */
.card { background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-8); }
.grid { display: grid; gap: var(--s-6); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* Work / project cards */
.pcard { display: flex; flex-direction: column; background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: transform var(--motion), box-shadow var(--motion); }
.pcard:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.pcard__media { aspect-ratio: 16 / 10; background: var(--bg-alt); border-bottom: var(--border-3); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.pcard__cat { font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.pcard__name { font-size: 1.4rem; }
.pcard__summary { color: var(--muted); }
.pcard__outcome { font-weight: 700; }
.pcard__link { margin-top: auto; }

/* Service cards */
.scard { background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.scard__icon { display: grid; place-items: center; width: 48px; height: 48px; border: var(--border); border-radius: var(--radius-sm); background: var(--primary); }
.scard__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--text); stroke-width: 2; }
.scard__title { font-size: 1.3rem; }

/* Metric / stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-6); }
.stat { background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--s-6); }
.stat__value { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 900; letter-spacing: -0.04em; }
.stat__label { font-weight: 700; margin-top: var(--s-2); }
.stat__context { color: var(--muted); margin-top: var(--s-1); font-size: 0.95rem; }

/* Process timeline */
.timeline { display: grid; gap: var(--s-6); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.timeline__item { display: flex; flex-direction: column; gap: var(--s-3); }
.timeline__num { display: grid; place-items: center; width: 44px; height: 44px; font-weight: 900; background: var(--secondary); color: var(--white); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }

/* Testimonials */
.quote { border-left: 6px solid var(--primary); padding-left: var(--s-6); }
.quote__text { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 700; line-height: 1.3; }
.quote__cite { margin-top: var(--s-4); color: var(--muted); font-style: normal; }
.tcard { background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-8); }

/* Logos */
.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-4); }
.logos__item { border: var(--border); border-radius: var(--radius-sm); padding: var(--s-4); text-align: center; background: var(--white); }
.logos__name { font-weight: 900; }
.logos__cat { display: block; font-size: 0.78rem; color: var(--muted); font-family: var(--mono); text-transform: uppercase; }

/* FAQ */
.faq__item { border: var(--border); border-radius: var(--radius-sm); background: var(--white); box-shadow: var(--shadow-sm); margin-bottom: var(--s-4); overflow: hidden; }
.faq__q { display: flex; justify-content: space-between; gap: var(--s-4); align-items: center; padding: var(--s-4) var(--s-6); font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: "+"; font-size: 1.5rem; line-height: 1; }
details[open] .faq__q::after { content: "–"; }
.faq__a { padding: 0 var(--s-6) var(--s-4); color: var(--muted); }

/* Prose (rich text, legal pages, articles) */
.prose { max-width: var(--maxw-prose); }
.prose > * + * { margin-top: var(--s-4); }
.prose h2 { margin-top: var(--s-8); font-size: 1.8rem; }
.prose h3 { margin-top: var(--s-6); font-size: 1.35rem; }
.prose a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.prose ul, .prose ol { padding-left: var(--s-6); }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: var(--s-2); }
.prose blockquote { border-left: 6px solid var(--primary); padding-left: var(--s-6); font-size: 1.2rem; font-weight: 600; }
.prose code { font-family: var(--mono); background: var(--bg-alt); border: 1px solid var(--text); border-radius: 4px; padding: 0.1em 0.35em; font-size: 0.9em; }
.prose pre { background: var(--text); color: var(--surface); border-radius: var(--radius-sm); padding: var(--s-6); overflow-x: auto; }
.prose pre code { background: none; border: 0; color: inherit; }
.prose img { border: var(--border); border-radius: var(--radius-sm); }

/* Callout */
.callout { border: var(--border-3); border-radius: var(--radius); padding: var(--s-6); background: var(--bg-alt); box-shadow: var(--shadow-sm); }
.callout--info { background: #eef1ff; }
.callout--warning { background: #fff4e0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--s-6); max-width: 40rem; }
.form--wide { max-width: 52rem; }
.field { display: grid; gap: var(--s-2); }
.field__label { font-weight: 700; }
.field__hint { color: var(--muted); font-size: 0.9rem; }
.field__req { color: var(--danger); }
.field__optional { color: var(--muted); font-weight: 400; font-size: 0.85em; }
.input, .textarea, .select {
  width: 100%; padding: var(--s-3) var(--s-4); font: inherit; color: var(--text);
  background: var(--white); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  min-height: 48px;
}
.textarea { min-height: 8rem; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 3px solid var(--secondary); outline-offset: 2px; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--danger); }
.field__error { color: var(--danger); font-weight: 600; font-size: 0.9rem; }
.checkbox { display: flex; gap: var(--s-3); align-items: flex-start; }
.checkbox input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--secondary); }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__error-summary { border: var(--border-3); border-color: var(--danger); border-radius: var(--radius); padding: var(--s-4) var(--s-6); background: #fff0f0; }
.form__error-summary a { color: var(--danger); font-weight: 700; }
.form__note { color: var(--muted); font-size: 0.9rem; }
.form-status { border: var(--border-3); border-radius: var(--radius); padding: var(--s-6); background: var(--bg-alt); box-shadow: var(--shadow-sm); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); }
.filter { padding: var(--s-2) var(--s-4); border: var(--border); border-radius: var(--radius-pill); background: var(--white); font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); }
.filter[aria-pressed="true"], .filter.is-active { background: var(--primary); }
.filter:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* ---------- Pagination ---------- */
.pagination { display: flex; gap: var(--s-3); justify-content: center; align-items: center; margin-top: var(--s-12); }
.pagination a, .pagination span { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--s-3); border: var(--border); border-radius: var(--radius-sm); background: var(--white); font-weight: 700; }
.pagination [aria-current="page"] { background: var(--primary); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: var(--s-4); }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.breadcrumbs a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Article ---------- */
.article__header { max-width: var(--maxw-prose); margin: 0 auto var(--s-12); }
.article__meta { display: flex; flex-wrap: wrap; gap: var(--s-3); color: var(--muted); font-family: var(--mono); font-size: 0.85rem; margin-top: var(--s-4); }
.article__cover { border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: var(--s-12); }
.toc { border: var(--border); border-radius: var(--radius-sm); padding: var(--s-6); background: var(--bg-alt); }
.toc a { color: var(--secondary); }
.tag { display: inline-block; padding: 2px var(--s-3); border: var(--border); border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 700; background: var(--white); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--secondary); color: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s-16) var(--s-8); text-align: center; }
.cta-band .btn { color: var(--text); }
.cta-band__title { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.cta-band__text { margin: var(--s-4) auto 0; max-width: 40ch; opacity: 0.95; }
.cta-band__actions { display: flex; gap: var(--s-4); justify-content: center; flex-wrap: wrap; margin-top: var(--s-8); }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 3px solid var(--text); padding-block: var(--s-16) var(--s-8); margin-top: var(--s-24); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: var(--s-12); }
.footer__tagline { color: var(--muted); margin-top: var(--s-4); max-width: 28ch; }
.footer__col h3 { font-size: 0.85rem; font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: var(--s-4); }
.footer__col li + li { margin-top: var(--s-2); }
.footer__col a:hover { text-decoration: underline; }
.footer__base { margin-top: var(--s-12); padding-top: var(--s-6); border-top: 2px solid var(--text); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-4); color: var(--muted); font-size: 0.9rem; }

/* ---------- Cookie banner ---------- */
.cookie-banner { position: fixed; inset-inline: var(--s-4); bottom: var(--s-4); z-index: var(--z-sticky); background: var(--surface); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s-6); display: none; gap: var(--s-4); align-items: center; flex-wrap: wrap; justify-content: space-between; }
.cookie-banner[data-visible="true"] { display: flex; }
.cookie-banner__actions { display: flex; gap: var(--s-3); }

/* ---------- Blocks spacing ---------- */
.blocks > * + * { margin-top: var(--s-12); }
.block-image figure { margin: 0; }
.block-image figcaption { color: var(--muted); font-size: 0.9rem; margin-top: var(--s-2); }
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; }
.image-text--flip .image-text__media { order: 2; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s-4); }
.gallery img { width: 100%; border: var(--border); border-radius: var(--radius-sm); }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); }
.divider { border: 0; border-top: 3px dashed var(--text); margin-block: var(--s-8); }
.embed { position: relative; aspect-ratio: 16 / 9; border: var(--border-3); border-radius: var(--radius); overflow: hidden; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.comparison figcaption { font-family: var(--hand); color: var(--secondary); font-size: 1.4rem; }

/* ---------- Reveal (progressive enhancement) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); transition-delay: calc(var(--i, 0) * var(--stagger)); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-8); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .image-text, .columns, .comparison { grid-template-columns: 1fr; }
  .image-text--flip .image-text__media { order: 0; }
}
@media (max-width: 820px) {
  .nav__toggle { display: inline-flex; }
  .nav__menu {
    position: absolute; inset-inline: 0; top: var(--header-h); flex-direction: column; align-items: stretch;
    gap: 0; background: var(--surface); border-bottom: 3px solid var(--text); padding: var(--s-4);
    max-height: 0; overflow: hidden; visibility: hidden; box-shadow: var(--shadow);
  }
  .nav[data-open="true"] .nav__menu { max-height: 80vh; visibility: visible; }
  .nav__link { min-height: 52px; }
  .nav__cta.header__cta { display: none; }
}
@media (max-width: 640px) {
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Concept-work labelling (honest: never presented as client work). */
.pcard__media { position: relative; }
.pcard__badge {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 1;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--primary);
  color: var(--text);
  border: var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  box-shadow: var(--shadow-sm);
}
.tag--concept { background: var(--bg-alt); }

/* ---------- Hero brand object (CSS-only "good website" in a browser) ---------- */
.hero__object { position: relative; align-self: center; }
.browser {
  background: var(--surface);
  border: var(--border-3);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(-1.2deg);
}
.browser__bar {
  display: flex; align-items: center; gap: var(--s-3);
  padding: 10px var(--s-4);
  background: var(--bg-alt);
  border-bottom: var(--border);
}
.browser__dots { display: inline-flex; gap: 6px; }
.browser__dots i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--text); }
.browser__dots i:nth-child(1) { background: var(--primary); }
.browser__dots i:nth-child(2) { background: var(--surface); }
.browser__dots i:nth-child(3) { background: var(--secondary); }
.browser__url {
  flex: 1; text-align: center; font-family: var(--mono); font-size: 0.8rem;
  color: var(--muted); background: var(--surface);
  border: var(--border); border-radius: var(--radius-pill); padding: 3px 14px;
}
.browser__url b { color: var(--secondary); font-weight: 700; }
.browser__screen { padding: var(--s-6); display: grid; gap: var(--s-6); background: var(--bg); }
.mock__nav { display: flex; align-items: center; justify-content: space-between; }
.mock__logo { width: 84px; height: 16px; background: var(--text); border-radius: var(--radius-pill); }
.mock__menu { display: inline-flex; gap: 10px; }
.mock__menu i { width: 26px; height: 8px; background: var(--muted); opacity: 0.5; border-radius: var(--radius-pill); }
.mock__hero { display: grid; gap: 12px; }
.mock__eyebrow { width: 120px; height: 14px; background: var(--primary); border: 2px solid var(--text); border-radius: var(--radius-pill); }
.mock__line { height: 20px; background: var(--text); border-radius: 6px; }
.mock__line--xl { width: 92%; height: 30px; }
.mock__line--lg { width: 64%; }
.mock__btn { width: 130px; height: 34px; background: var(--secondary); border: var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.mock__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mock__cards span { height: 60px; background: var(--surface); border: var(--border); border-radius: var(--radius-sm); }
.mock__cards span:nth-child(2) { background: var(--bg-alt); }

/* Egg/yolk brand accent floating over the window */
.egg {
  position: absolute; width: 92px; height: 92px; border-radius: 50%;
  background: var(--surface); border: var(--border-3); box-shadow: var(--shadow);
  display: grid; place-items: center; z-index: 2;
}
.egg::after {
  content: ""; width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary); border: var(--border);
}
.egg--float { top: -34px; right: -18px; animation: eggbob 5s ease-in-out infinite; }
@keyframes eggbob { 0%,100% { transform: translateY(0) rotate(4deg); } 50% { transform: translateY(-10px) rotate(-3deg); } }
@media (prefers-reduced-motion: reduce) { .egg--float { animation: none; } }
@media (max-width: 900px) {
  .hero__object { margin-top: var(--s-8); }
  .browser { transform: none; }
  .egg--float { top: -28px; right: 8px; width: 72px; height: 72px; }
}

/* Two-column form rows (collapse on mobile) + accent card. */
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }
.card--accent { background: var(--bg-alt); border: var(--border); border-radius: var(--radius); padding: var(--s-6); box-shadow: var(--shadow-sm); }

/* =========================================================
   Redesign 2 — richer editorial layout + coherent motion
   Sections: hero sequence, services, why, diagnostic,
   process (scroll-linked), client platform, journal, CTA.
   ========================================================= */

/* ---------- Section variants ---------- */
.section--ink { background: var(--ink); color: var(--surface); border-block: var(--border-3); }
.section--ink .section__title { color: var(--surface); }
.kicker--invert { color: #cbd5e6; }
.section__lead--invert { color: #cbd5e6; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); max-width: none; flex-wrap: wrap; }
.section__head--row .link-cta { color: var(--secondary); }

/* ---------- Hero: layered composition + entrance sequence ---------- */
.hero__aside { margin-top: var(--s-4); }
.link-cta--sm { font-size: 0.95rem; font-weight: 700; min-height: 36px; }

.js .hero__seq { opacity: 0; transform: translateY(16px); }
.js .hero.is-in .hero__seq { opacity: 1; transform: none; transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out); }
.js .hero.is-in [data-seq="1"] { transition-delay: 0.02s; }
.js .hero.is-in [data-seq="2"] { transition-delay: 0.10s; }
.js .hero.is-in [data-seq="3"] { transition-delay: 0.20s; }
.js .hero.is-in [data-seq="4"] { transition-delay: 0.30s; }
.js .hero.is-in [data-seq="5"] { transition-delay: 0.38s; }
.js .hero.is-in [data-seq="6"] { transition-delay: 0.44s; }

.hero__object { min-height: 380px; }
.browser--back {
  position: absolute; inset: 40px -10px auto 30px; height: 210px;
  background: var(--bg-alt); transform: rotate(3deg); opacity: 0.9; z-index: 0;
}
.browser--front { position: relative; z-index: 1; }
.phone {
  position: absolute; right: -6px; bottom: -26px; z-index: 3;
  width: 120px; background: var(--surface); border: var(--border-3);
  border-radius: 20px; box-shadow: var(--shadow); padding: 10px; transform: rotate(4deg);
}
.phone__screen { display: grid; gap: 8px; background: var(--bg); border: var(--border); border-radius: 12px; padding: 12px 10px; }
.phone__bar { height: 10px; width: 60%; background: var(--primary); border: 1.5px solid var(--text); border-radius: var(--radius-pill); }
.phone__btn { height: 22px; background: var(--secondary); border: 1.5px solid var(--text); border-radius: 7px; }
@media (max-width: 900px) { .phone { right: 4px; bottom: -14px; width: 96px; } .browser--back { display: none; } }

/* ---------- Services (linked cards, one coherent hover) ---------- */
.scard--link { color: inherit; transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out), border-color var(--dur-fast); }
.scard--link:hover { transform: translate(-3px, -3px); box-shadow: var(--shadow-lg); border-color: var(--secondary); }
.scard--link:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; }
.scard__icon { transition: transform var(--dur-mid) var(--ease-out), background-color var(--dur-fast); }
.scard--link:hover .scard__icon { transform: rotate(-8deg) scale(1.06); }
.scard__icon svg { width: 24px; height: 24px; }
.scard__summary { color: var(--muted); }
.scard__aud { font-family: var(--mono); font-size: 0.82rem; color: var(--secondary); font-weight: 700; }
.scard__go { margin-top: auto; font-weight: 800; color: var(--secondary); display: inline-flex; gap: var(--s-2); transition: gap var(--dur-fast); }
.scard--link:hover .scard__go { gap: var(--s-3); }

/* ---------- Why Breakfast (editorial numbered row) ---------- */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-12); counter-reset: why; }
.why__item { position: relative; padding-top: var(--s-8); border-top: var(--border-3); }
.why__num { font-family: var(--mono); font-weight: 700; font-size: 0.9rem; color: var(--secondary); }
.why__title { margin-top: var(--s-3); font-size: 1.5rem; }
.why__text { margin-top: var(--s-3); color: var(--muted); }
@media (max-width: 820px) { .why { grid-template-columns: 1fr; gap: var(--s-8); } }

/* ---------- Diagnostic checks (interactive flip cards) ---------- */
.checks { align-items: start; }
.check { background: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--s-6); transition: transform var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast); }
.check[open] { box-shadow: var(--shadow-lg); }
.check__q { display: flex; align-items: center; gap: var(--s-4); font-size: 1.2rem; font-weight: 800; cursor: pointer; list-style: none; }
.check__q::-webkit-details-marker { display: none; }
.check__q:focus-visible { outline: 3px solid var(--secondary); outline-offset: 3px; border-radius: 6px; }
.check__mark { position: relative; flex: none; width: 30px; height: 30px; border: var(--border); border-radius: 50%; background: var(--bg-alt); }
.check__mark::before, .check__mark::after { content: ""; position: absolute; inset: 0; margin: auto; background: var(--text); transition: transform var(--dur-fast) var(--ease-out); }
.check__mark::before { width: 12px; height: 2.5px; }
.check__mark::after { width: 2.5px; height: 12px; }
.check[open] .check__mark { background: var(--primary); }
.check[open] .check__mark::after { transform: scaleY(0); }
.check__a { margin-top: var(--s-4); padding-left: calc(30px + var(--s-4)); color: var(--muted); }

/* ---------- Process (scroll-linked steps) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-8); }
.steps__line { position: absolute; top: 22px; left: 0; right: 0; height: 3px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.steps__line-fill { display: block; height: 100%; width: var(--process, 0%); background: var(--secondary); transition: width 0.2s linear; }
.steps__item { position: relative; display: flex; flex-direction: column; gap: var(--s-3); }
.steps__num { display: grid; place-items: center; width: 44px; height: 44px; font-weight: 900; background: var(--white); color: var(--text); border: var(--border-3); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); position: relative; z-index: 1; transition: background-color var(--dur-mid), color var(--dur-mid); }
.steps__item.is-active .steps__num { background: var(--secondary); color: var(--white); }
.steps__title { font-size: 1.2rem; }
.steps__text { color: var(--muted); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-8); padding-left: var(--s-8); }
  .steps__line { top: 0; bottom: 0; left: 21px; right: auto; width: 3px; height: auto; }
  .steps__line-fill { width: 100%; height: var(--process, 0%); }
  .steps__num { margin-left: calc(-1 * var(--s-8)); }
}

/* ---------- Client platform (dark editorial moment + portal mock) ---------- */
.platform { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-16); align-items: center; }
.platform__list { margin-top: var(--s-8); display: grid; gap: var(--s-4); }
.platform__list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.platform__tick { flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; background: var(--primary); border: 2px solid var(--surface); position: relative; }
.platform__tick::after { content: ""; position: absolute; left: 6px; top: 4px; width: 6px; height: 10px; border: solid var(--ink); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.portal { background: var(--surface); color: var(--text); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; transform: rotate(-1.2deg); }
.portal__top { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); background: var(--bg-alt); border-bottom: var(--border); }
.portal__egg { width: 20px; height: 20px; border-radius: 48% 52% 55% 45% / 52% 48% 52% 48%; background: var(--white); border: 2px solid var(--text); position: relative; }
.portal__egg::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--primary); border: 1.5px solid var(--text); }
.portal__title { font-weight: 800; }
/* Darker green than the --success token: white on this 0.72rem bold text needs
   4.5:1 (small text), which #16a34a misses at 3.3:1. #15803d passes at ~5:1. */
.portal__pill { margin-left: auto; font-family: var(--mono); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: #15803d; color: var(--white); border: 2px solid var(--text); border-radius: var(--radius-pill); padding: 2px 10px; }
.portal__bar { height: 8px; background: var(--bg-alt); border-bottom: var(--border); }
.portal__bar-fill { display: block; height: 100%; width: 62%; background: var(--primary); }
.portal__rows { display: grid; gap: 0; }
.portal__row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-4) var(--s-6); border-bottom: var(--border); font-size: 0.95rem; }
.portal__row:last-child { border-bottom: 0; }
.portal__ico { flex: none; width: 16px; height: 16px; border: 2px solid var(--text); border-radius: 50%; background: var(--white); }
.portal__ico--ok { background: var(--success); }
@media (max-width: 820px) { .platform { grid-template-columns: 1fr; gap: var(--s-12); } .portal { transform: none; } }

/* ---------- Journal (compact list, low visual weight) ---------- */
.jlist { border-top: var(--border-3); }
.jlist__item { border-bottom: var(--border-3); }
.jlist__link { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: var(--s-2) var(--s-6); padding: var(--s-6) var(--s-2); transition: background-color var(--dur-fast), padding-left var(--dur-fast) var(--ease-out); }
.jlist__link:hover { background: var(--bg-alt); padding-left: var(--s-4); }
.jlist__link:focus-visible { outline: 3px solid var(--secondary); outline-offset: -3px; }
.jlist__title { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
.jlist__sum { grid-column: 1; color: var(--muted); font-size: 0.98rem; }
.jlist__go { grid-column: 2; grid-row: 1; color: var(--secondary); font-weight: 800; white-space: nowrap; }

/* ---------- CTA band (rich finish with egg motif) ---------- */
.cta-band--rich { position: relative; overflow: hidden; }
.cta-band__egg { position: absolute; width: 160px; height: 160px; right: -40px; top: -40px; border-radius: 50%; background: rgba(253, 200, 0, 0.18); border: 3px solid rgba(255,255,255,0.25); }
.cta-band__egg::after { content: ""; position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%; background: var(--primary); border: 3px solid var(--text); }
.js .cta-band--rich .cta-band__egg { animation: eggbob 6s ease-in-out infinite; }
.cta-band--rich > *:not(.cta-band__egg) { position: relative; z-index: 1; }

/* ---------- Motion: pointer tilt (idle depth on the hero object) ---------- */
[data-tilt] { transition: transform 0.3s var(--ease-out); transform-style: preserve-3d; will-change: transform; }

/* ---------- Reduced motion: disable non-essential movement ---------- */
@media (prefers-reduced-motion: reduce) {
  .js .hero__seq, .js .hero.is-in .hero__seq { opacity: 1 !important; transform: none !important; transition: none !important; }
  .steps__line-fill { transition: none; }
  .js .cta-band--rich .cta-band__egg { animation: none; }
  [data-tilt] { transform: none !important; }
}

/* ---------- About: founder polaroid + fit lists ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: var(--s-16); align-items: center; margin-top: var(--s-16); }
.founder__role { font-family: var(--mono); font-size: 0.9rem; font-weight: 700; color: var(--secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-top: var(--s-2); }
.founder__bio { margin-top: var(--s-4); font-size: 1.15rem; color: var(--muted); max-width: 42ch; }
.polaroid { display: inline-block; background: var(--white); border: var(--border); box-shadow: var(--shadow); padding: 14px 14px 0; transform: rotate(-3deg); max-width: 300px; }
.polaroid__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 1.5px solid var(--text); }
.polaroid__placeholder { display: grid; place-items: center; background: var(--bg-alt); }
.polaroid__egg { width: 84px; height: 108px; background: var(--white); border: var(--border-3); border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; position: relative; }
.polaroid__egg::after { content: ""; position: absolute; inset: 0; margin: auto; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); border: var(--border); }
.polaroid__cap { font-family: var(--hand); font-size: 1.5rem; color: var(--text); text-align: center; padding: var(--s-3) var(--s-2) var(--s-4); }
@media (max-width: 720px) { .founder { grid-template-columns: 1fr; gap: var(--s-8); justify-items: start; } }

.card--fit .scard__title { display: flex; align-items: center; gap: var(--s-3); }
.fit__mark { flex: none; width: 26px; height: 26px; border-radius: 50%; border: var(--border); position: relative; }
.fit__mark--yes { background: var(--success); }
.fit__mark--yes::after { content: ""; position: absolute; left: 8px; top: 5px; width: 6px; height: 11px; border: solid var(--white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.fit__mark--no { background: var(--bg-alt); }
.fit__mark--no::before, .fit__mark--no::after { content: ""; position: absolute; inset: 0; margin: auto; width: 13px; height: 2.5px; background: var(--muted); }
.fit__mark--no::before { transform: rotate(45deg); }
.fit__mark--no::after { transform: rotate(-45deg); }
.fitlist { margin-top: var(--s-4); display: grid; gap: var(--s-3); }
.fitlist li { padding-left: var(--s-6); position: relative; color: var(--text); }
.fitlist li::before { content: "→"; position: absolute; left: 0; color: var(--secondary); font-weight: 800; }
.fitlist--no li { color: var(--muted); }
.fitlist--no li::before { content: "·"; color: var(--muted); }

/* ---------- Services index card meta ---------- */
.scard__meta { display: inline-flex; align-items: center; gap: var(--s-2); font-family: var(--mono); font-size: 0.8rem; color: var(--muted); }
.scard__meta-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); }
.scard .scard__summary { color: var(--muted); }
.scard { gap: var(--s-2); }
.scard .link-cta { margin-top: var(--s-2); }

/* ---------- Productised offer path ---------- */
.offer-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); align-items: stretch; }
.scard--offer { gap: var(--s-4); }
.scard--offer:last-child:nth-child(odd) { grid-column: 1 / -1; }
.scard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.scard__package { font-family: var(--mono); color: var(--secondary); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.scard__includes { border-top: 1px solid rgba(28, 41, 60, 0.2); padding-top: var(--s-4); }
.scard__includes h3 { font-size: 0.85rem; margin-bottom: var(--s-2); }
.scard__includes ul { display: grid; gap: var(--s-2); color: var(--muted); }
.scard__includes li { position: relative; padding-left: var(--s-5); }
.scard__includes li::before { content: "✓"; position: absolute; left: 0; color: var(--secondary); font-weight: 900; }
.scard__actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-4); margin-top: auto; padding-top: var(--s-2); }
.scard__actions .link-cta { margin-top: 0; }
.offer-help { margin-top: var(--s-8); display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); }
.offer-help p { color: var(--muted); max-width: 62ch; margin-top: var(--s-2); }
.offer-help .btn { flex: none; }
.enquiry-next { max-width: 52rem; background: var(--surface); border: var(--border); border-radius: var(--radius); padding: var(--s-6); margin-bottom: var(--s-8); }
.enquiry-next h2 { font-size: 1.35rem; margin-bottom: var(--s-4); }
.enquiry-next ol { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); counter-reset: enquiry-step; }
.enquiry-next li { display: grid; gap: var(--s-2); color: var(--muted); counter-increment: enquiry-step; }
.enquiry-next li::before { content: counter(enquiry-step); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); border: 2px solid var(--text); color: var(--text); font-weight: 900; }
.enquiry-next strong { color: var(--text); }

@media (max-width: 720px) {
  .offer-grid { grid-template-columns: 1fr; }
  .scard--offer:last-child:nth-child(odd) { grid-column: auto; }
  .offer-help { align-items: flex-start; flex-direction: column; }
  .enquiry-next ol { grid-template-columns: 1fr; }
}

/* ---------- Multi-step form (progressive enhancement) ---------- */
/* No-JS: every step shows in order; only the Next/Back controls are hidden so
   the single submit still works. JS then chunks it into steps. */
.form--steps [data-step-next], .form--steps [data-step-back] { display: none; }
.form--js.form--steps [data-step-next], .form--js.form--steps [data-step-back] { display: inline-flex; }
.fprogress { display: none; }
.form--js .fprogress { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-8); padding: 0; }
.fprogress__item { display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 700; color: var(--muted); font-size: 0.95rem; }
.fprogress__item + .fprogress__item::before { content: ""; }
.fprogress__num { display: grid; place-items: center; width: 30px; height: 30px; border: var(--border); border-radius: 50%; background: var(--white); font-weight: 900; box-shadow: var(--shadow-sm); }
.fprogress__item.is-current { color: var(--text); }
.fprogress__item.is-current .fprogress__num { background: var(--primary); }
.fprogress__item.is-done .fprogress__num { background: var(--success); color: var(--white); }
.fprogress__item.is-done .fprogress__num { font-size: 0; }
.fprogress__item.is-done .fprogress__num::after { content: "✓"; font-size: 1rem; }
@media (max-width: 560px) { .fprogress__label { display: none; } }

.form--js .fstep { display: none; }
.form--js .fstep.is-active { display: grid; gap: var(--s-6); animation: fstepin 0.35s var(--ease-out); }
.fstep { display: grid; gap: var(--s-6); }
.fstep__title { font-size: 1.5rem; }
.fstep__title:focus { outline: none; }
.fstep__title:focus-visible { outline: 3px solid var(--secondary); outline-offset: 4px; border-radius: 6px; }
.fstep__nav { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-2); }
@keyframes fstepin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .form--js .fstep.is-active { animation: none; } }

/* Loading state on the submit button. */
.btn.is-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ""; position: absolute; width: 20px; height: 20px; border: 3px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: btnspin 0.7s linear infinite; color: var(--white); }
.btn--ghost.is-loading::after, .btn--primary.is-loading::after { color: var(--text); }
@keyframes btnspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::after { animation-duration: 1.4s; } }

/* =========================================================
   Public portfolio — /work listing + case studies
   ========================================================= */
.worklist .pcard { display: flex; flex-direction: column; }
.pcard__mock { display: grid; gap: 8px; align-content: center; padding: var(--s-8); background: var(--bg-alt); }
.pcard__mock-bar { height: 14px; width: 60%; background: var(--primary); border: 2px solid var(--text); border-radius: var(--radius-pill); }
.pcard__mock-line { height: 12px; background: var(--text); border-radius: 4px; }
.pcard__mock-line--sm { width: 70%; opacity: 0.6; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.worklink { color: inherit; }

/* Case study */
.casestudy .breadcrumbs { margin-bottom: var(--s-8); }
.case__head { max-width: 52rem; }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-6); }
.case__metaitem { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.case__cover { margin-top: var(--s-12); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; background: var(--bg-alt); }
.case__coverimg { width: 100%; display: block; }
.case__story { max-width: 44rem; margin-top: var(--s-16); display: grid; gap: var(--s-12); }
.case__h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
.case__body { margin-top: var(--s-3); }
.case__results { margin-top: var(--s-16); }
.case__quote { max-width: 44rem; margin: var(--s-16) 0 0; border-left: 6px solid var(--primary); padding-left: var(--s-8); }
.case__next { display: block; margin-top: var(--s-20); padding-block: var(--s-16); background: var(--ink); color: var(--surface); border-block: var(--border-3); text-decoration: none; transition: background-color var(--dur-fast); }
.case__next:hover { background: #10192b; }
.case__next-inner { display: flex; flex-direction: column; gap: var(--s-2); }
.case__next-label { font-family: var(--mono); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: #cbd5e6; }
.case__next-title { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 900; letter-spacing: -0.02em; }

/* Case-study blocks */
.pfblock { margin-top: var(--s-12); }
.pfblock--full { border: var(--border-3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-inline: 0; }
.pfblock--full .pfblock__img, .pfblock__img { width: 100%; display: block; }
.pfblock__cap { font-family: var(--mono); font-size: 0.8rem; color: var(--muted); padding: var(--s-3) var(--s-4); }
.pfblock--browser { position: relative; }
.pfblock--mobile { display: flex; justify-content: center; }
.pfblock__phone { display: inline-block; max-width: 260px; border: var(--border-3); border-radius: 26px; padding: 12px; background: var(--surface); box-shadow: var(--shadow-lg); }
.pfblock__phone .pfblock__img { border-radius: 14px; }
.pfblock--pair { display: grid; grid-template-columns: 1.6fr 0.7fr; gap: var(--s-6); align-items: end; }
.pfblock--pair .pfblock__desktop { border: var(--border-3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pfblock--ba { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.pfblock--ba figure { margin: 0; border: var(--border-3); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.pfblock--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.pfblock--grid .pfblock__img { border: var(--border); border-radius: var(--radius-sm); }
.pfblock--textimg { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-12); align-items: center; max-width: none; }
.pfblock--textimg.is-flipped .pfblock__media { order: -1; }
.pfblock--textimg .pfblock__img { border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow); }
.pfblock--prose, .pfblock--quote, .pfblock--caption { max-width: 44rem; }
.pfblock--quote .quote__text { font-size: clamp(1.4rem, 3vw, 2rem); }
.pfblock--caption { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); text-align: center; }
.pfblock--panel { background: var(--panel, var(--secondary)); color: var(--white); border: var(--border-3); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: var(--s-16) var(--s-8); text-align: center; }
.pfblock__paneltext { font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 900; letter-spacing: -0.02em; max-width: 22ch; margin-inline: auto; }
@media (max-width: 820px) {
  .pfblock--pair, .pfblock--ba, .pfblock--textimg { grid-template-columns: 1fr; }
  .pfblock--textimg.is-flipped .pfblock__media { order: 0; }
}

/* Homepage selected-work section */
.homework { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-8); }
@media (max-width: 720px) { .homework { grid-template-columns: 1fr; } }
