/* ==========================================================================
   LUIZA BIODERE — PORTFOLIO DESIGN SYSTEM  ·  "AURORA"
   One system, many expressions.
   --------------------------------------------------------------------------
   00 · Tokens
   01 · Reset & base
   02 · Atmosphere (grain, gradient fields, blobs, sparkles)
   03 · Layout
   04 · Typography
   05 · Navigation
   06 · Buttons & links
   07 · Forms & inputs
   08 · Tags, chips, labels
   09 · Cards & surfaces
   10 · Metrics & data
   11 · Quotes & editorial
   12 · Project & article cards
   13 · Career chapters / timeline
   14 · Style-guide showcase
   15 · Footer
   16 · Motion
   17 · Accessibility & focus
   18 · Dark anchors
   19 · Legacy bridge
   20 · Responsive
   ========================================================================== */

/* ==========================================================================
   00 · TOKENS
   ========================================================================== */
:root {
  /* ────────────────────────────────────────────────────────────────
     BRAND PALETTE — five colours, five jobs
     Lucky Point  #251A79  dark / text / immersive sections
     Cornflower   #798AF4  interactive accent / links / active
     Perfume      #B0B8F9  secondary accent / soft surfaces
     Link Water   #DFE4F8  background / large light areas
     Coral        #FF854C  high attention / CTA / selected metric
     ──────────────────────────────────────────────────────────────── */

  /* — Ink ramp (Lucky Point → Link Water) — */
  --ink-900: #251A79;   /* Lucky Point */
  --ink-850: #2E2189;
  --ink-800: #393087;
  --ink-700: #4E4695;
  --ink-600: #645FA4;
  --ink-550: #706CAE;
  --ink-500: #7B77B3;
  --ink-400: #9593C5;
  --ink-300: #AFAFD7;
  --ink-200: #C5C8E6;
  --ink-100: #D8DCF2;
  --ink-050: #EDF0FB;
  --ink-deep: #1A1259;  /* below Lucky Point, for dark gradient falloff */

  /* — Surfaces (Link Water is the anchor, white is a content surface) — */
  --surface-white: #FFFFFF;
  --surface-000: #FCFCFE;
  --surface-050: #F6F7FD;
  --surface-075: #EDF0FB;
  --surface-100: #DFE4F8;   /* Link Water */
  --surface-200: #CCD2F8;
  --surface-300: #B0B8F9;   /* Perfume */

  /* — Cornflower (primary interactive) — */
  --cf-200: #BEC5F9;
  --cf-300: #A4B0F6;
  --cf-400: #8D9CF5;
  --cf-500: #798AF4;   /* Cornflower Blue */
  --cf-600: #5D65CB;
  --cf-700: #5358BD;
  --cf-800: #4B4CB0;

  /* — Perfume (secondary / soft) — */
  --pf-200: #CAD0F8;
  --pf-300: #BEC5F9;
  --pf-400: #B0B8F9;   /* Perfume */
  --pf-500: #A4AEF8;
  --pf-600: #99A5F7;

  /* — Coral (high attention, used sparingly) — */
  --co-200: #FFDDCD;
  --co-300: #FFC2A6;
  --co-400: #FFA57B;
  --co-500: #FF854C;   /* Coral */
  --co-600: #EF7941;
  --co-700: #DC6B35;
  --co-800: #9E4A1B;   /* only value of the coral family readable as text on light */

  /* — Legacy aliases — old class names, new palette.
       Every component that referenced pink / violet / blue / peach keeps working
       and inherits the new system automatically. — */
  --pink-300: var(--pf-200);
  --pink-400: var(--pf-300);
  --pink-500: var(--pf-400);
  --pink-600: var(--pf-600);
  --pink-700: var(--cf-700);
  --violet-300: var(--cf-300);
  --violet-400: var(--cf-400);
  --violet-500: var(--cf-500);
  --violet-600: var(--cf-600);
  --violet-700: var(--cf-700);
  --blue-300: var(--cf-200);
  --blue-400: var(--cf-300);
  --blue-500: var(--cf-500);
  --blue-600: var(--cf-600);
  --blue-700: var(--cf-800);
  --peach-300: var(--co-200);
  --peach-400: var(--co-300);
  --peach-500: var(--co-400);
  --peach-600: var(--co-500);
  --peach-700: var(--co-700);
  --coral-400: var(--co-400);
  --coral-500: var(--co-500);
  --coral-600: var(--co-600);

  /* — Semantic — */
  --positive: #17A47F;
  --positive-soft: #E3F6F0;
  --negative: #DC6B35;
  --negative-soft: #FFEDE2;
  --caution: #FF854C;
  --caution-soft: #FFF3EC;
  --info: #798AF4;
  --info-soft: #E8ECFE;

  /* — Text roles — */
  --text-strong: var(--ink-900);
  --text-body: var(--ink-700);
  --text-muted: #59539D;    /* clears 4.5:1 on all three light surfaces */
  --text-subtle: #5D579F;   /* clears 4.5:1 on white, surface-050 and Link Water */
  --text-inverse: #FFFFFF;
  --text-inverse-muted: rgba(255, 255, 255, 0.74);

  /* — Accent roles —
       --accent          readable interactive colour (text, markers, links)
       --accent-bright   fills, borders, glows, icon shapes
       --accent-2        high-attention accent (Coral) — small doses only */
  --accent: var(--cf-700);
  --accent-strong: var(--cf-800);
  --accent-bright: var(--cf-500);
  --accent-soft: #E8ECFE;
  --accent-2: var(--co-500);
  --accent-2-strong: var(--co-800);
  --gradient-accent: linear-gradient(135deg, #798AF4 0%, #251A79 100%);

  /* — Gradient system — soft, two or three stops, never a rainbow — */
  --g-aurora: linear-gradient(135deg, #DFE4F8 0%, #B0B8F9 52%, #798AF4 100%);
  --g-blush: linear-gradient(135deg, #DFE4F8 0%, #B0B8F9 100%);
  --g-sunset: linear-gradient(135deg, #FF854C 0%, #B0B8F9 100%);
  --g-dusk: linear-gradient(160deg, #798AF4 0%, #251A79 100%);
  --g-mist: linear-gradient(180deg, #FCFCFE 0%, #DFE4F8 100%);
  --g-ink: linear-gradient(160deg, #2E2189 0%, #251A79 56%, #1A1259 100%);
  --g-text: linear-gradient(100deg, #4A4695 0%, #5358BD 55%, #6B4FCF 100%); /* all stops >= 5.6:1 on the light surface */
  /* Hero headline accent — ink to Coral. Only used on the h1, which is 48px+
     bold, so the WCAG bar is 3:1: the ramp bottoms out at 3.17:1. Coral is
     dialled to #DC6B35 because pure #FF854C is 2.41:1 and would fail. */
  --g-hero-text: linear-gradient(100deg, #4A4695 0%, #5358BD 42%, #DC6B35 100%);
  --g-ember: linear-gradient(135deg, #FF854C 0%, #798AF4 100%);
  --g-surface: linear-gradient(180deg, #FFFFFF 0%, #F6F7FD 100%);
  /* Button gradient stays dark enough for white text at every stop (6:1+) */
  --g-btn: linear-gradient(100deg, #5358BD 0%, #251A79 100%);

  /* — Typography — */
  --font-display: 'Bricolage Grotesque', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, monospace;

  --fs-micro: 0.6875rem;
  --fs-caption: 0.8125rem;
  --fs-small: 0.9375rem;
  --fs-body: 1.0625rem;
  --fs-body-lg: 1.1875rem;
  --fs-lead: clamp(1.1875rem, 1.5vw, 1.4375rem);
  --fs-h4: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-h3: clamp(1.3125rem, 2.2vw, 1.75rem);
  --fs-h2: clamp(1.75rem, 3.6vw, 2.75rem);
  --fs-h1: clamp(2.5rem, 6.2vw, 4.75rem);
  --fs-display: clamp(3rem, 10vw, 8rem);

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.68;

  --tracking-display: -0.035em;
  --tracking-tight: -0.015em;
  --tracking-wide: 0.06em;
  --tracking-label: 0.14em;

  --opsz-display: 96;
  --opsz-heading: 40;

  /* — Spacing — 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 / 128 — */
  --sp-1: 0.25rem;   /* 4  */
  --sp-2: 0.5rem;    /* 8  */
  --sp-3: 0.75rem;   /* 12 */
  --sp-4: 1rem;      /* 16 */
  --sp-5: 1.5rem;    /* 24 */
  --sp-6: 2rem;      /* 32 */
  --sp-7: 2.5rem;    /* 40 — transitional only */
  --sp-8: 3rem;      /* 48 */
  --sp-9: 4rem;      /* 64 */
  --sp-10: 6rem;     /* 96 */
  --sp-11: 8rem;     /* 128 */
  --sp-12: 8rem;

  /* Section rhythm — four densities, not one padding for everything */
  --section-y-compact: clamp(2.5rem, 5vw, 4rem);
  --section-y-tight: clamp(3.5rem, 7vw, 5.5rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --section-y-lg: clamp(6rem, 12vw, 10.5rem);

  /* — Layout — three container patterns, no more — */
  --container: 1280px;
  --container-narrow: 680px;
  --container-wide: 1480px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --grid-gap: clamp(1rem, 2.2vw, 1.75rem);

  /* — Radius — */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-2xl: 40px;
  --r-pill: 999px;

  /* — Elevation — indigo tinted, low opacity, wide blur, never pure black — */
  --sh-xs: 0 1px 2px rgba(37, 26, 121, 0.05);
  --sh-sm: 0 2px 10px -3px rgba(37, 26, 121, 0.09);
  --sh-md: 0 14px 32px -14px rgba(37, 26, 121, 0.16);
  --sh-lg: 0 28px 64px -28px rgba(37, 26, 121, 0.20);
  --sh-xl: 0 44px 96px -44px rgba(37, 26, 121, 0.24);
  --sh-glow: 0 24px 64px -28px rgba(121, 138, 244, 0.45);
  --sh-glow-pink: 0 24px 64px -28px rgba(176, 184, 249, 0.55);
  --sh-glow-coral: 0 22px 56px -26px rgba(255, 133, 76, 0.38);

  /* — Borders — derived from Cornflower at low opacity, used sparingly — */
  --border-hairline: 1px solid rgba(121, 138, 244, 0.18);
  --border-soft: 1px solid rgba(121, 138, 244, 0.13);
  --border-strong: 1px solid rgba(37, 26, 121, 0.16);
  --border-inverse: 1px solid rgba(255, 255, 255, 0.18);

  /* — Motion — micro 180ms · component 340ms · section 550ms · editorial 800ms — */
  --ease-out: cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.25, 0.1, 0.25, 1); /* no overshoot: kept as an alias so old rules stay soft */
  --d-fast: 0.2s;
  --d-base: 0.3s;
  --d-slow: 0.45s;
  --d-story: 0.6s;

  /* — Z — */
  --z-grain: 1;
  --z-content: 2;
  --z-nav: 100;
  --z-overlay: 200;
}

/* Per-case accent themes — one palette, five temperatures.
   --accent always stays readable; the personality lives in the gradient. */
[data-accent="peach-pink"] {
  --accent: var(--co-800);
  --accent-strong: #8A4419;
  --accent-bright: var(--co-500);
  --accent-soft: #FFEDE2;
  --accent-2: var(--pf-400);
  --accent-2-strong: var(--cf-600);
  --gradient-accent: linear-gradient(135deg, #FF854C 0%, #B0B8F9 100%);
}

[data-accent="blue-violet"] {
  --accent: var(--cf-700);
  --accent-strong: var(--cf-800);
  --accent-bright: var(--cf-500);
  --accent-soft: #E8ECFE;
  --accent-2: var(--cf-500);
  --accent-2-strong: var(--cf-600);
  --gradient-accent: linear-gradient(135deg, #798AF4 0%, #251A79 100%);
}

[data-accent="pink-violet"] {
  --accent: var(--cf-800);
  --accent-strong: var(--ink-900);
  --accent-bright: var(--pf-400);
  --accent-soft: #EDF0FB;
  --accent-2: var(--pf-400);
  --accent-2-strong: var(--cf-600);
  --gradient-accent: linear-gradient(135deg, #B0B8F9 0%, #5358BD 100%);
}

[data-accent="violet-blue"] {
  --accent: var(--cf-700);
  --accent-strong: var(--cf-800);
  --accent-bright: var(--cf-500);
  --accent-soft: #E8ECFE;
  --accent-2: var(--pf-400);
  --accent-2-strong: var(--cf-700);
  --gradient-accent: linear-gradient(135deg, #5358BD 0%, #B0B8F9 100%);
}

[data-accent="coral-peach"] {
  --accent: var(--co-800);
  --accent-strong: #8A4419;
  --accent-bright: var(--co-500);
  --accent-soft: #FFF3EC;
  --accent-2: var(--co-500);
  --accent-2-strong: var(--co-700);
  --gradient-accent: linear-gradient(135deg, #FF854C 0%, #798AF4 100%);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  /* the canvas colour lives here so .lb-page-wash can sit behind the content */
  background: var(--surface-000);
  /* no rubber-band: scrolling stops at the top and bottom edge */
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-body);
  background: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  font-feature-settings: 'ss01', 'cv05';
}

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

/* Prevent flash of unstyled display type */
/* (handled for the whole page by boot.js: body stays hidden until fonts are loaded) */

::selection {
  background: var(--pf-300);
  color: var(--ink-900);
}

/* ==========================================================================
   02 · ATMOSPHERE — grain, gradient fields, blobs, sparkles
   ========================================================================== */

/* Film grain overlay — the texture that ties the whole system together */
.grain::after,
.lb-grain::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-grain);
  opacity: 0.18;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.1;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}

/* Gradient field — the soft aurora wash behind heroes and key moments */
.lb-field {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.lb-field > * {
  position: relative;
  z-index: var(--z-content);
}

.lb-field__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  filter: blur(0px);
}

/* Blob — the stadium / capsule shapes from the art direction */
/* Decorative only — must never occupy flow space, regardless of the parent's
   "> * { position: relative }" rule, which would otherwise add its full height. */
.lb-blob {
  position: absolute !important;
  border-radius: var(--r-pill);
  filter: blur(76px);
  opacity: 0.36;
  will-change: transform;
  pointer-events: none;
}

/* Blob palette — Link Water → Perfume → Cornflower.
   Coral blobs exist but are reserved for a single moment per page. */
.lb-blob--pink { background: radial-gradient(circle at 30% 30%, #DFE4F8, #B0B8F9); }
.lb-blob--violet { background: radial-gradient(circle at 30% 30%, #B0B8F9, #798AF4); }
.lb-blob--blue { background: radial-gradient(circle at 30% 30%, #C6CDFB, #798AF4); }
.lb-blob--peach { background: radial-gradient(circle at 30% 30%, #FFDDCD, #FFA57B); }
.lb-blob--coral { background: radial-gradient(circle at 30% 30%, #FFC2A6, #FF854C); }
.lb-blob--lucky { background: radial-gradient(circle at 30% 30%, #5358BD, #251A79); }

.lb-blob--soft { filter: blur(112px); opacity: 0.26; }
.lb-blob--tight { filter: blur(48px); opacity: 0.44; }

/* Crisp capsule (unblurred), for graphic composition */
.lb-capsule {
  position: absolute;
  border-radius: var(--r-pill);
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* Sparkle — four-point star from the reference poster */
.lb-sparkle {
  position: absolute;
  pointer-events: none;
  color: var(--co-400);
  opacity: 0.8;
  filter: drop-shadow(0 0 10px rgba(255, 133, 76, 0.32));
  animation: sparkle 5.5s var(--ease-in-out) infinite;
}

.lb-sparkle:nth-of-type(2n) { animation-delay: 1.4s; }
.lb-sparkle:nth-of-type(3n) { animation-delay: 2.6s; }

@keyframes sparkle {
  0%, 100% { transform: scale(0.9) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1.04) rotate(8deg); opacity: 0.72; }
}

/* Page wash — Link Water canvas with one cornflower bloom. Two stops, not three. */
.lb-page-wash {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(64rem 44rem at 14% -10%, rgba(176, 184, 249, 0.34), transparent 64%),
    radial-gradient(56rem 40rem at 94% 4%, rgba(121, 138, 244, 0.16), transparent 62%),
    var(--surface-050);
}

/* ── Background roles — the section rhythm map ──
   light → white → lavender → dark → light  */
.lb-bg-light { background: var(--surface-050); }
.lb-bg-white { background: var(--surface-white); }
.lb-bg-lavender { background: var(--surface-100); }
.lb-bg-mist { background: var(--g-mist); }

/* Hairline seam — a section break that does not shout */
.lb-seam { position: relative; }
.lb-seam::before {
  content: '';
  position: absolute;
  inset-inline: var(--gutter);
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(121, 138, 244, 0.26) 16%, rgba(121, 138, 244, 0.26) 84%, transparent);
}

/* Soft fades so a light section dissolves into the next one */
.lb-fade-to-lavender { position: relative; }
.lb-fade-to-lavender::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(3rem, 8vw, 6rem);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, transparent, var(--surface-100));
}

/* ==========================================================================
   03 · LAYOUT
   ========================================================================== */
.lb-container,
body:not(.case-page) .container-max {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.lb-container--narrow { max-width: var(--container-narrow); }
.lb-container--wide { max-width: var(--container-wide); }

.lb-section { padding-block: var(--section-y); position: relative; }
.lb-section--lg { padding-block: var(--section-y-lg); }
.lb-section--flush-top { padding-top: 0; }

.lb-stack > * + * { margin-top: var(--sp-4); }
.lb-stack-lg > * + * { margin-top: var(--sp-6); }

/* Editorial split — asymmetric, the workhorse layout */
.lb-split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.lb-split--even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-split--reverse { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }

/* Section marker — the small numbered eyebrow used across every page */
.lb-marker {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.lb-marker::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
  flex: none;
}

.lb-marker--plain::before { display: none; }

/* Sticky storytelling rail */
.lb-sticky {
  position: sticky;
  top: 7rem;
  align-self: start;
}

/* ==========================================================================
   04 · TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 500;
  letter-spacing: var(--tracking-tight);
}

p { margin: 0; }

.lb-display,
.lb-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' var(--opsz-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  text-wrap: balance;
}

.lb-display { font-size: var(--fs-display); }
.lb-h1 { font-size: var(--fs-h1); }

.lb-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' var(--opsz-heading);
  text-wrap: balance;
  font-size: var(--fs-h2);
  line-height: var(--lh-snug);
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
}

.lb-h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h3);
  line-height: 1.24;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
}

.lb-h4 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: var(--fs-h4);
  line-height: 1.32;
  color: var(--text-strong);
}

.lb-lead {
  font-size: var(--fs-lead);
  line-height: 1.62;
  color: var(--text-body);
  font-weight: 400;
}

.lb-body { font-size: var(--fs-body); line-height: var(--lh-relaxed); color: var(--text-body); }
.lb-small { font-size: var(--fs-small); line-height: 1.62; color: var(--text-muted); }
.lb-caption { font-size: var(--fs-caption); line-height: 1.55; color: var(--text-subtle); }

.lb-label {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
}

/* Gradient text — used sparingly, one moment per page */
.lb-grad-text {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.lb-serif { font-family: var(--font-display); font-weight: 600; }
/* Bricolage Grotesque has no true italic, so the accent word is set by
   weight contrast and the gradient rather than a synthetic slant. */
.lb-italic { font-style: normal; font-weight: 400; }
.lb-prose .lb-italic, p > .lb-italic { font-style: italic; font-weight: inherit; }

/* Measure control for long-form reading */
.lb-prose { max-width: 64ch; }
.lb-prose p + p { margin-top: 1.35em; }
.lb-prose > * + h3, .lb-prose > * + h4 { margin-top: 2em; }
.lb-prose strong { color: var(--text-strong); font-weight: 600; }

.lb-prose a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--d-fast) var(--ease-out);
}

.lb-prose a:hover { color: var(--pink-600); }

/* Big opening statement */
.lb-statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' var(--opsz-heading);
  text-wrap: balance;
  font-size: clamp(1.75rem, 4.2vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  max-width: 22ch;
}

/* ==========================================================================
   05 · NAVIGATION
   ========================================================================== */
.lb-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  transition: background var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              backdrop-filter var(--d-base) var(--ease-out);
}

.lb-nav__inner {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding: 1.1rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
}

.lb-nav.is-scrolled {
  background: var(--surface-white);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(37, 26, 121, 0.09);
  box-shadow: var(--sh-sm);
}

.lb-nav.is-scrolled .lb-nav__inner { padding-block: 0.75rem; }

.lb-logo {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: -0.01em;
  color: var(--text-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1;
}

.lb-logo__mark {
  width: 1.8rem;
  height: 1.8rem;
  flex: none;
  color: var(--cf-600);
  display: grid;
  place-items: center;
  transition: color var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}

.lb-logo__mark svg { width: 100%; height: 100%; overflow: visible; }

.lb-logo:hover .lb-logo__mark { transform: translateY(-1px); color: var(--co-500); }

/* Name stacked over the descriptor */
.lb-logo__text { display: grid; gap: 0.12rem; }

.lb-logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  line-height: 1.05;
  color: var(--text-strong);
}

.lb-logo__role {
  font-family: var(--font-sans);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent);
}

.lb-dark .lb-logo__name,
.lb-footer .lb-logo__name { color: #fff; }
.lb-dark .lb-logo__role,
.lb-footer .lb-logo__role { color: var(--pf-400); }

@media (max-width: 400px) {
  .lb-logo__role { display: none; }
}

.lb-nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
}

.lb-nav__link,
.nav-link {
  position: relative;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding-block: 0.35rem;
  transition: color var(--d-fast) var(--ease-out);
  white-space: nowrap;
}

.lb-nav__link::after,
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  border-radius: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--d-base) var(--ease-out);
}

.lb-nav__link:hover,
.nav-link:hover { color: var(--text-strong); }

.lb-nav__link:hover::after,
.nav-link:hover::after,
.lb-nav__link.active::after,
.nav-link.active::after { transform: scaleX(1); }

.lb-nav__link.active,
.nav-link.active { color: var(--text-strong); font-weight: 600; }

/* EN / PT selector */
.lb-lang,
.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(37, 26, 121, 0.05);
  border: var(--border-soft);
}

.lb-lang button,
.lang-switch button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--r-pill);
  transition: all var(--d-fast) var(--ease-out);
}

.lb-lang button.active,
.lang-switch button.active {
  background: var(--surface-white);
  color: var(--text-strong);
  box-shadow: var(--sh-xs);
}

/* The active pill grows out of the press rather than snapping into place */
.lb-lang button,
.lang-switch button {
  position: relative;
  transition: color var(--d-fast) var(--ease-out),
              background var(--d-base) var(--ease-spring),
              box-shadow var(--d-base) var(--ease-out);
}

.lb-lang button:active,
.lang-switch button:active { transform: scale(0.94); }

.lb-lang button:focus-visible,
.lang-switch button:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .lb-lang button,
  .lang-switch button { transition: color var(--d-fast) var(--ease-out); }
  .lb-lang button:active,
  .lang-switch button:active { transform: none; }
}

.lb-lang button:hover:not(.active),
.lang-switch button:hover:not(.active) { color: var(--text-strong); }

/* Mobile menu */
.lb-nav__toggle {
  display: none;
  width: 2.65rem;
  height: 2.65rem;
  border: var(--border-soft);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  color: var(--text-strong);
  transition: all var(--d-fast) var(--ease-out);
}

.lb-nav__toggle:hover { background: var(--surface-white); box-shadow: var(--sh-sm); }

.lb-nav__mobile {
  position: fixed;
  inset: 0;
  z-index: var(--z-overlay);
  background: var(--surface-000);
  padding: 6rem var(--gutter) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateY(-100%);
  transition: transform 0.44s var(--ease-out);
  overflow-y: auto;
}

.lb-nav__mobile.is-open { transform: translateY(0); }

.lb-nav__mobile a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 9vw, 3rem);
  color: var(--text-strong);
  text-decoration: none;
  padding-block: 0.5rem;
  border-bottom: var(--border-hairline);
  transition: color var(--d-fast) var(--ease-out);
}

.lb-nav__mobile a:hover { color: var(--accent-strong); }

/* Nav on dark sections */
.lb-nav--inverse .lb-nav__link,
.lb-nav--inverse .lb-logo { color: rgba(255, 255, 255, 0.86); }
.lb-nav--inverse.is-scrolled { background: rgba(37, 26, 121, 0.82); }

/* ==========================================================================
   06 · BUTTONS & LINKS
   ========================================================================== */
.lb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--d-fast) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out),
              color var(--d-fast) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}

.lb-btn:active { transform: translateY(1px) scale(0.99); }

.lb-btn--primary,
.btn-primary {
  background: var(--ink-900);
  color: #fff;
  box-shadow: var(--sh-md);
}

.lb-btn--primary:hover,
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg);
  background: var(--ink-800);
}

.lb-btn--gradient {
  background: var(--g-btn);
  color: #fff;
  box-shadow: var(--sh-glow);
  background-size: 160% 160%;
  background-position: 0% 50%;
  transition: background-position 0.6s var(--ease-out), transform var(--d-fast) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.lb-btn--gradient:hover {
  background-position: 100% 50%;
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -28px rgba(121, 138, 244, 0.62);
}

.lb-btn--ghost {
  background: transparent;
  color: var(--text-strong);
  border-color: rgba(37, 26, 121, 0.18);
}

.lb-btn--ghost:hover {
  background: rgba(37, 26, 121, 0.04);
  border-color: rgba(37, 26, 121, 0.32);
  transform: translateY(-2px);
}

.lb-btn--soft {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.lb-btn--soft:hover { transform: translateY(-2px); box-shadow: var(--sh-sm); }

.lb-btn--inverse {
  background: #fff;
  color: var(--ink-900);
}

.lb-btn--inverse:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -20px rgba(0, 0, 0, 0.5); }

.lb-btn--sm { padding: 0.65rem 1.15rem; font-size: var(--fs-caption); }
.lb-btn--lg { padding: 1.15rem 2.1rem; font-size: var(--fs-body); }
.lb-btn[disabled],
.lb-btn--disabled {
  opacity: 0.42;
  pointer-events: none;
  box-shadow: none;
}

/* Text link with animated arrow */
.lb-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
  position: relative;
}

.lb-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--d-base) var(--ease-out);
}

.lb-link:hover::after { transform: scaleX(1); transform-origin: left; }
.lb-link svg { transition: transform var(--d-base) var(--ease-out); }
.lb-link:hover svg { transform: translateX(4px); }

/* Back-to-top — same button on every page and on the cases */
.lb-to-top,
.back-to-top-btn {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--ink-900);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 14px 32px -12px rgba(37, 26, 121, 0.55);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out), visibility 0s linear var(--d-base);
}
.lb-to-top.is-visible,
.back-to-top-btn.is-visible,
.back-to-top-btn.visible { opacity: 1; visibility: visible; pointer-events: auto; transform: none; transition-delay: 0s; }
.lb-to-top:hover,
.back-to-top-btn:hover { background: var(--co-500); transform: translateY(-3px); box-shadow: 0 18px 40px -14px rgba(255, 133, 76, 0.6); }
.lb-to-top svg,
.back-to-top-btn svg { width: 1.25rem; height: 1.25rem; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke var(--d-fast) var(--ease-out); }
.lb-to-top:hover svg,
.back-to-top-btn:hover svg { stroke: var(--ink-900); }
.lb-to-top:focus-visible,
.back-to-top-btn:focus-visible { outline: 2px solid var(--co-400); outline-offset: 3px; }
@media (max-width: 768px) { .lb-to-top, .back-to-top-btn { right: 1rem; bottom: 1rem; } }

/* ==========================================================================
   07 · FORMS & INPUTS
   ========================================================================== */
.lb-field-group { display: flex; flex-direction: column; gap: 0.45rem; }

.lb-input,
.lb-textarea,
.lb-select {
  width: 100%;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-strong);
  background: var(--surface-white);
  border: 1px solid var(--ink-100);
  border-radius: var(--r-md);
  padding: 0.9rem 1.1rem;
  transition: border-color var(--d-fast) var(--ease-out),
              box-shadow var(--d-fast) var(--ease-out),
              background var(--d-fast) var(--ease-out);
}

.lb-textarea { min-height: 9rem; resize: vertical; line-height: 1.6; }

.lb-input::placeholder,
.lb-textarea::placeholder { color: var(--ink-300); }

.lb-input:hover,
.lb-textarea:hover { border-color: var(--ink-200); }

.lb-input:focus,
.lb-textarea:focus,
.lb-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}

.lb-input[aria-invalid="true"],
.lb-input.is-error {
  border-color: var(--negative);
  box-shadow: 0 0 0 4px rgba(239, 121, 65, 0.14);
}

.lb-input-label {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
}

.lb-input-help { font-size: var(--fs-caption); color: var(--text-subtle); }
.lb-input-help--error { color: var(--negative); }

/* ==========================================================================
   08 · TAGS, CHIPS, LABELS
   ========================================================================== */
.lb-tag,
.tag,
.project-tag,
.persona-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 0.45rem 0.8rem;
  border-radius: var(--r-pill);
  background: rgba(37, 26, 121, 0.05);
  color: var(--text-muted);
  border: 1px solid transparent;
  white-space: nowrap;
}

.lb-tag--accent { background: var(--accent-soft); color: var(--accent-strong); }
.lb-tag--outline { background: transparent; border-color: rgba(37, 26, 121, 0.14); color: var(--text-muted); }
.lb-tag--inverse { background: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.92); border-color: rgba(255, 255, 255, 0.18); }
.lb-tag--positive { background: var(--positive-soft); color: #157A63; }
.lb-tag--negative { background: var(--negative-soft); color: #A8501F; }
.lb-tag--caution { background: var(--caution-soft); color: #A8501F; }
.lb-tag--info { background: var(--info-soft); color: var(--blue-700); }

.lb-tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ==========================================================================
   09 · CARDS & SURFACES
   ========================================================================== */
.lb-card {
  position: relative;
  background: var(--surface-white);
  border: var(--border-soft);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}

.lb-card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}

.lb-card--soft { background: var(--surface-050); border-color: transparent; }
.lb-card--lavender { background: var(--surface-100); border-color: transparent; }
.lb-card--accent { background: var(--accent-soft); border-color: transparent; }
.lb-card--glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: var(--sh-md);
}

.lb-card--gradient {
  background: var(--gradient-accent);
  border-color: transparent;
  color: #fff;
}

.lb-card--gradient .lb-h3,
.lb-card--gradient .lb-h4 { color: #fff; }

.lb-card--ink {
  background: var(--g-ink);
  border-color: transparent;
  color: var(--text-inverse-muted);
}

.lb-card--ink .lb-h2,
.lb-card--ink .lb-h3,
.lb-card--ink .lb-h4 { color: #fff; }

/* Accent edge — replaces the old left-border pattern */
.lb-card--edge { padding-left: clamp(1.5rem, 3vw, 2.25rem); overflow: hidden; }

.lb-card--edge::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--gradient-accent);
}

/* Context / decision / insight card grid */
.lb-grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.lb-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.lb-grid--auto { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

/* Image / interface container */
.lb-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-100);
  box-shadow: var(--sh-lg);
}

