/* Collins Creative — focused service pages */

.service-detail {
  --service-accent: #b7c1ff;
  --service-accent-strong: #596bd8;
  --service-soft: #e9ecfb;
  --service-deep: #111936;
  --service-panel: #1a2552;
  background: var(--paper);
}

.service-custom,
.service-web,
.service-ai,
.service-mobile {
  --service-accent: #b7c1ff;
  --service-accent-strong: #596bd8;
  --service-soft: #e9ecfb;
  --service-panel: #1a2552;
}

.sd-shell {
  width: min(100%, var(--maxw));
  margin-inline: auto;
}

.sd-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font: 600 11px/1.2 var(--mono);
  letter-spacing: .15em;
  text-transform: uppercase;
}

.sd-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--service-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-accent) 18%, transparent);
}

.sd-hero {
  position: relative;
  overflow: hidden;
  min-height: min(900px, 100svh);
  padding-top: clamp(142px, 15vw, 210px);
  padding-bottom: clamp(76px, 9vw, 128px);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--service-accent) 30%, transparent), transparent 34%),
    var(--service-deep);
  color: var(--on-dark);
}

.sd-hero::after {
  content: "";
  position: absolute;
  inset: auto -10vw -22vw auto;
  width: 50vw;
  height: 50vw;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  box-shadow: 0 0 0 7vw rgba(255,255,255,.025), 0 0 0 14vw rgba(255,255,255,.018);
  pointer-events: none;
}

.sd-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(430px, 1.08fr);
  gap: clamp(48px, 7vw, 112px);
  align-items: center;
}

.sd-hero-copy h1 {
  max-width: 10.5ch;
  margin-top: 26px;
  color: var(--on-dark);
  font-size: clamp(3.4rem, 6.9vw, 7.2rem);
  font-weight: 600;
  line-height: .88;
  letter-spacing: -.065em;
  text-wrap: balance;
}

.sd-hero-copy h1 em { color: var(--service-accent); }

.sd-hero-copy .sd-lead {
  max-width: 55ch;
  margin-top: 30px;
  color: rgba(247,247,243,.72);
  font-size: clamp(1.08rem, 1.35vw, 1.28rem);
  line-height: 1.58;
}

.sd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.sd-actions .btn-accent {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.sd-actions .btn-accent:hover {
  border-color: var(--service-accent);
  background: var(--service-accent);
  filter: none;
}

.sd-proofline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 40px;
  padding-top: 25px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(247,247,243,.68);
  font: 500 11px/1.4 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.sd-visual {
  position: relative;
  min-width: 0;
}

/* Custom software hero system map */
.system-map {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(17,25,54,.58);
  box-shadow: 0 35px 90px rgba(0,0,0,.27);
  backdrop-filter: blur(16px);
}

.system-map::before {
  content: "One connected business";
  grid-column: 1 / -1;
  padding: 5px 5px 14px;
  color: rgba(247,247,243,.6);
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.system-node {
  min-height: 166px;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px;
  background: rgba(255,255,255,.06);
}

.system-node.featured {
  grid-column: 1 / -1;
  min-height: 210px;
  background: var(--service-accent);
  color: var(--ink);
}

.system-node .node-label {
  font: 600 10px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .66;
}

.system-node h2 {
  max-width: 15ch;
  margin-top: 34px;
  font-size: clamp(1.3rem, 2vw, 2rem);
  line-height: 1.05;
}

.system-node.featured h2 { margin-top: 45px; font-size: clamp(1.8rem, 3vw, 3rem); }

.node-status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font: 500 11px/1 var(--mono);
}

.node-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

/* Website hero portfolio */
.web-portfolio {
  display: grid;
  gap: 13px;
  padding: 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 25px;
  background: rgba(17,25,54,.58);
  box-shadow: 0 35px 90px rgba(0,0,0,.28);
  backdrop-filter: blur(16px);
}

.web-project-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.web-project {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 22px 48px rgba(0,0,0,.2);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.web-project:hover {
  border-color: var(--service-accent);
  transform: translateY(-3px);
  box-shadow: 0 28px 58px rgba(0,0,0,.27);
}

.web-browser-bar {
  display: flex;
  align-items: center;
  gap: 13px;
  height: 34px;
  padding-inline: 13px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font: 600 8px/1 var(--mono);
  letter-spacing: .11em;
  text-transform: uppercase;
}

.web-browser-dots {
  display: flex;
  gap: 4px;
}

.web-browser-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--service-accent-strong);
}

