/* ============================================
   Workplace Engineering — global styles
   ============================================ */

/* Spartan — brand display typeface (Light 300 + Medium 500 only) */
@font-face {
  font-family: "Spartan";
  src: url("fonts/Spartan-Light.ttf") format("truetype");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Spartan";
  src: url("fonts/Spartan-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* === Workplace Engineering design system tokens === */
  /* Brand blue scale (cornflower) */
  --blue-50:#f2f7fc; --blue-100:#e1ecf7; --blue-200:#c3d8ee; --blue-300:#9cbfe1;
  --blue-400:#7ba8d7; --blue-500:#6699cc; --blue-600:#4f81b8; --blue-700:#41699b;
  --blue-800:#37567d; --blue-900:#2f4863;
  /* Neutral gray scale */
  --gray-50:#f8f9fa; --gray-100:#eef0f2; --gray-200:#e0e3e7; --gray-300:#c8cdd3;
  --gray-400:#9aa1aa; --gray-500:#767d86; --gray-600:#666666; --gray-700:#4a4f56;
  --gray-800:#32363c; --gray-900:#1d2025;
  --white:#ffffff;

  /* --- Semantic mapping (stable names used across the site) --- */
  --bg: var(--gray-50);            /* cool off-white page */
  --bg-2: var(--gray-100);
  --ink: var(--gray-900);          /* text-strong */
  --ink-2: var(--gray-700);        /* body copy */
  --ink-3: var(--gray-500);        /* muted / labels */
  --rule: var(--gray-200);         /* hairline border-subtle */
  --rule-2: var(--gray-100);
  --surface: var(--white);
  --surface-warm: var(--blue-50);  /* subtle blue wash for section breaks */

  /* Accent (tweakable; defaults to brand blue) */
  --accent: #6699cc;
  --accent-2: #4f81b8;
  --accent-fg: #ffffff;

  /* Type: Spartan display, Segoe UI body (native to M365 surfaces) */
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Spartan", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Segoe UI", system-ui, -apple-system, sans-serif; /* labels: tracked all-caps */

  /* Grid + rhythm */
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-size: 17px;
  line-height: 1.55;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

/* ============================================
   Typography
   ============================================ */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.eyebrow.no-rule::before { display: none; }

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
}

/* Spartan: large display reads best in Light (300); smaller heads in Medium (500) */
h1 { font-size: clamp(42px, 6vw, 84px); line-height: 1.05; letter-spacing: -0.018em; font-weight: 300; }
h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.1; letter-spacing: -0.012em; font-weight: 500; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.22; letter-spacing: -0.008em; }
h4 { font-size: 16px; line-height: 1.3; letter-spacing: 0; }

/* Optional brand treatment: lowercase-forward display (Tweaks) */
html.display-lower h1, html.display-lower h2 { text-transform: lowercase; }

p { margin: 0; }
p.lead {
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================
   Layout primitives
   ============================================ */

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section {
  padding-top: clamp(72px, 9vw, 140px);
  padding-bottom: clamp(72px, 9vw, 140px);
}

.rule { height: 1px; background: var(--rule); border: 0; margin: 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ============================================
   Header / nav
   ============================================ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--rule);
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  cursor: pointer;
}
.brand__logo {
  height: 46px;
  width: auto;
  display: block;
}
.site-footer .brand__logo { height: 40px; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  text-decoration: none;
  color: var(--ink-2);
  padding: 8px 14px;
  font-size: 14.5px;
  letter-spacing: -0.005em;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}