.lb-frame img { width: 100%; display: block; }

.lb-frame--float {
  transition: transform var(--d-slow) var(--ease-out), box-shadow var(--d-slow) var(--ease-out);
}

.lb-frame--float:hover { transform: translateY(-6px) scale(1.005); box-shadow: var(--sh-xl); }

/* Case frame — one fixed ratio so every screenshot lands at the same size,
   however the source PNG happened to be exported. Loyalty.png is 505x377
   (ratio 1.34) while the others are 567x540 (1.05); without this the loyalty
   frame rendered noticeably shorter than its neighbours. */
.lb-frame--case { aspect-ratio: 567 / 540; }

.lb-frame--case img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

/* Same transparent-PNG story on the work page */
.lb-frame--rose { background: #FDF2F6; }

.lb-frame--rose img {
  object-fit: contain;
  object-position: 50% 50%;
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

/* Gradient surface behind a UI screenshot */
.lb-showcase {
  position: relative;
  border-radius: var(--r-2xl);
  padding: clamp(1.5rem, 5vw, 4rem);
  background: var(--gradient-accent);
  overflow: hidden;
  isolation: isolate;
}

.lb-showcase > *:not(.lb-blob):not(.lb-sparkle) { position: relative; z-index: 2; }

.lb-showcase--soft { background: linear-gradient(150deg, var(--surface-100), var(--accent-soft)); }

/* Layered / overlapping screens */
.lb-layered { position: relative; }
.lb-layered > * { box-shadow: var(--sh-lg); border-radius: var(--r-lg); }
.lb-layered > *:nth-child(2) { position: absolute; right: -6%; bottom: -10%; width: 46%; }

/* Annotated screen */
.lb-annot { position: relative; display: inline-block; }

.lb-annot__pin {
  position: absolute;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
  cursor: pointer;
  transition: transform var(--d-fast) var(--ease-spring);
}

.lb-annot__pin:hover { transform: scale(1.18); }

/* Before / after split */
.lb-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink-100); border-radius: var(--r-lg); overflow: hidden; }
.lb-compare > div { background: var(--surface-white); padding: clamp(1.25rem, 3vw, 2rem); }
.lb-compare__label { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 700; margin-bottom: 0.75rem; }
.lb-compare__before .lb-compare__label { color: var(--text-subtle); }
.lb-compare__after .lb-compare__label { color: var(--accent-strong); }

