/* ============================================================
   EKS — Redesign (Direction A · Editorial Cream)
   Loaded as the only stylesheet on every page.
   Pairs with templates/base.html and per-page templates.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Poppins:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---------- tokens ---------- */
:root {
  --surface:        #f6efe4;
  --surface-2:      #ede4d3;
  --ink:            #16140f;
  --muted:          #7a7368;
  --hairline:       #dcd3c4;
  --accent:         oklch(58% 0.12 55);   /* deep ochre */
  --footer-bg:      #2c2620;
  --footer-fg:      #efe6d4;
  --footer-hair:    rgba(239,230,212,0.15);
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Poppins', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  opacity: 0;
  transition: opacity .55s ease-out;
}
body.is-ready { opacity: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ---------- motion primitives ---------- */
[data-reveal] {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  filter: blur(6px);
  transition:
    opacity .9s cubic-bezier(.2,.7,.2,1),
    transform .9s cubic-bezier(.2,.7,.2,1),
    filter .9s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform, filter;
}
[data-reveal="left"]  { transform: translate3d(-32px, 0, 0); }
[data-reveal="right"] { transform: translate3d(32px, 0, 0); }
[data-reveal="fade"]  { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal].in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal], body, html { transition: none !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}

/* ---------- shell layout ---------- */
.page { min-height: 100vh; display: grid; grid-template-columns: 200px 1fr; }

@media (max-width: 900px) {
  .page { grid-template-columns: 1fr; }
}

.rail {
  position: sticky; top: 0; align-self: start;
  height: 100vh;
  padding: 40px 28px;
  display: flex; flex-direction: column; justify-content: space-between;
  border-right: 1px solid var(--hairline);
  background: var(--surface);
}
.rail .brand-mark {
  display: inline-block;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.rail .brand-mark img {
  display: block;
  height: 64px;
  width: auto;
  object-fit: contain;
}
.rail .brand-mark:hover { transform: translateY(-2px); }
.rail nav ul {
  list-style: none; padding: 0; margin: 56px 0 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.rail nav a {
  font-family: 'Montserrat'; font-weight: 500; font-size: 15px;
  letter-spacing: -0.01em;
  padding: 4px 0;
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); opacity: .7;
  transition: opacity .25s ease, gap .35s cubic-bezier(.2,.7,.2,1);
}
.rail nav a::before {
  content: "";
  width: 0; height: 1px;
  background: var(--accent);
  transition: width .35s cubic-bezier(.2,.7,.2,1);
}
.rail nav a:hover { opacity: 1; gap: 14px; }
.rail nav a:hover::before { width: 12px; }
.rail nav li.active a { opacity: 1; font-weight: 600; }
.rail nav li.active a::before { width: 18px; }
.rail .social {
  margin: 24px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 12px; opacity: .55;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.rail .social a {
  display: inline-block;
  transition: color .25s ease, transform .25s ease;
}
.rail .social a:hover { color: var(--accent); transform: translateX(2px); }
.rail .monogram-img {
  width: 56px; height: auto;
  opacity: .25;
  filter: saturate(0);
  transition: opacity .4s ease, transform .9s cubic-bezier(.2,.7,.2,1);
  align-self: flex-start;
}
.rail .monogram-img:hover { opacity: .55; transform: rotate(-6deg); }

.rail .rail-bar { display: contents; }
.rail-toggle { display: none; }

main { min-width: 0; }

/* ---------- page-level H1 + crumb ---------- */
.crumb {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: .55;
}
.crumb .here { color: var(--accent); }
.page-h1 {
  font-family: 'Montserrat'; font-weight: 700;
  font-size: 92px; letter-spacing: -0.04em; line-height: 0.95;
  margin: 14px 0 0;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
  display: inline-block;
}

/* ---------- type primitives ---------- */
.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  opacity: .7;
}
.eyebrow .accent { color: var(--accent); }

h2, h3, h4 { margin: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  padding: 14px 22px;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, gap .35s cubic-bezier(.2,.7,.2,1);
}
.btn:hover { gap: 14px; }
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--surface); transform: translateY(-1px); }
.btn .arrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-weight: 400;
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.btn:hover .arrow { transform: translate(2px, -2px); }

/* ---------- KPI ---------- */
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 24px 0; }
.kpi .num {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 64px; line-height: 1; letter-spacing: -0.04em;
}
.kpi .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: .6;
}

/* ---------- code block (dark) ---------- */
.codeblock {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px; line-height: 1.7;
  padding: 28px;
  border-radius: 4px;
  background: var(--ink); color: var(--surface);
}
.codeblock .k { color: oklch(72% 0.13 55); }
.codeblock .s { opacity: .65; }
.codeblock .c { opacity: .45; font-style: italic; }

