/* LanceTek page CSS: only what sits inside a visual (the hero pieces, the app frame, the quote, the
   enquiry form's card, the journal rows) plus one --p-h per card group. Tokens come from system.css. */

/* ---------- drawn pieces (hero collages, the services hero quote, menu cards) ---------- */
.pc { background: #fff; color: #1d1a15; border-radius: 12px; box-shadow: 0 0 0 1px rgb(41 37 30 / .1), 0 24px 48px -28px rgb(41 37 30 / .45);
      font: 400 13px/1.4 var(--font-text); overflow: hidden; text-align: left; }
.pc b, .pc strong { font-weight: 500; }
.pc__bar { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 14px; border-bottom: 1px solid #ece6da; color: #6b6253; }
.pc__dots { display: flex; gap: 5px; } .pc__dots i { width: 9px; height: 9px; border-radius: 50%; background: #ddd5c6; }
.pc__bar b { color: #1d1a15; }
.pc__sp { flex: 1; }
.pc__pad { padding: 12px 14px; display: grid; gap: 8px; }
.pc__row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #f0ebe1; }
.pc__row:first-child { border-top: 0; }
.pc__row small, .pc small { color: #6b6253; font-size: 13px; }
.pc__name { display: grid; min-width: 0; } .pc__name > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc__chip { font-size: 13px; padding: 1px 8px; border-radius: 99px; background: #f1ece2; color: #4b4336; white-space: nowrap; }
.pc__chip--ok { background: #e3efe4; color: #24553a; }
.pc__chip--you { background: #f6e7c8; color: #6d4c0e; }
.pc__mono { font-family: var(--font-mono); font-size: 13px; }
.pc__btn { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; background: #29251e; color: #fff; font-weight: 500; }
.pc__btn--ghost { background: #fff; color: #29251e; box-shadow: inset 0 0 0 1px #d8d0c1; }
.pc__tick { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.pc__tick svg { width: 16px; height: 16px; margin-top: 1px; fill: none; stroke: #2f7a4f; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pc__tick--hold svg { stroke: var(--p-accent); }
.pc__big { font: 500 22px/1.15 var(--font-display); letter-spacing: -0.02em; }
.pc__icon { width: 28px; height: 28px; object-fit: contain; }
.pc--dark { background: #1f1c17; color: #efe9dd; box-shadow: 0 0 0 1px rgb(255 255 255 / .06), 0 24px 48px -26px rgb(0 0 0 / .6); }
.pc--dark .pc__bar { border-color: #36312a; color: #a8a092; }
.pc--dark .pc__dots i { background: #4a443a; }
.pc__term { padding: 12px 14px; display: grid; gap: 6px; font: 400 13px/1.45 var(--font-mono); }
.pc__term .ok { color: #8fd19e; } .pc__term .dim { color: #a8a092; } .pc__term .cmd::before { content: "$ "; color: #d6b46a; }
.pc-phone { background: #1f1c17; border-radius: 26px; padding: 7px; box-shadow: 0 24px 48px -26px rgb(0 0 0 / .55); }
.pc-phone > div { height: 100%; border-radius: 20px; background: #fff; padding: 16px 14px; display: grid; align-content: start; gap: 8px; font: 400 13px/1.4 var(--font-text); color: #1d1a15; overflow: hidden; }
.pc-phone svg.sig { width: 100%; height: 48px; fill: none; stroke: #29251e; stroke-width: 1.6; stroke-linecap: round; }
.pc-phone .pc__btn { justify-content: center; }

/* the hero collage (triptych) sits on the page ground; pieces are placed in % by inline style */
.hero--triptych .ly-collage { container-type: size; }
.ly-collage .ly-piece { position: absolute; }

/* ---------- the app frame (sections-library.md, app-frame: the recipe's page CSS) ---------- */
.app.ui { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); margin-top: var(--s-7); background: var(--u-bg); border: 1px solid var(--u-border); border-radius: var(--u-r); box-shadow: var(--u-shadow); }
.app > .app__pane { position: relative; min-width: 0; min-height: 0; overflow: hidden; }
.app > .app__pane + .app__pane { border-left: 1px solid var(--u-line); }
.app > .app__pane > .ui-panel { width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.app > .app__pane::after { content: ""; position: absolute; inset: auto 0 0 0; height: 64px; background: linear-gradient(transparent, var(--u-bg)); pointer-events: none; }
@media (min-width: 1024px) and (max-width: 1279px) { .app.ui { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); } }
@media (max-width: 1023px) {
  .app.ui { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .app > .app__pane--list { max-height: 252px; }
  .app > .app__pane--list::after { display: none; }
  .app .ui-win__side { display: none; }
  .app .ui-win__body { grid-template-columns: minmax(0, 1fr); }
  .app > .app__pane + .app__pane { border-left: 0; border-top: 1px solid var(--u-line); }
}
@media (max-width: 639px) {
  .app.ui { grid-template-rows: minmax(0, 1fr); }
  .app > .app__pane--list { display: none; }
  .app > .app__pane + .app__pane { border-top: 0; }
}

/* ---------- card groups ---------- */
#services .panel { --p-h: 336px; }
.menu-card .panel { --p-h: 200px; }

/* a panel that holds one drawn piece at its corner, cut by the right and bottom */
.panel > .pc-at { position: absolute; left: 28px; top: 28px; width: max(300px, calc(100% - 28px)); }
@media (max-width: 639px) { .panel > .pc-at { left: 16px; top: 16px; } }

/* ---------- lists of numbered steps (home process, services shapes) ---------- */
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); counter-reset: st; }
.steps-list > li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: var(--s-4); align-items: start; counter-increment: st; }
.steps-list > li::before { content: counter(st); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--line); font: 500 var(--t-label)/1 var(--font-text); }
.steps-list > li > span { padding-top: 4px; }

/* the marquee row merged under the process split */
.stack-row { margin-top: var(--s-8); }

/* ---------- journal rows ---------- */
.entries { list-style: none; margin: 0; padding: 0; }
.entries > li { border-bottom: 1px solid var(--line); }
.entry { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: var(--s-2) var(--s-5); align-items: start; padding-block: var(--s-5); color: inherit; text-decoration: none; }
.entries > li:first-child .entry { padding-top: 0; }
.entry__ic { width: 56px; height: 56px; border-radius: var(--r-md); background: #fff; border: 1px solid var(--line); display: grid; place-items: center; grid-row: span 2; }
.entry__ic img { width: 30px; height: 30px; object-fit: contain; }
.entry__title { font: 500 var(--t-card)/1.3 var(--font-text); }
.entry__date { color: var(--muted); font-size: var(--t-label); white-space: nowrap; grid-column: 3; grid-row: 1; padding-top: 4px; }
.entry p { grid-column: 2 / -1; margin: 0; color: var(--ink); max-width: 70ch; }
@media (max-width: 639px) {
  .entry { grid-template-columns: 44px minmax(0, 1fr); }
  .entry__ic { width: 44px; height: 44px; grid-row: auto; }
  .entry__date { grid-column: 2; grid-row: auto; padding-top: 0; }
  .entry p { grid-column: 1 / -1; }
}

/* ---------- the enquiry form's card (contact hero) ---------- */
.form-card { background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s-6); align-self: start; }
.form textarea { min-height: 120px; resize: vertical; }
@media (max-width: 639px) { .form-card { padding: var(--s-5); } }

/* ---------- article pages ---------- */
.article { max-width: 68ch; }
.article h2 { font-size: var(--t-h3); margin-top: var(--s-7); }
.article p, .article li { font-size: 18px; line-height: 1.7; }
.article .verdict { margin-top: var(--s-7); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--g-alt, var(--p-surface)); }
.article .verdict p { margin: 0; }

/* ---------- price rows in the services sections ---------- */
.shape { display: grid; gap: var(--s-2); }
.shape dt { font-size: var(--t-label); font-weight: 500; color: var(--muted); }
.shape dd { margin: 0 0 var(--s-3); }
.ly-collage .ly-piece.pc { background: #fff; }
.ly-collage .ly-piece.pc--dark { background: #1f1c17; }
.ly-collage .ly-piece.pc-phone { background: #1f1c17; }
.steps-list { margin-top: var(--s-2); }

/* services: the quote in the hero frame, the hub frame, the four facts, the chapter visuals */
.svc-quote { background: var(--p-surface); display: grid; align-items: start; padding: var(--s-7) 0 0 var(--s-7); }
.svc-quote > .pc { width: calc(100% + 1px); border-radius: 12px 0 0 0; }
.svc-quote .pc__pad { padding: 20px 24px; gap: 10px; }
@media (max-width: 639px) { .svc-quote { padding: var(--s-4) 0 0 var(--s-4); } }
.auto-frame { margin-top: var(--s-7); height: 380px; position: relative; overflow: hidden; }
.auto-frame > .dg { position: relative; z-index: 1; height: 100%; }
.auto-facts { margin-top: var(--s-6); }
.auto-facts p { margin: 0; }
.auto-facts .t-label { margin-bottom: var(--s-2); }
@media (max-width: 1023px) { .auto-frame { height: 300px; } .auto-facts > div { grid-column: span 6; } }
@media (max-width: 639px) { .auto-frame { height: 260px; } .auto-facts > div { grid-column: 1 / -1; } }
.pc-stage { background: var(--p-surface); display: grid; place-items: center; padding: var(--s-6); margin: 0; }
.pc-stage > .pc { width: min(420px, 100%); }

/* about: the homelab window in the centred hero */
.about-win__body { display: grid; grid-template-columns: 1fr 1fr; }
.about-win__body > .pc__pad + .pc__pad { border-left: 1px solid #ece6da; }
.about-win .pc__bar .pc__icon { width: 18px; height: 18px; }
@media (max-width: 900px) { .about-win__body { grid-template-columns: 1fr; } .about-win__body > .pc__pad + .pc__pad { display: none; } .about-win .pc__bar small { display: none; } }

/* journal: the entry page and its verdict in the collage hero */
.jr-page { padding: 20px 24px; display: grid; gap: 10px; font-size: 14px; line-height: 1.55; }
.jr-page p { margin: 0; }
.jr-title { font: 500 22px/1.2 var(--font-display); letter-spacing: -0.02em; }
.jr-meta { display: flex; align-items: center; gap: 10px; margin: 0; }
.jr-meta .pc__icon { width: 24px; height: 24px; }
.entries--wide .entry { padding-block: var(--s-4); }
.entries--wide .entry p { max-width: none; }
.hero--statement .jr-meta { margin-bottom: var(--s-4); }

/* contact: the sample reply in the hero frame */
.ct-mail p { margin: 0; }
.ct-mail { font-size: 14px; }

/* home at the tablet: the three service cards stack two-up or one-up, the process split stacks */
@media (min-width: 640px) and (max-width: 1279px) { #services { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #process { --h: 2; } }
@media (min-width: 640px) and (max-width: 1023px) { #process .frame--split { min-height: 800px; } }
/* services: on a phone the chapters stand as a list; only the first keeps its picture */
@media (max-width: 639px) { #shape .mo-pc__step + .mo-pc__step .mo-pc__visual { display: none; } }
/* journal: the statement set large enough to hold its screen */
#tested .mo-la__type { font-size: clamp(64px, 14vw, 176px); line-height: .98; max-width: 11ch; }
#tested .mo-la__sub { margin-top: var(--s-6); max-width: 46ch; }
.tested-tools { list-style: none; margin: var(--s-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s-5); }
.tested-tools li { display: grid; gap: var(--s-3); justify-items: start; font-weight: 500; }
.tested-tools img { width: 64px; height: 64px; object-fit: contain; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-sizing: border-box; }
@media (max-width: 639px) { .tested-tools { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hero__art > .jr-verdict { left: var(--s-6); bottom: 48px; width: min(300px, 60%); }
.svc-quote .pc { font-size: 15px; }
.svc-quote .pc__row { padding: 14px 0; }
.svc-quote .pc__big { font-size: 26px; }

/* gate fixes: one primary button size page-wide, the close's name whole, the legal row on one edge */
.hero--triptych .hero__cta .btn { height: var(--btn-h, 44px); font-size: var(--t-body); padding-inline: var(--s-5); }
.close__word { line-height: 1; padding-bottom: .04em; }
@media (max-width: 639px) { .pc-phone svg.sig { display: none; } }
.jr-card .panel { --p-h: 230px; }
.jr-card h3 { min-height: 2.6em; }
@media (max-width: 639px) { .footer__legal > span:first-child { display: flex; flex-wrap: wrap; align-items: center; gap: 0 var(--s-4); } }
@media (max-width: 639px) { #process .rows { display: none; } }
.jr-frame { display: block; background: var(--p-surface); padding: var(--s-7) 0 0 var(--s-7); color: inherit; text-decoration: none; min-height: 420px; }
.jr-frame > .pc { width: calc(100% + 1px); border-radius: 12px 0 0 0; font-size: 15px; }
.jr-frame .pc__pad { padding: 20px 24px; gap: 12px; }
@media (max-width: 639px) { .jr-frame { padding: var(--s-4) 0 0 var(--s-4); min-height: 0; } }
@media (max-width: 639px) { #services .panel { --p-h: 330px; } #process .frame--split { min-height: 460px; } }

/* journal: the verdict table */
.jr-table { background: var(--p-surface); padding: var(--s-7); overflow: hidden; }
.jr-table > .pc { font-size: 15px; border-radius: 12px; }
.jr-rows { display: grid; }
.jr-row { display: grid; grid-template-columns: 1fr 1.3fr 1.3fr; gap: var(--s-4); align-items: center; padding: 12px 20px; border-top: 1px solid #f0ebe1; }
.jr-row > span:first-child { display: flex; align-items: center; gap: 10px; }
.jr-row .pc__icon { width: 24px; height: 24px; }
.jr-row--head { color: #6b6253; font-size: 13px; border-top: 0; }
.jr-k { display: none; }
@media (max-width: 1023px) { .jr-row { grid-template-columns: 1fr 1.4fr; row-gap: 6px; } .jr-row > :nth-child(3) { grid-column: 2; } .jr-row--head { display: none; } .jr-k { display: inline; font-weight: 500; } }
@media (max-width: 639px) { .jr-table { padding: var(--s-4); } .jr-row { grid-template-columns: 1fr; gap: 6px; } .jr-row > :nth-child(3) { grid-column: 1; } }
@media (max-width: 639px) { .jr-page p:nth-of-type(n+3) { display: none; } }
/* contact: the next-steps timeline beside the form */
.ct-frame { margin-top: var(--s-5); height: auto; background: var(--p-surface); padding: var(--s-6); display: grid; align-content: start; }
.ct-frame::before { content: none; }
.ct-frame.frame--split { aspect-ratio: auto; height: auto; }
.ct-frame > .pc { font-size: 15px; }
.ct-frame .pc__pad { gap: 12px; padding: 18px 20px; }
/* text contrast: leads and the statement's line in the ink */
.hero--centred .hero__lead, #tested .mo-la__sub { color: var(--ink); }
#next .mo-wh__text { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.2; letter-spacing: -0.02em; max-width: 24ch; }
@media (max-width: 639px) { .ct-mail p:last-of-type { display: none; } }
/* the hero collage on a phone: fewer columns, whole words */
@media (max-width: 639px) {
  .ly-collage .pc__row { grid-template-columns: minmax(0, 1fr) auto; }
  .ly-collage .pc__row > .pc__mono, .ly-collage .pc__bar > span:not(.pc__dots) { display: none; }
  .ly-collage__set:first-child > .ly-piece:first-child { left: 0 !important; width: 60% !important; }
  .ly-collage__set:first-child > .pc-phone { left: 63% !important; top: 30% !important; width: 37% !important; }
  .ly-collage__set:first-child > .ly-piece:nth-child(2) { display: none; }
  .pc-phone .pc__btn { white-space: nowrap; font-size: 13px; padding: 0 8px; }
}

/* ---------- step 2 polish (impeccable critique + audit) ---------- */
/* sections that size to their content: article bodies, legal pages, the contact statement */
main > .section.section--auto { height: auto; min-height: 0; }
main > .section.section--auto > .wrap { height: auto; }

/* home hero: the button under the lead it belongs to; the collage takes the freed columns */
.hero--triptych .hero__cta { justify-content: flex-start; margin-top: var(--s-6); }
.hero--triptych .hero__cta .btn { gap: var(--s-2); }
@media (max-width: 639px) { .hero--triptych .hero__cta .btn { width: 100%; justify-content: center; } }

/* home services cards: diagram captions on the tan ground in the ink */
#services .dg-cap { color: var(--ink); }
#services .dg-cap__s { color: #4f473b; }

/* drawn app windows: soft labels at 4.5:1 on white */
.ui { --u-soft: var(--u-muted); }

/* services hero: the whole quote, total included, on a phone */
@media (max-width: 639px) {
  main > .hero.hero--split:has(.svc-quote) { height: auto; min-height: 0; }
  .hero--split .svc-quote { height: auto; flex: none; }
  .svc-quote > .pc { border-radius: 12px 0 0 12px; }
}

/* journal: the tool row links to its entries */
.tested-tools a { display: grid; gap: var(--s-3); justify-items: start; color: inherit; text-decoration: none; }
.tested-tools a:hover span { text-decoration: underline; text-underline-offset: .2em; }
.tested-tools a:hover img { border-color: var(--line-strong); }

/* articles: a hero that ends with its content, the short version beside it, steady heading rhythm, older/newer links */
main > .hero.hero--article { height: auto; min-height: 0; padding-bottom: 0; }
.hero--article .hero-text.grid { align-items: center; row-gap: var(--s-7); }
.art-card .pc { font-size: 15px; }
.art-card .pc__pad { padding: 16px 18px; gap: 12px; }
.art-card .pc__icon { width: 20px; height: 20px; }
.article > h2:first-child { margin-top: 0; }
.article h2 { margin-bottom: var(--s-3); }
.art-pager { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-top: var(--s-8); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.art-pager__link { display: grid; gap: var(--s-1); align-content: start; color: inherit; text-decoration: none; font-weight: 500; }
.art-pager__link:hover > span:last-child { text-decoration: underline; text-underline-offset: .2em; }
.art-pager__link--next { grid-column: 2; text-align: right; }
@media (max-width: 639px) { .art-pager { grid-template-columns: 1fr; } .art-pager__link--next { grid-column: auto; text-align: left; } }

/* contact: required and optional fields named on the field; the form before the timeline on a phone */
.field__req, .field__opt { font-weight: 400; color: var(--muted); }
#next h2 { font-size: var(--t-h3); color: var(--muted); margin-bottom: var(--s-5); }
@media (max-width: 639px) {
  #enquiry .grid { row-gap: var(--s-5); }
  #enquiry .grid > .stack-5 { display: contents; }
  #enquiry .grid > .stack-5 > * { grid-column: 1 / -1; margin: 0; }
  #enquiry .ct-frame { order: 2; }
}
@media (max-width: 639px) { .svc-quote .pc__name > * { white-space: normal; } }
/* the legal links: a 24px target on desktop too */
.footer__legal a { display: inline-block; padding-block: 4px; }
/* the about doc mockup: readable leading */
.ui-doc__msg { line-height: 1.4; }
@media (min-width: 640px) and (max-width: 1023px) {
  .hero--triptych .hero__cta .btn { width: auto; }
  .ly-collage__set:first-child > .ly-piece:nth-child(2) { display: none; }
}
.pc-phone .pc__btn { white-space: nowrap; padding-inline: 8px; }

/* ---------- step 3: interface details (emil-design-eng + animate review) ----------
   One stronger ease-out for every UI transition (system.css --ease feeds motion.css --m-ease and
   ui/base.css --u-ease), a press that reads as a press, and hover states on every link that had none.
   Hover moves sit under (hover: hover) and (pointer: fine); hover in 150ms, out 120ms (motion.css tokens). */
:root { --ease: cubic-bezier(.23, 1, .32, 1); --ease-io: cubic-bezier(.77, 0, .175, 1); }

/* a press: scale .97 from the centre in 90ms, released in 120ms; no 1px drop (it read as a layout shift) */
html:not([data-motion="off"]) .btn:active,
html:not([data-motion="off"]) .btn--xl:active { transform: scale(.97); transition-duration: var(--m-press); }
.nav__toggle { transition: background-color var(--m-out) var(--ease), border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.nav__toggle:active { transform: scale(.94); transition-duration: var(--m-press); }
.nav__toggle[aria-expanded="true"] { background: color-mix(in oklab, var(--ink) 8%, var(--bg)); }

/* journal rows (home and journal): the icon tile and the title answer the pointer and the keyboard */
.entry { position: relative; border-radius: var(--r-md); }
.entry__ic { transition: border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.entry__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em;
  text-decoration-color: transparent; transition: text-decoration-color var(--m-out) var(--ease); }
.entry:focus-visible { outline-offset: 6px; }
.entry:focus-visible .entry__title { text-decoration-color: currentColor; }
.entry:focus-visible .entry__ic { border-color: var(--line-strong); }
.entry:active .entry__ic { transform: scale(.96); transition-duration: var(--m-press); }
@media (hover: hover) and (pointer: fine) {
  .entry:hover .entry__title { text-decoration-color: currentColor; transition-duration: var(--m-in); }
  .entry:hover .entry__ic { border-color: var(--line-strong); transform: translateY(-2px); transition-duration: var(--m-in); }
}

/* the journal tool row and the older/newer links: the same underline fade, never a hard toggle */
.tested-tools span, .art-pager__link > span:last-child {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em;
  text-decoration-color: transparent; transition: text-decoration-color var(--m-out) var(--ease); }
.tested-tools img { transition: border-color var(--m-out) var(--ease), transform var(--m-out) var(--ease); }
.tested-tools a:hover span, .art-pager__link:hover > span:last-child { text-decoration: underline; text-decoration-color: transparent; }
.tested-tools a:focus-visible, .art-pager__link:focus-visible { outline-offset: 6px; }
.tested-tools a:focus-visible span, .art-pager__link:focus-visible > span:last-child { text-decoration-color: currentColor; }
.tested-tools a:focus-visible img { border-color: var(--line-strong); }
.tested-tools a:active img { transform: scale(.96); transition-duration: var(--m-press); }
@media (hover: hover) and (pointer: fine) {
  .tested-tools a:hover span, .art-pager__link:hover > span:last-child { text-decoration-color: currentColor; transition-duration: var(--m-in); }
  .tested-tools a:hover img { border-color: var(--line-strong); transform: translateY(-2px); transition-duration: var(--m-in); }
}

/* the home journal frame is one link: its drawn page rises 4px into the frame (the frame clips its foot) */
.jr-frame > .pc { transition: transform var(--m-out) var(--ease), box-shadow var(--m-out) var(--ease); }
.jr-frame:focus-visible { outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .jr-frame:hover > .pc { transform: translateY(-4px); transition-duration: 180ms;
    box-shadow: 0 0 0 1px rgb(41 37 30 / .14), 0 28px 52px -26px rgb(41 37 30 / .5); }
}

/* footer and menu links: colour fades rather than snapping */
.footer__nav a, .footer__legal a { transition: color var(--m-out) var(--ease); }
.footer__nav a:hover, .footer__legal a:hover { transition-duration: var(--m-in); }

/* reduced motion: nothing moves or scales, but colour and underline fades stay (they explain, they do not move).
   system.css cuts every transition to .001ms; these restore a short fade on colour properties only. */
@media (prefers-reduced-motion: reduce) {
  .btn, .nav__toggle, .entry__ic, .tested-tools img, .jr-frame > .pc {
    transition-property: background-color, border-color, color, box-shadow !important; transition-duration: 150ms !important; }
  .entry__title, .tested-tools span, .art-pager__link > span:last-child, .footer__nav a, .footer__legal a {
    transition-duration: 150ms !important; }
  .btn:active, .nav__toggle:active, .entry:active .entry__ic, .tested-tools a:active img,
  .entry:hover .entry__ic, .tested-tools a:hover img, .jr-frame:hover > .pc { transform: none !important; }
}

/* the menu button: its two lines turn into a cross while the sheet is open, 200ms on the in-out curve
   (the lines move on screen); under reduced motion the cross appears at once */
.nav__toggle svg { overflow: visible; }
.nav__toggle :is(.tg-a, .tg-b) { transform-box: fill-box; transform-origin: center; transition: transform 200ms var(--ease-io); }
.nav__toggle[aria-expanded="true"] .tg-a { transform: translateY(4px) rotate(45deg) scaleX(.86); }
.nav__toggle[aria-expanded="true"] .tg-b { transform: translateY(-4px) rotate(-45deg) scaleX(.86); }
@media (prefers-reduced-motion: reduce) { .nav__toggle :is(.tg-a, .tg-b) { transition: none !important; } }
