/* ==========================================================================
   Kaspar Kuus portfolio
   Palette + type lifted from the original Webflow build:
   ivory #f3f1e0 · ink #1f1b1d · acid #d4f165 · orchid #cd51e1
   Display font: Fraunces · Body font: Syne
   ========================================================================== */

:root {
  --ivory: #f3f1e0;
  --ink: #1f1b1d;
  --acid: #d4f165;
  --orchid: #cd51e1; /* decorative gradients/blobs only, never text */
  --moss: #2f6b4f;   /* text accent */
  --line: rgba(31, 27, 29, 0.14);
  --card: #f7f5e8;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Syne", sans-serif;
  --container: 1240px;
  --radius: 20px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 116px; }

/* seamless cross-page navigation (progressive enhancement, Chromium) */
@view-transition { navigation: auto; }

/* persistent chrome shouldn't cross-fade, it stays put between pages */
.navbar { view-transition-name: navbar; }
.scroll-progress { view-transition-name: progress; }

::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fraunces display: optical sizing + a bit of "wonk" for character */
.hero-title, .hero-inner h1, .section-title, .detail-title, .footer-title,
.about-title, .stat-num, .project-meta h3, .approach-item h3, .process-steps h4,
.rich-text h5, .case-pull, .hero-badge text, .case-results strong, .approach-num {
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
}

/* keep the big statement headings confident, not thin */
.hero-title, .hero-inner h1, .section-title, .detail-title, .footer-title, .about-title {
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* height:auto keeps the natural aspect when CSS sets a width; the width/height
   attributes then only serve as the browser's aspect-ratio hint (no CLS) */
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

::selection { background: var(--acid); color: var(--ink); }

/* --- fixed backdrops ------------------------------------------------------ */

.bg-pattern {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: url("/images/bg-pattern.png") 0 0 no-repeat;
  pointer-events: none;
}

.grain {
  position: fixed;
  inset: -50%;
  z-index: 60;
  pointer-events: none;
  opacity: 0.32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)'/%3E%3C/svg%3E");
}

@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -2%); }
  80% { transform: translate(3%, 3%); }
}

/* soft glow blobs that trail the cursor (upgraded from the original site) */
.cursor-wrapper {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.cursor-blob {
  position: absolute;
  top: 0;
  left: 0;
  width: 220px;
  height: 220px;
  margin: -110px 0 0 -110px;
  border-radius: 50%;
  background: var(--acid);
  filter: blur(70px);
  opacity: 0.85;
}

.cursor-blob.two {
  width: 150px;
  height: 150px;
  margin: -40px 0 0 -130px;
  background: var(--orchid);
  opacity: 0.55;
}

/* --- layout helpers ------------------------------------------------------- */

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.section-spacing { padding: 120px 0; }

/* --- reveal animations ---------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}

.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .grain { animation: none; }
  * { scroll-behavior: auto; }
}

/* --- navbar ---------------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
  padding: 28px 0;
}

.navbar.is-scrolled {
  background: rgba(243, 241, 224, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  padding: 14px 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  position: relative;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  text-decoration: none;
  font-optical-sizing: none; /* must match .intro-logo so the intro lands pixel-perfect */
  display: inline-block;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  transition: background 0.3s ease, color 0.3s ease;
}

.nav-link:hover { background: rgba(31, 27, 29, 0.07); }

.nav-link.nav-cta {
  background: linear-gradient(115deg, var(--acid) 0 45%, var(--ink) 55% 100%);
  background-size: 240% 100%;
  background-position: 100% 0;
  color: var(--ivory);
  transition: background-position 0.55s var(--ease-out), color 0.3s ease, transform 0.3s var(--ease-out);
}

.nav-link.nav-cta:hover { background-position: 0 0; color: var(--ink); transform: translateY(-1px); }
.nav-link.nav-cta:active { transform: scale(0.94); }

/* --- hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 150px 0 40px;
  overflow: hidden;
}

/* giant ghost word drifting behind everything */
.hero-ghost {
  position: absolute;
  top: 8%;
  left: 50%;
  z-index: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: clamp(180px, 28vw, 420px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(31, 27, 29, 0.10);
  pointer-events: none;
  user-select: none;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.hero-blob.acid {
  width: 520px;
  height: 520px;
  top: -120px;
  right: -80px;
  background: radial-gradient(circle, var(--acid) 0%, rgba(212, 241, 101, 0) 70%);
  opacity: 0.95;
}

.hero-blob.orchid {
  width: 460px;
  height: 460px;
  bottom: -40px;
  left: -140px;
  background: radial-gradient(circle, var(--orchid) 0%, rgba(205, 81, 225, 0) 70%);
  opacity: 0.35;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero-kicker::before {
  content: "";
  width: 42px;
  height: 2px;
  background: var(--ink);
}

.hero-kicker .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acid);
  outline: 4px solid rgba(212, 241, 101, 0.35);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { outline-color: rgba(212, 241, 101, 0.35); }
  50% { outline-color: rgba(212, 241, 101, 0); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(56px, 8.4vw, 128px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 34px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
  /* room for descenders (p, y) inside the clip, pulled back so spacing is unchanged */
  padding-bottom: 0.14em;
  margin-bottom: -0.14em;
}

.hero-title .line > span {
  display: inline-block;
  transform: translateY(115%) rotate(2deg);
  animation: rise 1.1s var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}

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

.hero-title .accent {
  position: relative;
  display: inline-block;
  color: var(--ink);
}

.hero-title .accent::after {
  content: "";
  position: absolute;
  left: -0.06em;
  right: -0.06em;
  bottom: 0.04em;
  height: 0.32em;
  background: var(--acid);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  animation: swipe 0.9s var(--ease-out) 0.9s forwards;
}

@keyframes swipe {
  to { transform: scaleX(1); }
}

.hero-title .word-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.hero-lede {
  max-width: 560px;
  font-size: 16.5px;
  line-height: 1.7;
  color: rgba(31, 27, 29, 0.8);
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  padding: 18px 34px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  border: 2px solid var(--ink);
  transition: transform 0.35s var(--ease-out), background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease;
}

.button:hover {
  background: var(--acid);
  color: var(--ink);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -12px rgba(31, 27, 29, 0.45);
}

.button .arrow { transition: transform 0.35s var(--ease-out); }
.button:hover .arrow { transform: translateX(5px); }

.button.ghost {
  background: transparent;
  color: var(--ink);
}

.button.ghost:hover { background: var(--ink); color: var(--ivory); }

/* portrait side */
.hero-visual {
  position: relative;
  justify-self: center;
}

.hero-portrait-frame {
  position: relative;
  width: clamp(280px, 26vw, 400px);
  border-radius: 200px 200px 26px 26px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--acid) 0%, #e9f7b0 45%, var(--orchid) 130%);
  box-shadow: 0 40px 80px -30px rgba(31, 27, 29, 0.35);
}

.hero-portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(31, 27, 29, 0.12);
  pointer-events: none;
}

.hero-portrait-frame img {
  width: 100%;
  height: auto;
  transform: scale(1.04);
  filter: saturate(1.02);
}

.hero-sticker {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 16px 34px -18px rgba(31, 27, 29, 0.45);
  white-space: nowrap;
}

.hero-sticker.years {
  top: 14%;
  left: -22%;
  background: var(--ink);
  color: var(--ivory);
  animation: floaty 5.5s ease-in-out infinite;
}

.hero-sticker.craft {
  bottom: 18%;
  right: -18%;
  animation: floaty 6.5s ease-in-out 0.8s infinite;
}

.hero-sticker.brands {
  bottom: -4%;
  left: -12%;
  background: var(--acid);
  animation: floaty 7s ease-in-out 1.6s infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* rotating badge */
.hero-badge {
  position: absolute;
  top: -46px;
  right: -40px;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
}

.hero-badge svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

.hero-badge .badge-core {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--acid);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.hero-badge text {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  fill: var(--ink);
}

/* scroll cue */
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.6);
  text-decoration: none;
}

.hero-scroll .wheel {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(31, 27, 29, 0.4);
  border-radius: 14px;
  position: relative;
}

.hero-scroll .wheel::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--ink);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --- logo marquee ---------------------------------------------------------- */

.logos-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.logos-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
  margin-bottom: 22px;
}

.marquee {
  position: relative;
  overflow: hidden;
}

/* gradient veils: logos dissolve into the page background at both edges */
.marquee::before,
.marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(120px, 22vw, 380px);
  z-index: 2;
  pointer-events: none;
}

.marquee::before {
  left: 0;
  background: linear-gradient(90deg, var(--ivory) 12%, rgba(243, 241, 224, 0));
}

.marquee::after {
  right: 0;
  background: linear-gradient(270deg, var(--ivory) 12%, rgba(243, 241, 224, 0));
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(120px, 14vw, 240px);
  width: max-content;
  animation: marquee 32s linear infinite;
}