/* ==========================================================================
   10 · METRICS & DATA
   ========================================================================== */
.lb-metric {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.lb-metric__value {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
}

.lb-metric__value--gradient {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lb-metric__label {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--text-strong);
}

.lb-metric__note { font-size: var(--fs-caption); color: var(--text-subtle); line-height: 1.5; }

.lb-metric--sm .lb-metric__value { font-size: clamp(1.5rem, 3vw, 2.25rem); }

/* Evidence tiers — measured vs qualitative vs learning */
.lb-evidence { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.lb-evidence__tier {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  display: inline-block;
  margin-bottom: var(--sp-4);
}

.lb-evidence__tier--measured { background: var(--accent-soft); color: var(--accent-strong); }
.lb-evidence__tier--qualitative { background: var(--surface-100); color: var(--ink-600); }
.lb-evidence__tier--learning { background: var(--caution-soft); color: #A8501F; }

/* Native bar chart */
.lb-chart { display: flex; flex-direction: column; gap: 0.9rem; }

.lb-bar { display: grid; grid-template-columns: minmax(6rem, 11rem) 1fr auto; gap: 1rem; align-items: center; }
.lb-bar__label { font-size: var(--fs-caption); color: var(--text-muted); }
.lb-bar__track { height: 0.6rem; border-radius: var(--r-pill); background: rgba(37, 26, 121, 0.07); overflow: hidden; }

.lb-bar__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--gradient-accent);
  width: 0;
  transition: width 1.15s var(--ease-out);
}

.lb-bar__value { font-size: var(--fs-caption); font-weight: 700; color: var(--text-strong); font-variant-numeric: tabular-nums; min-width: 3rem; text-align: right; }
.lb-bar--muted .lb-bar__fill { background: var(--ink-200); }

/* Vertical column chart */
.lb-cols { display: flex; align-items: flex-end; gap: clamp(0.35rem, 1.2vw, 0.9rem); height: clamp(9rem, 22vw, 14rem); }
.lb-cols__item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 0.5rem; height: 100%; }
.lb-cols__bar { width: 100%; border-radius: var(--r-sm) var(--r-sm) 2px 2px; background: var(--gradient-accent); height: 0; transition: height 1s var(--ease-out); }
.lb-cols__bar--muted { background: var(--ink-200); }
.lb-cols__val { font-size: var(--fs-caption); font-weight: 700; color: var(--text-strong); }
.lb-cols__cap { font-size: var(--fs-micro); color: var(--text-subtle); letter-spacing: 0.04em; }

