/* ============================================================================
   Legacy interior pages: services, process, journal, articles, contact,
   privacy. Loads after scrollcraft.css and site.css.
   ========================================================================== */

main { background: var(--sc-canvas); }
section[id], .stage[id] { scroll-margin-top: calc(var(--bar-h) + 4.5rem); }

/* ---------------------------------------------------------- page head --
   Title on the paper ground, then a photograph that opens from inset to
   full-bleed as it comes up the screen (driven by the act's --sc-p). */
.phead { padding-top: calc(var(--bar-h) + clamp(2.5rem, 8vh, 6rem)); }
.phead__inner { display: grid; gap: 1.4rem; }
.phead__inner .h1 { max-width: 17ch; }
.phead__row { display: flex; justify-content: space-between; align-items: end; gap: 2rem 4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.phead__facts { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.phead__facts li {
  font-size: 0.88rem; font-weight: 600; color: var(--sc-ink-soft);
  padding: 7px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair);
}
.phead__media { margin-top: clamp(2.5rem, 6vw, 4.5rem); --g: var(--sc-gutter); }
.phead__frame {
  position: relative; overflow: hidden;
  height: clamp(20rem, 58vw, 46rem);
  background: #E5E6E0;
  --o: 0;
  clip-path: inset(0 calc(var(--g) * (1 - var(--o))) round calc(var(--r) * (1 - var(--o))));
}
.phead__frame img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; max-width: none; object-fit: cover; }
@media (prefers-reduced-motion: no-preference) {
  .phead__media .phead__frame { --o: clamp(0, calc((var(--sc-p, 0) - 0.3) / 0.22), 1); }
}
.phead--short { padding-bottom: clamp(2.5rem, 6vw, 4rem); }

/* -------------------------------------------------- on-this-page nav -- */
.subnav {
  position: sticky; top: var(--bar-h); z-index: 50;
  background: color-mix(in oklab, var(--sc-canvas) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--hair);
}
@media (max-width: 899px), (hover: none) and (pointer: coarse) {
  .subnav { -webkit-backdrop-filter: none; backdrop-filter: none; background: color-mix(in oklab, var(--sc-canvas) 97%, transparent); }
}
.subnav__inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--sc-ink-soft);
  padding: 7px 14px; border-radius: 999px; white-space: nowrap;
  transition: background-color 180ms var(--sc-ease-out), color 180ms var(--sc-ease-out);
}
.subnav a[aria-current="true"] { background: var(--sc-ink); color: var(--sc-canvas); }
@media (hover: hover) and (pointer: fine) { .subnav a:not([aria-current="true"]):hover { color: var(--sc-ink); background: rgb(20 24 21 / 0.06); } }
.subnav a i { font-style: normal; opacity: 0.6; margin-right: 6px; font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------ service -- */
.svc { padding-block: var(--sc-section); }
.svc + .svc { padding-top: 0; }
.svc__text { display: grid; gap: 1.2rem; align-content: start; }
.svc__text .h2 { max-width: 15ch; }
.points { display: grid; margin-top: 0.8rem; }
.points > div { display: grid; gap: 0.3rem; padding-block: 1rem; border-top: 1px solid var(--hair); }
.points dt { font-weight: 650; letter-spacing: -0.01em; }
.points dd { color: var(--sc-ink-soft); text-wrap: pretty; }
.points dd a { color: var(--sc-accent); font-weight: 600; }
.fig { display: grid; gap: 10px; }
.fig figcaption { font-size: 0.88rem; font-weight: 550; color: var(--sc-ink-soft); }
.fig__frame { position: relative; overflow: hidden; border-radius: var(--r); background: #E5E6E0; aspect-ratio: var(--ar, 3 / 2); }
.fig__frame img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; max-width: none; object-fit: cover; }

/* split: text beside a main photo and two smaller ones */
.svc--split .svc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 5vw, 5.5rem); align-items: start; }
.svc--flip .svc__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.svc--flip .svc__text { order: 2; }
.svc__media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); }
.svc__media .fig:first-child { grid-column: 1 / -1; }
.svc__media .fig:not(:first-child) { --ar: 4 / 3; }
@media (min-width: 900px) { .svc--split .svc__text { position: sticky; top: calc(var(--bar-h) + 5.5rem); } }

/* wide: one large photograph, then the words in two columns */
.svc--wide .fig--hero .fig__frame { --ar: 21 / 9; }
.svc__cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(2.5rem, 5vw, 4rem); }
.svc__pair .fig { --ar: 4 / 3; }

@media (max-width: 899px) {
  .svc--split .svc__grid, .svc--flip .svc__grid, .svc__cols { grid-template-columns: minmax(0, 1fr); }
  .svc--flip .svc__text { order: 0; }
  .svc--wide .fig--hero .fig__frame { --ar: 4 / 3; }
}

