@font-face { font-family: "Creato Display"; src: url("fonts/CreatoDisplay-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("fonts/CreatoDisplay-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Creato Display"; src: url("fonts/CreatoDisplay-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Crimson Pro"; src: url("fonts/CrimsonPro-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  /* Carvão: the LinkedIn banner */
  --coal: #141517;
  --coal-2: #1b1c1f;
  --on-coal: #f2f0eb;
  --on-coal-2: #cfcdc6;
  --on-coal-3: #a9a7a0;
  --ember: #ff6b3d;
  --line-coal: #4b4d52;
  --line-coal-soft: #2e3034;
  /* Paper: the reading sections */
  --paper: #f2f0eb;
  --paper-2: #e9e6df;
  --ink: #141517;
  --ink-2: #4f4d48;
  --ember-ink: #c2410c;   /* ember darkened to stay legible on paper */
  --rule: #d6d2c9;

  --sans: "Creato Display", "Helvetica Neue", Arial, sans-serif;
  --italic: "Crimson Pro", Georgia, "Times New Roman", serif;

  --gutter: clamp(1.25rem, 0.6rem + 2.6vw, 2.5rem);
  --section: clamp(4.5rem, 3rem + 6vw, 8rem);
  --nav-h: 4.5rem;
  --num-w: clamp(3rem, 2rem + 3vw, 5rem);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-draw: cubic-bezier(0.65, 0, 0.35, 1);
  --t-quick: 180ms;
  --t-std: 650ms;
  --t-slow: 1300ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 1rem); }
html.motion { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 1.125rem; line-height: 1.6; font-kerning: normal; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
::selection { background: var(--ember); color: var(--coal); }
:focus-visible { outline: 2px solid var(--ember-ink); outline-offset: 3px; }
.dark :focus-visible, .top :focus-visible { outline-color: var(--ember); }

.wrap { width: min(100% - 2 * var(--gutter), 76rem); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 50; padding: .6rem 1rem; background: var(--ember); color: var(--coal); font-weight: 500; text-decoration: none; }
.skip:focus { top: 1rem; }
.dark { background: var(--coal); color: var(--on-coal); }

/* Buttons and links */
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .75rem 1.4rem; background: var(--ember); color: var(--coal); font-weight: 500; font-size: 1rem; line-height: 1.2; text-decoration: none; transition: background-color var(--t-quick) ease; }
.btn:hover { background: #ff8259; }
.btn svg { width: 1rem; height: 1rem; flex: none; transition: transform 350ms var(--ease-out); }
.motion .btn:hover svg { transform: translateX(3px); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--ember-ink); text-decoration-thickness: 1px; text-underline-offset: .25em; transition: text-decoration-thickness var(--t-quick); }
.dark .link { text-decoration-color: var(--ember); }
.link:hover { text-decoration-thickness: 2px; }
.link--arrow { display: inline-flex; align-items: center; gap: .5rem; }
.link--arrow svg { width: .95rem; height: .95rem; transition: transform 350ms var(--ease-out); }
.motion .link--arrow:hover svg { transform: translateX(3px); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; height: var(--nav-h); background: var(--coal); color: var(--on-coal); border-bottom: 1px solid var(--line-coal-soft); }
.top__inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.mark { margin-right: auto; font-weight: 700; font-size: 1.3rem; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.top__links { display: flex; gap: 1.75rem; font-size: .95rem; font-weight: 500; }
.top__links a, .top__lang { color: var(--on-coal-2); text-decoration: none; transition: color var(--t-quick); }
.top__links a:hover, .top__lang:hover { color: var(--on-coal); }
.top__lang { font-size: .95rem; font-weight: 500; }
.top .btn { min-height: 2.6rem; padding: .55rem 1.05rem; font-size: .95rem; }

/* Hero: the banner, as a page */
.hero { overflow: hidden; }
.hero__top { position: relative; padding: clamp(4rem, 2.5rem + 6vw, 8rem) 0 clamp(3rem, 2rem + 4vw, 5.5rem); }
.curves { position: absolute; left: 0; top: 0; width: 46%; height: 100%; pointer-events: none; }
.curves path { fill: none; stroke: var(--line-coal); stroke-width: 1.25; vector-effect: non-scaling-stroke; }
.hero__grid { position: relative; display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 1rem + 4vw, 5rem); }
.hero__grid > * { grid-column: 2; }
.hero h1 { font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(3rem, 1.6rem + 5.2vw, 6.25rem); line-height: 1; letter-spacing: -.01em; }
.hero h1 span { display: block; }
html[lang="pt-BR"] .hero h1 { font-size: clamp(3rem, 5.8vw, 4.75rem); }   /* PT signature is longer: one line per sentence on desktop */
.hero__sub { margin-top: 1.75rem; max-width: 38rem; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.4rem); line-height: 1.5; color: var(--on-coal-2); }
.hero__actions { margin-top: 2.25rem; display: flex; align-items: center; gap: 1.75rem; flex-wrap: wrap; }
.base-rule { height: 1px; background: var(--line-coal); width: calc(50% + min(100% - 2 * var(--gutter), 76rem) / 2); transform-origin: left; }
.strip { padding: 1.5rem 0 clamp(3rem, 2rem + 4vw, 5rem); }
.strip ol { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; font-size: clamp(1.05rem, .92rem + .45vw, 1.3rem); color: var(--on-coal-2); }
.strip a { text-decoration: none; transition: color var(--t-quick); }
.strip a:hover { color: var(--on-coal); }
.strip b { font-weight: 400; color: var(--ember); margin-right: .45rem; }

