/* Detail pages: services and cases. Same tokens as the world (brand.css),
   ordinary document flow, so every word is plain readable content for
   visitors and for search engines. */
html { scroll-padding-top: 6rem; }
body { margin: 0; }
.bar { background: linear-gradient(var(--sc-canvas) 55%, transparent); }
.nav { display: flex; align-items: center; gap: clamp(0.75rem, 2vw, 1.75rem); }
.nav a:not(.btn) { color: var(--sc-ink-soft); text-decoration: none; font-size: 0.95rem; border-radius: 4px; transition: color 140ms var(--sc-ease-out); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--sc-ink); }

.wrap { width: 100%; max-width: 76rem; margin-inline: auto; padding-inline: var(--gut); }

/* hero: the floor of the world, seen once more */
.hero { position: relative; overflow: hidden; padding: clamp(8rem, 20vh, 12rem) 0 clamp(4rem, 10vh, 7rem); }
.hero::before {
  content: ""; position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%;
  background:
    repeating-linear-gradient(90deg, var(--ink-08) 0 1px, transparent 1px 120px),
    repeating-linear-gradient(0deg, var(--ink-08) 0 1px, transparent 1px 120px);
  transform: perspective(700px) rotateX(62deg); transform-origin: 50% 100%;
  -webkit-mask-image: linear-gradient(to top, #000 20%, transparent 85%); mask-image: linear-gradient(to top, #000 20%, transparent 85%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 2px; height: 46%;
  background: linear-gradient(to top, var(--sc-accent), transparent); opacity: 0.7; pointer-events: none;
}
.hero .wrap { position: relative; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0 0 1.75rem; font-size: 0.85rem; color: var(--sc-ink-soft); }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; opacity: 0.5; }
.crumbs a { color: inherit; text-decoration: none; }
.crumbs a:hover { color: var(--sc-ink); }
h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; text-wrap: balance; }
.hero h1 { font-size: clamp(2.5rem, 1.2rem + 4.6vw, 5.6rem); font-weight: 680; font-stretch: 108%; line-height: 0.98; letter-spacing: -0.04em; max-width: 16ch; }
.hero .lede { margin: 1.4rem 0 0; font-size: clamp(1.08rem, 0.98rem + 0.45vw, 1.35rem); line-height: 1.5; color: var(--sc-ink-soft); max-width: 46ch; text-wrap: pretty; }
.acts { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.tag { display: inline-block; font-size: 0.76rem; letter-spacing: 0.06em; color: var(--sc-ink-soft); box-shadow: inset 0 0 0 1px var(--ink-14); padding: 0.2rem 0.5rem; border-radius: 4px; }

/* sections: heading in a narrow column, content in a wide one */
.sec { padding-block: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--ink-08); }
.sec__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 2rem clamp(2rem, 6vw, 6rem); }
.sec h2 { font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.9rem); font-weight: 640; font-stretch: 106%; line-height: 1.04; letter-spacing: -0.03em; }
.sec__head { align-self: start; position: sticky; top: 7rem; }
.prose p { margin: 0 0 1.1rem; font-size: 1.08rem; line-height: 1.65; color: var(--sc-ink); max-width: 60ch; text-wrap: pretty; }
.prose p.soft { color: var(--sc-ink-soft); }

.points { list-style: none; margin: 0; padding: 0; }
.points li { display: grid; grid-template-columns: 13rem 1fr; gap: 1.5rem; padding: 1.2rem 0; border-top: 1px solid var(--ink-14); }
.points li:last-child { border-bottom: 1px solid var(--ink-14); }
.points strong { font-family: var(--sc-font-display); font-stretch: 106%; font-weight: 620; font-size: 1.12rem; line-height: 1.3; }
.points span { color: var(--sc-ink-soft); line-height: 1.55; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 1.1rem; border-top: 1px solid var(--ink-30); }
.steps li::before { content: counter(s); display: block; font-family: var(--sc-font-display); font-weight: 600; color: var(--sc-accent); font-size: 0.95rem; margin-bottom: 0.9rem; font-variant-numeric: tabular-nums; }
.steps strong { display: block; font-family: var(--sc-font-display); font-stretch: 106%; font-weight: 620; font-size: 1.12rem; margin-bottom: 0.45rem; }
.steps span { color: var(--sc-ink-soft); font-size: 0.97rem; line-height: 1.55; }