/* Line chart drawing on scroll */
.lb-line path.lb-line__stroke {
  stroke-dasharray: var(--len, 1000);
  stroke-dashoffset: var(--len, 1000);
  transition: stroke-dashoffset 1.6s var(--ease-out);
}

.lb-line.is-drawn path.lb-line__stroke { stroke-dashoffset: 0; }

/* Progress / delta comparison */
.lb-delta { display: flex; align-items: baseline; gap: 0.6rem; }
.lb-delta__from { font-size: var(--fs-body-lg); color: var(--text-subtle); text-decoration: line-through; text-decoration-thickness: 1px; }
.lb-delta__arrow { color: var(--accent); }
.lb-delta__to { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 600; color: var(--text-strong); letter-spacing: -0.03em; }

/* Funnel */
.lb-funnel { display: flex; flex-direction: column; gap: 0.4rem; }
.lb-funnel__step { border-radius: var(--r-sm); background: var(--gradient-accent); color: #fff; padding: 0.8rem 1.1rem; display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-caption); font-weight: 600; margin-inline: auto; width: 100%; }

/* ==========================================================================
   11 · QUOTES & EDITORIAL
   ========================================================================== */
.lb-quote {
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 3vw, 2.125rem);
  line-height: 1.34;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  max-width: 30ch;
}