.nav a:hover { color: var(--ink); background: var(--surface-warm); }
.nav a.active { color: var(--accent-2); background: var(--surface-warm); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid var(--accent);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.16s ease;
}
.header-cta:hover { background: var(--accent-2); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
  font-family: inherit;
}
.btn--primary {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
}
.btn--primary:hover { background: var(--accent-2); border-color: var(--accent-2); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--ghost:hover { background: var(--surface-warm); color: var(--accent-2); border-color: var(--accent); }
.btn--quiet {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn--quiet:hover { background: var(--surface-warm); border-color: var(--accent); color: var(--accent-2); }

.btn .arrow {
  display: inline-block;
  width: 16px;
  height: 1px;
  background: currentColor;
  position: relative;
  transition: transform 0.18s ease;
}
.btn .arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ============================================
   Hero
   ============================================ */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: clamp(70px, 8vw, 120px);
  padding-bottom: clamp(60px, 7vw, 100px);
}
.hero > .wrap { position: relative; z-index: 1; }

/* Quiet single-hue blue ramp, anchored top-right (design-system sanctioned) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(115% 78% at 100% -8%, var(--blue-50) 0%, rgba(242,247,252,0) 58%);
}

/* Ecosystem-diagram watermark — light outlined node network, right gutter, fades into text */
.hero-decor {
  position: absolute;
  top: 56px;
  right: -28px;
  width: min(52%, 600px);
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to left, #000 42%, transparent 94%);
  mask-image: linear-gradient(to left, #000 42%, transparent 94%);
}
.hero-decor svg { width: 100%; height: auto; display: block; }
@media (max-width: 820px) { .hero-decor { display: none; } }
.hero__eyebrow-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}
.hero h1 {
  max-width: 17ch;
  margin-bottom: 36px;
}
.hero__sub {
  font-size: clamp(18px, 1.4vw, 21px);
  color: var(--ink-2);
  max-width: 58ch;
  line-height: 1.5;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.hero__meta {
  border-top: 1px solid var(--rule);
  padding-top: 32px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.hero__meta .item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hero__meta .item .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.hero__meta .item .value {
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
@media (max-width: 800px) {
  .hero__meta { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Section header pattern
   ============================================ */

.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: end;
  margin-bottom: 64px;
}
.section-head .lhs { display: flex; flex-direction: column; gap: 16px; }
.section-head .rhs p {
  font-size: clamp(17px, 1.2vw, 20px);
  color: var(--ink-2);
  line-height: 1.55;
  max-width: 52ch;
}
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; }
}

/* ============================================
   Capability / outcome cards
   ============================================ */

.outcome {
  display: grid;
  grid-template-columns: 64px 1fr 1.5fr;
  gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 4vw, 48px) 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.outcome:last-child { border-bottom: 1px solid var(--rule); }
.outcome__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--accent);
  display: grid;
  place-items: center;
}
.outcome__head h3 {
  margin-bottom: 12px;
}
.outcome__head p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 36ch;
}
.outcome__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 28px;
}
.outcome__list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-2);
  font-size: 15px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.outcome__list li:last-child { border-bottom: 0; }
.outcome__list li .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  text-transform: uppercase;
}
@media (max-width: 900px) {
  .outcome { grid-template-columns: 48px 1fr; }
  .outcome__list { grid-column: 1 / -1; grid-template-columns: 1fr; }
}

/* ============================================
   Work / case study cards
   ============================================ */

.work-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px 28px;
}
@media (max-width: 900px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.work-card__media {
  aspect-ratio: 16 / 10;
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.work-card__media .placeholder {
  width: 100%;
  height: 100%;
  background-image:
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(10,26,47,0.04) 14px 15px);
}
.work-card__media .pmark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.work-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.work-card__tags {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.work-card__tags .dot {
  width: 3px; height: 3px; border-radius: 999px; background: var(--ink-3);
}
.work-card h3 { margin-bottom: 8px; }
.work-card__excerpt {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 48ch;
}
.work-card__cta {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
  font-weight: 500;
}

/* Featured (large) variant */
.work-card--feature .work-card__media { aspect-ratio: 21/9; }
.work-card--feature h3 { font-size: clamp(24px, 2.2vw, 32px); }

/* ============================================
   Approach / numbered process
   ============================================ */

.approach {
  background: var(--surface-warm);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.approach__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.approach__step {
  background: var(--surface-warm);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 200px;
}
.approach__step .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-3);
}
.approach__step h4 { font-size: 18px; letter-spacing: -0.015em; font-weight: 500; }
.approach__step p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
@media (max-width: 900px) {
  .approach__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Tech / partner band
   ============================================ */

.partner-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.partner-band__left h2 { margin-bottom: 20px; }
.partner-band__left p { color: var(--ink-2); max-width: 50ch; }
.partner-band__chips {
  margin-top: 28px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.chip {
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--accent); }

.partner-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.partner-card__logo img { max-width: 220px; }
.partner-card .row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--rule-2);
}
.partner-card .row:last-child { border-bottom: 1px solid var(--rule-2); }
.partner-card .row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.partner-card .row .v { font-size: 14.5px; color: var(--ink); }
@media (max-width: 900px) { .partner-band { grid-template-columns: 1fr; } }

