/* =================================================
   Caspian Consultings — Shared styles
   ================================================= */
:root {
  --navy:        #0A2540;
  --navy-2:      #0F2D4F;
  --navy-3:      #1A3A5C;
  --ink:         #0A2540;
  --ink-2:       #425466;
  --ink-3:       #697386;
  --line:        #E3E8EF;
  --line-2:      #EFF2F6;
  --surface:     #FFFFFF;
  --surface-2:   #F6F9FC;
  --surface-3:   #EDF2F7;

  --accent:      #0066FF;
  --accent-2:    #0052CC;
  --accent-soft: #E6F0FF;
  --success:     #00A87E;

  --dark-line:   rgba(255, 255, 255, 0.10);
  --dark-line-2: rgba(255, 255, 255, 0.18);
  --dark-mist:   rgba(255, 255, 255, 0.70);
  --dark-body:   rgba(255, 255, 255, 0.85);

  --sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 2px rgba(10,37,64,0.06), 0 1px 3px rgba(10,37,64,0.04);
  --shadow:    0 4px 16px rgba(10,37,64,0.06), 0 2px 6px rgba(10,37,64,0.04);
  --shadow-lg: 0 12px 40px rgba(10,37,64,0.10), 0 4px 12px rgba(10,37,64,0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Layout primitives */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

section { padding: clamp(72px, 9vw, 120px) 0; }
.section-dark { background: var(--navy); color: var(--dark-body); }
.section-soft { background: var(--surface-2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--accent);
}
.section-dark .eyebrow { color: #6BA3FF; }
.section-dark .eyebrow::before { background: #6BA3FF; }

h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.02em; margin: 0; line-height: 1.15; }
h2 { font-size: clamp(30px, 3.8vw, 46px); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 20px; font-weight: 600; }
h4 { font-size: 16px; font-weight: 600; }

.lede {
  font-size: clamp(16px, 1.15vw, 18px);
  color: var(--ink-2);
  max-width: 62ch;
  line-height: 1.6;
}
.section-dark .lede { color: var(--dark-mist); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(0,102,255,0.25);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,102,255,0.30); }
.btn-ghost-dark { color: #fff; border: 1px solid var(--dark-line-2); }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255,255,255,0.06); }
.btn-ghost-light { color: var(--navy); border: 1px solid var(--line); background: #fff; }
.btn-ghost-light:hover { border-color: var(--accent); color: var(--accent); }
.btn .arr { transition: transform 0.18s; }
.btn:hover .arr { transform: translateX(3px); }

/* Top bar */
.topbar {
  background: var(--navy);
  color: var(--dark-body);
  font-size: 13px;
  padding: 8px var(--gutter);
  display: flex;
  justify-content: center;
  gap: 24px;
  align-items: center;
  border-bottom: 1px solid var(--dark-line);
}
.topbar span { display: inline-flex; align-items: center; gap: 8px; }
.topbar .sep { color: var(--dark-line-2); }
@media (max-width: 640px) { .topbar { display: none; } }

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 32px; height: 32px;
  background: var(--navy);
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.brand .amp { color: var(--accent); font-weight: 500; margin: 0 2px; }

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
  font-size: 15px;
  color: var(--ink-2);
  font-weight: 500;
}
.nav-links > a { transition: color 0.15s; padding: 8px 0; }
.nav-links > a:hover { color: var(--accent); }
.nav-links > a.active { color: var(--navy); border-bottom: 2px solid var(--accent); }
.nav-cta { padding: 10px 20px; background: var(--navy); color: #fff !important; border-radius: var(--radius-sm); font-size: 14px; transition: all 0.15s; }
.nav-cta:hover { background: var(--accent); }
.nav-cta.active { border-bottom: 0 !important; }

.nav-toggle { display: none; }
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 62px; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links > a { padding: 14px var(--gutter); width: 100%; border-bottom: 1px solid var(--line-2); }
  .nav-links .nav-cta { margin: 12px var(--gutter); text-align: center; border-bottom: 0; }
  .nav-toggle {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
  }
}

/* Hero */
.hero {
  background: linear-gradient(180deg, #0A2540 0%, #0F2D4F 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0 clamp(80px, 10vw, 130px);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 0%, rgba(0, 102, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(0, 168, 126, 0.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 80%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--dark-line-2);
  border-radius: 999px;
  font-size: 13px;
  color: var(--dark-body);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 22px; height: 22px;
  background: var(--accent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #fff;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 18ch;
  margin-bottom: 24px;
}
.hero h1 .accent { color: #6BA3FF; }
.hero-sub {
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--dark-mist);
  max-width: 62ch;
  line-height: 1.55;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 4vw, 60px);
  padding-top: 40px;
  border-top: 1px solid var(--dark-line);
  max-width: 900px;
}
.metric-num {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  line-height: 1;
}
.metric-num .unit { color: #6BA3FF; margin-left: 2px; }
.metric-lbl { margin-top: 8px; font-size: 13px; color: var(--dark-mist); line-height: 1.4; }
@media (max-width: 720px) {
  .hero-metrics { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

/* Trust */
.trust { padding: 40px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.trust-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  max-width: 200px;
  line-height: 1.6;
}
.trust-badges { display: flex; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; align-items: center; }
.trust-badge { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 14px; font-weight: 500; }
.trust-badge svg { flex-shrink: 0; color: var(--accent); }

/* Section header */
.section-head {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 60px;
}
.section-head h2 { margin-bottom: 0; }
.section-head .lede { margin-top: 16px; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 20px; } }

/* Services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}
.service:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  color: var(--accent);
  margin-bottom: 20px;
}
.service h3 { font-size: 19px; margin-bottom: 10px; color: var(--navy); }
.service p { margin: 0 0 20px; color: var(--ink-2); font-size: 15px; line-height: 1.6; flex: 1; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.service-tag {
  font-size: 12px;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 4px 10px;
  border-radius: 4px;
  font-weight: 500;
}
@media (max-width: 940px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .services { grid-template-columns: 1fr; } }

/* Featured projects */
.featured-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; }
.featured-project {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.featured-project:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.fp-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.fp-industry { color: var(--accent); }
.featured-project h3 { font-size: 22px; color: var(--navy); line-height: 1.25; }
.featured-project p { color: var(--ink-2); font-size: 15px; margin: 0; }
.fp-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
  margin-top: auto;
  padding-top: 12px;
}
.see-all { margin-top: 40px; text-align: center; }
@media (max-width: 720px) { .featured-cta { grid-template-columns: 1fr; } }

/* Approach */
.approach-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.phase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; }
.phase-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 18px;
}
.phase h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.phase p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.phase-out {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-top: 14px;
  border-top: 1px solid var(--line-2);
}
.phase-out b { color: var(--accent); font-weight: 500; }
@media (max-width: 940px) { .approach-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .approach-grid { grid-template-columns: 1fr; } }

/* Industries */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.industry { background: #fff; padding: 32px; transition: background 0.2s; }
.industry:hover { background: var(--surface-2); }
.industry-idx {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.industry h3 { font-size: 18px; color: var(--navy); margin-bottom: 10px; }
.industry p { margin: 0 0 16px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.industry-clouds {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
@media (max-width: 940px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .industries-grid { grid-template-columns: 1fr; } }

/* Stack (dark) */
.stack-group { margin-top: 48px; }
.stack-group:first-of-type { margin-top: 40px; }
.stack-group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--dark-line);
}
.stack-group-head h3 { font-size: 18px; color: #fff; font-weight: 600; }
.stack-group-head .cat-code {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #6BA3FF;
  text-transform: uppercase;
}
.stack-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.stack-item {
  padding: 18px 14px;
  text-align: center;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius-sm);
  color: var(--dark-body);
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
}
.stack-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: #6BA3FF;
  color: #fff;
  transform: translateY(-1px);
}
.stack-item small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  margin-top: 4px;
  text-transform: uppercase;
}
@media (max-width: 940px) { .stack-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 80% 50%, rgba(0,102,255,0.20), transparent 60%);
}
.cta-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); color: #fff; max-width: 20ch; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  .cta-inner { grid-template-columns: 1fr; }
  .cta-actions { justify-content: flex-start; }
}

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 32px; margin-top: 40px; }
.info-row { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.info-icon {
  width: 44px; height: 44px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.info-row .lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 4px;
}
.info-row .val { font-size: 16px; color: var(--navy); font-weight: 500; line-height: 1.5; }
.info-row a.val:hover { color: var(--accent); }

form.contact-form {
  background: #fff;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
form.contact-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
form.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
}
form.contact-form input,
form.contact-form select,
form.contact-form textarea {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  padding: 11px 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
form.contact-form input:focus,
form.contact-form select:focus,
form.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,102,255,0.12);
}
form.contact-form textarea { resize: vertical; min-height: 110px; }
form.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'><path d='M1 1L6 6L11 1' stroke='%23425466' stroke-width='1.5' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
form.contact-form button {
  margin-top: 6px;
  background: var(--navy);
  color: #fff;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  align-self: flex-start;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
form.contact-form button:hover { background: var(--accent); transform: translateY(-1px); }
.form-status { font-size: 13px; color: var(--success); min-height: 18px; }
.form-consent { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.form-consent a { color: var(--accent); text-decoration: underline; }

@media (max-width: 940px) {
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  form.contact-form { padding: 28px; }
  form.contact-form .row-2 { grid-template-columns: 1fr; }
}

/* Footer */
footer { background: var(--navy); color: var(--dark-mist); padding: 60px 0 30px; }
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.foot-brand-block .foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
}
.foot-brand-block p { margin: 0 0 20px; max-width: 34ch; font-size: 14px; line-height: 1.6; }
.foot-brand-block .foot-addr {
  font-size: 13px;
  color: var(--dark-mist);
  line-height: 1.7;
  padding-top: 20px;
  border-top: 1px solid var(--dark-line);
}
.foot-brand-block .foot-addr strong { display: block; color: #fff; font-weight: 500; margin-bottom: 4px; }

.foot-grid h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 18px;
  font-weight: 600;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid ul li { padding: 5px 0; font-size: 14px; }
.foot-grid a { color: var(--dark-mist); transition: color 0.15s; }
.foot-grid a:hover { color: #fff; }

.foot-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--dark-line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--dark-mist);
}
.foot-bottom a { color: var(--dark-mist); margin-left: 20px; }
.foot-bottom a:hover { color: #fff; }

@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* =================================================
   PROJECTS PAGE
   ================================================= */
.page-hero {
  background: linear-gradient(180deg, #0A2540 0%, #0F2D4F 100%);
  color: #fff;
  padding: clamp(80px, 10vw, 130px) 0 clamp(60px, 8vw, 90px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 90% 0%, rgba(0, 102, 255, 0.20), transparent 60%);
}
.page-hero-inner { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 20ch;
}
.page-hero h1 .accent { color: #6BA3FF; }
.page-hero p {
  font-size: clamp(16px, 1.3vw, 19px);
  color: var(--dark-mist);
  max-width: 62ch;
  line-height: 1.55;
  margin: 0;
}
.crumbs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 24px;
}
.crumbs a { color: rgba(255,255,255,0.7); }
.crumbs a:hover { color: #fff; }

/* Project filter chips */
.filter-bar {
  padding: 24px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 62px;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}
.filter-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-lbl {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-right: 12px;
}
.filter-chip {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Project cards */
.projects-list {
  padding: clamp(60px, 8vw, 100px) 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.project-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s;
  scroll-margin-top: 130px;
}
.project-card:hover { box-shadow: var(--shadow); }
.project-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}
.project-sidebar {
  background: var(--surface-2);
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.project-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.project-industry-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  width: fit-content;
}
.project-industry-tag::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.project-title-side {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0;
}
.project-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-top: auto;
}
.project-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.project-meta-row .k {
  font-family: var(--mono);
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.project-meta-row .v { color: var(--navy); font-weight: 500; }

.project-body {
  padding: 40px 40px;
}
.project-body h4 {
  font-size: 12px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 12px;
  font-weight: 500;
}
.project-body h4:not(:first-child) { margin-top: 28px; }
.project-body p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.65;
  margin: 0 0 12px;
}
.project-body ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 24px;
}
.project-body ul li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.project-body ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 14px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.stack-chip {
  font-family: var(--mono);
  font-size: 11px;
  padding: 5px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  border-radius: 4px;
  font-weight: 500;
}
.project-outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 20px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  margin-top: 20px;
}
.outcome .n {
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.outcome .n .unit { color: var(--accent); }
.outcome .l {
  font-size: 12px;
  color: var(--ink-3);
  margin-top: 2px;
  line-height: 1.4;
}

@media (max-width: 940px) {
  .project-inner { grid-template-columns: 1fr; }
  .project-sidebar { border-right: 0; border-bottom: 1px solid var(--line); padding: 28px; }
  .project-body { padding: 28px; }
  .project-body ul { grid-template-columns: 1fr; }
  .project-outcomes { grid-template-columns: 1fr; }
}

/* Motion */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
