/* Zorya Digital homepage. Build target: drafts/home-round2/H4-sunrise-with-star-staging.png
   The sky behind everything is drawn by sky.js on the fixed canvas; the gradient on <body> is the
   same sky for browsers without WebGL. */
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600-normal.woff2) format("woff2"); }

:root {
  --ink: #0A1A1C;
  --teal: #134E4A;
  --rose: #E58C8A;
  --peach: #FFC59A;
  --cream: #FFF6EA;
  --wrap: 1180px;
  --pad: clamp(20px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.45;
  color: var(--cream);
  background: linear-gradient(180deg, #071416 0%, #0C2227 9%, #5A3F55 15.5%, #0E3F48 19%, #4B4055 24%, #A3627A 33%, #E58C8A 43%, #EF9C8E 55%, #F6B79B 67%, #FBD9BC 78%, #FFEBD6 90%, #FFF6EA 100%);
  overflow-x: hidden;
}
/* The star and its light are things in the page itself, above the mountains and under everything
   else, so they scroll with the page exactly. sky.js sizes and places them.
   #star is the glass body with its glow, #halo the warm air around it, #shaft the beam from its face. */
#lights { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
#star, #halo, #shaft { position: absolute; left: 0; top: 0; width: 10px; height: 10px; will-change: transform; }
#halo { border-radius: 50%; opacity: 0; background: radial-gradient(closest-side, rgb(255 181 154 / .34) 0, rgb(255 181 154 / .23) 20%, rgb(255 181 154 / .1) 40%, rgb(255 181 154 / .043) 60%, rgb(255 181 154 / .02) 80%, transparent 100%); }
#shaft { opacity: 0; transform-origin: 0 50%; }
#sky { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; display: block; pointer-events: none; }
main, .foot, .nav { position: relative; z-index: 1; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--pad)); margin-inline: auto; position: relative; }
.anchor { pointer-events: none; }
/* The star's light. sky.js sets these on every [data-lit] element each frame:
   --li how much light arrives (0 to 1), --lx --ly where the star is, in px from the element's
   top left corner, --dx --dy the direction toward the star. With no light they stay at rest. */
