/* ============================================
   Shere Data Solutions — global + sections
   ============================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: var(--orange); color: #fff; }

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn .btn-arrow {
  width: 15px;
  height: 15px;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--ink);
}
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn:active { transform: scale(0.97); }

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--taupe-dark);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--orange);
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(251, 248, 241, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--ink-08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.brand-claw { width: 30px; height: 30px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-sub {
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 8.5px;
  letter-spacing: 0.34em;
  color: var(--taupe-dark);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--orange);
  background-size: 100% 2px;
}

/* Header over deep water (iceberg section flips this) */
.site-header.on-water,
.site-header.on-water.is-scrolled {
  background: rgba(10, 58, 82, 0.35);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.14);
}
.site-header.on-water .brand-name,
.site-header.on-water .nav-link { color: #fff; }
.site-header.on-water .brand-sub { color: rgba(255, 255, 255, 0.75); }

/* Header CTA: pulsing claw badge + status line */
.claw-cta {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
}
.claw-dot {
  position: relative;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.35s var(--ease);
}
.claw-dot img { width: 16px; height: 16px; }
.claw-pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--orange);
  animation: claw-pulse 2.6s var(--ease) infinite;
  pointer-events: none;
}
@keyframes claw-pulse {
  0%        { transform: scale(1);   opacity: 0.55; }
  70%, 100% { transform: scale(1.8); opacity: 0; }
}
.claw-cta-text {
  position: relative;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  white-space: nowrap;
}
.claw-line { display: block; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.claw-line--hover {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(7px);
  color: var(--orange);
}
.claw-cta:hover .claw-dot,
.claw-cta:focus-visible .claw-dot { transform: scale(1.1); }
.claw-cta:hover .claw-line--rest,
.claw-cta:focus-visible .claw-line--rest { opacity: 0; transform: translateY(-7px); }
.claw-cta:hover .claw-line--hover,
.claw-cta:focus-visible .claw-line--hover { opacity: 1; transform: translateY(0); }
.site-header.on-water .claw-cta-text { color: #fff; }
.site-header.on-water .claw-line--hover { color: var(--orange-soft); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.site-header.on-water .menu-toggle span { background: #fff; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 12px;
  right: 12px;
  background: var(--cream);
  border: 1px solid var(--ink-08);
  border-radius: 18px;
  box-shadow: 0 18px 50px -18px rgba(26, 21, 17, 0.25);
  padding: 14px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  color: var(--ink);
}
.mobile-menu a:hover { background: var(--peach); }
.mobile-menu .btn {
  display: inline-flex;
  margin: 10px 16px 6px;
  color: #fff;
}

/* ---------- Hero ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(48px, 9vh, 96px));
  padding-bottom: clamp(56px, 9vh, 110px);
  min-height: 92svh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
}

.hero-headline {
  margin: 26px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero-headline .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
  padding-block: 0.09em;
  margin-block: -0.09em;
}
.hero-headline .wi { display: inline-block; }
.hero-headline .accent { color: var(--orange); }

.hero-sub {
  margin: 26px 0 0;
  max-width: 44ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--taupe-dark);
}

.hero-cta { margin-top: 40px; }

.hero-visual { position: relative; }
.hero-panel {
  position: relative;
  border-radius: 30px;
  background: linear-gradient(150deg, var(--peach) 12%, var(--peach-deep) 100%);
  aspect-ratio: 12 / 13;
  overflow: hidden;
  box-shadow: 0 30px 70px -34px rgba(110, 101, 87, 0.45);
}
.hero-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 48% at 24% 14%, rgba(251, 248, 241, 0.75), transparent 70%);
  pointer-events: none;
}
/* Chaos-to-clarity: messy blocks assemble into growth bars */
.bars-static {
  position: absolute;
  inset: 6%;
  width: 88%;
  height: 88%;
}
.blocks-stage {
  position: absolute;
  inset: 6%;
}
.blk {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 5px;
  will-change: transform;
}
.blocks-arrow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

/* ---------- 5.2 The Problem ---------- */

.problem {
  padding: clamp(90px, 14vh, 150px) 0 clamp(100px, 16vh, 170px);
}

.problem-head {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.problem-head .eyebrow { justify-content: center; }
.problem-heading {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.problem-subheading {
  margin: 18px auto 0;
  font-size: 19px;
  line-height: 1.6;
  color: var(--taupe-dark);
  max-width: 52ch;
}

.story {
  max-width: 720px;
  margin: clamp(70px, 10vh, 110px) auto 0;
}
.story-line {
  margin: 0 0 clamp(40px, 6vh, 56px);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.story-line.strong { font-weight: 700; }
.story-line.feature {
  font-weight: 700;
  font-size: clamp(1.7rem, 2.7vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.vis-chips {
  list-style: none;
  margin: 0 0 clamp(44px, 7vh, 60px);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.vis-chips li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--peach);
  border-radius: 16px;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.45;
}
.vis-chips li::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 3px;
  background: var(--orange);
  flex: none;
}

/* Data-fact "amplifier" callouts — pop up beside the story line they back */
.amp-row {
  display: flex;
  align-items: center;
  gap: 36px;
  margin: 0 0 clamp(40px, 6vh, 56px);
}
.amp-row .story-line {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}
.amp-card {
  flex: none;
  width: 290px;
  margin-right: -140px;
  background: var(--cream);
  border: 2px solid var(--orange);
  border-radius: 20px;
  padding: 22px 26px 24px;
  box-shadow: 0 26px 55px -24px rgba(254, 106, 0, 0.38);
}
.amp-tilt-l { transform: rotate(-2deg); }
.amp-tilt-r { transform: rotate(2.2deg); }
/* Left-rail variant: card floats in the left margin, text keeps the spine */
.amp-row--left { position: relative; }
.amp-row--left .amp-card {
  position: absolute;
  right: calc(100% + 36px);
  top: calc(50% - 100px);
  margin: 0;
}

.amp-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.amp-icon { width: 28px; height: 28px; color: var(--orange); flex: none; }
.amp-value {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--orange);
}
.amp-label {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--taupe-dark);
}

.punchline-wrap {
  text-align: center;
  margin-top: clamp(80px, 12vh, 140px);
}
.punchline-lead {
  margin: 0 auto 28px;
  max-width: 32ch;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.1vw, 1.7rem);
  line-height: 1.42;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.punchline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.punchline-dot { color: var(--orange); }

@media (max-width: 1380px) {
  .amp-row--left .amp-card { width: 260px; right: calc(100% + 22px); }
}
@media (max-width: 1280px) {
  .amp-card { margin-right: -48px; }
}
@media (max-width: 1200px) {
  .amp-row--left .amp-card {
    position: static;
    width: min(420px, 100%);
    margin: 28px 0 0;
  }
}
@media (max-width: 1100px) {
  .amp-row { display: block; }
  .amp-row .story-line { margin-bottom: clamp(40px, 6vh, 56px); }
  .amp-card {
    width: min(420px, 100%);
    margin: -14px 0 clamp(44px, 7vh, 60px);
  }
  .amp-row--left .amp-card { margin: -14px 0 clamp(44px, 7vh, 60px); }
  .amp-tilt-l { transform: rotate(-1deg); }
  .amp-tilt-r { transform: rotate(1deg); }
}
@media (max-width: 640px) {
  .vis-chips { grid-template-columns: 1fr; }
}

/* ---------- 5.3 Bridge statement ---------- */

.bridge {
  background: var(--peach);
  padding: clamp(90px, 13vh, 140px) 0;
  text-align: center;
}
.bridge-statement {
  margin: 0 auto;
  max-width: 26ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.bridge-para {
  margin: 30px auto 0;
  max-width: 66ch;
  font-size: 19px;
  line-height: 1.7;
  color: var(--taupe-dark);
}

/* ---------- 5.4 The Iceberg ---------- */

.iceberg { background: var(--cream); }

.berg-stage {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.berg-world {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
}
.berg-sky {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: var(--boundaryY, 30.71%);
  background:
    radial-gradient(55% 45% at 68% 22%, rgba(255, 201, 150, 0.35), transparent 65%),
    linear-gradient(180deg, #FBF8F1 0%, #FAF1DF 60%, #F4E7CF 100%);
}
.berg-sea {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  top: var(--boundaryY, 30.71%);
  background: linear-gradient(180deg, #8FDFDC 0%, #8FDFDC 9%, #4FBEC6 22%, #2495AD 45%, #156489 72%, #0D4568 100%);
}
.berg-waves {
  position: absolute;
  left: 0; right: 0;
  top: calc(var(--boundaryY, 30.71%) - 44px);
  height: 88px;
  pointer-events: none;
}
.berg-waves .wave {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
}
.berg-waves .wave--front { z-index: 3; }

.berg-diagram {
  position: relative;
  z-index: 2;
  display: block;
  height: min(88%, 84vw);
  width: auto;
  max-width: none;
  align-self: flex-end;
}
.berg-diagram .lbl-t {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 23px;
  dominant-baseline: central;
}
.berg-diagram .lbl-t-dark { fill: var(--ink); }
.berg-diagram .lbl-t-light { fill: #F3FAFA; }
.berg-diagram .ldr { stroke-width: 1.6; }
.berg-diagram .ldr-dark { stroke: rgba(26, 21, 17, 0.45); }
.berg-diagram .ldr-light { stroke: rgba(255, 255, 255, 0.65); }
.berg-diagram .dot-dark { fill: rgba(26, 21, 17, 0.55); }
.berg-diagram .dot-light { fill: rgba(255, 255, 255, 0.85); }

.berg-caption {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  text-align: center;
  width: max-content;
  max-width: 90vw;
}
.berg-caption--above { top: clamp(88px, 10.5%, 130px); }
.berg-caption--below { bottom: 4.5%; }
.berg-kick {
  display: block;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
}
.berg-cap-t {
  display: block;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.7rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.berg-cap-t--light { color: #F3FAFA; }

/* Mobile fallback: labelled lists above/below the berg (diagram labels hide) */
.berg-mobile { display: none; }

@media (max-width: 899px) {
  .berg-mobile { display: block; padding: 56px 0 40px; }
  .berg-mobile + .berg-mobile,
  .berg-stage + .berg-mobile { padding-top: 44px; }
  .berg-chiplist {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
  }
  .berg-chiplist--grid { grid-template-columns: 1fr 1fr; }
  .berg-chiplist li {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--peach);
    border-radius: 14px;
    padding: 14px 16px;
    font-weight: 600;
    font-size: 15.5px;
  }
  .chip-ic {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--orange);
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
  }
  .chip-ic svg { width: 21px; height: 21px; }

  .berg-stage { height: auto; overflow: visible; }
  .berg-world { display: block; height: auto; }
  .berg-diagram { height: auto; width: 100%; }
  .berg-labels { display: none; }
  .berg-caption { display: none; }
}
@media (max-width: 480px) {
  .berg-chiplist--grid { grid-template-columns: 1fr; }
}

/* ---------- 5.5 Our Services ---------- */

.services { background: var(--cream); }
.services-pin {
  position: relative;
  height: 100svh;
  overflow: hidden;
}
.services-head {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--header-h) + clamp(24px, 14vh, 140px));
  text-align: center;
  z-index: 5;
  pointer-events: none;
}
.services-heading {
  display: inline-block;
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vh, 2.5rem);
  letter-spacing: 0.02em;
  color: var(--ink);
}
.scribble {
  display: block;
  width: 100%;
  height: 14px;
  margin-top: 4px;
}

.services-row {
  position: absolute;
  top: calc(var(--header-h) + 14px);
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 1420px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr;
  gap: clamp(14px, 1.6vw, 26px);
  align-items: stretch;
}
.svc-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(165deg, var(--peach) 8%, var(--peach-deep) 100%);
  border-radius: 22px;
  padding: clamp(16px, 2.2vh, 24px) clamp(16px, 1.8vw, 26px);
  box-shadow: 0 26px 60px -34px rgba(110, 101, 87, 0.45);
  min-height: 0;
}
.svc-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
}
.svc-title {
  margin: 6px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.3vh, 1.35rem);
  letter-spacing: -0.01em;
  color: var(--ink);
}
.svc-intro {
  margin: 8px 0 0;
  font-size: clamp(12px, 1.65vh, 14px);
  line-height: 1.5;
  color: var(--taupe-dark);
}
.svc-phase {
  margin: clamp(8px, 1.5vh, 15px) 0 0;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--orange);
}
.svc-list {
  list-style: none;
  margin: clamp(6px, 1vh, 10px) 0 0;
  padding: 0;
}
.svc-list li {
  position: relative;
  padding-left: 16px;
  margin-bottom: clamp(3px, 0.7vh, 7px);
  font-size: clamp(12px, 1.5vh, 13.5px);
  line-height: 1.45;
  color: var(--ink);
}
.svc-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}
.svc-close {
  margin: clamp(8px, 1.5vh, 15px) 0 0;
  padding-top: clamp(8px, 1.4vh, 14px);
  border-top: 1px solid rgba(26, 21, 17, 0.12);
  font-weight: 600;
  font-size: clamp(12px, 1.6vh, 14px);
  line-height: 1.5;
  color: var(--ink);
  margin-top: auto;
}

/* No-pin layouts (mobile, short or narrow viewports): single readable column */
@media (max-width: 999px), (max-height: 739px) {
  .services-pin { height: auto; overflow: visible; padding-bottom: 44px; }
  .services-head {
    position: static;
    padding-top: calc(var(--header-h) + 40px);
    pointer-events: auto;
  }
  .services-row {
    position: static;
    transform: none;
    grid-template-columns: 1fr;
    grid-template-rows: none;
    width: min(92vw, 640px);
    margin: 28px auto 0;
    gap: 22px;
  }
  .svc-card { padding: 26px 24px; }
  .svc-title { font-size: 1.35rem; }
  .svc-intro { font-size: 15px; }
  .svc-list li { font-size: 14.5px; margin-bottom: 8px; }
  .svc-close { font-size: 15px; }
}

/* ---------- 5.6 Testimonials ---------- */

.testimonials {
  background: var(--cream);
  padding: clamp(80px, 12vh, 130px) 0 clamp(90px, 13vh, 150px);
}
.t-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.t-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  margin-top: clamp(36px, 6vh, 56px);
  align-items: stretch;
}

