/* =========================================================
   Brandlabs — brandlabs.digital
   Brand: #E81D4E primary · #FCF8F5 secondary · Pantone 15-6310 TCX Swamp (#A8B098) accent
   Type: Bricolage Grotesque (display) · DM Sans (body)
   ========================================================= */

:root {
  /* Colour */
  --pink: #E81D4E;              /* primary */
  --pink-soft: #FDE4EA;
  --cream: #FCF8F5;             /* secondary */
  --swamp: #A8B098;             /* accent: PANTONE 15-6310 TCX Swamp */
  --swamp-soft: #ECEEE6;        /* tint for alternate sections */
  --deep: #1C2016;              /* darkest Swamp shade, used for text */
  --white: #FFFFFF;
  --text: var(--deep);
  --text-muted: #565E4B;        /* 6.0:1 on cream */
  --text-faint: #838C73;        /* large text only, 3.2:1 on cream */
  --on-swamp-muted: #2F3527;    /* 5.8:1 on swamp */
  --line: rgba(28, 32, 22, 0.14);
  --line-swamp: rgba(28, 32, 22, 0.25);

  /* Type */
  --font-display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Space (8pt) */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 48px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 700ms;

  --z-header: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
address { font-style: normal; }

:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 4px; }
.work :focus-visible { outline-color: var(--white); }
.section--swamp :focus-visible, .site-footer :focus-visible { outline-color: var(--deep); }

.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;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 999;
  background: var(--deep); color: var(--cream); padding: 12px 18px; border-radius: var(--radius-sm);
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 16px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--paper { background: var(--swamp-soft); }
.section--swamp { background: var(--swamp); color: var(--deep); }

/* ---------- Type ---------- */
.display-xl, .display-lg, .display-md, .statement, .hero-title, .service-title :is(h2, h3) {
  font-family: var(--font-display);
  font-variation-settings: "wdth" 75, "opsz" 96;
  font-weight: 800;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.display-lg { font-size: clamp(2.75rem, 6.4vw, 5.75rem); }
.display-md { font-size: clamp(2.25rem, 4.8vw, 4.25rem); }
.display-lg em { font-style: normal; background: var(--pink); color: var(--white); padding: 0 0.08em; border-radius: 6px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.lede { color: var(--text-muted); font-size: 1.0625rem; max-width: 44ch; margin-top: var(--s-4); }
.mono { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; text-transform: uppercase; }

.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 8px 12px; border-radius: 6px;
  background: var(--white); border: 1px solid var(--line);
  margin-bottom: var(--s-5);
}
.label .dot { width: 8px; height: 8px; background: var(--pink); border-radius: 2px; }
.label--dark { background: var(--cream); border-color: var(--line-swamp); color: var(--deep); }
.label--on-pink { background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.4); color: var(--white); }
.label--on-pink .dot { background: var(--white); }

/* ---------- Buttons ---------- */
.btn-pair {
  display: inline-flex; align-items: stretch; gap: 6px;
  text-decoration: none; border: 0; background: none; padding: 0;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 10px;
  font-weight: 700; font-size: 1.1875rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.btn--pink { background: var(--pink); color: var(--white); }
.btn--light { background: var(--white); color: var(--deep); }
.btn--swamp { background: var(--swamp); color: var(--deep); }
.btn-icon {
  display: inline-grid; place-items: center; width: 48px; min-height: 48px; border-radius: 10px;
  transition: transform var(--dur) var(--ease-out);
}
.btn-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-icon--pink { background: var(--pink); color: var(--white); }
.btn-icon--swamp { background: var(--swamp); color: var(--deep); }
.btn-icon--light { background: var(--white); color: var(--deep); }
.btn-pair:hover .btn-icon { transform: translateX(4px) rotate(-45deg); }
.btn-pair:active .btn, a.btn:active { transform: scale(0.97); }

.round-btn {
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  display: grid; place-items: center;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out), opacity var(--dur);
}
.round-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn:hover:not(:disabled) { background: var(--swamp); border-color: var(--swamp); }
.round-btn:disabled { opacity: 0.4; cursor: not-allowed; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none;
  min-height: 44px; border-bottom: 2px solid var(--pink);
}
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform var(--dur) var(--ease-out); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: rgba(252, 248, 245, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--dur) var(--ease-out);
}
.header-inner { display: flex; align-items: center; gap: var(--s-5); height: 76px; }
.brand { display: block; position: relative; margin-right: auto; padding-block: 10px; }
.brand-logo { height: 21px; width: auto; }
.nav-list { display: flex; gap: 4px; }
.nav-list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  color: var(--pink); text-decoration: none; border-radius: 8px; transition: background-color var(--dur-fast);
  /* display face at 20px/800 counts as large text: pink on cream 4.2:1 passes */
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800;
  font-size: 1.25rem; text-transform: uppercase; letter-spacing: 0.01em;
}
.nav-list a:hover { background: var(--pink-soft); }
.nav-list a[aria-current="page"] { background: var(--pink-soft); }
.mobile-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 6px; }
.header-cta { min-height: 44px; }