.web-project-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9.6;
  background: var(--service-panel);
}

.web-project-main .web-project-media { aspect-ratio: 16 / 8.85; }

.web-project-media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
  transition: transform .65s var(--ease);
}

.web-project:hover .web-project-media img { transform: scale(1.018); }

.web-project-caption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 16px;
  align-items: end;
  padding: 14px 16px 16px;
  background: var(--paper);
}

.web-project-caption span {
  grid-column: 1 / -1;
  color: var(--service-accent-strong);
  font: 600 8px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.web-project-caption strong {
  min-width: 0;
  overflow: hidden;
  font: 600 clamp(.95rem, 1.4vw, 1.18rem)/1.1 var(--sans);
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.web-project-caption b {
  color: var(--muted);
  font: 600 8px/1 var(--mono);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* AI hero workflow board */
.automation-board {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 24px;
  background: rgba(17,25,54,.72);
  box-shadow: 0 34px 90px rgba(0,0,0,.28);
}

.automation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 4px 17px;
  color: rgba(247,247,243,.62);
  font: 600 10px/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.automation-head span:last-child { color: var(--service-accent); }

.automation-flow {
  display: grid;
  gap: 10px;
}

.flow-node {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 17px 18px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  background: rgba(255,255,255,.055);
}

.flow-node:not(:last-child)::after {
  content: "↓";
  position: absolute;
  z-index: 2;
  bottom: -15px;
  left: 48px;
  color: var(--service-accent);
  font: 700 14px/1 var(--mono);
}

.flow-node .flow-kind {
  color: var(--service-accent);
  font: 600 9px/1.2 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.flow-node strong { font: 600 15px/1.25 var(--sans); }
.flow-node small { color: rgba(247,247,243,.5); font: 500 10px/1 var(--mono); }

.flow-node.ai-step {
  border-color: color-mix(in srgb, var(--service-accent) 58%, transparent);
  background: color-mix(in srgb, var(--service-accent) 14%, transparent);
}

/* Mobile hero device deck */
.phone-deck {
  position: relative;
  min-height: 590px;
}

.phone-shell {
  position: absolute;
  overflow: hidden;
  width: min(48%, 280px);
  aspect-ratio: 9 / 18;
  padding: 9px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 34px;
  background: var(--service-deep);
  box-shadow: 0 34px 75px rgba(0,0,0,.35);
}

.phone-shell:first-child { top: 0; left: 8%; transform: rotate(-6deg); }
.phone-shell:nth-child(2) { right: 7%; bottom: 0; transform: rotate(5deg); }

.phone-shell::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 50%;
  width: 32%;
  height: 16px;
  border-radius: 999px;
  background: var(--service-deep);
  transform: translateX(-50%);
}

.phone-shell img {
  width: 100%;
  height: 100%;
  border-radius: 26px;
  object-fit: cover;
  object-position: center top;
}

.phone-note {
  position: absolute;
  z-index: 3;
  right: 2%;
  top: 18%;
  max-width: 190px;
  padding: 14px 17px;
  border-radius: 12px;
  background: var(--service-accent);
  color: var(--ink);
  font: 600 12px/1.35 var(--sans);
  box-shadow: 0 18px 35px rgba(0,0,0,.22);
}

/* Shared section styles */
.sd-section {
  padding-top: clamp(74px, 9vw, 132px);
  padding-bottom: clamp(74px, 9vw, 132px);
  background: var(--paper);
}

.sd-section.soft { background: var(--service-soft); }
.sd-section.dark { background: var(--service-deep); color: var(--on-dark); }

.sd-heading {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(330px, 1.15fr);
  gap: clamp(35px, 8vw, 130px);
  align-items: end;
  margin-bottom: clamp(44px, 6vw, 82px);
}

.sd-heading h2 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.2vw, 5.6rem);
  font-weight: 600;
  line-height: .94;
  letter-spacing: -.055em;
  text-wrap: balance;
}

.sd-heading h2 em { color: var(--service-accent-strong); }

.sd-heading p {
  max-width: 58ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.3vw, 1.22rem);
  line-height: 1.6;
}

.sd-section.dark .sd-heading p { color: rgba(247,247,243,.68); }
.sd-section.dark .sd-heading h2 { color: var(--on-dark); }

