/* After the story: a normal scrolling page laid over the scene. Swiss editorial in brand ink —
   paper, ink #051727, blues for the live bands, one acid "signal" green used only for things that are running.
   ONE grid for every block: 12 columns, the same margins and gutter, one vertical rule after column 4. */
.content { --paper: #fbfbf8; --ink: #051727; --ink2: rgba(5, 23, 39, .64); --line: rgba(5, 23, 39, .15); --accent: #1f52f6; --signal: #c8ff4d;
  --m: clamp(20px, 7vw, 150px); --g: clamp(10px, 1.2vw, 20px);
  --col: calc((100% - 2 * var(--m) - 11 * var(--g)) / 12);
  --rule: calc(var(--m) + 4 * var(--col) + 3.5 * var(--g));
  --pad: calc(var(--g) / 2 + 12px);
  position: relative; z-index: 6; background: var(--paper); color: var(--ink);
  font: 400 16px/1.45 var(--text); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px #0007; overflow: clip; }
.content::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); pointer-events: none; }
.content ::selection { background: var(--ink); color: var(--signal); }
.sw-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: 0 var(--m); }
.sw { position: relative; padding: clamp(72px, 9vw, 160px) 0 clamp(56px, 6vw, 110px); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 20px 32px 19px; border: 0; border-radius: 14px; cursor: pointer;
  font: 500 15px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  color: #fff; background: linear-gradient(135deg, #1f52f6 0%, #3b0de7 100%); box-shadow: 0 14px 34px rgba(31, 82, 246, .28);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s, filter .3s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 44px rgba(31, 82, 246, .4); filter: brightness(1.06); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: 3px solid #97cafc; outline-offset: 4px; }
.btn-ink { background: var(--ink); box-shadow: 0 14px 34px rgba(5, 23, 39, .3); }
.btn-ink:hover { color: var(--signal); }

.sw-label { margin: 0; font: 500 clamp(12px, .8vw, 14px)/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.sw-label span { color: var(--ink); }
.sw-note { color: var(--ink2); font-size: 15px; }
.sw-head { margin-bottom: clamp(28px, 4vw, 64px); }
.sw-head > :first-child { grid-column: 1 / 5; }
.sw-head .sw-r { grid-column: 5 / -1; padding-left: var(--pad); }

.sw-big { margin: 0; font: 400 clamp(64px, 11.6vw, 230px)/.92 var(--display); text-transform: uppercase; letter-spacing: -.005em; }
.sw-big .ln { line-height: .88; }
.sw-big .ln, .sw-quote .ln { display: block; grid-column: 1 / -1; white-space: nowrap; }
.c1 { grid-column: 1 / -1 !important; } .c2 { grid-column: 2 / -1 !important; } .c3 { grid-column: 3 / -1 !important; }
.c4 { grid-column: 4 / -1 !important; } .c5 { grid-column: 5 / -1 !important; padding-left: var(--pad); }

/* 01 about: the greeting stays pinned while the rest slides up over it */
.sw-about { padding-top: 0; }
.sw-hero { height: 165vh; margin-bottom: -65vh; }
.sw-hero-in { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 7vh; }
.sw-hero-in .sw-head { margin-bottom: clamp(20px, 2.4vw, 40px); }
.sw-hero-in .sw-big { position: relative; z-index: 1; }
.sw-rest { position: relative; z-index: 1; padding-top: clamp(60px, 8vw, 140px);
  background: linear-gradient(var(--line), var(--line)) var(--rule) 0 / 1px 100% no-repeat, var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -24px 60px rgba(5, 23, 39, .08); }

/* the live trace card (term.js): floats right of the greeting, tilts toward the pointer */
.sw-term { position: absolute; right: var(--m); top: 12vh; width: min(30vw, 520px); margin: 0; display: grid; gap: 14px; z-index: 0; }
.term-stage { position: relative; perspective: 1200px; }
.term { position: relative; border-radius: 18px; overflow: hidden; background: #051727; color: #d0e8ff; box-shadow: 0 40px 80px -20px rgba(5, 23, 39, .45), 0 0 0 1px rgba(5, 23, 39, .08);
  transform: rotateX(var(--rx, 6deg)) rotateY(var(--ry, -10deg)) rotateZ(1.5deg); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.term::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .14) 0 1px, transparent 1px 3px),
  radial-gradient(120% 80% at 20% 0%, rgba(31, 82, 246, .25), transparent 60%); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid rgba(208, 232, 255, .1); font: 500 12px/1 var(--mono); color: rgba(208, 232, 255, .55); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(208, 232, 255, .18); }
