/* =================================================================
   CURZAN SOLUTIONS · v5 (light)
   Cool light gray canvas, Geist sans, deep teal accent,
   pill chips, bento grid, soft glows. Verbiage preserved verbatim.
   ================================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  /* Surfaces — kept the same variable names so component CSS still works.
     --black is now the deepest ink, --ink-1..4 are progressively LIGHTER
     surface tints layered above the body gray. */
  --black: #0B1220;        /* deepest ink (was true black) */
  --ink: #0F172A;          /* near-ink */
  --ink-1: #FFFFFF;        /* primary card surface (was darkest panel) */
  --ink-2: #F7F8FB;        /* hover / secondary surface */
  --ink-3: #ECEFF4;        /* tertiary tint / chips */
  --ink-4: #E2E6EE;        /* strongest surface tint */

  --body-bg: #F2F4F7;      /* cool light gray canvas */

  --line: rgba(11, 18, 32, 0.10);
  --line-strong: rgba(11, 18, 32, 0.18);

  --text: #0B1220;
  --text-dim: rgba(11, 18, 32, 0.66);
  --text-mute: rgba(11, 18, 32, 0.48);
  --text-faint: rgba(11, 18, 32, 0.30);

  /* Accent — deep teal / ocean (token name kept as --cyan for compatibility) */
  --cyan: #0E7490;
  --cyan-hover: #0891B2;
  --cyan-soft: rgba(14, 116, 144, 0.10);
  --cyan-glow: rgba(14, 116, 144, 0.28);
  --on-dark: #FFFFFF;       /* text used on dark/teal buttons */
  --glass: rgba(255, 255, 255, 0.78);   /* frosted-glass background for floating header pills */
  --grid-line: rgba(11, 18, 32, 0.05);  /* faint hairline grid */

  --font-sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", "SF Mono", ui-monospace, monospace;

  --r-pill: 999px;
  --r-card: 22px;
  --r-card-lg: 28px;
  --r-sm: 12px;

  --container: 1280px;
  --container-narrow: 1120px;
  --space-xs: 0.5rem;
  --space-sm: 0.875rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 9rem;

  --t-fast: 180ms;
  --t-med: 320ms;
  --t-slow: 520ms;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--body-bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--cyan); color: #ffffff; }

