:root {
  --bg-light: #f8faf9;
  --bg-white: #ffffff;
  --text-dark: #111827;
  --text-gray: #6b7280;
  --text-light-gray: #9ca3af;
  --border-light: #e5e7eb;
  --accent: #059669;
  --accent-light: #10b981;
  --accent-bg: rgba(5, 150, 105, 0.08);
  --bg-dark: #0f1117;
  --bg-dark-card: #1a1d28;
  --text-white: #f1f5f9;
  --text-dark-gray: #94a3b8;
  --border-dark: rgba(255, 255, 255, 0.08);
  --muted-red: #ef4444;
  --muted-red-bg: rgba(239, 68, 68, 0.1);
  --shadow-soft: 0 12px 36px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 28px rgba(15, 23, 42, 0.11);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-dark);
  background: var(--bg-light);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

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

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

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

button {
  cursor: pointer;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.light-section {
  background: var(--bg-light);
}

.dark-section {
  background: var(--bg-dark);
  color: var(--text-white);
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  padding: 0 max(24px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid var(--border-light);
  backdrop-filter: blur(14px);
}

.logo {
  color: var(--accent);
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: #374151;
  font-size: 15px;
  font-weight: 600;
}

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

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  background: var(--bg-white);
}

.menu-btn span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-dark);
}

.hero {
  position: relative;
  min-height: min(760px, calc(86vh - 72px));
  padding: 84px 0 64px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.hero h1,
.hero h2 {
  margin: 0;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 11ch;
  color: var(--text-dark);
  font-size: clamp(46px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.04;
}

.hero h2 {
  margin-top: 12px;
  max-width: 16ch;
  color: #374151;
  font-size: clamp(34px, 4.5vw, 48px);
  font-weight: 500;
  line-height: 1.12;
}

.hero h2 span {
  color: var(--accent);
  font-weight: 800;
}

.hero-sub {
  max-width: 620px;
  margin: 26px 0 0;
  color: var(--text-gray);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
  max-width: 100%;
}

.btn {
  display: inline-flex;
  max-width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 13px 24px;
  border: 1px solid transparent;
  font-weight: 800;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

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

.btn.primary {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 26px rgba(5, 150, 105, 0.22);
}

.btn.primary:hover {
  box-shadow: 0 18px 34px rgba(5, 150, 105, 0.28);
}

.btn.ghost {
  color: var(--accent);
  background: transparent;
  border-color: rgba(5, 150, 105, 0.35);
}

.btn.wide {
  width: 100%;
}

.metric-stack {
  position: relative;
  display: grid;
  gap: 24px;
  justify-items: center;
}

.soft-glow {
  position: absolute;
  inset: 12% 8% auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22), transparent 64%);
  filter: blur(44px);
  pointer-events: none;
}

.metric-card {
  position: relative;
  width: min(320px, 100%);
  padding: 26px 28px;
  border: 1px solid var(--border-light);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
}

.metric-card.offset {
  transform: translateX(44px);
}

.metric-card strong {
  display: block;
  color: var(--accent);
  font-size: 52px;
  font-weight: 900;
  line-height: 1;
}

.metric-card span {
  display: block;
  margin-top: 8px;
  color: #374151;
  font-weight: 600;
}

.services,
.solutions,
.process,
.contact {
  padding: 88px 0;
}

.section-head {
  margin-bottom: 42px;
}

.section-head.center {
  text-align: center;
}

.section-head h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  line-height: 1.12;
  overflow-wrap: break-word;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--text-gray);
  font-size: 18px;
}

.dark-section .section-head p {
  color: var(--text-dark-gray);
}

.underline {
  display: block;
  width: 62px;
  height: 4px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--accent);
}