.lb-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  bottom: 0.2em;
  width: 3px;
  border-radius: 2px;
  background: var(--gradient-accent);
}

.lb-quote__cite {
  display: block;
  margin-top: var(--sp-4);
  font-family: var(--font-sans);
  font-size: var(--fs-caption);
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-subtle);
}

.lb-pullquote {
  font-family: var(--font-display);
  font-weight: 500;
  text-wrap: balance;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  line-height: 1.24;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  text-align: center;
  max-width: 24ch;
  margin-inline: auto;
  padding-block: clamp(2rem, 5vw, 4rem);
}

/* Numbered principle / insight block */
.lb-principle { position: relative; padding: clamp(1.75rem, 4vw, 3rem) 0; }

.lb-principle__num {
  position: absolute;
  top: 0;
  left: -0.5rem;
  font-family: var(--font-display);
  font-size: clamp(5rem, 13vw, 10rem);
  line-height: 1;
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

.lb-principle > *:not(.lb-principle__num) { position: relative; z-index: 1; }

/* ==========================================================================
   12 · PROJECT & ARTICLE CARDS
   ========================================================================== */
.lb-project {
  position: relative;
  display: block;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface-white);
  border: var(--border-soft);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.lb-project:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: rgba(121, 138, 244, 0.28); }

.lb-project__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface-100);
}

.lb-project__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.lb-project:hover .lb-project__media img { transform: scale(1.035); }

.lb-project__body { padding: clamp(1.25rem, 2.5vw, 1.9rem); }

.lb-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.9rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
  margin-bottom: 0.65rem;
}

.lb-project__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.375rem, 2.4vw, 1.875rem);
  line-height: 1.16;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  margin-bottom: 0.5rem;
}

.lb-project__result {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-top: var(--sp-4);
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.lb-project__result b {
  font-size: var(--fs-body-lg);
  font-weight: 700;
  color: var(--accent-strong);
  letter-spacing: -0.02em;
}

/* Next / previous project navigation */
.lb-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink-100); border-radius: var(--r-xl); overflow: hidden; }

.lb-pager a {
  background: var(--surface-white);
  padding: clamp(1.5rem, 4vw, 2.75rem);
  text-decoration: none;
  color: inherit;
  transition: background var(--d-base) var(--ease-out);
}

.lb-pager a:hover { background: var(--surface-050); }
.lb-pager__dir { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; font-weight: 600; color: var(--text-subtle); margin-bottom: 0.5rem; display: block; }
.lb-pager a:last-child { text-align: right; }

/* Article preview */
.lb-article { display: grid; gap: 0.6rem; text-decoration: none; color: inherit; padding-block: clamp(1.25rem, 3vw, 1.9rem); border-top: var(--border-hairline); transition: opacity var(--d-base) var(--ease-out); }
.lb-article:hover .lb-article__title { color: var(--accent-strong); }
.lb-article__title { font-family: var(--font-display); font-size: clamp(1.25rem, 2.2vw, 1.625rem); line-height: 1.2; color: var(--text-strong); transition: color var(--d-fast) var(--ease-out); }
.lb-article__meta { display: flex; gap: 1rem; font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); font-weight: 600; }

/* ==========================================================================
   13 · CAREER CHAPTERS / TIMELINE
   ========================================================================== */
.lb-chapter { position: relative; padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.lb-chapter__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--ink-100) 12%, var(--ink-100) 88%, transparent);
}

.lb-chapter__years {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.lb-chapter__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.625rem, 3.4vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  margin-top: 0.35rem;
}

.lb-role { position: relative; padding-left: clamp(1.25rem, 3vw, 2.25rem); padding-block: clamp(1.25rem, 2.5vw, 1.75rem); border-top: var(--border-hairline); }

.lb-role::before {
  content: '';
  position: absolute;
  left: -5px;
  top: calc(clamp(1.25rem, 2.5vw, 1.75rem) + 0.55rem);
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--gradient-accent);
  box-shadow: 0 0 0 4px var(--surface-000);
}

.lb-role__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 1rem; }
.lb-role__company { font-size: var(--fs-body-lg); font-weight: 600; color: var(--text-strong); }
.lb-role__title { font-size: var(--fs-small); color: var(--text-muted); }
.lb-role__period { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); font-weight: 600; margin-left: auto; }

/* Progressive disclosure */
.lb-disclose__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--accent-strong);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}

.lb-disclose__toggle svg { transition: transform var(--d-base) var(--ease-out); }
.lb-disclose.is-open .lb-disclose__toggle svg { transform: rotate(180deg); }

.lb-disclose__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s var(--ease-out);
}

.lb-disclose.is-open .lb-disclose__panel { grid-template-rows: 1fr; }
.lb-disclose__panel > div { overflow: hidden; }

/* Capability clusters */
.lb-cluster { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.lb-cluster span {
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--text-muted);
  background: var(--surface-050);
  border: var(--border-soft);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
  transition: all var(--d-fast) var(--ease-out);
}

.lb-cluster span:hover { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-soft); }

/* ==========================================================================
   14 · STYLE-GUIDE SHOWCASE
   ========================================================================== */
.lb-sg { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }

.lb-sg__swatch {
  border-radius: var(--r-md);
  aspect-ratio: 4 / 3;
  box-shadow: inset 0 0 0 1px rgba(37, 26, 121, 0.06);
  position: relative;
  overflow: hidden;
}

.lb-sg__swatch-meta { margin-top: 0.6rem; }
.lb-sg__hex { font-size: var(--fs-caption); font-weight: 600; color: var(--text-strong); letter-spacing: 0.02em; }
.lb-sg__name { font-size: var(--fs-micro); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--text-subtle); }

/* Interactive state demo */
.lb-states { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.lb-state-chip {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.4rem 0.8rem;
  border-radius: var(--r-pill);
  border: var(--border-soft);
  background: var(--surface-white);
  color: var(--text-subtle);
  cursor: pointer;
  transition: all var(--d-fast) var(--ease-out);
  font-family: inherit;
}

.lb-state-chip.is-active { background: var(--ink-900); color: #fff; border-color: transparent; }
.lb-state-chip:hover:not(.is-active) { border-color: var(--accent); color: var(--accent-strong); }

.lb-state-stage {
  margin-top: var(--sp-5);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: var(--r-lg);
  background: var(--surface-050);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 8rem;
}

/* Spacing / radius scale visual */
.lb-scale-row { display: flex; align-items: center; gap: 1rem; padding-block: 0.55rem; border-bottom: var(--border-hairline); }
.lb-scale-bar { height: 1.1rem; border-radius: 3px; background: var(--gradient-accent); }

/* ==========================================================================
   15 · FOOTER
   ========================================================================== */
.lb-footer {
  position: relative;
  background: var(--g-ink);
  color: var(--text-inverse-muted);
  padding-block: clamp(2.75rem, 5.5vw, 4.25rem) clamp(1.25rem, 2.5vw, 1.75rem);
  overflow: hidden;
  isolation: isolate;
}

/* Top band: statement on the left, CTA + current status on the right,
   so the dark area is actually occupied instead of running empty. */
.lb-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 5vw, 4rem);
  align-items: end;
}

.lb-footer__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  padding-bottom: 0.4rem;
}

.lb-footer__aside p { max-width: 34ch; }

@media (max-width: 900px) {
  .lb-footer__top { grid-template-columns: 1fr; gap: 1.75rem; align-items: start; }
  .lb-footer__aside { padding-bottom: 0; }
}

.lb-footer > *:not(.lb-blob):not(.lb-sparkle) { position: relative; z-index: 2; }

.lb-footer__statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.85rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: var(--tracking-display);
  color: #fff;
  max-width: 18ch;
}

.lb-footer a:not(.lb-btn) { color: rgba(255, 255, 255, 0.78); text-decoration: none; transition: color var(--d-fast) var(--ease-out); }
.lb-footer a.lb-btn--inverse { color: var(--ink-900); }
.lb-footer a.lb-btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.lb-footer a:not(.lb-btn):hover { color: #fff; }

.lb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: clamp(1.5rem, 4vw, 3rem) clamp(1.5rem, 5vw, 4rem);
  /* the top statement band is gone, so the grid opens the footer: no rule above it */
  margin-top: 0;
  padding-top: 0;
}

.lb-footer__col-title {
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.7rem;
}

.lb-footer__links { display: flex; flex-direction: column; gap: 0.4rem; font-size: var(--fs-small); }

.lb-footer__base {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.1rem;
  border-top: var(--border-inverse);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  font-size: var(--fs-caption);
  color: rgba(255, 255, 255, 0.5);
}

.lb-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--r-pill);
  border: var(--border-inverse);
  color: rgba(255, 255, 255, 0.8);
  transition: all var(--d-base) var(--ease-out);
}

.lb-social:hover { background: rgba(255, 255, 255, 0.12); transform: translateY(-2px); color: #fff; }

/* ==========================================================================
   16 · MOTION
   ========================================================================== */
.sr,
.reveal,
.lb-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
  will-change: opacity, transform;
}

