/*
 * SONAMO design tokens + base styles. THE ONLY place raw values live (SOP §8).
 * Source: Figma Sonamo-3 (q1ZvEBrwlzhmliQ9fOQnRw) variables and styles; derived values are marked (A-xx / B-xx in
 * docs-build). Three tiers: primitives -> semantic roles (Figma names) -> component parts.
 * Breakpoints used in media queries across the theme (logged, A-11): 600px, 900px, 1200px.
 */

/* ---------- Fonts (self-hosted, OFL, A-05) ---------- */
/* Bricolage Grotesque variable (opsz 12-96, wght 200-800): Figma sizes its optical axis from the font size, as browsers do (A-29). */
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2-variations"), url("../fonts/bricolage-grotesque-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/outfit-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/outfit-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/caveat-latin-700-normal.woff2") format("woff2"); }

/* ---------- Tier 1: primitives ---------- */
:root {
	/* Colour (Figma variable values) */
	--color-ink-900: #1d1a17;
	--color-ink-600: #4e4842;
	--color-ink-400: #9a8f84;
	--color-cream-50: #fff3e2;
	--color-white: #ffffff;
	--color-orange-500: #ff5a1f;
	--color-yellow-400: #ffc83d;
	--color-pink-300: #ff8fb8;
	--color-blue-300: #8db4ff;
	--color-green-300: #7fe0b0;
	--color-orange-500-25: rgb(255 90 31 / 0.25); /* Input focus ring colour (Figma 6:24) */
	/* Homepage frame 1:2 fills (raw frame values, not Figma variables: A-23) */
	--color-ink-300: #b9afa4;    /* footer secondary text (1:756) */
	--color-pink-100: #ffe0eb;   /* "Together" section (1:566) */
	--color-green-200: #9be7c4;  /* Process step 1 (1:665) */
	--color-peach-300: #ffb38a;  /* Process step 2 (1:677) */
	--color-yellow-200: #ffe27a; /* Process step 3 (1:689) */
	--color-yellow-50: #fff6d6;  /* Award badge (1:498) */
	--color-cream-50-20: rgb(255 243 226 / 0.2); /* footer divider (1:782) */

	/* Space (Figma space-4...32; 48+ derived for section rhythm, A-12) */
	--space-2: 0.125rem;
	--space-4: 0.25rem;
	--space-8: 0.5rem;
	--space-12: 0.75rem;
	--space-16: 1rem;
	--space-24: 1.5rem;
	--space-32: 2rem;
	--space-48: 3rem;
	--space-64: 4rem;
	--space-96: 6rem;
	--space-120: 7.5rem;
	/* Homepage frame spacing (A-23) */
	--space-6: 0.375rem;
	--space-10: 0.625rem;
	--space-14: 0.875rem;
	--space-18: 1.125rem;
	--space-20: 1.25rem;
	--space-22: 1.375rem;
	--space-28: 1.75rem;
	--space-36: 2.25rem;
	--space-40: 2.5rem;
	--space-56: 3.5rem;
	--space-80: 5rem;
	--space-100: 6.25rem;

	/* Radius (md/lg/full are Figma variables; sm/xl are raw Figma values, A-13) */
	--radius-sm: 0.5rem;
	--radius-md: 0.875rem;
	--radius-lg: 1.25rem;
	--radius-xl: 1.5rem;
	--radius-full: 999px;
	/* Homepage frame radii (A-23) */
	--radius-6: 0.375rem;   /* polaroid photo */
	--radius-12: 0.75rem;   /* tablet screen */
	--radius-16: 1rem;      /* service illustration */
	--radius-18: 1.125rem;  /* hero illustrations, syllable cards */
	--radius-28: 1.75rem;   /* contact form card */
	--radius-29: 1.8125rem; /* tablet mockup */
	--radius-32: 2rem;      /* profile card */

	/* Borders (hairlines, A-13) */
	--border-width: 2px;
	--border-width-thick: 2.5px;
	--focus-ring-width: 4px; /* B-07 */
	--focus-outline-width: 3px; /* B-04 */
	--focus-outline-offset: 3px;

	/* Hard shadow offsets (Figma Shadow/Hard-S/M/L/XL: 0 blur, 0 spread) */
	--shadow-offset-s: 3px;
	--shadow-offset-m: 4px;
	--shadow-offset-l: 6px;
	--shadow-offset-xl: 8px;

	/* Font families */
	--font-display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
	--font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-hand: "Caveat", "Segoe Print", cursive;

	/* Font weights */
	--weight-regular: 400;
	--weight-medium: 500;
	--weight-semibold: 600;
	--weight-bold: 700;
	--weight-extrabold: 800;

	/* Type scale (px -> rem; fluid display sizes between 360px and 1440px, A-10) */
	--text-display-l: clamp(2.75rem, 2rem + 3.333vw, 5rem);     /* Display/L 80 (44 on mobile) */
	--text-h2: clamp(2rem, 1.667rem + 1.481vw, 3rem);           /* derived 48 (32), B-03 */
	--text-h3: clamp(1.625rem, 1.5rem + 0.556vw, 2rem);         /* derived 32 (26), B-03 */
	--text-h4: 1.375rem;      /* Heading/H4 22 */
	--text-body-l: 1.25rem;   /* Body/L 20 */
	--text-body-m: 1.0625rem; /* Body/M 17 */
	--text-body-s: 0.9375rem; /* Body/S 15 */
	--text-label-l: 1.125rem; /* Label/L 18 */
	--text-label-m: 0.9375rem;/* Label/M 15 */
	--text-label-s: 0.8125rem;/* Label/S 13 */
	--text-hand-l: 2.125rem;  /* Handwritten/L 34 */
	--text-logo: 2.5rem;      /* Logo symbol 40 */
	--text-deco: 5rem;        /* Deco card letters (Display/L at 80) */
	/* Homepage frame type (1:2). Fluid between 360 and 1440 (A-24). */
	--text-hero: clamp(2.75rem, 1.25rem + 6.667vw, 7.25rem);        /* 116 (44) */
	--text-display-60: clamp(2.375rem, 1.917rem + 2.037vw, 3.75rem); /* 60 (38): contact */
	--text-display-56: clamp(2.25rem, 1.833rem + 1.852vw, 3.5rem);   /* 56 (36): about, names */
	--text-display-52: clamp(2.125rem, 1.75rem + 1.667vw, 3.25rem);  /* 52 (34): services, together */
	--text-display-44: clamp(2rem, 1.75rem + 1.111vw, 2.75rem);      /* 44 (32): footer */
	--text-display-36: clamp(1.75rem, 1.583rem + 0.741vw, 2.25rem);  /* 36 (28): work, process */
	--text-syllable: 2.75rem;  /* 44 */
	--text-sign: 2.25rem;      /* 36: + and = in the name story */
	--text-title-28: 1.75rem;  /* 28: card / case-study titles */
	--text-sticker: 1.3125rem; /* 21 */
	--text-title-18: 1.125rem; /* 18: step titles */
	--text-intro-21: clamp(1.125rem, 1.063rem + 0.278vw, 1.3125rem); /* 21 (18): hero intro */
	--text-intro-20: clamp(1.125rem, 1.083rem + 0.185vw, 1.25rem);   /* 20 (18) */
	--text-intro-19: clamp(1.0625rem, 1.021rem + 0.185vw, 1.1875rem); /* 19 (17) */
	--text-16: 1rem;
	--text-14: 0.875rem;
	--text-12: 0.75rem;
	--text-hand-32: 2rem;
	--text-hand-30: 1.875rem;
	--text-hand-28: 1.75rem;
	--text-hand-24: 1.5rem;   /* notes placed over photos, on phones */
	--text-specs: 1.25rem;     /* 20: Bricolage Bold */

	--leading-display: 0.96;
	--leading-heading: 1.2;
	--leading-body: 1.5;
	--leading-body-m: 1.55;
	--leading-normal: normal;
	--leading-none: 1;
	--leading-tight: 0.98;
	--leading-snug: 1.4;
	--leading-loose: 1.6;

	--tracking-display: -0.04em; /* Display/L -4% */
	--tracking-h4: -0.01em;      /* Heading/H4 -1% */
	--tracking-logo: -0.02em;    /* Logo -2% */
	--tracking-display-3: -0.03em; /* 52/56/60 headings, giant wordmark */
	--tracking-display-2: -0.02em; /* 28/36/44 headings, step titles, syllables */
	--tracking-label: 0.02em;      /* small bold labels ("Quick facts") */
	--tracking-label-wide: 0.03em; /* footer column headings */
	--weight-display-bold: 700;    /* specs strip (Bricolage Bold) */

	/* Sizes */
	--size-icon-l: 1.25rem;  /* 20 */
	--size-icon-m: 1.125rem; /* 18 */
	--size-icon-s: 0.875rem; /* 14 */
	--size-tick: 1rem;       /* 16 */
	--size-tick-box: 1.5rem; /* 24 */
	--size-field: 3.25rem;   /* 52 */
	--size-textarea: 7.5rem; /* 120 */
	--size-logo-dot: 1.375rem; /* 22 */
	--size-deco-w: 18.75rem; /* 300 */
	--size-deco-h: 13.75rem; /* 220 */
	--size-card-min: 16rem;
	--size-measure: 45rem;   /* 720: the Cover intro width */
	--size-consent-max: 30rem; /* 480: consent card (derived) */
	--size-heading-measure: 62.5rem; /* 1000: the Cover heading width */
	--size-content-max: 85rem; /* 1360 = 1600 - 2 x 120 (A-12) */

	/* Motion */
	--duration-fast: 120ms;
	--duration-base: 200ms;
	--ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

	/* Tilt angles (Cover deco cards and credit line) */
	--tilt-so: 8deg;
	--tilt-na: -6deg;
	--tilt-mo: 4deg;
	--tilt-hand: 2deg;
	--press-distance: 2px;

	--opacity-disabled: 0.5;
	--size-logo-w: 9.875rem;    /* 158: Figma Logo symbol 5:6 */
	--size-logo-w-s: 7.5rem;    /* compact header logo (above the 96px minimum) */
	--deco-text-x: 1.59375rem;  /* 25.5: Cover 9:376 */
	--deco-text-y: 6.71875rem;  /* 107.5 */
	/* Deco stack offsets: unrotated card positions on the Cover (9:375/377/379), relative to the stack's left edge */
	--deco-so-x: 1.328rem;   /* 21.25 */
	--deco-na-x: 6.797rem;   /* 108.75 */
	--deco-na-gap: 0.869rem; /* 13.9 below SO */
	--deco-mo-gap: 5.406rem; /* 86.5 below NA */
	--deco-scale-s: 0.3;
	--deco-scale-m: 0.5;
	--ratio-media: 3 / 2;
	--ratio-portrait: 1 / 1;
	--ratio-wide: 16 / 9;

	--z-header: 50;
	--z-menu: 60;
	--z-consent: 70;
}