/* ============================================================
   HOME (index.html)
   ============================================================ */
.hero {
  padding: 88px 80px 64px;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 80px; align-items: end;
}
.hero .lead h1 {
  font-family: 'Montserrat'; font-weight: 700;
  font-size: 88px; line-height: 0.94; letter-spacing: -0.035em;
  margin: 28px 0 0;
  text-wrap: balance;
}
.hero .lead h1 em { font-style: normal; color: var(--accent); }
.hero .lead .sub {
  margin: 28px 0 0; font-size: 17px; line-height: 1.55;
  max-width: 460px; color: var(--muted);
}
.hero .lead .cta-row { margin-top: 40px; display: flex; gap: 12px; }

.hero .visual {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 24px;
  aspect-ratio: 4/5;
  display: flex; flex-direction: column;
}
.hero .visual .meta {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: .5; margin-bottom: 18px;
}
.hero .visual .codeblock { flex: 1; border-radius: 2px; }
.hero .visual.as-image {
  background-color: transparent;
  border: none;
  padding: 0;
  border-radius: 4px;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.stats {
  padding: 64px 80px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 56px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stats .kpi { transition: transform .55s cubic-bezier(.2,.7,.2,1); }
.stats .kpi:hover { transform: translateY(-3px); }
.stats .kpi .num { transition: color .35s ease; }
.stats .kpi:hover .num { color: var(--accent); }

.about-strip {
  padding: 96px 80px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.about-strip h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 38px; letter-spacing: -0.02em; line-height: 1.1;
  margin-top: 22px;
}
.about-strip .body {
  font-size: 16px; line-height: 1.7; color: var(--muted);
  max-width: 580px;
}

.values { padding: 80px 80px; }
.values .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.values .grid > div {
  background: var(--surface); padding: 48px 40px 40px;
  position: relative;
  transition: background .35s ease;
}
.values .grid > div::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
}
.values .grid > div:hover { background: var(--surface-2); }
.values .grid > div:hover::after { transform: scaleX(1); }
.values .num { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11px; opacity: .4; }
.values h3 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 22px; margin-top: 28px; letter-spacing: -0.01em;
  transition: color .35s ease;
}
.values .grid > div:hover h3 { color: var(--accent); }
.values p { color: var(--muted); margin-top: 12px; font-size: 14px; line-height: 1.6; max-width: 320px; }

.tiles { padding: 96px 80px; }
.tiles .head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
}
.tiles h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 40px; letter-spacing: -0.02em; margin-top: 18px;
}
.tiles .grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 16px; height: 380px;
}
.tile {
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
  background-size: cover; background-position: center;
  transition:
    transform .55s cubic-bezier(.2,.7,.2,1),
    box-shadow .55s ease,
    border-color .35s ease;
  will-change: transform;
}
.tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(22,20,15,0.10);
  border-color: var(--ink);
}
.tile.dark { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.tile.dark:hover { border-color: var(--accent); }
.tile.photo { color: var(--surface); }
.tile.photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(22,20,15,0) 40%, rgba(22,20,15,0.65) 100%);
  pointer-events: none;
  transition: background .45s ease;
}
.tile.photo:hover::after {
  background: linear-gradient(180deg, rgba(22,20,15,0.1) 20%, rgba(22,20,15,0.75) 100%);
}
.tile.photo > * { position: relative; z-index: 1; }
.tile .top {
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; opacity: .6;
}
.tile h3 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 26px; letter-spacing: -0.02em; line-height: 1.15;
}
.tile .arrow {
  font-family: 'Montserrat'; font-size: 14px; margin-top: 16px;
  display: inline-flex; gap: 6px;
  transition: gap .35s cubic-bezier(.2,.7,.2,1);
}
.tile:hover .arrow { gap: 12px; }

/* ---------- continuous client marquee (home) ---------- */
.client-marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: var(--surface);
  overflow: hidden;
  position: relative;
}
.client-marquee::before, .client-marquee::after {
  content: "";
  position: absolute; top: 0; bottom: 0; width: 140px;
  z-index: 2; pointer-events: none;
}
.client-marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), transparent); }
.client-marquee::after  { right: 0; background: linear-gradient(-90deg, var(--surface), transparent); }
.client-marquee .track {
  display: flex; gap: 112px; align-items: center;
  width: max-content;
  padding: 72px 40px;
  animation: ekm-marquee 60s linear infinite;
}
.client-marquee:hover .track { animation-play-state: paused; }
.client-marquee img {
  height: 120px; width: auto; max-width: 320px;
  object-fit: contain;
  filter: grayscale(0.7) brightness(0.95);
  opacity: .85;
  transition: filter .35s ease, opacity .35s ease, transform .35s ease;
}
.client-marquee img:hover { filter: none; opacity: 1; transform: scale(1.08); }
@keyframes ekm-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .client-marquee .track { animation: none; }
}

