:root {
  --canvas: #E8E9E3;
  --surface: #F5F5F0;
  --ink: #15181B;
  --ink-soft: #4E555B;
  --accent: #C23A22;
  --accent-ink: #FFFFFF;
  --line: rgba(21, 24, 27, .14);
  --display: "Archivo", system-ui, sans-serif;
  --text: "Geist", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --p: 0;            /* hero progress, set by main.js */
  --mx: 0; --my: 0;  /* pointer, -1..1 */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--canvas); color: var(--ink);
  font: 400 17px/1.6 var(--text); -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ---------- bar ---------- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 28px;
  padding: 14px var(--gutter);
  background: color-mix(in srgb, var(--canvas) 82%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.mark { font: 800 22px/1 var(--display); letter-spacing: -.03em; text-decoration: none; }
.mark span { color: var(--accent); }
.bar-links { display: flex; gap: 26px; margin-left: auto; }
.bar-links a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); }
.bar-links a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 6px;
  font: 600 15px/1 var(--text); text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, background-color .18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-wa { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px -8px rgba(194, 58, 34, .7); }
.btn-wa:hover { background: #A93019; }
.btn-ghost { border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--canvas); }
.bar .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { height: 300vh; position: relative; }
.stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  padding: 72px var(--gutter) 0; column-gap: 40px;
}
.plane { will-change: transform; }

/* back plane: the phrase that stops being true */
.back {
  position: absolute; left: 0; right: 0; bottom: -.1em;
  text-align: center; pointer-events: none; font-size: clamp(120px, 17vw, 300px); line-height: .8;
  transform: translate3d(calc(var(--mx) * -8px), calc(var(--p) * -60px + var(--my) * -6px), 0);
}
.bio-word {
  font: 800 1em/.8 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(21, 24, 27, .13);
  white-space: nowrap;
}
.strike {
  position: absolute; left: 4%; width: 92%; top: 56%; height: max(6px, .045em); border-radius: 99px;
  background: var(--accent); opacity: .9; transform-origin: 0 50%;
  transform: rotate(-1.2deg) scaleX(var(--strike, 0));
}