/* ---------- Tier 2: semantic roles (Figma variable names) ---------- */
:root {
	--color-bg-page: var(--color-cream-50);
	--color-bg-surface: var(--color-white);
	--color-bg-inverse: var(--color-ink-900);
	--color-bg-input: var(--color-cream-50);
	--color-text-primary: var(--color-ink-900);
	--color-text-secondary: var(--color-ink-600);
	--color-text-accent: var(--color-orange-500);
	--color-text-on-accent: var(--color-white);
	--color-text-on-inverse: var(--color-cream-50);
	--color-text-placeholder: var(--color-ink-400);
	--color-border-default: var(--color-ink-900);
	--color-border-focus: var(--color-orange-500);
	--color-effect-shadow: var(--color-ink-900);
	--color-accent-orange: var(--color-orange-500);
	--color-accent-yellow: var(--color-yellow-400);
	--color-accent-pink: var(--color-pink-300);
	--color-accent-blue: var(--color-blue-300);
	--color-accent-green: var(--color-green-300);
	--color-focus-ring: var(--color-orange-500-25);

	/* Accessibility usage fixes (Tier 2, brand values untouched) */
	--color-text-on-orange: var(--color-text-primary);   /* B-08: white on orange is 3.12:1 */
	--color-text-handwritten: var(--color-text-primary); /* B-09: orange on cream is 2.85:1 */
	--color-text-handwritten-on-inverse: var(--color-text-accent); /* 5.55:1 on ink */
	--color-focus-outline: var(--color-border-default);

	/* Homepage frame roles (1:2) */
	--color-bg-together: var(--color-pink-100);
	--color-bg-contact: var(--color-accent-yellow);
	--color-bg-specs: var(--color-accent-orange);
	--color-text-on-specs: var(--color-white);           /* 20px Bricolage Bold = large text, 3.12:1 >= 3:1 */
	--color-text-muted-on-inverse: var(--color-ink-300); /* 8.0:1 on ink */
	--color-border-on-inverse: var(--color-cream-50);
	--color-divider-on-inverse: var(--color-cream-50-20);
	--color-heading-on-inverse: var(--color-accent-yellow);
	--color-bg-award: var(--color-yellow-50);
	--color-step-1: var(--color-green-200);
	--color-step-2: var(--color-peach-300);
	--color-step-3: var(--color-yellow-200);
	/* B-19: the frame's orange accent words, roles and notes on light surfaces (2.0-3.1:1). The client chose to keep the
	   frame's orange (2026-10-18); for ink, set this one token to var(--color-text-primary). */
	--color-text-accent-on-light: var(--color-text-accent);
	--color-text-accent-on-inverse: var(--color-text-accent); /* 5.55:1 on ink */

	--shadow-hard-s: var(--shadow-offset-s) var(--shadow-offset-s) 0 0 var(--color-effect-shadow);
	--shadow-hard-m: var(--shadow-offset-m) var(--shadow-offset-m) 0 0 var(--color-effect-shadow);
	--shadow-hard-l: var(--shadow-offset-l) var(--shadow-offset-l) 0 0 var(--color-effect-shadow);
	--shadow-hard-xl: var(--shadow-offset-xl) var(--shadow-offset-xl) 0 0 var(--color-effect-shadow);
	--shadow-none: 0 0 0 0 var(--color-effect-shadow);

	--border-default: var(--border-width) solid var(--color-border-default);

	/* Round 2 (A-28): the homepage frame sets 120px gutters and 120px section padding at 1440, content 1200. */
	--gutter: clamp(var(--space-16), 9.63vw - 1.167rem, var(--space-120)); /* 16 at 360 -> 120 at 1440 */
	--content-max: var(--content-max-frame);
	--space-section: clamp(var(--space-64), 2.833rem + 5.185vw, var(--space-120)); /* 64 -> 120 */
	--space-stack: var(--space-24);
	--space-heading: var(--space-16);
}