/* ---------- 3. Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.04;
  margin: 0;
  color: var(--text);
}
.h-hero {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.96;
}
.h-display {
  font-size: clamp(2.4rem, 5.5vw, 4.5rem);
  letter-spacing: -0.028em;
  line-height: 1.0;
}
.h-section {
  font-size: clamp(1.8rem, 3.4vw, 2.8rem);
  letter-spacing: -0.022em;
  line-height: 1.08;
  font-weight: 500;
}
.h-card {
  font-size: clamp(1.2rem, 1.6vw, 1.5rem);
  letter-spacing: -0.016em;
  font-weight: 500;
  line-height: 1.18;
}
p { margin: 0 0 1em 0; color: var(--text-dim); font-size: 1rem; line-height: 1.6; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--text-dim); line-height: 1.55; }
.dim { color: var(--text-dim); }
.mute { color: var(--text-mute); }

/* Headline secondary tone — used to grey out trailing phrase like Arkitek */
.h-hero .soft,
.h-display .soft,
.h-section .soft { color: var(--text-mute); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--text-mute);
}
.mono-up {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 4. Container & utilities ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.section { padding: clamp(2.5rem, 5.5vw, 5rem) 0; position: relative; }
.section-tight { padding: clamp(2rem, 4vw, 3.5rem) 0; }
.divider {
  height: 1px;
  background: var(--line);
  width: 100%;
}
.grid { display: grid; gap: var(--space-md); }
.flex { display: flex; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; align-items: center; }
.hide-mobile { display: initial; }
.show-mobile { display: none; }
@media (max-width: 760px) {
  .hide-mobile { display: none; }
  .show-mobile { display: initial; }
}

/* ---------- 5. Pill chip system (Arkitek signature) ---------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.83rem;
  font-weight: 450;
  color: var(--text);
  letter-spacing: -0.005em;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.chip svg { width: 14px; height: 14px; flex-shrink: 0; }
.chip:hover { border-color: var(--line-strong); }
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); }
.chip-dot.red { background: #ff3b30; box-shadow: 0 0 8px rgba(255, 59, 48, 0.6); }
.chip-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.chip-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-mute);
  margin-right: 0.15rem;
}
.chip-mute { color: var(--text-dim); }

/* ---------- 6. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-size: 0.93rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
  white-space: nowrap;
}
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-fast) var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--text);
  color: var(--on-dark);
  border-color: var(--text);
}
.btn-primary:hover { background: #1F2A44; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--ink-3); border-color: var(--text-faint); }
.btn-cyan {
  background: var(--cyan);
  color: var(--on-dark);
  border-color: var(--cyan);
}
.btn-cyan:hover { background: var(--cyan-hover); border-color: var(--cyan-hover); }

.btn-sm { padding: 0.6rem 1.05rem; font-size: 0.85rem; }
.btn-icon-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 8px rgba(255, 59, 48, 0.7);
  display: inline-block;
  margin-right: 0.5rem;
}

/* ---------- 7. Header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1.1rem clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  pointer-events: none;
}
.site-header > * { pointer-events: auto; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.85rem 0.5rem 0.6rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}
.brand-mark { width: 22px; height: 22px; flex-shrink: 0; }
.brand-name { letter-spacing: -0.01em; }
.brand-name .light { color: var(--text-dim); font-weight: 400; }

.nav-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
}
.nav-cluster a {
  padding: 0.5rem 1rem;
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 450;
  color: var(--text-dim);
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-cluster a:hover { color: var(--text); background: var(--ink-3); }
.nav-cluster a.active { color: var(--text); background: var(--ink-3); }
@media (max-width: 760px) {
  .nav-cluster { display: none; }
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem 0.55rem 0.75rem;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 0.86rem;
  font-weight: 500;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.header-cta:hover { border-color: var(--text-faint); }
.header-cta .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: 0 0 10px rgba(255, 59, 48, 0.7);
  position: relative;
}
.header-cta .dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 59, 48, 0.4);
  animation: pulse 2.2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.4); opacity: 0; }
}

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 7rem 0 3.5rem;
  overflow: hidden;
  isolation: isolate;
}
.hero-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-glow::before {
  content: '';
  position: absolute;
  top: 8%;
  left: 50%;
  transform: translateX(-50%);
  width: 1100px;
  height: 1100px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.18) 0%, rgba(14, 116, 144, 0.06) 28%, transparent 60%);
  filter: blur(40px);
  border-radius: 50%;
  animation: glowFloat 14s ease-in-out infinite alternate;
}
.hero-glow::after {
  content: '';
  position: absolute;
  bottom: -20%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(14, 116, 144, 0.08) 0%, transparent 60%);
  filter: blur(30px);
  border-radius: 50%;
  animation: glowFloat 18s ease-in-out infinite alternate-reverse;
}
@keyframes glowFloat {
  0% { transform: translate(-50%, 0) scale(1); }
  100% { transform: translate(-48%, 30px) scale(1.08); }
}

/* Hero photograph — editorial IT image fading into page background */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.hero-photo img {
  position: absolute;
  top: 0;
  right: 0;
  width: 58%;
  height: 100%;
  object-fit: cover;
  /* Pull the subject (typically composed on the left side of the image)
     into the visible right-side viewport area. */
  object-position: 22% center;
  mask-image:
    linear-gradient(to left, black 0%, black 55%, transparent 95%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 80%, transparent 100%);
  -webkit-mask-image:
    linear-gradient(to left, black 0%, black 55%, transparent 95%),
    linear-gradient(to bottom, transparent 0%, black 14%, black 80%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  filter: saturate(0.82) brightness(1.04) contrast(0.96);
  opacity: 0.88;
}
/* Soft veil that fades the left edge of the photo into the page bg so the headline stays crisp */
.hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--body-bg) 0%, rgba(242, 244, 247, 0.85) 28%, rgba(242, 244, 247, 0.30) 50%, transparent 72%);
}
@media (max-width: 880px) {
  .hero-photo img {
    width: 100%;
    height: 55%;
    top: auto;
    bottom: 0;
    opacity: 0.5;
    mask-image:
      linear-gradient(to top, black 0%, black 50%, transparent 100%);
    -webkit-mask-image:
      linear-gradient(to top, black 0%, black 50%, transparent 100%);
  }
  .hero-photo::after {
    background: linear-gradient(to top, var(--body-bg) 0%, rgba(242, 244, 247, 0.6) 30%, transparent 70%);
  }
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 70%);
  opacity: 0.8;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2.25rem;
}
.hero h1 {
  max-width: 18ch;
  margin-bottom: 1.75rem;
}
.hero-sub {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.35vw, 1.18rem);
  color: var(--text-dim);
  line-height: 1.55;
  margin-bottom: 2.5rem;
}
.hero-ctas {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-meta {
  position: absolute;
  bottom: 3rem;
  left: clamp(1.25rem, 4vw, 2.5rem);
  right: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-meta .meta-block { display: flex; flex-direction: column; gap: 0.25rem; }
.hero-meta .meta-block .label { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-mute); letter-spacing: 0.12em; text-transform: uppercase; }
.hero-meta .meta-block .value { font-size: 0.95rem; color: var(--text); }

/* ---------- 9. Section header ---------- */
.section-head {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3.5rem;
  max-width: 56rem;
}
.section-head .chip { align-self: flex-start; }
.section-head p.lead { margin-top: 0.5rem; }

/* ---------- 10. Bento grid ---------- */
.bento {
  display: grid;
  gap: 1rem;
}
.bento-3 { grid-template-columns: repeat(3, 1fr); }
.bento-2-1 { grid-template-columns: 2fr 1fr; }
.bento-1-2 { grid-template-columns: 1fr 2fr; }
.bento-4 { grid-template-columns: repeat(4, 1fr); }
.bento-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) {
  .bento-3, .bento-4, .bento-2-1, .bento-1-2 { grid-template-columns: 1fr; }
  .bento-2 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease), transform var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 4px 12px rgba(11, 18, 32, 0.03);
}
.card:hover { border-color: var(--line-strong); background: var(--ink-1); box-shadow: 0 2px 4px rgba(11, 18, 32, 0.06), 0 12px 32px rgba(11, 18, 32, 0.06); transform: translateY(-2px); }

