/* Rhodium Technology Solutions — palette and type follow the Rhodium brand (rhodium-medical.com) */
/* Self-hosted variable fonts (latin subset) */
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url("../fonts/plus-jakarta-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Maven Pro";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/maven-pro-latin.woff2") format("woff2");
}

:root {
  --maroon-950: #1c090c;
  --maroon-900: #2a0e12;
  --maroon-800: #3a1218;
  --maroon-700: #4c1717;
  --maroon-600: #581c2e;
  --maroon-500: #7a2d3c;
  --rose-400: #b88580;
  --rose-300: #cba29d;
  --rose-100: #f1e6e4;
  --rose-50: #f8f1ef;
  --paper: #f6f4f3;
  --white: #ffffff;
  --ink: #1a1515;
  --muted: #5c5555;
  --line: rgba(76, 23, 23, 0.12);

  --font-head: "Plus Jakarta Sans", "Maven Pro", system-ui, sans-serif;
  --font-body: "Maven Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", Consolas, "SF Mono", Menlo, monospace;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(42, 14, 18, 0.06), 0 16px 40px -16px rgba(42, 14, 18, 0.22);
  --shadow-lg: 0 40px 80px -30px rgba(42, 14, 18, 0.55);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(72px, 11vw, 136px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul, ol { margin: 0; padding: 0; }
[role="list"] { list-style: none; }
figure, blockquote, pre { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--maroon-700);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
em { font-style: normal; }

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--maroon-700);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.15s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--maroon-500);
  outline-offset: 3px;
  border-radius: 6px;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, var(--rose-300), var(--maroon-500));
  transform-origin: 0 50%;
  transform: scaleX(0);
  will-change: transform;
}

.eyebrow {
  display: block;
  font-family: var(--font-head);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--maroon-500);
  margin-bottom: 16px;
}
.eyebrow-light { color: var(--rose-300); }

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.btn-sm { min-height: 42px; padding: 8px 20px; font-size: 0.9375rem; }
.btn-arrow { display: inline-block; transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-primary { background: var(--maroon-700); color: var(--white); box-shadow: 0 10px 24px -12px rgba(76, 23, 23, 0.8); }
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, var(--maroon-500), var(--maroon-600));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
}
.btn-primary:hover::before { transform: none; }
.btn-ghost { border-color: rgba(76, 23, 23, 0.25); color: var(--maroon-700); background: rgba(255, 255, 255, 0.5); }
.btn-ghost:hover { border-color: var(--maroon-700); background: var(--white); }
.btn-light { background: var(--white); color: var(--maroon-700); }
.btn-light:hover { background: var(--rose-50); }
.magnetic { will-change: transform; transition: transform 0.35s var(--ease), background-color 0.3s, box-shadow 0.3s; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 243, 0.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.3s, transform 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(246, 244, 243, 0.92); }
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 24px;
}
.brand img { width: 147px; height: auto; }

.site-nav ul { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.site-nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--maroon-700);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.site-nav a:not(.btn):hover,
.site-nav a.is-current { color: var(--maroon-700); }
.site-nav a:not(.btn):hover::after,
.site-nav a.is-current::after { transform: scaleX(1); transform-origin: left; }
.site-nav li:last-child { margin-inline-start: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  cursor: pointer;
  position: relative;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  position: absolute;
  left: 50%;
  width: 20px; height: 2px;
  margin-left: -10px;
  background: var(--maroon-700);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.nav-toggle-bar { top: 50%; margin-top: -1px; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px) clamp(96px, 12vw, 150px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  opacity: 0.6;
  animation: drift 18s ease-in-out infinite alternate;
}
.blob-1 { width: 620px; height: 620px; right: -160px; top: -200px; background: radial-gradient(circle, rgba(203, 162, 157, 0.75), transparent 70%); }
.blob-2 { width: 520px; height: 520px; left: -220px; bottom: -260px; background: radial-gradient(circle, rgba(203, 162, 157, 0.45), transparent 70%); animation-duration: 24s; animation-direction: alternate-reverse; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(76, 23, 23, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(76, 23, 23, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 10%, transparent 75%);
}
@keyframes drift {
  to { transform: translate3d(-60px, 50px, 0) scale(1.08); }
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 12px;
  margin-bottom: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--maroon-700);
}
.pill-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--maroon-500); }
.pill-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--maroon-500);
  animation: ping 2.2s var(--ease) infinite;
}
@keyframes ping {
  from { transform: scale(0.6); opacity: 0.8; }
  to { transform: scale(2); opacity: 0; }
}

