/* Services hub and service pages. Loaded after talks.css (tokens, menu, halftone photos) and studio.css
   (.sb-chapter, .sb-label, .sb-small).

   Hub: the specimen sheet. Four services side by side on one grid; the heading, the cards and the questions share
   its columns, and the cards use subgrid so names, lines, "For" and "Work" sit on the same rows across columns. */
.sv-grid { --sv-gap: clamp(1.6rem, 3vw, 3rem); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--sv-gap); }
.sv-grid > * { min-width: 0; }
.sv-head { padding-block: 8.5rem clamp(2rem, 4vw, 3.2rem); }
/* The first line of the intro sits on the baseline of "Services". */
.sv-head .sv-grid { align-items: first baseline; row-gap: 1.2rem; }
.sv-head h1 { grid-column: 1 / span 2; margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(3.6rem, 1.6rem + 6vw, 8.4rem); line-height: 0.86; letter-spacing: -0.03em; }
.sv-head .lede { grid-column: 3 / span 2; margin: 0; max-width: 34rem; font-size: clamp(1.1rem, 1rem + 0.45vw, 1.35rem); color: var(--ink-2); text-wrap: pretty; }

.sv-sheet { grid-auto-rows: auto; border-top: 1px solid var(--rule); }
.sv-card { position: relative; grid-row: span 6; display: grid; grid-template-rows: subgrid; row-gap: 0.95rem; padding-block: 1.6rem 2.6rem; }
/* The rule between two columns sits in the middle of the gap. */
.sv-card + .sv-card::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--sv-gap) / -2); border-left: 1px solid var(--rule); }
.sv-card-figure { margin: 0 0 0.6rem; display: grid; gap: 0.7rem; }
.sv-card-media { display: block; aspect-ratio: 4 / 3; width: 100%; }
.sv-card-media picture { display: contents; }
.sv-card-media canvas { transition: opacity 600ms ease; }
.sv-card:hover .sv-card-media canvas, .sv-card:focus-within .sv-card-media canvas, .sv-card.is-open .sv-card-media canvas { opacity: 0; }
.sv-card-figure figcaption { display: flex; align-items: center; gap: 0.55rem; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.sv-card-figure figcaption::before { content: ""; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--tint, var(--accent)); }
.sv-card h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.65rem, 1.05rem + 1.05vw, 2.35rem); line-height: 1; letter-spacing: -0.01em; text-wrap: balance; }
.sv-card h2::before { content: ""; display: block; width: 100%; height: 2px; margin-bottom: 1rem; background: var(--accent); transform: scaleX(0.14); transform-origin: left; transition: transform 500ms ease; }
.sv-card:hover h2::before, .sv-card:focus-within h2::before { transform: none; }
.sv-card h2 a { text-decoration: none; }
.sv-card h2 a:hover, .sv-card h2 a:focus-visible { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.14em; }
.sv-lead { margin: 0; color: var(--ink); font-size: 1.04rem; line-height: 1.5; }
.sv-text { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.sv-row { display: grid; align-content: start; gap: 0.45rem; }
.sv-label { margin: 0; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.sv-who { margin: 0; color: var(--ink-2); font-size: 0.92rem; }
.sv-work { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.sv-work li { line-height: 1.35; }
.sv-work a { color: var(--ink); text-decoration: none; font-size: 0.93rem; }
.sv-work a:hover, .sv-work a:focus-visible { text-decoration: underline; text-decoration-color: var(--accent); }
.sv-work span { margin-left: 0.5rem; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); }

/* The questions people search: the title over the first half, then two answers per row on the same columns. */
.sv-faq { padding-block: clamp(4rem, 8vw, 6.5rem) clamp(3.5rem, 7vw, 6rem); }
.sv-faq .sv-grid { row-gap: 2rem; border-top: 1px solid var(--rule); }
.sv-faq h2 { grid-column: 1 / -1; margin: 0; padding-top: 1.6rem; font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.3rem + 2vw, 3.4rem); line-height: 1; }
.sv-faq article { grid-column: span 2; }
.sv-faq h3 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.65rem); line-height: 1.15; text-wrap: balance; }
.sv-faq article p { margin: 0.8rem 0 0; max-width: 38rem; color: var(--ink-2); }

