/* BerdisDev 2026 — design system
   Built from the approved canvas design. Desktop, tablet and phone. */

:root {
  --ground: #f7f8fb;
  --ink: #10131f;
  --glow-a: #b8d3ff;
  --glow-b: #ffd9c6;

  --soft: color-mix(in srgb, var(--ink) 64%, transparent);
  --faint: color-mix(in srgb, var(--ink) 44%, transparent);
  --line: color-mix(in srgb, var(--ink) 10%, transparent);
  --panel: color-mix(in srgb, var(--ink) 3%, var(--ground));
  --glass: rgba(255, 255, 255, .6);
  --card: #ffffff;
  --field: color-mix(in srgb, var(--ink) 2%, var(--ground));
  --tint-a: linear-gradient(145deg, color-mix(in srgb, var(--glow-a) 62%, var(--ground)) 0%, color-mix(in srgb, var(--glow-b) 46%, var(--ground)) 100%);
  --tint-b: linear-gradient(145deg, color-mix(in srgb, var(--glow-b) 58%, var(--ground)) 0%, color-mix(in srgb, var(--glow-a) 44%, var(--ground)) 100%);
  --on-ink: var(--ground);
  --on-ink-soft: color-mix(in srgb, var(--ground) 70%, transparent);
  --on-ink-line: color-mix(in srgb, var(--ground) 16%, transparent);

  --shadow: 0 40px 90px -45px rgba(16, 19, 31, .38);
  --shadow-soft: 0 16px 36px -20px rgba(16, 19, 31, .3);
  --shadow-btn: 0 14px 30px -14px rgba(16, 19, 31, .5);

  --display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Figtree', 'Helvetica Neue', Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --r-lg: 28px;
  --r-md: 22px;
  --r-sm: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: clamp(40px, 4.2vw, 78px); }
.glow { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 0; }
.glow-hero { top: 0; height: min(1400px, 140vh); background:
  radial-gradient(40% 40% at 12% 24%, var(--glow-a) 0%, transparent 70%),
  radial-gradient(42% 42% at 84% 36%, var(--glow-b) 0%, transparent 72%),
  radial-gradient(46% 36% at 56% 86%, var(--glow-a) 0%, transparent 70%); }
.glow-mid { top: 46%; height: 1100px; background:
  radial-gradient(40% 36% at 50% 50%, var(--glow-b) 0%, transparent 70%),
  radial-gradient(30% 30% at 18% 70%, var(--glow-a) 0%, transparent 70%); }
.glow-foot { bottom: 0; height: 1100px; background:
  radial-gradient(46% 44% at 24% 40%, var(--glow-b) 0%, transparent 70%),
  radial-gradient(40% 44% at 78% 36%, var(--glow-a) 0%, transparent 72%); }
main, header, footer, section { position: relative; z-index: 1; }

/* ---------- type ---------- */
.h1 { font-family: var(--display); font-weight: 300; font-size: clamp(34px, 5.4vw, 62px); line-height: 1.03; letter-spacing: -0.04em; }
.h2 { font-family: var(--display); font-weight: 300; font-size: clamp(26px, 3.1vw, 42px); line-height: 1.07; letter-spacing: -0.035em; }
.h3 { font-family: var(--display); font-weight: 400; font-size: clamp(19px, 1.9vw, 25px); line-height: 1.15; letter-spacing: -0.028em; }
.h4 { font-family: var(--display); font-weight: 400; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.2; letter-spacing: -0.022em; }
.lede { font-size: clamp(16px, 1.2vw, 18px); line-height: 1.5; color: var(--soft); }
.small { font-size: 15px; color: var(--soft); }
.eyebrow { font-size: 15px; color: var(--faint); }
.soft { color: var(--soft); }
.faint { color: var(--faint); }

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font-size: 16px; font-weight: 500; white-space: nowrap; border: 0; cursor: pointer;
  transition: transform .25s ease, opacity .25s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ink { background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-btn); position: relative; overflow: hidden; }
