/* Blindsheep Digital — site styles */

:root {
  --paper: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ebe8e1;
  --ink: #0f1724;
  --ink-2: #3d4655;
  --muted: #6b7280;
  --line: rgba(15, 23, 36, 0.12);
  --blue: #1f86d1;
  --blue-ink: #0d5f9e;
  --blue-soft: rgba(31, 134, 209, 0.1);
  --pink: #ff4d94;
  --night: #0c1420;
  --night-ink: #e9edf3;

  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "Instrument Serif", ui-serif, Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(15, 23, 36, 0.04), 0 12px 32px -12px rgba(15, 23, 36, 0.18);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b111a;
    --surface: #121a26;
    --surface-2: #182233;
    --ink: #e9edf3;
    --ink-2: #b7c0cd;
    --muted: #8a94a3;
    --line: rgba(233, 237, 243, 0.12);
    --blue: #4ba8ec;
    --blue-ink: #7cc0f2;
    --blue-soft: rgba(75, 168, 236, 0.12);
    --pink: #ff6aa8;
    --night: #060a10;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b111a;
  --surface: #121a26;
  --surface-2: #182233;
  --ink: #e9edf3;
  --ink-2: #b7c0cd;
  --muted: #8a94a3;
  --line: rgba(233, 237, 243, 0.12);
  --blue: #4ba8ec;
  --blue-ink: #7cc0f2;
  --blue-soft: rgba(75, 168, 236, 0.12);
  --pink: #ff6aa8;
  --night: #060a10;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -12px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; }
::selection { background: var(--pink); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }

.serif { font-family: var(--font-serif); font-weight: 400; font-style: italic; letter-spacing: -0.01em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue-ink);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--pink); border-radius: 2px; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--muted); }

/* ---------- Logo ---------- */