/* Stacked paper card: cream face on a tilted peach backing, whole card links */
.t-card {
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 20px;
}
.t-backing {
  position: absolute;
  inset: 12px -10px -10px 10px;
  background: var(--peach-deep);
  border-radius: 20px;
  transform: rotate(1.8deg);
  transition: transform 0.45s var(--ease);
}
.t-card:nth-child(2) .t-backing {
  inset: 12px 10px -10px -10px;
  transform: rotate(-1.8deg);
}
.t-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--cream);
  border: 1px solid var(--peach-deep);
  border-radius: 20px;
  padding: 26px 28px 24px;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.t-card:hover .t-backing,
.t-card:focus-visible .t-backing { transform: rotate(0.4deg); }
.t-card:nth-child(2):hover .t-backing,
.t-card:nth-child(2):focus-visible .t-backing { transform: rotate(-0.4deg); }
.t-card:hover .t-inner,
.t-card:focus-visible .t-inner {
  transform: translateY(-5px);
  box-shadow: 0 28px 55px -28px rgba(110, 101, 87, 0.5);
}

.t-quote {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
}
.t-attr-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--peach);
}
.t-attr {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.t-attr strong { font-size: 15.5px; color: var(--ink); }
.t-attr span { font-size: 13.5px; color: var(--taupe-dark); }
.t-go {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.35s var(--ease), transform 0.35s var(--ease);
}
.t-go svg { width: 15px; height: 15px; }
.t-card:hover .t-go { background: var(--ink); transform: translateX(3px); }

/* Big decorative quote mark — still used on case-study pages */
.t-mark {
  position: absolute;
  top: 6px;
  left: 26px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 88px;
  line-height: 1;
  color: var(--orange);
  opacity: 0.9;
  pointer-events: none;
}

@media (max-width: 860px) {
  .t-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ---------- Contact CTA ---------- */

.contact-cta {
  position: relative;
  background: linear-gradient(160deg, var(--peach) 0%, var(--peach-deep) 100%);
  padding: clamp(80px, 12vh, 130px) 0;
  text-align: center;
  overflow: hidden;
}
.contact-claw {
  position: absolute;
  right: -70px;
  bottom: -90px;
  width: 360px;
  opacity: 0.09;
  transform: rotate(-8deg);
  pointer-events: none;
}
.eyebrow--center { justify-content: center; }
.contact-inner { position: relative; }
.contact-heading {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
.contact-sub {
  margin: 18px auto 0;
  max-width: 48ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--taupe-dark);
}
.cta-form { margin: 36px auto 0; }
.cta-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(500px, 100%);
  margin-inline: auto;
  background: var(--cream);
  border: 1.5px solid rgba(26, 21, 17, 0.12);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.cta-pill:focus-within {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px var(--orange-12);
}
.cta-pill input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--ink);
  outline: none;
  padding: 10px 0;
}
.cta-pill input::placeholder { color: var(--taupe); }
.cta-pill .btn { flex: none; }
.contact-note {
  margin: 16px 0 0;
  font-size: 14px;
  color: var(--taupe-dark);
}
@media (max-width: 520px) {
  .cta-pill {
    flex-direction: column;
    align-items: stretch;
    border-radius: 26px;
    padding: 12px;
  }
  .cta-pill input { padding: 10px 12px; }
  .cta-pill .btn { justify-content: center; }
}