/* ---------- Tier 3: component parts ---------- */
:root {
	/* Button (Figma 5:93) */
	--button-radius: var(--radius-full);
	--button-border: var(--border-default);
	--button-gap: var(--space-8);
	--button-primary-bg: var(--color-accent-orange);
	--button-primary-text: var(--color-text-on-orange);
	--button-secondary-bg: var(--color-bg-surface);
	--button-secondary-text: var(--color-text-primary);
	--button-highlight-bg: var(--color-accent-yellow);
	--button-highlight-text: var(--color-text-primary);
	--button-l-pad-y: var(--space-16);
	--button-l-pad-x: var(--space-32);
	--button-l-text: var(--text-label-l);
	--button-l-icon: var(--size-icon-l);
	--button-l-shadow: var(--shadow-hard-m);
	--button-m-pad-y: var(--space-12);
	--button-m-pad-x: var(--space-24);
	--button-m-text: var(--text-label-m);
	--button-m-icon: var(--size-icon-m);
	--button-m-shadow: var(--shadow-hard-m);
	--button-s-pad-y: var(--space-8);
	--button-s-pad-x: var(--space-16);
	--button-s-text: var(--text-label-s);
	--button-s-icon: var(--size-icon-s);
	--button-s-shadow: var(--shadow-hard-s);
	--button-hover-shadow: var(--shadow-hard-l);
	--button-active-shadow: var(--shadow-hard-s);

	/* Pill (6:12) */
	--pill-pad-y: var(--space-4);
	--pill-pad-x: var(--space-12);
	--pill-radius: var(--radius-full);
	--pill-border: var(--border-default);
	--pill-text: var(--text-label-s);

	/* Chip (6:19) */
	--chip-pad-y: var(--space-8);
	--chip-pad-x: var(--space-16);
	--chip-gap: var(--space-8);
	--chip-radius: var(--radius-full);
	--chip-border: var(--border-default);
	--chip-bg: var(--color-bg-surface);
	--chip-bg-selected: var(--color-accent-yellow);
	--chip-shadow-selected: var(--shadow-hard-s);

	/* Input (6:36) */
	--input-gap: var(--space-8);
	--input-bg: var(--color-bg-input);
	--input-border: var(--border-default);
	--input-border-focus: var(--border-width-thick) solid var(--color-border-focus);
	--input-ring-focus: 0 0 0 var(--focus-ring-width) var(--color-focus-ring);
	--input-radius: var(--radius-md);
	--input-pad-x: var(--space-16);
	--input-pad-y: var(--space-4);
	--input-pad-y-textarea: var(--space-12);
	--input-height: var(--size-field);
	--input-height-textarea: var(--size-textarea);
	--input-bg-error: var(--color-accent-pink);
	--input-border-error: var(--border-width-thick) solid var(--color-border-default);

	/* Check item (6:57) */
	--check-gap: var(--space-12);
	--check-box: var(--size-tick-box);
	--check-radius: var(--radius-md);
	--check-border: var(--border-default);

	/* Card (6:73) */
	--card-bg: var(--color-bg-surface);
	--card-border: var(--border-default);
	--card-radius: var(--radius-lg);
	--card-shadow: var(--shadow-hard-l);
	--card-pad: var(--space-24);
	--card-gap: var(--space-12);
	--card-body-color: var(--color-text-secondary);
	--card-body-color-strong: var(--color-text-primary); /* B-18: pink and blue cards */
	--card-hover-shadow: var(--shadow-hard-xl); /* derived: link cards grow their shadow like buttons (B-04) */
	--card-media-radius: var(--radius-md);

	/* Logo (5:20) */
	--logo-letter: var(--color-text-primary);
	--logo-dot-stroke: var(--color-border-default);
	--logo-dark-bg: var(--color-bg-inverse);
	--logo-dark-letter: var(--color-text-on-inverse);
	--logo-dark-dot-stroke: var(--color-text-on-inverse);
	--logo-dark-pad: var(--space-12);
	--logo-dark-radius: var(--radius-sm);

	/* Deco card (Cover 9:375) */
	--deco-border: var(--border-width-thick) solid var(--color-border-default);
	--deco-radius: var(--radius-xl);
	--deco-shadow: var(--shadow-hard-xl);

	/* Header / footer (derived, B-05) */
	--header-bg: var(--color-bg-page);
	--header-border: var(--border-default);
	--footer-bg: var(--color-bg-inverse);
	--footer-text: var(--color-text-on-inverse);
}