.logo {
  display: inline-flex; align-items: baseline; gap: 0.32em;
  text-decoration: none; font-size: 19px; letter-spacing: 0.01em; white-space: nowrap;
}
.logo b { font-weight: 800; }
.logo span { font-weight: 400; }
.logo .eyes { position: relative; display: inline-block; }
.logo .eyes svg {
  position: absolute; left: 50%; top: 50%; width: 100%; height: auto;
  transform: translate(-50%, -50%); overflow: visible;
}
.logo .eyes .e { opacity: 0; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
/* Frosted backdrop lives on a layer behind the header, so the header itself doesn't become a
   containing block for the mobile menu (and no browser paints the menu see-through) */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
}
/* Solid header while the mobile menu is open (some renderers paint the menu see-through under a blur) */
.site-header.menu-open::before { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 600; color: var(--ink-2);
  padding: 8px 14px; border-radius: 999px; transition: color 0.15s, background 0.15s;
}
.nav a:hover { color: var(--ink); background: var(--blue-soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a.btn { color: #fff; margin-left: 8px; }
/* Services dropdown: opens on hover/focus with a mouse, on tap via site.js */
.nav-item { position: relative; }
.nav-trigger { display: inline-flex; align-items: center; gap: 6px; }
.nav-trigger svg { width: 14px; height: 14px; transition: transform 0.2s; }
.menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translate(-50%, 6px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 28px; width: 580px; padding: 22px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity 0.16s, transform 0.16s, visibility 0.16s;
}
.menu::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; } /* hover bridge */
@media (hover: hover) and (min-width: 761px) {
  .has-menu:hover .menu, .has-menu:focus-within .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .nav-trigger svg { transform: rotate(180deg); }
}
.has-menu.open .menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-menu.open .nav-trigger svg { transform: rotate(180deg); }
.menu-col { display: flex; flex-direction: column; gap: 2px; }
.menu-label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); padding: 0 10px 8px; }
.nav .menu a { display: block; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2); }
.nav .menu a:hover { background: var(--blue-soft); color: var(--ink); }
.nav .menu a.menu-feature { margin-top: auto; background: var(--blue-soft); padding: 12px 14px; }
.menu-feature b { display: block; color: var(--blue-ink); font-size: 14.5px; }
.menu-feature span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
.svc { scroll-margin-top: 90px; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  color: var(--ink); cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .nav a { font-size: 18px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a:hover { background: none; }
  .nav a.btn { margin: 16px 0 0; text-align: center; border-radius: 999px; border: 0; }
  .nav { max-height: calc(100vh - 72px); overflow-y: auto; }
  .nav-trigger { justify-content: space-between; width: 100%; }
  .menu {
    position: static; transform: none; width: auto; grid-template-columns: 1fr; gap: 14px;
    padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0;
    display: none; opacity: 1; visibility: visible; transition: none;
  }
  .menu::before { display: none; }
  .has-menu.open .menu { display: grid; transform: none; padding: 10px 0 14px; border-bottom: 1px solid var(--line); }
  .nav .menu a { font-size: 16px; padding: 9px 4px 9px 14px; border-bottom: 0; border-radius: 8px; }
  .menu-label { padding: 6px 4px 2px 14px; }
  .nav .menu a.menu-feature { margin-top: 6px; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none;
  background: var(--blue); color: #fff; border: 0; cursor: pointer;
  padding: 14px 24px; border-radius: 999px;
  transition: transform 0.15s, background 0.15s, box-shadow 0.15s;
  box-shadow: 0 8px 20px -10px var(--blue);
}
.btn:hover { background: var(--blue-ink); transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; transition: transform 0.15s; }
.btn:hover svg { transform: translateX(3px); }
.btn-ghost {
  background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-ghost:hover { background: var(--surface); }

/* ---------- Hero ---------- */

.hero { position: relative; padding: clamp(56px, 10vw, 128px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero h1 {
  font-size: clamp(44px, 8.4vw, 112px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98;
  max-width: 13ch;
}
.hero h1 .serif { display: block; font-size: 1.02em; color: var(--blue); letter-spacing: -0.02em; margin-top: 0.06em; }
.hero .lede { margin-top: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
/* Homepage: the hero fills the first screen and the path runs behind it, then turns and
   leaves off the bottom edge so it leads the eye down the page */
.hero-home { min-height: calc(100svh - 72px); display: flex; align-items: center; padding-bottom: clamp(150px, 24vh, 260px); }
.hero-home > .wrap { position: relative; z-index: 1; }
.hero-path {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  width: 100%; height: clamp(200px, 38vh, 400px);
  color: var(--blue); pointer-events: none;
}
.hero-path .trail { stroke-dasharray: 2 12; animation: march 1.4s linear infinite; }

@keyframes march { to { stroke-dashoffset: -14; } }

@media (max-width: 760px) { .hero-home { min-height: 0; padding-top: 40px; padding-bottom: 120px; } .hero-path { height: 150px; } }
@media (prefers-reduced-motion: reduce) {
  .hero-path .trail, .hero-path .walker { animation: none; }
  .hero-path .walker { display: none; }
  html { scroll-behavior: auto; }
}

.page-hero { padding: clamp(56px, 9vw, 112px) 0 clamp(40px, 6vw, 72px); }
.page-hero h1 { font-size: clamp(40px, 6.4vw, 84px); font-weight: 800; letter-spacing: -0.04em; max-width: 16ch; margin-top: 18px; }
.page-hero h1 .serif { color: var(--blue); }
.page-hero .lede { margin-top: 24px; }

/* ---------- Sections ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; margin-top: 14px; }
.section-head h2 .serif { color: var(--blue); }

.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; letter-spacing: -0.035em; margin-top: 14px; }
.prose { font-size: 18px; color: var(--ink-2); }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--ink); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Intro statement */
.statement {
  font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.22;
  max-width: 28ch;
}
.statement .serif { color: var(--blue); }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; min-height: 230px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.service .icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue);
}
.service .icon svg { width: 22px; height: 22px; }
.service h3 { font-size: 20px; margin-top: auto; }
.service p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 960px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services { grid-template-columns: 1fr; } .service { min-height: 0; } }

/* Process */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); counter-reset: step; }
.step { padding: 28px 28px 8px 0; border-right: 1px solid var(--line); counter-increment: step; }
.step + .step { padding-left: 28px; }
.step:last-child { border-right: 0; }
.step::before {
  content: "0" counter(step); display: block; font-family: var(--font-serif); font-style: italic;
  font-size: 44px; line-height: 1; color: var(--blue); margin-bottom: 20px;
}
.step h3 { font-size: 20px; margin-bottom: 10px; }
.step p { font-size: 15px; color: var(--muted); margin: 0; }
@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .step { border-bottom: 1px solid var(--line); padding: 28px 20px 28px 0 !important; }
  .step:nth-child(2n) { border-right: 0; padding-left: 20px !important; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 24px 0 !important; }
}

/* Work cards */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(20px, 3vw, 32px); }
.work-card { text-decoration: none; display: flex; flex-direction: column; gap: 18px; }
.work-card .media {
  aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--surface-2); border: 1px solid var(--line);
}
.work-card img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1); }
.work-card:hover img { transform: scale(1.035); }
.work-card .meta { display: flex; justify-content: space-between; align-items: start; gap: 16px; }
.work-card h3 { font-size: clamp(22px, 2.4vw, 28px); letter-spacing: -0.025em; }
.work-card p { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.work-card .arrow {
  flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.work-card .arrow svg { width: 18px; height: 18px; }
.work-card:hover .arrow { background: var(--blue); border-color: var(--blue); color: #fff; transform: rotate(-45deg); }
@media (max-width: 720px) { .work-grid { grid-template-columns: 1fr; } }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tags li {
  font-size: 14px; font-weight: 600; padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}

/* Specialties list */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checklist li {
  display: flex; gap: 14px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line);
  font-size: 17px; font-weight: 600;
}
.checklist li:first-child { border-top: 1px solid var(--line); }
.checklist li::before { content: "×"; color: var(--blue); font-weight: 800; font-size: 20px; line-height: 1; }

/* CTA band */
.cta {
  position: relative; overflow: hidden;
  background: var(--night); color: var(--night-ink); border-radius: clamp(20px, 3vw, 32px);
  padding: clamp(48px, 8vw, 104px) clamp(24px, 6vw, 80px);
}
.cta h2 { font-size: clamp(36px, 6vw, 76px); font-weight: 800; letter-spacing: -0.04em; max-width: 14ch; }
.cta h2 .serif { color: #6cbcf3; }
.cta p { color: rgba(233, 237, 243, 0.72); font-size: 19px; max-width: 48ch; margin: 22px 0 32px; }
.cta .btn { box-shadow: none; }
.cta::after {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 134, 209, 0.55), transparent 65%);
  pointer-events: none;
}

/* ---------- Case study ---------- */

.cs-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(32px, 5vw, 56px); }
.back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none; }
.back:hover { color: var(--ink); }
.back svg { width: 16px; height: 16px; }
.cs-hero h1 { font-size: clamp(40px, 7vw, 96px); font-weight: 800; letter-spacing: -0.045em; margin: 24px 0 0; max-width: 14ch; }
.cs-hero .lede { margin-top: 24px; }
.cs-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: clamp(32px, 5vw, 56px); padding-top: 28px; border-top: 1px solid var(--line);
}
.cs-facts h4 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; font-weight: 700; }
.cs-facts ul { list-style: none; padding: 0; margin: 0; font-weight: 600; font-size: 15px; line-height: 1.8; }
@media (max-width: 720px) { .cs-facts { grid-template-columns: 1fr 1fr; } }