/* ---------- 5.7 Case studies ---------- */

.cs-hero {
  padding: calc(var(--header-h) + clamp(56px, 10vh, 110px)) 0 clamp(48px, 7vh, 72px);
}
.cs-title {
  margin: 22px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 22ch;
}
.cs-standfirst {
  margin: 22px 0 0;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--taupe-dark);
}

.cs-statband {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: clamp(32px, 5vh, 48px);
}
.cs-stat {
  background: linear-gradient(150deg, var(--peach) 10%, var(--peach-deep) 100%);
  border-radius: 18px;
  padding: 20px 28px;
  min-width: 200px;
}
.cs-stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--orange);
}
.cs-stat-label {
  margin: 6px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--taupe-dark);
  max-width: 30ch;
}

.cs-section { padding: clamp(56px, 9vh, 90px) 0; }
.cs-section--peach { background: var(--peach); }
.cs-h2 {
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.cs-body {
  margin: 22px 0 0;
  max-width: 68ch;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
}
.cs-body + .cs-body { margin-top: 16px; }
.cs-body--muted { color: var(--taupe-dark); }

.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: clamp(28px, 5vh, 44px);
}
.ch-card {
  background: var(--cream);
  border-radius: 18px;
  padding: 26px 26px 28px;
  box-shadow: 0 18px 44px -26px rgba(110, 101, 87, 0.4);
}
.cs-section:not(.cs-section--peach) .ch-card { background: var(--peach); box-shadow: none; }
.ch-num {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--orange);
}
.ch-t {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  color: var(--ink);
}
.ch-p {
  margin: 10px 0 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--taupe-dark);
}