/* a quiet panel for a small, specific ask (snow routes) */
.panel {
  grid-column: 1 / -1; border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 0.8rem; justify-items: start;
}
.panel p { color: var(--sc-ink-soft); max-width: 46ch; }

/* --------------------------------------------------- how we work: stages -- */
.stage { padding-block: var(--sc-section) 0; }
.stage:last-of-type { padding-bottom: var(--sc-section); }
.stage__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.5rem clamp(1.25rem, 3vw, 2.5rem); align-items: baseline; max-width: 62rem; }
.stage__num { font-size: clamp(1rem, 0.9rem + 0.4vw, 1.25rem); font-weight: 700; color: var(--sc-accent); font-variant-numeric: tabular-nums; }
.stage__head .lede { grid-column: 2; max-width: 52ch; margin-top: 0.6rem; }
.stage__body { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(2.5rem, 5vw, 4rem); align-items: start; }
.stage__body--flip { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.stage__body--flip > :first-child { order: 2; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.tile { background: var(--sc-surface); border-radius: 16px; padding: clamp(1.1rem, 2vw, 1.5rem); display: grid; gap: 0.5rem; align-content: start; box-shadow: inset 0 0 0 1px rgb(20 24 21 / 0.06); }
.tile h3 { font-size: 1.05rem; font-weight: 650; letter-spacing: -0.012em; }
.tile p { color: var(--sc-ink-soft); font-size: 0.97rem; }
@media (max-width: 899px) {
  .stage__head { grid-template-columns: minmax(0, 1fr); }
  .stage__head .lede { grid-column: 1; }
  .stage__body, .stage__body--flip { grid-template-columns: minmax(0, 1fr); }
  .stage__body--flip > :first-child { order: 0; }
  .tiles { grid-template-columns: minmax(0, 1fr); }
}

/* the second story, step by step: the photo holds while the steps pass */
.seq { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); margin-top: clamp(3rem, 6vw, 5rem); }
.seq__media { position: sticky; top: calc(var(--bar-h) + 5rem); align-self: start; }
.seq__frames { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #1A201B; box-shadow: var(--sc-e2); }
.seq__frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 520ms var(--sc-ease-out); }
.seq__frames img.is-on { opacity: 1; }
.seq__label { margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--sc-ink-soft); }
.seq__steps { list-style: none; margin: 0; padding: 12vh 0 18vh; display: grid; gap: 0; }
.seq__steps li { min-height: 44vh; display: grid; align-content: center; gap: 0.4rem; opacity: 0.3; transition: opacity 320ms var(--sc-ease-out); }
.seq__steps li.is-on { opacity: 1; }
.seq__steps b { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 680; letter-spacing: -0.03em; }
.seq__steps span { color: var(--sc-ink-soft); max-width: 34ch; font-size: 1.05rem; }
@media (max-width: 899px) {
  .seq { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .seq__media { top: calc(var(--bar-h) + 3.6rem); z-index: 2; padding-bottom: 10px; background: var(--sc-canvas); }
  .seq__frames { aspect-ratio: 16 / 11; }
  .seq__steps { padding: 4vh 0 10vh; }
  .seq__steps li { min-height: 36vh; }
}
@media (prefers-reduced-motion: reduce) {
  .seq__frames img { transition-duration: 1ms; }
  .seq__steps li { opacity: 1; }
}

/* ------------------------------------------------------------ journal -- */
.jlist { padding-bottom: var(--sc-section); }
.jfeat {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.75rem, 4vw, 4rem);
  align-items: center; text-decoration: none; color: inherit;
  padding-bottom: clamp(2.5rem, 5vw, 4rem); border-bottom: 1px solid var(--hair);
}
.jfeat .fig__frame { --ar: 3 / 2; }
.jfeat__text { display: grid; gap: 1rem; align-content: center; }
.jfeat__text h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.7rem); font-weight: 680; letter-spacing: -0.035em; line-height: 1.1; text-wrap: balance; }
.jmeta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 0.86rem; font-weight: 600; color: var(--sc-ink-soft); }
.jmeta span:first-child { color: var(--sc-accent); }
.jsum { color: var(--sc-ink-soft); max-width: 52ch; text-wrap: pretty; }
.jrows { list-style: none; padding: 0; display: grid; }
.jrow {
  display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center; padding-block: clamp(1.5rem, 3vw, 2.25rem); border-bottom: 1px solid var(--hair);
  text-decoration: none; color: inherit;
}
.jrow .fig__frame { --ar: 3 / 2; border-radius: 14px; }
.jrow__text { display: grid; gap: 0.6rem; }
.jrow h3 { font-size: clamp(1.15rem, 1rem + 0.5vw, 1.45rem); font-weight: 650; letter-spacing: -0.022em; line-height: 1.25; text-wrap: balance; }
.jread { font-weight: 650; color: var(--sc-accent); font-size: 0.95rem; }
@media (hover: hover) and (pointer: fine) {
  .jfeat:hover h2, .jrow:hover h3 { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
  .jfeat .fig__frame img, .jrow .fig__frame img { transition: transform 500ms var(--sc-ease-out); }
  .jfeat:hover .fig__frame img, .jrow:hover .fig__frame img { transform: scale(1.03); }
}
@media (max-width: 899px) {
  .jfeat { grid-template-columns: minmax(0, 1fr); }
  .jrow { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr); align-items: start; }
  .jrow .jsum { display: none; }
}

