/* ============================================
   Corpademia — Refined Editorial Design
   Aesthetic: Restrained luxury. Confident whitespace.
   Fonts: Bricolage Grotesque (display) + Plus Jakarta Sans (body)
   ============================================ */

:root {
  --bg: #faf9f7;
  --paper: #ffffff;
  --paper-2: #f5f4f1;
  --ink: #0a0b0d;
  --ink-secondary: #3d4250;
  --muted: #6b7084;
  --line: #e6e3de;
  --line-light: #f0ede8;
  --accent: #4a4e5a;
  --accent-hover: #2f323b;
  --teal: #9a9ea8;
  --gold: #c87d1a;
  --violet: #6d28d9;
  --blue-soft: #eef4ff;
  --teal-soft: #edfcf7;
  --gold-soft: #fef9ec;
  --violet-soft: #f3f0ff;
  --shadow-sm: 0 1px 3px rgba(10, 11, 13, .04);
  --shadow: 0 8px 32px rgba(10, 11, 13, .06);
  --shadow-lg: 0 24px 64px rgba(10, 11, 13, .08);
  --radius: 20px;
  --radius-lg: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --band: #0b0b0c;
}

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

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  position: relative;
}

/* Subtle grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  opacity: .28;
  pointer-events: none;
  z-index: 9998;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

img { max-width: 100%; display: block }
a { color: inherit; transition: opacity .2s var(--ease) }
.container { max-width: var(--max); margin: 0 auto; padding: 0 clamp(20px, 4vw, 48px) }

/* ---- Scroll Reveal ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Ensure sections have min-height so reveals trigger properly */
.section {
  min-height: 100px;
}
.reveal-delay-1 { transition-delay: .08s }
.reveal-delay-2 { transition-delay: .16s }
.reveal-delay-3 { transition-delay: .24s }
.reveal-delay-4 { transition-delay: .32s }

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

header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(250, 249, 247, .88);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  border-bottom: 1px solid rgba(17, 19, 24, .04);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; text-decoration: none }
.brand img { height: 52px; width: auto }

.nav-links { display: flex; gap: 4px; align-items: center }
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  transition: all .2s var(--ease);
  letter-spacing: -.01em;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
  background: rgba(17, 19, 24, .04);
}
.nav-cta {
  margin-left: 8px;
  background: var(--ink) !important;
  color: #fff !important;
  padding: 9px 20px !important;
  border-radius: 999px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  letter-spacing: -.01em;
  transition: all .25s var(--ease) !important;
}
.nav-cta:hover {
  background: var(--ink-secondary) !important;
  transform: translateY(-1px);
}

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

h1, h2, h3 {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
}

/* Hero gradient text */
.hero-gradient {
  background: linear-gradient(135deg, var(--ink) 0%, #53586a 50%, #9a9ea8 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: gradientShift 6s ease infinite;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50% }
  50% { background-position: 100% 50% }
}

/* Animated mesh background for hero */
.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}
.hero-bg::before,
.hero-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .07;
  animation: float 12s ease-in-out infinite;
}
.hero-bg::before {
  width: 600px;
  height: 600px;
  background: var(--accent);
  top: -200px;
  right: -100px;
}
.hero-bg::after {
  width: 500px;
  height: 500px;
  background: var(--teal);
  bottom: -150px;
  left: -100px;
  animation-delay: -4s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1) }
  33% { transform: translate(30px, -20px) scale(1.05) }
  66% { transform: translate(-20px, 15px) scale(.95) }
}

/* Subtle architectural key art behind the device composite */
.hero-art-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url('../images/hero-art.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 1099px) {
  .hero-art-bg { opacity: .22 }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all .3s var(--ease);
  border: none;
  cursor: pointer;
  letter-spacing: -.01em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 4px 16px rgba(10, 11, 13, .12);
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.16), rgba(255,255,255,.02));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.btn-primary:hover::before { opacity: 1 }
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(10, 11, 13, .2);
}

.btn-secondary {
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-secondary:hover {
  border-color: #ccc;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding: 14px 0;
}
.btn-ghost:hover { color: var(--ink) }
.btn-ghost .arrow {
  transition: transform .2s var(--ease);
}
.btn-ghost:hover .arrow {
  transform: translateX(4px);
}

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

.hero {
  padding: clamp(32px, 5vw, 60px) 0 clamp(40px, 8vw, 80px);
}

.hero-inner {
  max-width: 800px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 88px);
  line-height: 1.15;
  letter-spacing: -.04em;
  margin: 0 0 28px;
  max-width: 780px;
}

.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-secondary);
  line-height: 1.65;
  max-width: 600px;
  margin: 0 0 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