.deliver-list {
  list-style: none;
  margin: clamp(28px, 5vh, 44px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.deliver-list li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--taupe-dark);
}
.deliver-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 10px;
  height: 2.5px;
  background: var(--orange);
}
.deliver-list strong {
  display: block;
  font-size: 17px;
  color: var(--ink);
}

.cs-quote {
  position: relative;
  margin: clamp(32px, 6vh, 52px) 0 0;
  background: var(--cream);
  border-radius: 24px;
  padding: 46px 44px 38px;
  box-shadow: 0 24px 60px -30px rgba(110, 101, 87, 0.4);
}
.cs-section:not(.cs-section--peach) .cs-quote { background: var(--peach); box-shadow: none; }
.cs-quote .t-mark { top: 8px; left: 30px; }
.cs-quote blockquote {
  margin: 20px 0 0;
  font-size: 17.5px;
  line-height: 1.7;
  color: var(--ink);
}
.cs-quote figcaption {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(26, 21, 17, 0.12);
  font-weight: 600;
  color: var(--ink);
}

.cs-note {
  margin: 26px 0 0;
  font-style: italic;
  font-size: 15.5px;
  color: var(--taupe-dark);
}

.cs-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: clamp(40px, 7vh, 64px) 0;
  border-top: 1px solid var(--ink-08);
}
.cs-nav a:not(.btn) {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
  padding: 4px 0;
}
.cs-nav a:not(.btn):hover { color: var(--orange); background-size: 100% 2px; }

