/* Clark Renders — Services (services.html). Built on showcase.css, work.css and project.css. */

.s-list { --nw: calc(var(--fs-small) * 3); list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2em; width: 100%; max-width: 34em; }
.s-head {
  display: flex; align-items: baseline; gap: 0; width: 100%; padding: 0.15em 0;
  font-size: var(--fs-big); line-height: 0.95; letter-spacing: -0.025em; text-align: left;
  color: var(--soft); transition: color 300ms ease;
}
.s-head .n { font-size: var(--fs-small); letter-spacing: 0; flex: none; width: var(--nw); }
.s-list li.on .s-head { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .s-head:hover { color: var(--ink); } }
/* the chosen service opens to show its description */
.s-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease-out), opacity 400ms ease; opacity: 0; }
.s-body > p {
  min-height: 0; overflow: hidden; margin: 0; padding-left: var(--nw);
  font-size: var(--fs-body); line-height: 1.45; font-weight: 500; text-transform: none; font-stretch: 100%;
}
.s-list li.on .s-body { grid-template-rows: 1fr; opacity: 1; }
.s-list.instant .s-body, .s-list.instant .s-head { transition: none; }
.s-list li.on .s-body > p { padding-top: 0.5em; padding-bottom: 0.9em; }
.s-note { margin-top: 2em; max-width: 30em; color: var(--soft); padding-left: var(--nw); }
.s-info { --nw: calc(var(--fs-small) * 3); }
.s-go { margin: 1em 0 0 var(--nw); border-bottom: 2px solid currentColor; padding-bottom: 1px; }

/* 3D Modelling: drawing → model → image from the same camera, one after another */
.s-seq { background: var(--plate); }
.s-seq img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 700ms ease; }
.s-seq img.on { opacity: 1; }
.s-steps { position: absolute; left: 10px; bottom: 9px; display: flex; gap: 1em; color: var(--soft); }
.s-seq.ready .s-steps { color: rgba(255, 255, 255, 0.6); text-shadow: 0 0 6px rgba(0, 0, 0, 0.4); }
.s-steps span { transition: color 300ms ease; }
.s-steps span.on { color: var(--ink); }
.s-seq.ready .s-steps span.on { color: #fff; }
/* until the images are supplied: a plain, clearly labelled placeholder (nothing invented) */
.s-ph { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 0.6em; text-align: center; padding: 8%; border: 1px dashed var(--line); }
.s-seq.ready .s-ph { display: none; }
.s-seq:not(.ready) .s-steps { display: none; }

@media (max-width: 900px) {
  .s-head { font-size: 26px; }
  .s-body > p { font-size: 14px; }
  .s-note { margin-top: 1.2em; }
}
@media (prefers-reduced-motion: reduce) { .s-body { transition: none; } }

/* ---------- Beyond the image (draft: A a quiet panel · B a quieter fourth step) ---------- */
html[data-beyond="a"] .s-extra { display: none; }
html[data-beyond="b"] .s-beyond-link, html[data-beyond="b"] #more { display: none; }
.s-links { margin-top: 1em; padding-left: var(--nw); display: flex; flex-wrap: wrap; gap: 0.6em 1.8em; align-items: baseline; }
.s-links .s-go { margin: 0; }
.s-beyond-link { display: inline-flex; align-items: center; gap: 8px; border-bottom: 2px solid currentColor; padding-bottom: 1px; }
.s-beyond-link[aria-expanded="true"] .plus { transform: rotate(45deg); }
/* B: the fourth step is set smaller, so it reads as an extension rather than a fourth service */
.s-extra { margin-top: 0.6em; }
.s-extra .s-head { font-size: var(--fs-state); }
.s-extra .s-head .n { font-size: var(--fs-small); }
/* the content, in both */
.s-beyond { display: grid; gap: 0.9em; }
.s-beyond .intro { margin: 0; font-size: clamp(14px, 1.1vw, 17px); line-height: 1.45; font-weight: 500; text-transform: none; font-stretch: 100%; max-width: 36em; }
.s-beyond dl { margin: 0.4em 0 0; display: grid; gap: 0.8em; }
.s-beyond dt { font-size: var(--fs-small); }
.s-beyond dd { margin: 0.2em 0 0; font-size: clamp(13px, 1vw, 15px); line-height: 1.4; font-weight: 500; text-transform: none; font-stretch: 100%; color: var(--soft); max-width: 34em; }
.s-extra .s-body > .s-beyond { min-height: 0; overflow: hidden; padding-left: var(--nw); }
.s-list li.s-extra.on .s-body > .s-beyond { padding-top: 0.6em; }
/* B: while the fourth step is open, the enquiry line steps aside to make room */
.s-info.extra-on .s-note { display: none; }
/* B's picture: until examples exist, a plain labelled panel */
.s-ex .s-ph { border: 1px dashed var(--line); }
/* the draft switch */
.s-draft { position: fixed; left: 50%; bottom: 52px; transform: translateX(-50%); z-index: 12; display: flex; gap: 1em; background: var(--paper); padding: 4px 10px; border: 1px dashed var(--line); }
.s-draft button { color: var(--soft); }
.s-draft button[aria-pressed="true"] { color: var(--ink); }
@media (max-width: 900px) {
  .s-draft { position: static; transform: none; align-self: center; margin: 0 0 8px; flex-wrap: wrap; justify-content: center; }
  .s-extra .s-head { font-size: 19px; }
  /* longer text scrolls within its own area, above the strip along the bottom */
  .s-info { overflow-y: auto; overscroll-behavior: contain; touch-action: pan-y; scrollbar-width: none; padding-bottom: 12px; }
  .s-info::-webkit-scrollbar { display: none; }
}

/* ---------- Beyond the image: final (the fourth, quieter step) ---------- */
.s-draft { display: none; }
/* the + drawn to the same size and weight as the 01–03 numbers beside it */
.s-plus { position: relative; display: inline-block; width: 0.74em; height: 0.74em; vertical-align: -0.02em; }
.s-plus::before, .s-plus::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 0.16em; margin-top: -0.08em; background: currentColor; }
.s-plus::after { transform: rotate(90deg); }
.s-extra .s-head .n { font-size: var(--fs-small); }
/* the offerings: the current one dark, the others soft; each can be clicked */
.s-beyond dl > div { cursor: pointer; transition: opacity 300ms ease; }
.s-extra.on .s-beyond dl > div:not(.on) { opacity: 0.45; }
.s-beyond dl > div.on dt { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .s-extra.on .s-beyond dl > div:hover { opacity: 1; } }
/* its picture changes in place, with a soft crossfade, rather than sliding */
.s-ex { background: var(--plate); }
.s-layer { position: absolute; inset: 0; opacity: 0; transition: opacity 600ms ease; }
.s-layer.on { opacity: 1; }
.s-layer img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s-layer.s-ph { border: 1px dashed var(--line); }