.section-head.center .underline {
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.service-card {
  min-height: 270px;
  padding: 30px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: var(--bg-white);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.line-icon {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(5, 150, 105, 0.25);
  border-radius: 12px;
  color: var(--accent);
  background: var(--accent-bg);
  font-size: 28px;
  font-weight: 900;
}

.service-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.1;
}

.service-card p {
  margin: 14px 0 22px;
  color: #4b5563;
}

.service-card a {
  color: var(--accent);
  font-weight: 800;
}

.solution-tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 44px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.solution-tabs button {
  min-height: 50px;
  white-space: nowrap;
  padding: 0 24px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  color: #374151;
  background: var(--bg-white);
  font-weight: 800;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.solution-tabs button.active,
.solution-tabs button:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-bg);
}

.solution-panel {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 54px;
  align-items: center;
}

.browser-mockup {
  padding: 12px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 10px;
  color: var(--text-light-gray);
}

.browser-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d1d5db;
}

.browser-bar em {
  margin-left: 12px;
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.mock-screen {
  display: grid;
  grid-template-columns: 78px 1fr;
  min-height: 330px;
  overflow: hidden;
  border-radius: 12px;
  background: linear-gradient(135deg, #10151f, #182337);
}

.mock-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), transparent);
}

.mock-content {
  padding: 24px;
}

.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.mock-stat-row i,
.mock-main-grid b,
.mock-table span {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.mock-stat-row i {
  height: 56px;
}

.mock-main-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.mock-main-grid b {
  aspect-ratio: 1.25;
}

.mock-table {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mock-table span {
  height: 20px;
}

.browser-mockup p {
  margin: 12px 0 0;
  color: var(--text-light-gray);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

.solution-copy h3 {
  margin: 0 0 22px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.12;
}

.solution-copy ul {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.solution-copy li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  color: #374151;
  font-size: 18px;
  font-weight: 600;
}

.solution-copy li::before {
  content: "✓";
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--accent);
  font-size: 14px;
  font-weight: 900;
}

.price-note {
  margin: 26px 0 20px;
  padding: 18px 20px;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  color: #064e3b;
  background: var(--accent-bg);
  font-weight: 800;
}

.transition {
  height: 88px;
}

.transition.to-dark {
  background: linear-gradient(to bottom, var(--bg-light), var(--bg-dark));
}

.transition.to-light {
  background: linear-gradient(to bottom, var(--bg-dark), var(--bg-light));
}

.portfolio {
  padding: 58px 0 92px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  background: var(--bg-dark-card);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 26px rgba(5, 150, 105, 0.16), 0 18px 38px rgba(0, 0, 0, 0.32);
}

.project-card.wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
}

.project-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 1px solid var(--border-dark);
}

.project-card.wide img {
  height: 100%;
  min-height: 280px;
  border-right: 1px solid var(--border-dark);
  border-bottom: 0;
}

.project-body {
  padding: 24px;
}

.project-body h3 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.project-body p {
  margin: 8px 0 16px;
  color: var(--text-dark-gray);
}

.pill-row,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.pill-row span {
  padding: 7px 10px;
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(16, 185, 129, 0.12);
  font-size: 13px;
  font-weight: 800;
}

.tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
  color: var(--text-dark-gray);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  font-weight: 700;
}

.case-link {
  display: inline-block;
  margin-top: 20px;
  padding: 0;
  color: var(--accent-light);
  font-weight: 900;
  transition: opacity 0.2s ease;
}

.case-link:hover {
  opacity: 0.75;
  text-decoration: underline;
}

.case-study {
  max-height: 0;
  overflow: hidden;
  margin-top: 0;
  border: 1px solid transparent;
  border-radius: 18px;
  opacity: 0;
  transition: max-height 0.38s ease, opacity 0.25s ease, margin 0.25s ease, border-color 0.25s ease;
}

.case-study.open {
  max-height: 980px;
  margin-top: 28px;
  padding: 24px;
  border-color: var(--border-dark);
  background: rgba(255, 255, 255, 0.025);
  opacity: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 20px;
}

.case-box {
  padding: 20px;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.035);
}

.case-box.problem {
  border-color: rgba(239, 68, 68, 0.25);
  background: var(--muted-red-bg);
}