.term-bar span { margin-left: 8px; }
.term-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-weight: 500; color: var(--signal); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; }
.term-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); animation: live 1.4s ease-in-out infinite; }
@keyframes live { 50% { opacity: .3; } }
.term-body { margin: 0; padding: 18px 20px 22px; height: clamp(190px, 28vh, 330px); overflow: hidden; font: 400 clamp(11px, .82vw, 14px)/1.65 var(--mono); white-space: pre-wrap; word-break: break-word; }
.term-body .k { color: #97cafc; } .term-body .s { color: var(--signal); } .term-body .d { color: rgba(208, 232, 255, .42); } .term-body .w { color: #ffb86b; }
.term-body .cur { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: var(--signal); animation: live 1s steps(1) infinite; }
.term-tag { position: absolute; left: -7%; bottom: 12%; z-index: 2; padding: 12px 18px 11px; border-radius: 40px; background: var(--signal); color: var(--ink);
  font: 500 13px/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 12px 30px rgba(5, 23, 39, .2); rotate: -4deg; pointer-events: none;
  translate: var(--tx, 0) var(--ty, 0); transition: translate .8s cubic-bezier(.2, .8, .2, 1); }
.sw-term figcaption { display: flex; gap: 14px; align-items: baseline; justify-content: center; }
.term-cap { font: 400 15px/1.3 var(--text); color: var(--ink); border-bottom: 1px solid currentColor; }

.sw-intro { margin-top: clamp(20px, 3vw, 50px); align-items: center; }
.sw-photo { position: relative; grid-column: 1 / 5; margin: 0 var(--pad); border-radius: 24px; overflow: hidden; aspect-ratio: 1; background: #1f52f6; isolation: isolate; }
.sw-photo img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.06); transition: transform 1.4s cubic-bezier(.2, .8, .2, 1); }
.sw-photo.in img { transform: none; }
.sw-mono { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; font: 400 clamp(90px, 13vw, 260px)/1 var(--display); color: #fff; letter-spacing: -.02em; mix-blend-mode: overlay; }
.sw-lead { grid-column: 5 / -1; align-self: center; margin: 0; padding-left: var(--pad); font: 400 clamp(26px, 2.9vw, 54px)/1.2 var(--text); letter-spacing: -.025em; }
.sw-lead .dim { color: var(--ink2); }
.tile { --r: -6deg; display: inline-grid; place-items: center; width: 1.12em; height: 1.12em; margin: 0 .08em; vertical-align: -.2em; position: relative; rotate: var(--r);
  transition: rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1); }