.newsletter {
  padding: 64px 80px;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: center;
  border-top: 1px solid var(--hairline);
}
.newsletter h3 { font-family: 'Montserrat'; font-weight: 600; font-size: 28px; letter-spacing: -0.01em; line-height: 1.2; }
.newsletter p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.newsletter form {
  display: grid; grid-template-columns: 1fr auto;
  border: 1px solid var(--ink); border-radius: 2px;
}
.newsletter input, .newsletter input.form-control {
  padding: 16px 20px; border: none; background: transparent;
  font-family: 'Poppins'; font-size: 15px; color: var(--ink); outline: none;
  border-radius: 0;
}
.newsletter button, .newsletter button.btn {
  background: var(--ink); color: var(--surface);
  padding: 16px 28px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  border: none; border-radius: 0;
}
.newsletter button:hover { background: var(--accent); }

/* ============================================================
   EXPERTISE LIST (services.html)
   ============================================================ */
.expertise { padding: 56px 80px 96px; }
.expertise .intro { max-width: 720px; margin: 56px 0 64px; }
.expertise .intro p { color: var(--muted); font-size: 17px; line-height: 1.6; }
.expertise-card {
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid var(--hairline);
}
.expertise-card.featured { padding: 72px 0; }
.expertise-card.featured .desc h2 { font-size: 56px; }
.expertise-card .desc .eyebrow {
  display: flex; gap: 16px; align-items: center;
}
.expertise-card .desc .num { color: var(--accent); }
.expertise-card .desc h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 44px; letter-spacing: -0.025em; line-height: 1;
  margin: 16px 0 0;
  transition: color .35s ease;
}
.expertise-card:hover .desc h2 { color: var(--accent); }
.expertise-card .desc p {
  color: var(--muted); margin-top: 18px;
  font-size: 16px; line-height: 1.65; max-width: 480px;
}
.expertise-card .desc .caps {
  margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px;
}
.expertise-card .desc .cap {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.04em;
  padding: 6px 10px;
  border: 1px solid var(--hairline); border-radius: 2px;
  transition: background .25s ease, border-color .25s ease, color .25s ease;
}
.expertise-card .desc .cap:hover {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.expertise-card .desc .more {
  display: inline-flex; gap: 8px; margin-top: 28px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 14px;
  border-bottom: 1px solid var(--ink); padding-bottom: 4px;
  transition: gap .35s cubic-bezier(.2,.7,.2,1), color .25s ease, border-color .25s ease;
}
.expertise-card .desc .more:hover { gap: 14px; color: var(--accent); border-color: var(--accent); }
.expertise-card .desc .more .arrow { transition: transform .35s cubic-bezier(.2,.7,.2,1); }
.expertise-card .desc .more:hover .arrow { transform: translate(2px, -2px); }
.expertise-card .visual {
  aspect-ratio: 5/4;
  background: var(--surface-2);
  border: 1px solid var(--hairline); border-radius: 4px;
  overflow: hidden; position: relative;
  background-size: cover; background-position: center;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease;
  will-change: transform;
}
.expertise-card:hover .visual {
  transform: scale(1.015);
  box-shadow: 0 18px 48px rgba(22,20,15,0.12);
}
.expertise-card .visual img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.2,.7,.2,1); }
.expertise-card:hover .visual img { transform: scale(1.04); }
.expertise-card.featured.tech .visual {
  background: var(--ink); display: flex; padding: 28px;
}
.expertise-card.featured.tech .visual .codeblock { padding: 0; flex: 1; }
.expertise-card.swap .desc { order: 2; }
.expertise-card.swap .visual { order: 1; }

/* ============================================================
   SERVICE DETAIL (service.html)
   ============================================================ */
.service-hero {
  padding: 56px 80px 64px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: end;
}
.service-hero h1 {
  font-family: 'Montserrat'; font-weight: 700;
  font-size: 84px; letter-spacing: -0.035em; line-height: 0.96;
  margin: 24px 0 0;
}
.service-hero .blurb {
  color: var(--muted); font-size: 17px; line-height: 1.6;
  max-width: 520px; margin: 22px 0 0;
}
.service-hero .visual {
  background: var(--ink); color: var(--surface);
  padding: 36px; border-radius: 4px;
  aspect-ratio: 4/3;
  display: flex; flex-direction: column; justify-content: space-between;
}
.service-hero .visual .tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; opacity: .6;
}
.service-hero .visual .codeblock { padding: 0; background: transparent; }
.service-hero .visual.as-image {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  background-size: cover;
  background-position: center;
}

