:root {
  --bg: #fbfaf7;
  --paper: #ffffff;
  --soft: #f5f2ed;
  --ink: #101722;
  --muted: #5d6876;
  --line: #e6e1d9;
  --blue: #165fd8;
  --blue-soft: #eef5ff;
  --violet: #8471f2;
  --green: #1f9f63;
  --amber: #f0a21a;
  --coral: #e86547;
  --shadow: 0 22px 55px rgba(20, 28, 38, 0.08);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1480px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: radial-gradient(circle at 20% 0%, rgba(47, 128, 237, 0.08), transparent 28%), var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

svg {
  display: block;
  fill: currentColor;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 50;
  transform: translateY(-160%);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  font-weight: 700;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  width: min(var(--max), calc(100% - 56px));
  margin: 0 auto;
  min-height: 104px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 22px;
}

.home .site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  width: 100%;
  min-height: 74px;
  padding: 0 clamp(28px, 4vw, 72px);
  margin: 0;
  grid-template-columns: minmax(220px, 1fr) auto minmax(260px, 1fr);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(5, 7, 13, 0.94);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
  backdrop-filter: none;
  transform: none;
}

.home .primary-nav {
  justify-content: center;
  gap: clamp(34px, 4vw, 74px);
  font-size: clamp(1.02rem, 1.05vw, 1.15rem);
  font-weight: 800;
  white-space: nowrap;
}

.home .header-actions {
  justify-content: flex-end;
  white-space: nowrap;
}

.home .site-header[data-reveal],
.home .site-header[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.admin-bar.home .site-header {
  top: 32px;
}

.brand {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.home .brand,
.home .primary-nav a,
.home .icon-link {
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.primary-nav {
  display: flex;
  gap: clamp(28px, 4vw, 70px);
  align-items: center;
  font-size: 0.95rem;
  font-weight: 650;
}

.primary-nav a {
  position: relative;
  padding: 12px 0;
  color: #18212d;
}

.primary-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transform: translateX(-50%);
  transition: width 180ms ease;
}

.home .primary-nav a::after {
  background: #fff;
}

.primary-nav a:hover::after,
.primary-nav a.is-active::after {
  width: 38px;
}

.header-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.icon-link {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  transition: transform 180ms ease, color 180ms ease;
}

.icon-link svg {
  width: 24px;
  height: 24px;
}

.icon-link:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  min-height: 54px;
  padding: 0 28px;
  font-weight: 800;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button span {
  transition: transform 180ms ease;
}

.button:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(17, 24, 39, 0.14);
}

.button:hover span {
  transform: translateX(3px);
}

.button-dark {
  background: var(--ink);
  color: #fff;
}

.button-light {
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  border-color: rgba(17, 24, 39, 0.08);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.08);
}

.button-small {
  min-height: 52px;
  padding-inline: 26px;
}

.home .header-actions .button-dark {
  background: rgba(2, 6, 13, 0.86);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  font-size: 1.02rem;
  min-height: 44px;
  padding-inline: 24px;
}