.sr.visible,
.reveal.visible,
body:not(.case-page) .reveal.animate-fade-in-up,
.lb-reveal.is-in {
  opacity: 1;
  transform: none;
}

.lb-reveal--left { transform: translateX(-16px); }
.lb-reveal--right { transform: translateX(16px); }
.lb-reveal--scale { transform: scale(0.98); }

/* Stagger children */
.lb-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}

.lb-stagger.is-in > * { opacity: 1; transform: none; }
.lb-stagger.is-in > *:nth-child(1) { transition-delay: 0.03s; }
.lb-stagger.is-in > *:nth-child(2) { transition-delay: 0.08s; }
.lb-stagger.is-in > *:nth-child(3) { transition-delay: 0.13s; }
.lb-stagger.is-in > *:nth-child(4) { transition-delay: 0.18s; }
.lb-stagger.is-in > *:nth-child(5) { transition-delay: 0.23s; }
.lb-stagger.is-in > *:nth-child(6) { transition-delay: 0.28s; }
.lb-stagger.is-in > *:nth-child(7) { transition-delay: 0.33s; }
.lb-stagger.is-in > *:nth-child(8) { transition-delay: 0.38s; }

/* Line-by-line headline reveal */
.lb-line-mask { display: block; overflow: hidden; }

.lb-line-mask > span {
  display: block;
  transform: translateY(106%);
  animation: lbLineUp var(--d-story) var(--ease-out) forwards;
}

.lb-line-mask:nth-child(1) > span { animation-delay: 0.04s; }
.lb-line-mask:nth-child(2) > span { animation-delay: 0.11s; }
.lb-line-mask:nth-child(3) > span { animation-delay: 0.18s; }
.lb-line-mask:nth-child(4) > span { animation-delay: 0.25s; }

@keyframes lbLineUp { to { transform: translateY(0); } }

/* Drifting blobs */
@keyframes lbDrift {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  33% { transform: translate3d(1.5%, -2%, 0) scale(1.02); }
  66% { transform: translate3d(-1.5%, 1.5%, 0) scale(0.99); }
}

.lb-blob--drift { animation: lbDrift 34s var(--ease-in-out) infinite; }
.lb-blob--drift-slow { animation: lbDrift 46s var(--ease-in-out) infinite reverse; }

/* Never animate behind a block of running text */
.lb-prose .lb-blob,
.lb-section--reading .lb-blob { animation: none !important; opacity: 0.2 !important; }

/* Page transition — gradient wipe, near-instant */
.lb-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--g-aurora);
  transform: scaleY(0);
  transform-origin: bottom;
  pointer-events: none;
}

.lb-transition.is-out { transform: scaleY(1); transform-origin: bottom; transition: transform 0.38s var(--ease-in-out); }
.lb-transition.is-in { transform: scaleY(0); transform-origin: top; transition: transform 0.38s var(--ease-in-out); }

/* Content crossfade on load */
@keyframes lbPageIn { from { opacity: 0; } to { opacity: 1; } }
.lb-page-in { animation: lbPageIn 0.34s var(--ease-out) both; }

/* No JavaScript, no hidden content. Reveal classes must never trap copy. */
@media (scripting: none) {
  .sr, .reveal, .lb-reveal, .lb-stagger > *, .hero-body, .portrait-duotone {
    opacity: 1 !important;
    transform: none !important;
  }
  .lb-line-mask > span { transform: none !important; animation: none !important; }
  .lb-disclose__panel { grid-template-rows: 1fr !important; }
}

/* ==========================================================================
   17 · ACCESSIBILITY & FOCUS
   ========================================================================== */
:where(a, button, input, textarea, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--violet-500);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

.lb-skip {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 300;
  background: var(--ink-900);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--fs-caption);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--d-base) var(--ease-out);
}

.lb-skip:focus { transform: translate(-50%, 0); }

/* Skip link: fixed, off-screen and transparent until keyboard focus (stays focusable), so it never shows on scroll bounce */
.lb-skip {
  position: fixed;
  top: 0;
  transform: translate(-50%, -200%);
  opacity: 0;
  pointer-events: none;
  transition: transform var(--d-base) var(--ease-out), opacity var(--d-fast) var(--ease-out);
}
.lb-skip:focus,
.lb-skip:focus-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.lb-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;
}

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

  .sr, .reveal, .lb-reveal, .lb-stagger > * { opacity: 1 !important; transform: none !important; }
  .lb-line-mask > span { transform: none !important; }
  .lb-blob--drift, .lb-blob--drift-slow, .lb-sparkle { animation: none !important; }
}

/* ==========================================================================
   18 · DARK ANCHORS
   ========================================================================== */
.lb-dark {
  position: relative;
  background: var(--g-ink);
  color: var(--text-inverse-muted);
  isolation: isolate;
  overflow: hidden;
}

.lb-dark > *:not(.lb-blob):not(.lb-sparkle):not(.lb-capsule):not(.lb-field__bg) { position: relative; z-index: 2; }
.lb-dark > .lb-blob,
.lb-dark > .lb-sparkle,
.lb-dark > .lb-capsule { position: absolute; z-index: 0; }

.lb-dark h1,
.lb-dark h2,
.lb-dark h3,
.lb-dark h4,
.lb-dark .lb-h1,
.lb-dark .lb-h2,
.lb-dark .lb-h3,
.lb-dark .lb-h4,
.lb-dark .lb-statement,
.lb-dark .lb-quote,
.lb-dark .lb-metric__value { color: #fff; }

.lb-dark .lb-lead,
.lb-dark .lb-body { color: rgba(255, 255, 255, 0.76); }

.lb-dark .lb-label,
.lb-dark .lb-marker { color: var(--pf-400); }

/* Small text on the dark anchor: raise from 55% to 68% so it clears 4.5:1 */
.lb-dark .lb-small,
.lb-dark .lb-caption,
.lb-dark .lb-proof__note,
.lb-dark .lb-metric__note { color: rgba(255, 255, 255, 0.7); }

.lb-dark .lb-note__title,
.lb-dark .lb-case__title { color: #fff; }
.lb-dark .lb-note__kind,
.lb-dark .lb-case__cta { color: var(--pf-400); }

.lb-dark .lb-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.76);
}

.lb-dark .lb-bar__track { background: rgba(255, 255, 255, 0.12); }
.lb-dark .lb-bar__label { color: rgba(255, 255, 255, 0.6); }
.lb-dark .lb-bar__value { color: #fff; }
.lb-dark .lb-role::before { box-shadow: 0 0 0 4px var(--ink-900); }
.lb-dark .lb-quote::before { background: var(--g-blush); }


/* ==========================================================================
   20 · RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .lb-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-split,
  .lb-split--reverse,
  .lb-split--even { grid-template-columns: minmax(0, 1fr); }
  .lb-sticky { position: static; }
}

@media (max-width: 860px) {
  .lb-nav__links { display: none; }
  .lb-nav__toggle { display: inline-flex; }
  .lb-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-pager { grid-template-columns: minmax(0, 1fr); }
  .lb-pager a:last-child { text-align: left; }
}

@media (max-width: 640px) {
  :root { --section-y: clamp(3rem, 12vw, 4.5rem); }
  .lb-grid--2,
  .lb-grid--3,
  .lb-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .lb-compare { grid-template-columns: minmax(0, 1fr); }
  .lb-bar { grid-template-columns: 1fr auto; }
  .lb-bar__label { grid-column: 1 / -1; }
  .lb-quote { padding-left: 1.1rem; }
  .lb-layered > *:nth-child(2) { position: static; width: 100%; margin-top: 1rem; }
}


/* ==========================================================================
   21 · V2 — CLEAN SYSTEM
   12 / 8 / 4 column grid · component sizing · case hierarchy · editorial writing
   ========================================================================== */

/* ── 21.1 · The grid ───────────────────────────────────────────────────────
   One grid, three breakpoints. Every component snaps to it, so a case card,
   a metric and an article card share the same vertical lines.               */
.lb-g12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap);
  align-items: start;
}

.lb-col-3  { grid-column: span 3; }
.lb-col-4  { grid-column: span 4; }
.lb-col-5  { grid-column: span 5; }
.lb-col-6  { grid-column: span 6; }
.lb-col-7  { grid-column: span 7; }
.lb-col-8  { grid-column: span 8; }
.lb-col-12 { grid-column: span 12; }

@media (max-width: 1024px) {
  .lb-g12 { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .lb-col-3 { grid-column: span 4; }
  .lb-col-4 { grid-column: span 4; }
  .lb-col-5,
  .lb-col-6,
  .lb-col-7,
  .lb-col-8,
  .lb-col-12 { grid-column: span 8; }
}

@media (max-width: 640px) {
  .lb-g12 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lb-col-3,
  .lb-col-4,
  .lb-col-5,
  .lb-col-6,
  .lb-col-7,
  .lb-col-8,
  .lb-col-12 { grid-column: span 4; }
}

/* ── 21.2 · Section header ────────────────────────────────────────────────
   Every section opens the same way: marker, headline, optional side link.   */
.lb-shead {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.lb-shead__title { max-width: 20ch; }
.lb-shead--center { justify-content: center; text-align: center; }

/* ── 21.3 · Case hierarchy ───────────────────────────────────────────────
   Featured (8 col, media-led) · Secondary (4 col, stacked) · Compact (row). */
.lb-case {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: var(--surface-white);
  border: var(--border-soft);
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out),
              background var(--d-base) var(--ease-out);
}

.lb-case__media {
  position: relative;
  overflow: hidden;
  background: var(--surface-100);
  aspect-ratio: 16 / 10;
}

.lb-case__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
  transition: transform var(--d-story) var(--ease-out);
}