.split .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split .line > span { display: inline-block; }
@media (min-width: 1101px) { .split .line { white-space: nowrap; } }
.split em {
  background: linear-gradient(100deg, var(--maroon-500) 10%, var(--rose-400) 50%, var(--maroon-500) 90%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sheen 6s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

.lead {
  margin-top: 28px;
  max-width: 36rem;
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  color: var(--muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 36px;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--rose-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c1717' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 10px no-repeat;
}

/* Hero entrance */
.split .line > span { animation: rise 0.8s var(--ease) both; }
.split .line:nth-child(2) > span { animation-delay: 0.06s; }
.split .line:nth-child(3) > span { animation-delay: 0.12s; }
.split .line:nth-child(4) > span { animation-delay: 0.18s; }
.hero-fade { animation: fade-up 0.7s var(--ease) var(--d, 0s) both; }
.hero-stage { animation: fade-up 0.8s var(--ease) 0.1s both; }
/* Continuous decorative loops start once the page has settled (main.js adds .motion-on) */
.js:not(.motion-on) :is(.blob, .float, .stage-ring, .mock-chart i, .typing i, .split em, .marquee-track),
.js:not(.motion-on) .type-line::after { animation-play-state: paused; }
@keyframes rise { from { transform: translateY(110%); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }

/* Hero stage: layered product composition */
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 1 / 0.98;
  margin-inline: auto;
}
.stage-ring {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
  border: 1.5px dashed rgba(76, 23, 23, 0.18);
  translate: -50% -50%;
  animation: spin 60s linear infinite;
}
.ring-1 { width: 92%; aspect-ratio: 1; }
.ring-2 { width: 64%; aspect-ratio: 1; border-style: solid; border-color: rgba(203, 162, 157, 0.5); animation-duration: 40s; animation-direction: reverse; }
.ring-2::after {
  content: "";
  position: absolute;
  top: -6px; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--maroon-500);
  box-shadow: 0 0 0 6px rgba(122, 45, 60, 0.15);
}
@keyframes spin { to { rotate: 360deg; } }
.stage-motif {
  position: absolute;
  left: 4%; top: 6%;
  width: 30%; aspect-ratio: 1 / 1.05;
  background: linear-gradient(145deg, var(--rose-300), var(--rose-400));
  clip-path: polygon(0 0, 100% 0, 100% 56%, 58% 56%, 58% 100%, 0 100%);
  opacity: 0.9;
}

.layer { position: absolute; transition: transform 0.6s var(--ease); will-change: transform; }
.float { animation: float 7s ease-in-out infinite; }
.f2 { animation-duration: 8s; animation-delay: -2s; }
.f3 { animation-duration: 6s; animation-delay: -1s; }
.f4 { animation-duration: 9s; animation-delay: -3s; }
.f5 { animation-duration: 5.5s; animation-delay: -4s; }
@keyframes float {
  50% { transform: translateY(-12px); }
}

.l-dash { left: 8%; top: 20%; width: 66%; }
.l-phone { right: 2%; top: 4%; width: 34%; }
.l-ai { left: 0; bottom: 8%; width: 46%; }
.l-code { right: 0; bottom: 4%; width: 50%; }
.l-badge { left: 30%; top: 2%; }

.mock-win {
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(76, 23, 23, 0.08);
}
.mock-bar { display: flex; gap: 6px; padding: 10px 12px; background: #f3efee; border-bottom: 1px solid #ece4e3; }
.mock-bar i { width: 8px; height: 8px; border-radius: 50%; background: #d9cfcd; }
.mock-body { display: flex; min-height: 210px; }
.mock-side { width: 22%; padding: 12px 10px; background: var(--maroon-800); }
.mock-side b { display: block; width: 20px; height: 20px; margin-bottom: 14px; border-radius: 6px; background: var(--rose-300); }
.mock-side p { height: 10px; margin-bottom: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.1); }
.mock-side p.on { background: rgba(203, 162, 157, 0.5); }
.mock-main { flex: 1; padding: 12px; background: #faf8f7; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis span { height: 36px; border-radius: 8px; background: var(--white); border: 1px solid #eee6e5; position: relative; }
.mock-kpis span::after { content: ""; position: absolute; left: 8px; bottom: 8px; width: 50%; height: 7px; border-radius: 3px; background: var(--maroon-700); opacity: 0.8; }
.mock-chart { display: flex; align-items: flex-end; gap: 6%; height: 120px; margin-top: 12px; padding: 12px; border-radius: 8px; background: var(--white); border: 1px solid #eee6e5; }
.mock-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--maroon-500), var(--maroon-700)); transform-origin: bottom; animation: grow 3.6s var(--ease) infinite alternate; }
.mock-chart i:nth-child(3n) { background: linear-gradient(#e2c3bf, var(--rose-300)); }
.mock-chart i:nth-child(2) { animation-delay: 0.2s; } .mock-chart i:nth-child(3) { animation-delay: 0.4s; }
.mock-chart i:nth-child(4) { animation-delay: 0.6s; } .mock-chart i:nth-child(5) { animation-delay: 0.8s; }
.mock-chart i:nth-child(6) { animation-delay: 1s; } .mock-chart i:nth-child(7) { animation-delay: 1.2s; }
.mock-chart i:nth-child(8) { animation-delay: 1.4s; }
@keyframes grow { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }

.mock-phone {
  border-radius: 30px;
  border: 7px solid #140c0e;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
}
.mock-phone img { width: 100%; }

.mock-card {
  padding: 16px;
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(76, 23, 23, 0.06);
}
.mock-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-family: var(--font-head); font-size: 0.9rem; color: var(--maroon-700); }
.ai-badge { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(145deg, var(--rose-300), var(--rose-400)); font-weight: 800; font-size: 0.75rem; color: var(--maroon-800); }
.typing { display: inline-flex; gap: 3px; margin-inline-start: auto; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: var(--rose-400); animation: bounce 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 30% { transform: translateY(-4px); opacity: 0.5; } }
.type-line { height: 8px; margin-top: 8px; border-radius: 4px; background: var(--rose-100); position: relative; overflow: hidden; width: var(--w); }
.type-line::after { content: ""; position: absolute; inset: 0; background: var(--maroon-500); opacity: 0.35; transform-origin: left; animation: type 4s var(--ease) infinite; }
.type-line:nth-of-type(2)::after { animation-delay: 0.5s; }
.type-line:nth-of-type(3)::after { animation-delay: 1s; }
@keyframes type { 0% { transform: scaleX(0); } 45%, 80% { transform: scaleX(1); } 100% { transform: scaleX(1); opacity: 0; } }

.mock-code {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--maroon-950);
  color: #eadcdb;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.8;
  box-shadow: var(--shadow-lg);
  white-space: pre;
  overflow: hidden;
}
.mock-code .k { color: var(--rose-300); }
.mock-code .s { color: #f0c27b; }
.mock-code .c { color: #8c7777; }
.caret { display: inline-block; width: 7px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--rose-300); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px 10px 10px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow);
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--maroon-700);
  white-space: nowrap;
}
.tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #2e7d32; color: var(--white); font-size: 0.75rem; }

.scroll-cue {
  position: absolute;
  left: 50%; bottom: 28px;
  width: 26px; height: 42px;
  margin-left: -13px;
  border: 2px solid rgba(76, 23, 23, 0.3);
  border-radius: 14px;
}
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--maroon-700); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* Marquee */
.marquee {
  overflow: hidden;
  padding-block: 22px;
  background: var(--maroon-800);
  color: var(--rose-100);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; }