.figure {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.figure img { width: 100%; }
.figure.pad { padding: clamp(12px, 2vw, 24px); background: #fff; }
.figure figcaption { padding: 14px 18px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface); }
.figure.pad figcaption { margin: clamp(12px, 2vw, 24px) calc(-1 * clamp(12px, 2vw, 24px)) calc(-1 * clamp(12px, 2vw, 24px)); }
.figure.tall { max-height: 820px; overflow-y: auto; overscroll-behavior: contain; }
.figure-lead { margin-bottom: clamp(48px, 7vw, 96px); }

.cs-section { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line); }
.cs-section > h2 { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); padding-top: 8px; position: sticky; top: 100px; align-self: start; }
.cs-section .prose { max-width: 68ch; }
.cs-section .figures { display: grid; gap: 20px; margin-top: 32px; }
.cs-section .figures.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 860px) {
  .cs-section { grid-template-columns: 1fr; gap: 16px; }
  .cs-section > h2 { position: static; padding: 0; }
  .cs-section .figures.two { grid-template-columns: 1fr; }
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare .label {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 12px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.compare .after .label { background: var(--blue); color: #fff; }
@media (max-width: 720px) { .compare { grid-template-columns: 1fr; } }

.next-project {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  text-decoration: none; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--line);
}
.next-project small { display: block; font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.next-project strong { font-size: clamp(32px, 5.4vw, 68px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.next-project .arrow {
  flex: none; width: clamp(56px, 8vw, 88px); height: clamp(56px, 8vw, 88px); border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff; transition: transform 0.25s;
}
.next-project .arrow svg { width: 40%; height: 40%; }
.next-project:hover .arrow { transform: rotate(-45deg); }

/* ---------- Contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-size: 14px; font-weight: 700; }
.field input, .field textarea {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 14px; width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
fieldset.field { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label {
  font-size: 14px; font-weight: 600; padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--paper); transition: all 0.15s; user-select: none;
}
.chips input:checked + label { background: var(--blue); border-color: var(--blue); color: #fff; }
.chips input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row-2 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }
.form-status { font-size: 15px; font-weight: 600; margin: 0; }
.form-status.ok { color: #1a8a5a; }
.form-status.err { color: #c0392b; }
.contact-aside .contact-line { display: flex; gap: 14px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.contact-aside .contact-line:first-of-type { border-top: 1px solid var(--line); margin-top: 32px; }
.contact-aside .contact-line svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

/* ---------- Proof stats ---------- */

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
}
.stat { background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.stat b { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.stat b .serif { color: var(--blue); }
.stat span { display: block; margin-top: 12px; font-size: 14.5px; color: var(--muted); line-height: 1.45; }
@media (max-width: 860px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Industries strip ---------- */

.industries { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.industries .label { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-right: 8px; }
.industries span:not(.label) { font-size: 16px; font-weight: 700; color: var(--ink-2); display: inline-flex; align-items: center; gap: 10px; }
.industries span:not(.label)::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* ---------- Service groups ---------- */

.pillars { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr; } }
.pillar { border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; gap: 22px; border: 1px solid var(--line); background: var(--surface); }
.pillar.dark { background: var(--night); color: var(--night-ink); border-color: transparent; }
.pillar .tag { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-ink); }
.pillar.dark .tag { color: #6cbcf3; }
.pillar h3 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.pillar h3 .serif { color: var(--blue); }
.pillar.dark h3 .serif { color: #6cbcf3; }
.pillar p { margin: 0; color: var(--muted); font-size: 16px; }
.pillar.dark p { color: rgba(233, 237, 243, 0.7); }
.pillar ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.pillar li { padding: 13px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 15.5px; display: flex; gap: 12px; align-items: baseline; }
.pillar.dark li { border-top-color: rgba(233, 237, 243, 0.12); }
.pillar li::before { content: "×"; color: var(--blue); font-weight: 800; }
.pillar.dark li::before { color: #6cbcf3; }
.pillar .link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; text-decoration: none; color: inherit; }
.pillar .link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.pillar .link:hover svg { transform: translateX(3px); }

/* ---------- Text case-study cards (no imagery: confidential work) ---------- */

.story-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
@media (max-width: 760px) { .story-grid { grid-template-columns: 1fr; } }
.story {
  position: relative; overflow: hidden; text-decoration: none; display: flex; flex-direction: column; gap: 14px;
  min-height: 300px; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--line); transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.story:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--blue) 40%, transparent); }
.story.feature { grid-column: 1 / -1; background: var(--night); color: var(--night-ink); border-color: transparent; min-height: 340px; }
.story .kicker { display: flex; flex-wrap: wrap; gap: 8px; }
.story .kicker span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
.story.feature .kicker span { background: rgba(108, 188, 243, 0.14); color: #8fcaf5; }
.story h3 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; max-width: 22ch; }
.story.feature h3 { font-size: clamp(30px, 4vw, 52px); max-width: 20ch; }
.story p { margin: 0; color: var(--muted); font-size: 15.5px; max-width: 58ch; }
.story.feature p { color: rgba(233, 237, 243, 0.72); font-size: 17px; }
.story .metric { margin-top: auto; display: flex; align-items: baseline; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.story.feature .metric { border-top-color: rgba(233, 237, 243, 0.12); }
.story .metric b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--blue); }
.story.feature .metric b { color: #6cbcf3; }
.story .metric span { font-size: 14px; color: var(--muted); }
.story.feature .metric span { color: rgba(233, 237, 243, 0.65); }
.story.feature::after {
  content: ""; position: absolute; right: -140px; top: -140px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 134, 209, 0.45), transparent 65%); pointer-events: none;
}

/* Smaller image cards for design work */
.work-grid.compact { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.work-grid.compact h3 { font-size: 18px; }
.work-grid.compact .arrow { display: none; }
@media (max-width: 960px) { .work-grid.compact { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Health check offer ---------- */

.offer { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }
.offer ol { list-style: none; counter-reset: o; padding: 0; margin: 0; display: grid; gap: 10px; }
.offer li { counter-increment: o; display: flex; gap: 16px; align-items: baseline; background: rgba(233, 237, 243, 0.06); border: 1px solid rgba(233, 237, 243, 0.1); border-radius: 14px; padding: 16px 18px; color: var(--night-ink); font-weight: 600; }
.offer li::before { content: "0" counter(o); font-family: var(--font-serif); font-style: italic; font-size: 24px; line-height: 1; color: #6cbcf3; }
.offer li small { display: block; font-weight: 400; color: rgba(233, 237, 243, 0.62); font-size: 14px; margin-top: 2px; }

/* ---------- Services page ---------- */

.svc-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.svc-nav a { text-decoration: none; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink-2); }
.svc-nav a:hover { background: var(--surface); color: var(--ink); }
.svc-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 2px solid var(--ink); margin-bottom: 8px; scroll-margin-top: 96px; }
.svc-group-head h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -0.04em; }
.svc-group-head h2 .serif { color: var(--blue); }
.svc-group-head p { margin: 0; color: var(--muted); max-width: 46ch; }
.svc { display: grid; grid-template-columns: 64px 1fr 1.1fr; gap: clamp(16px, 3vw, 40px); padding: clamp(28px, 4vw, 44px) 0; border-bottom: 1px solid var(--line); }
.svc .num { font-family: var(--font-serif); font-style: italic; font-size: 40px; line-height: 1; color: var(--blue); }
.svc h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -0.025em; margin-bottom: 10px; }
.svc > div > p { margin: 0; color: var(--ink-2); }
.svc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.svc li { display: flex; gap: 10px; align-items: baseline; }
.svc li::before { content: "→"; color: var(--blue); font-weight: 700; }
.svc .proof { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.svc .proof b { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) {
  .svc { grid-template-columns: 1fr; gap: 12px; }
  .svc .num { font-size: 30px; }
}

.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .engage { grid-template-columns: 1fr; } }
.engage article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.engage article.hl { border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.engage .tag { font-size: 11.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-ink); }
.engage h3 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.engage p { margin: 0; color: var(--muted); font-size: 15px; }
.engage ul { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.engage li { display: flex; gap: 10px; }
.engage li::before { content: "×"; color: var(--blue); font-weight: 800; }

/* ---------- Footer ---------- */

.site-footer { padding: clamp(48px, 7vw, 80px) 0 40px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.footer-top p { color: var(--muted); font-size: 15px; max-width: 34ch; margin: 14px 0 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; padding: 0; margin: 0; }
.footer-nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.footer-nav a:hover { color: var(--pink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 48px; font-size: 14px; color: var(--muted); }
.social { display: flex; gap: 6px; }
.social a { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); transition: color 0.15s, background 0.15s; }
.social a:hover { color: var(--ink); background: var(--blue-soft); }
.social svg { width: 18px; height: 18px; }
.theme-toggle { background: none; border: 0; color: var(--muted); cursor: pointer; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.theme-toggle:hover { color: var(--ink); background: var(--blue-soft); }
.theme-toggle svg { width: 18px; height: 18px; }

/* ---------- Reveal ---------- */

/* Only hidden once site.js has run and tagged <html>, so content never depends on JS */
.js-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js-ready .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-ready .reveal { opacity: 1; transform: none; transition: none; } }

/* Dark-on-dark: keep the night panels distinct when the page itself is dark */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .story.feature,
  :root:not([data-theme="light"]) .pillar.dark,
  :root:not([data-theme="light"]) .cta { box-shadow: inset 0 0 0 1px rgba(233, 237, 243, 0.1); }
}
:root[data-theme="dark"] .story.feature,
:root[data-theme="dark"] .pillar.dark,
:root[data-theme="dark"] .cta { box-shadow: inset 0 0 0 1px rgba(233, 237, 243, 0.1); }

/* Case-study labels (AEM studies) */
.cs-hero .kicker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cs-hero .kicker span { font-size: 11.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-ink); }
.cs-hero .kicker + h1 { margin-top: 16px; }
.cs-section .prose ul { padding-left: 20px; margin: 0 0 1em; }
.cs-section .prose li { margin-bottom: 6px; }
.cs-section .prose li::marker { color: var(--blue); }
.cs-section .prose a { color: var(--blue-ink); font-weight: 600; }

/* The little sheep walking the hero path */
.hero-path .leg { transform-box: fill-box; transform-origin: 50% 0; animation: trot 0.5s ease-in-out infinite alternate; }
.hero-path .leg-b { animation-direction: alternate-reverse; }
.hero-path .head { transform-box: fill-box; transform-origin: 50% 90%; animation: nod 1s ease-in-out infinite alternate; }
@keyframes trot { from { transform: rotate(14deg); } to { transform: rotate(-14deg); } }
@keyframes nod { from { transform: rotate(-4deg); } to { transform: rotate(5deg); } }
@media (prefers-reduced-motion: reduce) { .hero-path .leg, .hero-path .head { animation: none; } }
.hero-path .sheep { transform-box: fill-box; transform-origin: 50% 100%; transform: scale(1.15); }
@media (max-width: 760px) { .hero-path .sheep { transform: scale(2.1); } }

/* Logo: the X eyes blink when you hover it */
.logo:hover .eyes svg { animation: blink 0.9s ease-in-out; }
@keyframes blink {
  0%, 100% { transform: translate(-50%, -50%) scaleY(1); }
  18%, 52% { transform: translate(-50%, -50%) scaleY(0.12); }
  35% { transform: translate(-50%, -50%) scaleY(1); }
}
@media (prefers-reduced-motion: reduce) { .logo:hover .eyes svg { animation: none; } }
/* Dark mode: a light outline keeps the sheep's black face visible on the dark background */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-path .face { stroke: #e9edf3; } }
:root[data-theme="dark"] .hero-path .face { stroke: #e9edf3; }

/* Hot pink: a sparing second accent, complementary to the brand blue */
.hero h1 .pop { color: var(--pink); }
.prose a:hover, .cs-section .prose a:hover { color: var(--pink); }
.cta::before {
  content: ""; position: absolute; left: -160px; bottom: -220px; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 77, 148, 0.22), transparent 65%); pointer-events: none;
}
.svc .proof a { color: var(--blue-ink); font-weight: 600; } .svc .proof a:hover { color: var(--pink); }