.marquee:hover .marquee-track { animation-play-state: paused; }

.marquee-track img {
  height: auto;
  max-height: 42px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: grayscale(1) contrast(0.9);
  opacity: 0.75;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

/* optical balancing: stacked marks need more height to match wordmark cap-size */
.marquee-track img[src*="umg"] { max-height: 58px; }
.marquee-track img[src*="sony"] { max-height: 66px; }
.marquee-track img[src*="katana"] { max-height: 60px; }
.marquee-track img[src*="veriff"] { max-height: 34px; }
.marquee-track img[src*="lhv"] { max-height: 48px; }
.marquee-track img[src*="lightyear"] { max-height: 54px; }

.marquee-track img:hover { filter: none; opacity: 1; }

@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* --- section headings ------------------------------------------------------ */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
}

.section-count {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
}

/* --- projects --------------------------------------------------------------- */

.project-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  align-items: start;
}

.project-list .project-image-wrap { aspect-ratio: 4 / 3; }

.project-card {
  display: block;
  text-decoration: none;
  group: none;
}

.project-image-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #fff;
}

.project-image-wrap img {
  width: 100%;
  height: 124%;
  position: relative;
  top: -12%; /* centers the overscan so parallax drift never exposes the card background */
  object-fit: cover;
  will-change: transform;
  transition: scale 0.8s var(--ease-out);
}

.project-card:hover .project-image-wrap img { scale: 1.04; }

.project-card .view-tag {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  background: var(--acid);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  transform: translateY(-8px);
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.project-card:hover .view-tag { opacity: 1; transform: none; }

.project-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 6px 0;
}

.project-meta h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.15;
}

.project-meta p {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
  white-space: nowrap;
}

/* stacked meta used on the home/projects card grids */
.project-meta.stacked {
  display: block;
  padding: 22px 6px 0;
}

.project-meta.stacked p { white-space: normal; }

.project-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
  white-space: normal;
  margin-bottom: 10px;
}

.project-meta.stacked h3 {
  font-size: clamp(22px, 1.8vw, 27px);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.project-card:hover .project-meta.stacked h3 { color: var(--moss); }

.project-desc {
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  color: rgba(31, 27, 29, 0.68);
}

/* impact chips: headline results per project */
.impact-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-top: 14px;
}

.impact-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(31, 27, 29, 0.75);
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  white-space: nowrap;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.impact-chip strong {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 11.5px;
  color: var(--moss);
}

/* two-column grid used on the projects page */
.project-grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
}

.project-grid-split .project-card:nth-child(odd) { transform: translateY(0); }
.project-grid-split .project-card:nth-child(even) { margin-top: 70px; }

/* --- testimonials ------------------------------------------------------------ */

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 26px;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card) url("/images/bg-pattern.png") 50% 50% no-repeat;
  padding: 34px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease;
}

/* invisible hit-buffer: keeps :hover latched while the card lifts/straightens,
   so the cursor never falls off the moving stroke and the hover stops shaking */
.testimonial-item::after {
  content: "";
  position: absolute;
  inset: -16px;
  z-index: -1;
}

.testimonial-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -30px rgba(31, 27, 29, 0.4);
}

.testimonial-item > p { font-size: 15.5px; color: rgba(31, 27, 29, 0.85); }

.testimonial-item > p::before {
  content: "“";
  display: block;
  font-family: var(--font-display);
  font-size: 54px;
  line-height: 0.6;
  color: var(--moss);
  margin-bottom: 14px;
}

.testimonial-info {
  display: flex;
  align-items: center;
  gap: 14px;
  font-style: normal;
}

.testimonial-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 12px rgba(31, 27, 29, 0.18);
}

.testimonial-name {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.testimonial-role {
  display: block;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(31, 27, 29, 0.55);
}

.testimonial-logo {
  height: 20px;
  width: auto;
  max-width: 92px;
  object-fit: contain;
  margin-left: auto;
  filter: grayscale(1);
  opacity: 0.7;
}

/* --- footer ------------------------------------------------------------------ */

.footer {
  position: relative;
  padding: 140px 0 120px;
  text-align: center;
  overflow: hidden;
}

.footer-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(64px, 12vw, 170px);
  line-height: 1;
  margin-bottom: 40px;
}

.footer-title a { text-decoration: none; transition: color 0.3s ease; }
.footer-title a:hover { color: var(--moss); }
.footer-title .text-primary { color: var(--acid); -webkit-text-stroke: 1px var(--ink); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 34px;
  flex-wrap: wrap;
}

.footer-link {
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}

.footer-link:hover::after, .footer-link.w--current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.footer-note {
  margin-top: 70px;
  font-size: 13px;
  color: rgba(31, 27, 29, 0.5);
}

/* --- inner page hero ----------------------------------------------------------- */

.hero-inner {
  padding: 200px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(52px, 8vw, 110px);
  line-height: 1;
}

.hero-inner .hero-ghost { top: -10%; font-size: clamp(140px, 22vw, 320px); }

.hero-inner .hero-kicker { justify-content: center; }
.hero-inner .hero-kicker::before { display: none; }

.hero-inner-lede {
  max-width: 34ch;
  margin: 26px auto 0;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(31, 27, 29, 0.62);
}

/* --- project detail -------------------------------------------------------------- */

.detail-section { padding: 170px 0 60px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
}

.detail-gallery {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.detail-gallery a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: zoom-in;
  background: #fff;
}

.detail-gallery img {
  width: 100%;
  transition: transform 0.7s var(--ease-out);
}

.detail-gallery a:hover img { transform: scale(1.025); }

.detail-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(38px, 4.6vw, 60px);
  line-height: 1.05;
  margin-bottom: 22px;
}

/* outcome-first standfirst under the case-study title */
.case-lede {
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.5;
  font-weight: 500;
  color: var(--ink);
  max-width: 52ch;
  margin-bottom: 34px;
}
.case-lede strong { color: var(--moss); font-weight: 700; }

/* highlighted pull-quote inside the case-study prose */
.case-pull {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--ink);
  margin: 1.6em 0;
  padding-left: 24px;
  border-left: 3px solid var(--acid);
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
  margin-bottom: 40px;
}

.detail-info h6 {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 6px;
}

.detail-info p { font-weight: 700; font-size: 15px; }

/* outcome-first results strip on case studies */
.case-results {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.case-results li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform 0.4s var(--ease-out), border-color 0.4s ease;
}

.case-results li:hover { transform: translateY(-4px); border-color: rgba(31, 27, 29, 0.28); }

.case-results strong {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 34px;
  line-height: 1;
  color: var(--moss);
}

.case-results span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.6);
}

@media (max-width: 640px) {
  .case-results { grid-template-columns: 1fr; gap: 10px; }
  .case-results li { flex-direction: row; align-items: baseline; gap: 10px; }
}

.rich-text { font-size: 16px; color: rgba(31, 27, 29, 0.88); }
.rich-text p { margin-bottom: 1.2em; }
.rich-text h5 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 27px;
  margin: 1.8em 0 0.7em;
}
.rich-text h6 { font-size: 17px; font-weight: 700; margin: 1.5em 0 0.6em; }
.rich-text ul { margin: 0 0 1.2em 1.3em; }
.rich-text li { margin-bottom: 0.5em; }
.rich-text ul ul { margin-top: 0.5em; }
.rich-text a { color: var(--moss); font-weight: 600; }
.rich-text strong { font-weight: 700; color: var(--ink); }

/* other showcase */
.showcase-section { padding: 60px 0 120px; }

.showcase-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

/* --- lightbox ---------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 4vmin;
  background: rgba(31, 27, 29, 0.92);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.is-open { opacity: 1; pointer-events: auto; }

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  border-radius: 12px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.5);
  transform: scale(0.94);
  transition: transform 0.35s var(--ease-out);
}

.lightbox.is-open img { transform: scale(1); }

.lightbox-close {
  position: absolute;
  top: 22px;
  right: 26px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  font-family: var(--font-body);
}

/* --- responsive --------------------------------------------------------------------- */

