/* Cheerful Monster — studio site (Direction 4)
   Production port of the Claude Design "Studio" prototype. Imports the design
   tokens from colors_and_type.css; every value here is translated from the
   prototype's component styles. Sections alternate light/dark for rhythm. */

/* Brand display face — Fontdiner Loungy. Used VERY sparingly: the header
   wordmark only (it visually rhymes with the hand-lettering on the badge). */
@font-face {
  font-family: "Fontdiner Loungy";
  src: url("../fonts/FontdinerdotcomLoungy.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

/* ───────────────────────────────────────────────────────────── Base ──── */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--cm-font-sans);
  color: var(--cm-text);
  background: var(--cm-paper-2);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

/* Offset in-page anchors for the fixed header. */
#proof, #work, #approach, #about, #contact { scroll-margin-top: 76px; }

/* Inline emphasis helpers. */
.u-yellow { color: var(--cm-yellow); }
.u-emph { font-weight: 500; color: var(--cm-blue); }
/* Visually-hidden honeypot input (kept in flow but off-screen and unfocusable). */
.u-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ─────────────────────────────────────────────── Scroll reveal / float ─ */
html:not(.reveal-ready) .reveal { opacity: 1 !important; transform: none !important; }
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--cm-ease), transform 0.7s var(--cm-ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

.cm-float { animation: cm-float 6s ease-in-out infinite; }
.cm-float-slow { animation: cm-float 8s ease-in-out infinite; }
@keyframes cm-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Subtle paper grain usable on any surface (echoes the logo's print feel). */
.cm-grain { position: relative; }
.cm-grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  opacity: 0.04; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-reduced-motion: reduce) {
  .cm-float, .cm-float-slow { animation: none !important; }
  html { scroll-behavior: auto; }
  .reveal { transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ─────────────────────────────────────────────────────────── Buttons ─── */
.btn {
  font-family: var(--cm-font-sans);
  font-weight: 600;
  border: 1px solid transparent;
  border-radius: var(--cm-r-pill);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  width: auto;
  transition: transform var(--cm-dur) var(--cm-ease), box-shadow var(--cm-dur) var(--cm-ease),
    background var(--cm-dur) var(--cm-ease), border-color var(--cm-dur) var(--cm-ease),
    color var(--cm-dur) var(--cm-ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(0.97); }
.btn--full { width: 100%; }

.btn--sm { font-size: 13.5px; padding: 8px 16px; }
.btn--md { font-size: 15px; padding: 11px 22px; }
.btn--lg { font-size: 16.5px; padding: 14px 30px; }

.btn--primary { background: var(--cm-yellow); color: var(--cm-dark); box-shadow: var(--cm-shadow-sm); }
.btn--primary:hover { background: #F2D257; box-shadow: var(--cm-shadow-md); }

.btn--ghost-invert { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.32); }
.btn--ghost-invert:hover { background: rgba(255, 255, 255, 0.12); }

/* ────────────────────────────────────────────────────────────── Logo ─── */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.logo__img { filter: drop-shadow(0 2px 4px rgba(44, 62, 80, 0.18)); }
.logo--header .logo__img { width: 38px; height: 38px; }
.logo--footer .logo__img { width: 34px; height: 34px; }
.logo__wordmark {
  font-family: var(--cm-font-sans);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--cm-dark);
  white-space: nowrap;
  line-height: 1.05;
}
/* Header wordmark: hand-lettered script face, ~0.62 of the 38px mark. */
.logo--header .logo__wordmark--script {
  font-family: "Fontdiner Loungy", var(--cm-font-sans);
  font-weight: 400;
  font-size: 23.56px;
  letter-spacing: 0.005em;
  line-height: 1;
  color: #fff;
}
.site-header.is-scrolled .logo--header .logo__wordmark--script { color: var(--cm-dark); }
/* Footer wordmark: clean Inter, ~0.46 of the 34px mark, inverted. */
.logo--footer .logo__wordmark { font-size: 15.64px; color: #fff; }

/* ──────────────────────────────────────────────────────────── Header ─── */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 14px 24px;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--cm-dur) var(--cm-ease), border-color var(--cm-dur) var(--cm-ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cm-n-200);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  text-decoration: none;
  font-family: var(--cm-font-sans);
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  padding: 8px 14px;
  border-radius: var(--cm-r-pill);
  transition: color var(--cm-dur) var(--cm-ease);
}
.site-header.is-scrolled .nav-link { color: var(--cm-n-600); }
.site-header.is-scrolled .nav-link.is-active { color: var(--cm-dark); }

/* Header CTA flips ghost-on-dark → solid-yellow once scrolled. */
.header-cta {
  margin-left: 8px;
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: none;
}
.header-cta:hover { background: rgba(255, 255, 255, 0.12); }
.site-header.is-scrolled .header-cta {
  background: var(--cm-yellow);
  color: var(--cm-dark);
  border-color: transparent;
  box-shadow: var(--cm-shadow-sm);
}
.site-header.is-scrolled .header-cta:hover { background: #F2D257; box-shadow: var(--cm-shadow-md); }
/* CTA label shortens on small phones so the header never overflows. */
.header-cta__short { display: none; }

/* ──────────────────────────────────────────────────────── Shared bits ── */
.eyebrow {
  font-family: var(--cm-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cm-n-400);
  margin: 0 0 16px;
}
.eyebrow--yellow { color: var(--cm-yellow); }

/* ──────────────────────────────────────────────────────────── Hero ───── */
.hero {
  position: relative;
  background: var(--cm-dark);
  overflow: hidden;
}
.hero__blob { position: absolute; border-radius: 50%; pointer-events: none; }
.hero__blob--a {
  top: -10%; right: -6%; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(247, 220, 111, 0.22) 0%, rgba(247, 220, 111, 0) 65%);
}
.hero__blob--b {
  bottom: -20%; left: -10%; width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(93, 109, 126, 0.35) 0%, rgba(93, 109, 126, 0) 65%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(120px, 15vh, 168px) 24px clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--cm-font-sans);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cm-yellow);
  margin: 0 0 24px;
}
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cm-yellow); display: inline-block; }
.hero__title {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: #fff;
  text-wrap: balance;
}
.hero__lead {
  margin: 20px 0 0;
  font-family: var(--cm-font-sans);
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}
.hero__sub {
  margin: 20px 0 0;
  max-width: 530px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(16px, 1.8vw, 19px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
}
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero__art-halo {
  position: absolute;
  width: min(420px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 220, 111, 0.32) 0%, rgba(247, 220, 111, 0) 68%);
  pointer-events: none;
}

