/* ===========================================================================
   IngoVaArt — style.css
   ---------------------------------------------------------------------------
   Contents
     01  Tokens (colour, type, spacing, motion)
     02  Reset & base
     03  Paper grain + pencil cursor
     04  Reusable atoms (buttons, links, labels, hand-drawn ink)
     05  Layout primitives (wrap, section, headings)
     06  Navigation
     07  Hero
     08  Gallery + filters
     09  Services
     10  Pricing
     11  Before / after slider
     12  How it works
     13  About
     14  Testimonials
     15  Contact + form
     16  Footer
     17  Lightbox
     18  Reveal animations & reduced motion
     19  Responsive
   =========================================================================== */

/* ── 01 · TOKENS ─────────────────────────────────────────────────────────── */
:root {
  /* Palette */
  --paper:        #F4EFE6;
  --paper-2:      #EDE5D7;   /* deeper paper, used for alternating bands   */
  --paper-3:      #FBF8F2;   /* the print itself: brighter than the desk   */
  --ink:          #171717;
  --cobalt:       #3155FF;
  --coral:        #FF6047;
  --graphite:     #5D5850;   /* body text at rest — softer than pure ink   */
  --graphite-2:   #8B857B;   /* captions, meta                             */
  --rule:         rgba(23, 23, 23, .16);
  --rule-soft:    rgba(23, 23, 23, .08);

  /* Type */
  --f-display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --f-body:    "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-hand:    "Caveat", "Segoe Script", "Bradley Hand", cursive;

  --t-hero:  clamp(2.6rem, 7.4vw, 6.1rem);
  --t-h2:    clamp(1.9rem, 4vw,  3.3rem);
  --t-h3:    clamp(1.12rem, 1.7vw, 1.4rem);
  --t-lede:  clamp(1.02rem, 1.4vw, 1.22rem);
  --t-body:  clamp(.97rem, 1.05vw, 1.05rem);
  --t-small: .82rem;
  --t-micro: .72rem;

  --lh-tight: 1.02;
  --lh-snug:  1.28;
  --lh-body:  1.62;

  /* Spacing scale */
  --s-1: .25rem;  --s-2: .5rem;   --s-3: .75rem;  --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;    --s-7: 3rem;    --s-8: 4.5rem;
  --s-9: 7rem;
  --sec-y: clamp(4rem, 9vw, 7.5rem);
  --gut:   clamp(1.15rem, 4vw, 3rem);
  --wrap:  76rem;

  /* Shape & shadow — prints on a desk, so shadows are low and warm */
  --r-sm: 3px;
  --r-md: 6px;
  --sh-print:
    0 1px 1px rgba(23,23,23,.05),
    0 6px 14px -6px rgba(23,23,23,.20),
    0 22px 40px -28px rgba(23,23,23,.42);
  --sh-lift:
    0 2px 3px rgba(23,23,23,.06),
    0 14px 26px -10px rgba(23,23,23,.26),
    0 34px 60px -34px rgba(23,23,23,.48);

  /* Motion */
  --e-out:  cubic-bezier(.22, .78, .3, 1);
  --e-soft: cubic-bezier(.4, 0, .2, 1);
  --d-1: .18s;  --d-2: .34s;  --d-3: .62s;
}

/* ── 02 · RESET & BASE ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;   /* sticky nav clearance for #anchors */
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--graphite);
  font: 400 var(--t-body)/var(--lh-body) var(--f-body);
  overflow-x: clip;           /* rotated prints never create a scrollbar */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--f-display);
  font-weight: 600;
  line-height: var(--lh-snug);
  letter-spacing: -.02em;
}

p  { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--cobalt); color: #fff; }

/* Focus: a drawn cobalt box, never removed */
:focus-visible {
  outline: 2.5px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 2px;
}

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

.skip-link {
  position: fixed; top: -100px; left: var(--s-4); z-index: 200;
  padding: var(--s-3) var(--s-5);
  background: var(--ink); color: var(--paper);
  font-family: var(--f-display); font-weight: 600;
  border-radius: var(--r-md);
  transition: top var(--d-1) var(--e-out);
}
.skip-link:focus-visible { top: var(--s-4); }

/* ── 03 · PAPER GRAIN + PENCIL CURSOR ────────────────────────────────────── */

/* Fixed grain layer. feTurbulence baked into a data URI so there is no
   extra request and nothing to break offline. */