/* copy */
.copy { position: relative; z-index: 3; max-width: 640px; }
.h-swap { display: grid; margin: 0 0 22px; }
.h-swap > span {
  grid-area: 1 / 1; font: 800 clamp(44px, 5.4vw, 84px)/.98 var(--display);
  letter-spacing: -.035em; text-wrap: balance;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.h-b { opacity: 0; transform: translateY(18px); }
.is-after .h-a { opacity: 0; transform: translateY(-18px); }
.is-after .h-b { opacity: 1; transform: none; }
.h-b { color: var(--ink); align-self: end; }
.lede { max-width: 46ch; color: var(--ink-soft); font-size: 18px; margin: 0 0 30px; text-wrap: pretty; }
.ctas { display: flex; gap: 12px; flex-wrap: wrap; }

/* phone */
.phone-wrap {
  position: relative; z-index: 2; margin: 0; justify-self: center;
  --sw: min(300px, 34vh * .9);
  transform: translate3d(calc(var(--mx) * 10px), calc(var(--p) * -24px + var(--my) * 8px), 0);
}
.phone {
  position: relative; width: calc(var(--sw) + 24px); padding: 12px; border-radius: 52px;
  background: linear-gradient(140deg, #3B4046 0%, #1C1F23 38%, #2B2F34 62%, #121417 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 3px #0B0C0E,
    0 2px 2px rgba(0, 0, 0, .2),
    0 30px 60px -20px rgba(20, 24, 28, .55),
    0 60px 90px -40px rgba(20, 24, 28, .45);
  transform: perspective(1400px) rotateY(calc((1 - var(--turn, 0)) * -16deg + var(--mx) * 4deg)) rotateX(calc((1 - var(--turn, 0)) * 4deg));
  transform-style: preserve-3d;
}
.side { position: absolute; width: 4px; border-radius: 2px; background: linear-gradient(90deg, #15171A, #3C4147); }
.side.s1 { left: -3px; top: 120px; height: 34px; }
.side.s2 { left: -3px; top: 168px; height: 58px; }
.side.s3 { right: -3px; top: 150px; height: 82px; }
.screen {
  position: relative; width: var(--sw); aspect-ratio: 390 / 844; overflow: hidden;
  border-radius: 40px; background: #FAFAFA; isolation: isolate;
}
.glass {
  position: absolute; inset: 0; z-index: 9; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .07) 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25);
}
.floor {
  position: absolute; left: 10%; right: 10%; bottom: -34px; height: 34px; z-index: -1;
  background: radial-gradient(closest-side, rgba(20, 24, 28, .32), transparent);
  filter: blur(4px);
}
.phone-wrap figcaption {
  width: fit-content; margin: 30px auto 0; padding: 4px 10px; border-radius: 4px;
  background: var(--canvas); text-align: center; font-size: 13px; color: var(--ink-soft);
}

/* profile mock, sized in screen units (1u = 1/390 of the screen width) */
.profile {
  --u: calc(var(--sw) / 390);
  position: absolute; inset: 0; color: #111; font-family: var(--text);
  font-size: calc(var(--u) * 15); line-height: 1.35;
}
.p-status { display: flex; justify-content: space-between; align-items: center; padding: calc(var(--u)*18) calc(var(--u)*30) calc(var(--u)*6); font-size: calc(var(--u)*15); }
.p-icons { display: flex; gap: calc(var(--u)*5); }
.p-icons i { width: calc(var(--u)*17); height: calc(var(--u)*10); border-radius: 2px; background: #111; }
.p-icons i:nth-child(1) { width: calc(var(--u)*14); clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.p-icons i:nth-child(3) { width: calc(var(--u)*24); border-radius: 3px; background: none; box-shadow: inset 0 0 0 1.5px #111, inset calc(var(--u)*-6) 0 0 1.5px #fff; }
.p-top { display: flex; align-items: center; gap: calc(var(--u)*14); padding: calc(var(--u)*10) calc(var(--u)*18); font-size: calc(var(--u)*19); }
.p-back { width: calc(var(--u)*11); height: calc(var(--u)*11); border-left: 2px solid #111; border-bottom: 2px solid #111; transform: rotate(45deg); }
.p-dots { margin-left: auto; width: calc(var(--u)*20); height: calc(var(--u)*4); background: radial-gradient(circle, #111 45%, transparent 50%) 0 0 / calc(var(--u)*7) 100%; }
.p-head { display: flex; align-items: center; gap: calc(var(--u)*20); padding: calc(var(--u)*8) calc(var(--u)*18); }
.p-avatar {
  flex: none; width: calc(var(--u)*86); height: calc(var(--u)*86); border-radius: 50%;
  padding: calc(var(--u)*3); background: conic-gradient(#C9A24A, #1F2C47, #C9A24A);
}
.p-avatar span {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  border: calc(var(--u)*3) solid #fff; background: #1F2C47; color: #EDE6D6;
  font: 600 calc(var(--u)*40)/1 "Cormorant Garamond", serif;
}
.p-stats { flex: 1; display: flex; justify-content: space-around; text-align: center; font-size: calc(var(--u)*13); }
.p-stats b { display: block; font-size: calc(var(--u)*18); }
.p-bio { display: grid; padding: calc(var(--u)*4) calc(var(--u)*18) calc(var(--u)*12); font-size: calc(var(--u)*14.5); }
.p-dm { color: #1F2C47; font-weight: 600; }
.p-btns { display: grid; grid-template-columns: 1fr 1fr; gap: calc(var(--u)*7); padding: 0 calc(var(--u)*18) calc(var(--u)*14); }
.p-btns span { text-align: center; padding: calc(var(--u)*8) 0; border-radius: calc(var(--u)*9); background: #EFEFEF; font-weight: 600; font-size: calc(var(--u)*14); }
.p-btns span:first-child { background: #1F2C47; color: #fff; }
.p-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid #E6E6E6; }
.p-tabs i { height: calc(var(--u)*40); position: relative; }
.p-tabs i::after { content: ""; position: absolute; left: 50%; top: 50%; width: calc(var(--u)*18); height: calc(var(--u)*18); translate: -50% -50%; border: 2px solid #BBB; border-radius: 3px; }
.p-tabs i.on { box-shadow: inset 0 -1.5px 0 #111; }
.p-tabs i.on::after { border-color: #111; }
.p-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.p-grid div {
  aspect-ratio: 4 / 5; display: flex; align-items: flex-end; padding: calc(var(--u)*10);
  background: #1F2C47; color: #EDE6D6;
}
.p-grid div.alt { background: #EDE6D6; color: #1F2C47; }
.p-grid span { font: 600 calc(var(--u)*17)/1.02 "Cormorant Garamond", serif; }

/* tiles + site strip */
.tiles { position: absolute; inset: 0; z-index: 4; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(6, 1fr); perspective: 700px; }
.tile {
  background-image: url("assets/duarte-m0.webp"); background-size: 300% 600%;
  transform: rotateY(calc((1 - var(--t, 0)) * 92deg)) scale(calc(.9 + var(--t, 0) * .1));
  backface-visibility: hidden; transform-origin: 50% 50%;
  opacity: min(1, calc(var(--t, 0) * 6));
  box-shadow: inset 0 0 0 100vmax rgba(0, 0, 0, calc((1 - var(--t, 0)) * .45));
}
.site-strip { position: absolute; inset: 0 0 auto; z-index: 5; display: grid; opacity: 0; transform: translateY(calc(var(--scrollIn, 0) * -60%)); }
.site-strip img { width: 100%; height: auto; display: block; }
.is-strip .site-strip { opacity: 1; }
.is-strip .tiles { visibility: hidden; }

/* foreground chat */
.chat {
  position: absolute; z-index: 6; width: min(330px, 30vw);
  left: calc(52% - 40px); bottom: 15vh;
  display: grid; gap: 12px;
  transform: translate3d(calc(var(--mx) * 18px), calc(var(--p) * -110px + var(--my) * 12px), 0);
}
.msg {
  position: relative; padding: 12px 14px 22px; border-radius: 16px; font-size: 14.5px; line-height: 1.4;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 18px 34px -16px rgba(20, 24, 28, .45);
}
.msg p { margin: 0; }
.msg time { position: absolute; right: 12px; bottom: 6px; font-size: 11px; color: #6B7176; }
.msg .who { display: block; font-size: 12px; font-weight: 600; color: var(--accent); margin-bottom: 2px; }
.msg-in { background: #fff; border-top-left-radius: 4px; width: 92%; }
.msg-out {
  background: #DCF4D7; border-top-right-radius: 4px; justify-self: end; width: 88%;
  opacity: var(--reply, 0); transform: translateY(calc((1 - var(--reply, 0)) * 16px)) scale(calc(.96 + var(--reply, 0) * .04));
}
.msg-out time { color: #4C6B49; }
.preview { margin-top: 8px; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, .7); display: grid; }
.preview img { width: 100%; height: 92px; object-fit: cover; object-position: 50% 30%; }
.preview b { font-size: 13px; padding: 7px 10px 0; }
.preview span { font-size: 11.5px; color: #4C6B49; padding: 0 10px 8px; }

/* ---------- shared section bits ---------- */
.btn-ink { background: var(--ink); color: var(--canvas); border: 0; cursor: pointer; }
.btn-ink:hover { background: #2C3238; }
.sec-head { max-width: 760px; margin-bottom: clamp(56px, 8vw, 110px); }
.works h2, .how h2, .contact h2 {
  font: 800 clamp(44px, 6vw, 92px)/.95 var(--display); letter-spacing: -.04em; margin: 0 0 18px;
}
.sec-head p, .how-head p, .contact-lede { font-size: 19px; color: var(--ink-soft); margin: 0; max-width: 46ch; text-wrap: pretty; }

/* ---------- Trabalhos ---------- */
.works { position: relative; z-index: 1; background: var(--surface); padding: clamp(96px, 12vw, 170px) var(--gutter); border-top: 1px solid var(--line); }
.work {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: center;
  max-width: 1320px; margin: 0 auto;
}
.work + .work { margin-top: clamp(110px, 14vw, 190px); }
.work--flip { grid-template-columns: .8fr 1.2fr; }
.work--flip .work-vis { order: 2; }
.work-vis { position: relative; height: clamp(440px, 46vw, 600px); --swn: 236; --sw: calc(var(--swn) * 1px); --q: 0; }
.win {
  position: absolute; left: 0; top: 4%; width: 84%; margin: 0;
  border-radius: 10px; overflow: hidden; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 30px 60px -30px rgba(20, 24, 28, .45);
  transform: translate3d(0, calc(var(--q) * 26px), 0);
}
.work--flip .win { left: auto; right: 0; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; background: #ECEDEA; border-bottom: 1px solid #DCDDD8; }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: #CFD1CB; }
.win-bar span { margin-left: 12px; padding: 3px 12px; border-radius: 5px; background: #fff; font-size: 12px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win img { display: block; width: 100%; height: auto; }
.phone-sm { width: calc(var(--sw) + 20px); position: absolute; right: 2%; bottom: 0; transform: translate3d(0, calc(var(--q) * -46px), 0); border-radius: 44px; padding: 10px; }
.work--flip .phone-sm { right: auto; left: 2%; }
.phone-sm .screen { border-radius: 34px; }
.phone-sm .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone-sm iframe {
  position: absolute; left: 0; top: 0; width: 390px; height: 844px; border: 0; background: #fff;
  transform: scale(calc(var(--swn) / 390)); transform-origin: 0 0;
  opacity: 0; pointer-events: none; transition: opacity .4s ease;
}
.work.is-live iframe { opacity: 1; pointer-events: auto; }
.work.is-live .glass { display: none; }
.work.is-live .phone-sm { box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.14), inset 0 0 0 3px #0B0C0E, 0 0 0 4px var(--accent), 0 40px 70px -24px rgba(20, 24, 28, .6); }

.work-text { max-width: 470px; }
.work-text > * { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.work.is-in .work-text > * { opacity: 1; transform: none; }
.work.is-in .work-text > :nth-child(2) { transition-delay: .06s; }
.work.is-in .work-text > :nth-child(3) { transition-delay: .12s; }
.work.is-in .work-text > :nth-child(4) { transition-delay: .18s; }
.work.is-in .work-text > :nth-child(5) { transition-delay: .24s; }
.tag { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 2px; background: var(--wa); }
.work h3 { font: 800 clamp(32px, 3.4vw, 50px)/1 var(--display); letter-spacing: -.03em; margin: 0 0 28px; text-wrap: balance; }
.work dl { margin: 0 0 30px; display: grid; gap: 6px; }
.work dt { font-weight: 600; font-size: 14px; color: var(--ink); margin-top: 12px; }
.work dt:first-child { margin-top: 0; }
.work dd { margin: 0; color: var(--ink-soft); text-wrap: pretty; }
.work-ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.fine { margin: 16px 0 0; font-size: 13px; color: var(--ink-soft); }

/* ---------- Como funciona (the one dark act) ---------- */
.how {
  --ink: #ECEDE7; --ink-soft: #A9B0B5;
  color: var(--ink); background: #14171A;
  display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 7vw, 120px);
  padding: clamp(96px, 12vw, 170px) var(--gutter);
  background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1.4px); background-size: 22px 22px;
}
.how-head { position: sticky; top: 120px; align-self: start; }
.how-head .btn { margin-top: 30px; }
.thread { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 520px; width: 100%; }
.thread > li { opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .45s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.thread > li.is-in { opacity: 1; transform: none; }
.chip { justify-self: center; margin: 26px 0 8px; }
.chip:first-child { margin-top: 0; }
.chip span { display: inline-block; padding: 6px 14px; border-radius: 8px; background: #262B30; color: #D5D9DB; font-size: 13px; font-weight: 600; }
.b { position: relative; max-width: 82%; padding: 11px 14px; border-radius: 14px; font-size: 16px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.3); }
.b.in { justify-self: start; background: #252A2F; color: #ECEDE7; border-top-left-radius: 4px; }
.b.out { justify-self: end; background: #1E4A3D; color: #EEF6F2; border-top-right-radius: 4px; }
.att { display: block; width: 112px; height: auto; margin-top: 10px; border-radius: 8px; }
.thread > li.typing { justify-self: end; display: flex; gap: 5px; padding: 14px 16px; border-radius: 14px; border-top-right-radius: 4px; background: #1E4A3D; opacity: 1; transform: none; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: #9CC7B8; animation: dot 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* ---------- Contato ---------- */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 100px); align-items: center;
  max-width: 1320px; margin: 0 auto; padding: clamp(96px, 12vw, 170px) var(--gutter);
}
.facts { list-style: none; padding: 0; margin: 40px 0 0; display: grid; max-width: 460px; }
.facts li { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); color: var(--ink-soft); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts span { color: var(--ink); font-weight: 600; }
.facts a { color: var(--ink); font-weight: 600; text-decoration-color: var(--accent); text-underline-offset: 4px; }
.bio-card {
  justify-self: center; width: min(100%, 420px); padding: 26px; border-radius: 22px; background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 40px 70px -30px rgba(20, 24, 28, .4);
  transform: rotate(-1.5deg);
}
.bio-head { display: flex; align-items: center; gap: 16px; }
.bio-av { flex: none; width: 74px; height: 74px; border-radius: 50%; padding: 3px; background: conic-gradient(var(--accent), #E9A23B, var(--accent)); }
.bio-av span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 3px solid #fff; background: var(--canvas); font: 800 28px/1 var(--display); color: var(--ink); text-transform: uppercase; }
.bio-id { display: grid; min-width: 0; }
.bio-id b { font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bio-id span { color: var(--ink-soft); font-size: 14px; }
.bio-line { margin: 16px 0 4px; font-size: 15px; color: var(--ink-soft); }
.bio-link { display: flex; align-items: center; gap: 8px; margin: 0 0 22px; font-size: 15px; font-weight: 600; color: var(--accent); min-height: 24px; }
.bio-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; flex: none; }
.bio-link.is-empty { color: #8A9095; font-weight: 500; text-decoration: line-through; }
.bio-link.pop { animation: pop .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes pop { from { transform: scale(.9); opacity: .4; } to { transform: none; opacity: 1; } }
.bio-field { display: grid; gap: 6px; margin-bottom: 14px; font-size: 13px; font-weight: 600; }
.bio-field input {
  font: 500 17px/1 var(--text); padding: 14px; border-radius: 8px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.bio-field input:focus { outline: none; border-color: var(--ink); }
.bio-send { width: 100%; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 28px var(--gutter) 40px; border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 14px; }
.foot .mark { font-size: 18px; }


/* ---------- phone layout ---------- */
@media (max-width: 860px) {
  .bar-links { display: none; }
  .bar { justify-content: space-between; }
  .hero { height: 260vh; }
  .stage {
    grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start;
    padding-top: 84px; row-gap: 14px;
  }
  .h-swap > span { font-size: clamp(32px, 9vw, 44px); }
  .h-swap { margin-bottom: 10px; }
  .lede { font-size: 15px; margin-bottom: 0; }
  .ctas { display: none; }
  .phone-wrap { --sw: min(210px, 54vw, 30svh); align-self: start; transform: none; }
  .phone { border-radius: 40px; padding: 9px; }
  .screen { border-radius: 31px; }
  .phone-wrap figcaption { margin-top: 22px; font-size: 12px; }
  .back { font-size: 30vw; }
  .chat { width: min(250px, 66vw); left: 4vw; bottom: 9svh; }
  .msg-in { opacity: calc(1 - var(--reply, 0)); }
  .msg-out { margin-top: -86px; }
  .msg { font-size: 13px; padding: 10px 12px 20px; }
  .preview img { height: 70px; }
  .work, .work--flip { grid-template-columns: 1fr; }
  .work--flip .work-vis { order: 0; }
  .work-vis { height: auto; aspect-ratio: 1 / .92; --swn: 132; }
  .win { width: 92%; top: 0; }
  .phone-sm { border-radius: 26px; padding: 6px; width: calc(var(--sw) + 12px); }
  .phone-sm .screen { border-radius: 21px; }
  .try { display: none; }
  .how { grid-template-columns: 1fr; }
  .how-head { position: static; }
  .b { font-size: 15px; }
  .contact { grid-template-columns: 1fr; }
  .bio-card { transform: none; padding: 20px; }
}
@media (max-height: 760px) and (min-width: 861px) {
  .phone-wrap { --sw: min(270px, 40vh); }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .stage { position: relative; height: auto; min-height: 100svh; padding-bottom: 60px; }
  .h-swap > span { transition: none; }
  .work-text > *, .thread > li { opacity: 1; transform: none; transition: none; }
  .win, .phone-sm { transform: none; }
}