[data-lit] { --li: 0; --lx: -400; --ly: -400; --dx: 0; --dy: 0; }
/* Where the canvas draws the clouds (wide screens), the page's own cloud layers step aside. */
.webgl-art .clouds { visibility: hidden; }
section { position: relative; }
.services, .demos, .ask, .how { overflow-x: clip; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px var(--pad);
  transition: background .35s, color .35s, padding .35s;
  color: var(--cream);
}
.nav .brand { display: block; width: clamp(150px, 15vw, 205px); }
.nav .brand svg { display: block; width: 100%; height: auto; }
.nav .on-light { display: none; }
.nav nav { display: flex; gap: clamp(18px, 3.2vw, 46px); font-weight: 500; font-size: 1.02rem; }
.nav nav a { text-decoration: none; padding: 6px 2px; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--peach); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav nav a:hover::after, .nav nav a:focus-visible::after { transform: scaleX(1); }
.nav.scrolled { background: rgb(10 26 28 / .42); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); padding-block: 8px; }
.nav.light { color: var(--ink); }
.nav.light.scrolled { background: rgb(255 246 234 / .5); }
.nav.light .on-dark { display: none; }
.nav.light .on-light { display: block; }
.nav.light nav a::after { background: var(--teal); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
/* Flat or glass only. Nothing on this site is shaded to look raised: no top-to-bottom gradients on
   controls, no inset highlights. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  font-weight: 600; font-size: 1.06rem; text-decoration: none; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn.solid { background: var(--peach); color: var(--ink); }
.btn.solid:hover { background: #FFD9BC; }
[data-tone="light"] .btn.solid { background: var(--cream); }
[data-tone="light"] .btn.solid:hover { background: #fff; }
.btn.line, .chip {
  background: rgb(255 246 234 / .1); border: 1px solid rgb(255 246 234 / .6); color: var(--cream);
  backdrop-filter: blur(12px) saturate(1.3); -webkit-backdrop-filter: blur(12px) saturate(1.3);
}
.btn.line:hover { background: rgb(255 246 234 / .22); }
:focus-visible { outline: 3px solid var(--peach); outline-offset: 3px; border-radius: 6px; }
[data-tone="light"] :focus-visible { outline-color: var(--teal); }

/* ── Section headings with rules on both sides ─────────────────────────────── */
h2.ruled { display: flex; align-items: center; gap: clamp(16px, 3vw, 34px); font-weight: 500; font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.1; letter-spacing: -.01em; }
h2.ruled::before, h2.ruled::after { content: ""; flex: 1; height: 1.5px; background: currentColor; opacity: .55; max-width: 190px; }
h2.ruled::before { margin-left: auto; }
h2.ruled::after { margin-right: auto; }
[data-tone="light"] { color: var(--ink); }
.note { margin-top: 22px; text-align: center; font-size: .95rem; opacity: .78; max-width: 46em; margin-inline: auto; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero { min-height: max(100svh, 640px); display: flex; flex-direction: column; padding-top: 110px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 24px; flex: 1; padding-bottom: clamp(150px, 21vw, 330px); }
.hero h1 { font-weight: 600; font-size: clamp(2.6rem, 5.4vw, 4.7rem); line-height: 1.04; letter-spacing: -.015em; text-wrap: balance; }
.hero .lead { margin-top: 22px; font-size: clamp(1.15rem, 1.9vw, 1.6rem); line-height: 1.3; max-width: 17em; opacity: .94; }
.hero .cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 16px 20px; }
.hero .anchor { justify-self: center; width: min(31vw, 52vh, 440px); aspect-ratio: 1; }
/* The mountains are pictures in the page, so they scroll with it exactly. They sit under the star. */
.range { position: absolute; left: 0; bottom: 0; z-index: -1; width: 100%; height: auto; pointer-events: none; user-select: none; }
.range.dusk { min-width: 900px; left: 50%; transform: translateX(-50%); width: 100%; --rw: 100vw; --spot: 1200px; --lp: 0; }
.range.dusk img { width: 100%; height: auto; }
/* The evening range's lit copy shows through a soft round window centred on the star. Only the
   window's place changes from frame to frame, never what is painted in it. */
.range .spot {
  position: absolute; left: 0; top: 0; width: var(--spot); height: var(--spot); overflow: hidden; border-radius: 50%; opacity: var(--lp);
  transform: translate3d(calc(var(--lx) * 1px - 50%), calc(var(--ly) * 1px - 50%), 0);
  -webkit-mask-image: radial-gradient(closest-side, #000 0, rgb(0 0 0 / .91) 18%, rgb(0 0 0 / .57) 36%, rgb(0 0 0 / .35) 55%, rgb(0 0 0 / .2) 75%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 0, rgb(0 0 0 / .91) 18%, rgb(0 0 0 / .57) 36%, rgb(0 0 0 / .35) 55%, rgb(0 0 0 / .2) 75%, transparent 100%);
}
.range .spot img { position: absolute; left: 50%; top: 50%; width: var(--rw); max-width: none; transform: translate3d(calc(var(--lx) * -1px), calc(var(--ly) * -1px), 0); }

/* ── Clouds: one texture with its own transparency, tinted lighter as the page reaches morning ── */
.clouds { z-index: -1; position: absolute; inset: -8% 0 auto 0; height: 70%; background: url(img/clouds.webp) center / cover no-repeat; opacity: .5; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent); }
.clouds.c1 { opacity: .42; top: 4%; }
.clouds.c2 { transform: scaleX(-1); opacity: .5; top: 38%; height: 80%; filter: saturate(.6) brightness(1.5); }
.clouds.c3 { opacity: .6; top: 30%; height: 90%; filter: saturate(.35) brightness(2); }
.clouds.c4 { transform: scaleX(-1); opacity: .9; top: -10%; height: 100%; filter: saturate(0) brightness(4); }

/* ── What we build ──────────────────────────────────────────────────────────── */
.services { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 130px); }
.services-grid { margin-top: clamp(30px, 4.5vw, 60px); display: grid; grid-template-columns: minmax(150px, 25%) 1fr; gap: clamp(8px, 2vw, 30px); align-items: stretch; }
.services .anchor { align-self: center; justify-self: center; height: min(100%, 440px); min-height: 300px; aspect-ratio: 1 / 3; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px); }
.card {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center;
  height: 100%; padding: 26px 18px 20px; border-radius: 22px; text-decoration: none;
  background: rgb(255 246 234 / .075);
  border: 1px solid rgb(255 246 234 / .22);
  /* the shadow falls away from the star and deepens as the light grows */
  box-shadow: calc(var(--dx) * -24px) calc(12px + var(--dy) * -24px) 42px rgb(30 10 30 / calc(.14 + var(--li) * .24));
  backdrop-filter: blur(12px) saturate(1.15); -webkit-backdrop-filter: blur(12px) saturate(1.15);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
/* the wash of light across the face, centred on where the star is */
.card::before, .steps li::before, .chat::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(560px circle at calc(var(--lx) * 1px) calc(var(--ly) * 1px), rgb(255 222 196 / calc(var(--li) * .3)), transparent 66%);
}
/* the bright rim on the side that faces the star */
.card::after, .steps li::after, .chat::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: radial-gradient(480px circle at calc(var(--lx) * 1px + 1px) calc(var(--ly) * 1px + 1px), rgb(255 252 246 / calc(var(--li) * .8)), transparent 64%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card > * { position: relative; }
.card svg { width: 54px; height: 54px; }
.card h3 { margin-top: 12px; font-weight: 500; font-size: clamp(1.15rem, 1.7vw, 1.4rem); line-height: 1.15; }
.card p { margin-top: 10px; font-size: .93rem; line-height: 1.4; opacity: .9; }
.card .more { margin-top: auto; padding-top: 14px; font-weight: 600; font-size: .92rem; color: #FFE1C8; }
.card .more i { display: inline-block; font-style: normal; transition: transform .25s; }
.card:hover { transform: translateY(-6px); }
.card:hover .more i { transform: translateX(5px); }

/* ── See it live: the stream ────────────────────────────────────────────────── */
.demos { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 110px); }
.stream { position: relative; height: clamp(350px, 41vw, 600px); margin-top: clamp(56px, 6.5vw, 96px); }
.stream .anchor { position: absolute; left: clamp(10px, 6vw, 120px); top: 0; height: clamp(130px, 17.500vw, 270px); aspect-ratio: 1 / 2; transform: translateY(-80%); }
.ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.lane { position: absolute; inset: 0; pointer-events: none; }
.tile {
  position: absolute; left: 0; top: 0; width: 300px; aspect-ratio: 16 / 10; opacity: 0; overflow: hidden;
  border-radius: 5%/8%; background: rgb(255 246 234 / .5); will-change: transform, opacity;
  box-shadow: 0 0 0 2px rgb(255 255 255 / .8), 0 0 30px rgb(255 240 225 / .5), 0 24px 46px rgb(120 40 50 / .2);
}
.tile img { width: 100%; height: 100%; object-fit: cover; }
.trades-head { margin-top: clamp(26px, 4vw, 50px); text-align: center; font-weight: 500; font-size: clamp(1.5rem, 2.800vw, 2.1rem); line-height: 1.15; }
.trades { margin-top: clamp(14px, 2vw, 22px); display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 500; font-size: 1rem; text-decoration: none; transition: background .2s; }
[data-tone="light"] .chip { color: var(--ink); background: rgb(255 246 234 / .5); border-color: rgb(255 255 255 / .75); }
[data-tone="light"] a.chip:hover { background: rgb(255 246 234 / .9); }
.chip.soon { background: transparent; border-style: dashed; border-color: rgb(10 26 28 / .35); opacity: .7; }
.stream-cap { margin-top: clamp(22px, 3vw, 34px); text-align: center; font-size: clamp(1.05rem, 1.600vw, 1.3rem); font-weight: 500; max-width: 34em; margin-inline: auto; text-wrap: balance; }

/* ── Ask it anything ────────────────────────────────────────────────────────── */
.ask { padding: clamp(30px, 5vw, 60px) 0 clamp(60px, 8vw, 110px); }
.chat-stage { position: relative; margin: clamp(60px, 9vw, 120px) auto 0; width: min(560px, 100%); }
.chat-stage .anchor { position: absolute; left: 50%; top: 50%; width: min(880px, 92vw); aspect-ratio: 1; transform: translate(-50%, -50%); }
.chat {
  position: relative; color: var(--cream); border-radius: 24px; overflow: hidden;
  background: rgb(11 30 33 / .88);
  border: 1px solid rgb(255 246 234 / .2);
  /* the star sits behind the panel: its light spills out around the edge on its side */
  box-shadow: 0 30px 80px rgb(110 40 50 / .3), calc(var(--dx) * 30px) calc(var(--dy) * 30px) 90px rgb(255 232 208 / calc(var(--li) * .85));
  backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1);
}
.chat::before { background: radial-gradient(640px circle at calc(var(--lx) * 1px) calc(var(--ly) * 1px), rgb(255 222 196 / calc(var(--li) * .1)), transparent 66%); }
.chat > * { position: relative; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid rgb(255 246 234 / .16); font-size: 1.02rem; }
.chat-head strong { font-weight: 500; }
.chat-head .mark { width: 22px; height: 22px; color: var(--rose); }
.chat-head .live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-size: .95rem; }
.chat-head .live i { width: 9px; height: 9px; border-radius: 50%; background: #5fd08a; box-shadow: 0 0 0 0 rgb(95 208 138 / .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgb(95 208 138 / 0); } 100% { box-shadow: 0 0 0 0 rgb(95 208 138 / 0); } }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 20px; height: clamp(220px, 34vh, 320px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgb(255 246 234 / .3) transparent; }
.msg { max-width: 84%; padding: 11px 16px; border-radius: 18px; font-size: .98rem; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; animation: rise .35s cubic-bezier(.2, .7, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.msg.bot { align-self: flex-start; background: rgb(19 78 74 / .55); border: 1px solid rgb(255 246 234 / .28); border-bottom-left-radius: 6px; }
.msg.user { align-self: flex-end; background: var(--cream); color: var(--ink); border-bottom-right-radius: 6px; }
.msg.typing { display: inline-flex; gap: 5px; padding: 15px 16px; }
.msg.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--peach); animation: blink 1.1s infinite; }
.msg.typing i:nth-child(2) { animation-delay: .18s; }
.msg.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 20px 14px; }
.chips[hidden] { display: none; }
.chips button { font: inherit; font-size: .88rem; color: var(--cream); background: rgb(255 246 234 / .08); border: 1px solid rgb(255 246 234 / .32); border-radius: 999px; padding: 7px 13px; cursor: pointer; text-align: left; transition: background .2s; }
.chips button:hover { background: rgb(255 246 234 / .2); }
.chat-form { display: flex; gap: 10px; padding: 0 20px 20px; }
.chat-form input { flex: 1; min-width: 0; height: 50px; padding: 0 20px; border-radius: 999px; border: 1px solid rgb(255 246 234 / .4); background: rgb(255 246 234 / .06); color: var(--cream); font: inherit; font-size: 1rem; }
.chat-form input::placeholder { color: rgb(255 246 234 / .6); }
.chat-form button { flex: none; width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer; background: var(--peach); color: var(--ink); display: grid; place-items: center; transition: background .2s; }
.chat-form button:hover { background: #FFD9BC; }
.chat-form button svg { width: 22px; height: 22px; }
.chat :focus-visible { outline-color: var(--peach); }
.chat-cap { margin-top: clamp(40px, 6vw, 70px); text-align: center; font-size: clamp(1.15rem, 1.9vw, 1.45rem); font-weight: 500; }
.ask .note { margin-top: 10px; }

/* ── How it works ───────────────────────────────────────────────────────────── */
.how { padding: clamp(20px, 4vw, 50px) 0 clamp(40px, 6vw, 80px); }
.how .anchor { margin: 0 auto clamp(4px, 1vw, 14px); width: clamp(110px, 13vw, 170px); aspect-ratio: 1; }
.steps { position: relative; margin-top: clamp(50px, 6vw, 76px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.6vw, 34px); }
.steps::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 0; height: 3px; transform: translateY(-50%); background: linear-gradient(90deg, var(--rose), #F3A489, var(--peach)); box-shadow: 0 0 18px rgb(255 197 154 / .9); border-radius: 3px; }
.steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 46px 22px 26px; border-radius: 24px;
  background: rgb(255 246 234 / .4); border: 1px solid rgb(255 255 255 / .45); box-shadow: calc(var(--dx) * -22px) calc(14px + var(--dy) * -22px) 44px rgb(200 120 90 / calc(.1 + var(--li) * .2));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.steps li::before { z-index: -1; background: radial-gradient(560px circle at calc(var(--lx) * 1px) calc(var(--ly) * 1px), rgb(255 255 255 / calc(var(--li) * .85)), transparent 66%); }
.steps li::after { background: radial-gradient(480px circle at calc(var(--lx) * 1px + 1px) calc(var(--ly) * 1px + 1px), rgb(255 255 255 / calc(var(--li) * 1)), transparent 64%); }
.steps .num { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; font-size: 1.6rem; color: var(--cream); }
.steps li:nth-child(1) .num { background: var(--rose); }
.steps li:nth-child(2) .num { background: #EE9478; }
.steps li:nth-child(3) .num { background: #F7B182; }
.steps h3 { font-weight: 500; font-size: clamp(1.25rem, 2.1vw, 1.65rem); line-height: 1.15; max-width: 9em; text-wrap: balance; }
.steps p { margin-top: 10px; font-size: .95rem; opacity: .82; }
.steps svg { margin-top: auto; padding-top: 16px; width: 76px; height: 76px; stroke-width: 1.6; }

/* ── Dawn and footer ────────────────────────────────────────────────────────── */
.dawn { position: relative; height: clamp(170px, 27vw, 420px); overflow-x: clip; }
/* The sun: the star at the end of the page, behind the morning range. It is part of the page, so it
   rises with the scroll exactly; sky.js only sets how bright it is. */
.dawn .sun { position: absolute; left: 50%; bottom: calc(54% + clamp(60px, 7vw, 100px)); z-index: -2; width: 58vmax; height: 58vmax; border-radius: 50%; opacity: 0; pointer-events: none;
  transform: translate(-50%, 50%);
  background: radial-gradient(closest-side, #FFF8E6 0, rgb(255 248 230 / .55) 20%, rgb(255 245 224 / .3) 40%, rgb(255 240 214 / .16) 60%, rgb(255 236 205 / .07) 80%, transparent 100%); }
.dawn .range { min-width: 900px; left: 50%; transform: translateX(-50%); bottom: -1px; }
.dawn .anchor { position: absolute; left: 50%; bottom: 54%; width: clamp(120px, 14vw, 200px); aspect-ratio: 1; transform: translateX(-50%); }
.foot { background: var(--cream); color: var(--ink); padding: clamp(26px, 4vw, 48px) 0 34px; text-align: center; }
.foot-row { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 54px); flex-wrap: wrap; }
.foot-logo { display: block; width: clamp(180px, 20vw, 260px); }
.foot-logo svg { display: block; width: 100%; height: auto; }
.foot .rule { width: 1.5px; height: 48px; background: var(--ink); opacity: .5; }
.foot .place { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; font-size: 1.15rem; }
.foot .place svg { width: 30px; height: 30px; }
.foot .social { display: inline-flex; align-items: center; gap: 18px; }
.foot .social svg { width: 38px; height: 38px; }
.foot .social .mail { font-weight: 500; }
.foot .morning { margin-top: clamp(18px, 3vw, 34px); font-weight: 600; font-size: clamp(2.5rem, 7.6vw, 6.1rem); line-height: 1.05; letter-spacing: -.02em; }
.foot .arc { display: block; margin: 12px auto 0; width: min(560px, 60%); height: 22px; color: #F3A489; }
.foot .small { margin: 22px auto 0; max-width: 44em; padding: 0 var(--pad); font-size: .9rem; opacity: .7; }

/* ── Things that arrive as they scroll in ───────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Smaller screens ────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: minmax(90px, 18%) 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .nav nav a:nth-child(2), .nav nav a:nth-child(3) { display: none; }
  .hero { padding-top: 92px; }
  .hero-grid { grid-template-columns: 1fr; text-align: left; padding-bottom: clamp(140px, 38vw, 260px); gap: 0; }
  .hero .anchor { order: -1; width: min(52vw, 30vh, 240px); justify-self: end; margin-bottom: -6vw; }
  .services-grid { grid-template-columns: 1fr; }
  .services .anchor { height: auto; min-height: 0; width: 60px; aspect-ratio: 1 / 3; justify-self: start; margin: 0 0 -6px 4px; }
  .card { padding: 20px 14px 16px; }
  .card svg { width: 44px; height: 44px; }
  .chip { min-height: 40px; padding: 0 15px; font-size: .93rem; }
  /* Phones: glass over a sky that is redrawn every frame has to be blurred again every frame, which
     made the scroll stutter. The large panes go without the blur; buttons and labels keep it. */
  .card, .steps li { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .card { background: rgb(255 246 234 / .12); }
  .steps li { background: rgb(255 246 234 / .55); }
  .tile { box-shadow: 0 0 0 1.500px rgb(255 255 255 / .85), 0 10px 22px rgb(120 40 50 / .2); }
  .steps { grid-template-columns: 1fr; gap: 46px; }
  .steps::before { left: 50%; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform: translateX(-50%); }
  .foot .rule { display: none; }
  h2.ruled::before, h2.ruled::after { max-width: 60px; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
  .btn { padding: 0 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .msg, .chat-head .live i, .msg.typing i { animation: none; }
}