/* ============================================
   CTA strip
   ============================================ */

.cta-strip {
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: var(--radius-xl, 16px);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: end;
}
.cta-strip h2 { color: var(--accent-fg); max-width: 18ch; }
.cta-strip__right { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.cta-strip__right p { color: color-mix(in oklab, var(--accent-fg) 80%, transparent); max-width: 36ch; }
.cta-strip .btn--ghost {
  border-color: var(--accent-fg);
  color: var(--accent-fg);
}
.cta-strip .btn--ghost:hover { background: var(--accent-fg); color: var(--accent); }
.cta-strip .btn--primary {
  background: var(--accent-fg);
  color: var(--accent);
  border-color: var(--accent-fg);
}
.cta-strip .btn--primary:hover { background: color-mix(in oklab, var(--accent-fg) 92%, transparent); }
@media (max-width: 900px) { .cta-strip { grid-template-columns: 1fr; } }

/* ============================================
   Footer
   ============================================ */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 64px 0 40px;
  background: var(--bg);
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 56px;
}
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 18px 0;
  font-weight: 400;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer a {
  text-decoration: none;
  color: var(--ink);
  font-size: 14.5px;
  cursor: pointer;
}
.site-footer a:hover { color: var(--accent); }
.site-footer__brand { max-width: 36ch; }
.site-footer__brand p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-top: 12px; }
.site-footer__bottom {
  border-top: 1px solid var(--rule);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--ink-3);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .site-footer__inner { grid-template-columns: 1fr 1fr; }
}

/* ============================================
   Page heads (About, Services, Work, Blog, Contact)
   ============================================ */

.page-head {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.page-head__row {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
}
.page-head h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  max-width: 18ch;
  margin: 16px 0 0;
}
.page-head p {
  color: var(--ink-2);
  font-size: clamp(17px, 1.2vw, 19px);
  line-height: 1.55;
  max-width: 50ch;
}
@media (max-width: 900px) { .page-head__row { grid-template-columns: 1fr; } }