/* Hero metrics — clean horizontal strip */
.hero-metrics {
  display: flex;
  gap: 0;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  flex: 1;
  padding: 28px 0;
  border-right: 1px solid var(--line);
}
.metric:last-child { border-right: none }
.metric:first-child { padding-right: 32px }
.metric:not(:first-child):not(:last-child) { padding: 28px 32px }
.metric:last-child { padding-left: 32px }
.metric-value {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 36px;
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 6px;
}
.metric-label {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* Hero two-column row: copy (sub/actions/industries) + device visual */
.hero-columns {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.hero-copy { min-width: 0 }

/* Device composite — laptop + phone built from real product screenshots */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 10px 30px 40px 0;
}
.device-laptop {
  position: relative;
  border-radius: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(10,11,13,.28), 0 10px 24px -8px rgba(10,11,13,.12);
  overflow: hidden;
  transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
  transform-origin: center right;
}
.device-laptop-bar {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 9px 12px;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.device-laptop-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--line);
}
.device-laptop-screen {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.device-laptop-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-laptop-base {
  height: 8px;
  background: linear-gradient(180deg, var(--line) 0%, var(--paper-2) 100%);
  border-top: 1px solid var(--line);
}
.device-phone {
  position: absolute;
  right: -28px;
  bottom: -30px;
  width: 132px;
  border-radius: 22px;
  background: #16171b;
  padding: 7px;
  box-shadow: 0 24px 48px -16px rgba(10,11,13,.38), 0 6px 16px rgba(10,11,13,.18);
  transform: perspective(1200px) rotateY(-9deg) rotateX(2deg);
  transform-origin: center left;
}
.device-phone-screen {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  border-radius: 16px;
  overflow: hidden;
  background: #0b0b0c;
}
.device-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 73% center;
}

@media (prefers-reduced-motion: no-preference) {
  .device-laptop, .device-phone { transition: transform .5s var(--ease) }
}

@media (min-width: 1100px) {
  .hero-columns {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }
  .hero-copy { flex: 1 1 auto; max-width: 600px }
  .hero-visual { flex: 0 0 420px; max-width: 420px; margin: 0 }
}

/* ============================================
   Sections
   ============================================ */

.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section-header {
  margin-bottom: clamp(32px, 5vw, 56px);
  max-width: 680px;
}
.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 16px;
  letter-spacing: -.03em;
}

.section-header p {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  margin: 0;
}

/* ============================================
   Features Grid — Clean cards
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}

.feature-card {
  background: var(--paper);
  padding: clamp(24px, 3vw, 36px);
  transition: background .3s var(--ease);
}
.feature-card:hover {
  background: var(--paper-2);
}
.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 20px;
  letter-spacing: -.02em;
}
.feature-card h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0 0 8px;
  line-height: 1.25;
}
.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

/* ============================================
   Dark band sections ("The economics", "About")
   ============================================ */
.section-dark {
  background: var(--band);
  color: #fff;
  position: relative;
}
.section-dark .section-label { color: rgba(255,255,255,.55) }
.section-dark .section-header h2 { color: #fff }
.section-dark .section-header p { color: rgba(255,255,255,.62) }
.section-dark .card {
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.1);
}
.section-dark .card-label { color: rgba(255,255,255,.5) }
.section-dark .card h3 { color: #fff }
.section-dark .card p { color: rgba(255,255,255,.62) }
.section-dark .timeline-item { background: rgba(255,255,255,.05) }
.section-dark .timeline-head strong { color: #fff }
.section-dark .kpi-row { border-bottom-color: rgba(255,255,255,.1) }
.section-dark .kpi-row strong { color: #fff }
.section-dark .kpi-row span { color: rgba(255,255,255,.55) }
.section-dark .mini-card { background: rgba(255,255,255,.05) }
.section-dark .mini-card-label { color: rgba(255,255,255,.5) }
.section-dark .mini-card strong { color: #fff }
.section-dark .mini-card p { color: rgba(255,255,255,.58) }
.section-dark .domain-item { background: rgba(255,255,255,.05); color: #fff }
.section-dark .domain-item span:last-child { color: rgba(255,255,255,.5) }
.section-dark .divider { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12) 20%, rgba(255,255,255,.12) 80%, transparent) }

.band-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .14;
  pointer-events: none;
}

/* Proof band — numbers already true on the site */
.proof-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: clamp(32px, 5vw, 56px);
  position: relative;
}
.proof-tile {
  background: rgba(255,255,255,.03);
  padding: clamp(24px, 3vw, 36px);
  text-align: center;
}
.proof-value {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.proof-label {
  font-size: 13px;
  color: rgba(255,255,255,.55);
  font-weight: 600;
}
.proof-value-text { font-size: clamp(22px, 2.6vw, 30px) }
@media (max-width: 820px) {
  .proof-band { grid-template-columns: 1fr }
}

/* ============================================
   Two-column Value Story
   ============================================ */

.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
}

.card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

.card h3 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 12px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* Timeline bars */
.timeline {
  margin-top: 24px;
  display: grid;
  gap: 16px;
}
.timeline-item {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 18px 20px;
}
.timeline-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.timeline-head strong {
  font-size: 15px;
  font-weight: 700;
}
.timeline-head span {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  letter-spacing: -.02em;
}
.bar-track {
  display: flex;
  gap: 3px;
  height: 32px;
}
.bar-segment {
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  padding: 0 6px;
  transform-origin: left center;
}
@media (prefers-reduced-motion: no-preference) {
  .bar-segment {
    transform: scaleX(0);
    transition: transform .6s var(--ease);
  }
  .bar-track.in-view .bar-segment { transform: scaleX(1) }
  .bar-track .bar-segment:nth-child(1) { transition-delay: .03s }
  .bar-track .bar-segment:nth-child(2) { transition-delay: .1s }
  .bar-track .bar-segment:nth-child(3) { transition-delay: .17s }
  .bar-track .bar-segment:nth-child(4) { transition-delay: .24s }
  .bar-track .bar-segment:nth-child(5) { transition-delay: .31s }
}

/* KPI rows */
.kpi-list {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}
.kpi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
}
.kpi-row:last-child { border-bottom: none }
.kpi-row strong {
  font-size: 15px;
  font-weight: 700;
}
.kpi-row span {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================
   Expertise Tabs
   ============================================ */

.tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  background: var(--paper-2);
  border-radius: 14px;
  padding: 4px;
  width: fit-content;
}
.tab-btn {
  padding: 10px 20px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -.01em;
}
.tab-btn:hover { color: var(--ink) }
.tab-btn.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.tab-panel { display: none }
.tab-panel.active { display: block }