/* ---------- Tier 3 (round 2): homepage frame 1:2 component parts ---------- */
:root {
	--space-5: 0.3125rem;
	--space-26: 1.625rem;
	--size-field-l: 3.5rem;        /* 56: frame inputs (1:720) */
	--size-textarea-l: 8.75rem;    /* 140 (1:745) */
	--size-tick-20: 1.25rem;
	--size-tick-22: 1.375rem;
	--size-tick-24: 1.5rem;
	--size-icon-30: 1.875rem;
	--size-disc: 3.5rem;           /* 56: step icon disc */
	--size-avatar: 1.625rem;       /* 26: cursor avatar */
	--size-cursor-w: 1.875rem;     /* 30 x 34 cursor arrow */
	--size-cursor-h: 2.125rem;
	--size-cursor-box-w: 17.5rem;  /* 280 x 80 cursor frame */
	--size-cursor-box-h: 5rem;
	--size-sticker: 8.75rem;       /* 140 */
	--size-dot: 0.625rem;          /* 10: footer social dot */
	--size-medal-w: 2.125rem;      /* 34 x 40 */
	--size-medal-h: 2.5rem;
	--size-service-illus: 9.375rem; /* 150 */
	--size-face: 10.625rem;        /* 170 */
	--size-face-overlap: 1.25rem;  /* 20: Nathan's face starts 150 after Sophie's 170 */
	--size-camera: 0.5rem;         /* 8 */
	--size-hairline-15: 1.5px;     /* footer divider (1:782) */
	--size-hairline-1: 1px;        /* unit for frame-pixel maths */
	--content-max-frame: 75rem;    /* 1200 = 1440 - 2 x 120 */
	--size-head-measure: 55.875rem; /* 894: services head */
	--size-intro-measure: 43.5rem;  /* 696: services intro */
	--size-intro-measure-l: 47.5rem; /* 760: about intro */
	--size-hero-heading: 77.5rem;  /* 1240 */
	--size-hero-intro: 40rem;      /* 640 */
	--size-form: 37.5rem;          /* 600: contact form card */
	--size-photo-col: 22.5rem;     /* 360: profile photo column */
	--size-polaroids: 32.5rem;     /* 520 */
	--size-tablet-col: 41.0225rem; /* 656.36: tablet bounding box */
	--size-footer-col: 9.375rem;   /* 150 */
	--ratio-tablet: 4 / 3;         /* 640 x 480 */
	--ratio-profile: 340 / 420;
	--ratio-polaroid: 8 / 5;       /* 400 x 250 */
	--ratio-service-illus: 238 / 150;
	--tablet-bezel: 2.656%;        /* 17 / 640 */
	--tablet-art-top: 7.44%;       /* 32.88 / 442 */
	--tablet-art-height: 85.12%;   /* 376.25 / 442 */
	--tilt-1: 1deg;
	--tilt-2: 2deg;
	--tilt-3: 3deg;
	--tilt-4: 4deg;
	--tilt-5: 5deg;
	--tilt-6: 6deg;
	--tilt-7: 7deg;
	--tilt-8: 8deg;
	--tilt-12: 12deg;
	--lift: 0.5rem;               /* push up on hover (services) */
	--duration-slow: 600ms;
	--duration-reveal: 700ms;
	--stagger: 120ms;
	--float-distance: 2.5rem;     /* float up on scroll */

	/* Frame button sizes (on top of the Figma L/M/S) */
	--button-nav-pad-y: var(--space-10);
	--button-nav-pad-x: var(--space-20);
	--button-nav-text: var(--text-16);
	--button-hero-pad-y: var(--space-16);
	--button-hero-pad-x: var(--space-28);
	--button-profile-pad-y: var(--space-12);
	--button-profile-pad-x: var(--space-20);
	--button-block-pad-y: var(--space-18);
	--button-ink-pad-y: var(--space-14);
	--button-ink-pad-x: var(--space-26);
	--button-ink-border: var(--border-width) solid var(--color-border-on-inverse);
	--button-ink-shadow: var(--shadow-offset-m) var(--shadow-offset-m) 0 0 var(--color-accent-orange);
	--button-ink-hover-shadow: var(--shadow-offset-l) var(--shadow-offset-l) 0 0 var(--color-accent-orange);

	/* Frame pill sizes */
	--pill-section-pad-y: var(--space-6);
	--pill-section-pad-x: var(--space-14);
	--pill-number-pad-y: var(--space-4);
	--pill-number-pad-x: var(--space-10);
	--pill-step-pad-y: var(--space-5);
	--pill-step-pad-x: var(--space-12);
	--pill-badge-pad-y: var(--space-8);
	--pill-badge-pad-x: var(--space-16);

	/* Frame chip (1:733) and field (1:718) */
	--chip-l-pad-y: var(--space-10);
	--chip-l-pad-x: var(--space-18);
	--input-l-pad-x: var(--space-18);
	--input-l-pad-top: var(--space-16);

	/* Cards from the frame */
	--service-card-radius: var(--radius-xl);
	--service-card-pad: var(--space-20) var(--space-20) var(--space-28);
	--service-illus-radius: var(--radius-16);
	--tablet-radius: var(--radius-29);
	--tablet-screen-radius: var(--radius-12);
	--profile-radius: var(--radius-32);
	--profile-pad: var(--space-48);
	--profile-photo-radius: var(--radius-xl);
	--award-radius: var(--radius-md);
	--syllable-radius: var(--radius-18);
	--step-radius: var(--radius-lg);
	--form-card-radius: var(--radius-28);
	--illus-card-radius: var(--radius-18);
	--border-thick: var(--border-width-thick) solid var(--color-border-default);

	/* Hero stage (A-27): frame pixels of 1:3. x = from the frame's left edge; y = from the anchor named. Cards and the
	   sticker are placed by their centres so their tilt pivots like Figma's. */
	--u: min(1px, calc(100vw / 1440));
	--hero-pad-top: 54;      /* heading top 150 - header 96 */
	--hero-intro-gap: 27.3;  /* heading bottom 372.7 -> intro 400 */
	--hero-cta-gap: 49.2;    /* intro bottom 452.9 -> CTAs 502.2 */
	--hero-art-gap: 37.2;    /* CTAs bottom 561.2 -> art row 598.4 */
	--hero-art-h: 312.1;     /* art row 598.4 -> 910.5 */
	--hero-pad-bottom: 73.5; /* -> frame bottom 984 */
	--hero-shop-cx: 261.76;     --hero-shop-cy: 114.95;
	--hero-street-cx: 720;      --hero-street-cy: 186.75;
	--hero-platform-cx: 1189.25; --hero-platform-cy: 201.91;
	--hero-sticker-cx: 1303.9;  --hero-sticker-cy: -1.03;
	--hero-spark-3-x: 430;      --hero-spark-3-y: 1.75;   /* art-row anchored */
	--hero-nathan-x: 70;        --hero-nathan-y: 160.18;  /* heading anchored */
	--hero-sophie-x: 1090;      --hero-sophie-y: 180.18;
	--hero-spark-1-x: 1250;     --hero-spark-1-y: -29.82;
	--hero-spark-2-x: 60;       --hero-spark-2-y: 330.18;
	--hero-you-x: 438;          --hero-you-y: 30;         /* CTA-row anchored (511, 502.2) */
	--hero-frame-w: 1440;
	--hero-title-px: 116;  --hero-intro-px: 21;  --hero-heading-w: 1240; --hero-intro-w: 640;
	--hero-you-dx: 20;     --hero-you-dy: 30;    /* "You?" cursor: 20 right of the CTA row, 30 down */
	--hero-platform-w: 300; --hero-platform-h: 190;
	--u-cq: min(1px, calc(100cqi / 1440)); /* one frame pixel inside a 1440-wide container (A-27) */
	--size-sticker-s: 6rem;
	--text-sticker-s: 0.9rem;
	--ratio-hero-card: 300 / 190;
	--ratio-hero-street: 440 / 210;

	/* Profile photo column (1:468 / 1:561): 360 x 470 box; centres of the tilted parts as % of the box. */
	--ratio-photo-col: 360 / 470;
	--profile-photo-w: 94.44%;
	--profile-a-photo-x: 47.94%; --profile-a-photo-y: 50.17%;
	--profile-a-badge-x: 24.49%; --profile-a-badge-y: 90.08%;
	--profile-a-hand-x: 74.03%;  --profile-a-hand-y: 2.72%;
	--profile-b-photo-x: 52%;    --profile-b-photo-y: 47.64%;
	--profile-b-badge-x: 71.64%; --profile-b-badge-y: 93%;
	--profile-b-hand-x: 29.97%;  --profile-b-hand-y: -0.34%;

	/* Together polaroids (1:567): a 520 x 520 box; --u-520 = one frame pixel of it (container units). */
	--u-520: calc(100cqi / 520);
	--polaroid-1-x: 43.79%; --polaroid-1-y: 44.41%; --polaroid-1-w: 84.8%;
	--polaroid-2-x: 85.8%;  --polaroid-2-y: 77.54%; --polaroid-2-w: 39.04%;
	--polaroid-badge-x: 74.04%; --polaroid-badge-y: 101.25%;

	/* Contact faces (1:707): 430 x 250 box. */
	--size-faces: 26.875rem;
	--ratio-faces: 430 / 250;
	--face-w: 39.53%; --face-top: 12%; --face-2-x: 34.88%;
	--face-pill-1-x: 21.09%; --face-pill-1-y: 87.96%;
	--face-pill-2-x: 55.95%; --face-pill-2-y: 90.48%;
	--face-hand-x: 74.72%;   --face-hand-y: 10.76%;
	--grow: 1.08;
	--note-tilt-room: 0.2em;

	/* Motion (frame annotations, B-25). Lengths in illustration units are SVG user units. */
	--type-step: 28ms;          /* per character */
	--motion-in: 500ms;
	--motion-loop: 6s;
	--street-loop: -440px;      /* one street length: the houses loop past */
	--street-cloud: 12px;
	--shop-step: 56px;          /* between the shop's "add" buttons */
	--shop-scroll: -6px;
	--bob: -6px;
	--pop-from: 0.4;
	--hero-shop-w: 300;  --hero-shop-h: 190;
	--hero-street-w: 440; --hero-street-h: 210;
	--hero-sticker-w: 140;
	--hero-cursor-w: 280; --hero-cursor-h: 80;
	--hero-spark-1: 60; --hero-spark-2: 40; --hero-spark-3: 36;
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--space-96); }