.hero-shell,
.section-pad,
.workflow-wrap,
.contact-band,
.site-footer,
.simple-page,
.not-found {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.hero-shell {
  width: 100%;
}

.home .hero-shell {
  position: relative;
  margin-bottom: clamp(22px, 3vw, 40px);
}

.hero {
  min-height: calc(88vh - 74px);
  position: relative;
  overflow: hidden;
  border-radius: 0;
  background: #171717;
  box-shadow: none;
  isolation: isolate;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 47%;
  filter: contrast(1.1) saturate(1.1) brightness(0.9);
  backface-visibility: hidden;
  z-index: -3;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(4, 8, 13, 0.72) 0%, rgba(8, 12, 18, 0.5) 28%, rgba(8, 12, 18, 0.08) 58%, rgba(4, 8, 13, 0.42) 100%),
    radial-gradient(circle at 66% 46%, rgba(255, 255, 255, 0) 0 34%, rgba(3, 8, 14, 0.18) 68%, rgba(3, 8, 14, 0.58) 100%),
    linear-gradient(0deg, rgba(3, 8, 14, 0.62), rgba(3, 8, 14, 0.04) 42%, rgba(3, 8, 14, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    radial-gradient(rgba(255, 255, 255, 0.2) 1px, transparent 1px);
  background-size: auto, 30px 30px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-content {
  position: absolute;
  left: clamp(44px, 6vw, 104px);
  top: 36%;
  width: min(500px, 38vw);
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  transform: translateY(-34%);
  z-index: 2;
}

.badge,
.eyebrow {
  width: fit-content;
  margin: 0 0 18px;
  border-radius: 999px;
  color: var(--blue);
  background: rgba(239, 246, 255, 0.82);
  border: 1px solid rgba(22, 95, 216, 0.16);
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  max-width: 500px;
  font-size: clamp(2.5rem, 4vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.055em;
  color: #fff;
  text-shadow: 0 24px 55px rgba(0, 0, 0, 0.34);
}

.hero h1 span {
  display: inline-block;
  color: #b5a9ff;
}

.hero-copy {
  margin: 20px 0 0;
  max-width: 410px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.9rem, 0.9vw, 1rem);
  line-height: 1.62;
  font-weight: 500;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.hero-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.hero-buttons .button {
  min-height: 46px;
  padding-inline: 22px;
  font-size: 0.86rem;
}

.hero-buttons .button-dark {
  background: rgba(10, 18, 31, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}

.hero-buttons .button-light {
  background: rgba(255, 255, 255, 0.92);
}

.tool-row {
  margin-top: 22px;
}

.tool-row > span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.tool-row div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  max-width: 430px;
}

.tool-row strong {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 14, 24, 0.42);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(12px);
  font-size: 0.76rem;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.94);
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, color 180ms ease;
}

.tool-mark {
  width: 16px;
  height: 16px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 900;
  line-height: 1;
}

.tool-pill-n8n .tool-mark::before { content: "n"; }
.tool-pill-openai .tool-mark::before { content: "O"; }
.tool-pill-wordpress .tool-mark::before { content: "W"; }
.tool-pill-python .tool-mark::before { content: "Py"; }
.tool-pill-google-analytics .tool-mark::before { content: ""; }

.tool-pill-google-analytics .tool-mark {
  background:
    linear-gradient(90deg, transparent 0 15%, #f59e0b 15% 38%, transparent 38% 100%),
    linear-gradient(90deg, transparent 0 44%, #f97316 44% 67%, transparent 67% 100%),
    linear-gradient(90deg, transparent 0 73%, #facc15 73% 96%, transparent 96% 100%);
  background-size: 100% 46%, 100% 68%, 100% 92%;
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-color: rgba(255, 255, 255, 0.1);
}

.tool-row strong:hover {
  color: var(--blue);
  transform: translateY(-2px);
}

.section-pad {
  padding: clamp(54px, 7vw, 92px) 0;
}

.journey {
  text-align: center;
}

.journey .eyebrow,
.projects .eyebrow,
.workflow-card .eyebrow,
.contact-copy .eyebrow {
  background: transparent;
  border: 0;
  padding: 0;
  margin-inline: auto;
}

.journey h2,
.section-intro h2,
.projects h2,
.contact-copy h2,
.not-found h1,
.simple-page h1 {
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  margin-top: 54px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 43px;
  border-top: 2px dashed #cbd5e1;
  z-index: -1;
}

.timeline-item {
  display: grid;
  justify-items: center;
}

.timeline-icon {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #dbe3ec;
  color: var(--ink);
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.06);
  transition: transform 220ms ease, border-color 220ms ease, color 220ms ease;
}

.timeline-icon svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-item:hover .timeline-icon {
  color: var(--blue);
  border-color: rgba(22, 95, 216, 0.32);
  transform: translateY(-8px) scale(1.03);
}

.timeline-item strong {
  color: var(--blue);
  margin-top: 20px;
  font-weight: 900;
}

.timeline-item:nth-child(3) strong {
  color: var(--amber);
}

.timeline-item h3 {
  margin: 12px 0 8px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.timeline-item p {
  margin: 0;
  max-width: 185px;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.55;
}

.workflow-wrap {
  padding-bottom: 30px;
}

.workflow-card {
  display: grid;
  grid-template-columns: 0.8fr 1.55fr;
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  padding: clamp(34px, 4vw, 60px);
  box-shadow: 0 20px 60px rgba(17, 24, 39, 0.04);
}

.section-intro .eyebrow {
  margin-inline: 0;
}

.section-intro p:not(.eyebrow) {
  margin: 20px 0 54px;
  max-width: 345px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.7;
  font-weight: 500;
}

.text-link,
.case-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 850;
}

.text-link span,
.case-link span {
  transition: transform 180ms ease;
}

.text-link:hover span,
.case-link:hover span {
  transform: translateX(4px);
}

.workflow {
  position: relative;
  min-height: 275px;
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 32px 42px;
  align-items: center;
}

.workflow::before,
.workflow::after {
  content: "";
  position: absolute;
  left: 7%;
  right: 7%;
  height: 2px;
  background-image: linear-gradient(90deg, #8ca2be 50%, transparent 50%);
  background-size: 18px 2px;
  opacity: 0.86;
  animation: dashMove 14s linear infinite;
}

.workflow::before { top: 31%; }
.workflow::after { bottom: 31%; transform: scaleX(-1); }

.workflow-node {
  --accent: var(--blue);
  min-height: 106px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  position: relative;
  z-index: 1;
  border: 1px solid #dfe5ed;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 35px rgba(17, 24, 39, 0.08);
  font-size: 0.84rem;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  animation: nodeFloat 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.35s);
}

.workflow-node:nth-child(6) {
  grid-column: 4;
  grid-row: 2;
}

.workflow-node:nth-child(7) {
  grid-column: 3;
  grid-row: 2;
}

.workflow-node:nth-child(8) {
  grid-column: 2;
  grid-row: 2;
}

.workflow-node span {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent);
  box-shadow: inset 0 0 0 8px rgba(255, 255, 255, 0.35);
}

.workflow-node:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: color-mix(in srgb, var(--accent), white 50%);
  box-shadow: 0 24px 45px rgba(17, 24, 39, 0.14);
}

.workflow-node.green { --accent: #24b15f; }
.workflow-node.wp { --accent: #21759b; }
.workflow-node.mint { --accent: #16a37f; }
.workflow-node.red { --accent: #ff4a4a; }
.workflow-node.sky { --accent: #26a5e4; }
.workflow-node.coral { --accent: #eb6b56; }
.workflow-node.amber { --accent: #f59e0b; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head .eyebrow {
  margin-inline: 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(22, 95, 216, 0.22);
  box-shadow: 0 28px 60px rgba(17, 24, 39, 0.12);
}

.project-visual {
  height: 190px;
  position: relative;
  overflow: hidden;
  background: #111827;
}

.project-visual img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center center;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1), filter 520ms ease;
}

.project-visual::before,
.project-visual::after,
.visual-grid {
  content: "";
  position: absolute;
  inset: 0;
}

.project-visual.has-image::before,
.project-visual.has-image::after,
.project-visual.has-image .visual-grid {
  display: none;
}

.visual-grid {
  opacity: 0.28;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
}

.project-visual::before {
  opacity: 0.92;
  background:
    radial-gradient(circle at 24% 32%, rgba(39, 174, 96, 0.75), transparent 10%),
    radial-gradient(circle at 55% 44%, rgba(47, 128, 237, 0.66), transparent 11%),
    radial-gradient(circle at 78% 62%, rgba(231, 111, 81, 0.7), transparent 10%),
    linear-gradient(135deg, #0f172a, #1f2937);
}

.project-visual::after {
  inset: 35px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
  background: linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.36) 49%, transparent 52%);
}

.project-visual.football::before {
  background:
    radial-gradient(circle at 40% 46%, rgba(245, 158, 11, 0.9), transparent 18%),
    radial-gradient(circle at 63% 44%, rgba(250, 204, 21, 0.65), transparent 14%),
    linear-gradient(135deg, #111827, #2c1f16);
}

.project-visual.website::before {
  background:
    radial-gradient(circle at 72% 48%, rgba(245, 158, 11, 0.86), transparent 18%),
    linear-gradient(135deg, #0b1628, #273449 62%, #111827);
}

.project-visual.analytics::before {
  background:
    linear-gradient(90deg, transparent 16%, rgba(47, 128, 237, 0.75) 17% 22%, transparent 23%),
    linear-gradient(135deg, #0f172a, #142337);
}

.project-body {
  padding: 22px 24px 24px;
}

.project-category {
  display: block;
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.project-body h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  letter-spacing: -0.035em;
}

.project-body p {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  font-size: 0.91rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 56px;
  margin-bottom: 16px;
}

.chips span {
  display: inline-flex;
  align-items: center;
  height: 28px;
  border-radius: 8px;
  background: #f1f4f8;
  padding: 0 10px;
  color: #293445;
  font-size: 0.77rem;
  font-weight: 750;
}

.contact-band {
  display: grid;
  grid-template-columns: 0.78fr 0.9fr 1.5fr;
  align-items: center;
  gap: 40px;
  margin-top: 18px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
}

.contact-image {
  min-height: 160px;
  align-self: stretch;
  background:
    radial-gradient(circle at 22% 38%, rgba(39, 174, 96, 0.26), transparent 16%),
    radial-gradient(circle at 68% 48%, rgba(240, 162, 26, 0.18), transparent 24%),
    linear-gradient(135deg, #f5eadc, #ffffff);
  position: relative;
}

.contact-image::before {
  content: "";
  position: absolute;
  left: 14%;
  top: 25%;
  width: 100px;
  height: 70px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 62px 24px 0 rgba(17, 24, 39, 0.08), 125px 5px 0 rgba(255, 255, 255, 0.78);
}

.contact-copy h2 {
  font-size: clamp(1.55rem, 2vw, 2.2rem);
}

.contact-copy .eyebrow {
  margin-inline: 0;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-right: 32px;
}

.contact-actions a {
  display: grid;
  grid-template-columns: 42px 1fr;
  grid-template-areas: "icon title" "icon meta";
  align-items: center;
  column-gap: 14px;
  min-height: 88px;
  border-radius: 14px;
  padding: 12px;
  transition: background 180ms ease, transform 180ms ease;
}

.contact-actions a:hover {
  background: var(--blue-soft);
  transform: translateY(-3px);
}

.contact-actions span {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid #dce4ef;
  color: var(--blue);
  font-weight: 900;
}

.contact-actions strong {
  grid-area: title;
}

.contact-actions small {
  grid-area: meta;
  color: var(--muted);
  font-weight: 600;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 42px;
  align-items: center;
  gap: 20px;
  padding: 0 0 28px;
  color: var(--muted);
  font-weight: 600;
}

.back-top {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition: transform 180ms ease, background 180ms ease;
}

.back-top:hover {
  transform: translateY(-4px);
  background: var(--blue-soft);
}

.home {
  --home-card-radius: 18px;
  --home-card-border: rgba(209, 217, 228, 0.82);
  --home-card-shadow: 0 18px 44px rgba(17, 24, 39, 0.055);
  --home-card-shadow-hover: 0 26px 64px rgba(17, 24, 39, 0.12);
}

.home .section-pad {
  padding: clamp(58px, 6.5vw, 88px) 0;
}

.home .journey {
  padding-top: clamp(36px, 5vw, 70px);
}

.home .journey h2,
.home .section-intro h2,
.home .projects h2,
.home .contact-copy h2 {
  text-wrap: balance;
}

.home .timeline {
  margin-top: 48px;
}

.home .timeline::before {
  border-top-color: rgba(148, 163, 184, 0.38);
}

.home .timeline-item {
  border-radius: var(--home-card-radius);
  padding: 10px 8px 14px;
  transition: transform 220ms ease;
}

.home .timeline-item:hover {
  transform: translateY(-4px);
}

.home .timeline-icon,
.home .workflow-card,
.home .problem-step,
.home .project-card,
.home .contact-band {
  border-color: var(--home-card-border);
  box-shadow: var(--home-card-shadow);
}

.home .problem-step > span,
.home .contact-actions span {
  border-radius: 14px;
}

.home .timeline-icon {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
}

.home .timeline-item:hover .timeline-icon {
  transform: translateY(-6px);
  box-shadow: var(--home-card-shadow-hover);
}

.home .workflow-card,
.home .project-card,
.home .contact-band {
  border-radius: var(--home-card-radius);
  background: rgba(255, 255, 255, 0.88);
}

.home .workflow-card,
.home .contact-band {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background 220ms ease;
}

.home .workflow-card:hover,
.home .contact-band:hover {
  transform: translateY(-4px);
  border-color: rgba(22, 95, 216, 0.18);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--home-card-shadow-hover);
}

.home .problem-step {
  border-radius: var(--home-card-radius);
}

.home .problem-step:hover,
.home .problem-step.is-active,
.home .project-card:hover {
  box-shadow: var(--home-card-shadow-hover);
}

.home .project-card:hover .project-visual img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.home .contact-actions a {
  transition: transform 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.home .contact-actions a:hover {
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.08);
}

.home .home-contact-band {
  position: relative;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 72px);
  padding: clamp(32px, 4.2vw, 56px);
  overflow: hidden;
}

.home .home-contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 52%, rgba(22, 95, 216, 0.09) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 52%, rgba(31, 159, 99, 0.1) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 52%, rgba(240, 162, 26, 0.1) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 51%, rgba(148, 163, 184, 0.28) 51% 95%, transparent 95%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.home .home-contact-band:hover {
  transform: none;
}

.home .home-contact-band .contact-copy,
.home .home-contact-band .contact-actions {
  position: relative;
  z-index: 1;
}

.home .home-contact-band .contact-copy {
  max-width: 560px;
}

.home .home-contact-band .contact-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
}

.home .home-contact-band .contact-copy h2 {
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  line-height: 1.02;
}

.home .home-contact-band .contact-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: #3f4a59;
  font-size: clamp(1rem, 1.06vw, 1.12rem);
  line-height: 1.7;
}

.home .home-contact-band .contact-actions {
  gap: 18px;
  padding: 0;
}

.home .home-contact-band .contact-actions a {
  position: relative;
  min-height: 142px;
  grid-template-columns: 54px 1fr 26px;
  grid-template-areas: "icon title arrow" "icon meta arrow";
  column-gap: 16px;
  border: 1px solid rgba(209, 217, 228, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px 18px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.home .home-contact-band .contact-actions a:hover,
.home .home-contact-band .contact-actions a:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(22, 95, 216, 0.36);
  background: #fff;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.12), 0 0 0 4px rgba(22, 95, 216, 0.055);
  outline: none;
}

.home .home-contact-band .contact-actions span {
  width: 54px;
  height: 54px;
  border-color: rgba(22, 95, 216, 0.18);
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  font-size: 0.98rem;
}

.home .home-contact-band .contact-actions strong {
  align-self: end;
  font-size: 1.02rem;
}

.home .home-contact-band .contact-actions small {
  align-self: start;
  margin-top: 4px;
}

.home .home-contact-band .contact-actions em {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
  opacity: 0.58;
  transition: transform 200ms ease, opacity 200ms ease;
}

.home .home-contact-band .contact-actions a:hover em,
.home .home-contact-band .contact-actions a:focus-visible em {
  transform: translateX(4px);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .home .home-contact-band .contact-actions a,
  .home .home-contact-band .contact-actions em {
    transition: none;
  }

  .home .home-contact-band .contact-actions a:hover,
  .home .home-contact-band .contact-actions a:focus-visible,
  .home .home-contact-band .contact-actions a:hover em,
  .home .home-contact-band .contact-actions a:focus-visible em {
    transform: none;
  }
}

.case-home-contact-band {
  position: relative;
  grid-template-columns: minmax(280px, 0.78fr) minmax(520px, 1.22fr);
  align-items: center;
  gap: clamp(36px, 4.4vw, 72px);
  padding: clamp(32px, 4.2vw, 56px);
  overflow: hidden;
  border-color: rgba(209, 217, 228, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(17, 24, 39, 0.055);
}

.case-home-contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 58% 52%, rgba(22, 95, 216, 0.09) 0 4px, transparent 5px),
    radial-gradient(circle at 76% 52%, rgba(31, 159, 99, 0.1) 0 4px, transparent 5px),
    radial-gradient(circle at 94% 52%, rgba(240, 162, 26, 0.1) 0 4px, transparent 5px),
    linear-gradient(90deg, transparent 0 51%, rgba(148, 163, 184, 0.28) 51% 95%, transparent 95%);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 1px;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.72;
  pointer-events: none;
}

.case-home-contact-band:hover {
  transform: none;
}

.case-home-contact-band .contact-copy,
.case-home-contact-band .contact-actions {
  position: relative;
  z-index: 1;
}

.case-home-contact-band .contact-copy {
  max-width: 560px;
}

.case-home-contact-band .contact-copy .eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
}

.case-home-contact-band .contact-copy h2 {
  font-size: clamp(2rem, 3.1vw, 3.35rem);
  line-height: 1.02;
}

.case-home-contact-band .contact-copy p:not(.eyebrow) {
  max-width: 560px;
  margin: 18px 0 0;
  color: #3f4a59;
  font-size: clamp(1rem, 1.06vw, 1.12rem);
  line-height: 1.7;
}

.case-home-contact-band .contact-actions {
  gap: 18px;
  padding: 0;
}

.case-home-contact-band .contact-actions a {
  position: relative;
  min-height: 142px;
  grid-template-columns: 54px 1fr 26px;
  grid-template-areas: "icon title arrow" "icon meta arrow";
  column-gap: 16px;
  border: 1px solid rgba(209, 217, 228, 0.94);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  padding: 22px 18px;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.case-home-contact-band .contact-actions a:hover,
.case-home-contact-band .contact-actions a:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(22, 95, 216, 0.36);
  background: #fff;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.12), 0 0 0 4px rgba(22, 95, 216, 0.055);
  outline: none;
}

.case-home-contact-band .contact-actions span {
  width: 54px;
  height: 54px;
  border-color: rgba(22, 95, 216, 0.18);
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #eef5ff);
  font-size: 0.98rem;
}

.case-home-contact-band .contact-actions strong {
  align-self: end;
  font-size: 1.02rem;
}

.case-home-contact-band .contact-actions small {
  align-self: start;
  margin-top: 4px;
}

.case-home-contact-band .contact-actions em {
  grid-area: arrow;
  align-self: center;
  justify-self: end;
  color: var(--blue);
  font-style: normal;
  font-weight: 900;
  opacity: 0.58;
  transition: transform 200ms ease, opacity 200ms ease;
}

.case-home-contact-band .contact-actions a:hover em,
.case-home-contact-band .contact-actions a:focus-visible em {
  transform: translateX(4px);
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .case-home-contact-band .contact-actions a,
  .case-home-contact-band .contact-actions em {
    transition: none;
  }

  .case-home-contact-band .contact-actions a:hover,
  .case-home-contact-band .contact-actions a:focus-visible,
  .case-home-contact-band .contact-actions a:hover em,
  .case-home-contact-band .contact-actions a:focus-visible em {
    transform: none;
  }
}

.home .text-link,
.home .case-link,
.home .contact-actions a,
.home .back-top {
  transition-duration: 200ms;
}

.home [data-reveal] {
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms cubic-bezier(0.16, 1, 0.3, 1);
}

.home [data-reveal].is-visible {
  transform: translateY(0);
}

.home .site-header[data-reveal],
.home .site-header[data-reveal].is-visible {
  transform: none;
}

.case-hero,
.case-stats,
.case-filters,
.case-grid,
.featured-case,
.exploring-strip {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.case-hero {
  min-height: 520px;
  display: grid;
  grid-template-columns: 0.95fr 1.3fr;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff7ea;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.case-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 252, 244, 0.86) 37%, rgba(255, 252, 244, 0.24) 62%, rgba(255, 252, 244, 0.02) 100%),
    radial-gradient(circle at 20% 24%, rgba(47, 128, 237, 0.12), transparent 24%);
}

.case-hero-content {
  padding: clamp(42px, 6vw, 72px);
  align-self: center;
}

.case-hero h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(3rem, 5.2vw, 5.8rem);
  line-height: 1.02;
  letter-spacing: -0.07em;
}

.case-hero h1 span {
  color: var(--violet);
}

.case-hero-content > p:not(.badge) {
  max-width: 520px;
  margin: 24px 0 30px;
  color: #293445;
  font-size: clamp(1rem, 1.2vw, 1.18rem);
  line-height: 1.75;
  font-weight: 500;
}

.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.category-chips span {
  border: 1px solid rgba(22, 95, 216, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  padding: 10px 14px;
  color: #24405f;
  font-size: 0.86rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.05);
}

.case-hero-media {
  min-height: 520px;
  position: relative;
}

.case-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 0 4px;
}

.case-stats article {
  display: grid;
  gap: 3px;
  min-height: 82px;
  align-content: center;
  border: 1px solid rgba(209, 217, 228, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  padding: 14px 18px;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.045);
}

.case-stats strong {
  color: var(--ink);
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.case-stats span {
  color: #526171;
  font-size: 0.82rem;
  font-weight: 800;
}

.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 28px 0 30px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  border: 1px solid rgba(209, 217, 228, 0.96);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #273241;
  padding: 0 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(17, 24, 39, 0.035);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.filter-button span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 2px solid currentColor;
  background: transparent;
  opacity: 0.7;
}

.filter-button:hover {
  transform: translateY(-2px);
  border-color: rgba(22, 95, 216, 0.28);
  background: var(--blue-soft);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.06);
}