.domain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.domain-list {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.domain-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--paper-2);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
}
.domain-item span:last-child {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 800;
}

/* ============================================
   Case Studies / Success Stories
   ============================================ */

.cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cases-grid .case-card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 620px;
}

.case-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .4s var(--ease);
  position: relative;
}
.case-card-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-2);
}
.case-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.case-card-body {
  padding: clamp(28px, 3.5vw, 40px);
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(10,11,13,.025), rgba(10,11,13,.008));
  opacity: 0;
  transition: opacity .4s var(--ease);
  pointer-events: none;
}
.case-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: rgba(10,11,13,.14);
  transform: translateY(-4px);
}
.case-card:hover::after { opacity: 1 }

.case-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 12px;
  letter-spacing: -.01em;
}

.case-card h3 {
  font-size: clamp(22px, 2.5vw, 28px);
  margin: 0 0 12px;
}

.case-desc {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
  line-height: 1.65;
}

.case-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.case-stat {
  padding: 6px 14px;
  background: var(--paper-2);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.case-quote {
  font-style: italic;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin: 0 0 12px;
  padding-left: 16px;
  border-left: 2px solid var(--line);
}

.case-cite {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 16px;
}

.case-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: gap .2s var(--ease);
}
.case-link:hover { gap: 10px }

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

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mini-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}
.mini-card {
  background: var(--paper-2);
  border-radius: 16px;
  padding: 18px;
}
.mini-card-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 6px;
}
.mini-card strong {
  display: block;
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 6px;
}
.mini-card p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

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

.cta-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 64px);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, .08), transparent 70%);
  pointer-events: none;
}

.cta-block .section-label {
  color: rgba(255, 255, 255, .5);
}
.cta-block h2 {
  color: #fff;
  font-size: clamp(32px, 4.5vw, 52px);
  margin: 0 0 14px;
}
.cta-block p {
  color: rgba(255, 255, 255, .6);
  font-size: 17px;
  max-width: 520px;
  margin: 0 0 32px;
  line-height: 1.7;
}
.cta-block .btn-primary {
  background: #fff;
  color: var(--ink);
}
.cta-block .btn-primary:hover {
  background: #f0efed;
}
.cta-block .btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, .7);
  border-color: rgba(255, 255, 255, .15);
}
.cta-block .btn-secondary:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, .3);
}

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

.interest-form {
  margin-top: 28px;
  max-width: 560px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 6px;
  letter-spacing: -.01em;
}
.form-group .optional {
  font-weight: 500;
  opacity: .5;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  color: #fff;
  font-size: 15px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  transition: all .2s var(--ease);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, .25);
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .12);
}
.form-group textarea {
  resize: vertical;
  min-height: 100px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.form-alt {
  font-size: 14px;
  color: rgba(255, 255, 255, .4);
}
.form-status {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 700;
}
.form-status.success {
  color: #34d399;
}
.form-status.error {
  color: #f87171;
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr }
}

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