.grain {
  position: fixed; inset: 0; z-index: 1;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='260' height='260' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

/* Custom cursor: a graphite nib. Enabled by JS on fine-pointer devices only. */
body.has-pencil,
body.has-pencil a,
body.has-pencil button,
body.has-pencil input,
body.has-pencil select,
body.has-pencil textarea,
body.has-pencil [role="button"] { cursor: none; }

.pencil-cursor {
  position: fixed; top: 0; left: 0; z-index: 150;
  width: 22px; height: 22px;
  margin: -3px 0 0 -3px;              /* nib tip sits on the hotspot */
  pointer-events: none;
  will-change: transform;
  background: no-repeat center/contain
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.5 21.5 5 14.2 17.4 1.8a2.2 2.2 0 0 1 3.1 0l.7.7a2.2 2.2 0 0 1 0 3.1L8.8 18 2.5 21.5Z' fill='%23F4EFE6' stroke='%23171717' stroke-width='1.5' stroke-linejoin='round'/%3E%3Cpath d='M5 14.2 8.8 18' stroke='%23171717' stroke-width='1.5'/%3E%3Cpath d='m2.5 21.5 2-6 3.6 3.6Z' fill='%23171717'/%3E%3C/svg%3E");
  transition: transform var(--d-1) var(--e-out), opacity var(--d-1) linear;
}
.pencil-cursor.is-down  { transform: scale(.8); }
.pencil-cursor.is-hot   { transform: rotate(-12deg) scale(1.14); }
.pencil-cursor.is-hidden{ opacity: 0; }

/* ── 04 · ATOMS ──────────────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--f-body);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--graphite-2);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: ""; display: inline-block;
  width: 1.7rem; height: 1px; margin-right: .7rem;
  vertical-align: .28em;
  background: var(--ink); opacity: .45;
}

/* Handwritten margin notes */
.margin-note {
  font-family: var(--f-hand);
  font-size: 1.35rem;
  line-height: 1.1;
  color: var(--cobalt);
  transform: rotate(-6deg);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .55rem;
  padding: .92em 1.6em;
  font-family: var(--f-display);
  font-size: .94rem; font-weight: 600; letter-spacing: -.005em;
  border: 1.5px solid var(--ink);
  border-radius: 100px;
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: transform var(--d-1) var(--e-out),
              background-color var(--d-2) var(--e-soft),
              color var(--d-2) var(--e-soft),
              box-shadow var(--d-2) var(--e-soft);
}
.btn--ink   { background: var(--ink);   color: var(--paper); }
.btn--coral { background: var(--coral); border-color: var(--coral); color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm    { padding: .7em 1.2em; font-size: .86rem; }

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -8px rgba(23,23,23,.5);
}
.btn--ink:hover   { background: var(--cobalt); border-color: var(--cobalt); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--coral:hover { background: #f0492e; border-color: #f0492e; }
.btn:active { transform: translateY(0); }

/* Pencil-underline link: a stroke drawn left to right on hover */
.link-pencil {
  position: relative;
  display: inline-block;
  color: var(--ink);
  font-weight: 500;
  padding-bottom: 2px;
}
.link-pencil::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px;
  background: no-repeat left center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4.2C18 1.6 36 4.8 52 3.1 68 1.4 84 4.4 99 2.2' fill='none' stroke='%233155FF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-2) var(--e-out);
}
.link-pencil:hover::after,
.link-pencil:focus-visible::after { transform: scaleX(1); }

/* Hand-drawn ink strokes that draw themselves when revealed.
   JS measures each path and sets --len; CSS animates the dash offset. */
.scribble { position: absolute; pointer-events: none; overflow: visible; }
.scribble .ink {
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
}
.scribble.is-drawn .ink {
  animation: draw 1.1s var(--e-out) forwards;
}
.scribble .ink:nth-child(2) { animation-delay: .32s; }
.scribble .ink:nth-child(3) { animation-delay: .56s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Photo/print frame — the physical object every image sits inside */
.frame {
  position: relative;
  display: block;
  background: var(--paper-3);
  padding: 10px 10px 10px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-print);
  overflow: hidden;
}
.frame img {
  display: block; width: 100%;
  border-radius: 1px;
  background: var(--paper-2);
}

/* Elegant fallback when an image cannot load (see the inline script in
   index.html — it adds .is-missing to the frame). */
.frame.is-missing img { display: none; }
.frame.is-missing::before {
  content: "";
  display: block;
  aspect-ratio: 4 / 5;
  background:
    repeating-linear-gradient(-45deg,
      transparent 0 9px, var(--rule-soft) 9px 10px),
    var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: 2px;
}
/* The label half of this fallback lives at the end of the file — it has to
   out-order `.card .frame::after` (the hover hairline), which has the same
   specificity and would otherwise blank the content. */

/* Taped handwritten caption under a print */
.label {
  margin-top: .55rem;
  font-family: var(--f-hand);
  font-size: 1.18rem;
  color: var(--graphite);
  text-align: center;
  transform: rotate(-1.4deg);
}

/* ── 05 · LAYOUT ─────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
  position: relative;
  z-index: 2;
}

.section { padding-block: var(--sec-y); position: relative; }

/* Alternating paper bands, separated by a drawn rule instead of a hard edge */
.services, .process, .quotes { background: var(--paper-2); }
.services::before, .process::before, .quotes::before,
.services::after,  .process::after,  .quotes::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--rule-soft);
}
.services::before, .process::before, .quotes::before { top: 0; }
.services::after,  .process::after,  .quotes::after  { bottom: 0; }

.sec-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head--split {
  display: grid; gap: var(--s-5);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: end;
  max-width: none;
}