@media (max-width: 991px) {
  .hero { padding-top: 130px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  /* stacked layout: centre the portrait and let it use the width it has */
  .hero-visual { justify-self: center; margin-left: 0; }
  .hero-portrait-frame { width: min(52vw, 430px); }
  .hero-sticker.years { left: -22%; top: 12%; }
  .hero-sticker.craft { right: -18%; bottom: 22%; }
  .hero-sticker.brands { left: -16%; bottom: -2%; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-gallery { position: static; }
  .project-list { grid-template-columns: 1fr; gap: 56px; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .project-grid-split { grid-template-columns: 1fr; }
  .project-grid-split .project-card:nth-child(even) { margin-top: 0; }
  .section-spacing { padding: 90px 0; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand { font-size: 20px; }
  .nav-link { padding: 8px 13px; font-size: 14px; }
  .hero { padding-top: 110px; }
  .hero-visual { margin-left: 0; width: 100%; }
  .hero-portrait-frame { width: min(320px, 84%); }
  .hero-sticker.years { left: auto; right: -4px; top: 6%; }
  .hero-sticker.craft { right: -4px; bottom: 8%; }
  .hero-sticker.brands { left: -4px; }
  .hero-badge { display: none; }
  .hero-scroll { display: none; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .project-meta { flex-direction: column; gap: 4px; }
  .marquee-track { gap: 54px; }
  .marquee-track img { height: 26px; }
  .footer { padding-top: 100px; }
  .detail-section { padding-top: 130px; }
  .hero-inner { padding-top: 160px; }
}

/* ==========================================================================
   Flair layer: micro-interactions and editorial details
   ========================================================================== */

/* custom scrollbar in brand ink */
::-webkit-scrollbar { width: 11px; }
::-webkit-scrollbar-track { background: var(--ivory); }
::-webkit-scrollbar-thumb { background: var(--ink); border-radius: 8px; border: 3px solid var(--ivory); }


/* project cards: lift, tilt and richer image on hover */
.project-card {
  transition: transform 0.55s var(--ease-out);
}

.project-list .project-card:hover,
.project-grid-split .project-card:hover,
.showcase-grid .project-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
}

.project-card:hover .project-image-wrap img { filter: saturate(1.15) contrast(1.03); }

.project-image-wrap img { transition: scale 0.8s var(--ease-out), filter 0.6s ease; }

.project-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(31, 27, 29, 0.08);
  pointer-events: none;
}

/* testimonials: casual editorial scatter that straightens on hover */
.testimonial-grid .testimonial-item:nth-child(odd) { transform: rotate(-0.7deg); }
.testimonial-grid .testimonial-item:nth-child(even) { transform: rotate(0.6deg); }
.testimonial-grid .testimonial-item:hover { transform: rotate(0) translateY(-6px); }

/* buttons press down like real objects */
.button:active { transform: translateY(0) scale(0.97); }

/* footer title: acid underline sweeps in on hover */
.footer-title a {
  background-image: linear-gradient(var(--acid), var(--acid));
  background-repeat: no-repeat;
  background-size: 0% 82%;
  background-position: 0 58%;
  border-radius: 6px;
  transition: background-size 0.55s var(--ease-out), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.3s ease;
}

.footer-title a:hover { background-size: 100% 82%; color: var(--ink); transform: scale(1.03) rotate(-0.7deg); }

/* kerning off on both so the intro's split wordmark keeps exactly the width
   the landing math measures against the nav brand */
.brand, .intro-logo { font-kerning: none; }

/* nav logo hover: the intro's selection frame, corner handles included.
   ::before draws the hairline box, ::after paints the four handles as
   layered gradients (ivory core over ink square) centred on its corners. */
.brand::before {
  content: "";
  position: absolute;
  inset: -8px -14px;
  border: 1.5px solid rgba(31, 27, 29, 0.78);
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.brand::after {
  content: "";
  position: absolute;
  inset: -11.5px -17.5px;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.25s ease, transform 0.3s var(--ease-out);
  pointer-events: none;
  background-image:
    linear-gradient(var(--ivory), var(--ivory)),
    linear-gradient(var(--ivory), var(--ivory)),
    linear-gradient(var(--ivory), var(--ivory)),
    linear-gradient(var(--ivory), var(--ivory)),
    linear-gradient(rgba(31, 27, 29, 0.78), rgba(31, 27, 29, 0.78)),
    linear-gradient(rgba(31, 27, 29, 0.78), rgba(31, 27, 29, 0.78)),
    linear-gradient(rgba(31, 27, 29, 0.78), rgba(31, 27, 29, 0.78)),
    linear-gradient(rgba(31, 27, 29, 0.78), rgba(31, 27, 29, 0.78));
  background-position:
    left 1.5px top 1.5px, right 1.5px top 1.5px,
    left 1.5px bottom 1.5px, right 1.5px bottom 1.5px,
    left top, right top, left bottom, right bottom;
  background-size: 4px 4px, 4px 4px, 4px 4px, 4px 4px, 7px 7px, 7px 7px, 7px 7px, 7px 7px;
  background-repeat: no-repeat;
}

.brand:hover::before,
.brand:hover::after { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  .brand::before, .brand::after { transition: opacity 0.25s ease; transform: none; }
}

/* --- joyful micro-interactions --------------------------------------------- */

/* impact chips pop and flash acid when hovered */
.impact-chip { transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease; }
.impact-chip:hover {
  transform: translateY(-3px) rotate(-1.5deg) scale(1.06);
  background: var(--acid);
  border-color: var(--ink);
}

/* hero stickers wiggle happily on hover */
@keyframes wiggle {
  0%, 100% { rotate: 0deg; }
  25% { rotate: -4deg; }
  75% { rotate: 4deg; }
}
.hero-sticker:hover { animation: wiggle 0.45s ease-in-out 2; cursor: default; }

/* portrait tips its head when you hover */
.hero-portrait-frame { transition: transform 0.7s var(--ease-out); }
.hero-visual:hover .hero-portrait-frame { transform: rotate(1.6deg) scale(1.015); }

/* badge arrow bobs, inviting the scroll */
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.badge-core { animation: bob 2s ease-in-out infinite; }

/* view-case tag: arrow keeps nudging while hovered */
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(4px); } }
.project-card:hover .view-tag { animation: nudge 1.1s ease-in-out 0.4s infinite; }

/* testimonial avatars pop out to greet you */
.testimonial-avatar { transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease; }
.testimonial-item:hover .testimonial-avatar { transform: scale(1.18) rotate(-5deg); box-shadow: 0 8px 20px rgba(31, 27, 29, 0.28); }

/* company logos wake up in colour when their card is hovered */
.testimonial-logo { transition: filter 0.4s ease, opacity 0.4s ease; }
.testimonial-item:hover .testimonial-logo { filter: none; opacity: 1; }

/* footer links do a playful italic lean */
.footer-link { transition: color 0.3s ease, transform 0.35s var(--ease-out); }
.footer-link:hover { transform: skewX(-6deg) translateY(-2px); }

/* marquee logos lift as they wake up */
.marquee-track img { transition: filter 0.3s ease, opacity 0.3s ease, transform 0.4s var(--ease-out); }
.marquee-track img:hover { transform: translateY(-5px); }

@media (prefers-reduced-motion: reduce) {
  .badge-core, .hero-sticker:hover, .project-card:hover .view-tag { animation: none; }
}

/* ==========================================================================
   Signature layer: scroll progress, live status, stats, work index, approach
   ========================================================================== */

/* thin scroll-progress bar pinned to the very top */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--acid), var(--moss));
  z-index: 70;
  pointer-events: none;
}

/* --- hero status line + live clock ---------------------------------------- */
.hero-lede-sub { color: rgba(31, 27, 29, 0.6); font-size: 15px; margin-bottom: 30px; }
.hero-lede em { font-style: italic; color: var(--ink); }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(31, 27, 29, 0.62);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #37b26b;
  box-shadow: 0 0 0 0 rgba(55, 178, 107, 0.5);
  animation: livepulse 2.4s ease-out infinite;
  flex: none;
}

@keyframes livepulse {
  0% { box-shadow: 0 0 0 0 rgba(55, 178, 107, 0.5); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(55, 178, 107, 0); }
}

.status-sep { opacity: 0.45; }
.status-clock { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

/* --- stats band ----------------------------------------------------------- */
.stats-band {
  border-bottom: 1px solid var(--line);
  padding: 64px 0;
}

.stats-row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat { display: flex; flex-direction: column; gap: 6px; }

.stat + .stat { position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.stat-num {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(46px, 5.2vw, 78px);
  line-height: 0.95;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
}

/* --- editorial work index (signature interaction) ------------------------- */
.work-index { border-top: 1px solid var(--line); }

.work-row {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto 44px;
  align-items: center;
  gap: 28px;
  padding: 34px 8px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  transition: padding 0.5s var(--ease-out), background 0.5s ease, color 0.4s ease;
}

.work-idx {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(31, 27, 29, 0.4);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s ease;
}

.work-body { min-width: 0; }

.work-title {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 46px);
  line-height: 1.02;
  transition: transform 0.5s var(--ease-out), color 0.4s ease;
}

.work-sub {
  display: block;
  max-width: 46ch;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(31, 27, 29, 0.6);
  transition: opacity 0.4s ease;
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}

.work-tags {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
}

.work-result {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--moss);
  background: rgba(47, 107, 79, 0.08);
  border: 1px solid rgba(47, 107, 79, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  transition: background 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

.work-arrow {
  justify-self: end;
  font-size: 26px;
  color: rgba(31, 27, 29, 0.35);
  transition: transform 0.5s var(--ease-out), color 0.4s ease;
}

/* hover: the active row leans in, its neighbours fade back */
.work-index:hover .work-row { opacity: 0.42; transition: opacity 0.4s ease; }
.work-index:hover .work-row:hover { opacity: 1; }

.work-row:hover {
  padding-left: 22px;
  background: linear-gradient(90deg, rgba(212, 241, 101, 0.16), rgba(212, 241, 101, 0));
}

.work-row:hover .work-idx { color: var(--moss); }
.work-row:hover .work-title { transform: translateX(6px); color: var(--moss); }
.work-row:hover .work-arrow { transform: translate(6px, 0) rotate(-45deg); color: var(--ink); }
.work-row:hover .work-result { background: var(--acid); color: var(--ink); border-color: var(--ink); }

/* floating thumbnail that tracks the cursor over the work index */
.work-preview {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(31, 27, 29, 0.5);
  transform: translate(-50%, -50%) scale(0.82) rotate(-4deg);
  opacity: 0;
  pointer-events: none;
  z-index: 45;
  transition: opacity 0.4s ease, transform 0.5s var(--ease-out);
}

.work-preview.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-4deg); }
.work-preview img { width: 100%; height: 100%; object-fit: cover; }

