/* Logistics Made Simple: styles for the inner pages only (/services, /about, /contact).
   Colour: tokens only (var(--signal), var(--accent-text), var(--accent-mark)…), so the accent switch
   (data-accent on <html>) carries through. No accent colour is written out in this file.
   Loaded after site.css. Everything shared (surfaces, type, cards, cells, forms) comes from site.css;
   this file only lays out what is particular to these four pages.

   Contents
    1  Illustrations (inline SVG from docs/partials/illustrations)
    2  Services: hero index, who it is for, the order, practices, industries, method strip, ways, cost
    3  About: who we are, founder, who we work with, values, principles
    4  What's new: releases
    5  Contact: the orange section, contact rows, form panel, what happens next
    6  Motion: lines that draw as a block arrives, one scroll-led numeral, phone tidy-ups
    7  Motion: the practice drawings and the method strip draw themselves in */


/* ===== 1. Illustrations ===== */
svg.ill { display: block; width: 100%; height: auto; overflow: visible; }
/* The method strip holds two drawings in one svg. The wide strip shows from 1024 (five columns under it).
   Under 640 the short list shows instead: the svg is held at 120px high and, with its own
   preserveAspectRatio="xMinYMid slice", is drawn at 1 : 1 from the left edge. Between the two the strip is put away. */
svg.ill.ill-method { overflow: hidden; }
.ill-method .method-tall { display: none; }
@media (max-width: 1023px) {
  svg.ill.ill-method { width: 100%; height: 120px; }
  .ill-method .method-wide { display: none; }
  .ill-method .method-tall { display: inline; }
}
/* Phones: the in-SVG mono labels would shrink to specks and the fine print (corner marks, dimension lines,
   scale bar) to noise, so the picture carries alone. The list form of the method strip keeps its words. */
@media (max-width: 479px) {
  svg.ill .ill-label { display: none; }
  .ill-practice .pr-fine { display: none; }
}


/* ===== 2. Services ===== */
/* Old anchors (#review, #integrate, #ai-operations) sit at the top of their practice section. */
.anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }

.page-hero--services .lede { max-width: 700px; }
.pindex { margin-top: clamp(48px, 7vw, 96px); }
.pindex .cells { background: var(--ink-line); border-color: var(--ink-line); }
.pindex .cell-link__title { font-size: clamp(19px, 1rem + .4vw, 22px); }

/* Who it is for: his six industries in one quiet line under the index (the full grid is at #industries). */
.hero-for { display: grid; gap: 4px; margin-top: 24px; }
.hero-for__label { margin: 0; font: 600 11px/1.5 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-text); }
.hero-for__label a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: inherit; text-decoration: none; }
.hero-for__label a::after { content: ""; flex: none; width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .18s var(--ease); }
.hero-for__label a:hover { color: var(--fg); }
.hero-for__label a:hover::after { transform: translateY(1px) rotate(45deg); }
.hero-for__list { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin: 0; padding: 0; font: 400 12px/1.5 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-2); }
.hero-for__list li { display: inline-flex; align-items: center; gap: 10px; }
.hero-for__list li::before { content: ""; flex: none; width: 5px; height: 5px; background: var(--signal-mark); }
@media (max-width: 559px) { .hero-for__list { flex-direction: column; align-items: flex-start; } }
.nowrap { white-space: nowrap; }

/* The order: one serif line and the three steps it names */
.order { display: grid; gap: 32px 64px; }
.order__lead { max-width: 30ch; }
.order__steps { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); counter-reset: none; }
.order__steps li { display: flex; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.order__steps .title-s { margin: 0; font-size: clamp(17px, 1rem + .3vw, 20px); }
@media (min-width: 1024px) {
  .order { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
}

/* A practice: words on one side, its drawing on the other (sides swap on --flip from 1024). */
.practice__grid { display: grid; gap: 48px; align-items: center; }
.practice__text .display-m { margin-bottom: 28px; }
.practice__text .display-m .display-serif { font-size: .78em; margin-top: .22em; }
.practice__text .lede { max-width: 620px; }
.change { margin: 32px 0; padding: 22px 0; border-top: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); }
.change .mono-label { margin-bottom: 10px; }
.practice__text > .mono-label { margin-bottom: 16px; }
.practice__art { color: var(--fg); background: var(--raised); border: 1px solid var(--card-line); padding: clamp(16px, 3vw, 32px); }
.sec--ink .practice__art { background: var(--ink-2); }
.sec--paper2 .practice__art { background: var(--paper); }
@media (min-width: 1024px) {
  .practice__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; }
  .practice--flip .practice__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .practice--flip .practice__art { order: -1; }
}