.sec-title {
  position: relative;
  font-size: var(--t-h2);
  font-weight: 600;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.sec-lede {
  margin-top: var(--s-4);
  font-size: var(--t-lede);
  color: var(--graphite);
  max-width: 40ch;
  text-wrap: pretty;
}
.sec-head--center .sec-lede { margin-inline: auto; }
.sec-lede--warn {
  font-family: var(--f-hand);
  font-size: 1.25rem;
  color: var(--coral);
}

/* The circle scribble sits behind a section title */
.scribble--circle {
  top: 50%; left: 50%;
  width: 118%; height: 175%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  z-index: -1;
}
.scribble--circle .ink { stroke: var(--cobalt); stroke-width: 1.7; opacity: .55; }

/* ── 06 · NAVIGATION ─────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(9px) saturate(1.1);
  -webkit-backdrop-filter: blur(9px) saturate(1.1);
  border-bottom: 1px solid transparent;
  transition: border-color var(--d-2) var(--e-soft),
              box-shadow var(--d-2) var(--e-soft);
}
.nav.is-stuck {
  border-bottom-color: var(--rule);
  box-shadow: 0 10px 26px -24px rgba(23,23,23,.9);
}

.nav__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: .85rem var(--gut);
  display: flex; align-items: center; gap: var(--s-5);
}

.logo { display: inline-flex; align-items: center; gap: .55rem; flex: 0 0 auto; }
.logo__mark { width: 26px; height: 26px; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; }
.logo__mark .logo__nib { fill: var(--coral); stroke: var(--coral); }
.logo__word {
  font-family: var(--f-display);
  font-size: 1.16rem; font-weight: 800; letter-spacing: -.035em;
  color: var(--ink);
}
.logo__word em { font-style: normal; color: var(--cobalt); }
.logo__word small {
  font-weight: 500; font-size: .68em; letter-spacing: .04em;
  color: var(--graphite-2);
}

.nav__links { margin-left: auto; }
.nav__links ul { display: flex; align-items: center; gap: clamp(.9rem, 1.7vw, 1.6rem); }
.nav__links a {
  position: relative;
  font-size: .9rem; font-weight: 500;
  color: var(--graphite);
  padding: .35rem 0;
  transition: color var(--d-1) var(--e-soft);
}
.nav__links a::after {
  content: "";
  position: absolute; left: -2px; right: -2px; bottom: -1px; height: 6px;
  background: no-repeat center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 6' preserveAspectRatio='none'%3E%3Cpath d='M1 4C18 1.4 36 5 52 3.2 68 1.4 84 4.6 99 2' fill='none' stroke='%23FF6047' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-2) var(--e-out);
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ink); }
.nav__links a:hover::after,
.nav__links a:focus-visible::after,
.nav__links a.is-current::after { transform: scaleX(1); }

.nav__tools { display: flex; align-items: center; gap: var(--s-4); flex: 0 0 auto; }

.lang { display: inline-flex; align-items: center; gap: .3rem; }
.lang__btn {
  background: none; border: 0; padding: .3rem .15rem; cursor: pointer;
  font-family: var(--f-display); font-size: .8rem; font-weight: 600;
  letter-spacing: .06em; color: var(--graphite-2);
  transition: color var(--d-1) var(--e-soft);
}
.lang__btn:hover { color: var(--ink); }
.lang__btn.is-active { color: var(--ink); text-decoration: underline; text-decoration-color: var(--coral); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.lang__sep { color: var(--rule); font-size: .8rem; }

.burger {
  display: none;
  background: none; border: 0; padding: .4rem; cursor: pointer;
}
.burger__box { display: block; width: 24px; }
.burger__box i {
  display: block; height: 1.8px; margin: 5px 0;
  background: var(--ink); border-radius: 2px;
  transition: transform var(--d-2) var(--e-out), opacity var(--d-1) linear;
}
.burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] i:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] i:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

/* ── 07 · HERO ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(4rem, 9vw, 8rem);
  overflow: hidden;
}
.hero__trail {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .85;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero__title {
  font-size: var(--t-hero);
  font-weight: 600;
  line-height: var(--lh-tight);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.hero__title span { display: block; }
.hero__title-em { position: relative; display: inline-block !important; }
.scribble--under {
  left: -1%; right: -1%; bottom: -.1em;
  width: 102%; height: .42em;
}

.hero__lede {
  margin-top: var(--s-5);
  max-width: 38ch;
  font-size: var(--t-lede);
  color: var(--graphite);
  text-wrap: pretty;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }

.hero__facts {
  display: flex; flex-wrap: wrap; gap: var(--s-5) var(--s-6);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule-soft);
}
.hero__facts li { display: flex; align-items: baseline; gap: .45rem; max-width: 12rem; }
.hero__facts b {
  font-family: var(--f-display); font-size: 1.5rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.04em;
}
.hero__facts span { font-size: var(--t-small); color: var(--graphite-2); line-height: 1.3; }

/* Collage: three prints scattered on the desk.
   The aspect-ratio reserves exactly the space the three overlapping prints
   need, so no dead whitespace opens up under the hero. */
.collage {
  position: relative;
  aspect-ratio: 1 / 0.94;
  width: 100%;
  /* No min-height: combined with aspect-ratio it would imply a minimum
     WIDTH (min-height ÷ ratio) and blow the grid track past the viewport
     on a 320px screen. The ratio alone already stops it collapsing. */
  min-height: 0;
}
.print {
  position: absolute;
  margin: 0;
  will-change: transform;
  transition: transform var(--d-3) var(--e-out), filter var(--d-2) var(--e-soft);
}
.print .frame { padding: 9px 9px 8px; }
/* No z-index here on purpose: the prints stack in DOM order (a, b, c) and
   stay free of their own stacking contexts, so each caption's z-index can
   lift it above a neighbouring print instead of being trapped underneath. */
.print--a { width: 50%; left: 0;    top: 2%;    transform: rotate(-5.5deg); }
.print--b { width: 45%; right: 0;   top: 0;     transform: rotate(3.5deg); }
.print--c { width: 40%; left: 30%;  bottom: 4%; transform: rotate(-1.5deg); }

/* Handwritten labels sit on top of the whole stack so an overlapping print
   never hides one. They hang just below their own print, like a pencil note
   written on the desk rather than on the paper. */
.print .label {
  position: absolute;
  top: 100%;
  left: 6%;
  margin-top: .3rem;
  white-space: nowrap;
  z-index: 8;
}
/* The middle print sits over B's bottom-left corner, so B's note hangs
   off its right edge instead. */
.print--b .label { left: auto; right: 2%; }

.print:hover { position: absolute; z-index: 6; filter: saturate(1.03); }
.print:hover .frame { box-shadow: var(--sh-lift); }

/* Sits in the gap above the left-hand print, clear of every caption */
.margin-note--hero {
  position: absolute; left: 4%; top: -8%;
  z-index: 9; color: var(--coral);
  transform: rotate(-7deg);
  white-space: nowrap;
}
.scribble--arrow {
  right: 0; bottom: 4%;
  width: 6.5rem; height: 5rem;
  transform: scaleX(-1) rotate(8deg);
  z-index: 5;
}
.scribble--arrow .ink { stroke: var(--cobalt); stroke-width: 1.9; }

/* ── 08 · GALLERY ────────────────────────────────────────────────────────── */
.gallery .sec-title { display: inline-block; z-index: 0; }

.filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: var(--s-6);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--rule-soft);
}
.chip {
  padding: .52em 1.05em;
  background: transparent;
  border: 1.4px solid var(--rule);
  border-radius: 100px;
  font-family: var(--f-display); font-size: .85rem; font-weight: 600;
  color: var(--graphite); cursor: pointer;
  transition: color var(--d-1) var(--e-soft),
              border-color var(--d-1) var(--e-soft),
              background-color var(--d-1) var(--e-soft),
              transform var(--d-1) var(--e-out);
}
.chip:hover { color: var(--ink); border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.4rem, 3vw, 2.6rem) clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}