.card-lg { padding: 2.25rem; border-radius: var(--r-card-lg); min-height: 320px; }
.card-tall { min-height: 420px; }
.card-media {
  margin: -1.75rem -1.75rem 0;
  height: 200px;
  background: var(--ink-2);
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.card-lg .card-media { margin: -2.25rem -2.25rem 0; height: 240px; }
.card-media img, .card-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.card:hover .card-media img { transform: scale(1.04); }
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.card-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan-glow);
}
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}
.card-footer .key { color: var(--text-mute); font-family: var(--font-mono); font-size: 0.78rem; }
.card-footer .val { color: var(--text); }

/* Hover gradient sheen for cards */
.card.with-sheen::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(14, 116, 144, 0.08), transparent 60%);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease);
  pointer-events: none;
}
.card.with-sheen:hover::after { opacity: 1; }

/* ---------- 11. Stats row ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  padding: 2rem 0;
}
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.stat .num {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.stat .label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 12. Pull-quote / principle ---------- */
.principle {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  position: relative;
}
.principle .quote {
  font-size: clamp(1.6rem, 3.4vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.18;
  max-width: 30ch;
  margin: 0 auto 1.5rem;
  color: var(--text);
}
.principle .quote .accent { color: var(--cyan); }
.principle .attrib {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}

/* ---------- 13. Marquee / ticker ---------- */
.marquee {
  overflow: hidden;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--ink-1);
  position: relative;
}
.marquee-inner {
  display: flex;
  gap: 0;
  animation: marquee 50s linear infinite;
  white-space: nowrap;
  will-change: transform;
}
.marquee-inner span {
  padding: 0 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  color: var(--text-dim);
  text-transform: uppercase;
}
.marquee-inner span::after {
  content: '·';
  margin-left: 1.25rem;
  color: var(--text-faint);
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- 14. Endcard / CTA ---------- */
.endcard {
  position: relative;
  margin: 0 clamp(1.25rem, 4vw, 2.5rem) clamp(0.75rem, 2.5vw, 1.5rem);
  padding: clamp(2.25rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4rem);
  border-radius: var(--r-card-lg);
  background: var(--black);
  color: var(--on-dark);
  border: 1px solid var(--black);
  overflow: hidden;
  isolation: isolate;
}
.endcard h1, .endcard h2, .endcard h3, .endcard h4 { color: var(--on-dark); }
.endcard .h-hero .soft, .endcard .h-display .soft, .endcard .h-section .soft { color: rgba(255, 255, 255, 0.42); }
.endcard .lead, .endcard p { color: rgba(255, 255, 255, 0.72); }
.endcard .chip { background: rgba(255, 255, 255, 0.10); border-color: rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.86); }
.endcard .chip-dot { background: rgba(255, 255, 255, 0.45); }
.endcard .chip-dot.cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.endcard .btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, 0.22); }
.endcard .btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.35); }
.endcard::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 80% 0%, rgba(14, 116, 144, 0.45), transparent 50%),
    radial-gradient(circle at 0% 100%, rgba(14, 116, 144, 0.20), transparent 50%);
}
.endcard::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 75%);
}
.endcard .chip { margin-bottom: 1.75rem; }
.endcard h2 { margin-bottom: 1rem; max-width: 16ch; }
.endcard .lead { max-width: 32rem; margin-bottom: 2.25rem; }
.endcard-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ---------- 15. Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 1.5rem;
  background: var(--black);
  color: var(--on-dark);
}
.site-footer h4 { color: rgba(255, 255, 255, 0.48) !important; }
.site-footer a { color: rgba(255, 255, 255, 0.66) !important; }
.site-footer a:hover { color: #ffffff !important; }
.site-footer .footer-brand p { color: rgba(255, 255, 255, 0.66); }
.site-footer .footer-bottom { color: rgba(255, 255, 255, 0.42); border-top-color: rgba(255, 255, 255, 0.10); }
.site-footer .brand { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); color: #ffffff; box-shadow: none; }
.site-footer .brand-name .light { color: rgba(255, 255, 255, 0.55); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-weight: 500;
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-grid a {
  color: var(--text-dim);
  font-size: 0.92rem;
  transition: color var(--t-fast) var(--ease);
}
.footer-grid a:hover { color: var(--text); }
.footer-brand .brand-mark { width: 28px; height: 28px; }
.footer-brand p { font-size: 0.92rem; color: var(--text-dim); max-width: 22rem; margin-top: 1rem; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--text-mute);
  text-transform: uppercase;
}

/* ---------- 16. Phase / step cards (Method) ---------- */
.phase {
  position: relative;
  padding: 2rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 360px;
  transition: border-color var(--t-med) var(--ease), background var(--t-med) var(--ease);
}
.phase:hover { border-color: var(--line-strong); }
.phase-num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
}
.phase h3 { font-size: 1.6rem; }
.phase .pull {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--text);
  padding: 0.75rem 0;
}
.phase p { font-size: 0.94rem; }
.phase-meta {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}
.phase-meta .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.phase-meta .row .k { color: var(--text-mute); font-family: var(--font-mono); font-size: 0.78rem; }
.phase-meta .row .v { color: var(--text); font-family: var(--font-mono); font-size: 0.82rem; }