/* Case pages: a short dark top */
.subhero { position: relative; overflow: hidden; padding: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0; }
.subhero .curves { width: 40%; }
.subhero__inner { position: relative; }
.subhero__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; font-size: .9rem; font-weight: 500; color: var(--on-coal-3); letter-spacing: .01em; }
.subhero h1 { margin-top: 1rem; max-width: 20ch; font-weight: 700; font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem); line-height: 1.05; letter-spacing: -.02em; text-wrap: balance; }
.subhero__lede { margin-top: 1.25rem; max-width: 38rem; font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(1.4rem, 1.15rem + 1vw, 2rem); line-height: 1.25; color: var(--on-coal-2); }

/* Sections */
.section { padding: var(--section) 0; }
.section--alt { background: var(--paper-2); }
.section-head { max-width: 46rem; }
h2 { font-weight: 700; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
.section-head p { margin-top: 1.25rem; font-size: clamp(1.15rem, 1.05rem + .45vw, 1.35rem); line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.dark .section-head p { color: var(--on-coal-2); }
.label { font-size: .9rem; font-weight: 500; color: var(--ink-2); letter-spacing: .01em; }
.dark .label { color: var(--on-coal-3); }

/* Services: three stages on one line */
.stages { position: relative; margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: grid; gap: clamp(3.5rem, 2.5rem + 4vw, 6.5rem); }
.spine { position: absolute; left: calc(var(--num-w) / 2); top: 1rem; bottom: 2rem; width: 1px; background: var(--rule); }
.spine i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 1)); }
.stage { position: relative; display: grid; grid-template-columns: var(--num-w) minmax(0, 1fr); column-gap: clamp(1.25rem, .5rem + 2.5vw, 3rem); }
.stage__n { position: relative; z-index: 1; align-self: start; padding: .35rem 0; background: var(--paper); text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.5rem); line-height: 1; color: var(--ink-2); transition: color 500ms ease; }
.stage__n.is-lit { color: var(--ember-ink); }
html:not(.motion) .stage__n { color: var(--ember-ink); }
.stage__head h3 { font-weight: 700; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); line-height: 1.15; letter-spacing: -.015em; }
.stage__head p { margin-top: .5rem; max-width: 40rem; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); color: var(--ink-2); }
.methods { grid-column: 2; margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem); display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); gap: clamp(1.75rem, 1rem + 2vw, 2.75rem) clamp(1.5rem, 1rem + 2vw, 2.75rem); }
.method { border-top: 1px solid var(--ink); padding-top: 1.1rem; }
.method svg { display: block; width: 100%; max-width: 13.5rem; height: auto; aspect-ratio: 160 / 100; margin-bottom: 1.1rem; }
.method h4 { font-weight: 500; font-size: 1.08rem; line-height: 1.35; }
.method p { margin-top: .3rem; font-size: 1rem; line-height: 1.5; color: var(--ink-2); }