body {
	margin: 0;
	background: var(--color-bg-page);
	color: var(--color-text-primary);
	font-family: var(--font-body);
	font-size: var(--text-body-m);
	font-weight: var(--weight-regular);
	line-height: var(--leading-body-m);
	-webkit-font-smoothing: antialiased;
	overflow-wrap: break-word;
}

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

h1, h2, h3, h4, .snm-display, .snm-h2, .snm-h3, .snm-h4 { margin: 0; font-family: var(--font-display); font-weight: var(--weight-extrabold); color: var(--color-text-primary); }
h1, .snm-display { font-size: var(--text-display-l); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h2, .snm-h2 { font-size: var(--text-h2); line-height: var(--leading-display); letter-spacing: var(--tracking-display); }
h3, .snm-h3 { font-size: var(--text-h3); line-height: var(--leading-heading); letter-spacing: var(--tracking-h4); }
h4, .snm-h4 { font-size: var(--text-h4); line-height: var(--leading-heading); letter-spacing: var(--tracking-h4); }

p { margin: 0; }
p + p { margin-top: var(--space-16); }

a { color: inherit; text-decoration-thickness: var(--border-width); text-underline-offset: var(--space-4); }
a:hover { text-decoration-color: var(--color-accent-orange); }

:focus-visible { outline: var(--focus-outline-width) solid var(--color-focus-outline); outline-offset: var(--focus-outline-offset); }

::selection { background: var(--color-accent-yellow); color: var(--color-text-primary); }

.snm-body-l { font-size: var(--text-body-l); line-height: var(--leading-body); color: var(--color-text-secondary); }
.snm-body-s { font-size: var(--text-body-s); line-height: var(--leading-body); }
.snm-hand { font-family: var(--font-hand); font-weight: var(--weight-bold); font-size: var(--text-hand-l); line-height: var(--leading-normal); color: var(--color-text-handwritten); }

.screen-reader-text, .snm-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.snm-skip {
	position: absolute; left: var(--space-16); top: calc(-1 * var(--space-120)); z-index: var(--z-consent);
	padding: var(--space-12) var(--space-24); background: var(--color-accent-yellow); color: var(--color-text-primary);
	border: var(--border-default); border-radius: var(--radius-full); box-shadow: var(--shadow-hard-m);
	font-weight: var(--weight-bold); text-decoration: none;
}
.snm-skip:focus { top: var(--space-16); }

.snm-main { overflow-x: clip; } /* tilted, shadowed parts never cause sideways scrolling */
.snm-container { width: 100%; max-width: calc(var(--content-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

.snm-section { padding-block: var(--space-section); }
.snm-section--surface { background: var(--color-bg-surface); border-block: var(--border-default); }
.snm-section--tight { padding-block: var(--space-64); }

.snm-section-head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-heading); max-width: var(--size-heading-measure); margin-bottom: var(--space-48); }
.snm-section-head__intro { max-width: var(--size-measure); }

.snm-tbc { outline: var(--border-width) dashed var(--color-accent-orange); outline-offset: var(--space-2); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