.site-header.is-solid { box-shadow: 0 1px 0 var(--line); }

.nav-toggle {
  display: none; width: 48px; height: 48px; border: 0; background: transparent;
  position: relative; border-radius: 10px;
}
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--pink); transition: transform var(--dur) var(--ease-out), top var(--dur); }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 27px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 23px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 23px; transform: rotate(-45deg); }

.mobile-nav { background: var(--cream); border-top: 1px solid var(--line); padding: var(--s-4) var(--gutter) var(--s-6); }
.mobile-nav a {
  display: flex; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800;
  font-size: 2rem; text-transform: uppercase; text-decoration: none; color: var(--pink);
}
.site-header.menu-open { background: var(--cream); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: flex; color: var(--white);
  background: #2f6fd0; overflow: hidden; isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
        linear-gradient(to top, rgba(28,32,22,0.75) 0%, rgba(28,32,22,0.2) 34%, rgba(28,32,22,0) 55%);
}
.hero-content { display: flex; flex-direction: column; padding-top: 108px; padding-bottom: clamp(24px, 4vw, 48px); }
.hero-tags { display: flex; justify-content: space-between; gap: var(--s-3); }
.tag {
  display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.tag--glass { background: rgba(255,255,255,0.18); border: 1px solid rgba(255,255,255,0.35); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--white); }