.tile svg { width: 66%; height: 66%; display: block; }
.ic-agent { background: #3b0de7; border-radius: 50%; }
.ic-mcp { background: #1989fe; border-radius: .22em; width: 1.4em; } .ic-mcp svg { width: 76%; }
.ic-rag { background: #1f52f6; border-radius: 32%; }
.ic-data { background: var(--signal); clip-path: polygon(50% 0, 61% 11%, 77% 6%, 82% 22%, 98% 27%, 93% 43%, 100% 56%, 89% 66%, 91% 82%, 75% 84%, 66% 98%, 51% 91%, 36% 99%, 26% 85%, 10% 84%, 11% 67%, 0 57%, 6% 43%, 1% 27%, 17% 22%, 22% 6%, 38% 11%); width: 1.2em; height: 1.2em; }
.tile:hover { rotate: 0deg; scale: 1.18; }
.js-motion [data-split] .w-tile > .tile { opacity: 0; transform: scale(.2) rotate(-25deg);
  transition: opacity .4s, transform .9s cubic-bezier(.3, 1.6, .5, 1), rotate .5s cubic-bezier(.3, 1.6, .5, 1), scale .5s cubic-bezier(.3, 1.6, .5, 1);
  transition-delay: calc(var(--i) * 55ms + 120ms); }
.js-motion [data-split].in .w-tile > .tile { opacity: 1; transform: none; animation: tile-bob 4s ease-in-out calc(var(--i) * -.6s) infinite; }
@keyframes tile-bob { 50% { translate: 0 -.08em; } }

.sw-stats { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; }
.sw-stats li { align-items: end; border-top: 1px solid var(--line); padding-top: 10px; padding-bottom: 6px; }
.sw-num { grid-column: 1 / 5; white-space: nowrap; text-align: right; padding-right: var(--pad); font: 400 clamp(64px, 8.4vw, 170px)/.92 var(--display); text-transform: uppercase; }
.sw-num i { font-style: normal; }
.sw-num .since { font-size: .4em; vertical-align: .9em; letter-spacing: .02em; }
.sw-stats .sw-label { grid-column: 5 / -1; padding: 0 0 .9em var(--pad); font-size: 14px; color: var(--ink); }
.sw-quote { margin: clamp(80px, 10vw, 180px) 0 0; padding-bottom: clamp(40px, 5vw, 80px); font: 400 clamp(72px, 9.6vw, 190px)/.92 var(--display); text-transform: uppercase; }
.sw-quote .ln { line-height: .9; }
.sw-quote .q-i { color: var(--accent); }

/* 02 numbers: a live mesh band that opens up from a card, runs sideways, then sinks into the navy works block */
.sw-numbers { position: relative; height: 420vh; }
.nums-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; color: #fff; background: #1f52f6;
  clip-path: inset(var(--ins, 7vw) round var(--rad, 36px)); will-change: clip-path; }
.mesh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mesh-fallback { background: radial-gradient(60% 70% at 25% 20%, #3b0de7, transparent), radial-gradient(60% 60% at 80% 80%, #97cafc, transparent), #1989fe; }
.nums-track { position: relative; height: 100%; display: flex; align-items: center; padding: 0 var(--m); width: max-content; transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; }
.nums-intro { flex: 0 0 auto; width: min(44vw, 640px); margin-right: 6vw; }
.nums-intro .sw-label { color: rgba(255, 255, 255, .75); } .nums-intro .sw-label span { color: #fff; }
.nums-title { margin: 22px 0 0; font: 400 clamp(60px, 9.6vw, 180px)/.88 var(--display); text-transform: uppercase; }
.num { flex: 0 0 auto; position: relative; display: grid; align-content: center; padding: 0 3.4vw 0 1.4vw; border-left: 1px solid rgba(255, 255, 255, .4); height: 56vh; }
.num:nth-child(odd) { translate: 0 -9vh; } .num:nth-child(even) { translate: 0 9vh; }
.num b { font: 400 clamp(110px, 30vh, 360px)/.86 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.num-i { position: absolute; top: 0; left: 1.4vw; font: 500 12px/1 var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .7); }
.num-l { margin-top: 14px; font: 500 13px/1.35 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.nums-fade { position: absolute; inset: 0; background: #051727; opacity: var(--fade, 0); pointer-events: none; }

/* 03 works tunnel (works.js) — the one dark block */
.works { position: relative; height: 760vh; background: #051727; margin-top: -100vh; z-index: 1; }
.works-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.works-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.works-note { position: absolute; left: var(--m); bottom: clamp(20px, 3vw, 40px); margin: 0; color: #d0e8ff99; }
.works-note span { color: #d0e8ff; }
.works-copy { position: absolute; left: 50%; top: 50%; width: min(92vw, 1100px); translate: -50% -50%; text-align: center; pointer-events: none; opacity: 0; }
.works-copy :is(.works-ch, .works-title, .works-sub) { background: radial-gradient(76% 95% at 0% 100%, #fff 0%, #d0e8ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.works-ch { margin: 0 0 18px; font: 500 clamp(13px, 1.1vw, 18px)/1 var(--mono); letter-spacing: .2em; opacity: .75; }
.works-title { margin: 0; font: 400 clamp(60px, 9vw, 170px)/.92 var(--display); text-transform: uppercase; text-wrap: balance; }
.works-sub { margin: 22px 0 0; font: 400 clamp(13px, 1.1vw, 18px)/1.3 var(--mono); opacity: .75; }
.works-btn { pointer-events: auto; margin-top: 34px; }
.works-dots { position: absolute; right: clamp(14px, 2.4vw, 36px); top: 50%; translate: 0 -50%; display: grid; gap: 18px; }
.works-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 50%; background: #d0e8ff55; cursor: pointer; transition: background .3s, box-shadow .3s; }
.works-dots button.on { background: var(--signal); box-shadow: 0 0 0 5px rgba(200, 255, 77, .15); }

/* 04 experience: a line grows down the grid rule; stops alternate sides of it */
.sw-exp { margin-top: -28px; z-index: 2; background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: 0 -30px 80px rgba(0, 0, 0, .35); }
.sw-exp::before, #contact::before { content: ""; position: absolute; top: 0; bottom: 0; left: var(--rule); width: 1px; background: var(--line); }
.sw-exp > * { position: relative; }
.sw-path { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; position: relative; }
.sw-path::before { content: ""; position: absolute; left: calc(var(--rule) - 1px); top: 0; width: 3px; height: var(--draw, 0px); background: var(--accent); border-radius: 2px; z-index: 1; }
.stop { position: relative; padding-top: clamp(40px, 5vw, 80px); padding-bottom: clamp(10px, 1.5vw, 20px); }
.stop::after { content: ""; position: absolute; left: calc(var(--rule) - 8px); top: calc(clamp(40px, 5vw, 80px) + .35em); width: 17px; height: 17px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line); z-index: 2; transition: background .4s, border-color .4s, box-shadow .4s; }
.stop.on::after { background: var(--signal); border-color: var(--ink); box-shadow: 0 0 0 6px rgba(200, 255, 77, .25); }
.stop-when { grid-column: 1 / 5; margin: 0; text-align: right; padding-right: calc(var(--pad) + 14px); font: 500 clamp(14px, 1.1vw, 18px)/1.4 var(--mono); letter-spacing: .04em; color: var(--ink2); transition: color .4s; }
.stop.on .stop-when { color: var(--ink); }
.stop-body { grid-column: 5 / 12; padding-left: calc(var(--pad) + 14px); opacity: .35; transform: translateX(14px); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.stop.on .stop-body { opacity: 1; transform: none; }
.stop-body h3 { margin: 0; font: 400 clamp(36px, 4.2vw, 80px)/.95 var(--display); text-transform: uppercase; }
.stop-body h3 em { font-style: normal; color: var(--accent); }
.stop-where { margin: 10px 0 0; font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink2); }
.stop-body > p:not(.stop-where) { margin: 16px 0 0; max-width: 46em; font-size: clamp(16px, 1.15vw, 19px); line-height: 1.55; color: var(--ink); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.chips li { padding: 7px 12px 6px; border: 1px solid var(--line); border-radius: 40px; font: 500 12px/1 var(--mono); letter-spacing: .04em; }
.chips-lg li { padding: 10px 16px 9px; font-size: 13px; background: #fff; }
.sw-creds { margin-top: clamp(80px, 9vw, 160px); row-gap: clamp(20px, 2vw, 30px); align-items: baseline; border-top: 1px solid var(--line); padding-top: clamp(28px, 3vw, 48px); }
.sw-creds .sw-label { grid-column: 1 / 5; text-align: right; padding-right: var(--pad); }
.creds-body { grid-column: 5 / -1; margin: 0; padding-left: var(--pad); font-size: clamp(16px, 1.25vw, 21px); line-height: 1.45; }
.sw-creds .chips { margin: 0; }

/* 05 contacts */
#contact { border-top: 1px solid var(--line); }
#contact > * { position: relative; }
.sw-links { list-style: none; margin: clamp(56px, 7vw, 120px) 0 0; padding: 0; }
.sw-links li { border-top: 1px solid var(--line); }
.sw-links li:last-child { border-bottom: 1px solid var(--line); }
.sw-links a { align-items: baseline; padding-top: 14px; padding-bottom: 12px; color: inherit; text-decoration: none; position: relative; overflow: hidden; }
.sw-links a::before { content: ""; position: absolute; inset: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.7, 0, .2, 1); z-index: 0; }
.sw-links a > * { position: relative; z-index: 1; transition: color .3s; }
.sw-links .sw-label { grid-column: 1 / 2; }
.sw-links b { grid-column: 5 / 10; padding-left: var(--pad); font: 400 clamp(38px, 4.8vw, 92px)/.98 var(--display); text-transform: uppercase; font-weight: 400; }
.sw-links .sw-note { grid-column: 10 / 12; font-family: var(--mono); font-size: 13px; }
.sw-links .ico { grid-column: 12; justify-self: end; width: clamp(24px, 2.4vw, 40px); height: clamp(24px, 2.4vw, 40px); stroke-width: 1.6; transition: transform .4s cubic-bezier(.2, .8, .2, 1), color .3s; }
.sw-links a:hover::before, .sw-links a:focus-visible::before { transform: scaleY(1); }
.sw-links a:hover > *, .sw-links a:focus-visible > * { color: var(--paper); }
.sw-links a:hover b { color: var(--signal); }
.sw-links a:hover .ico { transform: translate(6px, -6px); }
.sw-formwrap { margin: clamp(56px, 6vw, 100px) var(--m) 0; }
.sw-formcard { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(36px, 5vw, 84px); color: #fff; background: #1f52f6; isolation: isolate;
  display: grid; justify-items: center; text-align: center; }
.sw-formcard > :not(.mesh) { position: relative; }
.sw-formcard .sw-label { color: rgba(255, 255, 255, .8); }
.sw-formcard h3 { justify-self: stretch; margin: 0 0 clamp(24px, 3vw, 52px); font: 400 clamp(64px, 11.6vw, 230px)/.88 var(--display); text-transform: uppercase; }
.sw-formcard h3 .ln { display: block; white-space: nowrap; font-size: var(--fs, inherit); }
.f-sub { margin: 0 0 clamp(10px, 1.2vw, 18px); font: 500 clamp(13px, 1.1vw, 17px)/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.sw-formcard .sw-fields { width: var(--fw, 100%); max-width: 100%; text-align: left; }
.sw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 28px); align-items: end; }
.sw-fields .f-wide { grid-column: 1 / -1; }
.sw-fields .btn { grid-column: 1 / -1; justify-self: center; margin-top: 4px; }
.sw-fields em { font-style: normal; color: var(--signal); }
.sw-fields label { display: grid; gap: 8px; }
.sw-fields :is(input, textarea) { font: 400 20px/1.2 var(--text); color: #fff; background: none; border: 0; border-bottom: 1px solid rgba(255, 255, 255, .7);
  padding: 8px 0; outline: none; border-radius: 0; caret-color: var(--signal); }
.sw-fields :is(input, textarea):focus { border-bottom-color: var(--signal); }
.sw-fields textarea { resize: vertical; min-height: 54px; }
.sw-fields ::placeholder { color: rgba(255, 255, 255, .6); }
.f-note { margin: 16px 0 0; min-height: 1.2em; font: 500 14px/1.4 var(--mono); }
.sw-end { margin-top: clamp(56px, 6vw, 100px); align-items: center; }
.sw-end > .sw-label { grid-column: 1 / 5; }
.sw-replay { grid-column: 5 / -1; justify-self: start; margin-left: var(--pad); padding: 0; border: 0; background: none; color: var(--ink);
  font: 500 13px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; cursor: pointer; border-bottom: 1px solid currentColor; }
.sw-replay:hover { color: var(--accent); }
.sw-word { margin: clamp(80px, 11vw, 200px) 0 0; padding: 0 var(--m) .04em; font: 400 var(--fs, 20vw)/.84 var(--display); text-transform: uppercase;
  white-space: nowrap; color: var(--ink); cursor: default; user-select: none; }
.sw-word .ch { display: inline-block; transform-origin: 50% 100%; will-change: transform; color: color-mix(in srgb, #1f52f6 calc(var(--k, 0) * 100%), var(--ink)); }

/* ---------- motion primitives (content.js adds .in; without JS everything is simply visible) ---------- */
.js-motion [data-split] .w { display: inline-block; overflow: clip; overflow-clip-margin: .2em; vertical-align: top; }
.js-motion [data-split] .w > span { display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(.45em) scale(1.04);
  transition: opacity .9s cubic-bezier(.2, .8, .2, 1), filter .9s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i) * 55ms); }
.js-motion [data-split].in .w > span { opacity: 1; filter: blur(0); transform: none; }
.js-motion [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js-motion [data-reveal].in { opacity: 1; transform: none; }
.js-motion :is(.sw-stats li, .sw-links li)[data-reveal] { border-top-color: transparent; background: linear-gradient(var(--line), var(--line)) top left / 0 1px no-repeat;
  transition: opacity .8s, transform .9s cubic-bezier(.2, .8, .2, 1), background-size 1.1s cubic-bezier(.7, 0, .2, 1); }
.js-motion :is(.sw-stats li, .sw-links li)[data-reveal].in { background-size: 100% 1px; }
.sw-big .ln[data-drift], .sw-quote .ln { will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .js-motion [data-split] .w > span, .js-motion [data-reveal] { transition-duration: .01s !important; filter: none !important; }
}

/* ================= phones (≤ 800 px): one column, one headline size, one text size ================= */
@media (max-width: 800px) {
  .content { --rule: calc(var(--m) + 6px); --big: 22vw; --body: 400 17px/1.4 var(--text); }
  .content::before, .sw-exp::before, #contact::before { display: none; }
  .sw-head > :first-child, .sw-head .sw-r { grid-column: 1 / -1; padding-left: 0; }
  .sw-head { row-gap: 6px; margin-bottom: 28px; }
  .c5, .c4, .c3, .c2 { grid-column: 1 / -1 !important; padding-left: 0; }
  .sw-big, .sw-num, .sw-quote, .nums-title, .works-title, .num b, .sw-formcard h3, .sw-formcard h3 .ln { font-size: var(--big) !important; }
  .sw-big .ln { white-space: normal; }
  .sw-big .ln.c5 { padding-left: 18% !important; } .sw-big .ln.c2 { padding-left: 7% !important; } .sw-big .ln.c4 { padding-left: 5% !important; }
  .sw-hero { height: auto; margin-bottom: 0; }
  .sw-hero-in { position: relative; height: auto; padding-top: 104px; display: block; }
  .sw-term { position: relative; right: auto; top: auto; width: auto; margin: 40px var(--m) 0; }
  .term-tag { left: auto; right: -6px; bottom: -14px; font-size: 11px; }
  .sw-rest { padding-top: 56px; background: var(--paper); }
  .sw-photo { grid-column: 1 / -1; margin: 0; }
  .sw-lead { grid-column: 1 / -1; padding: 28px 0 0; font-size: 25px; line-height: 1.25; }
  .sw-num { grid-column: 1 / -1; text-align: left; padding-right: 0; }
  .sw-stats li { padding: 18px var(--m) 22px; }
  .sw-stats .sw-label { grid-column: 1 / -1; padding: 10px 0 0; }
  .sw-quote .ln { white-space: normal; padding-left: 0 !important; }
  .sw-quote .q { display: block; } .sw-quote .q-r { text-align: right; }
  .nums-intro { width: 66vw; margin-right: 12vw; }
  .num { height: auto; padding: 0 9vw 0 4vw; } .num:nth-child(odd), .num:nth-child(even) { translate: 0 0; }
  .num-i { position: static; display: block; margin-bottom: 12px; }
  .sw-path::before { left: calc(var(--m) + 5px); }
  .stop::after { left: calc(var(--m) - 2px); }
  .stop-when, .stop-body { grid-column: 1 / -1; text-align: left; padding: 0 0 0 30px; }
  .stop-body { margin-top: 8px; }
  .sw-creds .sw-label, .creds-body { grid-column: 1 / -1; text-align: left; padding: 0; }
  .sw-creds .sw-label { margin-top: 10px; }
  .sw-links a { padding-top: 18px; padding-bottom: 18px; row-gap: 6px; }
  .sw-links b, .sw-links .sw-note { grid-column: 2 / -1; padding-left: 0; text-align: left; }
  .sw-links .ico { grid-row: 1; }
  .sw-formwrap { margin: 48px var(--m) 0; }
  .sw-formcard { padding: 40px 24px 34px; }
  .sw-formcard h3 .w2 { display: block; } .sw-formcard h3 .ln { white-space: normal; }
  .sw-fields { grid-template-columns: 1fr; row-gap: 30px; }
  .sw-formcard .sw-fields { width: 100%; }
  .sw-fields label > .sw-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sw-fields :is(input, textarea) { font-size: 16px; }
  .sw-end > .sw-label, .sw-replay { grid-column: 1 / -1; margin-left: 0; }
  .sw-end { row-gap: 14px; }
}
@media (min-width: 801px) { .sw-fields input::placeholder { color: transparent; } }