/* ------------------------------------------------------------- article -- */
.post__head { padding-top: calc(var(--bar-h) + clamp(2.5rem, 7vh, 5rem)); display: grid; gap: 1.2rem; max-width: 60rem; }
.post__crumb { font-size: 0.92rem; font-weight: 650; color: var(--sc-ink-soft); }
.post__crumb a { color: var(--sc-accent); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .post__crumb a:hover { text-decoration: underline; } }
.post__title { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 4.4rem); max-width: 20ch; }
.post__by { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.9rem; color: var(--sc-ink-soft); font-weight: 550; }
.post__figure { margin-top: clamp(2rem, 5vw, 3.5rem); }
.post__figure .fig__frame { --ar: 16 / 9; }
.post__figure figcaption a { color: inherit; text-underline-offset: 0.18em; }
.post__wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 42rem) minmax(0, 1fr); padding-block: clamp(3rem, 6vw, 5rem) var(--sc-section); }
.post__wrap > * { grid-column: 2; }

.prose { font-size: clamp(1.05rem, 1rem + 0.2vw, 1.15rem); line-height: 1.7; color: color-mix(in oklab, var(--sc-ink) 88%, var(--sc-canvas)); }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(1.45rem, 1.2rem + 0.9vw, 1.9rem); font-weight: 680; letter-spacing: -0.028em; line-height: 1.2; color: var(--sc-ink); margin-top: 2.2em; text-wrap: balance; }
.prose h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -0.015em; color: var(--sc-ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.6em; }
.prose ul, .prose ol { padding-left: 1.2em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--sc-accent); }
.prose a { color: var(--sc-accent); font-weight: 600; }
.prose b, .prose strong { color: var(--sc-ink); font-weight: 650; }
.callout {
  background: var(--sc-surface); border-radius: 16px; padding: 1.1rem 1.3rem;
  box-shadow: inset 0 0 0 1px rgb(20 24 21 / 0.07);
  font-weight: 550; color: var(--sc-ink);
}
.table-wrap { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--hair); background: var(--sc-surface); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 0.96rem; line-height: 1.45; min-width: 32rem; }
.table-wrap th, .table-wrap td { text-align: left; padding: 0.85rem 1rem; vertical-align: top; }
.table-wrap th { font-weight: 650; color: var(--sc-ink); border-bottom: 1px solid var(--hair); }
.table-wrap tr + tr td { border-top: 1px solid var(--hair); }
.table-wrap td:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.faq { border-top: 1px solid var(--hair); }
.faq + .faq { margin-top: 0; }
.faq:last-of-type { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1rem 2.2rem 1rem 0; position: relative;
  font-weight: 650; color: var(--sc-ink); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 9px; height: 9px;
  border-right: 1.7px solid; border-bottom: 1.7px solid; transform: translateY(-70%) rotate(45deg);
  transition: transform 200ms var(--sc-ease-out);
}
.faq[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq p { padding-bottom: 1.1rem; color: var(--sc-ink-soft); }
.post__ask {
  margin-top: clamp(3rem, 6vw, 4.5rem); border-radius: var(--r); padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid; gap: 1rem; justify-items: start;
}
.post__ask p { color: var(--sc-ink-soft); }
.related { padding-bottom: var(--sc-section); }
.related__title { font-size: 1.05rem; font-weight: 650; margin-bottom: 0.5rem; }

/* ------------------------------------------------------------ contact -- */
.contact { padding-bottom: var(--sc-section); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.contact__side { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .contact__side { position: sticky; top: calc(var(--bar-h) + 2rem); } }
@media (max-width: 899px) { .contact__grid { grid-template-columns: minmax(0, 1fr); } .contact__side { order: 2; } }

/* ------------------------------------------------------------ privacy -- */
.legal { padding-bottom: var(--sc-section); }