/* --- about ------------------------------------------------------------------ */
.about-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.01em;
  max-width: 15ch;
  margin-bottom: 30px;
}

.about-bio p {
  font-size: 17px;
  line-height: 1.72;
  color: rgba(31, 27, 29, 0.78);
  max-width: 54ch;
}
.about-bio p + p { margin-top: 1.1em; }

.about-signature {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--acid);
  background: rgba(212, 241, 101, 0.14);
  border-radius: 0 12px 12px 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: rgba(31, 27, 29, 0.82);
}

.about-panel { display: flex; flex-direction: column; gap: 22px; }

.about-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 26px 28px 30px;
}

.about-block h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 18px;
}

.about-caps { list-style: none; display: flex; flex-direction: column; gap: 11px; }

.about-caps li {
  position: relative;
  padding-left: 24px;
  font-size: 15.5px;
  font-weight: 600;
}

.about-caps li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--moss);
  font-weight: 700;
}

.about-facts { display: flex; flex-direction: column; gap: 0; }

.about-facts > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.about-facts > div:last-child { border-bottom: none; padding-bottom: 0; }
.about-facts > div:first-child { padding-top: 0; }

.about-facts dt {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
}

.about-facts dd { font-size: 15px; font-weight: 700; text-align: right; }

@media (max-width: 991px) {
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* --- approach --------------------------------------------------------------- */
.approach-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.approach-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px 32px 38px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.4s ease;
}

.approach-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -34px rgba(31, 27, 29, 0.45);
  border-color: rgba(31, 27, 29, 0.25);
}

.approach-num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 30px;
  color: var(--moss);
  margin-bottom: 18px;
}

.approach-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 25px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.approach-item p { font-size: 15px; line-height: 1.6; color: rgba(31, 27, 29, 0.72); }

/* --- approach photo band + process strip ------------------------------------ */
.approach-photo {
  margin-bottom: 56px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  height: clamp(200px, 26vw, 300px);
}

.approach-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  display: block;
}

.approach-photo figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px 26px 20px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.6vw, 21px);
  color: var(--ivory);
  background: linear-gradient(to top, rgba(31, 27, 29, 0.72), rgba(31, 27, 29, 0));
}

/* generous pauses: cards, process strip and the next section each get room */
.approach-section { padding-bottom: clamp(150px, 17vw, 210px); }

.process { margin-top: clamp(96px, 12vw, 150px); }

.process-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
  margin-bottom: clamp(34px, 4.5vw, 48px);
}

.process-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  counter-reset: none;
}

.process-steps li { position: relative; padding-top: 22px; }

.process-steps li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 3px;
  background: var(--acid);
}

.process-num {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--moss);
  font-variant-numeric: tabular-nums;
  margin-bottom: 12px;
}

.process-steps h4 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 23px;
  line-height: 1.1;
  margin-bottom: 8px;
}

.process-steps p { font-size: 14.5px; line-height: 1.55; color: rgba(31, 27, 29, 0.68); }

@media (max-width: 991px) {
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; gap: 26px; }
}

/* project card gallery cycling crossfade */
[data-gallery] .project-image-wrap img {
  transition: scale 0.8s var(--ease-out), filter 0.6s ease, opacity 0.22s ease;
}

/* --- pointer tilt on cards -------------------------------------------------- */
.about-block, .approach-item {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.16s ease-out, box-shadow 0.5s ease, border-color 0.4s ease;
}

/* --- section titles wipe up into view -------------------------------------- */
.section-title { clip-path: inset(0 0 108% 0); transition: clip-path 0.95s var(--ease-out); }
.section-head.is-visible .section-title { clip-path: inset(0 0 -14% 0); }

/* --- richer footer ---------------------------------------------------------- */
.footer-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(31, 27, 29, 0.6);
  margin-bottom: 26px;
}
.footer-eyebrow [data-clock] { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--ink); }

.footer-say {
  max-width: 30ch;
  margin: 0 auto 40px;
  font-size: 17px;
  line-height: 1.55;
  color: rgba(31, 27, 29, 0.7);
}

/* --- magnetic buttons ------------------------------------------------------- */
[data-magnetic] { will-change: transform; }

@media (max-width: 991px) {
  .stats-row { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .approach-grid { grid-template-columns: 1fr; gap: 18px; }
  .work-sub { display: none; }
  .work-row { grid-template-columns: 40px minmax(0, 1fr) 32px; gap: 18px; }
  .work-meta { display: none; }
}

@media (max-width: 640px) {
  .stats-band { padding: 44px 0; }
  .stats-row { grid-template-columns: 1fr; gap: 26px; text-align: left; }
  .stat + .stat::before { display: none; }
  .work-preview { display: none; }
  .work-row { padding: 24px 4px; grid-template-columns: 34px minmax(0, 1fr) 26px; gap: 14px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 40px; }
  .section-count { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot { animation: none; }
  .work-preview { display: none; }
  .section-title { clip-path: none !important; transition: none; }
  .intro { display: none; }
}

/* --- intro: the name is typed with a live caret, then the pointer selects it
   and drags it pixel-perfect onto the nav ---------------------------------- */
.intro {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* the veil is a pseudo so it can fade while the logo stays fully opaque */
.intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ivory);
}
.intro.play::before { animation: introVeil 4s linear forwards; }

/* padded wrapper: keeps the logo box clear of the viewport edges */
.intro-bloom {
  position: relative;
  display: inline-block;
  padding: 100px 120px;
  transform-origin: center center;
  will-change: transform;
}

.intro-logo {
  position: relative;
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 9vw, 120px);
  letter-spacing: -0.02em;
  color: var(--ink);
  white-space: nowrap;
  line-height: 1;
  font-optical-sizing: none;
  will-change: transform;
}

/* typewriter: JS splits the wordmark into .intro-ch spans (metrics unchanged,
   font-kerning is none) and reveals them one by one behind a live caret */
.intro-ch { visibility: hidden; }
.intro-ch.is-on { visibility: visible; }

.intro-caret {
  position: absolute;
  left: 0;
  top: 0.06em;
  width: 0.055em;
  height: 0.86em;
  background: var(--ink);
  animation: introCaretBlink 1.06s steps(1) infinite;
}

/* solid while typing, gone once the pointer selects the word */
.intro-logo.is-typing .intro-caret { animation: none; opacity: 1; }
.intro-logo.is-typed .intro-caret { animation: none; opacity: 0; transition: opacity 0.15s ease; }

@keyframes introCaretBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* the drag travels on a curve: X and Y are animated on nested elements with
   different easings (bloom carries X, the logo inside it carries Y + scale),
   so the path sags below the straight line like a real hand would drag it.
   The cursor uses the SAME two easings on its own wrap/inner pair, keeping
   it glued to the word's centre along the whole arc. */
.intro.play .intro-bloom {
  animation: introFlyX 1.2s cubic-bezier(0.55, 0.08, 0.3, 1) 3.15s forwards;
}

.intro.play .intro-logo {
  animation: introFlyY 1.2s cubic-bezier(0.7, 0.02, 0.32, 1) 3.15s forwards;
}

@keyframes introFlyX {
  to { transform: translateX(var(--endX, 0)); }
}

/* Y + scale + a lift shadow that appears on pickup and settles on landing */
@keyframes introFlyY {
  0%   { transform: translateY(0) scale(1); filter: none; }
  16%  { filter: drop-shadow(0 16px 24px rgba(31, 27, 29, 0.26)); }
  84%  { filter: drop-shadow(0 10px 18px rgba(31, 27, 29, 0.2)); }
  100% { transform: translateY(var(--endY, 0)) scale(var(--endS, 0.2)); filter: none; }
}

