/*
 * mydeux.com home page, on top of base.css. Calm and plain, in the spirit of
 * the big messengers' own sites: a photo in a rounded frame, light large
 * titles, and the conversations of the people in each photo. Since 4 Nov 2026
 * it also carries the marks real life leaves: handwriting, a crossed-out word,
 * prints with tape, film grain, texts written the way people text. The motion
 * lives in js/home.js.
 */

/* The handwriting (SIL OFL 1.1, fonts/OFL.txt), only on this page. */
@font-face {
  font-family: "Nanum Pen Script";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/nanum-pen-script-latin.woff2") format("woff2");
}
:root {
  --pen: #24339A;
  --graphite: #3A3936;
  --paint: #FFFDF4;
  --sky-soft: #EAF5FB;
  --sky-bubble: #E3F2FB;
  --sky-ink: #23607F;
  --hand: "Nanum Pen Script", "Bradley Hand", "Segoe Print", cursive;
}

/* A little paper tooth on the cream parts. The files in img/ never change in
   place (a new look gets a new name), because css cannot stamp what it loads. */
body { background-image: url("/img/paper-v1.svg"); background-size: 260px; }

/* ---------- Hand-made marks ---------- */
.grain { position: absolute; inset: 0; pointer-events: none; background: url("/img/grain-v1.svg") repeat; background-size: 200px; mix-blend-mode: overlay; opacity: 0.5; }
.hand { margin: 0; font-family: var(--hand); font-weight: 400; letter-spacing: 0; line-height: 0.95; color: var(--pen); text-wrap: pretty; }
.hand--photo { position: absolute; z-index: 2; color: var(--paint); font-size: 34px; text-shadow: 0 1px 10px rgba(10, 12, 26, 0.45); }
.arrow { position: absolute; overflow: visible; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
/* a word crossed out by hand */
.struck { position: relative; display: inline-block; white-space: nowrap; }
.struck > span { opacity: 0.5; }
.struck::after { content: ""; position: absolute; left: -3%; right: -3%; top: 50%; height: 0.36em; transform: translateY(-40%) rotate(-2deg); background: var(--strike, var(--pen));
  -webkit-mask: url("/img/hand-strike-v1.svg") center / 100% 100% no-repeat; mask: url("/img/hand-strike-v1.svg") center / 100% 100% no-repeat; }
/* a word circled by hand */
.ringed { position: relative; display: inline-block; white-space: nowrap; }
.ringed::after { content: ""; position: absolute; left: -7%; right: -9%; top: -6%; bottom: -14%; background: var(--pen); pointer-events: none;
  -webkit-mask: url("/img/hand-circle-v1.svg") center / 100% 100% no-repeat; mask: url("/img/hand-circle-v1.svg") center / 100% 100% no-repeat; }
.mark-mini { flex: none; width: 21px; height: 16px; }

/* ---------- Hero: the photo in a rounded frame ---------- */
.hero { padding: 8px 0 0; }
.hero__card { position: relative; width: min(1392px, 100% - 48px); height: clamp(560px, calc(100svh - 104px), 760px); margin-inline: auto; overflow: hidden; border-radius: 32px; background: var(--night); color: var(--white); }
.hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 62% 36%; filter: saturate(0.9) contrast(1.03); }
.hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 12, 26, 0.72) 0%, rgba(10, 12, 26, 0.42) 32%, rgba(10, 12, 26, 0) 58%); }
.hero__copy { position: absolute; left: clamp(28px, 5.5vw, 80px); top: 50%; width: min(560px, 42%); transform: translateY(-50%); }
.hero h1 { --strike: var(--butter); font-size: clamp(52px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.hero h1 .struck > span { opacity: 0.55; }
/* The French title is longer: a little smaller on computers, so it stays on three lines. */
@media (min-width: 1181px) { :lang(fr) .hero h1 { font-size: clamp(52px, 4.4vw, 64px); } }
.hero .lead { margin-top: 22px; font-size: 18px; color: rgba(255, 255, 255, 0.88); }
.actions { display: grid; gap: 14px; margin-top: 30px; }
.hero .fine { color: rgba(255, 255, 255, 0.72); }

/* the conversation over the street, left of her phone; the note above it, off her face */
.hero__bubbles { position: absolute; left: 46%; top: 22%; z-index: 1; width: 250px; }
.hand--hero { bottom: calc(100% + 10px); left: 44px; width: max-content; max-width: 280px; transform: rotate(-5deg); }
.hand--hero .arrow { left: -44px; top: 26px; width: 46px; height: 40px; }
.hero__set { display: grid; gap: 10px; }
.hero__set.is-leaving { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(-16px); transition: opacity 0.5s ease, transform 0.6s ease; }

/* ---------- Chat bubbles, in the app's own style ---------- */
.bubble { position: relative; max-width: 290px; margin: 0; padding: 10px 14px 8px; border-radius: 20px; font-size: 15px; line-height: 1.4; box-shadow: 0 12px 30px rgba(10, 12, 26, 0.22); }
.bubble--in, .bubble--draft { justify-self: start; border-bottom-left-radius: 6px; background: var(--white); color: var(--ink); }
.bubble--draft { color: var(--ink-2); }
.bubble--draft .struck::after { left: -2%; right: -2%; top: 55%; height: 0.5em; transform: translateY(-50%) rotate(-1.5deg); -webkit-mask-image: url("/img/hand-strike-thin-v1.svg"); mask-image: url("/img/hand-strike-thin-v1.svg"); }
.bubble--draft .struck > span { opacity: 1; }
.bubble--out { justify-self: end; border-bottom-right-radius: 6px; background: var(--blue); color: var(--white); }
.bubble--deux { justify-self: start; border-bottom-left-radius: 6px; background: var(--sky-bubble); color: var(--ink); }
.bubble__who { display: block; margin-bottom: 1px; color: var(--blue-ink); font-size: 12.5px; font-weight: 700; }
.bubble--draft .bubble__who { color: var(--muted); }
.bubble--deux .bubble__who { display: flex; align-items: center; gap: 6px; color: var(--sky-ink); }
.bubble__time { display: block; margin-top: 2px; font-size: 11px; text-align: right; opacity: 0.65; }
.bubble__heart { position: absolute; right: -8px; bottom: -12px; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--white); font-size: 13px; box-shadow: 0 4px 12px rgba(10, 12, 26, 0.18); }
.bubble__translated { display: block; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 13px; }
.bubble--typing { display: inline-flex; justify-self: start; gap: 5px; padding: 14px 16px; border-bottom-left-radius: 6px; background: var(--sky-bubble); }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--sky-ink); animation: typing 1s ease-in-out infinite; }
.bubble--typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble--typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 70%, 100% { opacity: 0.35; transform: none; } 35% { opacity: 1; transform: translateY(-3px); } }
.voice { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; color: var(--muted); font-size: 12.5px; font-weight: 700; }
.voice__play { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 10px; }
.voice__wave { position: relative; flex: 1; height: 16px; background: repeating-linear-gradient(90deg, rgba(79, 91, 255, 0.3) 0 3px, transparent 3px 6px); }
.voice__wave::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--blue) 0 3px, transparent 3px 6px); }