.site-footer {
  padding: 48px 0 40px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line-light);
}
.footer-top img { height: 48px }
.footer-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 10px;
  letter-spacing: -.01em;
  transition: all .2s var(--ease);
}
.footer-nav a:hover {
  color: var(--ink);
  background: rgba(17, 19, 24, .04);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-bottom p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}
.footer-bottom a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.footer-bottom a:hover { color: var(--ink) }

/* ============================================
   Portfolio Page
   ============================================ */

.portfolio-hero {
  padding: clamp(48px, 8vw, 80px) 0 clamp(24px, 4vw, 40px);
}
.portfolio-hero h1 {
  font-size: clamp(44px, 6vw, 72px);
  margin: 16px 0 14px;
  letter-spacing: -.04em;
}
.portfolio-hero p {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0;
  line-height: 1.65;
}

.filter-bar {
  display: flex;
  gap: 4px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  border-radius: 14px;
  padding: 4px;
  width: fit-content;
}
.filter-btn {
  padding: 10px 18px;
  border-radius: 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.filter-btn:hover { color: var(--ink) }
.filter-btn.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.project-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .35s var(--ease);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.project-card-thumb {
  width: 100%;
  height: 280px;
  background: var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.project-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  image-rendering: -webkit-optimize-contrast;
}
.placeholder-icon {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--line);
}

.project-card-body {
  padding: 24px 28px 28px;
}
.project-card-category {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--accent);
  margin-bottom: 8px;
}
.project-card-body h3 {
  font-size: 22px;
  margin: 0 0 8px;
}
.project-card-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.project-card-stats {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.project-card-stats span {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-2);
  font-size: 12px;
  font-weight: 800;
}

/* ============================================
   Project Detail
   ============================================ */

.project-detail { padding: 40px 0 60px }

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.project-breadcrumb a {
  text-decoration: none;
  color: var(--accent);
}
.project-breadcrumb a:hover { opacity: .7 }

.project-header { margin-bottom: 40px }
.project-header h1 {
  font-size: clamp(36px, 5vw, 56px);
  margin: 0 0 12px;
  letter-spacing: -.04em;
}
.project-tagline {
  font-size: 19px;
  color: var(--ink-secondary);
  line-height: 1.6;
  max-width: 640px;
  margin: 0 0 24px;
}

.project-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.project-meta-item { display: flex; flex-direction: column; gap: 4px }
.project-meta-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}
.project-meta-value {
  font-size: 15px;
  font-weight: 700;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 36px 0;
}
.result-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}
.result-metric {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--accent);
}
.result-label {
  font-size: 14px;
  color: var(--muted);
}

.project-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 36px;
}

.kicker {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
}

/* Market context block (case studies with sourced industry context) */
.market-block {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 32px);
  margin-bottom: 24px;
}
.market-block .kicker { margin-bottom: 10px }
.market-block p { margin: 0 0 14px; color: var(--ink-secondary); line-height: 1.7 }
.market-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.market-sources a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.market-sources a:hover { color: var(--ink) }

.project-logo {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
}

/* ============================================
   Capability icons (inline SVG, black/gray)
   ============================================ */
.feature-icon-line {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  margin-bottom: 20px;
  background: var(--paper-2);
  color: var(--ink-secondary);
}

/* ============================================
   Selected clients strip
   ============================================ */
.clients-strip {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.clients-label {
  display: block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 18px;
}
.clients-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  align-items: center;
}
.clients-marks span {
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink-secondary);
  letter-spacing: -.01em;
  opacity: .72;
}

/* ============================================
   Leadership
   ============================================ */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.leader-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.leader-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.leader-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--paper-2);
  color: var(--ink-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.leader-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  margin: 2px 0 0;
}
.leader-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.leader-link:hover { gap: 10px }

/* ============================================
   Healthcare data-handling trust block
   ============================================ */
.data-trust {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 20px;
}
.data-trust .kicker { margin-bottom: 8px }
.data-trust p { margin: 0; color: var(--ink-secondary); font-size: 14px; line-height: 1.65 }

/* ============================================
   Contact grid: form + booking panel
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: 28px;
}
.contact-grid .interest-form { margin-top: 0 }
.booking-panel {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.booking-panel h3 {
  color: #fff;
  font-size: 20px;
  margin: 0;
}
.booking-panel p {
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
  margin: 0;
  line-height: 1.6;
}
.booking-panel .btn-primary {
  align-self: flex-start;
  margin-top: 4px;
}
.booking-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: rgba(255, 255, 255, .45);
  margin-top: 6px;
}
.booking-meta a {
  color: rgba(255, 255, 255, .75);
  text-decoration: underline;
}

/* ============================================
   Footer trust line / legal links
   ============================================ */
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