.filter-button.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.12);
}

.filter-button.is-active span {
  background: currentColor;
  opacity: 1;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 45px rgba(17, 24, 39, 0.05);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.case-card[hidden] {
  display: none;
}

.case-card:hover,
.case-card.is-selected {
  transform: translateY(-6px);
  border-color: rgba(22, 95, 216, 0.34);
  box-shadow: 0 26px 56px rgba(17, 24, 39, 0.115);
}

.case-card.is-selected {
  outline: 3px solid rgba(22, 95, 216, 0.12);
}

.case-card .project-visual {
  height: 190px;
}

.case-card:hover .project-visual img,
.case-card.is-selected .project-visual img {
  transform: scale(1.045);
  filter: saturate(1.04) contrast(1.03);
}

.case-status-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #172033;
  padding: 7px 10px;
  font-size: 0.7rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.12);
  backdrop-filter: blur(8px);
}

.case-card-body {
  padding: 22px 24px 24px;
}

.case-card-body > p:first-child {
  margin: 0 0 13px;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.case-card-body h2 {
  margin: 0 0 12px;
  font-size: 1.22rem;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.case-card-body > p:nth-of-type(2) {
  min-height: 72px;
  margin: 0 0 18px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
  font-size: 0.91rem;
}

.case-select {
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.case-select span {
  display: inline-block;
  transition: transform 180ms ease;
}

.case-card:hover .case-select span,
.case-select:hover span,
.case-select:focus-visible span {
  transform: translateX(4px);
}

.case-select:focus-visible {
  outline: 2px solid rgba(22, 95, 216, 0.36);
  outline-offset: 4px;
  border-radius: 6px;
}

.featured-case {
  display: grid;
  grid-template-columns: 0.78fr 1.45fr;
  gap: clamp(28px, 5vw, 70px);
  margin-top: 26px;
  padding: clamp(30px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
}

.featured-copy .eyebrow {
  margin-inline: 0;
}

.featured-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 3.1rem);
  line-height: 1.04;
  letter-spacing: -0.06em;
}

.featured-summary {
  margin: 16px 0 28px;
  color: #293445;
  line-height: 1.65;
  font-weight: 600;
}

.snapshot-panel {
  margin: 0 0 28px;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 22px;
}

.snapshot-panel[hidden],
.ai-case-study-deep-dive[hidden],
.atmj-detail-extra[hidden],
.petlead-detail-extra[hidden] {
  display: none;
}

.snapshot-panel h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.snapshot-panel dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.snapshot-panel div {
  display: grid;
  grid-template-columns: minmax(140px, 0.8fr) 1.2fr;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid #e7edf5;
}

.snapshot-panel div:first-child {
  border-top: 0;
  padding-top: 0;
}

.snapshot-panel div:last-child {
  padding-bottom: 0;
}

.snapshot-panel dt {
  color: #526172;
  font-size: 0.82rem;
  font-weight: 850;
}

.snapshot-panel dd {
  margin: 0;
  color: #182433;
  font-size: 0.88rem;
  font-weight: 650;
  line-height: 1.45;
}

.featured-details {
  display: grid;
  gap: 18px;
}

.featured-details article {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 14px;
}

.featured-details span {
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #dfe5ed;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
}

.featured-details h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.featured-details p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 500;
}

.featured-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.featured-tools span {
  border-radius: 8px;
  background: var(--blue-soft);
  padding: 8px 10px;
  color: #24405f;
  font-size: 0.8rem;
  font-weight: 800;
}

.featured-visual {
  display: grid;
  align-content: center;
  gap: 28px;
}

.workflow-glance-title {
  margin: 0;
  font-size: 1rem;
  letter-spacing: -0.03em;
}

.architecture {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.architecture::before {
  display: none;
}

.arch-node {
  position: relative;
  z-index: 1;
  min-height: 52px;
  display: inline-grid;
  place-items: center;
  text-align: center;
  border: 1px solid #dfe5ed;
  border-radius: 999px;
  background: #fff;
  padding: 12px 16px;
  color: #202c3a;
  font-size: 0.88rem;
  font-weight: 850;
  box-shadow: 0 16px 32px rgba(17, 24, 39, 0.08);
  animation: nodeFloat 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.28s);
}

.arch-node:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -14px;
  color: var(--blue);
  font-weight: 900;
  transform: translateX(50%);
}