/* ---------- 17. Practice / Services pages (long content blocks) ---------- */
.service-block {
  padding: clamp(2.25rem, 4.5vw, 4rem) 0;
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.service-block:first-of-type { border-top: none; }

/* Cyan accent on the dividing line, fading out */
.service-block:not(:first-of-type)::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: clamp(8rem, 22vw, 18rem);
  height: 2px;
  background: linear-gradient(to right, var(--cyan), transparent);
  z-index: 2;
}

/* Oversized editorial numeral — visible section marker, placed in the copy column */
.service-numeral {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--cyan);
  margin-bottom: 1.25rem;
  user-select: none;
  opacity: 0.85;
}

/* Top row: title/copy + photo side-by-side, stretched to same height */
.service-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: stretch;
  margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem);
}
/* Alternating: photo on left for rhythm */
.service-block.alt .service-row {
  grid-template-columns: 1.15fr 1fr;
}

.service-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(0.5rem, 1.5vw, 1.5rem) 0;
  position: relative;
  z-index: 1;
}
.service-copy .chip { margin-bottom: 1.25rem; align-self: flex-start; }
.service-copy h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.85rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
/* Editorial pull-quote with cyan rule */
.service-copy .pull {
  font-family: var(--font-mono);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  font-weight: 500;
  color: var(--cyan);
  margin: 0 0 1.35rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid var(--cyan);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.service-copy p:not(.pull) {
  color: var(--text-mute);
  font-size: 1.02rem;
  line-height: 1.65;
  max-width: 52ch;
}

.service-visual {
  position: relative;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  aspect-ratio: 4/3;
  min-height: 100%;
  align-self: stretch;
}
.service-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Metadata caption overlay on photo — ties image to the practice */
.service-visual-tag {
  position: absolute;
  left: clamp(0.75rem, 1.5vw, 1.25rem);
  bottom: clamp(0.75rem, 1.5vw, 1.25rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.7rem;
  background: rgba(8, 18, 26, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  z-index: 2;
}

/* Bullet list — full-width below the row, 2 columns on desktop */
.service-list {
  list-style: none;
  padding: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  margin: 0;
  border-top: 1px solid var(--line-strong);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 4rem);
  row-gap: 0;
}
.service-list li {
  padding: 1.05rem 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  color: var(--text);
  font-size: 1.04rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.5;
  transition: color 0.2s ease;
}
/* First item in each column needs no top border (the list border-top covers it) */
.service-list li:nth-child(1),
.service-list li:nth-child(2) {
  border-top: none;
}
.service-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  margin-top: 0.5rem;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 3px rgba(14, 116, 144, 0.15);
  flex-shrink: 0;
}

@media (max-width: 980px) {
  .service-row,
  .service-block.alt .service-row {
    grid-template-columns: 1fr;
  }
  /* Mobile: always show copy first, photo second — regardless of .alt */
  .service-copy { order: 1; }
  .service-visual { order: 2; min-height: 0; }
  .service-list {
    grid-template-columns: 1fr;
  }
  .service-list li:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- 18. About — principles ---------- */
.principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (max-width: 760px) { .principles { grid-template-columns: 1fr; } }
.principle-card {
  padding: 2rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.principle-card h3 {
  font-size: 1.4rem;
  font-weight: 500;
}
.principle-card .lead-in {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}

/* ---------- 19. Contact form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-side .meta-block {
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.contact-side .meta-block:first-of-type { border-top: 1px solid var(--line-strong); }
.contact-side .meta-block .label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 0.3rem;
}
.contact-side .meta-block .value { font-size: 1.05rem; color: var(--text); }

.form-card {
  padding: 2rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
@media (max-width: 760px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.field input, .field select, .field textarea {
  padding: 0.85rem 1rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 0.95rem;
  font-family: var(--font-sans);
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: var(--ink-1);
  box-shadow: 0 0 0 3px var(--cyan-soft);
}
.field textarea { min-height: 110px; resize: vertical; }
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
@media (max-width: 760px) { .checklist { grid-template-columns: 1fr; } }
.check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
  font-size: 0.9rem;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.check:hover { border-color: var(--line-strong); }
.check input { accent-color: var(--cyan); }
.check:has(input:checked) { border-color: var(--cyan); background: var(--cyan-soft); }

/* ---------- 20. Walkthrough (Internal) ---------- */
.walk-toc {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 980px) { .walk-toc { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .walk-toc { grid-template-columns: repeat(2, 1fr); } }
.walk-toc a {
  padding: 0.8rem 1rem;
  background: var(--ink-1);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.walk-toc a:hover { border-color: var(--line-strong); color: var(--text); }
.walk-section {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  border-top: 1px solid var(--line);
}
.walk-section:first-of-type { border-top: none; }
.walk-section h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1.25rem; }
.walk-page-block {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 3fr;
  gap: 2rem;
}
@media (max-width: 760px) { .walk-page-block { grid-template-columns: 1fr; } }
.walk-page-block:first-of-type { border-top: 1px solid var(--line-strong); }
.walk-page-block h3 {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
.walk-page-block .body { display: flex; flex-direction: column; gap: 0.6rem; font-size: 0.95rem; color: var(--text-dim); }
.walk-page-block .body strong { color: var(--text); font-weight: 500; }

/* ---------- 21. Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .hero-glow::before, .hero-glow::after, .marquee-inner, .header-cta .dot::after { animation: none !important; }
}

/* ---------- 22. Misc ---------- */
.eyebrow-row {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}
.spacer-xl { height: clamp(3rem, 6vw, 5rem); }
.spacer-lg { height: clamp(2rem, 4vw, 3rem); }

/* ── Contact form status message ────────────────────────────────────── */
.form-status {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  line-height: 1.45;
  border: 1px solid var(--line);
}
.form-status.is-ok {
  color: var(--cyan);
  background: var(--cyan-soft);
  border-color: var(--cyan-glow);
}
.form-status.is-error {
  color: #B42318;
  background: rgba(180, 35, 24, 0.07);
  border-color: rgba(180, 35, 24, 0.22);
}