.capabilities {
  padding: 56px 80px 96px;
  border-top: 1px solid var(--hairline);
}
.capabilities .head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 40px;
}
.capabilities .head h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 36px; letter-spacing: -0.02em; margin-top: 14px;
}
.capabilities .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline);
}
.capability {
  background: var(--surface); padding: 32px 28px 36px;
  min-height: 200px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.capability .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.1em; opacity: .45;
}
.capability h4 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em; margin-top: 32px;
}
.capability p { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.capability .body { color: var(--muted); font-size: 15px; line-height: 1.7; margin-top: 24px; }

/* ============================================================
   ABOUT (about.html)
   ============================================================ */
.about-page .lead {
  padding: 56px 80px 80px;
  display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: end;
}
.about-page .lead p {
  color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 640px;
}
.team { padding: 0 80px 96px; }
.team .head {
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--hairline); padding-top: 40px;
  margin-bottom: 56px;
}
.team h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 36px; letter-spacing: -0.02em;
}
.team h2 em { font-style: normal; color: var(--accent); font-weight: 300; }
.team .grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 320px));
  gap: 64px;
  justify-content: center;
  max-width: 1180px;
  margin: 0 auto;
}
.team .member { display: flex; flex-direction: column; gap: 16px; width: 100%; }
.team .portrait {
  aspect-ratio: 4/5; width: 100%;
  background: var(--surface-2);
  border-radius: 4px; overflow: hidden; border: 1px solid var(--hairline);
}
.team .portrait img {
  width: 100%; height: 100%; object-fit: cover;
  filter: saturate(0.85) sepia(0.04);
}
.team .meta-line {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: .55;
}
.team .name {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 22px; letter-spacing: -0.01em; margin-top: 4px;
}
.team .role {
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 2px;
}
.team .bio { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 8px; }

.about-photos {
  padding: 0 80px 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
}
.about-photos .photo {
  aspect-ratio: 4/5;
  background-size: cover; background-position: center;
  border-radius: 4px;
  filter: saturate(0.85);
}

/* ============================================================
   CONTACT (contact.html)
   ============================================================ */
.contact-page { padding: 56px 80px 96px; }
.contact-page .top {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  margin-bottom: 64px; align-items: end;
}
.contact-page .top .blurb {
  color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 480px;
}
.contact-info {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 64px;
}
.contact-info .item .lbl {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  opacity: .55; margin-bottom: 8px;
}
.contact-info .item .val { font-size: 14px; line-height: 1.55; }

.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label,
.contact-form .form-group > label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: .55; display: block; margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea,
.contact-form input.form-control,
.contact-form textarea.form-control {
  width: 100% !important;          /* override Flask form render_kw style */
  padding: 14px 0;
  border: none; border-bottom: 1px solid var(--ink);
  background: transparent;
  font-family: 'Poppins'; font-size: 15px; color: var(--ink);
  outline: none; border-radius: 0;
}
.contact-form input:focus,
.contact-form textarea:focus { border-bottom-color: var(--accent); }
.contact-form textarea,
.contact-form textarea.form-control { resize: vertical; min-height: 100px; }
.contact-form button,
.contact-form input[type="submit"],
.contact-form button.btn {
  background: var(--ink); color: var(--surface);
  padding: 16px 28px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 13px;
  letter-spacing: 0.02em;
  border: none; border-radius: 0;
  justify-self: start; margin-top: 8px;
}
.contact-form button:hover,
.contact-form input[type="submit"]:hover { background: var(--accent); }
.contact-form .errors {
  grid-column: 1 / -1;
  color: var(--accent);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  margin: -4px 0 0;
}

#contact-map {
  aspect-ratio: 4/5;
  border-radius: 4px;
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--surface-2);
}

/* ============================================================
   CLIENTS (clients.html)
   ============================================================ */