.marquee li {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-inline-end: 28px;
  font-family: var(--font-head);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 700;
  white-space: nowrap;
}
.marquee li::after {
  content: "";
  width: 10px; height: 10px;
  background: var(--rose-300);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 58% 56%, 58% 100%, 0 100%);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Sections */
.section { padding-block: var(--section-y); position: relative; }
/* Skip rendering work for sections until they approach the viewport (keeps start-up layout cheap) */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 900px; }
/* Render everything before an in-page jump so anchor targets land exactly (main.js / head script add .cv-off) */
.cv-off .section, .cv-off .site-footer { content-visibility: visible; }
.section-head { max-width: 680px; margin-bottom: clamp(40px, 5vw, 64px); }
.split-head {
  max-width: none;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px 64px;
  align-items: end;
}
.section-lead { font-size: 1.125rem; color: var(--muted); max-width: 34rem; }
.section-head > .section-lead { margin-top: 18px; }

/* Services */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service {
  --mx: 50%; --my: 50%;
  position: relative;
  padding: 28px 26px 30px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.3s;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(320px circle at var(--mx) var(--my), rgba(203, 162, 157, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(76, 23, 23, 0.22); }
.service:hover::before { opacity: 1; }
.service-num { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 0.8rem; color: var(--rose-400); }
.service-icon {
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--rose-100);
  transition: background-color 0.4s, transform 0.5s var(--ease);
}
.service:hover .service-icon { background: var(--maroon-700); transform: rotate(-8deg) scale(1.05); }
.service-icon svg, .contact-icon svg {
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--maroon-700);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.4s;
}
.service:hover .service-icon svg { stroke: var(--white); }
.service h3 { position: relative; margin: 22px 0 10px; }
.service p { position: relative; color: var(--muted); font-size: 0.98rem; }