@keyframes introVeil {
  0%, 74% { opacity: 1; }
  100% { opacity: 0; }
}

/* --- intro: design-tool layer (cursor, selection, guides) -------------------
   The wordmark blooms, then a pointer glides in and "selects" it like a frame
   in a design file: selection box + handles, a real measured W × H chip, and
   two smart guides proving it sits dead centre. Fades before the fly. */
.intro-ui {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

/* the selection dissolves the moment the cursor grabs the word; the cursor
   itself survives and performs the drag */

/* ghost copy of the wordmark: gives the frame the exact box of the logo */
.intro-frame { position: relative; }

.intro-ghost {
  display: inline-block;
  visibility: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(46px, 9vw, 120px);
  letter-spacing: -0.02em;
  white-space: nowrap;
  line-height: 1;
  font-optical-sizing: none;
  font-kerning: none;
}

/* selection box + corner handles */
.intro-select {
  position: absolute;
  inset: -16px -26px;
  border: 1.5px solid rgba(31, 27, 29, 0.78);
  opacity: 0;
  transform: scale(1.04);
}

.intro.play .intro-select {
  animation: introSelectPop 0.3s var(--ease-out) 1.6s forwards,
             introUiOut 0.15s ease 3s forwards;
}

.intro-select i {
  position: absolute;
  width: 9px;
  height: 9px;
  background: var(--ivory);
  border: 1.5px solid rgba(31, 27, 29, 0.78);
}
.intro-select i:nth-child(1) { top: -5.5px; left: -5.5px; }
.intro-select i:nth-child(2) { top: -5.5px; right: -5.5px; }
.intro-select i:nth-child(3) { bottom: -5.5px; left: -5.5px; }
.intro-select i:nth-child(4) { bottom: -5.5px; right: -5.5px; }

/* measured dimensions chip, filled by JS with the real logo box */
.intro-dims {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translate(-50%, 6px);
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--acid);
  border: 1px solid rgba(31, 27, 29, 0.4);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  white-space: nowrap;
  opacity: 0;
}

.intro.play .intro-dims { animation: introDimsIn 0.35s var(--ease-out) 1.75s forwards; }

/* the pointer: glides in from the corner, clicks, settles */
.intro-cursor-wrap {
  position: absolute;
  right: -34px;
  bottom: -28px;
  opacity: 0;
  will-change: transform;
}

/* the cursor's journey: arrive and click (0.55s), slide onto the word (2.7s),
   dip and swap to the grabbing hand (2.95s), drag along the same curved
   split-axis path as the word (X on the wrap, Y on the inner, 3.15s), then
   release: un-dip, swap back to the arrow, fade (4.4s) */
.intro.play .intro-cursor-wrap {
  animation: introCursor 1s cubic-bezier(0.22, 1, 0.36, 1) 0.85s both,
             introCursorGrab 0.35s var(--ease-out) 2.7s forwards,
             introCursorDragX 1.2s cubic-bezier(0.55, 0.08, 0.3, 1) 3.15s forwards,
             introCursorFade 0.45s ease 4.45s forwards;
}

.intro-cursor-inner {
  display: block;
  position: relative;
  transform-origin: 6px 4px;
}

.intro.play .intro-cursor-inner {
  animation: introCursorDip 0.18s ease 2.95s forwards,
             introCursorDragY 1.2s cubic-bezier(0.7, 0.02, 0.32, 1) 3.15s forwards,
             introCursorLift 0.3s var(--ease-out) 4.4s forwards;
}

/* pointer swaps to a grabbing hand while dragging, back to the arrow on release */
.intro.play .intro-cursor {
  animation: introUiOut 0.12s ease 2.95s forwards,
             introShow 0.15s ease 4.4s forwards;
}

.intro.play .intro-cursor-hand {
  animation: introShow 0.12s ease 2.95s forwards,
             introUiOut 0.15s ease 4.4s forwards;
}

@keyframes introCursorGrab {
  from { transform: translate(0, 0); }
  to   { transform: translate(var(--grabX, 0px), var(--grabY, 0px)); }
}

@keyframes introCursorDragX {
  from { transform: translate(var(--grabX, 0px), var(--grabY, 0px)); }
  to   { transform: translate(calc(var(--grabX, 0px) + var(--endX, 0px)), var(--grabY, 0px)); }
}

@keyframes introCursorDip { to { transform: scale(0.88); } }

@keyframes introCursorDragY {
  from { transform: translateY(0) scale(0.88); }
  to   { transform: translateY(var(--endY, 0px)) scale(0.88); }
}

@keyframes introCursorLift {
  from { transform: translateY(var(--endY, 0px)) scale(0.88); }
  to   { transform: translateY(var(--endY, 0px)) scale(1); }
}

@keyframes introCursorFade { to { opacity: 0; } }

@keyframes introShow { to { opacity: 1; } }

.intro-cursor {
  display: block;
  width: 26px;
  height: 26px;
  fill: var(--ink);
  stroke: var(--ivory);
  stroke-width: 1.4;
}

/* the grabbing hand, centred on the arrow's tip so the swap doesn't jump */
.intro-cursor-hand {
  position: absolute;
  left: -7px;
  top: -9px;
  width: 27px;
  height: 27px;
  fill: var(--ink);
  stroke: var(--ivory);
  stroke-width: 1.4;
  stroke-linejoin: round;
  opacity: 0;
}

.intro-cursor-tag {
  position: absolute;
  top: 22px;
  left: 19px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--acid);
  border: 1px solid rgba(31, 27, 29, 0.4);
  color: var(--ink);
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

/* smart guides: the centring cross, a flash of orchid */
.intro-guide {
  position: absolute;
  background: var(--orchid);
  opacity: 0;
}
.intro-guide.gv { left: 50%; top: 0; width: 1px; height: 100%; }
.intro-guide.gh { top: 50%; left: 0; height: 1px; width: 100%; }
.intro.play .intro-guide { animation: introGuideFlash 1.1s ease 1.6s forwards; }

@keyframes introCursor {
  0%   { transform: translate(46vw, 38vh); opacity: 0; }
  10%  { opacity: 1; }
  58%  { transform: translate(-7px, -5px); }
  70%  { transform: translate(0, 0) scale(1); }
  76%  { transform: translate(1px, 1px) scale(0.88); }
  86%  { transform: translate(0, 0) scale(1); }
  100% { transform: translate(0, 0); opacity: 1; }
}

@keyframes introSelectPop {
  from { opacity: 0; transform: scale(1.04); }
  to   { opacity: 1; transform: scale(1); }
}

@keyframes introDimsIn {
  from { opacity: 0; transform: translate(-50%, 6px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes introGuideFlash {
  0%   { opacity: 0; }
  30%  { opacity: 0.55; }
  100% { opacity: 0; }
}

@keyframes introUiOut { to { opacity: 0; } }

/* while the intro plays: hide the nav wordmark and hold the hero type reveal */
body.has-intro .navbar .brand { opacity: 0; }
body.intro-done .navbar .brand { opacity: 1; }

body.has-intro .hero-title .line > span,
body.has-intro .hero-title .accent::after { animation-play-state: paused; }
body.intro-done .hero-title .line > span,
body.intro-done .hero-title .accent::after { animation-play-state: running; }

/* ==========================================================================
   Centered case-study layout (raggededge-style editorial flow)
   ========================================================================== */

.case-hero {
  padding: 190px 0 20px;
  text-align: center;
}

.case-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
  margin-bottom: 22px;
}
.case-eyebrow::before, .case-eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(31, 27, 29, 0.3);
}

.case-hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  max-width: 16ch;
  margin: 0 auto;
}

.case-hero .case-lede {
  margin: 28px auto 0;
  text-align: center;
}

/* centered meta strip */
.case-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 54px;
  max-width: 900px;
  margin: 44px auto 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.case-meta div { text-align: center; }
.case-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 5px;
}
.case-meta dd { font-weight: 700; font-size: 15px; }

.case-hero .case-results {
  max-width: 900px;
  margin: 26px auto 0;
}

/* narrative sections: centered heading, narrow reading column */
.case-section { padding: 84px 0 0; }

.case-kicker {
  display: block;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 14px;
}

.case-section h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.08;
  text-align: center;
  max-width: 22ch;
  margin: 0 auto 26px;
}

.case-copy {
  max-width: 640px;
  margin: 0 auto;
  font-size: 16.5px;
  line-height: 1.75;
  color: rgba(31, 27, 29, 0.85);
}
.case-copy p + p { margin-top: 1.15em; }
.case-copy h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 23px;
  margin: 1.7em 0 0.6em;
}
.case-copy ul { margin: 1em 0 0 1.25em; }
.case-copy li { margin-bottom: 0.55em; }
.case-copy ul ul { margin-top: 0.55em; }
.case-copy a { color: var(--moss); font-weight: 600; }
.case-copy strong { font-weight: 700; color: var(--ink); }