.clients { padding: 56px 80px 96px; }
.clients .intro {
  max-width: 640px; margin: 56px 0;
  color: var(--muted); font-size: 17px; line-height: 1.6;
}
.clients .grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--hairline);
  border: 1px solid var(--hairline);
}
.clients .cell {
  background: var(--surface);
  aspect-ratio: 4/3;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  transition: background .35s ease;
  position: relative; overflow: hidden;
}
.clients .cell::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--accent);
  transform: translateY(100%);
  transition: transform .55s cubic-bezier(.2,.7,.2,1);
  opacity: .08;
}
.clients .cell:hover { background: var(--surface-2); }
.clients .cell:hover::before { transform: translateY(0); }
.clients .cell img {
  max-width: 100%; max-height: 100%;
  width: 100%; height: 100%;
  object-fit: contain;
  filter: grayscale(0.5) brightness(0.96);
  transition: filter .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
  position: relative; z-index: 1;
}
.clients .cell:hover img { filter: grayscale(0); transform: scale(1.05); }
.clients .stats-band {
  margin-top: 64px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

/* ============================================================
   ARCHIVE (media.html)
   ============================================================ */
.archive { padding: 56px 80px 96px; }
.archive .head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-top: 56px; gap: 40px;
}
.archive .head .lede { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 480px; }
.archive .head .controls { display: flex; gap: 8px; }
.archive .head .controls button {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--ink);
  color: var(--ink); font-size: 16px; cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.archive .head .controls button:hover { background: var(--ink); color: var(--surface); transform: translateY(-2px); }
.archive .head .controls button[disabled] { opacity: .3; cursor: default; transform: none; background: var(--surface); color: var(--ink); }

.archive .carousel {
  margin-top: 32px;
  display: flex; gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 80px 32px 0;
  margin-right: -80px;
  scrollbar-width: none;
}
.archive .carousel::-webkit-scrollbar { display: none; }
.archive .field-card {
  flex: 0 0 380px;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 4px; overflow: hidden;
  transition: transform .55s cubic-bezier(.2,.7,.2,1), box-shadow .55s ease, border-color .35s ease;
}
.archive .field-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(22,20,15,0.10); border-color: var(--ink); }
.archive .field-card .thumb {
  aspect-ratio: 4/3;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
  position: relative; overflow: hidden;
}
.archive .field-card .thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(22,20,15,0.4));
}
.archive .field-card .body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.archive .field-card .meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: .55; display: flex; flex-wrap: wrap; gap: 12px;
}
.archive .field-card h3 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em; line-height: 1.2;
  margin-top: 4px;
}
.archive .field-card p { color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 4px; }
.archive .field-card .read {
  margin-top: auto; padding-top: 16px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent);
}

.archive .empty { padding: 64px 0; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 480px; }