.outcome-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.outcome-card {
  min-height: 260px;
  padding: 30px clamp(22px, 3vw, 42px) 34px;
  border-right: 1px solid var(--line);
}

.outcome-card:first-child { padding-left: 0; }
.outcome-card:last-child { border-right: 0; }
.outcome-card .outcome-mark { color: var(--service-accent-strong); font: 600 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.outcome-card h3 { max-width: 15ch; margin-top: 58px; font-size: clamp(1.5rem, 2.2vw, 2.25rem); line-height: 1.03; }
.outcome-card p { margin-top: 15px; color: var(--muted); line-height: 1.55; }

.proof-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  box-shadow: 0 30px 70px -52px rgba(17,25,54,.45);
}

.proof-media {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: var(--service-panel);
}

.proof-media img {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  object-position: center top;
}

.proof-media.contain img { object-fit: contain; padding: clamp(24px, 4vw, 56px); }

.proof-media.workflow-proof {
  display: grid;
  place-items: stretch;
  padding: clamp(18px, 2.4vw, 34px);
  background:
    radial-gradient(circle at 88% 8%, rgba(183,193,255,.2), transparent 36%),
    linear-gradient(145deg, var(--service-deep) 0%, var(--service-panel) 100%);
}

.proof-media.workflow-proof .automation-board {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(18px, 2.2vw, 28px);
  border-color: rgba(183,193,255,.42);
  border-radius: 18px;
  background: rgba(17,25,54,.78);
  box-shadow: 0 22px 60px rgba(5,10,30,.24);
  color: var(--on-dark);
}

.proof-media.workflow-proof .automation-head {
  padding: 2px 2px clamp(18px, 2vw, 26px);
  color: rgba(247,247,243,.7);
}

.proof-media.workflow-proof .automation-head span:last-child { color: var(--service-accent); }

.proof-media.workflow-proof .automation-flow {
  flex: 1;
  grid-template-rows: repeat(4, minmax(0, 1fr));
}

.proof-media.workflow-proof .flow-node {
  min-height: 0;
  padding: clamp(16px, 1.8vw, 22px);
  border-color: rgba(183,193,255,.2);
  background: rgba(255,255,255,.065);
}

.proof-media.workflow-proof .flow-node strong { color: var(--on-dark); }
.proof-media.workflow-proof .flow-node small { color: rgba(247,247,243,.62); }

.proof-media.workflow-proof .flow-node.ai-step {
  border-color: rgba(183,193,255,.62);
  background: rgba(183,193,255,.14);
}

.proof-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(36px, 5vw, 68px);
}

.proof-copy .proof-label { color: var(--service-accent-strong); font: 600 10px/1.2 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.proof-copy h3 { margin-top: 22px; font-size: clamp(2rem, 3.4vw, 3.5rem); line-height: .98; letter-spacing: -.045em; }
.proof-copy p { margin-top: 20px; color: var(--muted); font-size: 1.06rem; line-height: 1.58; }
.proof-copy .btn { align-self: flex-start; margin-top: 30px; }

/* Mobile apps: compact featured workflow */
.mobile-proof-feature {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .72fr);
  height: clamp(540px, 43vw, 620px);
  border-color: color-mix(in srgb, var(--service-panel) 58%, var(--line));
  border-radius: 26px;
  background: #f9fafc;
}

.mobile-proof-media {
  isolation: isolate;
  min-height: 0;
  padding: 74px clamp(40px, 5vw, 74px) 0;
  background:
    radial-gradient(circle at 82% 13%, rgba(139,157,255,.3), transparent 29%),
    linear-gradient(145deg, #111936 0%, #1e2d67 100%);
}

.mobile-proof-media::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 76%);
}

.mobile-proof-topline {
  position: absolute;
  top: 27px;
  right: clamp(28px, 4vw, 48px);
  left: clamp(28px, 4vw, 48px);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255,255,255,.66);
  font: 600 9px/1 var(--mono);
  letter-spacing: .13em;
  text-transform: uppercase;
}

.mobile-proof-device {
  position: relative;
  width: min(100%, 510px);
  height: 100%;
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.44);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  background: #f3f3f0;
  box-shadow: 0 34px 80px -28px rgba(2,8,30,.75);
}