/* Work */
.work {
  background:
    radial-gradient(900px 600px at 100% 0%, rgba(122, 45, 60, 0.45), transparent 60%),
    linear-gradient(180deg, var(--maroon-900), var(--maroon-950));
  color: rgba(255, 255, 255, 0.78);
}
.work h2 { color: var(--white); }
.work .section-lead { color: rgba(255, 255, 255, 0.7); }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.filter {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.filter:hover { border-color: rgba(255, 255, 255, 0.5); color: var(--white); }
.filter.is-active { background: var(--rose-300); border-color: var(--rose-300); color: var(--maroon-900); }

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.project.is-hidden { display: none; }
.project.is-filtering { opacity: 0; transform: scale(0.97); }
.project-lg { grid-column: 1 / -1; }
.project-lg .project-link { flex-direction: row; }
.project-lg .project-body { justify-content: center; padding: clamp(28px, 4vw, 48px); }
.project-lg .project-title { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.project-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s, background-color 0.4s, transform 0.6s var(--ease);
}
a.project-link:hover, .project-link:hover { border-color: rgba(203, 162, 157, 0.5); background: rgba(255, 255, 255, 0.07); }
.project-media { display: block; overflow: hidden; aspect-ratio: 3 / 2; background: var(--maroon-800); }
.project-lg .project-media { flex: 0 0 58%; aspect-ratio: 3 / 2; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.project-link:hover .project-media img { transform: scale(1.05); }
.project-body { display: flex; flex-direction: column; gap: 10px; padding: 24px 26px 28px; flex: 1; }
.project-meta { font-family: var(--font-head); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-300); }
.project-title { font-family: var(--font-head); font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; color: var(--white); line-height: 1.2; }
.project-desc { font-size: 0.98rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.tags span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.8rem; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.project-cta { margin-top: auto; padding-top: 8px; font-family: var(--font-head); font-weight: 700; color: var(--white); }

/* Process */
.timeline { position: relative; }
.timeline-track { position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline-fill { display: block; height: 100%; background: linear-gradient(90deg, var(--rose-300), var(--maroon-700)); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.step { position: relative; padding-top: 44px; }
.step-dot { position: absolute; top: 0; left: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--paper); border: 2px solid var(--rose-300); transition: background-color 0.4s, border-color 0.4s, box-shadow 0.4s; }
.step.is-active .step-dot { background: var(--maroon-700); border-color: var(--maroon-700); box-shadow: 0 0 0 6px rgba(76, 23, 23, 0.12); }
.step-num { display: block; font-family: var(--font-mono); font-size: 0.85rem; color: var(--rose-400); margin-bottom: 10px; }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* Industries */
.industries { background: var(--white); }
.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.industry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 150px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: background-color 0.4s, transform 0.5s var(--ease);
}
.industry::after {
  content: "";
  position: absolute;
  right: -20px; top: -20px;
  width: 90px; height: 94px;
  background: var(--rose-100);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 58% 56%, 58% 100%, 0 100%);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.industry:hover { transform: translateY(-4px); }
.industry:hover::after { transform: translate(-10px, 10px) rotate(-6deg); background: var(--rose-300); }
.industry h3 { position: relative; z-index: 1; font-size: 1.3rem; max-width: 14ch; }
.industry.is-home { grid-column: span 2; background: linear-gradient(140deg, var(--maroon-600), var(--maroon-900)); border-color: transparent; }
.industry.is-home h3 { color: var(--white); }
.industry.is-home::after { background: rgba(203, 162, 157, 0.35); }
.industry-tag { position: relative; z-index: 1; margin-bottom: auto; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--rose-300); color: var(--maroon-900); font-size: 0.78rem; font-weight: 700; }

/* About and leadership */
.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.about-copy > p { margin-top: 24px; font-size: 1.125rem; color: var(--muted); }
.principles { margin-top: 32px; display: grid; gap: 16px; list-style: none; }
.principles li { padding: 18px 20px 18px 22px; border-inline-start: 3px solid var(--rose-300); background: var(--white); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--muted); }
.principles b { color: var(--maroon-700); font-family: var(--font-head); }