.lessons-box {
  display: grid;
  gap: 10px;
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 22px;
}

.lessons-box strong {
  font-size: 0.95rem;
}

.lessons-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 500;
}

.ai-case-study-deep-dive {
  grid-column: 1 / -1;
  display: grid;
  gap: 24px;
  margin-top: 12px;
}

.walkthrough-heading {
  display: grid;
  gap: 6px;
}

.walkthrough-heading .eyebrow {
  margin-inline: 0;
}

.walkthrough-heading h3,
.principles-panel h3 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.045em;
}

.screenshot-card {
  overflow: hidden;
  border: 1px solid #dfe5ed;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(17, 24, 39, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.1);
}

.screenshot-frame {
  aspect-ratio: 16 / 7;
  overflow: hidden;
  background: #f4f7fb;
  border-bottom: 1px solid #e5ebf2;
}

.screenshot-frame img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.screenshot-card:hover .screenshot-frame img {
  transform: scale(1.035);
}

.screenshot-frame-crop img {
  object-position: center 58%;
}

.screenshot-card:not(.screenshot-card-large) .screenshot-frame {
  aspect-ratio: 16 / 8.5;
}

.screenshot-frame-tall {
  aspect-ratio: 16 / 10;
}

.screenshot-frame-tall img {
  object-position: top center;
}