/* ============================================
   Leadership / team
   ============================================ */

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: 1fr; } }
.team-card {
  display: flex; flex-direction: column; gap: 16px;
}
.team-card__photo {
  aspect-ratio: 4 / 5;
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); }
.team-card .name {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.012em;
}
.team-card .role {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.team-card .bio { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.team-card__links {
  display: flex; gap: 14px;
  font-size: 13px;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.team-card__links a { text-decoration: none; color: var(--ink-2); }
.team-card__links a:hover { color: var(--accent); }

/* ============================================
   Blog list
   ============================================ */

.post-row {
  display: grid;
  grid-template-columns: 110px 160px 1fr auto;
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--rule);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}
.post-row:first-of-type { border-top: 1px solid var(--rule); }
.post-row__thumb {
  aspect-ratio: 4/3;
  background: var(--surface-warm);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.post-row__thumb img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.post-row__date {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  padding-top: 8px;
}
.post-row__title {
  font-size: 22px;
  letter-spacing: -0.015em;
  font-weight: 500;
  margin: 0 0 8px;
}
.post-row__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.post-row__excerpt {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.5;
  max-width: 64ch;
}
.post-row__arrow {
  font-family: var(--font-mono);
  color: var(--ink-3);
  padding-top: 8px;
}
.post-row:hover .post-row__title { color: var(--accent); }
@media (max-width: 800px) {
  .post-row { grid-template-columns: 1fr; gap: 8px; }
  .post-row__date, .post-row__arrow { padding-top: 0; }
  .post-row__thumb { aspect-ratio: 16/9; margin-bottom: 8px; }
}

/* ============================================
   Case study detail
   ============================================ */

.cs-hero {
  padding-top: clamp(80px, 9vw, 140px);
  padding-bottom: clamp(40px, 5vw, 80px);
}
.cs-hero__tags {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.cs-hero h1 {
  font-size: clamp(40px, 5.5vw, 72px);
  letter-spacing: -0.03em;
  max-width: 22ch;
  margin: 0 0 32px;
}
.cs-hero__meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 40px;
}
.cs-hero__meta .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 6px;
}
.cs-hero__meta .v { font-size: 16px; color: var(--ink); }
@media (max-width: 800px) { .cs-hero__meta { grid-template-columns: 1fr 1fr; } }

.cs-body {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(72px, 8vw, 120px);
  padding-bottom: clamp(72px, 8vw, 120px);
}
.cs-body__nav {
  position: sticky;
  top: 90px;
  align-self: start;
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.cs-body__nav a { text-decoration: none; color: var(--ink-3); padding: 6px 0; cursor: pointer; }
.cs-body__nav a:hover { color: var(--accent); }
.cs-body__content { max-width: 64ch; }
.cs-body__content h3 {
  margin-top: 56px; margin-bottom: 16px;
  font-size: 24px; font-weight: 500;
  letter-spacing: -0.015em;
}
.cs-body__content h3:first-child { margin-top: 0; }
.cs-body__content p { color: var(--ink-2); margin-bottom: 18px; font-size: 16.5px; line-height: 1.65; }
.cs-body__content ul { color: var(--ink-2); padding-left: 18px; margin: 0 0 18px; }
.cs-body__content li { margin-bottom: 8px; }
.cs-body__content strong { color: var(--ink); font-weight: 500; }
@media (max-width: 900px) {
  .cs-body { grid-template-columns: 1fr; }
  .cs-body__nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

.cs-pull {
  background: var(--surface-warm);
  border-left: 2px solid var(--accent);
  padding: 28px 32px;
  margin: 28px 0;
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.cs-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  margin: 32px 0;
}
.cs-stats__cell {
  background: var(--surface-warm);
  padding: 24px;
}
.cs-stats__cell .v {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.cs-stats__cell .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 6px;
}
@media (max-width: 700px) { .cs-stats { grid-template-columns: 1fr; } }

/* ============================================
   Contact
   ============================================ */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.field input, .field textarea, .field select {
  font-family: inherit;
  font-size: 15.5px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 4px;
  color: var(--ink);
  outline: none;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
.field textarea { min-height: 140px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

.contact-info {
  border-left: 1px solid var(--rule);
  padding-left: clamp(24px, 4vw, 48px);
  display: flex; flex-direction: column; gap: 28px;
}
@media (max-width: 900px) { .contact-info { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); padding-top: 32px; } }

.contact-info__block { display: flex; flex-direction: column; gap: 6px; }
.contact-info__block .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.contact-info__block .v { font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.contact-info__block a { color: inherit; text-decoration: none; }
.contact-info__block a:hover { color: var(--accent); }

/* ============================================
   Misc
   ============================================ */

.subnote {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.form-success {
  padding: 18px 20px;
  border: 1px solid var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  border-radius: 4px;
  color: var(--ink);
  font-size: 15px;
}

/* Animations: tasteful, very subtle */
.fade-in {
  animation: fadeIn 0.45s ease both;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   Hero image band (home)
   ============================================ */

.hero-banner {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-warm);
}
.hero-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,26,47,0) 40%, rgba(10,26,47,0.55) 100%);
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

/* ============================================
   Page hero image (about, services, case study)
   ============================================ */

.page-hero-img {
  margin-top: 48px;
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-warm);
}
.page-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Inline image used inside text blocks */
.inline-img {
  margin: 24px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--surface-warm);
}
.inline-img img { width: 100%; height: auto; display: block; }