/* ============================================
   Legal pages (privacy / terms)
   ============================================ */
.legal-page { padding: clamp(40px, 6vw, 64px) 0 clamp(48px, 8vw, 80px) }
.legal-page h1 { font-size: clamp(36px, 5vw, 52px); margin: 0 0 8px; letter-spacing: -.03em }
.legal-page .legal-updated { color: var(--muted); font-size: 14px; margin: 0 0 40px }
.legal-page h2 { font-size: 22px; margin: 40px 0 12px; letter-spacing: -.02em }
.legal-page p, .legal-page li { color: var(--ink-secondary); font-size: 15px; line-height: 1.75 }
.legal-page ul { padding-left: 20px }
.legal-page a { color: var(--ink); text-decoration: underline }

/* Testimonial block */
.testimonial-block {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4vw, 48px);
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.testimonial-block::before {
  content: "\201C";
  position: absolute;
  top: -20px;
  left: 20px;
  font-family: 'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
  font-size: 140px;
  color: rgba(255, 255, 255, .04);
  line-height: 1;
}
.quote-text {
  color: rgba(255, 255, 255, .85);
  font-size: 18px;
  font-style: italic;
  line-height: 1.75;
  margin: 0 0 20px;
  position: relative;
}
.quote-author {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.quote-title {
  color: rgba(255, 255, 255, .4);
  font-size: 13px;
  font-weight: 600;
}

/* Tech tags */
.tech-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tech-tag {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
}

/* ============================================
   Screenshot Gallery + Preview Toggle
   ============================================ */

.screenshot-gallery { margin-bottom: 36px }

.screenshot-gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 14px;
}
.screenshot-gallery-header h2 {
  font-size: 28px;
  margin: 0;
}

.preview-toggle {
  display: flex;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 3px;
  gap: 2px;
}
.preview-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s var(--ease);
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.preview-toggle-btn:hover { color: var(--ink) }
.preview-toggle-btn.active {
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.preview-toggle-icon {
  display: flex;
  align-items: center;
}

/* ---- Carousel ---- */
.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--ink);
  border: 1px solid var(--line);
}

.carousel-track {
  display: flex;
  transition: transform .5s var(--ease);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  position: relative;
  cursor: pointer;
}
.carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* Nav arrows */
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s var(--ease);
  z-index: 10;
  box-shadow: var(--shadow);
}
.carousel-nav:hover {
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.06);
}
.carousel-nav:active { transform: translateY(-50%) scale(.96) }
.carousel-nav.prev { left: 16px }
.carousel-nav.next { right: 16px }
.carousel-nav:disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

/* Dots */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 16px 0;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: all .3s var(--ease);
  padding: 0;
}
.carousel-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}
.carousel-dot:hover:not(.active) { background: var(--muted) }

/* Counter badge */
.carousel-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 11, 13, .7);
  backdrop-filter: blur(8px);
  color: #fff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  z-index: 10;
}

/* Mobile grid fallback for single-image projects */
.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  gap: 16px;
}
.screenshots-grid.mobile-grid {
  grid-template-columns: repeat(auto-fill, minmax(180px, 240px));
  justify-content: center;
}

.screenshot-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all .3s var(--ease);
}
.screenshot-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.screenshot-item img { width: 100%; height: auto; display: block }

.screenshot-mobile { max-width: 260px }
.phone-frame {
  background: #1a1a1a;
  border-radius: 28px;
  padding: 10px 6px;
}
.phone-frame img { border-radius: 20px }

.empty-screenshots {
  text-align: center;
  padding: 48px;
  color: var(--muted);
  background: var(--paper-2);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  grid-column: 1 / -1;
}
.empty-screenshots p { font-size: 15px; font-weight: 600; margin: 0 }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(16px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}
.lightbox.active { display: flex }
.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 32px 80px rgba(0, 0, 0, .5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .2) }

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

@media (max-width: 1080px) {
  .features-grid { grid-template-columns: 1fr 1fr }
}

@media (max-width: 820px) {
  .hero-metrics { flex-direction: column; }
  .metric { border-right: none; border-bottom: 1px solid var(--line); padding: 20px 0 !important }
  .metric:last-child { border-bottom: none }

  .features-grid,
  .value-grid,
  .domain-grid,
  .cases-grid,
  .about-grid,
  .leadership-grid,
  .contact-grid,
  .project-content,
  .portfolio-grid { grid-template-columns: 1fr }

  .mini-cards { grid-template-columns: 1fr }
  .tabs { flex-wrap: wrap }
  .filter-bar { flex-wrap: wrap; width: auto }
  .domain-item { flex-wrap: wrap; gap: 4px 10px }
  .screenshots-grid { grid-template-columns: 1fr }
  .nav-links { display: none }

  .footer-top,
  .footer-bottom { flex-direction: column; align-items: flex-start }

  /* Timeline bars — prevent clipping on mobile */
  .timeline-item { padding: 14px 14px; }
  .timeline-head span { font-size: 20px; }
  .bar-track { height: 28px; gap: 2px; }
  .bar-segment { font-size: 8px; letter-spacing: .01em; border-radius: 6px; min-width: 0; }
}

