/* ==========================================================================
   Print – the site as a Swiss magazine on A4.
   One strict grid (12 columns, labels in the first quarter, copy from the
   second), flush left, hairlines instead of air, orange as the one spot
   colour. Every scroll effect stands still and complete; nothing that only
   works on screen (canvas, menu, pointer, questionnaire) is printed.
   Running heads and folios use @page margin boxes (Chrome, Edge, Firefox);
   Safari ignores them and prints the pages without.
   ========================================================================== */

@page {
  size: A4;
  margin: 20mm 16mm 22mm 16mm;
  @top-left { content: "we and the machine*"; font: 400 7pt/1 'Rund Text', 'Hanken Grotesk', 'Helvetica Neue', sans-serif; color: #111; vertical-align: bottom; padding-bottom: 5mm; }
  @top-right { content: "Complex Systems. Made Simple."; font: 400 7pt/1 'Rund Text', 'Hanken Grotesk', 'Helvetica Neue', sans-serif; color: #5c5c5c; vertical-align: bottom; padding-bottom: 5mm; }
  @bottom-left { content: "weandthemachine.com"; font: 400 7pt/1 'Rund Text', 'Hanken Grotesk', 'Helvetica Neue', sans-serif; color: #5c5c5c; vertical-align: top; padding-top: 6mm; }
  @bottom-right { content: counter(page, decimal-leading-zero); font: 500 9pt/1 'Rund Text', 'Hanken Grotesk', 'Helvetica Neue', sans-serif; color: #eb4926; vertical-align: top; padding-top: 5.4mm; }
}
/* The cover carries its own masthead */
@page :first {
  @top-left { content: none; }
  @top-right { content: none; }
  @bottom-left { content: none; }
  @bottom-right { content: none; }
}

:root {
  --pad: 0px;
  --gutter: 5mm;
  --indent: 25%;
  --measure: 66%;
  --measure-wide: 100%;
  --ghost: #111;
}
html, body { background: #fff !important; overflow: visible !important; }
body { color: #111; font-size: 9.5pt; line-height: 1.42; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.wrap { max-width: none; padding: 0; margin: 0; }

/* --- Off the page ------------------------------------------------------- */
.progress, .cursor, .menu, .menu-btn, .site-nav, canvas, .tangle, .duo__bg, .ast-big, .ast-bg,
.cases__more, .cases__toggle, .case__arrow .arw--fill, .cta-inline, .person__links,
.contact-expand, .brief, noscript, .footer nav, .sr-only { display: none !important; }

/* --- Everything stands still and complete ------------------------------ */
*, *::before, *::after { animation: none !important; transition: none !important; }
[data-reveal] .w, [data-reveal] .w__i, [data-fade], [data-stagger] > *, [data-assemble] .c,
[data-break-next], .flash-lead, .flash-copy, .flash-claim .w, .years__num, .ast-inline, .ast-mini,
.duo__img, .wave .c, .logo-ast, .logo svg, [data-decode] {
  opacity: 1 !important; transform: none !important; visibility: visible !important; translate: none !important;
}
[data-reveal] .w { overflow: visible !important; padding: 0 !important; margin: 0 !important; }
.js [data-ink] .w, .js .flash-lead .w, .js [data-reveal] .w__i { color: #111 !important; }
.hl, .w--hl, .js [data-ink] .w--hl, .js [data-reveal] .w--hl .w__i, .js .flash-lead .w--hl { color: #eb4926 !important; }
a.hl, .js [data-ink] a.hl .w--hl { color: #111 !important; }
.scr { color: inherit; }
.scr--gone { visibility: visible; }
.ast-anchor { visibility: visible !important; }
.page-hero--tangle .ast-inline { display: inline-block !important; }
a { text-decoration: none; }

/* --- Type, in points ---------------------------------------------------- */
h1, h2, h3, .display, .display-l, .statement, .person__name, .cases-head { break-after: avoid; break-inside: avoid; }
p, li, dd { orphans: 3; widows: 3; }
.display { font-size: 50pt; line-height: .94; letter-spacing: -.045em; }
.display-l { font-size: 34pt; line-height: .96; letter-spacing: -.04em; }
.statement { font-size: 16pt; line-height: 1.2; letter-spacing: -.02em; max-width: 92%; }
.small, .copy, .footnote { margin-left: var(--indent) !important; margin-right: 0 !important; max-width: 66% !important; font-size: 9.5pt !important; line-height: 1.45 !important; color: #111 !important; letter-spacing: 0; }
.footnote { font-size: 11pt !important; color: #5c5c5c !important; }
.footnote__mark { color: #eb4926; }
.label, .rail__label { font-size: 6.5pt !important; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #111 !important; }
.stack-gap, .steps.stack-gap, .qa.stack-gap, .people.stack-gap { margin-top: 7mm !important; }
.small.stack-gap, .footnote { margin-top: 5mm !important; }

/* --- Rhythm: one section, one block; no screen-high air ----------------- */
.section, .section--airy, .cases-section { padding: 0 !important; margin: 0 0 12mm; }
.section--tight-top { margin-top: 0; }

/* --- Cover / masthead ---------------------------------------------------- */
.site-header { position: static !important; transform: none !important; color: #111 !important; }
.site-header::before { display: none; }
.site-header__inner { max-width: none; padding: 0 0 4mm; border-bottom: .6pt solid #111; align-items: flex-end; }
.logo svg { width: 34mm !important; }
.logo { --logo-ink: #111 !important; }
.site-header__inner::after { font-size: 7pt; line-height: 1.3; color: #5c5c5c; text-align: right; }
html:lang(de) .site-header__inner::after { content: "Konzeption · Design · Entwicklung"; }
html:lang(en) .site-header__inner::after { content: "Concept · Design · Development"; }

/* Home: the hero headline is the cover line, set at the foot of page one */
.hero { min-height: 0 !important; height: 226mm; display: flex; flex-direction: column; justify-content: flex-end; break-after: page; }
.hero__inner { padding: 0 !important; }
.hero h1 { max-width: none; font-size: 68pt; line-height: .92; letter-spacing: -.05em; }
.hero__inner::before { content: ""; display: block; width: 14mm; height: 2.2mm; margin-bottom: 8mm; background: #eb4926; }

/* Sub pages: the headline opens the issue, the text follows on the same page */
.page-hero { padding: 26mm 0 0 !important; margin-bottom: 14mm; min-height: 0 !important; }
.page-hero .display { font-size: 54pt; }
.page-hero .statement { margin-top: 12mm; }
.page-hero--legal { padding-top: 16mm !important; }
.page-hero--legal .display-l { font-size: 40pt; }

/* --- Held scenes become pull-quote pages -------------------------------- */
.scene, .scene--break, .scene--flash { height: auto !important; }
.stage { position: static !important; height: auto !important; min-height: 0 !important; display: block !important; overflow: visible !important; padding: 0 !important; }
.scene--break { margin: 4mm 0 12mm; padding: 6mm 0 0; border-top: 2.2pt solid #111; break-inside: avoid; }
.break-fit { font-size: 46pt; line-height: .94; letter-spacing: -.05em; }
.break-fit .fit { display: inline !important; width: auto !important; font-size: inherit !important; white-space: normal !important; }
.break-fit .break-line, .break-fit .break-next { display: block; }

/* The asterisk floods the page: one full orange page, the lead sentence in ink
   at the top, the mark in the middle, the claim in white at the foot */
.scene--flash { margin: 0; break-before: page; break-after: page; }
.scene--flash .stage {
  display: flex !important; flex-direction: column; justify-content: space-between;
  height: 250mm !important; padding: 14mm !important; break-inside: avoid;
  background: #eb4926 !important;
}
.flash-lead { position: static !important; padding: 0 !important; }
.flash-lead__text { font-size: 20pt; line-height: 1.16; letter-spacing: -.025em; max-width: 92%; color: #111; }
.js .flash-lead .w, .js .flash-lead .w--hl, .flash-lead .hl { color: #111 !important; }
.ast-anchor { display: none !important; }
.flash-copy { position: static !important; display: block !important; padding: 0 !important; text-align: left; background: none !important; color: #fff !important; }
.flash-copy::before { content: ""; display: block; width: 46mm; height: 51mm; margin-bottom: 14mm; background: url(print-ast.svg) no-repeat left top / contain; }
.flash-claim { max-width: none; margin: 0; font-size: 46pt; line-height: .98; letter-spacing: -.045em; color: #fff; }
.flash-claim .w { color: #fff !important; }

/* --- Lists of names: a three column index under a hairline -------------- */
.refs-title { margin: 0 0 10mm; }
.ref-block, .rail {
  display: grid !important; grid-template-columns: 25% 1fr; column-gap: 0;
  margin: 0 !important; padding: 2.2mm 0 6mm; border-top: .6pt solid #111; break-inside: avoid;
}
.ref-head { display: block; margin: 0 !important; }
.ref-block .label, .rail > .rail__label { margin: .6mm 0 0 !important; }
.cloud { display: block; columns: 3; column-gap: 5mm; font-size: 9.5pt !important; line-height: 1.45; letter-spacing: 0 !important; }
.cloud li { display: block; white-space: normal; break-inside: avoid; }
.cloud .ps { margin-bottom: 1.6mm; }
.ps__office { position: static !important; display: block; width: auto; max-width: none; padding: 0; opacity: 1 !important; transform: none !important; font-size: 7pt; line-height: 1.3; color: #5c5c5c; }

/* Wir: the experience index opens its own page */
.section:has(#experience-title) { break-before: page; }

/* --- People ----------------------------------------------------------- */
.duo-section { margin-top: 0; break-inside: avoid; }
.duo { height: auto !important; min-height: 0 !important; overflow: visible; background: #f4f4f2 !important; }
.duo__img { position: static !important; display: block; width: 100% !important; height: auto !important; translate: none !important; }
.duo__names { position: static; display: grid !important; grid-template-columns: 1fr 1fr; width: auto !important; height: auto !important; margin: 3mm 0 0 !important; padding: 0 !important; }
.duo__person { position: static !important; translate: none !important; text-align: left; }
.duo__person .person__name, .person__name { font-size: 16pt; letter-spacing: -.03em; }
.people { grid-template-columns: 1fr 1fr; gap: 8mm; }
.person { break-inside: avoid; }
.person__text { font-size: 9.5pt; }

/* --- Problem → solution: a numbered table ------------------------------- */
.cases-head { margin: 0 0 8mm !important; font-size: 34pt; }
.cases { display: block !important; height: auto !important; counter-reset: case; }
.cases > .case, .is-stage .cases > .case {
  display: grid !important; grid-template-columns: 7% 1fr 8mm 1fr; column-gap: 0; align-items: start;
  margin: 0 !important; padding: 2.4mm 0 3.6mm; border-top: .6pt solid #111; visibility: visible !important;
  font-size: 9.5pt; line-height: 1.42; letter-spacing: 0; break-inside: avoid; counter-increment: case;
}
.cases > .case:last-child { border-bottom: .6pt solid #111; }
.case::before { content: counter(case, decimal-leading-zero); font-size: 7pt; font-weight: 500; letter-spacing: .08em; color: #eb4926; padding-top: .25em; }
.case__problem { justify-self: start; max-width: none; height: auto !important; padding-right: 4mm; text-align: left; font-weight: 500; }
.case__solution { padding-left: 1mm; }
.case__arrow { justify-self: start; rotate: none !important; width: 3.4mm; height: 3.4mm; margin-top: .3em; color: #eb4926; }

/* --- Steps and questions, if a page has them ---------------------------- */
.steps, .qa { grid-template-columns: 1fr 1fr; gap: 6mm 8mm; }
.step__title, .qa dt { font-size: 13pt; }
.step__text, .qa dd { font-size: 9.5pt; color: #111; }
.way { grid-template-columns: 25% 1fr; gap: 0; padding-top: 2.4mm; border-top: .6pt solid #111; break-inside: avoid; }
.way + .way { margin-top: 6mm; }
.way__title { font-size: 24pt; }
.way__lead { font-size: 13pt; }
.way__text, .way__result { font-size: 9.5pt; color: #111; }

/* --- Legal: two columns, small and tidy --------------------------------- */
.legal { max-width: none; margin-top: 10mm; columns: 2; column-gap: 8mm; font-size: 8.5pt; line-height: 1.45; color: #111; }
.legal .legal__lede { column-span: all; margin-bottom: 8mm; font-size: 13pt; line-height: 1.3; }
.legal h2 { margin: 5mm 0 1.5mm; font-size: 9pt; font-weight: 500; break-after: avoid; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { break-inside: avoid; }
.legal a { text-decoration: none; }

/* --- Back page: the call, in print terms -------------------------------- */
.contact { background: #fff !important; color: #111 !important; padding: 8mm 0 0 !important; border-top: 2.2pt solid #111; break-inside: avoid; }
:is(.page-home, .page-we, .page-work) .contact { break-before: page; display: flex; flex-direction: column; height: 248mm; padding-top: 10mm !important; }
:is(.page-home, .page-we, .page-work) .contact > .wrap { flex: 1; display: flex; flex-direction: column; }
:is(.page-home, .page-we, .page-work) .wave { font-size: 54pt; line-height: .93; letter-spacing: -.05em; }
:is(.page-home, .page-we, .page-work) .footer { margin-top: auto; }
.wave { font-size: 34pt; line-height: .96; color: #111; }
.wave-sub { margin-top: 3mm; font-size: 14pt; color: #5c5c5c; }
.mail-plain { margin: 10mm 0 0 var(--indent); font-size: 18pt; letter-spacing: -.02em; }
.mail-plain a { color: #eb4926 !important; border: 0; padding: 0; }
.footer { margin-top: 12mm; padding: 3mm 0 0; border-top: .6pt solid #111; color: #5c5c5c; font-size: 7pt; }
.contact .logo, .footer .logo { --logo-ink: #111 !important; }
.footer .logo svg { width: 24mm !important; }