.leader { position: relative; }
.leader-photo {
  position: relative;
  aspect-ratio: 4 / 4.6;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--rose-300), var(--maroon-600));
  box-shadow: var(--shadow-lg);
}
.leader-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1.2s var(--ease); }
.leader:hover .leader-photo img { transform: scale(1.04); }
.leader-photo.no-photo img { display: none; }
.leader-initials {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
}
.leader-motif {
  position: absolute;
  z-index: 2;
  left: 20px; bottom: 20px;
  width: 64px; height: 68px;
  background: var(--rose-300);
  clip-path: polygon(0 0, 100% 0, 100% 56%, 58% 56%, 58% 100%, 0 100%);
}
.leader figcaption {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 4px;
  margin: -64px 20px 0 auto;
  width: min(88%, 380px);
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}
.leader figcaption .eyebrow { margin-bottom: 6px; }
.leader-name { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--maroon-700); letter-spacing: -0.02em; }
.leader-role { font-weight: 600; color: var(--maroon-500); }
.leader-bio { margin-top: 10px; font-size: 0.98rem; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .section-lead { margin-top: 18px; }
.faq-grid .section-lead a { color: var(--maroon-700); font-weight: 600; text-underline-offset: 4px; }
.accordion { display: grid; gap: 12px; }
.accordion details {
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.accordion details[open] { border-color: rgba(76, 23, 23, 0.25); box-shadow: var(--shadow); }
.accordion summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--maroon-700);
  cursor: pointer;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--rose-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c1717' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.4s var(--ease), background-color 0.3s;
}
.accordion details[open] summary::after { transform: rotate(135deg); background-color: var(--rose-300); }
.details-body { padding: 0 24px 22px; color: var(--muted); }
.details-body.is-animating { overflow: hidden; }