/* Case-studies index */
.csx-intro {
  margin: 22px 0 0;
  max-width: 56ch;
  font-size: 19px;
  line-height: 1.65;
  color: var(--taupe-dark);
}
.csx-list {
  display: grid;
  gap: 22px;
  margin: clamp(36px, 6vh, 56px) 0 clamp(70px, 10vh, 110px);
}
.csx-card {
  display: grid;
  grid-template-columns: 1.5fr auto auto;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  background: linear-gradient(155deg, var(--peach) 10%, var(--peach-deep) 100%);
  border-radius: 24px;
  padding: clamp(26px, 3.4vw, 40px);
  text-decoration: none;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.csx-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px rgba(110, 101, 87, 0.5);
}
.csx-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
}
.csx-name {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  letter-spacing: -0.015em;
  color: var(--ink);
}
.csx-hook {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--taupe-dark);
  max-width: 48ch;
}
.csx-stat {
  text-align: right;
}
.csx-stat-num {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--orange);
  white-space: nowrap;
}
.csx-stat-label {
  margin: 4px 0 0;
  font-size: 13.5px;
  color: var(--taupe-dark);
}
.csx-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: background 0.35s var(--ease);
}
.csx-card:hover .csx-arrow { background: var(--ink); }
.csx-arrow svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .challenge-grid { grid-template-columns: 1fr; }
  .deliver-list { grid-template-columns: 1fr; }
  .csx-card { grid-template-columns: 1fr; }
  .csx-stat { text-align: left; }
  .cs-quote { padding: 38px 26px 30px; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--peach);
  padding: 56px 0 42px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; gap: 30px; }
.footer-nav a {
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(var(--orange), var(--orange)) left bottom / 0% 2px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.25s var(--ease);
  padding: 4px 0;
}
.footer-nav a:hover,
.footer-nav a:focus-visible { color: var(--orange); background-size: 100% 2px; }
.footer-copyright {
  margin: 26px 0 0;
  width: 100%;
  border-top: 1px solid rgba(26, 21, 17, 0.1);
  padding-top: 22px;
  font-size: 14px;
  color: var(--taupe-dark);
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .site-nav { display: none; }
  .menu-toggle { display: block; }

  .hero {
    min-height: 0;
    padding-top: calc(var(--header-h) + 40px);
  }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-sub { font-size: 17.5px; }
  .hero-panel { aspect-ratio: 13 / 11; }

  .footer-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