/* large centered imagery between sections */
.case-media {
  width: min(1080px, 100% - 48px);
  margin: 72px auto 0;
}
.case-media a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  box-shadow: 0 30px 70px -40px rgba(31, 27, 29, 0.35);
}
.case-media img { width: 100%; display: block; transition: transform 0.7s var(--ease-out); }
.case-media a:hover img { transform: scale(1.02); }
.case-media figcaption {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(31, 27, 29, 0.5);
  margin-top: 14px;
}

/* big centered quote moment */
.case-quote {
  max-width: 800px;
  margin: 96px auto 0;
  padding: 0 24px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.case-quote em {
  font-style: normal;
  background-image: linear-gradient(rgba(212, 241, 101, 0.85), rgba(212, 241, 101, 0.85));
  background-repeat: no-repeat;
  background-size: 100% 45%;
  background-position: 0 78%;
}

.case-end { padding-bottom: 40px; }

@media (max-width: 640px) {
  .case-hero { padding-top: 150px; }
  .case-meta { gap: 16px 30px; }
  .case-section { padding-top: 60px; }
  .case-media { margin-top: 48px; }
  .case-quote { margin-top: 64px; }
}

/* --- granola-style case scroll: images unclip open, media drifts ------------ */

/* media figures: no fade/rise; instead the frame unclips as it enters */
.case-media.reveal { opacity: 1; transform: none; transition: none; }

.case-media.reveal a {
  clip-path: inset(10% 6% 10% 6% round var(--radius));
  transform: scale(0.985);
  transition: clip-path 1.15s var(--ease-out), transform 1.15s var(--ease-out);
}

.case-media.reveal.is-visible a {
  clip-path: inset(0 0 0 0 round var(--radius));
  transform: none;
}

/* the image drifts slowly inside its frame while scrolling (JS parallax);
   permanent slight over-zoom so the drift never exposes the frame edges */
.case-media img[data-parallax] {
  scale: 1.1;
  transition: none;
  will-change: transform;
}

.case-media figcaption.reveal { transition-delay: 0.25s; }

@media (prefers-reduced-motion: reduce) {
  .case-media.reveal a { clip-path: none; transform: none; transition: none; }
  .case-media img[data-parallax] { scale: 1; }
}

/* --- conversion layer -------------------------------------------------------- */

/* reassurance under the hero CTAs */
.hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(31, 27, 29, 0.55);
}

/* end-of-case CTA band: the ask at peak interest */
.case-cta {
  margin-top: 100px;
  padding: 84px 0;
  background: var(--ink);
  text-align: center;
}

.case-cta-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--acid);
  margin-bottom: 16px;
}

.case-cta h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.06;
  color: var(--ivory);
  max-width: 18ch;
  margin: 0 auto 18px;
}

.case-cta-sub {
  max-width: 46ch;
  margin: 0 auto 34px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(243, 241, 224, 0.75);
}

.case-cta-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.case-cta .button { background: var(--acid); color: var(--ink); border-color: var(--acid); }
.case-cta .button:hover { background: var(--ivory); border-color: var(--ivory); }
.case-cta .button.ghost { background: transparent; color: var(--ivory); border-color: rgba(243, 241, 224, 0.5); }
.case-cta .button.ghost:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }

.case-cta-note {
  margin-top: 20px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(243, 241, 224, 0.55);
}

/* visible, copyable email in the footer */
.footer-email {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 40px;
  padding: 5px 5px 5px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
}

.footer-email-addr {
  padding-right: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: var(--ivory);
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.footer-copy:hover { background: var(--acid); color: var(--ink); transform: scale(1.04); }
.footer-copy:active { transform: scale(0.96); }
.footer-copy.is-copied { background: var(--moss); color: var(--ivory); }

@media (max-width: 640px) {
  .case-cta { margin-top: 64px; padding: 60px 0; }
  .footer-email-addr { padding: 11px 14px; font-size: 13.5px; }
}

/* --- fullscreen launch-video hero on case studies --------------------------- */
.case-video-hero {
  position: relative;
  height: 100svh;
  background: var(--ink);
  overflow: hidden;
}

.case-video-hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* subtle bottom gradient so the UI reads over any footage */
.case-video-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(31, 27, 29, 0.55), rgba(31, 27, 29, 0) 34%),
              linear-gradient(to bottom, rgba(31, 27, 29, 0.35), rgba(31, 27, 29, 0) 22%);
  pointer-events: none;
}

.case-video-ui {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.case-video-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(243, 241, 224, 0.85);
}

.case-video-sound {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(243, 241, 224, 0.5);
  background: rgba(31, 27, 29, 0.35);
  color: var(--ivory);
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--ease-out);
}
.case-video-sound:hover { background: var(--acid); color: var(--ink); border-color: var(--acid); transform: translateY(-2px); }
.case-video-sound.is-on { background: var(--acid); color: var(--ink); border-color: var(--acid); }

.case-video-scroll {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ivory);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(31, 27, 29, 0.35);
  border: 1px solid rgba(243, 241, 224, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.3s ease, color 0.3s ease, transform 0.3s var(--ease-out);
}
.case-video-scroll:hover { background: var(--ivory); color: var(--ink); transform: translateX(-50%) translateY(-3px); }
.case-video-scroll .arrow { animation: bob 2s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .case-video-scroll .arrow { animation: none; }
}

/* Fraunces weight for the big statement headings (must win over earlier 400s) */
.hero-title,
.hero-inner h1,
.section-title,
.detail-title,
.footer-title,
.about-title,
.stat-num { font-weight: 600; }

/* --- notes: point-of-view list (home + "more notes" on note pages) ---------- */
.notes-list {
  border-top: 1px solid rgba(31, 27, 29, 0.16);
}

.note-row {
  display: flex;
  align-items: baseline;
  gap: 28px;
  padding: 30px 4px;
  border-bottom: 1px solid rgba(31, 27, 29, 0.16);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.35s var(--ease-out), background 0.3s ease;
}

.note-row:hover {
  padding-left: 16px;
  background: linear-gradient(90deg, rgba(212, 241, 101, 0.35), rgba(212, 241, 101, 0));
}

.note-row h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(20px, 2.8vw, 30px);
  line-height: 1.2;
  flex: 0 1 46%;
  transition: color 0.25s ease;
}

.note-row:hover h3 { color: var(--moss); }

.note-row p {
  flex: 1;
  font-size: 15.5px;
  line-height: 1.55;
  opacity: 0.7;
}

.note-arrow {
  flex: none;
  font-size: 22px;
  transition: transform 0.35s var(--ease-out);
}

.note-row:hover .note-arrow { transform: translateX(8px); }

@media (max-width: 767px) {
  .note-row { flex-direction: column; gap: 8px; align-items: flex-start; }
  .note-row .note-arrow { display: none; }
}