/* Tool drawings */
.tool { color: var(--ink); fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: square; }
.tool .em { stroke: var(--ember-ink); }
.tool .soft { stroke: #b9b4aa; }
.tool .bar { stroke-width: 3.5; stroke-linecap: butt; }
.tool .thick { stroke-width: 2.6; }
.tool .em-fill { fill: var(--ember-ink); stroke: none; }
.tool text { fill: var(--ink-2); stroke: none; font-family: var(--sans); font-size: 11px; font-weight: 500; }

/* Rhythm */
.rhythm { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); border-top: 1px solid var(--ink); }
.rhythm__title { font-family: var(--italic); font-style: italic; font-size: clamp(1.7rem, 1.2rem + 2vw, 2.9rem); line-height: 1.1; max-width: 52rem; text-wrap: balance; }
.rhythm__rows { margin-top: clamp(2rem, 1.5rem + 2vw, 3rem); display: grid; gap: 1.6rem; }
.rhythm__row { display: grid; grid-template-columns: 9rem minmax(0, 1fr) minmax(0, 17rem); align-items: center; gap: 1.5rem; }
.rhythm__when { font-weight: 500; font-size: 1rem; }
.ruler { position: relative; height: 24px; }
.ruler__line { position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; margin-top: -.75px; background: var(--ink); transform-origin: left; }
.tick { position: absolute; top: 50%; width: 1.5px; height: var(--h, 12px); background: var(--ember-ink); transform: translate(-50%, -50%); }
.rhythm__what { font-size: .98rem; line-height: 1.45; color: var(--ink-2); }
.rhythm__what b { display: block; font-weight: 500; color: var(--ink); }

/* Work */
.case { margin-top: clamp(3rem, 2rem + 3vw, 5rem); padding-top: clamp(2rem, 1.5rem + 2vw, 3rem); border-top: 1px solid var(--ink); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.case + .case { margin-top: clamp(4rem, 3rem + 4vw, 6.5rem); }
.case__meta { display: flex; flex-wrap: wrap; gap: .35rem 1.25rem; }
.case h3 { margin-top: .9rem; font-weight: 700; font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
.case__body { margin-top: 1.1rem; display: grid; gap: .9rem; color: var(--ink-2); }
.case__body p:first-child { color: var(--ink); }
.status { margin-top: 1.5rem; display: inline-flex; align-items: center; gap: .6rem; font-weight: 500; font-size: .98rem; }
.status i { width: .6rem; height: .6rem; background: var(--ember-ink); }
.case__more { margin-top: 1.6rem; }
.status--note { font-weight: 400; color: var(--ink-2); }

/* Kadoshi: the system, as a flow */
.flow { position: relative; align-self: start; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--paper); }
.flow__steps { position: relative; display: grid; gap: 1.15rem; }
.flow__steps::before { content: ""; position: absolute; left: .3rem; top: .7rem; bottom: .7rem; width: 1px; background: var(--ink); transform-origin: top; }
.flow__steps li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.flow__steps li::before { content: ""; position: absolute; left: 0; top: .5rem; width: .65rem; height: .65rem; background: var(--paper); border: 1px solid var(--ink); }
.flow__steps--spaced { margin-top: 1.25rem; }
.flow__steps li.out { margin-top: .5rem; font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.75rem); line-height: 1.2; color: var(--ember-ink); }
.flow__steps li.out::before { top: .55rem; background: var(--ember-ink); border-color: var(--ember-ink); }
.flow__note { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink-2); }

/* Maths Angel: the reframe and the evidence */
.reframe { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--paper); display: grid; gap: 1.25rem; }
.reframe blockquote { margin-top: .4rem; }
.reframe__asked blockquote { font-size: clamp(1.15rem, 1.05rem + .4vw, 1.35rem); color: var(--ink-2); }
.reframe__real blockquote { font-family: var(--italic); font-style: italic; font-size: clamp(1.4rem, 1.15rem + 1vw, 1.95rem); line-height: 1.2; color: var(--ink); text-wrap: pretty; }
.reframe__arrow { width: 1.25rem; height: 2.5rem; color: var(--ember-ink); }
.reframe__arrow path { fill: none; stroke: currentColor; stroke-width: 1.5; }
.section:not(.section--alt) .reframe { background: var(--paper-2); }   /* case page: the panel on a paper section */
.evidence-wrap { margin-top: 1.5rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--paper); }
.evidence { margin-top: 1rem; display: grid; grid-template-columns: minmax(0, 1fr) clamp(4rem, 2rem + 6vw, 9rem) auto; }
.evidence ul { display: grid; grid-template-rows: repeat(3, 1fr); }
.evidence__sources li { display: flex; align-items: center; padding: .45rem 0; font-size: .98rem; line-height: 1.35; }
.evidence__hyp li { display: flex; align-items: center; padding-left: .6rem; font-weight: 700; font-size: 1.05rem; }
.evidence svg { width: 100%; height: 100%; display: block; }
.evidence svg path { fill: none; stroke: var(--ink); stroke-width: 1.1; }
.evidence svg .em { stroke: var(--ember-ink); }
.evidence__rule { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--rule); font-family: var(--italic); font-style: italic; font-size: clamp(1.2rem, 1.05rem + .5vw, 1.45rem); line-height: 1.25; }
.delivered { margin-top: 1.5rem; }
.delivered h4 { font-weight: 500; font-size: 1rem; }
.delivered ul { margin-top: .6rem; border-top: 1px solid var(--ink); }
.delivered li { padding: .55rem 0; border-bottom: 1px solid var(--rule); font-size: .98rem; color: var(--ink-2); }