/* Who we work with: six cells, the industry in mono and its pain in his serif. A line draws across the top on hover. */
.inds > li { position: relative; display: flex; flex-direction: column; gap: 14px; transition: background-color .2s; }
.inds > li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--signal-mark); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.inds > li:hover { background: var(--raised); }
.inds > li:hover::before { transform: none; }
.inds__name { margin: 0; font: 600 12px/1.4 var(--font-mono); font-stretch: 100%; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-2); }
.inds__pain { margin: 0; font: italic 400 clamp(25px, 1rem + 1.2vw, 34px)/1.12 var(--font-serif); letter-spacing: -0.012em; color: var(--accent-text); text-wrap: balance; }
.inds .mono-num { margin-bottom: clamp(10px, 2vw, 28px); color: var(--fg-3); font-size: 12px; }

/* Method strip: the drawn line above five columns whose centres match its nodes (10%, 30%, 50%, 70%, 90%).
   On a phone the same drawing is a short list above the steps; from 640 to 1023 the steps stand alone. */
.msteps__art { color: var(--fg); margin: 0 0 28px; }
@media (min-width: 640px) and (max-width: 1023px) { .msteps__art { display: none; } }
.msteps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--rule); }
.msteps__list li { display: flex; flex-direction: column; padding: 28px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.msteps__list .mono-num { margin-bottom: 14px; }
.msteps__list .title-s { text-transform: uppercase; letter-spacing: .01em; font-stretch: 125%; }
.msteps__list p { color: var(--fg-2); font-size: 16px; line-height: 1.55; }
.msteps__list p:not(.meta) { flex: 1 0 auto; }
.msteps__list .meta { margin: 0; }
@media (min-width: 640px) and (max-width: 1023px) {
  .msteps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1024px) {
  .msteps__art { margin-bottom: 8px; }
  /* The step names stand in full just below, so the strip keeps only its numbers, moved down into the names' line. */
  .msteps .ill-method .method-wide .method-name { display: none; }
  .msteps .ill-method .method-wide .method-num { transform: translateY(18px); }
  .msteps__list { grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 0; }
  .msteps__list li { padding: 24px 20px 4px; border-bottom: 0; border-left: 1px solid var(--rule); }
  .msteps__list li:first-child { border-left: 0; padding-left: 0; }
  .msteps__list .mono-num { display: none; } /* the drawing above carries the numbers */
}

/* Ways to work with us */
.ways { list-style: none; padding: 0; }
.ways .title-l { font-size: clamp(20px, 1rem + .5vw, 24px); }
.ways .card--ink { border-color: var(--ink); }
.ways .card { transition: border-color .15s; }
.ways .card:not(.card--ink):hover { border-color: var(--fg); }
.ways .card::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 3px; background: var(--signal-mark); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.ways .card:hover::before { transform: none; }

/* What does it cost? */
.cost { display: grid; gap: 16px 64px; margin-top: clamp(56px, 7vw, 96px); padding-top: 32px; border-top: 2px solid var(--fg); }
.cost__q { margin: 0; }
.cost__a .lede { max-width: 640px; margin: 0; }
@media (min-width: 1024px) { .cost { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }


/* ===== 3. About ===== */
.who { display: grid; gap: 48px 80px; }
.who__h { color: var(--fg); max-width: 13ch; text-transform: none; font-stretch: 100%; }
.who__h em { font-style: italic; }
.who .lede-l { color: var(--fg-2); max-width: 640px; margin: 0; }
.points { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule-strong); align-self: end; }
.points li { padding: 22px 0; border-bottom: 1px solid var(--rule-strong); }
.points .title-s { margin: 0 0 6px; color: var(--fg); }
.points p { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.5; }
@media (min-width: 1024px) { .who { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); align-items: end; } }

.founder { display: grid; gap: 40px 80px; align-items: end; }
.founder__num { margin: 0; font: 900 clamp(128px, 8rem + 8vw, 260px)/.78 var(--font-display); font-stretch: 125%; letter-spacing: -0.05em; color: var(--fg); font-variant-numeric: tabular-nums; }
.founder__num::after { content: ""; display: block; width: 56px; height: 4px; margin-top: 28px; background: var(--signal-mark); }
.founder__cap { max-width: 26ch; margin: 20px 0 0; font-size: 12px; line-height: 1.6; }
.founder__h { margin-bottom: 24px; max-width: 18ch; }
.founder__text .lede { max-width: 640px; }
.founder__sign { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid var(--rule); font-size: 16px; color: var(--fg-3); }
.founder__sign b { color: var(--fg); }
@media (min-width: 1024px) { .founder { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }

/* Who we work with: his six industries as a short list under the founder's words. */
.works-with { margin-top: 40px; }
.works-with__label { margin-bottom: 14px; }
.works-with__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); margin: 0 0 12px; padding: 0; border-top: 1px solid var(--rule-strong); }
.works-with__list li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--rule); font: 600 16px/1.3 var(--font-display); color: var(--fg); }
.works-with__list li::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--signal-mark); }
@media (min-width: 560px) { .works-with__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }

.values { align-items: start; }
.values__h { font-style: italic; margin: 0; max-width: 11ch; }
@media (min-width: 1024px) { .values__h { position: sticky; top: calc(var(--header-h) + 32px); } }

.principles > li { display: flex; flex-direction: column; gap: 14px; }
.principles .title-m { margin: 6px 0 0; }
.principles p { margin: 0; color: var(--fg-2); font-size: 16px; line-height: 1.6; }
.principles__accent { box-shadow: inset 0 3px 0 var(--signal-mark); }
.principles > li { transition: background-color .2s; }
.principles > li:hover { background: var(--raised); }


/* ===== 4. What's new ===== */
.rel { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--fg); }
.rel .release { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--rule-strong); }
.rel time { font: 500 12px/1.4 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--fg-3); padding-top: 4px; }
.rel .release-title { margin: 0; font: 600 clamp(18px, 1rem + .35vw, 21px)/1.35 var(--font-display); color: var(--fg); text-wrap: pretty; }
.rel .ver { display: inline-block; margin-right: 6px; font: 600 14px/1 var(--font-mono); color: var(--accent-text); font-variant-numeric: tabular-nums; }
.rel .release:first-child .release-title { font-size: clamp(20px, 1rem + .7vw, 26px); }
@media (min-width: 640px) { .rel .release { grid-template-columns: 120px minmax(0, 1fr); gap: 24px; } }
/* A square on the top rule marks each release: the newest filled, the rest in outline. */
.rel .release { position: relative; }
.rel .release::before { content: ""; position: absolute; left: 0; top: -4px; width: 7px; height: 7px; background: var(--bg); border: 1.5px solid var(--fg); }
.rel .release:first-child::before { top: -5px; background: var(--signal-mark); border-color: var(--signal-mark); }
.rel-aside { align-self: start; }
.rel-aside .title-l { margin-bottom: 14px; }
@media (min-width: 1024px) { .rel-aside { position: sticky; top: calc(var(--header-h) + 32px); } }


/* ===== 5. Contact ===== */
.contact-hero__h { max-width: 15ch; margin-bottom: clamp(32px, 5vw, 56px); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; } }
.contact-side .lede { color: var(--fg); margin-bottom: 32px; }
.crows { margin: 0; border-top: 2px solid var(--ink); }
.crows__row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 18px 0; border-bottom: 1px solid var(--rule); }
.crows dt { font: 600 11px/1.4 var(--font-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }
.crows dd { margin: 0; font: 700 18px/1.35 var(--font-display); color: var(--fg); overflow-wrap: anywhere; }
.crows dd a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 4px; display: inline-block; padding: 10px 0; margin: -10px 0; }
.crows dd a:hover { color: var(--fg); text-decoration-thickness: 2px; }
.contact-side__note { margin: 24px 0 0; color: var(--fg-2); }
.contact-form { border: 0; }
.contact-form .title-l { margin-bottom: 10px; }
.contact-form > .small { margin-bottom: 28px; }

.next { list-style: none; margin: 0; padding: 0; }
.next li { display: flex; flex-direction: column; gap: 18px; }
.next .title-m { margin: 0; max-width: 30ch; font-size: clamp(18px, 1rem + .35vw, 21px); line-height: 1.35; }


/* ===== 6. Motion =====
   Blocks arrive through the shared reveal in site.css / site.js ([data-reveal], class "is-in" once shown).
   Here: the hair lines of a block draw in as it arrives, and one numeral drifts with the scroll.
   All of it sits behind html.reveal-on (set by site.js only when it can also show things again) and
   prefers-reduced-motion: no-preference. Transform only: no box changes size, the still state is the finished one. */
@media (prefers-reduced-motion: no-preference) {
  /* The rule in a section head draws from the label to the tag. */
  html.reveal-on .sec-head[data-reveal] .sec-head__rule { transform-origin: 0 50%; transition: transform .9s var(--ease-out) .12s; }
  html.reveal-on .sec-head[data-reveal]:not(.is-in) .sec-head__rule { transform: scaleX(0); }
  /* The accent bar under the big 20. */
  html.reveal-on .founder__fig[data-reveal] .founder__num::after { transform-origin: 0 50%; transition: transform .7s var(--ease-out) .25s; }
  html.reveal-on .founder__fig[data-reveal]:not(.is-in) .founder__num::after { transform: scaleX(0); }
  /* The heavy rule over "What does it cost?" and over the order steps. */
  html.reveal-on .cost[data-reveal], html.reveal-on .order[data-reveal] .order__steps { position: relative; border-top-color: transparent; }
  html.reveal-on .cost[data-reveal]::before, html.reveal-on .order[data-reveal] .order__steps::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; height: 2px; background: var(--fg); transform-origin: 0 50%; transition: transform .9s var(--ease-out) .1s; }
  html.reveal-on .cost[data-reveal]:not(.is-in)::before, html.reveal-on .order[data-reveal]:not(.is-in) .order__steps::before { transform: scaleX(0); }
}

