/* ==========================================================================
   Metrik Networks — Rev.C
   Warm editorial · mint accent · Late Checkout craft
   ========================================================================== */

/* Self-hosted fonts — latin subset (was: fonts.googleapis.com, render-blocking) */
@font-face {
  font-family: 'Instrument Serif';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/instrument-serif-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-400-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(assets/fonts/plus-jakarta-sans-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* <picture> wrappers stay layout-neutral so the <img> is the direct
   flex/grid child (preserves object-fit, width:min(), and filters). */
picture {
  display: contents;
}

:root {
  /* Surfaces */
  --cream: #f6f4ef;
  --cream-deep: #ece8e0;
  --paper: #faf9f6;
  --white: #ffffff;

  /* Dark */
  --void: #0c0c0b;
  --ink: #141413;
  --ink-soft: #2a2927;
  --panel: #1a1918;

  /* Text */
  --text: #141413;
  --text-muted: #6b6860;
  --text-faint: #9c9890;
  --text-on-dark: #f6f4ef;
  --text-muted-dark: rgba(246, 244, 239, 0.58);

  /* Accent — fiber optic mint from logo */
  --mint: #2ec4a0;
  --mint-bright: #3ee0b8;
  --mint-glow: rgba(46, 196, 160, 0.22);
  --mint-soft: rgba(46, 196, 160, 0.1);
  --forest: #1a4d3e;
  --amber: #c4784a;

  /* Lines */
  --line: rgba(20, 20, 19, 0.08);
  --line-strong: rgba(20, 20, 19, 0.14);
  --line-dark: rgba(255, 255, 255, 0.09);

  /* Type */
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  /* Layout */
  --nav-h: 76px;
  --max: 1200px;
  --pad: clamp(1.25rem, 4.5vw, 3.75rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 20px;
  --radius-sm: 12px;
}

/* Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
}

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul { list-style: none; }

/* Grain overlay */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 180px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 200;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav.on-light {
  background: rgba(246, 244, 239, 0.82);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid transparent;
}

.nav.on-light.scrolled {
  background: rgba(246, 244, 239, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(20, 20, 19, 0.04);
}

.nav.on-dark {
  background: rgba(12, 12, 11, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  color: var(--text-on-dark);
}

.nav.on-dark.scrolled {
  background: rgba(12, 12, 11, 0.92);
  border-bottom-color: var(--line-dark);
}

.nav-logo-img {
  height: 68px;
  width: auto;
  object-fit: contain;
  transition: opacity 0.2s, filter 0.3s var(--ease);
}

.nav.on-light .nav-logo-img {
  filter: brightness(0);
  opacity: 0.9;
}

.nav.on-dark .nav-logo-img {
  filter: none;
  opacity: 0.95;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.nav-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav.on-dark .nav-links a {
  color: var(--text-muted-dark);
}

.nav-links a:hover {
  color: var(--text);
}

.nav.on-dark .nav-links a:hover {
  color: var(--text-on-dark);
}

.nav-cta {
  color: var(--text-on-dark) !important;
  background: var(--forest);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s !important;
}

.nav.on-dark .nav-cta {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.nav-cta:hover {
  background: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(20, 20, 19, 0.12);
}

.nav.on-dark .nav-cta:hover {
  background: var(--text-on-dark);
  color: var(--ink) !important;
  border-color: transparent;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.nav.on-dark .nav-toggle {
  border-color: var(--line-dark);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 7vw, 3.25rem);
  letter-spacing: -0.02em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   Shared components
   ========================================================================== */

.eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.1rem;
}

.section-title {
  font-size: clamp(2.35rem, 5.5vw, 3.75rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 1.1rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 34rem;
  line-height: 1.65;
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.25rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
  transition: gap 0.3s var(--ease-out), opacity 0.2s;
}

.text-link:hover {
  gap: 0.85rem;
  opacity: 0.75;
}

.text-link-light {
  color: var(--text-on-dark);
  border-bottom-color: rgba(246, 244, 239, 0.35);
}

.text-link-light:hover {
  border-bottom-color: var(--text-on-dark);
  opacity: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.95rem 1.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.25s, box-shadow 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--forest);
  color: var(--text-on-dark);
  box-shadow: 0 4px 20px rgba(26, 77, 62, 0.25);
}

.btn-primary:hover {
  background: var(--ink);
  box-shadow: 0 8px 32px rgba(20, 20, 19, 0.2);
}

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

.hero {
  min-height: 100svh;
  padding: calc(var(--nav-h) + 2.5rem) var(--pad) 3.5rem;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  max-width: 1320px;
  margin: 0 auto;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -10%;
  width: 60%;
  height: 70%;
  background: radial-gradient(ellipse, var(--mint-glow), transparent 65%);
  pointer-events: none;
  filter: blur(40px);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.75rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-bright);
  box-shadow: 0 0 0 0 rgba(62, 224, 184, 0.5);
  animation: pulse 2.5s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(62, 224, 184, 0.45); }
  50% { box-shadow: 0 0 0 8px rgba(62, 224, 184, 0); }
}

.hero-title {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 32rem;
  margin-bottom: 2.25rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
}

/* Platform grid — LCA client-wall pattern */
.hero-visual {
  position: relative;
  z-index: 1;
}

.hero-glow {
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle at 50% 50%, var(--mint-soft), transparent 70%);
  filter: blur(30px);
  pointer-events: none;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  position: relative;
}

.platform-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1.1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, border-color 0.35s;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.04);
}

.platform-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(20, 20, 19, 0.08);
  border-color: var(--line-strong);
}

.platform-card-featured {
  grid-row: span 2;
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background:
    linear-gradient(145deg, var(--void) 0%, #1a2420 100%);
  border-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 16px 48px rgba(12, 12, 11, 0.25);
}

.platform-card-featured:hover {
  border-color: rgba(62, 224, 184, 0.25);
  box-shadow: 0 20px 56px rgba(12, 12, 11, 0.35), 0 0 40px var(--mint-glow);
}

.platform-logo {
  width: min(100%, 180px);
  height: auto;
  filter: drop-shadow(0 8px 24px rgba(62, 224, 184, 0.2));
}

.platform-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.platform-card strong {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.platform-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.platform-more {
  display: block;
  width: fit-content;
  margin: 1.25rem auto 0;
  padding: 0.55rem 1.25rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.platform-more:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.work-anchor {
  scroll-margin-top: var(--nav-h);
}

/* ==========================================================================
   Case studies
   ========================================================================== */

.case {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: min(88vh, 900px);
  border-top: 1px solid var(--line-dark);
}

.case-dark {
  background: var(--void);
  color: var(--text-on-dark);
}

.case-light {
  background: var(--paper);
  color: var(--text);
  border-top-color: var(--line);
}

.case-inner {
  padding: clamp(3.5rem, 7vw, 6rem) var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 680px;
}

.case-meta {
  margin-bottom: 2.5rem;
}

.case-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.75rem;
}

.brand-chip {
  width: 46px;
  height: 46px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  color: var(--mint-bright);
}

.brand-chip-dark {
  background: rgba(20, 20, 19, 0.05);
  border-color: var(--line);
  color: var(--forest);
}

.brand-name {
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
}

.meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.meta-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 0.4rem;
}

.case-light .meta-label {
  color: var(--text-faint);
}

.meta-value {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
}

.case-title {
  font-size: clamp(1.85rem, 3.8vw, 2.75rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.case-body {
  font-size: 1.02rem;
  line-height: 1.65;
  color: var(--text-muted-dark);
  max-width: 34rem;
  margin-bottom: 2rem;
}

.case-light .case-body {
  color: var(--text-muted);
}

/* Case visuals */
.case-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-visual-dark {
  background: var(--ink-soft);
}

.case-visual-light {
  background: var(--cream-deep);
}

.visual-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.9;
}

.visual-mesh-mint {
  background:
    radial-gradient(ellipse 70% 60% at 60% 40%, rgba(62, 224, 184, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 50% at 20% 80%, rgba(46, 196, 160, 0.08), transparent 50%),
    linear-gradient(160deg, #0e1210, #141413);
}

.visual-mesh-slate {
  background:
    radial-gradient(ellipse 60% 55% at 70% 35%, rgba(100, 120, 140, 0.12), transparent 55%),
    linear-gradient(145deg, #e8e4dc, #d8d4cc);
}

.visual-mesh-amber {
  background:
    radial-gradient(ellipse 65% 55% at 55% 45%, rgba(196, 120, 74, 0.15), transparent 55%),
    linear-gradient(155deg, #121110, #1c1814);
}

.visual-mesh-warm {
  background:
    radial-gradient(ellipse 55% 50% at 50% 50%, rgba(246, 244, 239, 0.8), transparent 60%),
    linear-gradient(135deg, #ddd8cf, #c8c2b8);
}

.case-logo-img {
  position: relative;
  z-index: 1;
  width: min(72%, 340px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 20px 50px rgba(0, 0, 0, 0.35));
}

.case-light .case-logo-img {
  filter: drop-shadow(0 16px 40px rgba(20, 20, 19, 0.12));
}

.case-logo-mark {
  width: min(58%, 260px);
}

.case-logo-network {
  width: min(80%, 380px);
}

.case-logo-wordmark-lg {
  width: min(75%, 360px);
  filter: brightness(0.12) sepia(0.15) drop-shadow(0 12px 32px rgba(20, 20, 19, 0.18)) !important;
}

/* Split case */
.case-split {
  min-height: auto;
  display: block;
  grid-template-columns: none;
  background: var(--void);
}

.split-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(3.5rem, 7vw, 5.5rem) var(--pad);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.split-card {
  padding: 2rem 1.75rem;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  transition: background 0.3s, border-color 0.3s;
}

.split-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(62, 224, 184, 0.15);
}

.split-card h3 {
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0.5rem 0 0.75rem;
}

.split-card p {
  font-size: 0.95rem;
  color: var(--text-muted-dark);
  line-height: 1.6;
}

/* ==========================================================================
   Services
   ========================================================================== */

.services {
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: var(--max);
  margin: 0 auto 2.75rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.85rem 1.6rem;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(20, 20, 19, 0.07);
  border-color: var(--line-strong);
}

.service-card:hover::before {
  opacity: 1;
}

.service-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--text-faint);
  display: block;
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.6rem;
  line-height: 1.25;
}

.service-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.services-foot {
  max-width: var(--max);
  margin: 0 auto;
}

/* ==========================================================================
   About
   ========================================================================== */

.about {
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background: var(--void);
  color: var(--text-on-dark);
  border-top: 1px solid var(--line-dark);
}

.about .eyebrow {
  color: var(--text-muted-dark);
}

.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}

.about-copy {
  color: var(--text-muted-dark);
  font-size: 1.05rem;
  line-height: 1.65;
  margin-bottom: 1rem;
  max-width: 34rem;
}

.about .text-link {
  color: var(--text-on-dark);
  border-bottom-color: rgba(246, 244, 239, 0.3);
  margin-top: 0.5rem;
}

.about-quote {
  background: var(--paper);
  color: var(--text);
  border-radius: var(--radius);
  padding: 2.25rem 2rem;
  border: 1px solid var(--line);
  position: relative;
}

.about-quote::before {
  content: "\201C";
  position: absolute;
  top: 1rem;
  left: 1.5rem;
  font-family: var(--serif);
  font-size: 4rem;
  line-height: 1;
  color: var(--mint);
  opacity: 0.35;
}

.about-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.35rem;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.about-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Peers
   ========================================================================== */

.peers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
}

.peer {
  background: var(--cream);
  padding: 2.5rem clamp(1.25rem, 3vw, 2.5rem);
  transition: background 0.3s;
}

.peer:hover {
  background: var(--paper);
}

.peer p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.peer cite {
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ==========================================================================
   Areas
   ========================================================================== */

.areas {
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.areas-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  max-width: var(--max);
}

.areas-list li {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 0.25s var(--ease-out), border-color 0.25s, box-shadow 0.25s;
}

.areas-list li:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 20, 19, 0.06);
}

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

.contact {
  padding: clamp(5rem, 10vw, 8rem) var(--pad);
  background: var(--cream);
  border-top: 1px solid var(--line);
}

.contact-wrap {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: start;
}

.contact .section-lead {
  margin-bottom: 2.25rem;
}

.contact-direct {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-direct a,
.contact-direct div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-direct span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-direct a {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.contact-direct a:hover {
  color: var(--forest);
}

.contact-form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 3vw, 2.25rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 16px 48px rgba(20, 20, 19, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text);
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  outline: none;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--forest);
  background: var(--white);
  box-shadow: 0 0 0 3px var(--mint-soft);
}

.contact-form textarea {
  resize: vertical;
  min-height: 110px;
}

.contact-form .btn {
  align-self: flex-start;
  margin-top: 0.35rem;
}

.form-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
}

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

.footer {
  background: var(--void);
  color: var(--text-muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: 2.25rem var(--pad);
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.82rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.85;
}

.footer-brand span {
  color: var(--text-muted-dark);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
}

.footer-meta a {
  transition: color 0.2s;
}

.footer-meta a:hover {
  color: var(--text-on-dark);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}

[data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* Stagger service cards */
.services-grid .service-card:nth-child(1) { transition-delay: 0ms; }
.services-grid .service-card:nth-child(2) { transition-delay: 60ms; }
.services-grid .service-card:nth-child(3) { transition-delay: 120ms; }
.services-grid .service-card:nth-child(4) { transition-delay: 180ms; }
.services-grid .service-card:nth-child(5) { transition-delay: 240ms; }
.services-grid .service-card:nth-child(6) { transition-delay: 300ms; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: calc(var(--nav-h) + 2rem);
  }

  .hero-visual {
    order: -1;
  }

  .platform-grid {
    max-width: 520px;
    margin: 0 auto;
  }

  .case {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .case-visual {
    min-height: 280px;
    order: -1;
  }

  .split-grid,
  .about-grid,
  .contact-wrap {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .peers {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .platform-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .platform-card-featured {
    grid-row: span 1;
    grid-column: span 2;
    min-height: 200px;
  }

  .meta-grid,
  .form-row,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .services-foot .btn-primary {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .status-dot { animation: none; }
  .platform-card:hover,
  .service-card:hover,
  .btn:hover { transform: none; }
}
