/* ============================================================
   Off Court Creations — vibrant brand-house system
   Inspired by Capturely: full-bleed gradient, rounded display
   type, magenta-pink gradient pills.
   Display: Fredoka  ·  Body: Nunito
   ============================================================ */

:root {
  /* neutrals */
  --bg:        #ffffff;
  --bg-2:      #f6f7fb;          /* light panel */
  --bg-3:      #eef0f7;
  --ink:       #15151c;          /* near-black */
  --ink-2:     #3b3d4a;
  --muted:     #5d6070;
  --faint:     #8b8e9e;
  --line:      #e7e8f0;
  --line-2:    #d8dae6;

  /* brand color stops (the gradient palette) */
  --blue:      #2f6bff;
  --blue-ink:  #1f4fd6;
  --teal:      #19c5c0;
  --green:     #58cf63;
  --lime:      #a6e04a;
  --yellow:    #ffe14a;
  --pink:      #2f6bff;
  --magenta:   #1f4fd6;

  /* the hero gradient (neutral / monochrome) */
  --grad-hero: linear-gradient(125deg,
                 #ffffff 0%, #eef0f4 34%, #d8dbe3 66%, #c5c9d3 100%);
  --grad-soft: linear-gradient(118deg,
                 #eaf0ff 0%, #e7fbf6 40%, #f1fbe4 70%, #fffbe4 100%);
  --grad-pink: linear-gradient(135deg, #3a78ff 0%, #1f54d6 100%);
  --grad-pink-hover: linear-gradient(135deg, #2f6bff 0%, #173fb0 100%);

  /* dark (datacenter) */
  --dark:      #101326;
  --dark-2:    #1a1f3a;
  --on-dark:   #f3f5ff;
  --on-dark-mut:#a6abcb;

  /* type */
  --display: "Baloo 2", system-ui, sans-serif;
  --sans: "Nunito", system-ui, -apple-system, sans-serif;

  /* shape */
  --r-sm: 12px;
  --r:    18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --shadow-sm: 0 2px 8px rgba(20,20,40,.06);
  --shadow:    0 16px 40px -16px rgba(30,40,90,.22), 0 4px 12px rgba(30,40,90,.06);
  --shadow-lg: 0 36px 70px -24px rgba(30,40,90,.32);
  --shadow-pink: 0 14px 30px -10px rgba(31,79,214,.42);

  --maxw: 1200px;
  --pad: clamp(20px, 5vw, 64px);
  --nav-h: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.62;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

/* ---------- type ---------- */
h1,h2,h3,h4 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.01em; }
.display { font-size: clamp(3rem, 7.2vw, 6rem); font-weight: 600; line-height: 0.98; letter-spacing: -0.015em; }
.h2 { font-size: clamp(2.1rem, 4vw, 3.4rem); font-weight: 600; letter-spacing: -0.01em; }
.h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); font-weight: 600; }
.lede { font-size: clamp(1.06rem, 1.45vw, 1.3rem); color: var(--muted); font-weight: 500; line-height: 1.6; }
.muted { color: var(--muted); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-weight: 800;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--magenta);
}
.eyebrow::before { content:""; width: 22px; height: 3px; border-radius: 2px; background: var(--grad-pink); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }
.eyebrow.on-dark { color: #6fe3ff; }

.grad-text {
  background: var(--grad-hero); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 28px; border-radius: 999px;
  font-family: var(--sans); font-weight: 800; font-size: 1rem;
  border: 2px solid transparent; white-space: nowrap;
  transition: transform .18s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn--pink { background: var(--grad-pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn--pink:hover { background: var(--grad-pink-hover); transform: translateY(-2px); box-shadow: 0 18px 38px -10px rgba(31,79,214,.5); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--glass { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.45); backdrop-filter: blur(4px); }
.btn--glass:hover { background: rgba(255,255,255,.28); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.textlink { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; color: var(--magenta); }
.textlink .arrow { transition: transform .18s ease; }
.textlink:hover .arrow { transform: translateX(4px); }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"]{ transition-delay:.08s } .js .reveal[data-d="2"]{ transition-delay:.16s }
.js .reveal[data-d="3"]{ transition-delay:.24s } .js .reveal[data-d="4"]{ transition-delay:.32s }
@media (prefers-reduced-motion: reduce){ .js .reveal{ opacity:1; transform:none; transition:none } }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: sticky; top: 0; z-index: 60; height: var(--nav-h); display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease; border-bottom: 1px solid transparent; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
/* over-hero (transparent, dark text on the light gradient) */
.nav.over { background: transparent; }
.nav.over .nav-links a, .nav.over .brand-name { color: var(--ink); }
.nav.over .menu-toggle { color: var(--ink); }
/* scrolled (solid) */
.nav.solid { background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(14px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30,40,90,.5); }
.nav.solid .nav-links a, .nav.solid .brand-name { color: var(--ink); }
.nav.solid .menu-toggle { color: var(--ink); }

.brand { display: inline-flex; align-items: center; gap: 11px; white-space: nowrap; }
.brand-logo { height: 38px; width: auto; display: block; transition: filter .25s ease; }
.nav.over .brand-logo { filter: none; }
.nav.solid .brand-logo { filter: none; }
.footer .brand-logo { filter: brightness(0) invert(1); height: 42px; }
.brand .mark {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  background: var(--grad-hero); display: grid; place-items: center;
  color: #fff; font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  box-shadow: 0 6px 16px -6px rgba(47,107,255,.6);
}
.brand-name { font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name small { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: .72; margin-top: 3px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: 0.96rem; white-space: nowrap; transition: background .15s ease, opacity .15s ease; }
.nav.over .nav-links a:hover { background: rgba(20,22,40,.07); }
.nav.solid .nav-links a:hover { background: var(--bg-2); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--ink); }

.mobile-menu { position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 55; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow); padding: 16px var(--pad) 26px; display: none; flex-direction: column; gap: 2px; transform: translateY(-12px); opacity: 0; transition: transform .25s ease, opacity .25s ease; }
.mobile-menu.open { display: flex; transform: none; opacity: 1; }
.mobile-menu a { padding: 14px 8px; font-weight: 800; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { margin-top: 14px; justify-content: center; }

/* ============================================================
   HERO  (full-bleed gradient)
   ============================================================ */
.hero { position: relative; padding-top: clamp(56px, 8vw, 100px); padding-bottom: clamp(72px, 10vw, 128px); background: var(--grad-hero); overflow: hidden; text-align: center; }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { color: var(--ink); max-width: 16ch; margin-inline: auto; }
.hero .lede { color: rgba(20,20,30,.78); font-weight: 600; max-width: 46ch; margin: 22px auto 0; font-size: clamp(1.1rem,1.6vw,1.4rem); }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-head { background: var(--grad-hero); padding-block: clamp(56px, 9vw, 104px); text-align: center; }
.page-head h1 { color: var(--ink); margin-inline: auto; max-width: 18ch; }

/* ============================================================
   BRANDS / LOGOS GRID
   ============================================================ */
.brands { background: #fff; }
.brands .head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.brands .head .h2 { margin-top: 14px; }
.brands .head .lede { margin-top: 14px; }
.logo-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(26px, 4vw, 56px); }
.logo-cell { flex: 0 0 auto; width: 178px; height: 62px; display: flex; align-items: center; justify-content: center; padding: 0; }
.logo-cell img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; opacity: .72; transition: opacity .2s ease; }
.logo-cell:hover img { opacity: 1; }
.logo-cell .wm { font-family: var(--display); font-weight: 600; font-size: 1.18rem; letter-spacing: -0.01em; color: var(--ink-2); text-align: center; line-height: 1.05; }
.logo-cell .wm i { font-style: normal; color: var(--magenta); }
.logo-cell .wm small { display: block; font-family: var(--sans); font-weight: 700; font-size: 0.6rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }
.brands .note { text-align: center; margin-top: 26px; font-size: 0.86rem; color: var(--faint); }
@media (max-width: 860px){ .logo-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px){ .logo-grid { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.sec-head { max-width: 62ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .h2 { margin-top: 16px; }
.sec-head .lede { margin-top: 16px; }

/* ============================================================
   STATS
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: clamp(18px,3vw,56px); }
.stat .num { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem,4.4vw,3.6rem); line-height: 1; letter-spacing: -0.02em; }
.stat .num .suf { color: var(--magenta); }
.stat .lab { margin-top: 8px; color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.stat .lab .foot { color: var(--faint); margin-left: 1px; }
.stat + .stat { border-left: 1px solid var(--line); padding-left: clamp(18px,3vw,36px); }

/* ============================================================
   SERVICES
   ============================================================ */
.cap-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- design-to-door pipeline ---------- */
.pipeline .sec-head { margin-bottom: 8px; }
.pipeline-wrap { margin-top: 54px; }

.pl-rail { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; max-width: 620px; margin: 0 auto 46px; }
.pl-track { position: absolute; top: 28px; left: 16.66%; right: 16.66%; height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.pl-fill { position: absolute; left: 0; top: 0; height: 100%; width: 0; background: var(--grad-pink); border-radius: 2px; transition: width .55s cubic-bezier(.4,.1,.2,1); }
.pl-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 11px; background: none; border: 0; padding: 0; cursor: pointer; font-family: inherit; }
.pl-dot { width: 58px; height: 58px; border-radius: 50%; background: #fff; border: 2px solid var(--line-2); display: grid; place-items: center; color: var(--faint); transition: transform .3s ease, background .3s ease, border-color .3s ease, color .3s ease, box-shadow .3s ease; }
.pl-dot svg { width: 26px; height: 26px; }
.pl-node:hover .pl-dot { border-color: var(--blue); color: var(--blue); }
.pl-node.is-done .pl-dot { border-color: var(--blue); color: var(--blue); }
.pl-node.is-active .pl-dot { border-color: transparent; background: var(--grad-pink); color: #fff; box-shadow: var(--shadow-pink); transform: scale(1.08); }
.pl-step { font-family: var(--sans); font-weight: 800; font-size: 0.66rem; letter-spacing: 0.12em; color: var(--faint); }
.pl-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; color: var(--ink); }
.pl-node.is-active .pl-name { color: var(--blue-ink); }

/* shell holds the flanking nav arrows + the swapping stages */
.pl-stage-shell { position: relative; padding-inline: clamp(56px, 6vw, 86px); }
.pl-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 6; width: 60px; height: 60px; border-radius: 50%; background: #fff; border: 1px solid var(--line-2); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow); transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease; }
.pl-arrow svg { width: 26px; height: 26px; }
.pl-arrow:hover { background: var(--grad-pink); color: #fff; border-color: transparent; box-shadow: var(--shadow-pink); transform: translateY(-50%) scale(1.06); }
.pl-arrow:active { transform: translateY(-50%) scale(0.96); }
.pl-arrow:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.pl-arrow--prev { left: 0; }
.pl-arrow--next { right: 0; }

.pl-stage-wrap { display: grid; max-width: 760px; margin-inline: auto; }
.pl-stage { grid-area: 1 / 1; display: grid; align-items: center; justify-items: center; text-align: center; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .5s ease, transform .5s ease, visibility .5s; pointer-events: none; }
.pl-stage.is-active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.pl-kicker { display: inline-block; font-weight: 800; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--magenta); }
.pl-title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 12px 0 14px; }
.pl-copy p { color: var(--muted); font-weight: 500; font-size: 1.05rem; line-height: 1.55; margin: 0 auto; max-width: 54ch; }
.pl-meta { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; }
.pl-meta span { font-weight: 700; font-size: 0.8rem; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px; }

@media (max-width: 820px){
  .pl-rail { max-width: 100%; }
  .pl-dot { width: 50px; height: 50px; }
  .pl-dot svg { width: 22px; height: 22px; }
  .pl-track { top: 24px; }
  .pl-name { font-size: 0.9rem; }
  .pl-stage { gap: 28px; }
  .pl-stage-shell { padding-inline: 0; }
  .pl-arrow { width: 48px; height: 48px; top: 50%; transform: translateY(-50%); }
  .pl-arrow svg { width: 22px; height: 22px; }
  .pl-arrow--prev { left: 4px; }
  .pl-arrow--next { right: 4px; }
  .pl-arrow:hover { transform: translateY(-50%) scale(1.06); }
}
@media (max-width: 480px){
  .pl-rail { gap: 2px; }
  .pl-dot { width: 42px; height: 42px; }
  .pl-dot svg { width: 19px; height: 19px; }
  .pl-track { top: 20px; }
  .pl-step { display: none; }
  .pl-name { font-size: 0.78rem; }
}

/* ============================================================
   IN-HOUSE BRANDS
   ============================================================ */
.inhouse { background: var(--bg-2); }
.brand-cards { margin-top: 52px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; }
.bcard:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.bcard-link { display: flex; flex-direction: column; height: 100%; color: inherit; }
.bcard-link:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.bcard .logo-tile { aspect-ratio: 16/10; display: grid; place-items: center; padding: 26px; border-bottom: 1px solid var(--line); background-color: #fff; background-image: repeating-linear-gradient(-45deg, rgba(20,30,80,.035) 0 1px, transparent 1px 13px); }
.bcard .logo-tile img { max-height: 92px; max-width: 70%; width: auto; object-fit: contain; }
.bcard .logo-tile.axis img { max-height: 138px; max-width: none; width: auto; }
.bcard .logo-tile .wm-text { font-family: var(--display); font-weight: 600; font-size: 2.1rem; letter-spacing: -0.01em; color: var(--ink); }
.bcard .logo-tile .wm-text i { font-style: normal; color: var(--magenta); }
.bcard .body { padding: 24px 28px 26px; display: flex; flex-direction: column; flex: 1; }
.bcard .url { font-family: ui-monospace, monospace; font-size: 0.78rem; color: var(--faint); margin-top: 16px; }
.bcard .kind { display: inline-block; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); background: #eaf0ff; padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.bcard p { color: var(--muted); margin: 0; font-weight: 500; font-size: 0.98rem; }
@media (max-width: 760px){ .brand-cards { grid-template-columns: 1fr; } }

/* ============================================================
   WORK / CLIENTS — equal-weight logo board + case studies
   ============================================================ */
.work .sec-head { margin-bottom: 8px; }
.client-board { margin-top: 48px; display: grid; gap: 30px; }

.cgroup-block { }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.block-name { font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.01em; color: var(--ink); white-space: nowrap; flex: none; }
.block-logo { height: 56px; width: auto; max-width: 330px; object-fit: contain; object-position: left center; display: block; flex: none; }

/* centered / nested presentation: header logo on top, sub-logos below */
.block-head--center { flex-direction: column; align-items: center; justify-content: center; text-align: center; border-bottom: none; padding-bottom: 0; margin-bottom: 26px; }
.block-head--center .block-logo { object-position: center; max-width: 100%; }
.block-head--solo { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.block-head--solo .block-logo { height: 92px; max-width: 380px; }

/* dividers BETWEEN client groups only */
.board-divider { border: 0; height: 1px; background: var(--line); margin: 36px 0; }
.case-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); }
.case-link .arrow { transition: transform .18s ease; }
.case-link:hover .arrow { transform: translateX(4px); }

.board-marks { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
/* centered sub-logos (e.g. My Gym's 3 marks) sit centered instead of stretched */
.board-marks--center { display: flex; flex-wrap: wrap; justify-content: center; }
.board-marks--center .mark { width: 188px; }
.board-marks--bar { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 900px){ .board-marks--bar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px){ .board-marks--bar { grid-template-columns: repeat(2, 1fr); } }
.cgroup-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.board-marks--lg .mark { height: 200px; }
.board-marks--lg .mark img { max-height: 110px; }
@media (max-width: 700px){ .cgroup-row2 { grid-template-columns: 1fr; } }
.mark { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-sm); height: 104px; display: grid; place-items: center; padding: 18px; transition: background .2s ease, border-color .2s ease; }
.mark:hover { background: #fff; border-color: var(--line-2); }
.mark img { max-width: 100%; max-height: 62px; width: auto; object-fit: contain; opacity: .86; transition: opacity .2s ease; }
.mark:hover img { opacity: 1; }

.more-clients { margin-top: 46px; text-align: center; }
.more-label { display: block; font-weight: 800; font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; }
.more-marks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(28px, 4.4vw, 60px); }
.more-marks img { height: 30px; max-width: 150px; width: auto; object-fit: contain; opacity: .46; filter: grayscale(1); transition: opacity .2s ease, filter .2s ease; }
.more-marks img:hover { opacity: .9; filter: grayscale(0); }

/* case studies */
.case-grid { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease; scroll-margin-top: calc(var(--nav-h) + 20px); }
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.case-body { padding: 28px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.case-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; object-position: left center; margin-bottom: 16px; opacity: .9; }
.case-tag { font-weight: 800; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--magenta); }
.case-body p { color: var(--muted); margin: 11px 0 0; font-weight: 500; font-size: 1rem; }
.case-metric { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 18px; }
.case-num { font-family: var(--display); font-weight: 600; font-size: clamp(2.4rem, 3.4vw, 2.9rem); line-height: 1; letter-spacing: -0.02em; color: var(--ink); display: flex; align-items: baseline; }
.case-num span { font-size: 0.5em; color: var(--magenta); margin-left: 3px; }
.case-lab { font-size: 0.9rem; color: var(--muted); font-weight: 700; line-height: 1.35; max-width: 19ch; }

.work-cta { margin-top: 40px; display: flex; justify-content: center; }

@media (max-width: 760px){ .case-grid { grid-template-columns: 1fr; } }
@media (max-width: 440px){ .board-marks { grid-template-columns: repeat(2, 1fr); } }

/* ============================================================
   DATA CENTER — dedicated breakout page
   ============================================================ */
.dcp { background: var(--dark); color: var(--on-dark); }
.dcp .h1, .dcp .h2 { color: #fff; }
.dcp .lede { color: var(--on-dark-mut); }
.dcp .back-link { display: flex; align-items: center; gap: 8px; width: fit-content; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: #8fa6ff; margin-bottom: 24px; }
.dcp .back-link .arrow { transition: transform .18s ease; }
.dcp .back-link:hover .arrow { transform: translateX(-4px); }
.btn--ghost-dark { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); }
.btn--ghost-dark:hover { border-color: #fff; background: #fff; color: var(--ink); }

.dcp-hero { padding-block: calc(var(--nav-h) + 64px) clamp(54px, 6vw, 86px); }
.dcp-hero .h1 { max-width: 18ch; margin-top: 14px; }
.dcp-hero .lede { max-width: 60ch; margin-top: 18px; }
.dcp-hero .hero-cta { margin-top: 30px; }
.dcp-hero .tech-stats { margin-top: 44px; }

.dcp-band { padding-block: clamp(54px, 7vw, 92px); position: relative; }
.dcp-band--alt { background: var(--dark-2); }
.dcp-band .h2 { margin-top: 14px; }

.dcp-list { margin-top: 30px; }
.dcp-cta { text-align: center; }
.dcp-cta .lede { margin: 14px auto 26px; max-width: 48ch; }

/* ============================================================
   CASE STUDIES — dedicated breakout page
   ============================================================ */
.cs-head { padding: calc(var(--nav-h) + 60px) 0 10px; text-align: center; }
.cs-head .back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-ink); margin-bottom: 22px; }
.cs-head .back-link .arrow { transition: transform .18s ease; }
.cs-head .back-link:hover .arrow { transform: translateX(-4px); }
.cs-head .lede { margin-inline: auto; }

.cs-section { padding-top: 30px; }
.cs-row { display: grid; grid-template-columns: minmax(0, 820px); justify-content: center; padding: clamp(36px, 5vw, 60px) 0; border-top: 1px solid var(--line); }
.cs-row:first-child { border-top: 0; }

.cs-body .cs-logo { height: 52px; width: auto; max-width: 260px; object-fit: contain; object-position: left center; display: block; margin-bottom: 16px; }
.cs-body .case-tag { display: block; }
.cs-body > p { color: var(--muted); margin: 12px 0 0; font-weight: 500; font-size: 1.06rem; }
.cs-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.cs-points li { position: relative; padding-left: 26px; color: var(--ink); font-weight: 600; font-size: 0.98rem; }
.cs-points li::before { content: ""; position: absolute; left: 0; top: 0.46em; width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, var(--magenta), var(--blue-ink)); }
.cs-metrics { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; gap: clamp(28px, 5vw, 56px); flex-wrap: wrap; }
.cs-metric { display: flex; flex-direction: column; gap: 8px; }

.cs-cta { text-align: center; padding: clamp(56px, 7vw, 90px) 0; background: var(--bg-2); border-top: 1px solid var(--line); }
.cs-cta .lede { margin: 12px auto 26px; }

/* ============================================================
   DATACENTER / SOFTWARE (dark)
   ============================================================ */
.tech { background: var(--dark); color: var(--on-dark); position: relative; overflow: hidden; }
.tech::before { content:""; position: absolute; inset: -30% -10% auto auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(47,107,255,.35), transparent 70%); pointer-events: none; }
.tech::after { content:""; position: absolute; inset: auto auto -30% -10%; width: 55%; height: 80%; background: radial-gradient(closest-side, rgba(25,197,176,.28), transparent 70%); pointer-events: none; }
.tech .wrap { position: relative; z-index: 1; }
.tech .lede { color: var(--on-dark-mut); }
.tech-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.tech-grid--single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.tech-list { margin-top: 30px; display: grid; gap: 4px; }
.tech-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid rgba(255,255,255,.12); }
.tech-item:last-child { border-bottom: 1px solid rgba(255,255,255,.12); }
.tech-item .ck { width: 26px; height: 26px; border-radius: 8px; background: linear-gradient(135deg,#2f6bff,#19c5c0); display: grid; place-items: center; flex: none; }
.tech-item .ck svg { width: 14px; height: 14px; color: #fff; }
.tech-item h3 { font-size: 1.16rem; margin-bottom: 5px; color: #fff; }
.tech-item p { margin: 0; color: var(--on-dark-mut); font-size: 0.96rem; font-weight: 500; }
.tech-stats { margin-top: 30px; display: flex; gap: clamp(24px, 4vw, 52px); }
.tech-stat .ts-num { font-family: var(--display); font-weight: 600; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1; letter-spacing: -0.02em; color: #fff; }
.tech-stat .ts-num span { color: #6fe3ff; font-size: 0.55em; margin-left: 1px; }
.tech-stat .ts-lab { margin-top: 8px; font-size: 0.86rem; font-weight: 600; color: var(--on-dark-mut); max-width: 18ch; line-height: 1.35; }
@media (max-width: 900px){ .tech-grid { grid-template-columns: 1fr; } }

/* ============================================================
   PROCESS
   ============================================================ */
.proc-grid { margin-top: 52px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.proc-step { padding-top: 24px; border-top: 3px solid var(--line-2); transition: border-color .3s ease; }
.proc-step .n { font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--magenta); }
.proc-step h3 { margin: 10px 0 8px; font-size: 1.2rem; }
.proc-step p { color: var(--muted); font-size: 0.93rem; margin: 0; font-weight: 500; }
.proc-step.active { border-top-color: var(--magenta); }
@media (max-width: 900px){ .proc-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 520px){ .proc-grid { grid-template-columns: 1fr 1fr; } }

/* ============================================================
   CTA + QUOTE
   ============================================================ */
.cta { background: var(--grad-hero); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; }
.cta h2 { color: var(--ink); }
.cta .lede { color: rgba(20,20,30,.8); font-weight: 600; max-width: 42ch; }
.cta-points { margin-top: 26px; display: grid; gap: 13px; }
.cta-point { display: flex; gap: 12px; align-items: center; font-weight: 700; color: var(--ink); }
.cta-point .ck { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; flex: none; }
.cta-point .ck svg { width: 13px; height: 13px; color: #fff; }

.form-card { background: #fff; border-radius: var(--r-lg); padding: clamp(24px,3vw,38px); box-shadow: var(--shadow-lg); }
.form-card h3 { font-size: 1.5rem; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; font-weight: 500; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 800; font-size: 0.82rem; margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--bg-2); font-family: inherit; font-size: 0.98rem; font-weight: 600; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--magenta); background: #fff; box-shadow: 0 0 0 4px rgba(31,79,214,.14); }
.field textarea { resize: vertical; min-height: 92px; }
.field.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field .err { color: var(--blue-ink); font-size: 0.8rem; margin-top: 6px; display: none; font-weight: 700; }
.field.invalid input, .field.invalid select { border-color: var(--blue); }
.field.invalid .err { display: block; }
.form-card .btn--pink { width: 100%; justify-content: center; margin-top: 6px; }
.form-note { font-size: 0.8rem; color: var(--faint); text-align: center; margin-top: 14px; font-weight: 600; }
.form-success { text-align: center; padding: 28px 8px; display: none; }
.form-success.show { display: block; animation: fade .4s ease; }
.form-success .ck-big { width: 66px; height: 66px; border-radius: 50%; background: var(--grad-pink); display: grid; place-items: center; margin: 0 auto 18px; box-shadow: var(--shadow-pink); }
.form-success .ck-big svg { width: 32px; height: 32px; color: #fff; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0; font-weight: 500; }
@media (max-width: 760px){ .cta-grid { grid-template-columns: 1fr; } .field.row2 { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--dark); color: var(--on-dark-mut); padding-block: clamp(48px,6vw,80px) 34px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .brand { margin-bottom: 16px; }
.footer .brand-name { color: #fff; }
.footer .blurb { max-width: 32ch; font-size: 0.95rem; font-weight: 500; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 800; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer ul a { font-size: 0.95rem; font-weight: 600; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-bot { margin-top: 46px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; font-weight: 600; }
@media (max-width: 880px){ .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 480px){ .footer-top { grid-template-columns: 1fr; } }

/* ============================================================
   CATALOG / GALLERY (parking page)
   ============================================================ */
.gallery-head { background: var(--grad-hero); padding-block: clamp(40px, 6vw, 76px); }
.gallery-head .wrap { text-align: center; }
.gallery-head .h1 { font-family: var(--display); font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1; letter-spacing: -0.015em; color: var(--ink); margin-top: 14px; }
.gallery-head .lede { margin: 18px auto 0; max-width: 52ch; }

/* ============================================================
   RESPONSIVE (global)
   ============================================================ */
@media (max-width: 940px){
  .cap-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px){
  .nav-links, .nav-actions .btn { display: none; }
  .menu-toggle { display: block; }
  .stats { grid-template-columns: 1fr; gap: 26px 18px; }
  .stat + .stat { border-left: 0; padding-left: 0; }
  .cap-grid { grid-template-columns: 1fr; }
}