/* the pictures move exactly like the homepage films: same speed and curve, and the ones either side
   stay at full strength rather than dimmed (the gallery on project pages keeps its own dimming) */
.s-stage .p-col .hero { transition: transform 600ms var(--ease-move), opacity 500ms ease; }
.s-stage .p-col .hero:not(.on) { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .s-stage .p-col .hero { transition: none; } }

/* ---------- refinement (Nov 2026): a personal introduction, and calmer proportions ----------
   The text side gets more room and the pictures about 13% less width than before (they keep their
   shape, transitions and the glimpse of the neighbours above and below). */
.s-stage { grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr); column-gap: 5vw; }
.s-intro {
  margin: 0 0 clamp(26px, 5vh, 56px); padding-left: var(--nw); max-width: calc(32em + var(--nw));
  font-size: var(--fs-intro); line-height: 1.45; font-weight: 500;
  text-transform: none; font-stretch: 100%;
}
.s-list { max-width: 36em; }
.s-note { max-width: 44em; }

/* second pass: the introduction sits just under the title, the services stay centred in the space
   below it, and the pictures give up more width so each description runs to about three lines */
@media (min-width: 901px) {
  .s-stage { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); column-gap: 6vw; }
  .s-info { justify-content: flex-start; }
  .s-intro { margin-top: clamp(0px, 1vh, 12px); margin-bottom: clamp(24px, 4vh, 48px); max-width: calc(40em + var(--nw)); }
  .s-list { margin-top: auto; max-width: 44em; }
  .s-links { margin-bottom: auto; }
}
/* short laptop screens: a little tighter so everything sits comfortably */
@media (min-width: 901px) and (max-height: 760px) {
  .s-intro { margin-bottom: 20px; }
}
@media (max-width: 900px) {
  .s-intro { margin-bottom: 16px; padding-left: 0; max-width: none; }
  /* the picture strip only as tall as the pictures, so the introduction and services start higher */
  .s-stage .p-col { height: 31%; }
}