@media (max-width: 1100px) {
  .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sv-head h1 { grid-column: 1; } .sv-head .lede { grid-column: 2; }
  .sv-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .sv-card:nth-child(2n+1)::before { content: none; }
  .sv-faq article { grid-column: span 1; }
}
@media (max-width: 860px) {
  .sv-head { padding-top: 7rem; }
  .sv-head h1, .sv-head .lede { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .sv-grid { grid-template-columns: minmax(0, 1fr); }
  .sv-card { grid-row: auto; grid-template-rows: none; }
  .sv-card + .sv-card { border-top: 1px solid var(--rule); }
  .sv-card + .sv-card::before { content: none; }
  .sv-faq article { grid-column: 1; }
}
@media (prefers-reduced-motion: reduce) { .sv-card-media canvas, .sv-card h2::before { transition: none; } }
.sv-more { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.sv-close { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 1.5rem 4vw; align-items: center; padding-block: clamp(4rem, 8vw, 7rem); border-top: 1px solid var(--rule); }
.sv-close p { margin: 0; max-width: 40rem; font-family: var(--display); font-size: clamp(1.5rem, 1.15rem + 1.1vw, 2.2rem); line-height: 1.28; color: var(--ink); }
@media (max-width: 860px) { .sv-close { grid-template-columns: minmax(0, 1fr); } }

/* Service pages: the hero with the photograph on the right, then each section as a Studio chapter:
   the section title on the left, the content on the right as a ledger or an image grid. */
.sv-hero--service { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 5vw; align-items: center; padding-block: 8.5rem clamp(3.5rem, 7vw, 6rem); }
.sv-hero--service h1 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(3rem, 1.2rem + 5.4vw, 6.6rem); line-height: 0.92; letter-spacing: -0.02em; }
.sv-hero-copy { min-width: 0; display: grid; gap: 1.4rem; align-content: center; }
.sv-hero-copy .lede { margin: 0; }
.sv-hero-copy .sb-small a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.sv-hero-media { margin: 0; aspect-ratio: 4 / 5; max-height: min(74svh, 44rem); width: 100%; justify-self: end; outline: 1px solid var(--rule); }
.sv-meta { margin: 0.4rem 0 0; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 0.8rem 1.25rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); }
.sv-meta dt { font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); padding-top: 0.2rem; }
.sv-meta dd { margin: 0; color: var(--ink-2); }

.sv-points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.sv-points li { padding: 1.15rem 0; border-bottom: 1px solid var(--rule); font-family: var(--display); font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.6rem); line-height: 1.25; color: var(--ink); }

.sv-page .section { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: 1.5rem 5vw; padding-block: clamp(4.5rem, 9vw, 8rem); border-top: 1px solid var(--rule); }
.sv-page .section-header { position: sticky; top: 7rem; align-self: start; display: grid; gap: 1rem; }
.sv-page .section-header h2 { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(2.3rem, 1.3rem + 3.2vw, 4.4rem); line-height: 0.95; letter-spacing: -0.015em; }
.sv-page .section-header h2::before { content: ""; display: block; width: 2.2rem; height: 2px; margin-bottom: 1.2rem; background: var(--accent); }
.sv-page .section-header p { margin: 0; max-width: 24rem; color: var(--ink-2); }

.sv-page .service-detail-grid, .sv-page .service-deliverables { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.sv-page .service-detail-item, .sv-page .service-deliverables li { display: grid; gap: 0.4rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); }
.sv-page .service-detail-item h3, .sv-page .service-deliverables strong { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.12; color: var(--ink); }
.sv-page .service-detail-item p, .sv-page .service-deliverables span { margin: 0; color: var(--ink-2); }

.sv-page .service-proof-grid { display: grid; margin: 0; border-top: 1px solid var(--rule); align-content: start; }
.sv-page .service-proof-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0.3rem 1.5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--rule); text-decoration: none; }
.sv-page .service-proof-card img { display: none; }
.sv-page .service-proof-card span { display: contents; }
.sv-page .service-proof-card strong { grid-column: 1; grid-row: 1; font-family: var(--display); font-weight: 400; font-size: clamp(1.35rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.12; color: var(--ink); }
.sv-page .service-proof-card small { grid-column: 2; grid-row: 1; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); text-align: right; }
.sv-page .service-proof-card:hover strong, .sv-page .service-proof-card:focus-visible strong { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.18em; }

.sv-close--service { grid-template-columns: auto auto; justify-content: start; gap: 1.4rem 2rem; }

@media (max-width: 860px) {
  .sv-hero--service { grid-template-columns: minmax(0, 1fr); padding-top: 6.5rem; }
  .sv-hero--service .sv-hero-media { order: -1; aspect-ratio: 4 / 3; justify-self: stretch; }
  .sv-page .section { grid-template-columns: minmax(0, 1fr); }
  .sv-page .section-header { position: static; }
}
@media (max-width: 520px) {
  .sv-page .service-proof-card { grid-template-columns: minmax(0, 1fr); }
  .sv-page .service-proof-card small { grid-column: 1; grid-row: 2; text-align: left; }
  .sv-meta { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
  .sv-meta dd { margin-bottom: 0.7rem; }
  .sv-close--service { grid-template-columns: minmax(0, 1fr); }
}