/* Contact */
.contact { padding-top: 0; }
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  padding: clamp(28px, 6vw, 72px);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--maroon-700), var(--maroon-950));
  color: rgba(255, 255, 255, 0.8);
  overflow: hidden;
  isolation: isolate;
}
.contact-glow {
  position: absolute;
  z-index: -1;
  width: 520px; height: 520px;
  left: var(--gx, 70%); top: var(--gy, 20%);
  translate: -50% -50%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(203, 162, 157, 0.35), transparent 65%);
  transition: left 0.6s var(--ease), top 0.6s var(--ease);
  pointer-events: none;
}
.contact h2 { color: var(--white); }
.contact-copy > p:not(.eyebrow) { margin-top: 18px; font-size: 1.125rem; max-width: 30rem; }
.contact-links { display: grid; gap: 12px; margin-top: 32px; list-style: none; }
.contact-links a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
  transition: background-color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.contact-links a:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); transform: translateX(4px); }
.contact-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--rose-300); }
.contact-label { display: block; font-size: 0.8125rem; font-weight: 500; color: var(--rose-300); }

.contact-form {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: clamp(20px, 3vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.9rem; font-weight: 600; color: var(--white); }
.optional { font-weight: 400; color: rgba(255, 255, 255, 0.6); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
  color: var(--white);
  transition: border-color 0.3s, background-color 0.3s, box-shadow 0.3s;
}
.field select option { color: var(--ink); }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rose-300); background: rgba(0, 0, 0, 0.28); box-shadow: 0 0 0 3px rgba(203, 162, 157, 0.3); }
.field.has-error input, .field.has-error textarea { border-color: #f2a7a0; }
.contact-form .btn { justify-self: start; }
.form-note { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

/* Footer */
.site-footer { background: var(--maroon-950); color: rgba(255, 255, 255, 0.68); padding-block: 64px 32px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; }
.footer-brand img { width: 147px; }
.footer-brand p { margin-top: 16px; max-width: 22rem; }
.footer-title { font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--rose-300); margin-bottom: 16px; }
.site-footer ul { display: grid; gap: 10px; list-style: none; }
.site-footer a { text-decoration: none; overflow-wrap: anywhere; transition: color 0.2s; }
.site-footer a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.875rem; }

/* Scroll reveal (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--stagger, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .project-lg .project-link { flex-direction: column; }
  .project-lg .project-media { flex: none; aspect-ratio: 16 / 8; }
  .project:last-child:not(.is-hidden) { grid-column: span 2; }
  .project:last-child .project-media { aspect-ratio: 16 / 8; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    padding: 12px var(--gutter) 20px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(42, 14, 18, 0.35);
  }
  .js .site-nav { visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0s 0.3s; }
  .js .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .site-nav a:not(.btn) { display: block; padding: 12px 6px; font-size: 1.05rem; }
  .site-nav a:not(.btn)::after { left: 6px; right: auto; width: 24px; }
  .site-nav li:last-child { margin: 12px 0 0; }
  .site-nav .btn { width: 100%; }

  .hero-inner, .about-grid, .contact-card, .faq-grid, .split-head { grid-template-columns: 1fr; }
  .hero-stage { max-width: 520px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .timeline-track { left: 11px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline-fill { transform-origin: top; transform: scaleY(var(--fill, 0)); }
  .step { padding-top: 0; padding-inline-start: 48px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .leader { max-width: 480px; }
  .scroll-cue { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .service-grid, .project-grid, .industry-grid { grid-template-columns: 1fr; }
  .industry.is-home { grid-column: auto; }
  .project-lg, .project:last-child:not(.is-hidden) { grid-column: auto; }
  .project-lg .project-media, .project:last-child .project-media { aspect-ratio: 3 / 2; }
  .hero-actions .btn { flex: 1 1 100%; }
  .industry { min-height: 120px; }
  .mock-code { font-size: 0.62rem; padding: 10px 12px; }
  .mock-chip { font-size: 0.68rem; padding: 7px 12px 7px 7px; }
  .tick { width: 18px; height: 18px; }
  .mock-phone { border-width: 5px; border-radius: 20px; }
  .mock-card { padding: 10px; }
  .mock-card-head { font-size: 0.75rem; margin-bottom: 6px; }
  .ai-badge { width: 24px; height: 24px; }
  .mock-body { min-height: 150px; }
  .mock-chart { height: 80px; }
  .contact-form .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .leader figcaption { margin: -48px 12px 0; width: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { transform: none; }
}