/* The big 20 drifts a little slower than the page (browsers with scroll-driven animation; still elsewhere).
   Its box keeps its place; only the glyphs move, by a few pixels. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .founder__num { animation: num-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes num-drift { from { transform: translate3d(0, 18px, 0); } to { transform: translate3d(0, -18px, 0); } }
  }
}


/* ===== 7. The drawings draw themselves in =====
   The four practice drawings and the method strip (masters and guide: docs/partials/illustrations/practice.notes.md).
   Trigger: each svg carries data-reveal, so the shared reveal engine gives it class "is-in" when it comes into view.
   The svg itself is never hidden by that (first rule below): its grid stays, so a panel is never blank; only the
   ink and the accent wait, and only while html.reveal-on says the engine is running. With no script, on paper,
   or with reduced motion none of this applies and each drawing is simply there, finished.
   Only opacity, transform and stroke-dashoffset move. Every animation fills backwards only, so the end state
   is the still drawing. Do not style .ill-grid strokes here: the grid is two wide dashed strokes. */
html.reveal-on svg.ill[data-reveal]:not(.is-in) { opacity: 1; transform: none; }
@media screen and (prefers-reduced-motion: no-preference) {
  html.reveal-on .ill-practice:not(.is-in) :is(.pr-draw, .pr-fade, .pr-line, .pr-end),
  html.reveal-on .ill-method:not(.is-in) :is(.pr-draw, .pr-fade, .pr-line, .pr-end) { opacity: 0; }

  .js .ill-practice.is-in .pr-fade,
  .js .ill-method.is-in .pr-fade { animation: pr-fade .45s ease-out backwards; }
  .js .ill-practice.is-in .pr-draw,
  .js .ill-method.is-in .pr-draw { animation: pr-draw .75s cubic-bezier(.45, .05, .3, 1) backwards; }

  /* The order: fine print, then the ink in reading order. */
  .js .ill-practice.is-in .pr-s1, .js .ill-method.is-in .pr-s1 { animation-delay: 0s; }
  .js .ill-practice.is-in .pr-s2, .js .ill-method.is-in .pr-s2 { animation-delay: .1s; }
  .js .ill-practice.is-in .pr-s3, .js .ill-method.is-in .pr-s3 { animation-delay: .24s; }
  .js .ill-practice.is-in .pr-s4, .js .ill-method.is-in .pr-s4 { animation-delay: .38s; }
  .js .ill-practice.is-in .pr-s5, .js .ill-method.is-in .pr-s5 { animation-delay: .52s; }
  .js .ill-practice.is-in .pr-s6, .js .ill-method.is-in .pr-s6 { animation-delay: .66s; }

  /* The accent goes last: the line draws, then its end marks land. */
  .js .ill-practice.is-in .pr-line,
  .js .ill-method.is-in .pr-line { animation: pr-draw .7s cubic-bezier(.3, .6, .3, 1) .95s backwards; }
  .js .ill-practice.is-in .pr-end,
  .js .ill-method.is-in .pr-end { transform-box: fill-box; transform-origin: center; animation: pr-land .4s cubic-bezier(.2, .7, .2, 1) 1.5s backwards; }
}
@keyframes pr-fade { from { opacity: 0; } }
@keyframes pr-draw {
  0% { stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
  5% { opacity: 1; }
  100% { stroke-dasharray: 1; stroke-dashoffset: 0; }
}
@keyframes pr-land { from { opacity: 0; transform: scale(.9); } }

/* ===== Privacy page (/privacy): long plain text, one readable column ===== */
.legal { max-width: 68ch; }
.legal h2 { font: 700 clamp(21px, 1rem + .6vw, 26px)/1.2 var(--font-display); font-stretch: 112%; letter-spacing: -0.005em; margin: clamp(36px, 5vw, 52px) 0 14px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.legal p { margin: 0 0 16px; }
.legal ul { list-style: disc; display: grid; gap: 10px; margin: 0 0 18px; padding-left: 1.3em; }
.legal li::marker { color: var(--accent-text); }
.legal strong { color: var(--fg); }
.legal p.legal__updated { margin-top: clamp(36px, 5vw, 52px); padding-top: 20px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--fg-3); }