.screenshot-card h4 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  letter-spacing: -0.035em;
}

.screenshot-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
  font-weight: 500;
}

.screenshot-card > div:last-child {
  padding: 22px;
}

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

.principles-panel {
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 24px;
}

.principles-panel ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
}

.principles-panel li {
  min-height: 74px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #dfe5ed;
  border-radius: 12px;
  background: #fff;
  color: #293445;
  padding: 12px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.35;
}

.exploring-strip {
  display: grid;
  grid-template-columns: 0.95fr 1.9fr;
  gap: 30px;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  padding: 30px;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.04);
}

.exploring-strip .eyebrow {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.exploring-strip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.exploring-strip p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 500;
}

.exploring-strip ul {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.exploring-strip li {
  min-height: 92px;
  display: grid;
  place-items: center;
  text-align: center;
  border-left: 1px solid var(--line);
  color: #293445;
  font-size: 0.9rem;
  font-weight: 850;
  transition: transform 180ms ease, color 180ms ease;
}

.exploring-strip li:hover {
  color: var(--blue);
  transform: translateY(-4px);
}

.currently-building ul {
  grid-template-columns: repeat(3, 1fr);
}

.contact-hero,
.contact-main-grid,
.contact-cta-strip {
  width: min(var(--max), calc(100% - 56px));
  margin-inline: auto;
}

.contact-hero {
  min-height: 700px;
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: stretch;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff7ea;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255, 252, 244, 0.98) 0%, rgba(255, 252, 244, 0.86) 38%, rgba(255, 252, 244, 0.2) 64%, rgba(255, 252, 244, 0.02) 100%),
    radial-gradient(circle at 18% 18%, rgba(47, 128, 237, 0.12), transparent 24%);
}