@media (max-width: 600px) {
  .results-grid { grid-template-columns: 1fr }
  .portfolio-grid { grid-template-columns: 1fr }
  .project-card-thumb { height: 160px }

  .hero-visual { max-width: 220px; padding: 10px 18px 24px 0 }
  .device-phone { width: 76px; right: -14px; bottom: -16px }

  /* Timeline bars — stack head vertically on small screens */
  .timeline-head { flex-direction: column; gap: 2px; margin-bottom: 10px; }
  .timeline-head span { font-size: 22px; }
  .bar-track { height: 30px; }
  .bar-segment { font-size: 9px; padding: 0 4px; border-radius: 6px; }
}

/* Respect reduced-motion preference across all transitions/animations */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Hero uses the full content width on desktop (Justin 2026-10-21):
   headline on one line, wider intro paragraph. */
@media (min-width: 1100px) {
  .hero-inner { max-width: none }
  .hero h1 { max-width: none; white-space: nowrap }
  .hero h1 br { display: none }
  .hero h1 .hero-gradient { margin-left: .22em }
  .hero-sub { max-width: 880px }
}

/* Section headings and their intros use the full content width on desktop
   (Justin 2026-10-22): one-line titles, intro paragraphs as wide as the section. */
@media (min-width: 1100px) {
  .section-header { max-width: none }
  .section-header h2 br, .cta-block h2 br { display: none }
  .section-header h2 { font-size: min(50px, 3.6vw) }
  .section-header p { max-width: 1000px }
  .section-header.center p { margin-left: auto; margin-right: auto }
  .cta-block p { max-width: 760px }
  .portfolio-hero p { max-width: 880px }
  .project-tagline { max-width: 880px }
}

/* Key art on the economics band (Benny 2026-10-22): contour-line art at low opacity, calm centre */
#value.section-dark { position: relative; overflow: hidden; isolation: isolate; }
#value.section-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: url("../images/band-art.webp") center / cover no-repeat;
  opacity: .55; pointer-events: none;
}

/* Industries row spans the full hero width below the copy + device columns (Benny 2026-10-22) */
@media (min-width: 1100px) {
  .hero-copy { max-width: none }
  .hero > .container > .hero-metrics, .hero .hero-metrics { margin-top: 48px }
}

/* Hero composite v2 (Justin 2026-10-22 16:49Z: phone wasn't showing correctly; laptop not dynamic enough):
   real Alli-Gate guidebook screen in the phone, bigger composite, floating product cards that drift */
@media (min-width: 1100px) {
  .hero-visual { flex: 0 0 520px; max-width: 520px; padding: 40px 40px 70px 30px; }
}
.device-phone { width: 150px; right: -18px; bottom: -36px; }
.device-phone-screen { aspect-ratio: 876 / 1836; border-radius: 18px; }
.device-phone-screen img { object-fit: cover; object-position: center top; }
.float-card {
  position: absolute; z-index: 3; border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 22px 44px -14px rgba(10,11,13,.32), 0 4px 12px rgba(10,11,13,.12);
  border: 1px solid rgba(10,11,13,.06);
}
.float-card img { display: block; width: 100%; height: auto; }
.float-card-risk { width: 46%; left: -34px; top: -6px; transform: rotate(-2deg); }
.float-card-insight { width: 62%; left: -10px; bottom: 6px; transform: rotate(1deg); }
@media (prefers-reduced-motion: no-preference) {
  .float-card-risk { animation: floatA 7s ease-in-out infinite alternate; }
  .float-card-insight { animation: floatB 8s ease-in-out infinite alternate; }
  .device-phone { animation: floatC 9s ease-in-out infinite alternate; }
  @keyframes floatA { from { transform: translateY(0) rotate(-2deg) } to { transform: translateY(-12px) rotate(-1deg) } }
  @keyframes floatB { from { transform: translateY(0) rotate(1deg) } to { transform: translateY(10px) rotate(0deg) } }
  @keyframes floatC { from { transform: perspective(1200px) rotateY(-9deg) rotateX(2deg) translateY(0) } to { transform: perspective(1200px) rotateY(-6deg) rotateX(1deg) translateY(-10px) } }
}
@media (max-width: 1099px) {
  .float-card-risk { width: 42%; left: -6px; top: -14px; }
  .float-card-insight { width: 58%; left: 0; bottom: 0; }
  .device-phone { width: 92px; right: -10px; bottom: -18px; }
}