.mobile-proof-device::before {
  display: block;
  height: 31px;
  border-bottom: 1px solid rgba(17,25,54,.1);
  background:
    radial-gradient(circle at 18px 15px, #8b94ad 0 3px, transparent 3.5px),
    radial-gradient(circle at 30px 15px, #aab1c4 0 3px, transparent 3.5px),
    radial-gradient(circle at 42px 15px, #c1c6d3 0 3px, transparent 3.5px),
    #fbfbfa;
  content: "";
}

.mobile-proof-device picture { display: block; }

.mobile-proof-device img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: initial;
  padding: 0;
}

.mobile-proof-copy {
  position: relative;
  justify-content: flex-start;
  padding: clamp(44px, 4.7vw, 66px) clamp(38px, 4.7vw, 66px);
}

.mobile-proof-copy::before {
  width: 42px;
  height: 4px;
  margin-bottom: auto;
  border-radius: 99px;
  background: var(--service-accent-strong);
  content: "";
}

.mobile-proof-copy h3 {
  max-width: 10.5ch;
  margin-top: 22px;
  font-size: clamp(2.45rem, 3.4vw, 3.55rem);
}

.mobile-proof-copy p {
  max-width: 40ch;
  margin-top: 18px;
  font-size: 1rem;
}

.mobile-proof-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.mobile-proof-tags span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font: 600 9px/1 var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mobile-proof-copy .btn { margin-top: 24px; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.proof-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}

.proof-card:hover { transform: translateY(-4px); box-shadow: 0 28px 60px -42px rgba(17,25,54,.48); }
.proof-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: center top; }
.proof-card-body { padding: 24px 25px 28px; }
.proof-card .proof-label { color: var(--muted); font: 600 9px/1.2 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.proof-card h3 { margin-top: 13px; font-size: 1.42rem; line-height: 1.05; }
.proof-card p { margin-top: 12px; color: var(--muted); line-height: 1.48; }

.build-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 20px;
  background: rgba(255,255,255,.14);
}

.build-item {
  min-height: 260px;
  padding: clamp(28px, 4vw, 46px);
  background: var(--service-panel);
}

.build-item .build-label { color: var(--service-accent); font: 600 10px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.build-item h3 { max-width: 18ch; margin-top: 46px; color: var(--on-dark); font-size: clamp(1.5rem, 2.4vw, 2.35rem); line-height: 1.04; }
.build-item p { max-width: 47ch; margin-top: 15px; color: rgba(247,247,243,.63); line-height: 1.53; }

.process-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}

.process-card {
  position: relative;
  padding: 30px 28px 36px 0;
  border-right: 1px solid var(--line);
}

.process-card:not(:first-child) { padding-left: 28px; }
.process-card:last-child { border-right: 0; }
.process-card .process-signal { width: 9px; height: 9px; border-radius: 50%; background: var(--service-accent-strong); }
.process-card h3 { margin-top: 48px; font-size: 1.5rem; }
.process-card p { margin-top: 14px; color: var(--muted); line-height: 1.52; }

.sd-quote {
  padding: clamp(48px, 7vw, 92px);
  border-radius: 24px;
  background: var(--service-accent);
  color: var(--ink);
}

.sd-quote blockquote {
  max-width: 23ch;
  font-family: var(--sans);
  font-size: clamp(2.2rem, 4.8vw, 5rem);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.05em;
}

.sd-quote p { max-width: 58ch; margin-top: 26px; font-size: 1.08rem; line-height: 1.58; }

.fit-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: start;
}