.contact-hero-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 72px);
}

.contact-hero h1 {
  margin: 0;
  max-width: 640px;
  font-size: clamp(4rem, 7.2vw, 7.4rem);
  line-height: 0.96;
  letter-spacing: -0.08em;
}

.contact-hero h1 span {
  color: var(--violet);
}

.contact-hero-copy > p:not(.badge) {
  max-width: 560px;
  margin: 26px 0 46px;
  color: #202b38;
  font-size: clamp(1.15rem, 1.6vw, 1.45rem);
  line-height: 1.55;
  font-weight: 550;
}

.hero-point-list {
  display: grid;
  gap: 24px;
}

.hero-point-list article {
  display: grid;
  grid-template-columns: 58px 1fr;
  align-items: center;
  gap: 18px;
}

.hero-point-list article > span,
.method-list a > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--blue-soft);
  position: relative;
}

.hero-point-list article > span::before,
.method-list a > span::before {
  content: "";
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: inset 0 0 0 7px rgba(255, 255, 255, 0.45);
}

.hero-point-list .people,
.method-list .in {
  background: #e6f8ef;
}

.hero-point-list .people::before,
.method-list .in::before {
  background: var(--green);
}

.hero-point-list .globe {
  background: #eee9ff;
}

.hero-point-list .globe::before {
  background: var(--violet);
}

.hero-point-list h2 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  letter-spacing: -0.03em;
}

.hero-point-list p {
  margin: 0;
  color: var(--muted);
  font-weight: 550;
}

.contact-hero-media {
  min-height: 700px;
  position: relative;
}

.contact-hero-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-main-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.94fr;
  gap: 30px;
  margin-top: 34px;
}

.message-card,
.reach-card,
.location-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.05);
}

.message-card {
  padding: clamp(32px, 4vw, 52px);
}

.message-card .eyebrow,
.reach-card .eyebrow,
.location-card .eyebrow,
.contact-cta-strip .eyebrow {
  margin-inline: 0;
}

.message-card h2,
.reach-card h2,
.location-card h2,
.contact-cta-strip h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.6vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.contact-form {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.contact-form label {
  display: grid;
  gap: 10px;
  font-weight: 750;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  font: inherit;
  font-weight: 550;
  padding: 17px 18px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: rgba(22, 95, 216, 0.54);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 95, 216, 0.1);
}

.contact-form .button {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
}

.privacy-note::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--blue);
  margin-right: 8px;
}

.contact-side {
  display: grid;
  gap: 30px;
}

.reach-card,
.location-card {
  padding: clamp(28px, 3vw, 42px);
}

.reach-card > p:not(.eyebrow),
.location-card > p {
  color: var(--muted);
  line-height: 1.6;
  font-weight: 550;
}

.method-list {
  display: grid;
  margin-top: 24px;
}

.method-list a {
  display: grid;
  grid-template-columns: 58px 1fr 34px;
  grid-template-areas: "icon title arrow" "icon meta arrow";
  align-items: center;
  column-gap: 18px;
  min-height: 92px;
  border-top: 1px solid var(--line);
  transition: background 180ms ease, transform 180ms ease;
}

.method-list a:hover {
  transform: translateX(4px);
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.72), transparent);
}

.method-list a > span {
  grid-area: icon;
  color: #fff;
  font-weight: 900;
}

.method-list a > span::before {
  display: none;
}

.method-list .mail::after { content: "@"; color: var(--ink); font-size: 1.3rem; }
.method-list .in::after { content: "in"; color: #0a66c2; font-size: 1.2rem; font-weight: 900; }
.method-list .code::after { content: "{}"; color: var(--ink); font-size: 1rem; font-weight: 900; }

.method-list strong {
  grid-area: title;
  font-size: 1.05rem;
}

.method-list small {
  grid-area: meta;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
}

.method-list em {
  grid-area: arrow;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f4f6f9;
  font-style: normal;
  font-weight: 900;
}

.location-map {
  height: 220px;
  margin-top: 26px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(209, 217, 228, 0.92);
  background: #f8fafc;
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.06);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.contact-cta-strip {
  display: grid;
  grid-template-columns: 0.78fr 1.35fr auto;
  gap: 40px;
  align-items: center;
  margin-top: 34px;
  margin-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.05);
  padding-right: clamp(24px, 4vw, 56px);
}

.contact-cta-strip .contact-image {
  min-height: 190px;
}

.contact-cta-strip p:not(.eyebrow) {
  margin: 14px 0 0;
  max-width: 640px;
  color: var(--muted);
  line-height: 1.65;
  font-weight: 550;
}

.not-found,
.simple-page {
  min-height: 65vh;
  display: grid;
  align-content: center;
  padding-block: 90px;
}

.not-found p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes nodeFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