.case-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  color: var(--text-white);
  text-transform: uppercase;
}

.case-box p,
.case-box li {
  color: var(--text-dark-gray);
}

.case-box ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.case-stats span {
  min-height: 90px;
  padding: 16px;
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: rgba(16, 185, 129, 0.08);
  color: var(--text-white);
  font-weight: 800;
}

.comparison {
  margin-top: 64px;
  text-align: center;
}

.comparison h2 {
  margin: 0 0 30px;
  font-size: clamp(32px, 4vw, 46px);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: 620px;
  margin: 0 auto;
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}

.compare-col {
  padding: 24px 34px;
  text-align: left;
}

.compare-col + .compare-col {
  border-left: 1px solid var(--border-dark);
}

.compare-col h3 {
  margin: 0 0 16px;
  font-size: 24px;
}

.compare-col.old h3,
.compare-col.old p {
  color: #64748b;
}

.compare-col.new h3,
.compare-col.new p {
  color: var(--text-white);
}

.compare-col p {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
  font-weight: 700;
}

.compare-col span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.compare-col.old span {
  background: rgba(239, 68, 68, 0.7);
}

.compare-col.new span {
  background: var(--accent-light);
}

.comparison strong {
  display: block;
  margin-top: 24px;
  color: var(--accent-light);
  font-size: 20px;
}

.process-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.process-steps::before {
  content: "";
  position: absolute;
  top: 25px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: rgba(5, 150, 105, 0.38);
}

.process-step {
  position: relative;
  text-align: center;
}

.process-step div {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 50%;
  color: #fff;
  background: var(--accent);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(5, 150, 105, 0.24);
}

.process-step h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.process-step p {
  margin: 0;
  color: var(--text-gray);
}

.contact {
  padding-top: 56px;
}

.contact-form {
  display: grid;
  gap: 18px;
  width: min(560px, 100%);
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  background: var(--bg-white);
  box-shadow: var(--shadow-soft);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text-dark);
  background: #f9fafb;
  padding: 13px 14px;
  outline: none;
  font-weight: 600;
  text-transform: none;
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.1);
}

.contact-cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.contact-cards a {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--border-light);
  border-radius: 999px;
  background: var(--bg-white);
  color: #374151;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}

.site-footer {
  padding: 40px 24px;
  text-align: center;
  color: var(--text-gray);
  background: #f1f5f9;
}

.site-footer p {
  margin: 4px 0;
}

.site-footer div {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}

.site-footer a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 1;
  transform: translateY(0);
}

.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.58s ease, transform 0.58s ease;
}

.js .reveal.visible,
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .hero-grid,
  .solution-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 82px;
    min-height: auto;
  }

  .hero-copy {
    text-align: center;
  }

  .hero h1,
  .hero h2,
  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-actions .btn {
    width: min(100%, 280px);
  }

  .metric-card.offset {
    transform: none;
  }

  .metric-stack {
    justify-items: stretch;
  }

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

  .project-card.wide {
    grid-template-columns: 1fr;
  }

  .project-card.wide img {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }

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

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