/* Monster: video card that cross-fades to the floating logo badge. */
.monster { position: relative; width: min(380px, 82vw); }
.monster__card {
  position: relative;
  border-radius: var(--cm-r-xl);
  overflow: hidden;
  background: var(--cm-paper);
  border: 5px solid var(--cm-paper);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.42);
  opacity: 1;
  transform: scale(1);
  transition: opacity 2s var(--cm-ease), transform 0.9s var(--cm-ease);
}
.monster__video { display: block; width: 100%; height: auto; border-radius: calc(var(--cm-r-xl) - 5px); }
.monster__badge {
  position: absolute;
  top: 50%; left: 50%;
  width: 78%;
  height: auto;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
  opacity: 0;
  transition: opacity 3s var(--cm-ease) 0.2s;
  pointer-events: none;
}
.monster.is-settled .monster__card { opacity: 0; transform: scale(0.94); pointer-events: none; }
.monster.is-settled .monster__badge { opacity: 1; }

/* Org strip beneath the hero. */
.hero__orgs { position: relative; z-index: 1; border-top: 1px solid rgba(255, 255, 255, 0.10); }
.hero__orgs-inner { max-width: 1180px; margin: 0 auto; padding: 20px 24px 26px; }
.hero__orgs-label {
  font-family: var(--cm-font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin: 0 0 14px;
  text-align: center;
}
.hero__orgs-list { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 30px; }
.hero__orgs-list span {
  font-family: var(--cm-font-sans);
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: rgba(243, 238, 221, 0.66);
  white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────── Proof ───── */
.proof { max-width: 1180px; margin: 0 auto; padding: clamp(52px, 6.5vw, 84px) 24px clamp(24px, 3vw, 36px); }
.proof .section-head { margin-bottom: 32px; }
.proof .eyebrow { margin-bottom: 12px; }
.proof__title {
  margin: 0;
  max-width: 720px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.018em;
  color: var(--cm-dark);
  text-wrap: balance;
}
.proof__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.stat { padding-left: 18px; border-left: 3px solid var(--cm-yellow); }
.stat__figure {
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: clamp(30px, 3.6vw, 42px);
  letter-spacing: -0.02em;
  color: var(--cm-dark);
  line-height: 1;
}
.stat__label { margin-top: 12px; font-family: var(--cm-font-sans); font-size: 14.5px; line-height: 1.5; color: var(--cm-n-600); }

/* ───────────────────────────────────────────────────────── Services ──── */
.services { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 5vw, 64px) 24px clamp(56px, 7vw, 88px); }
.services__head { max-width: 720px; margin-bottom: 40px; }
.services__title {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: var(--cm-dark);
  text-wrap: balance;
}
.services__intro {
  margin: 18px 0 0;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: 19px;
  line-height: 1.55;
  color: var(--cm-n-600);
}
.services__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card {
  background: #fff;
  border: 1px solid var(--cm-n-200);
  border-radius: var(--cm-r-xl);
  padding: 32px 30px;
  box-shadow: var(--cm-shadow-sm);
  transition: transform var(--cm-dur) var(--cm-ease), box-shadow var(--cm-dur) var(--cm-ease);
  height: 100%;
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--cm-shadow-lg); transform: translateY(-6px); }
.service-card__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.svc-icon {
  width: 52px; height: 52px;
  border-radius: var(--cm-r-md);
  background: var(--cm-dark);
  display: flex; align-items: center; justify-content: center;
  color: var(--cm-yellow);
}
.svc-icon svg { width: 25px; height: 25px; }
.service-card__num {
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: 30px;
  color: var(--cm-n-200);
  letter-spacing: -0.02em;
}
.service-card__title {
  margin: 0 0 8px;
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  color: var(--cm-dark);
}
.service-card__short {
  margin: 0 0 14px;
  font-family: var(--cm-font-sans);
  font-weight: 500;
  font-size: 15px;
  line-height: 1.45;
  color: var(--cm-blue);
}
.service-card__body {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--cm-n-600);
  flex: 1;
}