.btn-ink::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.28), transparent); animation: shine 4s ease-in-out infinite; }
.btn-glass { background: var(--glass); border: 1px solid var(--line); color: var(--ink); }
.btn-ground { background: var(--ground); color: var(--ink); }
.btn-sm { height: 46px; padding: 0 22px; font-size: 15px; }
.btn-lg { height: 60px; padding: 0 32px; font-size: 17px; }

.pill { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; color: var(--soft); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #2fa66a; animation: ping 2.2s ease-out infinite; flex-shrink: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; white-space: nowrap; background: none; color: inherit; cursor: pointer; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--soft); white-space: nowrap; }

.card { border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.panel { border-radius: var(--r-md); background: var(--panel); border: 1px solid var(--line); }
.ink-card { border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.link-arrow svg { transition: transform .25s ease; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- offer bar + nav ---------- */
.offer {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center;
  gap: 14px; min-height: 46px; padding: 8px 20px; background: var(--ink); color: var(--on-ink);
  font-size: 14px; text-align: center; flex-wrap: wrap;
}
.offer b { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--glow-b); color: #10131f; font-size: 12px; font-weight: 600; }
.offer a { text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }

.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 80%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s ease; }
.nav.stuck { border-color: var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.nav-links { display: flex; align-items: center; gap: 34px; font-size: 15px; color: var(--soft); }
.nav-links a:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 18px; }
.logo img { height: 28px; width: auto; filter: brightness(0); }
.lang { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--soft); }
/* the menu copy of the switch only exists for phones, where the header collapses */
.nav-links .lang-menu { display: none; }
.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: var(--glass); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: clamp(40px, 6vw, 72px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
.hero h1 { margin-top: 28px; }
.hero .lede { margin-top: 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 30px; font-size: 14px; color: var(--soft); }
.hero-checks li { display: flex; align-items: center; gap: 8px; }
.hero-visual { position: relative; min-height: 560px; }

.frame { border-radius: 20px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.frame-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.frame-bar span { flex: 1; text-align: center; font-size: 11px; color: var(--faint); }
.frame-shot { overflow: hidden; }
.frame-shot img { width: 100%; animation: shot 26s cubic-bezier(.45, 0, .55, 1) infinite; }

.phone { padding: 7px; border-radius: 34px; background: #10131f; box-shadow: var(--shadow); }
.phone .frame-shot { border-radius: 27px; overflow: hidden; }

.float { animation: float 8s ease-in-out infinite; }
.hero-browser { position: absolute; top: 10px; left: 6%; width: 105%; max-width: 600px; }
.hero-browser .frame-shot { height: 374px; }
.hero-phone { position: absolute; top: 240px; left: -4%; width: 180px; }
.hero-phone .frame-shot { height: 360px; }
.hero-quote { position: absolute; top: 330px; right: -2%; width: min(340px, 78%); padding: 22px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-toast { position: absolute; top: -10px; right: 0; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.quote-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.quote-chips .chip { height: 34px; font-size: 13px; }
.quote-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ---------- marquees ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 30s linear infinite; }
/* the rows are already moving when the page opens, never starting from a gap */
.clients .marquee-track { animation-delay: -13s; }
.closing .marquee-track { animation-delay: -16s; }
.services-marquee .marquee-track { animation-delay: -21s; }
.marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee-group span { font-family: var(--display); font-size: clamp(18px, 2.2vw, 22px); letter-spacing: -0.02em; color: var(--soft); white-space: nowrap; }
.marquee-orb { width: 14px; height: 14px; border-radius: 50%; background: conic-gradient(var(--glow-a), var(--glow-b), var(--glow-a)); animation: spin 9s linear infinite; flex-shrink: 0; }
.clients { display: flex; align-items: center; gap: 30px; margin-top: 52px; padding: 22px 0 22px 30px; border-radius: var(--r-md); background: var(--glass); border: 1px solid var(--line); }
.clients > span { font-size: 14px; color: var(--faint); white-space: nowrap; }

.closing { margin-top: clamp(44px, 5vw, 84px); }
.closing a { display: block; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.closing .marquee-track { animation-duration: 42s; }
.closing .big { display: flex; align-items: center; gap: 36px; padding-right: 36px; font-family: var(--display); font-weight: 300; font-size: clamp(38px, 6vw, 78px); line-height: 1.1; letter-spacing: -0.045em; white-space: nowrap; }
.closing .orb { width: clamp(34px, 5vw, 72px); height: clamp(34px, 5vw, 72px); border-radius: 50%; background: conic-gradient(var(--glow-a), var(--glow-b), var(--glow-a)); animation: spin 9s linear infinite; flex-shrink: 0; }
.services-marquee { padding: 20px 0; overflow: hidden; }
.services-marquee .marquee-track { animation-duration: 50s; animation-direction: reverse; }
.services-marquee .marquee-group { gap: 32px; padding-right: 32px; font-size: clamp(16px, 2vw, 22px); color: var(--soft); }
.services-marquee i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); display: block; }

/* ---------- grids and cards ---------- */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(18px, 1.7vw, 24px); flex-wrap: wrap; }
.head-col { display: flex; flex-direction: column; gap: 12px; max-width: 760px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.why-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 10px 20px; }
.why-card .vis { position: relative; height: 126px; border-radius: var(--r-sm); overflow: hidden; }
.why-card .txt { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 0; }
.why-card .was { display: block; font-size: 14px; color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line); }

.svc-card { display: flex; flex-direction: column; padding: 14px 14px 16px; border-radius: 24px; }
.svc-card .vis { position: relative; height: 118px; border-radius: 16px; overflow: hidden; margin-bottom: 14px; }
.svc-card .body { display: flex; flex-direction: column; padding: 0 16px; }
.svc-top { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.svc-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); flex-shrink: 0; }
.svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.svc-chips span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--panel); font-size: 13px; color: var(--soft); }