/* Asymmetry: every third card drops, giving the grid a hand-placed rhythm */
.card:nth-child(3n + 2) { margin-top: clamp(1rem, 3vw, 3rem); }
.card:nth-child(4n)     { margin-top: clamp(.5rem, 1.5vw, 1.4rem); }

.card {
  transition: opacity var(--d-2) var(--e-soft),
              transform var(--d-2) var(--e-out);
}
.card.is-hidden {
  display: none;
}
.card.is-filtering { opacity: 0; transform: translateY(10px) scale(.985); }

.card__btn {
  display: block; width: 100%;
  padding: 0; background: none; border: 0; text-align: left; cursor: pointer;
}
.card .frame {
  transform: rotate(var(--tilt, 0deg));
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2) var(--e-soft);
}
.card:nth-child(2n) .frame  { --tilt: .8deg; }
.card:nth-child(3n) .frame  { --tilt: -1.1deg; }
.card:nth-child(5n) .frame  { --tilt: 1.4deg; }

.card__btn:hover .frame,
.card__btn:focus-visible .frame {
  transform: rotate(0deg) translateY(-6px);
  box-shadow: var(--sh-lift);
}

/* A cobalt hairline sweeps across the print on hover — like a ruler */
.card .frame::after {
  content: "";
  position: absolute; left: 10px; right: 10px; bottom: 10px; height: 2px;
  background: var(--cobalt);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-3) var(--e-out);
}
.card__btn:hover .frame::after,
.card__btn:focus-visible .frame::after { transform: scaleX(1); }

.card__meta {
  display: flex; flex-direction: column; gap: .1rem;
  padding: .85rem .2rem 0;
}
.card__title {
  font-family: var(--f-display); font-size: var(--t-h3);
  font-weight: 600; color: var(--ink); letter-spacing: -.025em;
}
.card__sub { font-size: var(--t-small); color: var(--graphite-2); }

/* ── 09 · SERVICES ───────────────────────────────────────────────────────── */
.svc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.svc__card {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start;
  gap: var(--s-3);
  padding-top: var(--s-5);
}
/* Hand-drawn top rule per card */
.svc__rule {
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: no-repeat left center/100% 100%
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 4' preserveAspectRatio='none'%3E%3Cpath d='M1 2.6C34 .9 68 3.4 100 2 132 .7 166 3.2 199 1.6' fill='none' stroke='%23171717' stroke-width='1.3' stroke-linecap='round' opacity='.35'/%3E%3C/svg%3E");
}
.svc__title { font-size: var(--t-h3); }
.svc__text { font-size: .95rem; color: var(--graphite); flex: 1; text-wrap: pretty; }
.svc__price {
  font-family: var(--f-display); font-size: .95rem; color: var(--graphite-2);
}
.svc__price b {
  font-size: 1.28rem; font-weight: 800; color: var(--ink); letter-spacing: -.035em;
}
.svc__card:nth-child(even) .svc__price b { color: var(--cobalt); }

/* ── 10 · PRICING ────────────────────────────────────────────────────────── */
.price-list {
  border-top: 1px solid var(--rule);
  max-width: 56rem;
}
.price {
  position: relative;
  display: flex; align-items: baseline; justify-content: space-between;
  gap: var(--s-4) var(--s-5);
  flex-wrap: wrap;
  padding: clamp(1.1rem, 2.4vw, 1.7rem) 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: padding-left var(--d-2) var(--e-out);
}
.price:hover { padding-left: .7rem; }
.price::before {
  content: "";
  position: absolute; left: -1.4rem; top: 50%; width: 0; height: 1.6px;
  background: var(--coral);
  transform: translateY(-50%);
  transition: width var(--d-2) var(--e-out);
}
.price:hover::before { width: 1rem; }