.faq details { border-top: 1px solid var(--ink-14); }
.faq details:last-child { border-bottom: 1px solid var(--ink-14); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; font-family: var(--sc-font-display); font-stretch: 104%; font-weight: 580; font-size: 1.1rem; border-radius: 4px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sc-font-text); font-weight: 300; font-size: 1.5rem; color: var(--sc-ink-soft); transition: transform 180ms var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); color: var(--sc-accent); }
.faq details p { margin: 0 0 1.25rem; color: var(--sc-ink-soft); line-height: 1.6; max-width: 62ch; }

.towns { display: flex; flex-wrap: wrap; gap: 0.45rem; list-style: none; padding: 0; margin: 1.25rem 0 0; }
.towns li { font-size: 0.9rem; padding: 0.35rem 0.7rem; border-radius: var(--sc-r-sm); box-shadow: inset 0 0 0 1px var(--ink-14); }

/* case pages */
.shot { margin: clamp(3rem, 7vw, 5rem) 0 0; border-radius: var(--sc-r-md); overflow: hidden; background: var(--sc-surface);
  box-shadow: var(--sc-e3), inset 0 0 0 1px var(--ink-14), var(--sc-edge); }
.shot__bar { height: 2.2rem; display: flex; align-items: center; gap: 0.4rem; padding: 0 0.9rem; border-bottom: 1px solid var(--ink-08); }
.shot__bar i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--ink-14); }
.shot img { display: block; width: 100%; height: auto; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.25rem; margin: 2.5rem 0 0; }
.facts div { border-top: 1px solid var(--ink-14); padding-top: 0.9rem; }
.facts dt { font-size: 0.8rem; color: var(--sc-ink-soft); letter-spacing: 0.02em; }
.facts dd { margin: 0.35rem 0 0; font-weight: 520; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.next a { font-family: var(--sc-font-display); font-stretch: 106%; font-weight: 620; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); text-decoration: none; letter-spacing: -0.02em; border-radius: 4px; }
.next a:hover { color: var(--sc-accent); }

/* closing band */
.band { padding-block: clamp(4rem, 10vw, 8rem); border-top: 1px solid var(--ink-08); background:
  radial-gradient(60% 120% at 85% 100%, rgb(var(--accent-rgb) / 0.08), transparent 70%); }
.band h2 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.6rem); font-weight: 660; font-stretch: 108%; letter-spacing: -0.04em; line-height: 1; }
.band p { margin: 1.1rem 0 0; color: var(--sc-ink-soft); font-size: 1.1rem; max-width: 46ch; }
.direct { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; margin-top: 1.75rem; font-size: 0.95rem; }
.direct a { color: var(--sc-ink); text-decoration: none; border-radius: 4px; }
.direct a:hover { color: var(--sc-accent); }

.foot { padding-block: 3rem; border-top: 1px solid var(--ink-08); font-size: 0.9rem; color: var(--sc-ink-soft); }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2rem; }
.foot h3 { font-family: var(--sc-font-text); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sc-ink); margin-bottom: 0.9rem; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.foot a { color: var(--sc-ink-soft); text-decoration: none; border-radius: 4px; }
.foot a:hover { color: var(--sc-ink); }
.foot address { font-style: normal; line-height: 1.7; }
.foot__legal { margin-top: 2.5rem; font-size: 0.78rem; }

.nav a.nav__contact { color: var(--sc-ink); padding: 0.55rem 0.95rem; border-radius: var(--sc-r-sm); box-shadow: inset 0 0 0 1px var(--ink-30); }
.nav a.nav__contact:hover { box-shadow: inset 0 0 0 1px var(--sc-ink); }
@media (max-width: 860px) {
  .nav a:not(.btn):not(.nav__contact) { display: none; }
  .sec__grid { grid-template-columns: 1fr; }
  .sec__head { position: static; }
  .points li { grid-template-columns: 1fr; gap: 0.35rem; }
  .steps { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .foot__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .bar .btn { min-height: 2.6rem; padding: 0 0.9rem; font-size: 0.9rem; } }