@media (max-width: 1100px) {
  .container {
    width: min(100% - 32px, 1120px);
  }

  .site-nav {
    height: 64px;
    padding: 0 16px;
  }

  .menu-btn {
    display: inline-flex;
  }

  .nav-links {
    position: fixed;
    top: 64px;
    right: 16px;
    display: grid;
    width: min(280px, calc(100vw - 32px));
    gap: 6px;
    padding: 16px;
    border: 1px solid var(--border-light);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px;
    border-radius: 10px;
  }

  .nav-links a:hover {
    background: var(--accent-bg);
  }

  .hero,
  .services,
  .solutions,
  .process,
  .contact {
    padding: 64px 0;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero h2 {
    font-size: 32px;
  }

  .hero-sub {
    font-size: 16px;
  }

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

  .service-card {
    min-height: auto;
  }

  .solution-tabs {
    justify-content: flex-start;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px 8px;
  }

  .solution-tabs button {
    min-height: 46px;
    padding: 0 18px;
  }

  .mock-screen {
    grid-template-columns: 48px 1fr;
    min-height: 250px;
  }

  .mock-content {
    padding: 16px;
  }

  .mock-stat-row {
    grid-template-columns: 1fr;
  }

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

  .solution-copy li {
    font-size: 16px;
  }

  .project-card img {
    height: 220px;
  }

  .case-study.open {
    max-height: 1400px;
    padding: 18px;
  }

  .case-stats,
  .compare-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .compare-col + .compare-col {
    border-left: 0;
    border-top: 1px solid var(--border-dark);
  }

  .process-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .process-steps::before {
    display: none;
  }

  .process-step {
    text-align: left;
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 14px;
  }

  .process-step div {
    grid-row: span 2;
    margin: 0;
  }

  .process-step h3 {
    margin-top: 4px;
  }

  .contact-form {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero h2 {
    font-size: 28px;
  }

  .btn {
    width: 100%;
  }

  .metric-card strong {
    font-size: 42px;
  }

  .section-head h2 {
    font-size: 30px;
  }
}

/* Portfolio v2 refinements */
.site-nav {
  min-height: 72px;
}

.nav-links a {
  white-space: nowrap;
}

.projects-grid {
  grid-template-columns: 1fr;
  gap: 30px;
}

.project-card,
.project-card.wide {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  min-height: 360px;
  overflow: hidden;
}

.project-media {
  min-height: 340px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(5,150,105,0.08));
  border-right: 1px solid var(--border-dark);
}

.project-card img,
.project-card.wide img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  object-position: top left;
  border-bottom: 0;
}

.project-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 34px;
}

.project-kicker {
  margin: 0;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

button.case-link {
  width: fit-content;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-light);
  font-weight: 800;
  text-align: left;
}

.modal-open {
  overflow: hidden;
}

.case-modal[aria-hidden="true"] {
  display: none;
}

.case-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 28px;
}

.case-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 10, 18, 0.72);
  backdrop-filter: blur(8px);
}

.case-modal__panel {
  position: relative;
  width: min(920px, 100%);
  max-height: min(760px, calc(100vh - 56px));
  overflow: auto;
  padding: 34px;
  border: 1px solid var(--border-dark);
  border-radius: 18px;
  color: var(--text-white);
  background: radial-gradient(circle at top left, rgba(16,185,129,0.16), transparent 34%), #151923;
  box-shadow: 0 30px 90px rgba(0,0,0,0.42);
}

.case-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-dark);
  border-radius: 50%;
  color: var(--text-white);
  background: rgba(255,255,255,0.06);
  font-size: 24px;
  line-height: 1;
}

.case-modal__kicker {
  margin: 0 0 8px;
  color: var(--accent-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.case-modal h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
}

.case-modal__summary {
  max-width: 780px;
  margin: 18px 0 0;
  color: var(--text-dark-gray);
  font-size: 18px;
}

.case-modal__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 26px;
}

.case-modal__grid section,
.case-modal__note {
  border: 1px solid var(--border-dark);
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  padding: 22px;
}

.case-modal h3 {
  margin: 0 0 14px;
}

.case-modal ol,
.case-modal ul {
  margin: 0;
  padding-left: 22px;
  color: var(--text-dark-gray);
}

.case-modal li + li {
  margin-top: 10px;
}

.case-modal__note {
  margin: 22px 0;
  color: var(--text-dark-gray);
}

.contact-cards a {
  font-weight: 800;
}

@media (max-width: 860px) {
  .project-card,
  .project-card.wide,
  .case-modal__grid {
    grid-template-columns: 1fr;
  }

  .project-media {
    border-right: 0;
    border-bottom: 1px solid var(--border-dark);
  }

  .project-card img,
  .project-card.wide img {
    min-height: 260px;
  }
}