.price__name { font-size: var(--t-h3); }
.price__desc { margin-top: .2rem; font-size: .92rem; color: var(--graphite-2); }
.price__fig {
  font-family: var(--f-display);
  white-space: nowrap;
  color: var(--ink);
}
.price__from { font-family: var(--f-body); font-size: var(--t-small); color: var(--graphite-2); }
.price__fig b { font-size: clamp(1.7rem, 3.4vw, 2.3rem); font-weight: 800; letter-spacing: -.045em; }
.price__cur { font-size: .82rem; font-weight: 600; color: var(--graphite-2); }

/* Most popular — circled by hand */
.price--star { padding-inline: clamp(.9rem, 2vw, 1.4rem); }
.price--star::after {
  content: "";
  position: absolute; inset: .35rem -.6rem;
  border: 1.7px solid var(--cobalt);
  border-radius: 62% 38% 55% 45% / 46% 58% 42% 54%;
  opacity: .6;
  pointer-events: none;
}
.price--star .price__fig b { color: var(--cobalt); }
.price__flag {
  position: absolute; top: -.55rem; right: .4rem;
  font-family: var(--f-hand); font-size: 1.22rem; color: var(--coral);
  transform: rotate(-5deg);
  background: var(--paper); padding-inline: .4rem;
}

.price-note {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3);
  margin-top: var(--s-6);
  font-size: var(--t-lede);
  color: var(--graphite);
  max-width: 44rem;
}
.price-note .margin-note { color: var(--cobalt); }

/* ── 11 · BEFORE / AFTER ─────────────────────────────────────────────────── */
.ba { margin: 0; max-width: 60rem; margin-inline: auto; }
.ba__stage {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-print);
  background: var(--paper-3);
  touch-action: pan-y;   /* vertical scroll still works over the slider */
}
.ba__img { width: 100%; display: block; }

/* The "after" half is the same photo run through the #pencil-sketch filter
   defined in index.html. The grayscale/contrast pair is the fallback for
   engines that ignore url() filters. Remove this rule once you swap in a
   real scan of the finished drawing. */
.ba__img--after {
  filter: grayscale(1) contrast(1.5) brightness(1.12);
  filter: url("#pencil-sketch");
}
/* Warm the sketch half towards ivory paper and add tooth */
.ba__stage::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  opacity: .28;
  z-index: 2;
}
/* Explicit stacking so the grain never covers the handle or the labels */
.ba__clip { z-index: 1; }
.ba__line, .ba__grip, .ba__tag { z-index: 3; }
.ba__range { z-index: 4; }
.ba__clip {
  position: absolute; inset: 0;
  width: var(--pos, 50%);
  overflow: hidden;
}
.ba__clip .ba__img {
  position: absolute; top: 0; left: 0; height: 100%;
  width: auto; min-width: 100%;
  max-width: none;
  object-fit: cover;
}
/* Give the clipped image the stage's exact width so the halves line up */
.ba__stage { --stage-w: 100%; }
.ba__clip .ba__img { width: var(--stage-px, 100%); }

.ba__line {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; margin-left: -1px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(23,23,23,.35);
  pointer-events: none;
}
.ba__grip {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  display: grid; place-items: center;
  background: var(--paper); border: 1.6px solid var(--ink);
  border-radius: 50%;
  box-shadow: 0 6px 16px -6px rgba(23,23,23,.6);
  pointer-events: none;
  transition: transform var(--d-1) var(--e-out);
}
.ba__grip svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.ba__range:hover + .ba__line,
.ba__range:focus-visible + .ba__line { background: var(--cobalt); }
.ba__range:hover ~ .ba__grip { transform: scale(1.08); }
.ba__range:focus-visible ~ .ba__grip { border-color: var(--cobalt); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 35%, transparent); }

.ba__tag {
  position: absolute; bottom: .9rem;
  padding: .28rem .7rem;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  color: var(--paper);
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  border-radius: 100px;
  pointer-events: none;
}
.ba__tag--l { left: .9rem; }
.ba__tag--r { right: .9rem; background: color-mix(in srgb, var(--cobalt) 92%, transparent); }

/* The range input is the interactive layer: invisible, full-bleed, focusable */
.ba__range {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  -webkit-appearance: none; appearance: none;
  background: transparent; cursor: ew-resize;
}
.ba__range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 0; cursor: ew-resize;
}
.ba__range::-moz-range-thumb {
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 0; cursor: ew-resize;
}
.ba__range::-moz-range-track { background: transparent; }

.ba__cap {
  margin-top: var(--s-4);
  text-align: center;
  font-family: var(--f-hand); font-size: 1.24rem; color: var(--graphite-2);
}

/* ── 12 · HOW IT WORKS ───────────────────────────────────────────────────── */
.process { overflow: hidden; }

/* Positioning context so the connector can be measured against the step
   row itself rather than against the whole section. */
.process__flow { position: relative; }
.process__line {
  position: absolute;
  left: 0; right: 0; top: 0;
  width: 100%; height: 160px;   /* must match the viewBox height */
  z-index: 0;
  pointer-events: none;
}
.process__line .ink { stroke: var(--coral); stroke-width: 1.6; opacity: .75; }