/* Proof: big numbers on coal */
.stats { margin-top: clamp(2.5rem, 2rem + 3vw, 4.5rem); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-coal); }
.stat { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem) clamp(1rem, .5rem + 2vw, 2.5rem) 0 0; }
.stat + .stat { padding-left: clamp(1rem, .5rem + 2vw, 2.5rem); border-left: 1px solid var(--line-coal-soft); }
.stat__n { font-weight: 500; font-size: clamp(3rem, 1.8rem + 4.6vw, 5.75rem); line-height: 1; letter-spacing: -.03em; color: var(--ember); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat__what { margin-top: 1rem; font-size: clamp(1.05rem, 1rem + .25vw, 1.2rem); line-height: 1.45; color: var(--on-coal); max-width: 20rem; }
.stat__who { margin-top: .75rem; font-size: .92rem; color: var(--on-coal-3); }
.proof__how { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); max-width: 46rem; color: var(--on-coal-2); font-size: 1.05rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); }
.facts { margin-top: 2rem; border-top: 1px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
.facts dt { font-weight: 500; }
.facts dd { color: var(--ink-2); }
.bio { display: grid; gap: 1.1rem; font-size: clamp(1.08rem, 1rem + .3vw, 1.22rem); line-height: 1.6; }
.bio p:first-child { font-size: clamp(1.25rem, 1.1rem + .6vw, 1.55rem); line-height: 1.45; }
.bio .sign { font-family: var(--italic); font-style: italic; font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); line-height: 1.2; color: var(--ember-ink); }

/* Contact: the banner again, closing the page */
.contact { position: relative; overflow: hidden; }
.contact__top { position: relative; padding: var(--section) 0 clamp(3rem, 2rem + 4vw, 5rem); }
.contact h2 { font-family: var(--italic); font-style: italic; font-weight: 400; font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem); line-height: 1.02; letter-spacing: -.01em; }
.contact__lead { margin-top: 1.25rem; max-width: 36rem; font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.5; color: var(--on-coal-2); }
.channels { margin-top: 2.25rem; border-top: 1px solid var(--line-coal-soft); }
.channels a { display: grid; grid-template-columns: 7rem minmax(0, 1fr) auto; align-items: baseline; gap: 1rem; padding: 1.05rem 0; border-bottom: 1px solid var(--line-coal-soft); text-decoration: none; }
.channels span { font-size: .95rem; color: var(--on-coal-3); }
.channels strong { font-weight: 500; font-size: clamp(1.15rem, 1rem + .7vw, 1.6rem); line-height: 1.25; overflow-wrap: anywhere; transition: color var(--t-quick); }
.channels svg { width: 1.1rem; height: 1.1rem; color: var(--ember); transition: transform 350ms var(--ease-out); }
.channels a:hover strong { color: var(--ember); }
.motion .channels a:hover svg { transform: translateX(4px); }

/* Footer: the banner's strip */
.foot { padding: 1.5rem 0 2.5rem; }
.foot__inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 2.25rem; font-size: .95rem; color: var(--on-coal-2); }
.foot__inner .mark { margin-right: 0; font-size: 1.1rem; color: var(--on-coal); }
.foot__sign { font-family: var(--italic); font-style: italic; font-size: 1.15rem; color: var(--on-coal); margin-right: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-coal); }