/* Hero composite v3 (Justin 16:55Z: fuzzy, cluttered): one large crisp product stage under the copy,
   browser frame at full container width, phone overlapping bottom-right at a readable size, no floating cards */
.float-card { display: none !important; }
.hero-columns { display: block !important; }
.hero-copy { max-width: 880px !important; }
.hero-visual {
  flex: none !important; max-width: none !important; width: 100% !important;
  margin: 56px 0 0 !important; padding: 0 0 56px !important;
}
.device-laptop {
  transform: none !important; animation: none !important;
  border-radius: 16px; box-shadow: 0 40px 80px -30px rgba(10,11,13,.35), 0 10px 30px -10px rgba(10,11,13,.15);
}
.device-laptop-base { display: none; }
.device-laptop-screen img { width: 100%; height: auto; display: block; }
.device-phone {
  width: 232px !important; right: 4% !important; bottom: -8px !important; left: auto !important;
  transform: none !important; animation: none !important; border-radius: 34px; padding: 9px;
  box-shadow: 0 40px 70px -24px rgba(10,11,13,.45), 0 10px 24px rgba(10,11,13,.2);
}
.device-phone-screen { border-radius: 26px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-visual { animation: heroRise .9s cubic-bezier(.2,.7,.2,1) both; }
  .device-phone { animation: phoneRise 1.1s .25s cubic-bezier(.2,.7,.2,1) both !important; }
  @keyframes heroRise { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
  @keyframes phoneRise { from { opacity: 0; transform: translateY(40px) } to { opacity: 1; transform: none } }
}
@media (max-width: 1099px) {
  .hero-visual { margin-top: 36px !important; padding-bottom: 36px !important; }
  .device-phone { width: 30% !important; max-width: 150px; right: 2% !important; bottom: -6px !important; border-radius: 22px; padding: 6px; }
  .device-phone-screen { border-radius: 17px; }
}
.device-laptop-screen { aspect-ratio: auto !important; height: auto !important; }
.device-laptop-screen img { aspect-ratio: 2560 / 1224; object-fit: cover; object-position: top left; }

/* Hero v4 — editorial firm hero (Justin 16:59Z: "too big and the message gets lost", "doesn't look like a large polished firm").
   Message first, generous space, one full-bleed piece of key art; product screenshots live in the Work section. */
.hero-visual { display: none !important; }
.hero { min-height: min(88vh, 860px); display: flex; align-items: center; padding-top: 140px; padding-bottom: 72px; }
.hero > .container { width: 100%; }
.hero-art-bg {
  background-image: url('../images/hero-art-hd.webp') !important;
  background-size: cover !important; background-position: right center !important;
  opacity: 1 !important;
}
.hero-art-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(247,247,245,.96) 0%, rgba(247,247,245,.88) 38%, rgba(247,247,245,.25) 70%, rgba(247,247,245,0) 100%); }
.hero-copy { max-width: 720px !important; }
.hero-sub { font-size: 19px; line-height: 1.65; }
.hero .hero-metrics { margin-top: 72px !important; max-width: 820px; }
@media (max-width: 1099px) {
  .hero { min-height: 0; padding-top: 120px; }
  .hero-art-bg { opacity: .35 !important; }
}
@media (min-width: 1100px) {
  .hero .hero-metrics { max-width: 1000px !important; }
  .hero .metric-value { font-size: 26px !important; white-space: nowrap; }
}