.steps {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  gap: clamp(1.8rem, 3.5vw, 2.6rem);
  counter-reset: step;
}
.step { display: flex; flex-direction: column; gap: var(--s-3); }
/* Staggered baseline so the connector reads as a drawn wave */
.step:nth-child(2) { margin-top: clamp(0rem, 3vw, 2.4rem); }
.step:nth-child(4) { margin-top: clamp(0rem, 3vw, 2.4rem); }

.step__num {
  font-family: var(--f-hand);
  font-size: 2.4rem; line-height: 1;
  color: var(--cobalt);
}
.step__icon {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  background: var(--paper);
}
.step__icon svg {
  width: 26px; height: 26px;
  fill: none; stroke: var(--ink); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.step__title { font-size: var(--t-h3); }
.step__text { font-size: .93rem; color: var(--graphite); text-wrap: pretty; }

/* ── 13 · ABOUT ──────────────────────────────────────────────────────────── */
.about__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.about__photo { margin: 0; transform: rotate(-2deg); }
.about__photo .frame { padding: 12px 12px 10px; }
.about__body { max-width: 40rem; }
.about__text {
  margin-top: var(--s-5);
  font-size: var(--t-lede);
  color: var(--graphite);
  text-wrap: pretty;
}
.signature {
  width: clamp(11rem, 22vw, 15rem);
  height: auto;
  margin-top: var(--s-6);
  overflow: visible;
}
.signature .ink {
  fill: none; stroke: var(--ink); stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
}
.signature.is-drawn .ink { animation: draw 1.5s var(--e-out) forwards; }
.signature.is-drawn .ink:nth-child(2) { animation-delay: .45s; }
.signature.is-drawn .ink:nth-child(3) { animation-delay: .8s; }
.signature.is-drawn .ink:nth-child(4) { animation-delay: 1.05s; }
.about__sigcap {
  margin-top: var(--s-2);
  font-size: var(--t-small);
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--graphite-2);
}

/* ── 14 · TESTIMONIALS ───────────────────────────────────────────────────── */
.quote-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: clamp(1.6rem, 3vw, 2.4rem);
}
.quote {
  position: relative;
  padding: var(--s-6) var(--s-5) var(--s-5);
  background: var(--paper-3);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-print);
}
.quote:nth-child(1) { transform: rotate(-1deg); }
.quote:nth-child(3) { transform: rotate(1.1deg); }
.quote__mark {
  position: absolute; top: .1rem; left: 1.2rem;
  font-family: var(--f-display); font-size: 4rem; line-height: 1;
  color: var(--coral); opacity: .75;
}
.quote blockquote { margin: 0; }
.quote p { font-size: 1rem; color: var(--graphite); text-wrap: pretty; }
.quote__by {
  margin-top: var(--s-4); padding-top: var(--s-3);
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: .1rem;
}
.quote__by b { font-family: var(--f-display); color: var(--ink); font-weight: 600; }
.quote__by span { font-size: var(--t-small); color: var(--graphite-2); }

/* ── 15 · CONTACT + FORM ─────────────────────────────────────────────────── */
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.contact__side { position: relative; }

.contact__list { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
.contact__list li {
  display: grid; gap: .15rem;
  padding-bottom: var(--s-4);
  border-bottom: 1px solid var(--rule-soft);
}
.contact__k {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase; color: var(--graphite-2);
}
.contact__v {
  font-family: var(--f-display); font-size: 1.12rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.02em;
  justify-self: start;
}
.margin-note--contact { margin-top: var(--s-5); display: inline-block; }

/* Form: a sheet clipped onto the desk */
.form {
  position: relative;
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
  background: var(--paper-3);
  border-radius: var(--r-md);
  box-shadow: var(--sh-print);
}
.form__title {
  font-size: 1.22rem;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--rule-soft);
}
.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  gap: var(--s-4);
}
.field { display: grid; gap: .35rem; margin-bottom: var(--s-4); min-width: 0; }
.field label, .field__label {
  font-size: var(--t-small); font-weight: 600; color: var(--ink);
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
  width: 100%;
  padding: .72rem .85rem;
  background: var(--paper);
  border: 1.4px solid var(--rule);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: .95rem;
  transition: border-color var(--d-1) var(--e-soft),
              box-shadow var(--d-1) var(--e-soft),
              background-color var(--d-1) var(--e-soft);
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%23171717' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .8rem center;
  background-size: 12px;
  padding-right: 2.2rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cobalt);
  background: #fff;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--cobalt) 16%, transparent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--graphite-2); opacity: .8; }

.field.has-error input,
.field.has-error select,
.field.has-error textarea { border-color: var(--coral); }
.field__err {
  font-size: var(--t-small); color: var(--coral); min-height: 0;
}
.field__err::before { content: "↳ "; }
.field__err:empty { display: none; }

.field--check {
  grid-template-columns: auto 1fr;
  align-items: start; gap: .7rem;
  margin-top: var(--s-2);
}
.field--check input {
  width: 1.15rem; height: 1.15rem; margin-top: .18rem;
  accent-color: var(--cobalt);
}
.field--check label { font-weight: 400; font-size: .9rem; color: var(--graphite); }
.field--check .field__err { grid-column: 1 / -1; }