/* ───────────────────────────────────────────────────────── Approach ──── */
.approach { position: relative; background: var(--cm-dark); overflow: hidden; }
.approach__blob {
  position: absolute;
  top: -18%; right: -6%;
  width: 560px; height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 220, 111, 0.16) 0%, rgba(247, 220, 111, 0) 66%);
  pointer-events: none;
}
.approach__inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: clamp(56px, 7vw, 92px) 24px; }
.approach__head { max-width: 760px; }
.approach__title {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}
.approach__intro {
  margin: 20px 0 0;
  max-width: 640px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.74);
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(22px, 3vw, 40px);
  margin-top: clamp(40px, 5vw, 60px);
}
.principle__icon {
  width: 46px; height: 46px;
  border-radius: var(--cm-r-md);
  background: rgba(247, 220, 111, 0.14);
  border: 1px solid rgba(247, 220, 111, 0.28);
  display: flex; align-items: center; justify-content: center;
  color: var(--cm-yellow);
  margin-bottom: 16px;
}
.principle__icon svg { width: 22px; height: 22px; }
.principle__title {
  margin: 0 0 8px;
  font-family: var(--cm-font-sans);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #fff;
}
.principle__body { margin: 0; font-family: var(--cm-font-sans); font-size: 15.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.64); }
.approach__foot {
  margin-top: clamp(40px, 5vw, 60px);
  padding-top: clamp(30px, 4vw, 44px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 28px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.approach__foot-copy { max-width: 620px; }
.approach__foot-copy .eyebrow { font-size: 12px; letter-spacing: 0.1em; margin-bottom: 10px; }
.approach__foot-lead {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
}
.approach__foot-body { margin: 10px 0 0; font-family: var(--cm-font-sans); font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.64); }

/* ──────────────────────────────────────────────────────────── About ──── */
.about {
  position: relative;
  background: var(--cm-paper-3);
  border-top: 1px solid var(--cm-n-200);
  border-bottom: 1px solid var(--cm-n-200);
  overflow: hidden;
}
.about__inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 90px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.about__portrait { position: relative; display: flex; justify-content: center; }
.about__portrait-halo {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 408px; height: 408px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 220, 111, 0.32) 0%, rgba(247, 220, 111, 0) 70%);
  pointer-events: none;
}
.about__portrait-frame { position: relative; width: min(336px, 78vw); aspect-ratio: 1; }
.about__portrait-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 20%;
  border-radius: 50%;
  border: 5px solid var(--cm-paper);
  box-shadow: var(--cm-shadow-lg);
}
.about .eyebrow { margin-bottom: 18px; }
.about__lead {
  margin: 0 0 22px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--cm-dark);
  text-wrap: balance;
}
.about__para { margin: 0 0 16px; font-family: var(--cm-font-sans); font-size: 16.5px; line-height: 1.7; color: var(--cm-n-600); }
.about__identity { display: flex; align-items: center; gap: 14px; margin-top: 24px; }
.about__avatar {
  width: 44px; height: 44px;
  border-radius: var(--cm-r-pill);
  background: var(--cm-yellow);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cm-dark);
  font-weight: 700;
  font-family: var(--cm-font-sans);
  font-size: 17px;
}
.about__name { font-family: var(--cm-font-sans); font-weight: 600; font-size: 16px; color: var(--cm-dark); }
.about__role { font-family: var(--cm-font-sans); font-size: 14px; color: var(--cm-blue); }
.about__linkedin {
  margin-left: auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--cm-r-pill);
  background: #fff;
  border: 1px solid var(--cm-n-200);
  color: var(--cm-blue);
  text-decoration: none;
  box-shadow: var(--cm-shadow-xs);
  transition: transform var(--cm-dur) var(--cm-ease), box-shadow var(--cm-dur) var(--cm-ease),
    color var(--cm-dur) var(--cm-ease), border-color var(--cm-dur) var(--cm-ease);
}
.about__story { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px clamp(56px, 7vw, 84px); }
.about__story-inner {
  border-top: 1px solid var(--cm-n-200);
  padding-top: clamp(32px, 4vw, 48px);
  display: flex;
  gap: 22px;
  align-items: flex-start;
  max-width: 900px;
}
.about__story-logo { width: 64px; height: 64px; flex-shrink: 0; filter: drop-shadow(var(--cm-shadow-logo)); }
.about__story-lead {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: clamp(20px, 2.6vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--cm-dark);
}
.about__story-body { margin: 14px 0 0; font-family: var(--cm-font-sans); font-size: 15.5px; line-height: 1.7; color: var(--cm-n-600); }