.work-card { display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; }
.work-card .shot { padding: 8px 8px 0; }
.work-card .inner { border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.work-card .frame-shot { height: 176px; }
.work-card .txt { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.work-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }

.inc-tile { display: flex; flex-direction: column; gap: 8px; padding: 20px 20px; }
.inc-icon { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: var(--r-sm); background: var(--tint-a); animation: bob 4s ease-in-out infinite; }
.inc-tile:nth-child(even) .inc-icon { background: var(--tint-b); }

.band { position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-top: 14px; padding: clamp(22px, 2.6vw, 32px) clamp(22px, 3vw, 40px); border-radius: var(--r-lg); background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow); flex-wrap: wrap; }
.band .glowfx { position: absolute; inset: -40%; background: radial-gradient(28% 50% at 18% 50%, color-mix(in srgb, var(--glow-a) 40%, transparent) 0%, transparent 70%), radial-gradient(26% 50% at 82% 40%, color-mix(in srgb, var(--glow-b) 34%, transparent) 0%, transparent 70%); animation: drift 12s ease-in-out infinite; }
.band > * { position: relative; }
.band-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 30px 28px; }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); font-family: var(--display); font-size: 17px; }
.track { position: relative; height: 2px; border-radius: 2px; background: var(--line); margin-bottom: 24px; overflow: hidden; }
.track i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--glow-a), var(--ink)); transform-origin: left center; animation: fill 10s cubic-bezier(.4, 0, .6, 1) infinite; }

.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-side { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; position: sticky; top: 110px; }
.faq-item { display: flex; flex-direction: column; gap: 10px; padding: 26px 0; border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }

/* ---------- quote form ---------- */
.quote-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 44px); padding: clamp(22px, 2.6vw, 40px); border-radius: clamp(24px, 3vw, 36px); background: var(--glass); border: 1px solid var(--line); box-shadow: var(--shadow); }
.steps-list { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.steps-list li { display: flex; align-items: flex-start; gap: 16px; font-size: 16px; }
.steps-list b { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); font-size: 14px; font-weight: 500; flex-shrink: 0; }
form.quote { display: flex; flex-direction: column; gap: 13px; padding: clamp(18px, 2.2vw, 26px); border-radius: 28px; background: var(--card); border: 1px solid var(--line); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field > span { font-size: 14px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px;
}
.field textarea { min-height: 88px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-note { text-align: center; font-size: 13px; color: var(--faint); }
.form-status { display: none; font-size: 15px; line-height: 1.5; }
.form-status.show { display: block; }
.form-status.ok { color: #1f9d63; }
.form-status.bad { color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- footer ---------- */
.foot { padding-top: clamp(44px, 5vw, 92px); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding-bottom: 36px; }
.foot-col { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.foot-col > span { font-size: 13px; color: var(--faint); margin-bottom: 4px; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0 44px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); flex-wrap: wrap; }

/* ---------- animation ---------- */
@keyframes shot { 0%, 8% { transform: translateY(0); } 46%, 54% { transform: translateY(calc(-100% + var(--frame, 300px))); } 92%, 100% { transform: translateY(0); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(47, 166, 106, .55); } 80%, 100% { box-shadow: 0 0 0 9px rgba(47, 166, 106, 0); } }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 140%; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes drift { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(5%, 3%, 0) scale(1.1); } }
@keyframes fill { 0% { transform: scaleX(0); opacity: 1; } 85%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes toast { 0%, 6% { opacity: 0; transform: translateY(14px) scale(.96); } 14%, 72% { opacity: 1; transform: none; } 80%, 100% { opacity: 0; transform: translateY(-8px) scale(.98); } }
@keyframes chipcycle { 0%, 24% { background: var(--ink); color: var(--on-ink); border-color: var(--ink); } 25%, 100% { background: transparent; color: var(--ink); border-color: var(--line); } }

.hero-toast { animation: toast 8s ease-in-out infinite; }
.quote-chips .chip { animation: chipcycle 8s steps(1, end) infinite; }
.quote-chips .chip:nth-child(2) { animation-delay: -6s; }
.quote-chips .chip:nth-child(3) { animation-delay: -4s; }
.quote-chips .chip:nth-child(4) { animation-delay: -2s; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in { animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards; }
.rv-1.in { animation-delay: .08s; }
.rv-2.in { animation-delay: .16s; }
.rv-3.in { animation-delay: .24s; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 520px; margin-top: 8px; }
  .hero-browser { left: 0; width: 100%; max-width: 560px; }
  .hero-phone { left: auto; right: 4%; top: 250px; }
  .hero-quote { right: auto; left: 0; top: 340px; }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faq { grid-template-columns: 1fr; }
  .faq-side { position: static; }
  .quote-panel { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

/* ---------- phone: swipe rows instead of stacks ---------- */
/* Card groups scroll sideways from tablet down: two cards on a tablet, one on a phone,
   so a long section becomes a swipe instead of a stack. */
@media (max-width: 1080px) {
  .swipe {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
    gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { scroll-snap-align: start; }
  .g2.swipe, .g3.swipe, .g4.swipe, .steps.swipe, .plans.swipe, .qcards.swipe { grid-template-columns: none; }
  .swipe-rows { grid-template-rows: auto auto; grid-auto-flow: column; grid-auto-columns: 42%; }
}

@media (max-width: 760px) {
  .nav-links, .nav-right .lang { display: none; }
  .nav.open .nav-links .lang-menu { display: inline-flex; padding: 12px 0; font-size: 17px; color: var(--ink); }
  .nav-toggle { display: inline-flex; }
  .nav-in { height: 68px; }
  .nav.open .nav-links { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px var(--gutter) 24px; background: var(--ground); border-bottom: 1px solid var(--line); font-size: 18px; }
  .nav.open .nav-links a { padding: 10px 0; }

  .hero-visual { min-height: 250px; }
  .hero-browser { max-width: 94%; top: 0; }
  .hero-browser .frame-shot { height: 196px; }
  .hero-phone { display: none; }
  /* the quick-quote card repeats the form further down and the sticky bar, so on a
     phone it only made the first screen longer */
  .hero-quote { display: none; }
  .hero-toast { top: -6px; right: 0; padding: 10px 12px; }
  .hero-toast span:last-child { display: none; }

  .clients { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 0 20px 20px; }
  /* stacked, the row no longer constrains the marquee, so it has to claim the width itself */
  .clients .marquee { align-self: stretch; width: 100%; min-width: 0; }

  /* one card at a time on a phone */
  .swipe { grid-auto-columns: 78%; }
  .swipe-rows { grid-auto-columns: 74%; }
  .svc-card .vis { height: 150px; }
  .work-card .frame-shot { height: 168px; }
  .work-card .frame-shot { height: 190px; }

  .band { flex-direction: column; align-items: flex-start; }
  .band-actions .btn { height: 52px; }
  .quote-panel { padding: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; }
  .foot-col:first-child { grid-column: 1 / -1; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 10px; padding-bottom: 104px; }

  /* sticky quote bar on phones */
  .dock { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: 0 18px 40px -18px rgba(16,19,31,.7); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .dock.show { transform: none; }
  .dock span { font-size: 14px; }
  .dock .btn { height: 44px; padding: 0 18px; font-size: 14px; }
  body { padding-bottom: 0; }
}

@media (min-width: 761px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* a small, always-visible demo label */
.work-card .shot { position: relative; }
.demo-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; align-items: end; margin-top: clamp(48px, 6vw, 88px); padding-top: clamp(32px, 4vw, 48px); border-top: 1px solid var(--line); margin-bottom: 32px; }
.demo-head p { max-width: 52ch; }
@media (max-width: 760px) { .demo-head { grid-template-columns: 1fr; align-items: start; } }
.demo-chip { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 12px; font-weight: 600; letter-spacing: .01em; }
.hero-browser { position: relative; }
.hero-browser .demo-chip { left: 16px; top: -12px; }
.work-card .demo-chip { top: auto; bottom: 14px; left: 16px; height: 26px; font-size: 11px; box-shadow: var(--shadow-soft); }

/* studio email in the footer */
.foot-mail { align-self: flex-start; gap: 9px; font-size: 15px; color: var(--soft); font-weight: 400; }
.foot-mail:hover { color: var(--ink); }

/* real screenshots inside the cards */
.why-photo { position: relative; width: 252px; height: 156px; border-radius: 16px; overflow: hidden; display: flex; align-items: flex-end; justify-content: center; background: var(--tint-a); }
.why-phone { width: 92px; border: 4px solid var(--ink); border-bottom: 0; border-radius: 16px 16px 0 0; overflow: hidden; background: var(--card); box-shadow: var(--shadow-soft); }
.why-phone img { width: 100%; display: block; }
.svc-photo { position: relative; width: 536px; height: 212px; border-radius: 18px; overflow: hidden; background: var(--tint-b); display: flex; align-items: flex-end; justify-content: center; padding: 26px 34px 0; }
.svc-photo .browser { width: 100%; }
.svc-photo .frame { box-shadow: var(--shadow-soft); }
/* these two are single screenshots, not scrolling ones, so they hold still */
.svc-photo .frame-shot img, .why-phone img { animation: none; }

/* On phones a FAQ is a list of questions, not a wall of answers. The script opens them. */
.faq-item.folded { padding-bottom: 14px; }
@media (min-width: 0px) {
  .faq-item.folded > h3 { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; cursor: pointer; }
  .faq-item.folded > h3::after { content: ""; flex-shrink: 0; width: 11px; height: 11px; margin-top: 7px;
    border-right: 2px solid var(--faint); border-bottom: 2px solid var(--faint); transform: rotate(45deg);
    transition: transform .25s ease; }
  .faq-item.folded[data-open="true"] > h3::after { transform: rotate(-135deg); }
  .faq-item.folded > p { display: none; }
  .faq-item.folded[data-open="true"] > p { display: block; }
}

/* a plan card on a phone: the headline features, then the rest on request */
@media (min-width: 0px) {
  .plan-list.folded li:nth-child(n + 5) { display: none; }
  /* the main packages have the room to say more before you ask */
  #wordpress .plan-list.folded li:nth-child(-n + 7) { display: flex; }
  .plan-list.folded.open li { display: flex; }
  .plan.dark .plan-more { color: var(--on-ink-soft); }
  .plan.dark .plan-more:hover { color: var(--on-ink); }
  .plan-more { align-self: flex-start; margin-top: -4px; padding: 0; border: 0; background: none;
    font: inherit; font-size: 15px; color: var(--soft); text-decoration: underline;
    text-underline-offset: 3px; cursor: pointer; }
  .plan-more:hover { color: var(--ink); }
}