.fit-list { border-top: 1px solid var(--line); }
.fit-row { display: grid; grid-template-columns: 1fr auto; gap: 24px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.fit-row strong { font: 600 1.1rem/1.25 var(--sans); }
.fit-row span { color: var(--muted); text-align: right; }

/* Websites + web apps — one simple standard */
.web-standard-section {
  overflow: hidden;
}

.web-standard {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  gap: clamp(36px, 7vw, 110px);
  align-items: end;
}

.web-standard-intro h2 {
  max-width: 12ch;
  margin-top: 24px;
  font-size: clamp(3.2rem, 6.2vw, 6.6rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.06em;
  text-wrap: balance;
}

.web-standard-intro h2 em {
  color: var(--service-accent-strong);
  font-family: var(--serif);
  font-weight: 400;
}

.web-standard-summary {
  max-width: 38ch;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.55;
}

.web-standard-principles {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(16px, 2vw, 28px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.web-standard-principle {
  min-width: 0;
  padding: clamp(28px, 3.5vw, 46px) clamp(24px, 3vw, 42px);
  border-right: 1px solid var(--line);
}

.web-standard-principle:first-child { padding-left: 0; }
.web-standard-principle:last-child { padding-right: 0; border-right: 0; }

.web-standard-principle span {
  color: var(--service-accent-strong);
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.web-standard-principle h3 {
  max-width: 16ch;
  margin-top: 24px;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.08;
  letter-spacing: -.03em;
}

/* Custom software fit diagnostic */
.software-fit-section {
  position: relative;
  overflow: hidden;
}

.software-fit-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -180px;
  width: 520px;
  height: 520px;
  border: 1px solid color-mix(in srgb, var(--service-accent-strong) 15%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 80px color-mix(in srgb, var(--service-accent) 10%, transparent), 0 0 0 160px color-mix(in srgb, var(--service-accent) 6%, transparent);
  pointer-events: none;
}

.software-fit-section .sd-shell { position: relative; z-index: 1; }

.software-fit-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .55fr);
  gap: clamp(48px, 8vw, 132px);
  align-items: end;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.software-fit-head h2 {
  max-width: 11ch;
  margin-top: 24px;
  font-size: clamp(3rem, 5.7vw, 6rem);
  font-weight: 600;
  line-height: .92;
  letter-spacing: -.058em;
  text-wrap: balance;
}

.software-fit-head h2 em {
  color: var(--service-accent-strong);
  font-family: var(--serif);
  font-weight: 400;
}

.software-fit-head > p {
  max-width: 47ch;
  padding-bottom: 6px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.62;
}

.software-fit-layout {
  display: grid;
  grid-template-columns: minmax(340px, .74fr) minmax(0, 1.26fr);
  gap: 18px;
  align-items: stretch;
}

.software-fit-quote {
  position: relative;
  display: flex;
  min-height: 570px;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(34px, 4.5vw, 58px);
  border-radius: 23px;
  background: var(--service-deep);
  color: var(--on-dark);
  box-shadow: 0 34px 80px -56px rgba(17,25,54,.75);
}

.software-fit-quote::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -110px;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50%;
  box-shadow: 0 0 0 52px rgba(255,255,255,.025), 0 0 0 104px rgba(255,255,255,.018);
  pointer-events: none;
}

.software-fit-label,
.software-fit-index,
.software-fit-output span {
  font: 600 10px/1.2 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.software-fit-label { color: var(--service-accent); }

.software-fit-quote blockquote {
  position: relative;
  z-index: 1;
  max-width: 13ch;
  margin-top: clamp(48px, 6vw, 84px);
  font: 600 clamp(2.35rem, 4.3vw, 4.65rem)/.95 var(--sans);
  letter-spacing: -.052em;
  text-wrap: balance;
}

.software-fit-quote p {
  position: relative;
  z-index: 1;
  max-width: 40ch;
  margin-top: 26px;
  color: rgba(247,247,243,.67);
  font-size: 1.02rem;
  line-height: 1.58;
}

.software-fit-link {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 54px;
  margin-top: auto;
  padding: 14px 18px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  color: var(--on-dark);
  font: 600 13px/1 var(--sans);
  transition: border-color .3s, background .3s, color .3s;
}

.software-fit-link:hover {
  border-color: var(--service-accent);
  background: var(--service-accent);
  color: var(--ink);
}

.software-fit-signals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--line);
}

.software-fit-signal {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  padding: clamp(28px, 3.3vw, 42px);
  background: var(--card);
  transition: background .3s, transform .3s;
}

.software-fit-signal:hover { background: color-mix(in srgb, var(--service-accent) 27%, var(--card)); }
.software-fit-signal:nth-child(2) { background: color-mix(in srgb, var(--service-accent) 46%, var(--card)); }
.software-fit-signal:nth-child(2):hover { background: color-mix(in srgb, var(--service-accent) 62%, var(--card)); }

.software-fit-index { color: var(--service-accent-strong); }

.software-fit-signal h3 {
  max-width: 14ch;
  margin-top: 42px;
  font-size: clamp(1.55rem, 2.2vw, 2.35rem);
  line-height: 1.02;
  letter-spacing: -.04em;
}

.software-fit-signal p {
  max-width: 40ch;
  margin-top: 15px;
  color: var(--muted);
  line-height: 1.52;
}

.software-fit-output {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-top: auto;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.software-fit-output span { color: var(--muted); }
.software-fit-output strong { text-align: right; font: 600 13px/1.25 var(--sans); }

/* Mobile opportunity test */
.mobile-opportunity {
  display: grid;
  gap: clamp(42px, 6vw, 78px);
}

.mobile-opportunity-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: clamp(48px, 8vw, 130px);
  align-items: end;
}

.mobile-opportunity-intro blockquote {
  max-width: 18ch;
  margin-top: 24px;
  font: 600 clamp(2.8rem, 5.2vw, 5.5rem)/.96 var(--sans);
  letter-spacing: -.058em;
  text-wrap: balance;
}

.mobile-opportunity-copy {
  padding-bottom: 5px;
}

.mobile-opportunity-copy p {
  max-width: 49ch;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.25vw, 1.18rem);
  line-height: 1.62;
}

.mobile-opportunity-copy .btn {
  margin-top: 28px;
}

.mobile-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--line);
  gap: 1px;
}