/* ---------- Motion (only when the visitor allows it) ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.motion .hero .curves, .motion .subhero .curves { animation: reveal 1.9s var(--ease-draw) .1s both; }
.motion .contact .curves { clip-path: inset(0 100% 0 0); transition: clip-path 1.9s var(--ease-draw) .15s; }
.motion .contact.is-in .curves { clip-path: inset(0 0 0 0); }
.motion .hero h1 span { animation: rise var(--t-std) var(--ease-out) both; }
.motion .hero h1 span + span { animation-delay: .12s; }
.motion .hero__sub { animation: rise var(--t-std) var(--ease-out) .26s both; }
.motion .hero__actions { animation: rise var(--t-std) var(--ease-out) .38s both; }
.motion .hero .base-rule { animation: grow-x 1.4s var(--ease-draw) .2s both; }
.motion .strip li { animation: fade .6s ease both; }
.motion .strip li:nth-child(1) { animation-delay: 1s; }
.motion .strip li:nth-child(2) { animation-delay: 1.12s; }
.motion .strip li:nth-child(3) { animation-delay: 1.24s; }

.motion [data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity var(--t-std) var(--ease-out), transform var(--t-std) var(--ease-out); transition-delay: var(--d, 0ms); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }
.motion [data-draw] .d { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset var(--t-slow) var(--ease-draw); transition-delay: var(--d, 0ms); }
.motion [data-draw].is-in .d { stroke-dashoffset: 0; }
.motion [data-draw] .f { opacity: 0; transition: opacity 500ms ease; transition-delay: calc(var(--d, 0ms) + 900ms); }
.motion [data-draw].is-in .f { opacity: 1; }
.motion .flow .flow__steps::before { transform: scaleY(0); transition: transform 1.2s var(--ease-draw) .1s; }
.motion .flow.is-in .flow__steps::before { transform: scaleY(1); }
.motion .flow .flow__steps li { opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.motion .flow.is-in .flow__steps li { opacity: 1; transform: none; }
.motion .flow.is-in .flow__steps li:nth-child(2) { transition-delay: .1s; }
.motion .flow.is-in .flow__steps li:nth-child(3) { transition-delay: .2s; }
.motion .flow.is-in .flow__steps li:nth-child(4) { transition-delay: .3s; }
.motion .flow.is-in .flow__steps li:nth-child(5) { transition-delay: .55s; }
.motion .rhythm .ruler__line { transform: scaleX(0); transition: transform 1.2s var(--ease-draw) var(--d, 0ms); }
.motion .rhythm.is-in .ruler__line { transform: scaleX(1); }
.motion .rhythm .tick { opacity: 0; transition: opacity .35s ease var(--t, 0ms); }
.motion .rhythm.is-in .tick { opacity: 1; }
.motion .contact .base-rule { transform: scaleX(0); transition: transform 1.4s var(--ease-draw) .3s; }
.motion .contact.is-in .base-rule { transform: scaleX(1); }

/* ---------- Narrow screens ---------- */
@media (max-width: 62rem) {
  .top__links { display: none; }
}
@media (max-width: 56rem) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__grid > * { grid-column: 1; }
  .curves, .subhero .curves { width: 100%; opacity: .5; }
  .base-rule { width: 100%; }
  .case { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 1.75rem 0; border-left: 0; }
  .stat + .stat { border-top: 1px solid var(--line-coal-soft); }
  .rhythm__row { grid-template-columns: 1fr; gap: .5rem; }
  .ruler { order: 3; }
}
@media (max-width: 40rem) {
  .method { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .3rem 1rem; align-items: start; }
  .method svg { grid-row: 1 / span 2; margin: .2rem 0 0; }
  .method h4, .method p { grid-column: 2; }
  .method p { margin-top: 0; }
  .channels a { grid-template-columns: 1fr auto; }
  .channels span { grid-column: 1 / -1; }
  .top .btn .long { display: none; }
}
@media (min-width: 40.01rem) { .top .btn .short { display: none; } }
@media (max-width: 26rem) {
  .top__lang .long { display: none; }
  .top__lang { padding: .5rem .35rem; }   /* tap target of at least 24 x 32 px */
  .top__inner { gap: .85rem; }
  .top .mark { font-size: 1.15rem; }
  .top .btn { padding-inline: .85rem; }
}
@media (min-width: 26.01rem) { .top__lang .short { display: none; } }

/* ---------- Print: every section, drawing and line in its final state ---------- */
@media print {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
  .d { stroke-dashoffset: 0 !important; transition: none !important; }
  .f { opacity: 1 !important; transition: none !important; }
  .flow__steps::before, .ruler__line { transform: none !important; transition: none !important; }
  .flow__steps li { opacity: 1 !important; transform: none !important; transition: none !important; }
  .tick { opacity: 1 !important; transition: none !important; }
  .curves { clip-path: none !important; animation: none !important; transition: none !important; }
  .contact .base-rule, .spine i { transform: none !important; transition: none !important; }
}