@keyframes dashMove {
  to { background-position: 180px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .home .site-header {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 28px;
  }

  .primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .home .primary-nav {
    order: initial;
    grid-column: auto;
  }

  .hero-content {
    width: min(500px, 52vw);
  }

  .workflow-card,
  .contact-band {
    grid-template-columns: 1fr;
  }

  .home .home-contact-band {
    grid-template-columns: 1fr;
  }

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

  .workflow {
    max-width: 820px;
  }

  .contact-actions {
    padding: 0 32px 32px;
  }

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

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

  .featured-case,
  .case-hero,
  .case-stats,
  .exploring-strip,
  .contact-hero,
  .contact-main-grid,
  .contact-cta-strip {
    grid-template-columns: 1fr;
  }

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

  .principles-panel ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-hero-media,
  .contact-hero-media {
    min-height: 360px;
  }

  .exploring-strip ul {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 820px) {
  .site-header,
  .hero-shell,
  .section-pad,
  .workflow-wrap,
  .contact-band,
  .site-footer,
  .simple-page,
  .not-found {
    width: min(100% - 32px, var(--max));
  }

  .home .hero-shell {
    width: 100%;
  }

  .site-header {
    min-height: auto;
    padding: 20px 0;
  }

  .home .site-header {
    width: 100%;
    min-height: auto;
    padding: 12px 16px;
    margin: 0;
    border-radius: 0;
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    gap: 10px;
  }

  .icon-link {
    display: none;
  }

  .primary-nav {
    gap: 28px;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .home .primary-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .hero {
    min-height: calc(100vh - 118px);
    min-height: calc(100svh - 118px);
  }

  .hero-content {
    left: 24px;
    right: 24px;
    top: clamp(24px, 5svh, 46px);
    bottom: auto;
    width: auto;
    padding: clamp(16px, 3.6svh, 28px) 0 0;
    justify-content: center;
    transform: none;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(3, 8, 14, 0.84) 0%, rgba(3, 8, 14, 0.48) 43%, rgba(3, 8, 14, 0.08) 100%),
      radial-gradient(circle at 55% 30%, rgba(255, 255, 255, 0) 0 34%, rgba(3, 8, 14, 0.44) 100%),
      linear-gradient(90deg, rgba(3, 8, 14, 0.44), rgba(3, 8, 14, 0.12));
  }

  .hero h1 {
    font-size: clamp(2.55rem, 13vw, 4.3rem);
    line-height: 1;
  }

  .hero-copy {
    margin-top: 16px;
    line-height: 1.55;
  }

  .hero-buttons {
    margin-top: 20px;
  }

  .tool-row {
    margin-top: 18px;
  }

  .timeline {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 20px;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    grid-template-columns: 74px 1fr;
    grid-template-areas: "icon year" "icon title" "icon text";
    justify-items: start;
    column-gap: 18px;
  }

  .timeline-icon {
    grid-area: icon;
    width: 66px;
    height: 66px;
  }

  .timeline-icon svg {
    width: 27px;
    height: 27px;
  }

  .timeline-item strong {
    grid-area: year;
    margin-top: 0;
  }

  .timeline-item h3 {
    grid-area: title;
    margin: 4px 0;
  }

  .timeline-item p {
    grid-area: text;
    max-width: none;
  }

  .workflow {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }

  .workflow::before,
  .workflow::after {
    display: none;
  }

  .workflow-node:nth-child(n) {
    grid-column: auto;
    grid-row: auto;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-grid,
  .case-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

  .home .home-contact-band {
    padding: 30px 22px;
  }

  .case-home-contact-band {
    padding: 30px 22px;
  }

  .home .home-contact-band::before,
  .case-home-contact-band::before {
    background:
      radial-gradient(circle at 50% 46%, rgba(22, 95, 216, 0.09) 0 4px, transparent 5px),
      radial-gradient(circle at 50% 65%, rgba(31, 159, 99, 0.1) 0 4px, transparent 5px),
      radial-gradient(circle at 50% 84%, rgba(240, 162, 26, 0.1) 0 4px, transparent 5px),
      linear-gradient(180deg, transparent 0 40%, rgba(148, 163, 184, 0.24) 40% 90%, transparent 90%);
    background-size: 100% 100%, 100% 100%, 100% 100%, 1px 100%;
    background-position: center;
    background-repeat: no-repeat;
  }

  .home .home-contact-band .contact-actions a {
    min-height: 116px;
  }

  .case-home-contact-band .contact-actions a {
    min-height: 116px;
  }

  .case-hero,
  .case-stats,
  .case-filters,
  .case-grid,
  .featured-case,
  .exploring-strip,
  .contact-hero,
  .contact-main-grid,
  .contact-cta-strip {
    width: min(100% - 32px, var(--max));
  }

  .case-hero-content,
  .contact-hero-copy {
    padding: 34px 24px;
  }

  .case-hero h1 {
    font-size: clamp(2.75rem, 13vw, 4.6rem);
  }

  .contact-hero {
    min-height: auto;
  }

  .contact-hero h1 {
    font-size: clamp(3rem, 15vw, 5rem);
  }

  .contact-hero-copy > p:not(.badge) {
    font-size: 1.05rem;
    margin-bottom: 32px;
  }

  .hero-point-list article {
    grid-template-columns: 52px 1fr;
  }

  .hero-point-list article > span {
    width: 52px;
    height: 52px;
  }

  .case-filters {
    gap: 10px;
  }

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

  .filter-button {
    min-height: 44px;
    padding-inline: 16px;
  }

  .featured-case {
    padding: 26px 18px;
  }

  .architecture {
    gap: 14px;
  }

  .arch-node {
    width: 100%;
    border-radius: 13px;
  }

  .arch-node:not(:last-child)::after {
    right: 50%;
    bottom: -16px;
    transform: translate(50%, 50%) rotate(90deg);
  }

  .snapshot-panel div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .screenshot-frame,
  .screenshot-card:not(.screenshot-card-large) .screenshot-frame {
    aspect-ratio: 16 / 10;
  }

  .principles-panel ul {
    grid-template-columns: 1fr;
  }

  .exploring-strip ul {
    grid-template-columns: repeat(2, 1fr);
  }

  .exploring-strip li {
    border: 1px solid var(--line);
    border-radius: 12px;
  }

  .message-card,
  .reach-card,
  .location-card {
    padding: 26px 18px;
  }

  .method-list a {
    grid-template-columns: 48px 1fr 34px;
    column-gap: 12px;
  }

  .method-list a > span {
    width: 48px;
    height: 48px;
  }

  .contact-cta-strip {
    gap: 22px;
    padding: 0 18px 24px;
  }

  .contact-cta-strip .contact-image {
    margin-inline: -18px;
  }

  .site-footer {
    grid-template-columns: 1fr 42px;
  }

  .site-footer p:nth-child(2) {
    grid-column: 1 / -1;
    order: 3;
  }
}

@media (max-width: 540px) {
  .brand {
    font-size: 1.35rem;
  }

  .button-small {
    min-height: 44px;
    padding-inline: 18px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .tool-row {
    margin-top: 16px;
  }

  .tool-row div {
    gap: 8px;
  }

  .workflow-card {
    padding: 28px 18px;
  }

  .workflow {
    gap: 14px;
  }

  .workflow-node {
    min-height: 94px;
  }

  .project-grid {
    gap: 18px;
  }

  .contact-band {
    gap: 20px;
  }

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

  .home .home-contact-band {
    padding: 28px 18px;
  }

  .case-home-contact-band {
    padding: 28px 18px;
  }

  .home .home-contact-band .contact-copy p:not(.eyebrow),
  .case-home-contact-band .contact-copy p:not(.eyebrow) {
    line-height: 1.62;
  }

  .contact-copy,
  .contact-actions {
    padding-inline: 18px;
  }
}

.case-study-panel {
  display: block;
  padding: clamp(28px, 3.6vw, 44px);
}

.case-overview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.case-overview-left,
.case-overview-right {
  display: grid;
  gap: 22px;
}

.case-overview-left .eyebrow {
  margin-inline: 0;
}

.case-overview-left h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.065em;
}

.case-overview .featured-summary {
  margin: 0;
  max-width: 650px;
  color: #1f2a38;
}

.case-overview .featured-details {
  gap: 20px;
}

.case-overview .featured-details article {
  grid-template-columns: 34px 1fr;
}

.case-overview .featured-details span {
  font-size: 0.72rem;
  font-weight: 900;
  background: var(--blue-soft);
}

.mini-heading,
.compact-panel h3,
.snapshot-panel h3 {
  margin: 0;
  color: var(--blue);
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.case-overview .featured-tools {
  margin-top: 10px;
}

.case-note {
  border: 1px solid #dfe7f1;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbff, #ffffff);
  padding: 16px 18px;
}

.case-note[hidden],
.case-link-buttons[hidden] {
  display: none;
}

.case-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 900;
}

.case-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  font-weight: 550;
}

.case-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.case-external-link {
  min-height: 44px;
  padding-inline: 18px;
}

.case-overview .snapshot-panel,
.compact-panel,
.case-overview .lessons-box {
  margin: 0;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
}

.case-overview .snapshot-panel dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 22px;
}

.case-overview .snapshot-panel div {
  grid-template-columns: 0.85fr 1fr;
  align-items: start;
}

.compact-panel {
  display: grid;
  gap: 18px;
}

.case-overview .architecture {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(95px, 1fr));
  gap: 14px 18px;
}