.hero-title {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: clamp(4.5rem, 17.5vw, 17rem);
  line-height: 0.82; margin-top: clamp(8px, 2vw, 24px);
  text-shadow: 0 4px 40px rgba(0,0,0,0.12);
}
.hero-word { display: block; }
.hero-bottom {
  margin-top: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: var(--s-5);
}
.hero-copy { max-width: 36ch; font-size: 1.0625rem; line-height: 1.5; text-shadow: 0 1px 12px rgba(0,0,0,0.35); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement { font-size: clamp(2rem, 4.2vw, 3.75rem); line-height: 0.98; margin-bottom: var(--s-7); }
.statement-muted { color: var(--text-faint); }
.about-side { display: flex; flex-direction: column; align-items: flex-start; }
.stats { display: grid; gap: var(--s-6); width: 100%; }
.stat { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.stat dd { font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: 4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.stat-plus { color: var(--pink); }
.stat p { color: var(--text-muted); font-size: 0.9375rem; margin-top: 6px; }

/* ---------- Services ---------- */
.services-head { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); margin-bottom: var(--s-8); align-items: start; }
.services-head .label { justify-self: start; }
.carousel { position: relative; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(280px, 30vw, 400px);
  gap: var(--s-5); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-bottom: var(--s-2); overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.service-card {
  scroll-snap-align: start; background: var(--white); border-radius: var(--radius-lg);
  padding: 14px; display: flex; flex-direction: column; border: 1px solid var(--line);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur);
}
.service-card:hover { transform: translateY(-4px); }
.service-card--feature { background: var(--swamp); border-color: var(--swamp); }
.service-card--feature .service-body p { color: var(--deep); }
.service-card--feature .chips li { border-color: var(--line-swamp); }
.service-img { aspect-ratio: 4 / 3.4; border-radius: calc(var(--radius-lg) - 8px); overflow: hidden; background: var(--swamp-soft); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease-out); }
.service-card:hover .service-img img { transform: scale(1.04); }
.service-body { padding: 18px 8px 8px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.service-title :is(h2, h3) { font-size: clamp(2rem, 3vw, 2.5rem); }
.service-body p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.chips li { font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 6px; }
.carousel-controls { display: flex; align-items: center; gap: var(--s-5); margin-top: var(--s-6); }
.carousel-progress { flex: 1; height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.carousel-progress span { display: block; height: 100%; width: 30%; background: var(--pink); border-radius: 3px; transform-origin: left; transition: width var(--dur) var(--ease-out), margin-left var(--dur) var(--ease-out); }
.carousel-buttons { display: flex; gap: var(--s-2); }

/* ---------- Approach ---------- */
.approach-head { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s-7); align-items: start; margin-bottom: var(--s-8); }
.approach-intro { justify-self: end; max-width: 340px; }
.approach-intro p { color: var(--on-swamp-muted); font-size: 0.9375rem; }
.steps { position: relative; }
.steps-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.steps-tabs button {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3);
  background: none; border: 0; color: var(--deep); padding: var(--s-3) 0; text-align: left; min-height: 44px;
}
.step-num {
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 700; line-height: 1;
  font-size: clamp(3rem, 7vw, 6rem); color: transparent; -webkit-text-stroke: 1.5px rgba(28,32,22,0.45);
  transition: color var(--dur) var(--ease-out), -webkit-text-stroke-color var(--dur);
}
.step-name { font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; font-size: clamp(1.25rem, 2.2vw, 1.75rem); text-transform: uppercase; color: var(--on-swamp-muted); transition: color var(--dur); }
.steps-tabs button:hover .step-name { color: var(--deep); }
.steps-tabs button[aria-selected="true"] .step-num { color: var(--deep); -webkit-text-stroke-color: var(--deep); }
.steps-tabs button[aria-selected="true"] .step-name { color: var(--deep); text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.steps-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s-7); align-items: center; margin-top: var(--s-6); }
.steps-visual { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--swamp-soft); }
.steps-visual img { width: 100%; height: 100%; object-fit: cover; }
.steps-text :is(h2, h3) { font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 0.95; margin-bottom: var(--s-4); }
.steps-text p { color: var(--on-swamp-muted); max-width: 42ch; font-size: 1.0625rem; }
.steps-text.is-swapping { animation: fadeUp var(--dur) var(--ease-out); }
.steps-bar { height: 14px; background: rgba(28,32,22,0.15); margin-top: var(--s-8); border-radius: 7px; overflow: hidden; }
.steps-bar span { display: block; height: 100%; width: 25%; background: var(--pink); border-radius: 7px; transition: width var(--dur-slow) var(--ease-out); }

/* ---------- Work ---------- */
.work { color: var(--white); overflow: hidden; isolation: isolate; background: var(--pink); }
.work-bg {
  position: absolute; inset: 0; z-index: -1;
  /* Darkened toward the edges so white body copy keeps >=4.5:1 */
  background:
    radial-gradient(50% 70% at 85% 80%, rgba(110,0,28,0.5), transparent 65%),
    radial-gradient(60% 80% at 10% 90%, rgba(110,0,28,0.35), transparent 65%),
    repeating-linear-gradient(100deg, rgba(255,255,255,0) 0 40px, rgba(255,255,255,0.06) 40px 42px),
    linear-gradient(rgba(0,0,0,0.14), rgba(0,0,0,0.14)),
    var(--pink);
}
.work-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.work-text p { max-width: 38ch; margin: var(--s-5) 0 var(--s-6); font-size: 1.0625rem; }
.work-text .display-lg { color: var(--white); }
.work-figure { border-radius: var(--radius-lg); overflow: hidden; background: var(--white); padding: 10px; box-shadow: 0 30px 80px rgba(80,0,20,0.35); }
.work-figure img { border-radius: calc(var(--radius-lg) - 8px); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.work-list { margin-top: var(--s-5); border-top: 1px solid rgba(255,255,255,0.35); }
.work-list li {
  display: grid; grid-template-columns: 40px 1fr auto; gap: var(--s-4); align-items: baseline;
  padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.35);
}
.work-list strong { font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: 1.5rem; line-height: 1; }
.work-list span:last-child { font-size: 0.875rem; }