/* Shared hover lift for the LinkedIn pill (and any future meta-link). */
.d4-li:hover { transform: translateY(-2px); color: var(--cm-dark); border-color: var(--cm-blue); box-shadow: var(--cm-shadow-sm); }

/* ──────────────────────────────────────────────────────────── Contact ── */
.contact { position: relative; background: var(--cm-dark); overflow: hidden; }
.contact__blob {
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(247, 220, 111, 0.14) 0%, rgba(247, 220, 111, 0) 64%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(56px, 7vw, 92px) 24px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact__title {
  margin: 0;
  font-family: var(--cm-font-sans);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}
.contact__sub {
  margin: 20px 0 0;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
  max-width: 380px;
}
.contact__card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--cm-r-xl);
  box-shadow: var(--cm-shadow-lg);
  padding: clamp(26px, 4vw, 38px);
}
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form__submit { margin-top: 4px; }

/* Fields (dark variant). */
.field__label {
  display: block;
  font-family: var(--cm-font-sans);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.78);
  margin-bottom: 7px;
}
.field__input {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--cm-font-sans);
  font-size: 15px;
  padding: 12px 14px;
  border-radius: var(--cm-r-sm);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
  outline: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  transition: border-color var(--cm-dur) var(--cm-ease), box-shadow var(--cm-dur) var(--cm-ease);
}
.field__input::placeholder { color: rgba(255, 255, 255, 0.4); }
.field__input--textarea { resize: vertical; }
.field__input:focus { border-color: var(--cm-yellow); box-shadow: var(--cm-ring-yellow); }
.field--error .field__input { border-color: var(--cm-danger); }
.field--error .field__input:focus { border-color: var(--cm-danger); box-shadow: none; }
.field__error { font-family: var(--cm-font-sans); font-size: 12px; color: #E9A89B; margin: 6px 0 0; }

/* Thank-you state. */
.contact-thanks { text-align: center; padding: 12px 0; }
.contact-thanks__logo { width: 104px; height: auto; margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.5)); }
.contact-thanks__title {
  margin: 18px 0 8px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: 26px;
  letter-spacing: -0.015em;
  color: #fff;
}
.contact-thanks__body {
  margin: 0 0 22px;
  font-family: var(--cm-font-sans);
  font-weight: 300;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.72);
}

/* ──────────────────────────────────────────────────────────── Footer ── */
.site-footer { background: #22303d; }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 24px 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}
.site-footer__legal { font-family: var(--cm-font-sans); font-size: 13.5px; color: rgba(255, 255, 255, 0.6); line-height: 1.7; text-align: right; }
.site-footer__name { font-weight: 600; color: #fff; }
.site-footer__copy { color: rgba(255, 255, 255, 0.4); margin-top: 4px; }

/* ─────────────────────────────────────────────────────── Responsive ──── */
@media (max-width: 880px) {
  .d4-hero { grid-template-columns: 1fr; text-align: center; }
  .d4-hero-art { order: -1; margin: 0 auto 8px; }
  .d4-hero-cta { justify-content: center; }
  .d4-stats { grid-template-columns: repeat(2, 1fr); }
  .d4-svc { grid-template-columns: 1fr; }
  .d4-about { grid-template-columns: 1fr; }
  .d4-contact { grid-template-columns: 1fr; }
  .d4-approach-grid { grid-template-columns: 1fr; }
  .d4-approach-foot { flex-direction: column; align-items: flex-start; }
  .d4-hide-mobile { display: none; }
}
@media (max-width: 520px) {
  .d4-stats { grid-template-columns: 1fr; }
  .site-header { padding-left: 16px; padding-right: 16px; }
  .header-cta__full { display: none; }
  .header-cta__short { display: inline; }
}