/* Proof band: four client outcomes (Justin 17:00Z: "tell a bigger story") */
.proof-band-4 { grid-template-columns: repeat(4, 1fr) !important; }
.proof-band-4 .proof-tile { text-align: left; padding: 28px 26px; }
.proof-band-4 .proof-value { font-size: clamp(34px, 3.4vw, 48px); }
.proof-band-4 .proof-label { margin-top: 10px; font-size: 14px; line-height: 1.5; color: rgba(255,255,255,.72); }
.proof-client { margin-top: 14px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
@media (max-width: 900px) { .proof-band-4 { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 520px) { .proof-band-4 { grid-template-columns: 1fr !important; } }

/* Economics band legibility (Justin 17:02Z: wording gets lost; timeline lost in the black — a small pop of color is fine) */
.proof-band-4 .proof-value { color: #fff; }
.proof-band-4 .proof-label { font-size: 16px !important; line-height: 1.45 !important; color: rgba(255,255,255,.92) !important; font-weight: 500; }
.proof-client { font-size: 12px !important; color: #7dd3fc !important; }
.section-dark .timeline-item { background: rgba(255,255,255,.08) !important; border: 1px solid rgba(255,255,255,.08); }
.timeline-head { display: flex; align-items: baseline; justify-content: space-between; }
.timeline-dur { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.timeline-dur-pop { color: #7dd3fc; }
.bar-track-fast { width: 58%; }
.bar-track-fast .bar-segment { font-size: 9px; letter-spacing: .02em; padding: 0 2px; }
@media (max-width: 600px) { .bar-track-fast { width: 72%; } }
.timeline-head .timeline-dur { font-size: 12px !important; font-weight: 700 !important; letter-spacing: .08em; }
.section-dark .kpi-row span { color: rgba(255,255,255,.82) !important; font-size: 14px !important; }
.section-dark .kpi-row strong { color: #fff !important; }
.section-dark .card p { color: rgba(255,255,255,.78) !important; }
.section-dark .section-header p { color: rgba(255,255,255,.78) !important; }
/* "Not quarters." keeps its original blue pop (Justin 17:03Z) */
.hero-gradient { background: linear-gradient(135deg, #0f172a 0%, #2563eb 50%, #0f9f88 100%) !important; background-size: 200% 200% !important; -webkit-background-clip: text !important; background-clip: text !important; }

/* Dark-band cards stand off the black (Justin 17:05Z: "all these boxes get lost in black") */
.section-dark .card,
.section-dark .proof-band {
  background: linear-gradient(180deg, #24262d 0%, #1b1d22 100%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.65), inset 0 1px 0 rgba(255,255,255,.08) !important;
  position: relative;
}
.section-dark .card::before,
.section-dark .proof-band::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, #7dd3fc, #2563eb); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.section-dark .proof-band { gap: 0 !important; }
.section-dark .proof-tile { background: transparent !important; border-right: 1px solid rgba(255,255,255,.12); }
.section-dark .proof-tile:last-child { border-right: 0; }
.section-dark .timeline-item { background: #2c2f37 !important; border: 1px solid rgba(255,255,255,.16) !important; }
.section-dark .kpi-row { border-color: rgba(255,255,255,.16) !important; }
.section-dark .card-label { color: #7dd3fc !important; }
.section-dark [class*="ship"], .section-dark .combo-card, .section-dark .split-card { background: #2c2f37 !important; }
@media (max-width: 900px) {
  .section-dark .proof-tile { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
}

/* Hero industries row readable over the key art (Justin 17:06Z: "these words get lost too") */
.hero .hero-metrics {
  background: rgba(250,250,248,.88);
  -webkit-backdrop-filter: blur(14px) saturate(1.1); backdrop-filter: blur(14px) saturate(1.1);
  border: 1px solid rgba(10,11,13,.08); border-radius: 18px;
  box-shadow: 0 24px 50px -24px rgba(10,11,13,.25);
  padding: 22px 28px; max-width: 1040px !important;
}
.hero .hero-metrics .metric { border-color: rgba(10,11,13,.1) !important; }
.hero .metric-label { color: #3f434d !important; }

/* Justin 17:09Z: blue top line must follow the rounded corners; less padding on the hero industries panel */
.section-dark .card::before, .section-dark .proof-band::before { display: none !important; }
.section-dark .card, .section-dark .proof-band {
  box-shadow: inset 0 3px 0 0 #3b82f6, 0 30px 60px -20px rgba(0,0,0,.65) !important;
}
.hero .hero-metrics { padding: 4px 24px !important; }
.hero .hero-metrics .metric:not(:first-child) { padding-left: 24px !important; }
.hero .hero-metrics .metric { padding-top: 12px !important; padding-bottom: 12px !important; }

/* Justin 17:55Z: too much space above the hero heading */
.hero { min-height: 0 !important; align-items: flex-start !important; padding-top: 56px !important; padding-bottom: 64px !important; }
.hero .hero-inner, .hero .hero-label { margin-top: 0 !important; }
@media (max-width: 1099px) { .hero { padding-top: 36px !important; } }
@media (max-width: 1099px) { .hero .hero-metrics .metric:not(:first-child) { padding-left: 0 !important; } .hero .hero-metrics .metric { border-right: 0 !important; } }

/* Timeline phase labels: room around the words (Justin 2026-10-23 19:49Z: "hard to read words like STRATEGY") */
.bar-segment { padding: 0 12px !important; letter-spacing: .05em !important; font-size: 10px !important; }
.bar-track { height: 34px; gap: 4px; }
.bar-track-fast { width: auto !important; max-width: 100%; }
.bar-track-fast .bar-segment { flex: 0 0 auto !important; }
@media (max-width: 900px) {
  .bar-segment { padding: 0 8px !important; font-size: 9px !important; }
  .bar-track { height: 30px; gap: 3px; }
}
@media (max-width: 600px) {
  .bar-segment { padding: 0 5px !important; font-size: 8px !important; letter-spacing: .02em !important; }
  .bar-track-fast { width: auto !important; }
}