.archive .lay { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; margin-top: 80px; }
.archive .side h4 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 15px;
  letter-spacing: 0.04em;
  padding-bottom: 12px; border-bottom: 1px solid var(--ink);
}
.archive .news-item {
  display: grid; grid-template-columns: 60px 1fr; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--hairline);
  align-items: start;
}
.archive .news-item .thumb {
  aspect-ratio: 1; background-size: cover; background-position: center;
  border-radius: 2px; background-color: var(--surface-2);
}
.archive .news-item h5 { font-family: 'Montserrat'; font-weight: 500; font-size: 13px; line-height: 1.35; margin: 0; }
.archive .news-item .src { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; opacity: .5; margin-top: 4px; }
.archive .side .newsletter-card {
  margin-top: 32px; padding: 32px;
  background: var(--surface-2); border-radius: 4px;
  border: 1px solid var(--hairline);
}
.archive .side .newsletter-card h4 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 22px; letter-spacing: -0.01em;
  margin-top: 14px; padding: 0; border: none; line-height: 1.2;
}
.archive .side .newsletter-card p { color: var(--muted); font-size: 13px; margin-top: 12px; }
.archive .side .newsletter-card form { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.archive .side .newsletter-card input,
.archive .side .newsletter-card input.form-control {
  width: 100%; padding: 12px 0;
  border: none; border-bottom: 1px solid var(--ink);
  background: transparent; outline: none;
  font-family: 'Poppins'; font-size: 14px; border-radius: 0;
}
.archive .side .newsletter-card button,
.archive .side .newsletter-card button.btn {
  background: var(--ink); color: var(--surface);
  padding: 12px 20px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 12px;
  letter-spacing: 0.04em; border: none; border-radius: 0;
  align-self: flex-start; width: auto !important;
}
.archive .side .newsletter-card button:hover { background: var(--accent); }

/* ============================================================
   POLICY / SINGLE — long-form
   ============================================================ */
.policy {
  padding: 56px 80px 96px;
  display: grid; grid-template-columns: 220px 1fr; gap: 64px;
}
.policy .updated {
  display: inline-flex;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em;
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--hairline);
  border-radius: 2px;
  margin-bottom: 40px;
  color: var(--ink); opacity: .9;
}
.policy .toc { position: sticky; top: 32px; align-self: start; }
.policy .toc h5 {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: .55; margin: 0 0 16px;
}
.policy .body { max-width: 720px; }
.policy .body h2 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 24px; letter-spacing: -0.01em;
  margin: 48px 0 14px;
  scroll-margin-top: 32px;
}
.policy .body h2 + p { margin-top: 0; }
.policy .body p,
.policy .body li {
  color: var(--ink); opacity: .82;
  font-size: 15px; line-height: 1.75; margin: 0 0 16px;
}
.policy .body p strong { opacity: 1; font-weight: 600; }
.policy .body ul, .policy .body ol { padding-left: 20px; }
.policy .body a { color: var(--accent); border-bottom: 1px solid currentColor; }
.policy .body a:hover { opacity: .8; }
.policy .body :first-child { margin-top: 0; }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 80px 80px 32px;
}
footer.site-footer .footer-mark {
  display: block;
  width: 110px;
  height: auto;
  margin-bottom: 36px;
  opacity: .9;
  filter: brightness(0) invert(0.92) sepia(0.18) hue-rotate(-3deg) saturate(1.5);
  transition: opacity .35s ease, transform .9s cubic-bezier(.2,.7,.2,1);
}
footer.site-footer .footer-mark:hover { opacity: 1; transform: translateY(-2px); }
footer.site-footer .row {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr;
  gap: 56px;
}
footer.site-footer h4 {
  font-family: 'Montserrat'; font-weight: 600;
  font-size: 14px; letter-spacing: 0.04em;
  margin: 0 0 24px;
}
footer.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13px; opacity: .8;
}
footer.site-footer ul li a {
  display: inline-block;
  transition: color .25s ease, transform .25s ease;
}
footer.site-footer ul li a:hover { color: var(--accent); transform: translateX(3px); }
footer.site-footer a:hover { color: var(--accent); }
footer.site-footer .photo-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
}
footer.site-footer .photo-grid .ph {
  aspect-ratio: 1;
  background-size: cover; background-position: center;
  filter: saturate(0.7);
  display: block;
  transition: filter .45s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
footer.site-footer .photo-grid .ph:hover { filter: saturate(1); transform: scale(1.04); }
footer.site-footer .copy {
  margin-top: 64px; padding-top: 24px;
  border-top: 1px solid var(--footer-hair);
  display: flex; justify-content: space-between;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; opacity: .55;
}
footer.site-footer .copy .admin-mark {
  color: inherit; letter-spacing: 0.04em;
  transition: color .25s ease, opacity .25s ease, letter-spacing .35s cubic-bezier(.2,.7,.2,1);
}
footer.site-footer .copy:hover .admin-mark { opacity: 1; }
footer.site-footer .copy .admin-mark:hover { color: var(--accent); letter-spacing: 0.08em; }
footer.site-footer .contact-item {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13px; opacity: .85; line-height: 1.5;
  margin-top: 14px;
  transition: opacity .25s ease;
}
footer.site-footer .contact-item:hover { opacity: 1; }
footer.site-footer .contact-item:first-of-type { margin-top: 0; }
footer.site-footer .contact-item .ic {
  width: 8px; height: 8px; border-radius: 50%;
  margin-top: 7px; flex: none;
  background: var(--accent);
  animation: eks-pulse 2.8s ease-in-out infinite;
}
@keyframes eks-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(58% 0.12 55 / 0.45); }
  50% { box-shadow: 0 0 0 6px oklch(58% 0.12 55 / 0); }
}
@media (prefers-reduced-motion: reduce) {
  footer.site-footer .contact-item .ic { animation: none; }
}

/* ============================================================
   responsive — collapse rail + drop columns on mobile
   ============================================================ */