.case-overview .arch-node {
  width: auto;
  min-height: 68px;
  border-radius: 14px;
  padding: 12px 10px;
  font-size: 0.77rem;
  line-height: 1.25;
}

.case-overview .arch-node:not(:last-child)::after {
  right: -10px;
  bottom: auto;
  top: 50%;
  transform: translate(50%, -50%);
  font-size: 0.82rem;
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.result-grid li {
  min-height: 76px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid #dfe5ed;
  border-radius: 13px;
  background: #fff;
  color: #293445;
  padding: 12px;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.35;
}

.result-grid li::before {
  content: "";
  width: 22px;
  height: 22px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #fff 0 24%, transparent 25%), var(--green);
}

.case-gallery-wrap {
  margin-top: clamp(34px, 5vw, 60px);
}

.case-gallery-wrap .walkthrough-heading {
  margin-bottom: 22px;
}

.case-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.case-gallery-grid .screenshot-card {
  height: 100%;
}

.case-gallery-grid .screenshot-frame {
  height: 260px;
  aspect-ratio: auto;
}

.case-gallery-grid .screenshot-card h4 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-gallery-grid .screenshot-card h4 span {
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(22, 95, 216, 0.32);
  border-radius: 50%;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.78rem;
  font-weight: 900;
}

.placeholder-frame {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 25%, rgba(22, 95, 216, 0.18), transparent 18%),
    radial-gradient(circle at 76% 62%, rgba(39, 174, 96, 0.14), transparent 20%),
    linear-gradient(135deg, #f8fbff, #ffffff);
}

.placeholder-frame span {
  border-radius: 999px;
  border: 1px solid #dbe7f5;
  background: #fff;
  padding: 10px 14px;
  color: var(--blue);
  font-weight: 850;
}

@media (max-width: 1180px) {
  .case-overview {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .case-overview .snapshot-panel dl {
    grid-template-columns: 1fr;
  }

  .case-overview .snapshot-panel div {
    grid-template-columns: 1fr;
  }

  .case-overview .arch-node:not(:last-child)::after {
    display: none;
  }

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

  .case-gallery-grid .screenshot-frame {
    height: 230px;
  }
}

.problem-solver-card {
  grid-template-columns: minmax(260px, 0.58fr) minmax(0, 1.42fr);
  overflow: visible;
}

.problem-solver-card .section-intro p:not(.eyebrow) {
  margin-bottom: 0;
}

.problem-flow {
  --stage-count: 5;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
  padding: 26px 0 4px;
  overflow: visible;
}

.flow-line {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 58px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(22, 95, 216, 0.16), rgba(39, 174, 96, 0.24), rgba(242, 169, 59, 0.2));
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.problem-step {
  min-height: 220px;
  display: grid;
  align-content: start;
  gap: 14px;
  position: relative;
  z-index: 1;
  border: 1px solid #dfe7f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 22px;
  box-shadow: 0 16px 36px rgba(17, 24, 39, 0.05);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease, background 200ms ease;
}

.problem-step:hover,
.problem-step.is-active {
  z-index: 2;
}

.problem-step > span {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 0.8rem;
  font-weight: 900;
}

.problem-step h3 {
  margin: 0;
  font-size: clamp(1.1rem, 1.4vw, 1.35rem);
  letter-spacing: -0.04em;
}

.problem-step p {
  margin: 0;
  color: var(--muted);
  line-height: 1.58;
  font-size: 0.94rem;
  font-weight: 550;
}

.problem-step:hover,
.problem-step.is-active {
  transform: translateY(-6px);
  border-color: rgba(95, 109, 247, 0.46);
  background: #fff;
  box-shadow: 0 24px 52px rgba(17, 24, 39, 0.12), 0 0 0 4px rgba(139, 124, 246, 0.08);
}

@media (max-width: 1180px) {
  .problem-solver-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .problem-flow {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 8px;
  }

  .flow-line {
    top: 34px;
    bottom: 34px;
    left: 42px;
    right: auto;
    width: 2px;
    height: auto;
  }

  .problem-step {
    min-height: auto;
    padding: 20px 20px 20px 72px;
  }

  .problem-step > span {
    position: absolute;
    top: 18px;
    left: 20px;
  }
}

@media (max-width: 540px) {
  .hero {
    background-image: url("../images/hero-island-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}