/* ---------- Clients marquee ---------- */
.clients { padding-block: var(--s-8) var(--s-7); border-bottom: 1px solid var(--line); overflow: hidden; }
.clients-head .label { margin-bottom: var(--s-6); }
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex-shrink: 0; gap: clamp(40px, 6vw, 96px); padding-right: clamp(40px, 6vw, 96px); animation: marquee 30s linear infinite; }
.marquee-track li {
  font-family: var(--font-display); font-variation-settings: "wdth" 85; font-weight: 700;
  font-size: clamp(1.75rem, 3.6vw, 3rem); white-space: nowrap; color: var(--text); display: flex; align-items: center; gap: clamp(40px, 6vw, 96px);
}
.marquee-track li::after { content: ""; width: 14px; height: 14px; border-radius: 3px; background: var(--pink); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- Reviews ---------- */
.reviews { overflow: hidden; }
.reviews-ghost {
  text-align: center; margin-bottom: -0.42em; position: relative; z-index: 0; pointer-events: none;
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase;
  font-size: clamp(6rem, 22vw, 20rem); line-height: 0.8; color: var(--pink-soft); white-space: nowrap;
}
.review-grid { position: relative; z-index: 1; }
.reviews-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: var(--s-6); }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); }
.review {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-5);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--s-6); min-height: 260px;
  box-shadow: 0 20px 50px rgba(28,32,22,0.07);
  transition: transform var(--dur) var(--ease-out);
}
.review:nth-child(odd) { transform: rotate(-1.5deg); }
.review:nth-child(even) { transform: rotate(1.5deg) translateY(16px); }
.review:hover { transform: rotate(0) translateY(-4px); }
.review blockquote { font-family: var(--font-display); font-variation-settings: "wdth" 85; font-weight: 600; font-size: 1.375rem; line-height: 1.2; }
.review-by { display: flex; align-items: center; gap: var(--s-3); }
.review-by strong { display: block; font-size: 0.9375rem; }
.review-by span { color: var(--text-muted); font-size: 0.8125rem; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--swamp); color: var(--deep) !important; display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem !important; flex-shrink: 0; }
.review:nth-child(2) .avatar, .review:nth-child(4) .avatar { background: var(--pink); color: var(--white) !important; }

/* ---------- Insights ---------- */
.section-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); margin-bottom: var(--s-7); flex-wrap: wrap; }
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.post-link { display: flex; flex-direction: column; gap: var(--s-3); text-decoration: none; height: 100%; }
.post-thumb {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center;
  margin-bottom: var(--s-2); transition: transform var(--dur) var(--ease-out);
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase; font-size: clamp(4rem, 8vw, 7rem);
}
.post-thumb--pink { background: var(--pink); color: var(--white); }
.post-thumb--pink img { width: 50%; filter: brightness(0) invert(1); }
.post-thumb--swamp { background: var(--swamp); color: var(--deep); }
.post-thumb--paper { background: var(--white); color: var(--pink); border: 1px solid var(--line); }
.post-thumb { container-type: inline-size; }
.post-thumb span { font-size: min(28cqi, calc(170cqi / var(--len, 5))); }
.post-thumb--image img { width: 100%; height: 100%; object-fit: cover; }
.post-link:hover .post-thumb { transform: translateY(-4px); }
.post-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: 0.8125rem; }
.post h3 { font-family: var(--font-display); font-variation-settings: "wdth" 85; font-weight: 700; font-size: 1.625rem; line-height: 1.1; }
.post-link:hover h3 { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.post p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-figure { margin: var(--s-6) 0; border-radius: var(--radius-lg); overflow: hidden; max-width: 360px; aspect-ratio: 1; }
.contact-figure img { width: 100%; height: 100%; object-fit: cover; }
.contact-list { display: grid; gap: var(--s-3); }
.contact-list li { display: grid; grid-template-columns: 64px 1fr; gap: var(--s-3); align-items: baseline; padding-bottom: var(--s-3); border-bottom: 1px solid var(--line); }
.contact-list .mono { color: var(--text-muted); }
.contact-list a { font-weight: 600; text-decoration: none; }
.contact-list a:hover { color: var(--pink); }

.contact-form {
  background: var(--swamp-soft); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px);
  display: grid; gap: var(--s-5); position: sticky; top: 100px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 600; font-size: 0.875rem; padding: 0; }