@media (max-width: 900px) {
  .rail {
    position: sticky; top: 0; z-index: 60;
    height: auto; padding: 12px 20px;
    border-right: none; border-bottom: 1px solid var(--hairline);
    background: var(--surface);
  }
  .rail > div { display: flex; flex-direction: column; }
  .rail .rail-bar {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
  }
  .rail .brand-mark img { height: 40px; }
  .rail-toggle {
    display: inline-flex; flex-direction: column; justify-content: center;
    gap: 5px; width: 40px; height: 40px; padding: 8px;
    background: transparent; border: 1px solid var(--hairline);
    border-radius: 4px; cursor: pointer;
  }
  .rail-toggle span {
    display: block; height: 2px; width: 100%;
    background: var(--ink); transition: transform .3s ease, opacity .2s ease;
  }
  .rail[data-open="true"] .rail-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .rail[data-open="true"] .rail-toggle span:nth-child(2) { opacity: 0; }
  .rail[data-open="true"] .rail-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .rail nav { display: none; }
  .rail .social { display: none; }
  .rail[data-open="true"] nav { display: block; }
  .rail[data-open="true"] .social { display: flex; }
  .rail nav ul { margin-top: 16px; flex-direction: column; gap: 4px; }
  .rail nav a { padding: 10px 0; font-size: 16px; opacity: 1; }
  .rail .monogram, .rail .monogram-link { display: none; }
  .rail .social { margin-top: 12px; flex-direction: row; gap: 18px; padding-bottom: 4px; }

  .hero, .about-strip, .tiles, .newsletter,
  .service-hero, .capabilities, .archive .lay,
  .about-page .lead, .contact-page .top, .contact-grid,
  .policy .lay {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }
  .hero, .stats, .about-strip, .values, .tiles, .newsletter,
  .expertise, .service-hero, .capabilities, .about-page .lead,
  .team, .about-photos, .contact-page, .clients, .archive, .policy,
  footer.site-footer {
    padding-left: 24px; padding-right: 24px;
  }
  .hero .lead h1, .service-hero h1, .expertise-card.featured .desc h2 { font-size: 56px; }
  .page-h1 { font-size: 56px; }
  .stats, .tiles .grid, .values .grid, .capabilities .grid,
  .clients .grid, .clients .stats-band, .contact-info,
  .team .grid, .about-photos, footer.site-footer .row {
    grid-template-columns: 1fr 1fr;
  }
  .tiles .grid { height: auto; }
  .tile { min-height: 220px; }
  .expertise-card, .archive .post, footer.site-footer .row {
    grid-template-columns: 1fr; gap: 24px;
  }
  .expertise-card.swap .desc, .expertise-card.swap .visual { order: initial; }
}

/* ============================================================
   Expertise card — inline expand panel (mockup parity)
   ============================================================ */
.expertise-card.has-expand {
  grid-template-areas:
    "desc  visual"
    "expand expand";
}
.expertise-card.has-expand > .desc   { grid-area: desc; }
.expertise-card.has-expand > .visual { grid-area: visual; }
.expertise-card.has-expand.swap > .desc   { grid-area: desc;   order: 2; }
.expertise-card.has-expand.swap > .visual { grid-area: visual; order: 1; }
.expertise-card .expand {
  grid-area: expand;
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .55s cubic-bezier(.2,.7,.2,1),
              margin-top .45s ease, opacity .35s ease;
  margin-top: 0;
  opacity: 0;
}
.expertise-card .expand[hidden] { display: grid; }
.expertise-card.is-expanded .expand {
  grid-template-rows: 1fr;
  margin-top: 40px;
  opacity: 1;
}
.expertise-card .expand-inner { overflow: hidden; min-height: 0; }
.expertise-card .expand .cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 36px;
  border-top: 1px solid var(--hairline);
}
.expertise-card .expand .cap-tile {
  padding: 24px 26px;
  background: var(--surface-2);
  border-radius: 3px;
  transition: background .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), color .25s ease;
}
.expertise-card .expand .cap-tile:hover {
  background: var(--ink); color: var(--surface);
  transform: translateY(-2px);
}
.expertise-card .expand .cap-tile:hover .cap-num { color: var(--surface); opacity: .55; }
.expertise-card .expand .cap-tile:hover p { color: var(--surface); opacity: .75; }
.expertise-card .expand .cap-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 14px;
  transition: color .25s ease, opacity .25s ease;
}
.expertise-card .expand .cap-tile h4 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; margin: 0 0 8px;
  transition: color .25s ease;
}
.expertise-card .expand .cap-tile p {
  color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0;
  transition: color .25s ease, opacity .25s ease;
}

/* Pill toggle (replaces the "Service detail" link) */
.expertise-card .more.more-toggle {
  margin-top: 32px;
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 22px 13px 20px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-family: 'Montserrat'; font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em; text-transform: uppercase;
  cursor: pointer; appearance: none;
  position: relative; overflow: hidden;
  transition: background .35s cubic-bezier(.2,.7,.2,1),
              color .35s ease, border-color .25s ease,
              transform .35s cubic-bezier(.2,.7,.2,1),
              box-shadow .35s ease, padding .35s cubic-bezier(.2,.7,.2,1);
}
.expertise-card .more.more-toggle:hover {
  background: var(--ink); color: var(--surface);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -10px rgba(22,20,15,0.45);
  gap: 18px;
}
.expertise-card .more.more-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--accent);
}
.expertise-card.is-expanded .more.more-toggle {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
}
.expertise-card.is-expanded .more.more-toggle:hover {
  background: var(--accent); border-color: var(--accent);
  box-shadow: 0 10px 24px -10px oklch(58% 0.12 55 / 0.55);
}
.expertise-card .more-label[data-when="open"]   { display: none; }
.expertise-card .more-label[data-when="closed"] { display: inline; }
.expertise-card.is-expanded .more-label[data-when="open"]   { display: inline; }
.expertise-card.is-expanded .more-label[data-when="closed"] { display: none; }
.expertise-card .more-toggle .arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px;
  font-size: 12px; line-height: 1;
  border-radius: 50%;
  background: var(--ink); color: var(--surface);
  transition: transform .45s cubic-bezier(.2,.7,.2,1),
              background .35s ease, color .35s ease;
}
.expertise-card .more-toggle:hover .arrow {
  background: var(--surface); color: var(--ink);
  transform: translateY(2px);
}
.expertise-card.is-expanded .more-toggle .arrow {
  background: var(--surface); color: var(--ink);
  transform: rotate(180deg);
}
.expertise-card.is-expanded .more-toggle:hover .arrow {
  background: var(--ink); color: var(--surface);
  transform: rotate(180deg) translateY(2px);
}
@media (max-width: 900px) {
  .expertise-card .expand .cap-grid { grid-template-columns: 1fr; gap: 14px; padding-top: 24px; }
  .expertise-card.is-expanded .expand { margin-top: 32px; }
  .expertise-card.has-expand {
    grid-template-columns: 1fr !important;
    grid-template-areas:
      "desc"
      "visual"
      "expand" !important;
  }
  .expertise-card.has-expand.swap > .desc,
  .expertise-card.has-expand.swap > .visual { order: initial; }
  .expertise-card .visual { aspect-ratio: 4/3; width: 100%; }
}