.mobile-signal {
  position: relative;
  display: flex;
  min-height: 275px;
  flex-direction: column;
  padding: clamp(25px, 2.8vw, 38px);
  background: var(--paper);
}

.mobile-signal:first-child {
  background: var(--service-deep);
  color: var(--on-dark);
}

.mobile-signal-label {
  color: var(--service-accent-strong);
  font: 600 10px/1 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
}

.mobile-signal:first-child .mobile-signal-label { color: var(--service-accent); }

.mobile-signal h3 {
  max-width: 15ch;
  margin-top: 58px;
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.04;
  letter-spacing: -.035em;
}

.mobile-signal p {
  margin-top: auto;
  padding-top: 28px;
  color: var(--muted);
  font: 500 10px/1.35 var(--mono);
  letter-spacing: .05em;
  text-transform: uppercase;
}

.mobile-signal:first-child p { color: rgba(247,247,243,.66); }

.mobile-signal i {
  position: absolute;
  top: 31px;
  right: 31px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--service-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--service-accent) 18%, transparent);
}

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

.related-service {
  display: flex;
  min-height: 225px;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 17px;
  background: rgba(255,255,255,.055);
  color: var(--on-dark);
  transition: border-color .3s, transform .3s;
}

.related-service:hover { transform: translateY(-3px); border-color: var(--service-accent); }
.related-service span { color: var(--service-accent); font: 600 10px/1 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.related-service h3 { max-width: 13ch; font-size: clamp(1.45rem, 2.2vw, 2.2rem); line-height: 1.03; }
.related-service b { font: 600 12px/1 var(--mono); }

.service-detail .final-cta { background: var(--service-deep); }
.service-detail .final-cta .btn-accent {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--ink);
}

.service-detail .final-cta .btn-accent:hover {
  border-color: var(--service-accent);
  background: var(--service-accent);
  filter: none;
}