.field label span[aria-hidden], .field legend span { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px;
  border: 1.5px solid rgba(28,32,22,0.2); background: var(--white); font-size: 1rem;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C2016' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; cursor: pointer; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--deep); box-shadow: 0 0 0 3px rgba(232,29,78,0.35); }
.field [aria-invalid="true"] { border-color: #B3123A; background: #FFF6F8; }
.field-hint { color: var(--text-muted); font-size: 0.8125rem; }
.field-error { color: #B3123A; font-size: 0.8125rem; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.choice-chips label { position: relative; cursor: pointer; }
.choice-chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice-chips span {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid rgba(28,32,22,0.2); background: var(--white); font-weight: 500; font-size: 0.875rem;
  transition: background-color var(--dur-fast), border-color var(--dur-fast);
}
.choice-chips input:checked + span { background: var(--swamp); color: var(--deep); border-color: var(--deep); }
.choice-chips input:checked + span::before { content: "✓"; margin-right: 6px; font-weight: 700; }
.choice-chips input:focus-visible + span { outline: 3px solid var(--pink); outline-offset: 2px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn-submit { justify-self: start; cursor: pointer; }
.btn-submit[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.form-note { color: var(--text-muted); font-size: 0.8125rem; }
.form-status { font-weight: 600; padding: 14px 16px; border-radius: 10px; background: var(--white); border-left: 4px solid var(--swamp); }
.form-status.is-success { border-left-color: #1F8A4C; }
.form-status.is-error { border-left-color: #B3123A; color: #8E0E2E; }
.form-status:empty { display: none; }
.form-summary { background: #FFF0F3; border: 1.5px solid #B3123A; color: #8E0E2E; border-radius: 10px; padding: 14px 16px; font-size: 0.9375rem; }
.form-summary ul { list-style: disc; padding-left: 20px; margin-top: 6px; }
.form-summary a { font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); }
.faq .lede a { color: var(--deep); font-weight: 600; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s-4);
  padding: 22px 0; min-height: 64px; font-family: var(--font-display); font-variation-settings: "wdth" 85; font-weight: 700; font-size: 1.25rem; line-height: 1.25;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--white); border: 1px solid var(--line); position: relative; flex-shrink: 0; transition: background-color var(--dur), transform var(--dur) var(--ease-out); }
.faq-icon::before, .faq-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; background: currentColor; transform: translate(-50%, -50%); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform var(--dur) var(--ease-out); }
.faq-list details[open] .faq-icon { background: var(--pink); border-color: var(--pink); color: var(--white); }
.faq-list details[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p { color: var(--text-muted); padding: 0 56px 24px 0; max-width: 62ch; }
.faq-list summary:hover { color: var(--pink); }

/* ---------- Inner pages ---------- */
/* Fixed header is 76px tall; push the first section of every inner page below it. */
.page > :first-child { padding-top: calc(76px + clamp(48px, 7vw, 96px)); }

.explore-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-5); }
.explore-grid .service-card:has(.explore-link) { padding: 0; }
.explore-link { display: flex; flex-direction: column; height: 100%; padding: 14px; border-radius: inherit; color: inherit; text-decoration: none; }
.explore-link:hover .service-title h3 { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 4px; text-underline-offset: 6px; }

.cta-band { text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-inner .lede { margin: var(--s-4) auto var(--s-6); }

.pager { display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); margin-top: var(--s-8); color: var(--text-muted); }
.link-arrow--back:hover svg { transform: translateX(-4px); }

/* ---------- Blog post ---------- */
.article-inner { max-width: 760px; }
.article-head { margin: var(--s-6) 0 var(--s-7); }
.article-head .lede { max-width: none; font-size: 1.25rem; }
.article-byline { display: flex; align-items: center; gap: var(--s-3); margin-top: var(--s-5); }
.article-byline strong { display: block; font-size: 0.9375rem; }
.article-byline time { color: var(--text-muted); font-size: 0.8125rem; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: var(--s-7); }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.prose { font-size: 1.125rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2, .prose h3 { font-family: var(--font-display); font-variation-settings: "wdth" 85; font-weight: 800; line-height: 1.1; margin-top: 1.8em; }
.prose h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--deep); font-weight: 600; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--pink); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--pink); font-weight: 700; }
.prose blockquote { border-left: 4px solid var(--pink); padding: 0.2em 0 0.2em 1em; font-family: var(--font-display); font-variation-settings: "wdth" 85; font-size: 1.5rem; line-height: 1.3; }
.prose img { border-radius: var(--radius); }
.prose code { font-family: var(--font-mono); font-size: 0.875em; background: var(--swamp-soft); padding: 0.1em 0.35em; border-radius: 4px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--swamp); color: var(--deep); padding-top: var(--s-9); overflow: hidden; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); }
.footer-cols nav:nth-child(2) { text-align: center; }
.footer-cols nav:nth-child(3) { text-align: right; }
.footer-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-swamp-muted); margin-bottom: var(--s-4); }
.footer-cols li { border-top: 1px solid var(--line-swamp); }
.footer-cols li:last-child { border-bottom: 1px solid var(--line-swamp); }
.footer-cols a {
  display: block; padding: 10px 0; text-decoration: none;
  font-family: var(--font-display); font-variation-settings: "wdth" 75; font-weight: 800; text-transform: uppercase;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.1; transition: color var(--dur-fast);
}
.footer-cols a:hover { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.footer-wordmark { margin: var(--s-9) 0 var(--s-7); }
.footer-wordmark img { width: 80%; height: auto; margin-inline: auto; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap; padding: var(--s-5) 0 var(--s-6); border-top: 1px solid var(--line-swamp); color: var(--on-swamp-muted); font-size: 0.8125rem; }
.footer-bottom a:not(.btn-pair) { color: var(--deep); }

/* ---------- Motion ---------- */
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes heroIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

.hero-word { animation: heroIn 900ms var(--ease-out) both; }
.hero-word--right { animation-delay: 120ms; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .review-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .review:nth-child(even) { transform: rotate(1.5deg); }
}

@media (max-width: 960px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
  .explore-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .services-head, .approach-head, .work-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .approach-intro { justify-self: start; }
  .steps-panel { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-grid--teaser .post:last-child { display: none; }
  .contact-form { position: static; }
  .hero-bottom { grid-template-columns: 1fr; justify-items: start; }
  .hero-loc { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: 92svh; }
  .hero-media img { object-position: 50% 22%; }
  .hero-title { flex-direction: column; align-items: stretch; margin-top: auto; padding-top: 30vh; }
  .hero-word--right { text-align: right; }
  .hero-bottom { margin-top: var(--s-5); }
  .hero-tags .tag:last-child { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:last-child { grid-column: 1 / -1; }
  .stat dd { font-size: 3rem; }
  .steps-tabs { grid-template-columns: repeat(4, 1fr); gap: var(--s-2); }
  .step-name { font-size: 0.9375rem; }
  .review-grid, .post-grid, .explore-grid { grid-template-columns: 1fr; }
  .post-grid--teaser .post:last-child { display: block; }
  .review, .review:nth-child(odd), .review:nth-child(even) { transform: none; min-height: 0; }
  .field-row { grid-template-columns: 1fr; }
  .work-list li { grid-template-columns: 32px 1fr; }
  .work-list span:last-child { grid-column: 2; }
  .footer-cols { grid-template-columns: 1fr; gap: var(--s-6); }
  .footer-cols nav:nth-child(2), .footer-cols nav:nth-child(3) { text-align: left; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .faq-list details p { padding-right: 0; }
}