/* ============================================================
   Clients — "Sectors we serve" block (mockup parity)
   ============================================================ */
.clients .sectors { margin-top: 96px; }
.clients .sectors > .head { max-width: 760px; margin-bottom: 64px; }
.clients .sectors > .head .eyebrow { margin-bottom: 16px; }
.clients .sectors > .head h2 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 40px;
  letter-spacing: -0.025em; line-height: 1.05;
}
.clients .sectors > .head .lede {
  margin-top: 18px; color: var(--muted); font-size: 17px; line-height: 1.6;
}
.clients .sector-block {
  display: grid; grid-template-columns: 280px 1fr; gap: 56px;
  padding-top: 56px; margin-top: 56px;
  border-top: 1px solid var(--hairline);
}
.clients .sectors .sector-block:first-of-type {
  border-top: none; margin-top: 0; padding-top: 0;
}
.clients .sector-block .block-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: .55; margin-bottom: 18px; color: var(--accent);
}
.clients .sector-block .block-head h3 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 28px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.clients .sector-block .block-head p {
  margin-top: 14px; color: var(--muted); font-size: 14px; line-height: 1.55;
}
.clients .sector-tiles {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.clients .sector-tile {
  padding: 26px 28px;
  background: var(--surface-2);
  border-radius: 3px;
  transition: background .25s ease, transform .35s cubic-bezier(.2,.7,.2,1), color .25s ease;
}
.clients .sector-tile:hover {
  background: var(--ink); color: var(--surface);
  transform: translateY(-2px);
}
.clients .sector-tile:hover .num { color: var(--surface); opacity: .55; }
.clients .sector-tile:hover p { color: var(--surface); opacity: .75; }
.clients .sector-tile .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: 0.06em;
  color: var(--accent); margin-bottom: 14px;
  transition: color .25s ease, opacity .25s ease;
}
.clients .sector-tile h4 {
  font-family: 'Montserrat'; font-weight: 600; font-size: 18px;
  letter-spacing: -0.01em; margin: 0 0 8px;
  transition: color .25s ease;
}
.clients .sector-tile p {
  color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0;
  transition: color .25s ease, opacity .25s ease;
}
.clients .sector-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.clients .sector-chip {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px; letter-spacing: 0.04em;
  padding: 10px 16px;
  border: 1px solid var(--hairline); border-radius: 2px;
  background: var(--surface);
  cursor: default;
  transition: background .25s ease, border-color .25s ease, color .25s ease, transform .25s ease;
}
.clients .sector-chip:hover {
  background: var(--ink); color: var(--surface); border-color: var(--ink);
  transform: translateY(-1px);
}
.clients .sectors .callout {
  margin-top: 28px;
  color: var(--muted); font-size: 14px; line-height: 1.55;
}
.clients .sectors .callout a {
  color: var(--ink); border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
  transition: color .25s ease, border-color .25s ease;
}
.clients .sectors .callout a:hover { color: var(--accent); border-color: var(--accent); }
@media (max-width: 900px) {
  .clients .sector-block { grid-template-columns: 1fr; gap: 32px; }
  .clients .sector-tiles { grid-template-columns: 1fr; }
}

/* ============================================================
   Archive — multi-carousel sections (mockup parity)
   ============================================================ */
.archive .carousel-section + .carousel-section { margin-top: 96px; }
.archive .carousel-section .head { margin-top: 0; }