/* ---------- Shared section parts ---------- */
section h2 { font-size: clamp(40px, 4.6vw, 64px); }

/* ---------- Who it is for: a statement, and messages around it ---------- */
.intro { position: relative; padding: 130px 0 140px; overflow: hidden; }
.intro__text { position: relative; z-index: 1; max-width: 860px; text-align: center; }
.intro__text p { max-width: 640px; margin: 26px auto 0; color: var(--ink-2); font-size: 19px; }
.intro__float { position: absolute; inset: 0; }
.pm { position: absolute; }
.pm__in { display: flex; align-items: flex-end; gap: 8px; }
.av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; color: var(--butter-ink); font-size: 15px; font-weight: 700; }
.av--butter { background: var(--butter); } .av--sky { background: #BFE0F2; } .av--pink { background: #FFD3DE; }
.av--sage { background: #CDE8D8; } .av--lilac { background: #DDD3F5; } .av--peach { background: #FFD9C7; }
.pm__b { padding: 8px 12px 6px; border-radius: 16px; border-bottom-left-radius: 5px; background: var(--white); color: var(--ink); font-size: 14px; line-height: 1.35; white-space: nowrap; box-shadow: 0 8px 24px rgba(22, 24, 29, 0.08); }
.pm__b small { margin-left: 8px; color: var(--muted); font-size: 10.5px; }
.pm__stack { display: grid; gap: 4px; justify-items: start; }
.pm__stack .pm__b + .pm__b { border-top-left-radius: 5px; }
.pm__b--voice { display: inline-flex; align-items: center; gap: 8px; }
.pm__play { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--blue); color: var(--white); font-size: 8px; }
.mini-wave { display: inline-block; width: 74px; height: 12px; background: repeating-linear-gradient(90deg, rgba(79, 91, 255, 0.55) 0 2px, transparent 2px 5px); }
.pm--1 { left: 10%; top: 52px; } .pm--2 { left: 44%; top: 22px; } .pm--3 { right: 3%; top: 18px; }
.pm--4 { left: 6%; bottom: 84px; } .pm--5 { left: 41%; bottom: 26px; } .pm--6 { right: 9%; bottom: 60px; }
.pm--7 { left: 3%; top: 58%; } .pm--8 { right: 3%; top: 55%; }
/* The two extra messages only where there is room for them (the French title is wider). */
@media (max-width: 1280px) { .pm--7, .pm--8 { display: none; } }
@media (max-width: 1180px) { .pm--2 { display: none; } }

/* ---------- How Deux helps ---------- */
.helper { padding: 40px 0 150px; }
.helper__head { max-width: 760px; }
.helper__head .lead { margin-top: 20px; }
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 90px; align-items: center; margin-top: 110px; }
.feature--flip .feature__pic { order: 2; }
.feature__pic { position: relative; overflow: hidden; border-radius: 28px; }
/* The photo files are cut to what is shown (Docs/website/README.md, "Photos"). */
.feature__pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; }
.feature__chat { position: absolute; left: 26px; right: 26px; bottom: 26px; display: grid; gap: 8px; max-width: 330px; }
.pic--bw img { filter: grayscale(1) contrast(1.12) brightness(1.03); }
.hand--cafe { right: 26px; top: 26px; transform: rotate(4deg); }
.hand--tram { left: 26px; top: 24px; max-width: 250px; transform: rotate(-4deg); color: var(--ink); text-shadow: 0 0 6px rgba(255, 253, 244, 0.9), 0 0 14px rgba(255, 253, 244, 0.7); }
.hand--night { right: 28px; top: 30px; transform: rotate(3deg); }
.feature__chat .bubble--out { justify-self: start; }
.feature__label { color: var(--blue-ink); font-size: 15px; font-weight: 700; }
.feature__text h3 { margin-top: 14px; font-size: clamp(34px, 3.4vw, 46px); }
.feature__text p:not(.feature__label):not(.tone-try) { margin-top: 18px; color: var(--ink-2); }
.tone-try { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.tone-try > span { margin-right: 6px; color: var(--muted); font-size: 14px; font-weight: 700; }
.tone-btn { padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: 700 14px/1 var(--body); cursor: pointer; transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
.tone-btn:hover { border-color: var(--ink); }
.tone-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.helper__note { margin-top: 90px; color: var(--muted); font-size: 14.5px; text-align: center; }

/* ---------- And everything a messenger should do ---------- */
.more { padding: 70px 0 130px; }
.more__head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; align-items: start; margin-top: 64px; }
.print { position: relative; padding: 12px 12px 0; border-radius: 3px; background: var(--white); box-shadow: 0 1px 2px rgba(41, 40, 36, 0.1), 0 18px 36px rgba(41, 40, 36, 0.12); }
.print figcaption { padding: 12px 4px 14px; color: var(--graphite); font-size: 30px; }
.tape { position: absolute; z-index: 3; top: -13px; left: 50%; width: 96px; height: 28px; background: rgba(255, 233, 160, 0.72); box-shadow: 0 1px 2px rgba(41, 40, 36, 0.08); transform: translateX(-50%) rotate(-4deg); }
.tilt-1 { transform: rotate(-1.6deg); }
.tilt-2 { transform: rotate(1.2deg) translateY(26px); }
.tilt-3 { transform: rotate(-0.7deg) translateY(6px); }
.tilt-2 .tape { transform: translateX(-30%) rotate(5deg); }
.tilt-3 .tape { left: 22%; transform: rotate(-9deg); }
.card__pic { position: relative; overflow: hidden; border-radius: 2px; }
.card__pic img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card__chat { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 8px; }
.card__chat .bubble { max-width: none; font-size: 14px; }
.card h3 { margin-top: 30px; font-size: 26px; letter-spacing: -0.03em; }
.tilt-2 + h3 { margin-top: 56px; }
.card p { margin-top: 8px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- Make it yours: a small chat in the color you pick ---------- */
.looks { padding: 130px 0; }
.looks__in { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.looks__text > p { max-width: 500px; margin-top: 20px; color: var(--ink-2); font-size: 19px; }
.looks__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 32px; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; box-shadow: 0 0 0 3px var(--page); transition: transform 0.2s ease, box-shadow 0.2s ease; }
.sw:hover { transform: scale(1.08); }
.sw[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--page), 0 0 0 5px var(--ink); }
.sw--cloud { background: #4F5BFF; } .sw--lagoon { background: #0E7C86; } .sw--sage { background: #1E7A55; } .sw--blush { background: #C4364F; }
.sw--lilac { background: #8A63D2; } .sw--peach { background: #E2603F; } .sw--mono { background: #1A1A1A; }
.modes { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(22, 24, 29, 0.06); }
.mode { padding: 9px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font: 700 14px/1 var(--body); cursor: pointer; }
.mode[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: 0 2px 8px rgba(22, 24, 29, 0.1); }
.looks__demo { --accent: #4F5BFF; --on-accent: #FFFFFF; --tint: #EEF0FE; --surface: #FFFFFF; --text: #16181D; --sub: #6B6E78;
  display: grid; gap: 10px; justify-self: center; width: 100%; max-width: 400px; padding: 22px; border-radius: 30px; background: var(--tint); color: var(--text); transition: background-color 0.5s ease, color 0.5s ease; }
.looks__demo[data-color="lagoon"] { --accent: #0E7C86; --tint: #E7F4F5; }
.looks__demo[data-color="sage"] { --accent: #1E7A55; --tint: #E8F3EC; }
.looks__demo[data-color="blush"] { --accent: #C4364F; --tint: #FBEDF0; }
.looks__demo[data-color="lilac"] { --accent: #8A63D2; --tint: #F1ECFB; }
.looks__demo[data-color="peach"] { --accent: #E2603F; --tint: #FCEEE9; }
.looks__demo[data-color="mono"] { --accent: #1A1A1A; --tint: #EFEFEF; }
.looks__demo[data-mode="dark"] { --tint: #15171F; --surface: #262935; --text: #F2F3FA; --sub: #9DA2BF; }
.looks__demo[data-mode="dark"][data-color="mono"] { --accent: #ECECF2; --on-accent: #16181D; }
.demo__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; padding-bottom: 12px; border-bottom: 1px solid rgba(127, 127, 140, 0.22); }
.demo__avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 700; transition: background-color 0.5s ease; }
.demo__bubble { max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.4; transition: background-color 0.5s ease, color 0.5s ease; }
.demo__bubble--in { justify-self: start; border-bottom-left-radius: 6px; background: var(--surface); }
.demo__bubble--out { justify-self: end; border-bottom-right-radius: 6px; background: var(--accent); color: var(--on-accent); }
.demo__bar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding: 7px 7px 7px 16px; border-radius: 999px; background: var(--surface); color: var(--sub); font-size: 14px; transition: background-color 0.5s ease; }
.demo__bar i { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); transition: background-color 0.5s ease; }

/* ---------- Privacy: light and warm, short true promises ---------- */
.private { padding: 120px 0; background: var(--sky-soft); }
.private__in { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 64px; align-items: start; }
.private .lead { margin-top: 18px; color: var(--ink-2); }
.private__links { margin-top: 26px; color: var(--ink-2); font-size: 15px; }
.private__links a { color: var(--ink); font-weight: 700; }
.private__hand { margin-top: 34px; color: var(--sky-ink); font-size: 34px; transform: rotate(-3deg); transform-origin: left center; }
.promises { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.promises li { position: relative; padding: 18px 20px 18px 56px; border-radius: 20px; background: var(--white); color: var(--ink-2); font-size: 16px; line-height: 1.5; box-shadow: 0 1px 2px rgba(22, 24, 29, 0.05), 0 12px 28px rgba(35, 96, 127, 0.08); }
.promises li::before { content: ""; position: absolute; left: 20px; top: 20px; width: 24px; height: 24px; background: var(--sky-ink); transform: rotate(-5deg);
  -webkit-mask: url("/img/hand-tick-v1.svg") center / contain no-repeat; mask: url("/img/hand-tick-v1.svg") center / contain no-repeat; }
.promises b { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 700; }
.promises li:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* ---------- Questions ---------- */
.faq-section { padding: 140px 0; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 80px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 24px 48px 24px 0; cursor: pointer; font-size: 20px; font-weight: 500; letter-spacing: -0.015em; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); color: var(--ink-2); font-size: 28px; font-weight: 500; line-height: 1; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { display: grid; gap: 12px; padding: 0 0 26px; color: var(--ink-2); font-size: 17px; }
.faq__a a { color: var(--blue-ink); font-weight: 700; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.35s ease, content-visibility 0.35s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}
.safety-line { display: flex; gap: 12px; align-items: flex-start; margin-top: 36px; color: var(--muted); font-size: 15px; }
.safety-line .ic { margin-top: 1px; color: var(--ink-2); }
.safety-line a { color: var(--ink); font-weight: 700; }

/* ---------- The person who makes Deux ---------- */
.maker { padding: 120px 0 110px; }
.maker__in { display: grid; grid-template-columns: 330px 1fr; gap: 80px; align-items: center; max-width: 1000px; }
.print--maker { transform: rotate(-2.4deg); }
.maker__img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.maker__text h2 { color: var(--ink); font-family: var(--hand); font-size: 76px; font-weight: 400; letter-spacing: 0; line-height: 0.9; }
.maker__text p:not(.hand) { max-width: 520px; margin-top: 20px; color: var(--ink-2); font-size: 21px; line-height: 1.55; }
.maker__sign { margin-top: 22px; font-size: 56px; transform: rotate(-4deg); transform-origin: left center; }

/* ---------- Closing call ---------- */
.join { padding: 130px 0; background: var(--butter-soft); color: var(--butter-ink); text-align: center; }
.join h2 { font-size: clamp(44px, 5.4vw, 76px); }
.hand--join { margin-top: 10px; font-size: 36px; transform: rotate(-2deg); }
.join .lead { max-width: 520px; margin: 20px auto 0; color: rgba(41, 40, 36, 0.8); }
.join .fine { color: rgba(41, 40, 36, 0.65); }
.join__mark circle, .join__lens { transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.6s ease 0.8s; }

/* ---------- Motion (js/home.js adds .motion only when the device allows it) ---------- */
.motion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.motion .reveal.is-in { opacity: 1; transform: none; }
.motion .chat-item { opacity: 0; transform: translateY(12px) scale(0.97); transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.motion .chat-item.is-shown { opacity: 1; transform: none; }
.motion [data-tone-bubble].is-swap { animation: swap 0.45s ease; }
@keyframes swap { from { opacity: 0.25; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.motion .join__mark:not(.is-in) .join__left { transform: translateX(-56px); }
.motion .join__mark:not(.is-in) .join__right { transform: translateX(56px); }
.motion .join__mark:not(.is-in) .join__lens { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .hero__photo { animation: settle 18s cubic-bezier(0.2, 0.6, 0.2, 1) both; }
  .hero__copy > * { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .hero__copy > :nth-child(2) { animation-delay: 0.1s; }
  .hero__copy > :nth-child(n+3) { animation-delay: 0.2s; }
  .hero__bubbles .bubble--in { animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.8s both; }
  .hero__bubbles .bubble__heart { animation: pop 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.5) 1.7s both; }
  .hero__bubbles .bubble--out { animation: pop 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.2) 2.4s both; }
  .hero__set--next .bubble--in { animation-delay: 0.3s; }
  .hero__set--next .bubble--out { animation-delay: 1.2s; }
  .hero__set--next .bubble__heart { animation-delay: 1.9s; }
  .pm__in { animation: float 15s ease-in-out infinite alternate; }
  .pm--2 .pm__in { animation-duration: 18s; animation-delay: -6s; }
  .pm--3 .pm__in { animation-duration: 13s; animation-delay: -9s; }
  .pm--4 .pm__in { animation-duration: 17s; animation-delay: -3s; }
  .pm--5 .pm__in { animation-duration: 20s; animation-delay: -12s; }
  .pm--6 .pm__in { animation-duration: 14s; animation-delay: -7s; }
  .pm--7 .pm__in { animation-duration: 19s; animation-delay: -2s; }
  .pm--8 .pm__in { animation-duration: 16s; animation-delay: -10s; }
  .voice__wave::after { animation: listen 5s linear 1.5s infinite; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .feature__pic img, .card__pic img { animation: drift linear both; animation-timeline: view(); }
  }
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(0.92); } to { opacity: 1; transform: none; } }
@keyframes float { 0% { transform: translate(0, 0); } 50% { transform: translate(7px, -10px); } 100% { transform: translate(-6px, 8px); } }
@keyframes drift { from { transform: scale(1.1) translateY(-3%); } to { transform: scale(1.1) translateY(3%); } }
@keyframes listen { 0% { width: 0; } 80%, 100% { width: 100%; } }

/* ---------- Links land below the bar ---------- */
main section[id] { scroll-margin-top: 80px; }

/* ---------- Laptops and landscape tablets ---------- */
@media (min-width: 761px) and (max-width: 1180px) {
  .hero__shade { background: linear-gradient(0deg, rgba(10, 12, 26, 0.85) 0%, rgba(10, 12, 26, 0.45) 45%, rgba(10, 12, 26, 0) 70%), linear-gradient(90deg, rgba(10, 12, 26, 0.4) 0%, rgba(10, 12, 26, 0) 55%); }
  .hero__copy { top: auto; bottom: 40px; left: 40px; width: min(520px, 62%); transform: none; }
  .hero h1 { font-size: 60px; }
  .hero__bubbles { left: 32px; top: 28px; width: 260px; }
  .feature { gap: 56px; }
}
@media (max-width: 1180px) {
  .hand--hero { top: 24px; bottom: auto; left: calc(100% + 18px); width: max-content; max-width: 220px; font-size: 30px; transform: rotate(-4deg); }
  .hand--hero .arrow { display: none; }
}

@media (max-width: 960px) {
  .feature, .feature--flip { grid-template-columns: 1fr; gap: 36px; max-width: 640px; margin-inline: auto; }
  .feature--flip .feature__pic { order: 0; }
  .more__head, .private__in, .faq-grid, .looks__in { grid-template-columns: 1fr; gap: 40px; }
  .cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; gap: 56px; }
  .tilt-2 { transform: rotate(1.2deg); }
  .pm--2, .pm--5, .pm--7, .pm--8 { display: none; }
}

/* ---------- Phones ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 4px; }
  .hero__card { width: calc(100% - 24px); height: calc(100svh - 82px); min-height: 560px; max-height: 760px; border-radius: 26px; }
  .hero__photo { object-position: 70% 36%; }
  .hero__shade { background: linear-gradient(0deg, rgba(10, 12, 26, 0.9) 0%, rgba(10, 12, 26, 0.55) 42%, rgba(10, 12, 26, 0) 66%); }
  .hero__copy { left: 20px; right: 20px; top: auto; bottom: 28px; width: auto; transform: none; }
  .hero h1 { font-size: 42px; }
  .hero .lead { margin-top: 12px; font-size: 16.5px; }
  .actions { margin-top: 20px; }
  .cta .btn { width: 100%; }
  .hero__bubbles { left: 16px; right: auto; top: 16px; width: 250px; }
  .bubble { font-size: 14px; }
  .intro { padding: 110px 0 120px; }
  .intro__text h2 { font-size: 40px; }
  .intro__text p { font-size: 17px; }
  .pm__b { font-size: 12.5px; }
  .av { width: 30px; height: 30px; font-size: 13px; }
  .pm--1 { display: none; } .pm--3 { right: 4%; top: 16px; }
  /* the note sits beside the reply, under Noah's message */
  .hand--hero { top: auto; bottom: 2px; left: 2px; max-width: 128px; font-size: 25px; }
  :lang(fr) .hero h1 { font-size: 38px; }
  .pm--4 { left: 6%; bottom: 40px; } .pm--6 { right: 4%; bottom: 74px; }
  .helper { padding: 30px 0 100px; }
  .feature { margin-top: 70px; }
  .feature__pic img { aspect-ratio: 4 / 5; object-position: 79% 50%; }
  .feature__chat { left: 16px; right: 16px; bottom: 18px; }
  .hand--photo { font-size: 28px; }
  .hand--tram { top: 16px; left: 22px; max-width: 58%; font-size: 25px; }
  .feature__pic--bed img { object-position: 64% 50%; }
  .helper__note { margin-top: 60px; }
  .looks, .private, .faq-section, .maker { padding: 90px 0; }
  .more { padding: 50px 0 90px; }
  .promises { grid-template-columns: 1fr; }
  .maker__in { grid-template-columns: 1fr; gap: 46px; }
  .print--maker { max-width: 280px; }
  .maker__text h2 { font-size: 60px; }
  .faq summary { font-size: 18px; }
  .join { padding: 90px 0; }
  .join .cta { flex-direction: column; align-items: stretch; }
}

/* Short phones: a smaller title, and the reply stays off so the words keep their room */
@media (max-width: 760px) and (max-height: 780px) {
  .hero h1 { font-size: 40px; }
  .hero .lead { font-size: 15.5px; }
  .hero__bubbles .bubble--out, .hand--hero { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sw, .tone-btn { transition: none; }
}