.lb-case__body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 2.4vw, 2rem);
  flex: 1;
}

.lb-case__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.85rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-subtle);
}

.lb-case__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.15;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
  transition: transform var(--d-base) var(--ease-out);
}

.lb-case__desc {
  font-size: var(--fs-small);
  color: var(--text-body);
  line-height: var(--lh-normal);
  margin: 0;
}

.lb-case__tags {
  font-size: var(--fs-caption);
  color: var(--text-subtle);
  margin: 0;
}

/* The one outcome that matters — the only place Coral appears in a card */
.lb-case__outcome {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: var(--border-hairline);
  font-size: var(--fs-caption);
  color: var(--text-muted);
}

.lb-case__outcome b {
  font-family: var(--font-display);
  font-size: var(--fs-body-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  position: relative;
}

.lb-case__outcome b::after {
  content: '';
  position: absolute;
  left: -0.15em;
  right: -0.15em;
  bottom: 0.05em;
  height: 0.38em;
  background: var(--co-300);
  opacity: 0;
  border-radius: 2px;
  z-index: -1;
  transition: opacity var(--d-base) var(--ease-out);
}

.lb-case__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--accent);
}

.lb-case__cta svg { transition: transform var(--d-base) var(--ease-out); }

/* Hover — image breathes, surface warms, arrow moves, outcome gets marked */
.lb-case:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: rgba(121, 138, 244, 0.3);
}
.lb-case:hover .lb-case__media img { transform: scale(1.04); }
.lb-case:hover .lb-case__title { transform: translateX(2px); }
.lb-case:hover .lb-case__cta svg { transform: translateX(4px); }
.lb-case:hover .lb-case__outcome b::after { opacity: 1; }

/* ── Rose media bed ──
   Loyalty.png is a transparent PNG: its artwork sits on its own #FDF2F6 pink,
   and everything around it is alpha 0. With the default Link Water bed that
   transparency read as a lavender band, so this card gets a bed matching the
   artwork. `contain` guarantees no crop; the box keeps its size either way. */
.lb-case__media--rose { background: #FDF2F6; }

.lb-case__media--rose img {
  object-fit: contain;
  object-position: 50% 50%;
  padding: clamp(0.5rem, 1.5vw, 1rem);
}

/* Featured — media-led, larger type, wider crop */
.lb-case--featured .lb-case__media { aspect-ratio: 16 / 9; }
.lb-case--featured .lb-case__body { padding: clamp(1.5rem, 3vw, 2.5rem); gap: var(--sp-4); }
.lb-case--featured .lb-case__title { font-size: clamp(1.625rem, 3vw, 2.375rem); }
.lb-case--featured .lb-case__desc { font-size: var(--fs-body); max-width: 46ch; }

/* Secondary — same DNA, tighter crop so it aligns with the featured column */
.lb-case--secondary .lb-case__media { aspect-ratio: 4 / 3; }

/* ── Hero case — horizontal card: large image left, copy right.
      Capped at 60rem because the source images are 567px wide; any wider and
      the media panel starts upscaling them. ── */
.lb-case--hero {
  display: grid;
  /* Full container width, same as the trio below. The text side takes the
     extra room so the copy is not squeezed against a very wide image. */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  height: auto;
  width: 100%;
}

.lb-case--hero .lb-case__media {
  aspect-ratio: auto;
  order: 1;
  min-height: 100%;
}

.lb-case--hero .lb-case__media img {
  object-position: 50% 20%;
}

.lb-case--hero .lb-case__body {
  order: 2;
  justify-content: center;
  padding: clamp(1.75rem, 3.6vw, 3.25rem);
  gap: var(--sp-4);
}

.lb-case--hero .lb-case__title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
}

.lb-case--hero .lb-case__desc {
  font-size: var(--fs-body);
  max-width: 52ch;
}

.lb-case--hero .lb-case__outcome { margin-top: var(--sp-4); }

@media (max-width: 860px) {
  .lb-case--hero { grid-template-columns: 1fr; }
  .lb-case--hero .lb-case__media { aspect-ratio: 16 / 10; min-height: 0; }
}

/* Vertical trio below the hero case */
.lb-case-trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.75rem);
  margin-top: clamp(1rem, 2.2vw, 1.75rem);
}

@media (max-width: 900px) {
  .lb-case-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .lb-case-trio { grid-template-columns: 1fr; }
}

/* Compact — no card, no shadow: image + text on a hairline */
.lb-case--compact {
  flex-direction: row;
  align-items: center;
  gap: var(--sp-4);
  background: transparent;
  border: 0;
  border-top: var(--border-hairline);
  border-radius: 0;
  padding-block: var(--sp-4);
}

.lb-case--compact:hover { transform: none; box-shadow: none; }
.lb-case--compact .lb-case__media {
  flex: none;
  width: clamp(5rem, 14vw, 8rem);
  aspect-ratio: 1;
  border-radius: var(--r-md);
}
.lb-case--compact .lb-case__body { padding: 0; gap: var(--sp-1); }
.lb-case--compact .lb-case__outcome { border-top: 0; padding-top: 0; margin-top: var(--sp-1); }

/* ── 21.4 · Editorial writing block ──────────────────────────────────────
   Not a blog grid: one lead piece, then hairline-separated notes.          */
.lb-note {
  display: grid;
  gap: var(--sp-2);
  padding-block: var(--sp-5);
  border-top: var(--border-hairline);
  text-decoration: none;
  color: inherit;
  transition: background var(--d-base) var(--ease-out);
}

.lb-note__kind {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--fs-micro);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}

.lb-note__kind::before {
  content: '';
  width: 0.4rem;
  height: 0.4rem;
  border-radius: var(--r-pill);
  background: currentColor;
  flex: none;
}

/* One colour per kind, so the type reads before the title does */
.lb-note--mention .lb-note__kind { color: #A23B78; }          /* Citação / Mention */
.lb-note--talk .lb-note__kind { color: var(--co-800); }       /* Palestra / Talk */
.lb-note--event .lb-note__kind { color: #157A63; }            /* Evento / Event */
.lb-note--article .lb-note__kind { color: var(--cf-800); }    /* Artigo / Article */

/* A citation is proof, so it gets a little more weight than a link */
.lb-note--mention .lb-note__title { font-weight: 600; }

.lb-note__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.125rem, 1.8vw, 1.4375rem);
  line-height: 1.22;
  letter-spacing: var(--tracking-tight);
  color: var(--text-strong);
  margin: 0;
  transition: color var(--d-fast) var(--ease-out);
}

.lb-note__sum {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: var(--lh-normal);
  margin: 0;
  max-width: 52ch;
}

.lb-note__foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--fs-caption);
  color: var(--text-subtle);
}

.lb-note__foot .lb-note__go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--accent);
}

.lb-note__foot svg { transition: transform var(--d-base) var(--ease-out); }
.lb-note:hover .lb-note__title { color: var(--accent-strong); }
.lb-note:hover svg { transform: translate(3px, -3px); }

/* Lead note — the featured piece, gets a surface and an image */
.lb-note--lead {
  border-top: 0;
  padding: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-white);
  border: var(--border-soft);
  transition: transform var(--d-base) var(--ease-out), box-shadow var(--d-base) var(--ease-out);
}

.lb-note--lead:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }

.lb-note--lead .lb-note__media {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: var(--surface-100);
}

.lb-note--lead .lb-note__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--d-story) var(--ease-out);
}

.lb-note--lead:hover .lb-note__media img { transform: scale(1.04); }

.lb-note--lead .lb-note__inner {
  display: grid;
  gap: var(--sp-3);
  padding: clamp(1.25rem, 2.6vw, 2rem);
}

.lb-note--lead .lb-note__title { font-size: clamp(1.375rem, 2.4vw, 1.875rem); }

/* Link list beside the lead note — tighter rhythm so five items fit its height */
.lb-notes-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lb-notes-list .lb-note { padding-block: var(--sp-4); gap: 0.35rem; }
/* separators only between items: no line above the first or below the last */
.lb-notes-list .lb-note:first-child { border-top: 0; }
.lb-notes-list .lb-note__title { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); }

@media (max-width: 1024px) {
  .lb-notes-list { justify-content: flex-start; }
}

/* Play badge for video notes */
.lb-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.lb-play span {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--r-pill);
  background: rgba(37, 26, 121, 0.72);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}

a:hover .lb-play span { background: var(--co-500); transform: scale(1.06); }

/* ── 21.4b · Testimonial card ────────────────────────────────────────────
   A quote is a bounded object, so it keeps its card — but it now responds.  */
.lb-quote-card {
  position: relative;
  overflow: hidden;
  transition: transform var(--d-base) var(--ease-out),
              box-shadow var(--d-base) var(--ease-out),
              border-color var(--d-base) var(--ease-out);
}

/* Oversized quote mark, revealed on hover */
.lb-quote-card::before {
  content: '\201C';
  position: absolute;
  top: 0.15rem;
  right: 0.9rem;
  font-family: var(--font-display);
  font-size: 5.5rem;
  line-height: 1;
  color: var(--pf-400);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity var(--d-base) var(--ease-out), transform var(--d-base) var(--ease-out);
}

