/* Forecastl
   Palette: warm paper canvas, deep navy ink, cobalt accent,
   with sun, coral, mint, sky and lilac for illustration. */

:root {
  --canvas: #f6f4ee;
  --paper: #ffffff;
  --tint: #eef1fb;
  --ink: #161c2c;
  --ink-rgb: 22, 28, 44;
  --ink-2: rgba(var(--ink-rgb), 0.72);
  --ink-3: rgba(var(--ink-rgb), 0.48);
  --line: rgba(var(--ink-rgb), 0.1);
  --line-strong: rgba(var(--ink-rgb), 0.2);
  --accent: #3d5afe;
  --accent-2: #2b44d6;
  --sun: #ffcc33;
  --coral: #ff6b5b;
  --mint: #2fc59a;
  --sky: #8fd0ff;
  --lilac: #b9a8ff;

  --font-display: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  --radius: 14px;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --header-h: 68px;
  color-scheme: light;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  background: var(--canvas);
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em; text-transform: uppercase; }
.faint { color: var(--ink-3); }
.muted { color: var(--ink-2); }
.soft { color: var(--ink-3); }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1 {
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
}
h1 .soft, h2 .soft { display: block; }

h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}

h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }

.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }
.body { font-size: 18px; color: var(--ink-2); max-width: 36em; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.section-label::before { content: ""; width: 22px; height: 1px; background: var(--line-strong); }
.hero .section-label::before { display: none; }

/* ---------- Buttons and chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font: 500 16px/1 var(--font-display);
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
  box-shadow: 0 6px 18px -8px rgba(61, 90, 254, 0.7);
}
.btn:hover { transform: translateY(-2px); background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: var(--paper); }
.btn-small { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-big { height: 60px; padding: 0 28px; font-size: 17px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(255, 255, 255, 0.55);
}

.tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--accent-2);
  font-size: 11px;
}

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 0 rgba(255, 107, 91, 0.6);
  animation: pulse 1.8s ease-out infinite;
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(246, 244, 238, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 20px; letter-spacing: -0.03em; }
.brand-mark { width: 30px; height: 30px; transition: transform 0.4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav a { position: relative; padding: 4px 0; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav a:hover, .nav a.is-active { color: var(--ink); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + clamp(40px, 7vw, 96px)) 0 clamp(56px, 8vw, 110px);
  overflow: hidden;
  background-image: radial-gradient(rgba(var(--ink-rgb), 0.09) 1px, transparent 1px);
  background-size: 22px 22px;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.blob-sun { width: 420px; height: 420px; background: #ffe08a; top: -120px; right: 8%; }
.blob-sky { width: 480px; height: 480px; background: #cfe9ff; bottom: -200px; left: -120px; animation-delay: -6s; }
.blob-lilac { width: 320px; height: 320px; background: #e3dbff; top: 30%; right: -80px; animation-delay: -11s; }

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { display: grid; gap: 26px; }
.hero-copy .section-label { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art {
  position: relative;
  transform: perspective(1200px) rotateY(calc(var(--mx, 0) * -6deg)) rotateX(calc(var(--my, 0) * 5deg));
  transition: transform 0.6s var(--ease);
}

.editor {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(var(--ink-rgb), 0.35), 0 2px 0 rgba(var(--ink-rgb), 0.04);
}
.editor-bar, .editor-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 16px;
  font-size: 11px;
}
.editor-bar { border-bottom: 1px solid var(--line); }
.editor-foot { border-top: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #ff8f7a; }
.dots i:nth-child(2) { background: var(--sun); }
.dots i:nth-child(3) { background: var(--mint); }
.rec { display: inline-flex; align-items: center; gap: 7px; color: var(--coral); }
.stage { width: 100%; height: auto; }

.timeline { position: relative; padding: 10px 16px 12px; border-top: 1px solid var(--line); background: #fbfaf7; }
.ruler {
  height: 10px;
  margin-left: 58px;
  margin-bottom: 6px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px 10%);
  background-size: 100% 6px;
  background-repeat: no-repeat;
  background-position: bottom;
}
.track { display: flex; align-items: center; gap: 10px; height: 20px; }
.track span { width: 48px; font-size: 10px; color: var(--ink-3); }
.lane { position: relative; flex: 1; height: 6px; border-radius: 3px; background: rgba(var(--ink-rgb), 0.06); }
.kf {
  position: absolute;
  top: 50%;
  width: 9px;
  height: 9px;
  background: var(--accent);
  transform: translate(-50%, -50%) rotate(45deg);
  border-radius: 2px;
}
.track:nth-child(3) .kf { background: var(--coral); }
.track:nth-child(4) .kf { background: var(--sun); }
.track:nth-child(5) .kf { background: var(--mint); }
.playhead {
  position: absolute;
  top: 6px;
  bottom: 8px;
  left: 74px;
  width: 2px;
  background: var(--coral);
  animation: playhead 8s linear infinite;
}
.playhead::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -5px;
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: var(--coral);
}

.float-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 14px 30px -16px rgba(var(--ink-rgb), 0.4);
  font-size: 11px;
  animation: bob 5s ease-in-out infinite;
}
.chip-a { top: 18%; left: -36px; color: var(--accent-2); }
.chip-b { bottom: 14%; right: -24px; animation-delay: -2.5s; }

/* Hero stage motion (8s loop, matches the playhead) */
.stage .sun-rays, .sun-rays { transform-box: fill-box; transform-origin: center; animation: spin 24s linear infinite; }
.sun-rays.slow { animation-duration: 30s; }
.cloud-a { animation: cloud 16s ease-in-out infinite alternate; }
.cloud-b { animation: cloud 12s ease-in-out infinite alternate-reverse; }
.chart .bar { transform-box: fill-box; transform-origin: bottom; animation: chart-bar 8s var(--ease) infinite; animation-delay: calc(var(--i) * 0.15s); }
.chart .trend { stroke-dasharray: 1 1; animation: chart-trend 8s var(--ease) infinite; }
.bulb-glass { animation: bulb 8s steps(1, end) infinite; }
.bulb-glow { opacity: 0; transform-box: fill-box; transform-origin: center; animation: bulb-glow 8s ease-out infinite; }
.gear { transform-box: fill-box; transform-origin: center; }
.gear-a { animation: spin 6s linear infinite; }
.gear-b { animation: spin 4s linear infinite reverse; }

/* ---------- Marquee ---------- */

.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  padding: 22px 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 28px;
}
.marquee-label { flex: none; padding-left: var(--gutter); }
.marquee-viewport {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-row { display: flex; align-items: baseline; gap: 18px; padding-right: 18px; white-space: nowrap; }
.marquee-row span { font-size: clamp(22px, 2.6vw, 32px); font-weight: 600; letter-spacing: -0.02em; }
.marquee-row em { font-style: normal; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--ink-3); }
.marquee-row b { color: var(--sun); font-size: 22px; margin: 0 14px; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 140px) 0; }
.section-tint { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 860px; }
.section-head .section-label { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.split-main { display: grid; gap: 20px; position: sticky; top: calc(var(--header-h) + 32px); }
.split-main .section-label { margin-bottom: 0; }
.split-side { display: grid; gap: 34px; padding-top: 8px; }

.points { display: grid; gap: 0; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.points li > span {
  width: 30px; height: 30px; border-radius: 8px;
  display: grid; place-items: center;
  background: var(--tint); color: var(--accent-2);
}
.points li:nth-child(2) > span { background: #fff1e6; color: #d4502f; }
.points li:nth-child(3) > span { background: #e6f8f0; color: #17845f; }
.points p { color: var(--ink-2); margin-top: 4px; }

/* ---------- Loops ---------- */

.loops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loop {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.loop:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(var(--ink-rgb), 0.45); border-color: var(--line-strong); }
.loop-media { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid var(--line); }
.loop-media svg { width: 100%; height: 100%; transition: transform 0.6s var(--ease); }
.loop:hover .loop-media svg { transform: scale(1.04); }
.loop-meta { padding: 20px 20px 24px; display: grid; gap: 8px; justify-items: start; }
.loop-meta p { color: var(--ink-2); font-size: 15.5px; }

.drift { animation: cloud 7s ease-in-out infinite alternate; }
.rain { animation: rain 1.1s linear infinite; animation-delay: calc(var(--i) * 0.27s); }
.vapour { animation: vapour 3s ease-in infinite; animation-delay: calc(var(--i) * 1s); }
.waves { animation: waves 3s linear infinite; }
.grow { transform-box: fill-box; transform-origin: bottom; animation: grow 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.18s); }
.draw { stroke-dasharray: 1 1; animation: draw 6s var(--ease) infinite; }
.coin { animation: coin 6s var(--ease) infinite; }
.flow { animation: dashflow 1s linear infinite; }
.pulse-ring { transform-box: fill-box; transform-origin: center; animation: ring 2.4s ease-out infinite; }
.glow-pulse { transform-box: fill-box; transform-origin: center; animation: glow 3s ease-in-out infinite; }
.stem { stroke-dasharray: 1 1; animation: stem 6s var(--ease) infinite; }
.leaf { transform-box: fill-box; transform-origin: bottom center; animation: leaf 6s var(--ease) infinite; animation-delay: calc(var(--i) * 0.25s); }
.flower { transform-box: fill-box; transform-origin: center; animation: flower 6s var(--ease) infinite; }
.skyline { animation: skyline 14s linear infinite; }
.road { animation: road 0.6s linear infinite; }
.truck { animation: truck 0.5s ease-in-out infinite alternate; }
.wheel { transform-box: fill-box; transform-origin: center; animation: spin 0.6s linear infinite; }

/* ---------- Services ---------- */

.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service {
  position: relative;
  padding: 34px 30px 38px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 12px;
  align-content: start;
  transition: background 0.35s var(--ease);
}
.service:hover { background: var(--paper); }
.service p { color: var(--ink-2); font-size: 15.5px; }
.glyph { position: relative; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 10px; background: var(--tint); overflow: hidden; }
.glyph::before, .glyph::after { content: ""; position: absolute; transition: transform 0.5s var(--ease); }
.g-play::before { left: 17px; top: 13px; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--accent); }
.service:hover .g-play::before { transform: scale(1.15); }
.g-doc { background: #fff1e6; }
.g-doc::before { left: 12px; right: 12px; top: 13px; height: 4px; border-radius: 2px; background: var(--coral); box-shadow: 0 8px 0 var(--coral), 0 16px 0 rgba(255, 107, 91, 0.45); }
.service:hover .g-doc::before { transform: translateY(-3px); }
.g-star { background: #fff6d6; }
.g-star::before { left: 13px; top: 13px; width: 20px; height: 20px; background: var(--sun); clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.service:hover .g-star::before { transform: rotate(90deg) scale(1.1); }
.g-chart { background: #e6f8f0; }
.g-chart::before { left: 11px; bottom: 11px; width: 6px; height: 12px; background: var(--mint); border-radius: 2px; box-shadow: 9px -6px 0 var(--mint), 18px -12px 0 var(--mint); }
.service:hover .g-chart::before { transform: translateY(-3px); }
.g-phone { background: #f1ecff; }
.g-phone::before { left: 16px; top: 9px; width: 14px; height: 28px; border: 3px solid #7b63e6; border-radius: 4px; }
.service:hover .g-phone::before { transform: rotate(-10deg); }
.g-wave { background: #e7f5ff; }
.g-wave::before { left: 10px; top: 21px; width: 26px; height: 4px; background: repeating-linear-gradient(90deg, #2f86d6 0 3px, transparent 3px 6px); }
.g-wave::after { left: 10px; top: 14px; width: 26px; height: 18px; background: repeating-linear-gradient(90deg, #2f86d6 0 3px, transparent 3px 6px); clip-path: polygon(0 40%, 12% 10%, 24% 60%, 36% 0, 48% 70%, 60% 20%, 72% 80%, 84% 30%, 100% 50%, 100% 60%, 84% 90%, 72% 100%, 60% 70%, 48% 100%, 36% 80%, 24% 100%, 12% 70%, 0 60%); opacity: 0.7; }
.service:hover .g-wave::after { transform: scaleY(1.3); }

/* ---------- Process ---------- */

.process { position: relative; }
.process-ruler { position: relative; height: 4px; border-radius: 2px; background: rgba(var(--ink-rgb), 0.08); margin-bottom: 34px; }
.process-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, var(--accent), var(--coral)); border-radius: 2px; }
.process-head {
  position: absolute;
  top: 50%;
  left: calc(var(--p, 0) * 100%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--paper);
  border: 4px solid var(--coral);
  transform: translate(-50%, -50%);
}
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.step { display: grid; gap: 10px; align-content: start; opacity: 0.38; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.step.is-active { opacity: 1; transform: none; }
.step-n { color: var(--accent-2); }
.step p { color: var(--ink-2); font-size: 15px; }

/* ---------- Credits ---------- */

.credits { display: grid; gap: 14px; }
.credit {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name tag" "city tag";
  align-items: center;
  gap: 4px 16px;
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease);
}
.credit:hover { transform: translateX(6px); border-color: var(--accent); }
.credit-name { grid-area: name; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.credit .faint { grid-area: city; }
.credit .tag { grid-area: tag; }

/* ---------- Quote ---------- */

.quote-card {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: linear-gradient(135deg, #fff3c4 0%, #ffe3d6 50%, #e3e7ff 100%);
  border: 1px solid var(--line);
}
.quote-card > * { position: relative; }
.quote-card .section-label { margin-bottom: 0; }
.quote-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.quote-intro { display: grid; gap: 22px; justify-items: start; position: sticky; top: calc(var(--header-h) + 32px); }
.quote-points { display: grid; gap: 10px; }
.quote-points li { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.quote-points .mono { width: 34px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, 0.7); color: var(--accent-2); font-size: 11px; }
.quote-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-top: 18px; border-top: 1px solid var(--line-strong); width: 100%; }
.quote-alt .mono { width: 100%; }
.quote-mail { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; border-bottom: 2px solid var(--sun); }

/* ---------- Quote form ---------- */

.form-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 34px);
  box-shadow: 0 40px 80px -50px rgba(var(--ink-rgb), 0.45);
  backdrop-filter: blur(6px);
}
.quote-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.field { display: grid; gap: 7px; align-content: start; font-size: 14px; font-weight: 500; color: var(--ink); }
.field > span i { font-style: normal; color: var(--coral); }
.field input, .field select, .field textarea {
  width: 100%;
  font: 400 16px/1.4 var(--font-display);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 13px 14px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 128px; }
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23161C2C' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.field select:invalid { color: var(--ink-3); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(var(--ink-rgb), 0.35); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.14);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(255, 107, 91, 0.12); }
.field-error { min-height: 0; font-size: 13px; color: #d4402f; font-weight: 500; }
.field-error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 4px; }
.form-status { font-size: 14px; color: var(--ink-2); }
.form-status.is-error { color: #d4402f; }
.btn-submit { position: relative; min-width: 230px; }
.spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  opacity: 0;
  animation: spin 0.8s linear infinite;
}
.is-sending .btn-label { opacity: 0; }
.is-sending .spinner { opacity: 1; }
.is-sending .btn-submit { pointer-events: none; }

.form-success { display: grid; justify-items: start; gap: 14px; padding: 18px 4px; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -0.02em; line-height: 1.15; }
.form-success p { color: var(--ink-2); max-width: 30em; }
.tick { width: 64px; height: 64px; }
.tick circle { fill: #e6f8f0; stroke: var(--mint); stroke-width: 3; stroke-dasharray: 150; stroke-dashoffset: 150; animation: tick-draw 0.7s var(--ease) forwards; }
.tick path { fill: none; stroke: #17845f; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: tick-draw 0.45s var(--ease) 0.45s forwards; }
@keyframes tick-draw { to { stroke-dashoffset: 0; } }
.quote-art { position: absolute; inset: 0; pointer-events: none; }
.q-shape { position: absolute; }
.q-sun { width: 180px; height: 180px; border-radius: 50%; background: var(--sun); right: 8%; top: -40px; opacity: 0.8; animation: bob 7s ease-in-out infinite; }
.q-ring { width: 120px; height: 120px; border-radius: 50%; border: 14px solid var(--accent); right: 22%; bottom: -40px; opacity: 0.25; animation: spin 20s linear infinite; }
.q-tri { width: 0; height: 0; border-style: solid; border-width: 0 40px 70px 40px; border-color: transparent transparent var(--coral) transparent; right: 6%; bottom: 22%; opacity: 0.7; animation: tilt 6s ease-in-out infinite; }
.q-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--mint); right: 30%; top: 22%; animation: bob 4s ease-in-out infinite; }

/* ---------- Footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 34px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; }

/* ---------- Reveal ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.js .hero-art[data-reveal] { transform: perspective(1200px) translateY(24px); }
.js .hero-art[data-reveal].is-visible { transform: perspective(1200px) rotateY(calc(var(--mx, 0) * -6deg)) rotateX(calc(var(--my, 0) * 5deg)); }

.is-paused, .is-paused * { animation-play-state: paused !important; }

/* ---------- Keyframes ---------- */

@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 91, 0.55); } 100% { box-shadow: 0 0 0 10px rgba(255, 107, 91, 0); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(10deg) translateY(-8px); } }
@keyframes playhead { from { left: 74px; } to { left: calc(100% - 16px); } }
@keyframes cloud { from { transform: translateX(-20px); } to { transform: translateX(30px); } }
@keyframes chart-bar { 0%, 6% { transform: scaleY(0); } 22%, 86% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes chart-trend { 0%, 22% { stroke-dashoffset: 1; } 38%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }
@keyframes bulb { 0% { fill: #e9eef7; } 44% { fill: #ffcc33; } 90% { fill: #e9eef7; } }
@keyframes bulb-glow { 0%, 43% { opacity: 0; transform: scale(0.6); } 48% { opacity: 1; transform: scale(1.1); } 52%, 86% { opacity: 0.85; transform: scale(1); } 92%, 100% { opacity: 0; transform: scale(0.8); } }
@keyframes rain { from { transform: translateY(0); opacity: 1; } to { transform: translateY(80px); opacity: 0; } }
@keyframes vapour { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateY(-90px); opacity: 0; } }
@keyframes waves { from { transform: translateX(0); } to { transform: translateX(-80px); } }
@keyframes grow { 0%, 4% { transform: scaleY(0); } 26%, 84% { transform: scaleY(1); } 96%, 100% { transform: scaleY(0); } }
@keyframes draw { 0%, 30% { stroke-dashoffset: 1; } 52%, 84% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }
@keyframes coin { 0%, 50% { transform: translateY(-40px); opacity: 0; } 58% { transform: translateY(0); opacity: 1; } 63% { transform: translateY(-8px); } 68%, 84% { transform: translateY(0); opacity: 1; } 94%, 100% { opacity: 0; } }
@keyframes dashflow { to { stroke-dashoffset: -22; } }
@keyframes ring { from { transform: scale(0.8); opacity: 0.8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes glow { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes stem { 0%, 4% { stroke-dashoffset: 1; } 30%, 86% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 1; } }
@keyframes leaf { 0%, 22% { transform: scale(0); } 34%, 86% { transform: scale(1); } 94%, 100% { transform: scale(0); } }
@keyframes flower { 0%, 38% { transform: scale(0) rotate(-40deg); } 48% { transform: scale(1.15) rotate(0); } 54%, 86% { transform: scale(1) rotate(0); } 94%, 100% { transform: scale(0); } }
@keyframes skyline { from { transform: translateX(0); } to { transform: translateX(-320px); } }
@keyframes road { from { transform: translateX(0); } to { transform: translateX(-48px); } }
@keyframes truck { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-intro { position: static; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 640px; }
  .loops, .services { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .split { grid-template-columns: 1fr; }
  .split-main { position: static; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .header-inner .btn-small { margin-left: auto; }
  .loops, .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .process-ruler { display: none; }
  .step { opacity: 1; transform: none; padding-left: 18px; border-left: 2px solid var(--line-strong); }
  .chip-a { left: -6px; top: -16px; }
  .chip-b { right: -6px; bottom: -16px; }
  .editor-foot span:last-child { display: none; }
  .marquee { flex-direction: column; align-items: stretch; gap: 14px; }
  .credit { grid-template-columns: 1fr; grid-template-areas: "name" "city" "tag"; justify-items: start; }
  .btn-big { height: auto; min-height: 56px; padding: 14px 22px; white-space: normal; text-align: center; }
  .q-ring, .q-tri, .q-dot { display: none; }
  .field-row { grid-template-columns: 1fr; }
  .btn-submit { width: 100%; }
  .q-sun { width: 110px; height: 110px; right: -30px; top: -40px; opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .step { opacity: 1; transform: none; }
}
