.services-section {
  position: relative;
  color: var(--text);
  background: var(--paper);
}
.brand-scroll + .services-section::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - 2px);
  height: clamp(14px, 4svh, 36px);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: var(--paper);
  pointer-events: none;
}
.about-section {
  background: #232327;
  color: #faf9fa;
  --muted: #cfccd1;
  --border: #505055;
}
.process-section {
  background: var(--section-surface);
}
.contact-section {
  color: #fff;
  background: var(--brand-black);
  padding-block-start: clamp(44px, 5vw, 80px);
  padding-block-end: clamp(56px, 5.5vw, 88px);
}
.contact-section .form-panel {
  border: 1px solid #d7d5d8;
  border-radius: 12px;
  box-shadow: 0 3px 6px #19171908, 0 20px 56px -20px #19171940;
}

/* Development fields */
.services-section .section-heading { margin-bottom:24px; }
.services-section .section-heading p { margin-top:8px; color:var(--muted); }
.service-filters { display:flex; flex-wrap:wrap; gap:4px; margin-bottom:22px; }
.service-filters button {
  padding:10px clamp(10px,1.5vw,22px); min-height:44px; border-radius:24px;
  color:#544e56; font-size:clamp(12px,1.2vw,15px);
}
.service-filters button[aria-selected="true"] { background:#211d23; color:#fff; }
.service-directory {
  display:grid; grid-template-columns:repeat(auto-fit,minmax(0,1fr));
  gap:clamp(10px,1.3vw,20px); align-items:start;
}
.service-filters[hidden], .service-directory[hidden] { display:none; }
.service-row { border:1px solid #e2dfe3; border-radius:20px; background:#fff; }
.service-row summary {
  isolation:isolate; position:relative; overflow:hidden; display:block;
  padding:clamp(16px,1.8vw,28px); min-height:clamp(225px,20vw,282px);
  border-radius:inherit; cursor:pointer;
}
.service-row h3 { font-size:clamp(17px,1.55vw,23px); line-height:1.32; font-weight:700; }
.service-caption { display:block; margin-top:8px; font-size:14px; color:#635b65; word-break:keep-all; }
.service-row .expand-mark { position:absolute; bottom:22px; left:22px; }
.service-art {
  display:flex; justify-content:flex-end; align-items:center;
  margin:18px 0 0 auto; width:68%; height:clamp(105px,9vw,145px);
}
.service-art img { display:block; width:100%; height:100%; object-fit:contain; object-position:right center; }
.service-row[open] { border-color:#ba99aa; }
.service-row .service-body { padding:18px 20px 24px; border-top:1px solid #eee9ec; }
.service-body .text-link { border-bottom:0; }
@media (max-width:767px) {
  .service-directory {
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:min(82%,320px);
    overflow-x:auto; scroll-snap-type:x proximity; padding:4px 2px 12px; scrollbar-width:thin;
  }
  .service-row { scroll-snap-align:start; }
}
.about-layout { gap: 28px; }
.about-copy {
  --about-inset: clamp(24px,3vw,44px);
  overflow: hidden;
  isolation: isolate;
  padding-bottom: var(--about-inset);
  border-radius: 24px;
  background: #19181d;
  color: white;
}
.about-workspace {
  position: relative;
  isolation: isolate;
  mask-image: linear-gradient(to bottom, black 27%, #000e 46%, #0009 68%, transparent 100%);
}
.about-workspace::after {
  content: "";
  position: absolute;
  inset: 0 0 46%;
  pointer-events: none;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  mask-image: radial-gradient(ellipse 35% 65% at 68% 52%, black 55%, transparent 100%);
}
.about-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  object-position: center bottom;
  filter: saturate(.68) brightness(.8);
  opacity: .86;
}
.about-copy > :is(h2,p) { position: relative; margin-inline: var(--about-inset); }
.about-copy > h2 { margin-top: clamp(-100px,-7vw,-38px); }
.about-copy .section-lead { color: #e3e1e3; }
.strengths p { color: var(--muted); }
.strengths { display: grid; align-content: center; }
.strengths article, .strengths article:first-child {
  padding: 22px 0; border: 0; border-bottom: 1px solid var(--border);
}
.strengths h3 { font-size: clamp(18px, 1.8vw, 26px); }

/* Process: the steps read down a single time line. */
.process-list { grid-template-columns: 1fr; gap: 0; }
.process-list li {
  border: 0;
  padding: 0 0 32px 32px;
}
.process-list li:last-child { padding-bottom: 0; }
.process-list li::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 2px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-pink);
}
.process-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 2px;
  height: 100%;
  background: var(--border) linear-gradient(var(--brand-pink), var(--brand-pink)) top / 100% 0 no-repeat;
}
.process-number { position: static; display: inline-block; font-size: 14px; margin: 0 0 8px;
  color: var(--rose-accent); background: var(--rose-badge); padding: 2px 9px; border-radius: 5px; }
.process-list p { margin-top: 8px; }
.process-caption { display: none; }

/* Each segment begins at one dot's center and ends at the next.
   A single reading line at mid-viewport advances one segment at a time. */
@supports (animation-timeline: view(block 50% 50%)) {
  @media (prefers-reduced-motion: no-preference) {
    [data-motion="on"] .process-list li:not(:last-child)::after {
      animation: trace-step linear both;
      animation-timeline: view(block 50% 50%);
    }
  }
}
@keyframes trace-step {
  from { background-size: 100% 0%; }
  to { background-size: 100% 100%; }
}

/* Inquiry: a single centered form below its introduction. */
.contact-layout { max-width: 900px; grid-template-columns: 1fr; gap: 24px; }
.contact-copy { position: static; --muted: #c6c6c6; }
.contact-copy h2 { margin: 0; }
.contact-copy > p:not(.eyebrow) { margin-top: 12px; color: var(--muted); }
.contact-copy p br { display: none; }

@media (min-width: 768px) {
  .about-layout { grid-template-columns: 1.2fr 1fr; gap: clamp(36px, 5vw, 80px); }
  .process-timeline { display: grid; grid-template-columns: 1.1fr 1fr; gap: 52px; align-items: start; }
  #approach .section-heading { position: sticky; top: 40px; }
  #approach .faq { margin-top: 52px; }
  .contact-copy { display: flex; align-items: end; justify-content: space-between; gap: 32px; }
  .contact-copy > p:not(.eyebrow) { max-width: 340px; }
}