/* --- case figures: full-width schematic process illustrations ---------------- */
.case-figure {
  margin: clamp(48px, 7vw, 92px) 0;
  padding: clamp(32px, 5vw, 64px) 0 clamp(26px, 4vw, 46px);
  border-top: 1px solid rgba(31, 27, 29, 0.12);
  border-bottom: 1px solid rgba(31, 27, 29, 0.12);
  background-image: radial-gradient(rgba(31, 27, 29, 0.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
}

.case-figure-inner { width: min(1240px, 94vw); margin: 0 auto; }

.case-figure svg { width: 100%; height: auto; display: block; overflow: visible; }

.case-figure figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  padding: 0 16px;
}

/* schematic vocabulary */
.case-figure text { font-family: 'Syne', sans-serif; }
.fig-label { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; fill: var(--moss); }
.fig-note { font-size: 12px; fill: var(--ink); opacity: 0.62; }
.fig-big { font-family: 'Fraunces', serif; font-weight: 600; fill: var(--ink); }
.fig-hair { stroke: rgba(31, 27, 29, 0.5); stroke-width: 1; fill: none; }
.fig-dash { stroke: rgba(31, 27, 29, 0.32); stroke-width: 1; stroke-dasharray: 2 6; stroke-linecap: round; fill: none; }
.fig-box { fill: var(--ivory); stroke: rgba(31, 27, 29, 0.55); stroke-width: 1; }
.fig-cross { stroke: rgba(31, 27, 29, 0.28); stroke-width: 1; }

/* animations run only once the figure has revealed */
.case-figure [class*='fx-'] { animation-play-state: paused; }
.case-figure.is-visible [class*='fx-'] { animation-play-state: running; }

.fx-flow { animation: figFlow var(--t, 7.5s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figFlow {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 1; }
  86% { opacity: 1; }
  97%, 100% { transform: translateX(var(--fx)); opacity: 0; }
}

.fx-leak { animation: figLeak var(--t, 7.5s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figLeak {
  0% { transform: translate(0, 0); opacity: 0; }
  6% { opacity: 0.65; }
  30% { transform: translate(var(--lx), 0); opacity: 0.65; }
  46% { transform: translate(var(--lx), var(--ly)); opacity: 0.5; }
  54%, 100% { transform: translate(var(--lx), calc(var(--ly) + 14px)); opacity: 0; }
}

.fx-pop { animation: figPop 0.7s var(--ease-out) var(--d, 0s) both; transform-box: fill-box; transform-origin: center; }
@keyframes figPop { from { opacity: 0; transform: scale(0.4); } }

.fx-fade { animation: figFade 0.9s ease var(--d, 0s) both; }
@keyframes figFade { from { opacity: 0; } }

.fx-draw { stroke-dasharray: var(--len); animation: figDraw 1.2s ease var(--d, 0s) both; }
@keyframes figDraw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }

.fx-arc { animation: figArc 1.6s var(--ease-out) var(--d, 0s) both; }
@keyframes figArc { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 22; } }

.fx-win { fill: var(--acid); fill-opacity: 0; animation: figWin 0.5s ease var(--d, 0s) both; }
@keyframes figWin { to { fill-opacity: 0.88; } }

.fx-pulse { animation: figPulse 2.8s ease-in-out var(--d, 0s) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes figPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }

.fx-halo { animation: figHalo 2.7s ease-out var(--d, 0s) infinite; transform-box: fill-box; transform-origin: center; opacity: 0; }
@keyframes figHalo { 0% { transform: scale(0.35); opacity: 0.55; } 70%, 100% { transform: scale(1.9); opacity: 0; } }

.fx-absorb { animation: figAbsorb var(--t, 8s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figAbsorb {
  0% { transform: translateX(0); opacity: 0; fill: #1f1b1d; }
  6% { opacity: 0.75; }
  40% { fill: #1f1b1d; }
  48% { transform: translateX(var(--ax)); fill: #d4f165; opacity: 1; }
  60%, 100% { transform: translateX(var(--ax)); fill: #d4f165; opacity: 0; }
}

.fx-glide { animation: figGlide var(--t, 6s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figGlide {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: 0.9; }
  86% { opacity: 0.9; }
  96%, 100% { transform: translate(var(--gx), var(--gy)); opacity: 0; }
}

.fx-pass { animation: figPass var(--t, 8s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figPass {
  0% { transform: translateX(0); opacity: 0; }
  6% { opacity: 0.75; }
  88% { opacity: 0.75; }
  97%, 100% { transform: translateX(var(--px)); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .case-figure [class*='fx-'] { animation: none !important; }
  .fx-flow, .fx-leak, .fx-absorb, .fx-pass, .fx-glide, .fx-halo { opacity: 0 !important; }
  .fx-win { fill-opacity: 0.88; }
}

/* --- notes: "from my notes" callout on case studies -------------------------- */
.case-note {
  width: min(720px, 90vw);
  margin: clamp(48px, 7vw, 84px) auto 0;
  padding: clamp(26px, 4vw, 38px);
  border: 1px solid rgba(31, 27, 29, 0.16);
  border-radius: 26px;
  background: linear-gradient(120deg, rgba(212, 241, 101, 0.30), rgba(212, 241, 101, 0.05));
}

.case-note-eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--moss);
}

.case-note h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(21px, 2.6vw, 27px);
  line-height: 1.2;
  margin: 12px 0 10px;
}

.case-note h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease;
}

.case-note h3 a:hover { color: var(--moss); }

.case-note > p {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.82;
}

.case-note-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--moss);
  text-decoration: none;
  transition: transform 0.3s var(--ease-out);
}

.case-note-more:hover { transform: translateX(6px); }

/* --- notes: app reference screenshots ---------------------------------------- */
.note-shots {
  width: min(1080px, 92vw);
  margin: clamp(44px, 7vw, 84px) auto;
}

.note-shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  align-items: start;
}

/* four-shot figures: keep one balanced row instead of a 3+1 orphan */
.note-shots-grid:has(.note-shot:nth-child(4)) {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 767px) {
  .note-shots-grid:has(.note-shot:nth-child(4)) {
    grid-template-columns: repeat(2, 1fr);
  }
}

.note-shot a {
  display: block;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(31, 27, 29, 0.14);
  box-shadow: 0 20px 44px rgba(31, 27, 29, 0.12);
  background: #fff;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s ease;
}

.note-shot a:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 56px rgba(31, 27, 29, 0.18);
}

.note-shot img { width: 100%; display: block; }

.note-shot-label {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0.72;
  padding: 0 6px;
}

.note-shots > figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  opacity: 0.6;
}

.note-shots > figcaption a { color: var(--moss); }

/* --- notes listing: schematic SVG thumbs inside project cards ---------------- */
.project-image-wrap svg {
  width: 100%;
  height: 100%;
  display: block;
  transition: scale 0.8s var(--ease-out);
}

.project-card:hover .project-image-wrap svg { scale: 1.04; }

/* --- eye theatre: full-width attention scanpath animation -------------------- */
.note-theatre {
  margin: clamp(48px, 7vw, 92px) 0;
  padding: clamp(30px, 4.5vw, 58px) 0 clamp(24px, 3.5vw, 42px);
  border-top: 1px solid rgba(31, 27, 29, 0.12);
  border-bottom: 1px solid rgba(31, 27, 29, 0.12);
  background-image: radial-gradient(rgba(31, 27, 29, 0.09) 1px, transparent 1.5px);
  background-size: 26px 26px;
}

.note-theatre svg {
  display: block;
  width: min(1560px, 96vw, calc(86svh * 1.5));
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.note-theatre text { font-family: 'Syne', sans-serif; }

.note-theatre figcaption {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  padding: 0 16px;
}

.theatre-note { opacity: 0; transition: opacity 0.5s ease; }
.theatre-note.is-on { opacity: 1; }

/* heat and scanpath layers fade out between loops */
.theatre-fade { transition: opacity 0.7s ease; }

.cta-halo {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.is-found .cta-halo { animation: figHalo 1.3s ease-out infinite; }
.is-found .cta-halo.two { animation-delay: 0.45s; }

.is-found [data-cta-btn] {
  animation: theatreFound 0.7s var(--ease-out);
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes theatreFound {
  0% { transform: scale(1); }
  30% { transform: scale(1.12); }
  55% { transform: scale(0.97); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .is-found .cta-halo, .is-found [data-cta-btn] { animation: none; }
  .cta-halo { opacity: 0 !important; }
  .theatre-note { transition: none; }
}

/* --- "two ways to say no" theatre: diverging failure timelines -------------- */
.decline-theatre [data-dt="story"] { transition: opacity 0.7s ease; }
.decline-theatre [data-dt] { transition: opacity 0.45s ease; }

.decline-theatre .dt-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: dtSpin 0.9s linear infinite;
}
@keyframes dtSpin { to { transform: rotate(360deg); } }

.decline-theatre .dt-caret { animation: dtBlink 1.05s steps(1, end) infinite; }
@keyframes dtBlink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.decline-theatre .dt-halo {
  transform-box: fill-box;
  transform-origin: center;
  animation: dtHalo 1.8s ease-out infinite;
}
@keyframes dtHalo {
  0% { transform: scale(0.5); opacity: 0.55; }
  70%, 100% { transform: scale(1.95); opacity: 0; }
}

.decline-theatre .dt-pop {
  transform-box: fill-box;
  transform-origin: center;
  animation: dtPop 0.55s var(--ease-out) both;
}
@keyframes dtPop {
  0% { opacity: 0; transform: scale(0.4); }
  60% { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .decline-theatre .dt-spin,
  .decline-theatre .dt-caret,
  .decline-theatre .dt-halo,
  .decline-theatre .dt-pop { animation: none; }
  .decline-theatre [data-dt="story"],
  .decline-theatre [data-dt] { transition: none; }
}

/* --- a11y: skip link + keyboard focus ---------------------------------------- */
.skip-link {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 400;
  padding: 13px 24px;
  background: var(--acid);
  color: var(--ink);
  border: 1px solid rgba(31, 27, 29, 0.5);
  border-radius: 999px;
  font-family: 'Syne', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(calc(-100% - 26px));
  transition: transform 0.25s var(--ease-out);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
}

/* section-count as a link (home Notes head links to the hub) */
a.section-count {
  text-decoration: none;
  color: inherit;
  transition: color 0.25s ease;
}

a.section-count:hover { color: var(--moss); opacity: 1; }

.nav-cta:focus-visible,
.button:focus-visible,
.footer-title a:focus-visible { outline-offset: 5px; }

#main { scroll-margin-top: 24px; }

/* --- notes: focus-walk step (accessibility note figure) ---------------------- */
.fx-step { animation: figStep var(--t, 10s) linear var(--d, 0s) infinite; opacity: 0; }
@keyframes figStep {
  0%, 2% { opacity: 0; }
  5%, 21% { opacity: 1; }
  25%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-step { opacity: 0 !important; }
}

/* --- mobile pass: navbar fits on phones, figures stay legible ----------------- */
/* At phone width the 4-link menu (459px) cannot fit a 375px viewport, so the
   About link (whose content IS the home page) steps back and the rest compacts. */
@media (max-width: 640px) {
  .navbar-inner { gap: 10px; flex-wrap: wrap; row-gap: 2px; }
  .brand { font-size: 18px; }
  .nav-menu { gap: 2px; }
  .nav-link { padding: 10px 7px; font-size: 12.5px; }
  .nav-menu a[href$="#about"] { display: none; }
}

/* Diagram SVGs squeeze to ~0.28 scale on phones (3px labels). Below tablet width
   they keep a legible minimum width and pan horizontally inside their band. */
@media (max-width: 767px) {
  .case-figure-inner { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .case-figure-inner svg { min-width: 820px; }
  .note-theatre { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
  .note-theatre svg { min-width: 920px; }
}

/* ==========================================================================
   Studio patterns: ways to work, brief builder, about-close proof + CTA
   ========================================================================== */

/* --- ways to work with me (services) ---------------------------------------- */
.services-lead {
  max-width: 760px;
  margin-bottom: clamp(44px, 5vw, 64px);
  font-size: clamp(19px, 2.1vw, 24px);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(31, 27, 29, 0.9);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 34px 32px 30px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s ease, border-color 0.4s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px -34px rgba(31, 27, 29, 0.45);
  border-color: rgba(31, 27, 29, 0.25);
}

.service-num {
  display: inline-block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 30px;
  color: var(--moss);
  margin-bottom: 14px;
}

.service-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.service-what {
  font-size: 15.5px;
  line-height: 1.55;
  color: rgba(31, 27, 29, 0.82);
  margin-bottom: 22px;
}

.service-meta { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }

.service-meta dt {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 5px;
}

.service-meta dd { font-size: 14.5px; line-height: 1.55; color: rgba(31, 27, 29, 0.75); }

.service-proof {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.service-proof-label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 2px;
}

.service-proof a {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--moss);
  text-decoration: none;
  width: fit-content;
  transition: transform 0.25s var(--ease-out);
}

.service-proof a::before { content: "\2192"; margin-right: 8px; }
.service-proof a:hover { transform: translateX(3px); }

.services-continuity {
  margin-top: clamp(40px, 5vw, 60px);
  padding: 26px 30px;
  border-left: 3px solid var(--acid);
  background: rgba(212, 241, 101, 0.14);
  border-radius: 0 14px 14px 0;
  max-width: 900px;
}

.services-continuity-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 8px;
}

.services-continuity p { font-size: 15.5px; line-height: 1.6; color: rgba(31, 27, 29, 0.82); }

/* --- brief builder ---------------------------------------------------------- */
.brief-card {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.brief-main { padding: clamp(32px, 4vw, 52px); }

.brief-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 10px 0 14px;
}

.brief-lede {
  font-size: 16px;
  line-height: 1.6;
  color: rgba(31, 27, 29, 0.75);
  max-width: 48ch;
  margin-bottom: 30px;
}

.brief-group { margin-bottom: 24px; }

.brief-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.55);
  margin-bottom: 12px;
}

.brief-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.brief-chip {
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  padding: 11px 18px;
  border: 1.5px solid rgba(31, 27, 29, 0.2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out);
}

.brief-chip:hover { border-color: var(--ink); transform: translateY(-2px); }
.brief-chip[aria-pressed="true"] { background: var(--acid); border-color: var(--ink); }

.brief-summary {
  margin: 28px 0 22px;
  font-size: 15px;
  line-height: 1.55;
  color: rgba(31, 27, 29, 0.7);
  min-height: 1.55em;
}
.brief-summary strong { color: var(--ink); font-weight: 700; }

.brief-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.brief-copy { padding: 14px 22px; font-size: 14px; }

.brief-note { margin-top: 20px; font-size: 13.5px; font-weight: 600; color: rgba(31, 27, 29, 0.55); }
.brief-note a { color: var(--moss); font-weight: 700; text-underline-offset: 3px; }

.brief-aside {
  background: var(--ink);
  color: var(--ivory);
  padding: clamp(32px, 4vw, 52px);
  display: flex;
  align-items: center;
}

.brief-aside blockquote { margin: 0; }

.brief-aside blockquote > p {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(20px, 2.4vw, 26px);
  line-height: 1.32;
  margin-bottom: 26px;
}
.brief-aside blockquote > p::before { content: "\201C"; }
.brief-aside blockquote > p::after { content: "\201D"; }

.brief-aside footer { display: flex; align-items: center; gap: 14px; }
.brief-aside footer img { width: 52px; height: 52px; border-radius: 999px; object-fit: cover; }
.brief-aside footer span { display: flex; flex-direction: column; font-size: 13.5px; color: rgba(243, 241, 224, 0.7); line-height: 1.4; }
.brief-aside footer strong { font-size: 15px; color: var(--ivory); font-weight: 700; }

/* --- about-close proof + CTA ------------------------------------------------ */
.about-cta {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.about-cta-quote {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(20px, 2.3vw, 27px);
  line-height: 1.3;
  flex: 1 1 420px;
}

.about-cta-cite {
  display: block;
  margin-top: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
}

.about-cta .button { flex: 0 0 auto; }

/* --- studio-patterns responsive --------------------------------------------- */
@media (max-width: 991px) {
  .services-grid { grid-template-columns: 1fr; gap: 18px; }
  .brief-card { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .brief-actions { gap: 10px; }
  .about-cta { gap: 22px; }
  .about-cta .button { width: 100%; justify-content: center; }
}

/* --- free one-pagers on the services section -------------------------------- */
.services-resources {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  font-size: 14px;
}
.services-resources-label { font-weight: 700; color: rgba(31, 27, 29, 0.6); }
.services-resources a {
  font-weight: 700;
  color: var(--moss);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.services-resources a::before { content: "\2193"; font-weight: 800; }
.services-resources a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* --- lead-magnet download callout (note pages) ------------------------------ */
.note-download-section { padding: 0 0 clamp(40px, 6vw, 72px); }
.note-download {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 24px 50px -40px rgba(31, 27, 29, 0.4);
}
.note-download-badge {
  flex: 0 0 auto;
  width: 56px;
  height: 66px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--acid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  position: relative;
}
.note-download-badge::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-width: 0 12px 12px 0;
  border-style: solid;
  border-color: transparent var(--ivory) transparent transparent;
  border-top-right-radius: 9px;
}
.note-download-body { flex: 1 1 240px; }
.note-download-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: 6px;
}
.note-download-body h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 5px;
}
.note-download-body p { font-size: 14.5px; line-height: 1.5; color: rgba(31, 27, 29, 0.7); }
.note-download .button { flex: 0 0 auto; padding: 15px 26px; font-size: 15px; }

@media (max-width: 560px) {
  .note-download { gap: 18px; }
  .note-download .button { width: 100%; justify-content: center; }
}

/* --- services landing page: expanded service detail ------------------------- */
.service-detail { padding: clamp(44px, 6vw, 76px) 0; border-top: 1px solid var(--line); }
.service-detail:first-child { border-top: none; padding-top: 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
.service-detail-num {
  display: block;
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 1;
  font-size: 34px;
  color: var(--moss);
  margin-bottom: 10px;
}
.service-detail-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin-bottom: 16px;
}
.service-detail-lede {
  font-size: 17px;
  line-height: 1.6;
  color: rgba(31, 27, 29, 0.8);
  margin-bottom: 24px;
  max-width: 42ch;
}
.service-detail-body h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(31, 27, 29, 0.5);
  margin-bottom: 14px;
  margin-top: 28px;
}
.service-detail-body h3:first-child { margin-top: 6px; }
.service-detail-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.service-detail-list li {
  position: relative;
  padding-left: 26px;
  font-size: 15.5px;
  line-height: 1.5;
  color: rgba(31, 27, 29, 0.82);
}
.service-detail-list li::before { content: "\2192"; position: absolute; left: 0; top: 0; color: var(--moss); font-weight: 700; }
.service-detail-how { font-size: 15.5px; line-height: 1.62; color: rgba(31, 27, 29, 0.78); }
.service-detail-proof {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: center;
  font-size: 14px;
}
.service-detail-proof .lbl { font-weight: 700; color: rgba(31, 27, 29, 0.55); }
.service-detail-proof a { font-weight: 700; color: var(--moss); text-decoration: none; }
.service-detail-proof a:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 860px) {
  .service-detail-grid { grid-template-columns: 1fr; gap: 22px; }
  .service-detail-lede { max-width: none; }
}