/* Upload area */
.drop {
  display: grid; justify-items: center; gap: .25rem;
  padding: var(--s-6) var(--s-4);
  border: 1.6px dashed var(--rule);
  border-radius: var(--r-md);
  background: var(--paper);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--d-1) var(--e-soft), background-color var(--d-1) var(--e-soft);
}
.drop:hover, .drop.is-over {
  border-color: var(--cobalt);
  background: color-mix(in srgb, var(--cobalt) 5%, var(--paper));
}
.drop__icon { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .7; }
.drop__text { font-weight: 600; color: var(--ink); font-size: .93rem; }
.drop__hint { font-size: var(--t-small); color: var(--graphite-2); }
.drop__list { margin-top: .6rem; display: grid; gap: .3rem; }
.drop__list li {
  display: flex; align-items: center; gap: .5rem;
  font-size: var(--t-small); color: var(--graphite);
}
.drop__list li::before { content: "▪"; color: var(--cobalt); }

/* Honeypot — hidden from people, reachable by naive bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__submit { width: 100%; margin-top: var(--s-4); }
.form__status {
  margin-top: var(--s-4);
  font-family: var(--f-hand); font-size: 1.3rem; line-height: 1.3;
}
.form__status.is-ok  { color: var(--cobalt); }
.form__status.is-bad { color: var(--coral); }
.form__small {
  margin-top: var(--s-3);
  font-size: var(--t-micro); color: var(--graphite-2);
}

/* ── 16 · FOOTER ─────────────────────────────────────────────────────────── */
.foot {
  position: relative;
  background: var(--ink);
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  padding-top: var(--s-8);
}
.foot .logo__word { color: var(--paper); }
.foot .logo__mark { stroke: var(--paper); }
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, .8fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-bottom: var(--s-8);
}
.foot__desc { margin-top: var(--s-4); max-width: 32ch; font-size: .93rem; }
.foot__h {
  font-size: var(--t-micro); font-weight: 600;
  letter-spacing: .17em; text-transform: uppercase;
  color: color-mix(in srgb, var(--paper) 55%, transparent);
  margin-bottom: var(--s-4);
}
.foot__nav ul, .foot__contact ul { display: grid; gap: .55rem; }
.foot__nav a, .foot__contact a {
  font-size: .95rem;
  transition: color var(--d-1) var(--e-soft);
}
.foot__nav a:hover, .foot__contact a:hover { color: var(--coral); }
.foot__contact .btn { margin-top: var(--s-5); border-color: color-mix(in srgb, var(--paper) 40%, transparent); color: var(--paper); }
.foot__contact .btn:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }

.social { display: flex; gap: .6rem; margin-top: var(--s-5); }
.social a {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1.4px solid color-mix(in srgb, var(--paper) 26%, transparent);
  border-radius: 50%;
  color: var(--paper);
  transition: background-color var(--d-1) var(--e-soft),
              color var(--d-1) var(--e-soft),
              border-color var(--d-1) var(--e-soft),
              transform var(--d-1) var(--e-out);
}
.social svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.social a:hover {
  background: var(--coral); border-color: var(--coral); color: #fff;
  transform: translateY(-2px);
}

.foot__bar {
  display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5);
  align-items: center; justify-content: space-between;
  padding-block: var(--s-5);
  border-top: 1px solid color-mix(in srgb, var(--paper) 14%, transparent);
  font-size: var(--t-small);
}
.foot__legal { display: flex; gap: var(--s-5); }
.foot__legal a { transition: color var(--d-1) var(--e-soft); }
.foot__legal a:hover { color: var(--coral); }

/* ── 17 · LIGHTBOX ───────────────────────────────────────────────────────── */
.lb {
  position: fixed; inset: 0; z-index: 300;
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}
.lb[hidden] { display: none; }
.lb__backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--ink) 90%, transparent);
  backdrop-filter: blur(3px);
  animation: fade var(--d-2) var(--e-soft);
}
@keyframes fade { from { opacity: 0; } }