/* Coral hairline that draws in from the left */
.lb-quote-card::after {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--co-500);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform var(--d-base) var(--ease-out);
}

.lb-quote-card > *:not(.lb-blob):not(.lb-sparkle) { position: relative; z-index: 1; }

.lb-quote-card:hover,
.lb-quote-card:focus-within {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: rgba(121, 138, 244, 0.3);
}

.lb-quote-card:hover::before,
.lb-quote-card:focus-within::before { opacity: 0.5; transform: none; }
.lb-quote-card:hover::after,
.lb-quote-card:focus-within::after { transform: scaleY(1); }

.lb-quote-card img { transition: transform var(--d-base) var(--ease-out); }
.lb-quote-card:hover img { transform: scale(1.06); }

@media (prefers-reduced-motion: reduce) {
  .lb-quote-card,
  .lb-quote-card::before,
  .lb-quote-card::after,
  .lb-quote-card img { transition: none !important; transform: none !important; }
}

/* ── 21.5 · Proof strip — compact, one Coral highlight ───────────────────  */
.lb-proof {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(121, 138, 244, 0.18);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.lb-proof > div {
  background: var(--surface-white);
  padding: clamp(1.1rem, 2.4vw, 1.75rem);
  display: grid;
  gap: 0.3rem;
  align-content: start;
}

.lb-proof__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  line-height: 1;
  letter-spacing: var(--tracking-display);
  color: var(--ink-900);
}

.lb-proof__label {
  font-size: var(--fs-caption);
  font-weight: 600;
  color: var(--text-body);
}

.lb-proof__note {
  font-size: var(--fs-micro);
  line-height: 1.45;
  color: var(--text-subtle);
  letter-spacing: 0.01em;
  text-transform: none;
}

/* Exactly one metric per page may carry Coral */
.lb-proof > div.is-highlight { background: var(--co-200); }
.lb-proof > div.is-highlight .lb-proof__value { color: var(--co-800); }
.lb-proof > div.is-highlight .lb-proof__label { color: var(--ink-900); }
.lb-proof > div.is-highlight .lb-proof__note { color: var(--ink-700); }

@media (max-width: 860px) { .lb-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .lb-proof { grid-template-columns: minmax(0, 1fr); } }

/* ── 21.6 · Coral CTA — the single loudest element on a page ──────────────  */
.lb-btn--coral {
  background: var(--co-500);
  color: var(--ink-900);
  box-shadow: var(--sh-glow-coral);
}

.lb-btn--coral:hover {
  background: var(--co-400);
  transform: translateY(-2px);
  box-shadow: 0 28px 64px -26px rgba(255, 133, 76, 0.5);
}

/* ── 21.7 · Motion roles ─────────────────────────────────────────────────
   entrance · headline · media · metric · hover. Nothing else animates.     */
.lb-rise { opacity: 0; transform: translateY(14px); }
.lb-rise.is-in {
  opacity: 1;
  transform: none;
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}

.lb-stagger--v2 > * { opacity: 0; transform: translateY(14px); }
.lb-stagger--v2.is-in > * {
  opacity: 1;
  transform: none;
  transition: opacity var(--d-slow) var(--ease-out), transform var(--d-slow) var(--ease-out);
}
.lb-stagger--v2.is-in > *:nth-child(1) { transition-delay: 0ms; }
.lb-stagger--v2.is-in > *:nth-child(2) { transition-delay: 70ms; }
.lb-stagger--v2.is-in > *:nth-child(3) { transition-delay: 140ms; }
.lb-stagger--v2.is-in > *:nth-child(4) { transition-delay: 210ms; }
.lb-stagger--v2.is-in > *:nth-child(5) { transition-delay: 280ms; }

@media (prefers-reduced-motion: reduce) {
  .lb-rise,
  .lb-stagger--v2 > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lb-sparkle { animation: none !important; }
  .lb-blob--drift, .lb-blob--drift-slow { animation: none !important; }
}

@media print {
  body::before,
  .lb-nav,
  .lb-to-top,
  .lb-page-wash { display: none !important; }
  .lb-dark, .lb-footer { background: #fff !important; color: #000 !important; }
}


/* ==========================================================================
   22 · PAGE HERO — one system for About, Projects, Experience, Contact
   Same title scale and gradient as the home hero, a lead that runs wide
   so the field is occupied instead of empty.
   ========================================================================== */
.lb-pagehero {
  padding-block: calc(4.75rem + clamp(2rem, 6vh, 4.5rem)) clamp(2.5rem, 5vw, 4rem);
}

.lb-pagehero .lb-marker { margin-bottom: clamp(1rem, 2.6vh, 1.75rem); }

.lb-pagehero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' var(--opsz-display);
  font-size: clamp(2.25rem, min(5.2vw, 9.5vh), 4rem);
  line-height: 1.06;
  letter-spacing: var(--tracking-display);
  color: var(--text-strong);
  text-wrap: balance;
  max-width: 28ch;
  margin: 0 0 clamp(1.25rem, 3vh, 2rem);
}

/* The accent: same blue-to-coral gradient as the home headline */
.lb-pagehero__title .is-accent,
.lb-pagehero__title .reveal-line:last-child > span:not([class]) {
  background: var(--g-hero-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  font-style: normal;
}

.lb-pagehero__lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 62rem;
  margin: 0 0 1.25rem;
}

@media (max-width: 640px) {
  .lb-pagehero { padding-block: calc(4.75rem + 1.5rem) 2.25rem; }
  .lb-pagehero__title { max-width: none; }
}

/* ==========================================================================
   18 · MOBILE ERGONOMICS — touch targets, legible micro-type, no side-scroll
   Everything is inside media queries: desktop is untouched.
   ========================================================================== */
@media (max-width: 1023px) {
  /* 12-column page grids that rely on lg: spans must stack below lg */
  .lb-container[style*="repeat(12"] { display: block !important; }
}

@media (max-width: 767px) {
  :root { --fs-micro: 0.75rem; --gutter: 1rem; } /* one 16px side margin on every page (cases use the same value) */
  /* --fs-micro: 11px → 12px for every label built on the token */

  html { -webkit-text-size-adjust: 100%; }
  .grid > *, .lb-container > * { min-width: 0; } /* grid/flex children may shrink instead of widening the page */
  .role-company, .role-period, .footnote-role { overflow-wrap: anywhere; }
  html, body { overflow-x: clip; } /* decorative blobs can never create a sideways scroll (clip, unlike hidden, keeps sticky working) */
  .lang-switch button, .lb-lang button { min-width: 2.75rem; }
  body { line-height: 1.6; }
  img, svg, video, canvas, table { max-width: 100%; }

  /* Touch targets ≥ 44px — pills keep their look, the hit area grows */
  .lb-nav__toggle { width: 2.75rem; height: 2.75rem; }
  .lang-switch button, .lb-lang button { padding-inline: 0.8rem; }
  .lang-switch button::before, .lb-lang button::before { content: ''; position: absolute; inset: -8px -1px; }
  .lb-social { width: 2.75rem; height: 2.75rem; }
  .lb-footer__links { gap: 0; }
  .lb-footer__links a, .lb-footer a:not(.lb-btn):not(.lb-logo):not(.lb-social) { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .u-link, a.underline.underline-offset-4 { display: inline-flex; align-items: center; min-height: 2.75rem; }
  .rail-chip { min-height: 2.75rem; display: inline-flex; align-items: center; }
  .lb-btn:not(.lb-btn--sm) { min-height: 2.75rem; }

  /* Small labels: never below 12px (the --fs-micro token already covers most) */
  .chapter-years, .role-period, .cred-year, .rail-chip { font-size: 0.75rem; }

  /* Headings scale with the screen instead of wrapping word by word */
  .lb-pagehero__title { font-size: clamp(1.75rem, 8.4vw, 2.25rem); line-height: 1.1; }
  h1 { overflow-wrap: break-word; hyphens: manual; }
  h2 { overflow-wrap: break-word; }

  /* Comfortable reading */
  .lb-prose p, .lb-lede { line-height: 1.65; }
}

/* Touch screens: no hover-lift stuck after a tap */
@media (hover: none) {
  .lb-project:hover, .lb-case:hover, .lb-card--hover:hover, .lb-btn:hover,
  .lb-quote-card:hover, .lb-social:hover { transform: none; }
  .lb-project:hover .lb-project__media img, .lb-case:hover .lb-case__media img,
  .lb-quote-card:hover img { transform: none; }
}

/* Menu toggle becomes an X while the drawer is open, and stays above the drawer so it can close it */
.lb-nav__toggle .ico-close { display: none; }
.lb-nav__toggle[aria-expanded="true"] .ico-open { display: none; }
.lb-nav__toggle[aria-expanded="true"] .ico-close { display: inline; }
html.menu-open .lb-nav { z-index: 201; background: transparent !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-color: transparent !important; }

/* Page blocks centred with a max-w-* utility but no .lb-container: give them the page gutter
   whenever the block is as wide as the screen (desktop, where it is centred, is unchanged) */
@media (max-width: 1100px) {
  .lb-section > [class*="max-w-"] { padding-inline: var(--gutter); }
}

/* Full / short copy pairs: both live in the markup, the screen size picks one */
.m-short { display: none; }
@media (max-width: 767px) {
  .m-full { display: none; }
  .m-short { display: inline; }
}