@media (max-width: 1080px) {
  .sd-hero-grid { grid-template-columns: 1fr; }
  .sd-hero-copy h1 { max-width: 11ch; }
  .sd-visual { width: min(100%, 720px); margin-inline: auto; }
  .phone-deck { width: min(100%, 620px); }
  .proof-feature { grid-template-columns: 1fr; }
  .proof-media { min-height: min(65vw, 620px); }
  .mobile-proof-feature { height: auto; }
  .mobile-proof-media { min-height: 520px; }
  .mobile-proof-copy::before { margin-bottom: 42px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .process-rail { grid-template-columns: 1fr 1fr; }
  .process-card:nth-child(2) { border-right: 0; }
  .process-card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .related-services { grid-template-columns: 1fr 1fr; }
  .mobile-opportunity-intro { grid-template-columns: 1fr; gap: 28px; }
  .mobile-opportunity-copy { max-width: 680px; }
  .mobile-signal-grid { grid-template-columns: 1fr 1fr; }
  .software-fit-head { grid-template-columns: 1fr; gap: 24px; }
  .software-fit-head > p { max-width: 64ch; }
  .software-fit-layout { grid-template-columns: 1fr; }
  .software-fit-quote { min-height: 500px; }
  .software-fit-quote blockquote { max-width: 17ch; }
}

@media (max-width: 760px) {
  .sd-hero { min-height: 0; padding-top: 132px; }
  .sd-hero-grid { gap: 54px; }
  .sd-hero-copy h1 { font-size: clamp(3.2rem, 16vw, 5.4rem); }
  .sd-proofline { flex-direction: column; gap: 9px; }
  .system-map { grid-template-columns: 1fr; }
  .system-node.featured { grid-column: auto; }
  .web-portfolio { padding: 10px; border-radius: 19px; }
  .web-project-pair { grid-template-columns: 1fr; gap: 10px; }
  .web-project-main .web-project-media, .web-project-media { aspect-ratio: 16 / 10; }
  .web-project-caption { padding: 13px 14px 15px; }
  .flow-node { grid-template-columns: 1fr auto; }
  .flow-node .flow-kind { grid-column: 1 / -1; }
  .phone-deck { min-height: 500px; }
  .phone-shell { width: 49%; }
  .phone-note { top: 8%; right: 0; max-width: 150px; }
  .sd-heading { grid-template-columns: 1fr; align-items: start; }
  .sd-heading h2 { max-width: 11ch; }
  .outcome-grid { grid-template-columns: 1fr; }
  .outcome-card, .outcome-card:first-child { min-height: 0; padding: 30px 0 34px; border-right: 0; border-bottom: 1px solid var(--line); }
  .outcome-card:last-child { border-bottom: 0; }
  .outcome-card h3 { margin-top: 32px; }
  .proof-media { min-height: 360px; }
  .proof-media.workflow-proof { min-height: 0; padding: 16px; }
  .proof-media.workflow-proof .automation-board { height: auto; padding: 18px; }
  .proof-media.workflow-proof .automation-flow { grid-template-rows: none; }
  .proof-media.workflow-proof .flow-node { padding: 15px 14px; }
  .mobile-proof-feature { border-radius: 18px; }
  .mobile-proof-media { min-height: 390px; padding: 62px 24px 0; }
  .mobile-proof-topline { top: 23px; right: 22px; left: 22px; }
  .mobile-proof-device { width: min(100%, 430px); border-radius: 18px 18px 0 0; }
  .mobile-proof-copy { padding: 36px 26px 40px; }
  .mobile-proof-copy::before { margin-bottom: 32px; }
  .mobile-proof-copy h3 { max-width: 11ch; font-size: clamp(2.35rem, 11.2vw, 3.35rem); }
  .mobile-proof-tags { gap: 6px; }
  .mobile-proof-tags span { padding: 7px 9px; font-size: 8px; }
  .proof-grid, .build-grid, .process-rail, .fit-grid, .related-services { grid-template-columns: 1fr; }
  .build-item { min-height: 0; }
  .process-card, .process-card:not(:first-child) { padding: 28px 0 34px; border-right: 0; border-top: 1px solid var(--line); }
  .process-card:first-child { border-top: 0; }
  .fit-row { grid-template-columns: 1fr; gap: 7px; }
  .fit-row span { text-align: left; }
  .web-standard { grid-template-columns: 1fr; gap: 28px; }
  .web-standard-intro h2 { max-width: 10.5ch; font-size: clamp(3.1rem, 15vw, 5rem); }
  .web-standard-summary { max-width: 34ch; padding-bottom: 0; }
  .web-standard-principles { grid-template-columns: 1fr; margin-top: 20px; }
  .web-standard-principle,
  .web-standard-principle:first-child,
  .web-standard-principle:last-child { padding: 24px 0 26px; border-right: 0; border-bottom: 1px solid var(--line); }
  .web-standard-principle:last-child { border-bottom: 0; }
  .web-standard-principle h3 { margin-top: 12px; }
  .software-fit-head h2 { max-width: 10ch; font-size: clamp(2.8rem, 13vw, 4.8rem); }
  .software-fit-signals { grid-template-columns: 1fr; border-radius: 17px; }
  .software-fit-quote { min-height: 520px; border-radius: 17px; }
  .software-fit-quote blockquote { max-width: 13ch; font-size: clamp(2.25rem, 11vw, 3.8rem); }
  .software-fit-signal { min-height: 245px; }
  .software-fit-signal h3 { margin-top: 34px; }
  .mobile-opportunity { gap: 38px; }
  .mobile-opportunity-intro blockquote { font-size: clamp(2.6rem, 12vw, 4.6rem); }
  .mobile-signal-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .mobile-signal { min-height: 230px; }
  .mobile-signal h3 { margin-top: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .proof-card, .related-service, .software-fit-link, .software-fit-signal { transition: none; }
}