.lb__panel {
  position: relative;
  display: flex; align-items: center; gap: clamp(.5rem, 2vw, 1.5rem);
  max-width: min(64rem, 100%);
  max-height: 100%;
  animation: pop var(--d-3) var(--e-out);
}
@keyframes pop {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

.lb__fig {
  margin: 0; min-width: 0;
  display: grid; gap: var(--s-4);
  justify-items: center;
}
.frame--lb {
  padding: 12px;
  max-height: min(72vh, 44rem);
}
.frame--lb img {
  max-height: min(68vh, 42rem);
  width: auto; max-width: 100%;
  object-fit: contain;
}
.lb__cap { text-align: center; color: var(--paper); }
.lb__title { color: var(--paper); font-size: 1.35rem; }
.lb__sub { font-size: .93rem; color: color-mix(in srgb, var(--paper) 62%, transparent); }
.lb__count {
  margin-top: .35rem;
  font-family: var(--f-hand); font-size: 1.15rem;
  color: var(--coral);
}

.lb__x {
  position: absolute; top: -.5rem; right: -.5rem; z-index: 2;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--paper); border: 0; border-radius: 50%;
  cursor: pointer;
  transition: transform var(--d-1) var(--e-out), background-color var(--d-1) var(--e-soft);
}
.lb__x:hover { transform: rotate(90deg); background: var(--coral); }
.lb__x svg, .lb__nav svg {
  width: 20px; height: 20px;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.lb__nav {
  flex: 0 0 auto;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: transparent;
  border: 1.5px solid color-mix(in srgb, var(--paper) 40%, transparent);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color var(--d-1) var(--e-soft), transform var(--d-1) var(--e-out);
}
.lb__nav svg { stroke: var(--paper); }
.lb__nav:hover { background: color-mix(in srgb, var(--paper) 16%, transparent); }
.lb__nav--prev:hover { transform: translateX(-3px); }
.lb__nav--next:hover { transform: translateX(3px); }

body.lb-open { overflow: hidden; }

/* ── 18 · REVEAL & REDUCED MOTION ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--e-out), transform .7s var(--e-out);
  transition-delay: var(--rd, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Hero collage settles in on load */
.print { opacity: 0; animation: settle .9s var(--e-out) forwards; }
.print--a { animation-delay: .12s; }
.print--b { animation-delay: .24s; }
.print--c { animation-delay: .36s; }
@keyframes settle {
  from { opacity: 0; transform: translateY(26px) rotate(0deg) scale(.97); }
  to   { opacity: 1; }
}
/* Keep the resting rotation after the keyframe finishes */
.print--a { --rot: -5.5deg; }
.print--b { --rot: 3.5deg; }
.print--c { --rot: -1.5deg; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .print  { opacity: 1; animation: none; }
  .scribble .ink, .signature .ink { stroke-dashoffset: 0; }
  .hero__trail { display: none; }
}

/* ── 19 · RESPONSIVE ─────────────────────────────────────────────────────── */

/* Tablet and below: nav collapses into a drawer */
@media (max-width: 62rem) {
  .nav__links {
    position: fixed; inset: 0 0 auto;
    top: 100%;
    margin: 0;
    padding: var(--s-6) var(--gut) var(--s-8);
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    box-shadow: 0 24px 40px -30px rgba(23,23,23,.8);
    transform: translateY(-8px);
    opacity: 0; visibility: hidden;
    transition: opacity var(--d-2) var(--e-soft),
                transform var(--d-2) var(--e-out),
                visibility var(--d-2);
  }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__links ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__links li { border-bottom: 1px solid var(--rule-soft); }
  .nav__links a {
    display: block; padding: .95rem 0;
    font-family: var(--f-display); font-size: 1.24rem; font-weight: 600;
    color: var(--ink);
  }
  .nav__links a::after { display: none; }
  .burger { display: block; }
  .nav__cta { display: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .collage { order: -1; max-width: 34rem; margin-inline: auto; width: 100%; }
  .sec-head--split { grid-template-columns: 1fr; align-items: start; }
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 24rem; }
  .contact__grid { grid-template-columns: 1fr; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
  .process__line { display: none; }
  .step:nth-child(n) { margin-top: 0; }
}

/* Phones */
@media (max-width: 40rem) {
  :root { --sec-y: 3.6rem; }

  .hero__facts { gap: var(--s-4); }
  .hero__facts li { max-width: none; flex: 1 1 8rem; }

  /* Captions shrink with the prints so they stay inside the collage */
  .print .label { font-size: .95rem; margin-top: .15rem; }
  .margin-note--hero { font-size: 1.15rem; }

  .card:nth-child(n) { margin-top: 0; }
  .grid { grid-template-columns: 1fr 1fr; gap: var(--s-5) var(--s-4); }
  .card__title { font-size: 1rem; }
  .card__sub { font-size: var(--t-micro); }

  .price { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
  .price--star::after { inset: .2rem -.4rem; }

  .quote:nth-child(n) { transform: none; }

  .lb__panel { flex-direction: column-reverse; gap: var(--s-4); }
  .lb__nav { position: static; }
  .lb__panel { padding-top: 2.5rem; }
  .lb__x { top: -.25rem; right: 0; }
  .lb__panel > .lb__nav { display: inline-grid; }
  .lb__panel {
    display: grid;
    grid-template-areas: "fig fig" "prev next";
    grid-template-columns: 1fr 1fr;
    justify-items: center;
  }
  .lb__fig { grid-area: fig; }
  .lb__nav--prev { grid-area: prev; justify-self: end; }
  .lb__nav--next { grid-area: next; justify-self: start; }

  .foot__grid { grid-template-columns: 1fr; }
  .foot__bar { justify-content: flex-start; }
}

/* Very small phones (320px) */
@media (max-width: 23.5rem) {
  .grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .nav__inner { gap: var(--s-3); }
  .lang { font-size: .75rem; }
}

/* Large desktop: let the collage breathe */
@media (min-width: 90rem) {
  :root { --wrap: 82rem; }
}

/* ── 20 · MISSING-IMAGE LABEL ────────────────────────────────────────────
   Declared last on purpose. `.card .frame::after` (the cobalt hover rule in
   section 08) matches with identical specificity, so source order decides
   the winner. Everything the hover rule sets is reset here.
   ────────────────────────────────────────────────────────────────────── */
.frame.is-missing::after {
  content: "artwork";
  position: absolute;
  left: 0; right: 0; bottom: 42%; top: auto;
  height: auto;
  background: none;
  transform: none;
  text-align: center;
  font-family: var(--f-hand);
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--graphite-2);
}
:root:lang(pl) .frame.is-missing::after { content: "grafika"; }

/* Print stylesheet — the site is about printed artwork, so make it print well */
@media print {
  .nav, .foot, .lb, .grain, .pencil-cursor, .hero__trail,
  .filters, .form, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1.5rem; }
  .card { break-inside: avoid; }
}
