/* =========================================================
   REJIO — main stylesheet
   Colors live in :root so they can be changed in one place.
   ========================================================= */

:root {
  /* Brand colors */
  --bg: #f7f5ee;          /* off-white page background */
  --bg-2: #efede2;        /* slightly darker off-white for panels */
  --bg-3: #eaf1df;        /* pale matcha tint */
  --ink: #262a24;         /* soft charcoal for text (kept dark so it's easy to read) */
  --ink-2: #555b51;       /* softer body text */
  --muted: #8a8f84;       /* labels, small print */
  --matcha: #b5d39a;      /* light matcha green (main accent) */
  --matcha-hover: #a6c986;/* matcha when hovered */
  --matcha-soft: #dcebc9; /* very light matcha */
  --matcha-deep: #86ad62; /* slightly stronger matcha for accent text */
  --cream: #ece5b9;       /* warm cream used in gradients */
  --sage: #a8cdb3;        /* cool sage used in gradients */
  --line: rgba(38, 42, 36, 0.12);
  --line-strong: rgba(38, 42, 36, 0.22);

  /* Fonts */
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;

  /* Layout */
  --max: 1280px;
  --gutter: clamp(16px, 5vw, 84px);
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* No overflow rule here: it would stop "sticky" elements (like the process circle) from staying pinned.
     Sideways scrolling is already prevented by `overflow-x: clip` on html. */
  animation: page-in 0.8s var(--ease) both;
}

@keyframes page-in { from { opacity: 0; } to { opacity: 1; } }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--matcha); color: var(--ink); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(48px, 8.4vw, 116px); }
h2 { font-size: clamp(38px, 5vw, 64px); }
h3 { font-family: var(--sans); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0; color: var(--ink-2); }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.italic { font-style: italic; }
.accent { color: var(--matcha-deep); }

/* ---------- Scroll progress bar ---------- */
.progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 100%;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--matcha), var(--cream), var(--sage));
  z-index: 100;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(247, 245, 238, 0.97); /* nearly solid, so no costly live blur needed */
  border-color: var(--line);
}
.header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand svg { width: 24px; height: 30px; }
.brand span { font-weight: 700; letter-spacing: 0.22em; font-size: 17px; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a.link {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
  position: relative;
}
.nav a.link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--matcha-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav a.link:hover::after,
.nav a.link.active::after { transform: scaleX(1); transform-origin: left; }

.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.menu-btn svg { width: 26px; height: 26px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--line-strong);
  transition: transform 0.3s var(--ease), background 0.3s, box-shadow 0.3s, color 0.3s;
  cursor: pointer;
  font-family: var(--sans);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn .spark { color: var(--matcha-deep); transition: transform 0.6s var(--ease); }
.btn:hover .spark { transform: rotate(180deg); }

.btn-solid {
  background: var(--matcha);
  color: var(--ink);
  border-color: var(--matcha);
  box-shadow: 0 10px 30px -12px rgba(38, 42, 36, 0.5);
}
.btn-solid .spark { color: var(--ink); }
.btn-solid:hover { background: var(--matcha-hover); box-shadow: 0 16px 40px -14px rgba(134, 173, 98, 0.7); }

.btn-matcha {
  background: var(--matcha);
  border-color: var(--matcha);
  color: var(--ink);
}
.btn-matcha:hover { background: var(--matcha-hover); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(181, 211, 154, 0.18); }

.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Reveal-on-scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; }

/* Word-by-word headline rise */
.split .w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
.split .w > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform 1.1s var(--ease);
  transition-delay: calc(var(--i) * 0.06s);
}
.split.in .w > span { transform: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--gutter) 80px;
  overflow: hidden;
  isolation: isolate;
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero::before {
  /* soft matcha glow behind the logo */
  content: "";
  position: absolute;
  top: 8%;
  left: 50%;
  width: min(760px, 120vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(181, 211, 154, 0.55) 0%, rgba(236, 229, 185, 0.35) 35%, transparent 68%);
  will-change: transform, opacity;
  z-index: -1;
  animation: halo 7s ease-in-out infinite;
}
@keyframes halo {
  0%, 100% { opacity: 0.85; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

.hero-mark {
  width: clamp(120px, 15vw, 190px);
  margin-bottom: clamp(28px, 4vw, 48px);
  perspective: 900px;
}
.hero-mark svg {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(134, 173, 98, 0.28));
  animation: mark-turn 2.2s var(--ease) both, mark-float 6s ease-in-out 2.2s infinite;
  transform-style: preserve-3d;
}
/* The R draws itself as one continuous line */
.r-draw path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw-r 2.4s var(--ease) 0.25s forwards;
}
@keyframes draw-r { to { stroke-dashoffset: 0; } }
/* Header logo redraws when hovered */
.brand:hover svg path { stroke-dasharray: 1; animation: redraw 1.2s var(--ease); }
@keyframes redraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

@keyframes mark-turn {
  0% { opacity: 0; transform: rotateY(-80deg) rotateX(12deg) scale(0.86); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotateY(0) rotateX(0) scale(1); }
}
@keyframes mark-float {
  0%, 100% { transform: translateY(0) rotateY(0); }
  50% { transform: translateY(-10px) rotateY(10deg); }
}

.hero h1 { max-width: 1100px; }
.hero h1 .line { display: block; }
.etch {
  font-style: italic;
  color: var(--matcha-deep);
  animation: etch 2.6s var(--ease) 0.9s both;
}
@keyframes etch {
  0% {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--matcha-deep);
    text-shadow: 0 0 18px rgba(181, 211, 154, 0.9);
  }
  55% {
    color: transparent;
    -webkit-text-stroke: 1.4px var(--matcha-deep);
    text-shadow: 0 0 26px rgba(181, 211, 154, 0.8);
  }
  100% {
    color: var(--matcha-deep);
    -webkit-text-stroke: 0 transparent;
    text-shadow: 0 0 0 transparent;
  }
}
.hero .lede {
  max-width: 620px;
  margin: 32px auto 0;
  font-size: clamp(16px, 1.4vw, 18px);
}
.hero .ctas {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
  justify-content: center;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px; height: 36px;
  border: 1.5px solid var(--line-strong);
  border-radius: 20px;
}
.scroll-cue::after {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 3px; height: 7px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--matcha-deep);
  animation: cue 1.8s ease-in-out infinite;
}
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Marquee strip ---------- */
.strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
  overflow: hidden;
  position: relative;
}
.strip::before, .strip::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
}
.strip::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.strip::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
  will-change: transform;
}
.strip:hover .marquee { animation-play-state: paused; }
.marquee span {
  font-family: var(--serif);
  font-size: clamp(22px, 2.4vw, 30px);
  padding: 0 28px;
  white-space: nowrap;
  color: var(--ink-2);
  display: flex;
  align-items: center;
  gap: 56px;
}
.marquee span::after { content: "✦"; font-size: 14px; color: var(--matcha-deep); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic sections ---------- */
section { position: relative; }
.section { padding: clamp(90px, 12vw, 160px) 0; }
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
.section-head > p { font-size: 17px; max-width: 460px; justify-self: end; }

/* ---------- Service rows ---------- */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 1.1fr 1.6fr 0.8fr;
  gap: 40px;
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.5s;
}
.row::before {
  content: "";
  position: absolute;
  inset: 0 calc(var(--gutter) * -0.5);
  background: linear-gradient(90deg, rgba(181, 211, 154, 0.16), transparent 70%);
  opacity: 0;
  transition: opacity 0.5s;
  border-radius: 12px;
  z-index: -1;
}
.row:hover::before { opacity: 1; }
.row .num { font-family: var(--serif); color: var(--matcha-deep); font-size: 18px; display: block; margin-bottom: 8px; }
.row h2 { font-size: clamp(32px, 3.4vw, 44px); }
.row h3 { margin-bottom: 12px; }
.row .meta {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-end;
  text-align: right;
  font-size: 13px;
  color: var(--muted);
}
.arrow-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.arrow-link i { font-style: normal; transition: transform 0.35s var(--ease); }
.arrow-link:hover i { transform: translateX(5px); }

/* ---------- Capability cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 30px;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -28px rgba(38, 42, 36, 0.35); }
.card::after {
  /* light follows the mouse (set by JS) */
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(181, 211, 154, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover::after { opacity: 1; }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: var(--matcha-deep);
}
.card .icon svg { width: 22px; height: 22px; }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 15px; }

/* ---------- Demo "videos" ---------- */
.demos { display: grid; gap: clamp(64px, 8vw, 110px); }
.demo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-2);
  padding: 1.5px;
}
.demo-frame::before {
  /* moving gradient border */
  content: "";
  position: absolute;
  inset: -50%;
  background: conic-gradient(from 0deg, var(--matcha), var(--cream), var(--sage), var(--matcha-soft), var(--matcha));
  animation: spin 9s linear infinite;
  will-change: transform;
}
@keyframes spin { to { transform: rotate(1turn); } }
.demo-screen {
  position: relative;
  height: 100%;
  border-radius: 17px;
  background: linear-gradient(180deg, #fbfaf5, #f1efe5);
  overflow: hidden;
}
.demo-caption {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 40px;
  margin-top: 28px;
}
.demo-caption h3 { margin-bottom: 4px; }
.demo-caption .sub { font-size: 14px; color: var(--muted); }
.demo-caption p { font-size: 17px; }
.demo-tag {
  position: absolute;
  top: 18px; right: 20px;
  z-index: 5;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(247, 245, 238, 0.85);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.demo-tag::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #d9534f;
  animation: rec 1.4s ease-in-out infinite;
}
@keyframes rec { 50% { opacity: 0.25; } }

/* (The product-video styles live in css/films.css) */

/* ---------- Margin levers ---------- */
.levers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.lever {
  padding: 32px 28px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.4s;
}
.lever:hover { background: rgba(181, 211, 154, 0.14); }
.lever .n { font-family: var(--serif); font-size: 22px; color: var(--matcha-deep); }
.lever p { font-size: 15px; flex: 1; }
.lever .hit {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--bg-3);
  color: #4f7034;
}

/* ---------- Worked example ---------- */
.example {
  margin-top: clamp(50px, 7vw, 90px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 52px);
  box-shadow: 0 40px 80px -60px rgba(38, 42, 36, 0.5);
}
.ex-head h3 {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 12px 0 10px;
  max-width: 780px;
}
.ex-head h3 em { color: var(--matcha-deep); }
.ex-note { font-size: 13.5px; color: var(--muted); }
.ex-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(30px, 5vw, 70px); margin-top: 36px; }
.ex-start, .ex-end {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--bg-2);
}
.ex-start span, .ex-end span { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.ex-end { background: var(--matcha-soft); margin-bottom: 14px; }
.ex-end em { font-style: normal; color: #4f7034; }
.ex-math ol { list-style: none; padding: 0; margin: 10px 0; counter-reset: s; }
.ex-math li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  counter-increment: s;
}
.ex-math li > div { display: grid; grid-template-columns: 24px 1fr; column-gap: 12px; }
.ex-math li > div::before {
  content: counter(s);
  grid-row: span 2;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--matcha);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
}
.ex-math li b { display: block; font-size: 15px; }
.ex-math li small { display: block; color: var(--muted); font-size: 13px; }
.ex-math li > span { font-family: var(--serif); font-size: 22px; color: #4f7034; white-space: nowrap; }

.ex-viz { display: flex; flex-direction: column; gap: 26px; }
.margin-flip { display: flex; align-items: center; gap: 18px; }
.margin-flip small { display: block; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.margin-flip strong { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; color: var(--muted); }
.margin-flip .after strong { color: var(--ink); }
.margin-flip .arrow { font-size: 28px; color: var(--matcha-deep); }

.waterfall {
  position: relative;
  flex: 1;
  min-height: 260px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line-strong);
}
.wf { position: relative; }
.wf i {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(var(--b) * 1%);
  height: calc(var(--h) * 1%);
  border-radius: 6px;
  background: #d3dcc6;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.9s var(--ease);
}
.wf.up i { background: var(--matcha); }
.wf.end i { background: linear-gradient(180deg, var(--matcha-deep), var(--matcha)); }
.wf span {
  position: absolute;
  left: 50%;
  bottom: calc((var(--b) + var(--h)) * 1% + 6px);
  transform: translateX(-50%);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s;
}
.wf em {
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.example.in .wf i { transform: scaleY(1); }
.example.in .wf span { opacity: 1; }
.example.in .wf:nth-child(2) i, .example.in .wf:nth-child(2) span { transition-delay: 0.35s; }
.example.in .wf:nth-child(3) i, .example.in .wf:nth-child(3) span { transition-delay: 0.6s; }
.example.in .wf:nth-child(4) i, .example.in .wf:nth-child(4) span { transition-delay: 0.85s; }
.example.in .wf:nth-child(5) i, .example.in .wf:nth-child(5) span { transition-delay: 1.1s; }
.example.in .wf:nth-child(6) i, .example.in .wf:nth-child(6) span { transition-delay: 1.45s; }

/* "Also" row under the demos */
.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: clamp(50px, 6vw, 80px);
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.also .eyebrow { margin-right: 8px; }
.also span:not(.eyebrow) {
  padding: 9px 16px;
  border-radius: 99px;
  background: var(--bg-3);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
}

/* ---------- Process orbit ---------- */
.process { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.orbit-wrap { position: sticky; top: 14vh; height: 72vh; display: grid; place-items: center; }
.orbit { position: relative; width: min(400px, calc(100% - 200px)); aspect-ratio: 1; }
.orbit .ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  background: conic-gradient(var(--matcha), var(--cream), var(--sage), var(--matcha)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.orbit .spinner { position: absolute; inset: 0; animation: spin 14s linear infinite; will-change: transform; }
.orbit .spinner.slow { animation-duration: 22s; animation-direction: reverse; }
.orbit .spinner i {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  top: -4px; left: calc(50% - 4px);
  box-shadow: 0 0 10px var(--matcha);
}
.orbit .spinner.slow i { top: auto; bottom: 10%; left: 8%; background: var(--matcha-deep); }
.orbit .core {
  position: absolute;
  inset: 32%;
  display: grid;
  place-items: center;
}
.orbit .core::before {
  content: "";
  position: absolute;
  inset: -40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 211, 154, 0.6), transparent 65%);
  animation: halo2 5s ease-in-out infinite;
}
@keyframes halo2 { 50% { transform: scale(1.12); opacity: 0.7; } }
.orbit .core svg { width: 52%; position: relative; }
.orbit .stop {
  position: absolute;
  width: 34px; height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  transition: all 0.5s var(--ease);
}
.orbit .stop span {
  position: absolute;
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  transition: color 0.4s;
}
.orbit .stop.on { background: var(--matcha); color: var(--ink); border-color: var(--matcha); transform: scale(1.18); box-shadow: 0 0 0 8px rgba(181, 211, 154, 0.35); }
.orbit .stop.on span { color: var(--ink); }
.s1 { top: 0; left: 50%; } .s1 span { bottom: 44px; }
.s2 { top: 50%; left: 100%; } .s2 span { left: 46px; }
.s3 { top: 100%; left: 50%; } .s3 span { top: 44px; }
.s4 { top: 50%; left: 0; } .s4 span { right: 46px; }

.steps { display: flex; flex-direction: column; }
.step {
  min-height: 46vh;
  padding-top: 34px;
  border-top: 1px solid var(--line);
  opacity: 0.35;
  transition: opacity 0.6s;
}
.step.on { opacity: 1; }
.step .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.step .n { font-family: var(--serif); font-size: 46px; color: var(--matcha-deep); line-height: 1; }
.step .when { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.step h3 { font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 14px; }
.step p { font-size: 17px; max-width: 520px; }
.step .get { margin-top: 22px; font-size: 14px; color: var(--muted); }
.step .get b { color: var(--ink); font-weight: 600; }

/* ---------- Statement / who ---------- */
.statement {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.statement h2 { margin: 16px 0 24px; }
.statement .fit {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(28px, 4vw, 44px);
}
.statement .fit h3 { font-size: 22px; }
.statement .fit .checks { margin: 22px 0 30px; }
.statement .big {
  font-family: var(--serif);
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 350;
}
.statement .big em { color: var(--matcha-deep); }
.checks { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink-2); }
.checks li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--matcha-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.6L14 7.6' fill='none' stroke='%2386ad62' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ---------- Closing CTA ---------- */
.cta {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d4e8bd 0%, var(--matcha) 55%, #c4dfae 100%);
  color: var(--ink);
  border-radius: 28px;
  margin: 0 var(--gutter);
  padding: clamp(60px, 9vw, 120px) clamp(28px, 6vw, 90px);
  isolation: isolate;
}
.cta h2 { color: var(--ink); max-width: 640px; }
.cta p { color: var(--ink-2); max-width: 520px; margin-top: 22px; font-size: 18px; }
.cta .ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.cta .btn-matcha { background: var(--bg); border-color: var(--bg); }
.cta .btn-matcha:hover { background: #fff; }
.cta .btn-ghost { color: var(--ink); border-color: rgba(38, 42, 36, 0.25); }
.cta .btn-ghost:hover { background: rgba(255, 255, 255, 0.35); }
.cta canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.cta .big-r {
  position: absolute;
  right: -4%;
  bottom: -18%;
  width: min(560px, 60%);
  z-index: -1;
  opacity: 0.95;
}
.cta .big-r .shine { animation: nebula 10s ease-in-out infinite alternate; }
@keyframes nebula { from { transform: translate(-10%, -6%) rotate(0); } to { transform: translate(10%, 8%) rotate(25deg); } }

/* ---------- Footer ---------- */
.footer { padding: clamp(80px, 10vw, 130px) 0 40px; }
.footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.footer .tag { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1.05; margin: 26px 0 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.footer ul a { color: var(--ink-2); transition: color 0.3s; }
.footer ul a:hover { color: var(--matcha-deep); }
.footer .bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 70px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Floating "talk" pill ---------- */
.talk {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  border-radius: 999px;
  background: rgba(247, 245, 238, 0.97);
  border: 1px solid var(--line-strong);
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 14px 34px -16px rgba(38, 42, 36, 0.4);
  transform: translateY(120px);
  transition: transform 0.7s var(--ease), box-shadow 0.3s;
}
.talk.show { transform: none; }
.talk:hover { box-shadow: 0 18px 40px -14px rgba(134, 173, 98, 0.55); }
.talk .dot {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--matcha);
  display: grid;
  place-items: center;
  position: relative;
}
.talk .dot svg { width: 13px; }
.talk .dot::after {
  content: "";
  position: absolute;
  right: 0; bottom: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #6cc36c;
  border: 2px solid var(--bg);
}

/* ---------- Sub-page hero ---------- */
.page-hero { padding: 170px 0 80px; position: relative; overflow: hidden; isolation: isolate; }
.page-hero h1 { font-size: clamp(46px, 7vw, 96px); max-width: 980px; }
.page-hero .lede { max-width: 600px; margin-top: 28px; font-size: 18px; }
.page-hero .ctas { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.page-hero .glow {
  position: absolute;
  right: -10%;
  top: -20%;
  width: 60vw;
  max-width: 800px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(181, 211, 154, 0.45), rgba(236, 229, 185, 0.25) 40%, transparent 68%);
  z-index: -1;
  animation: halo 8s ease-in-out infinite;
}

.tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 50px; }
.tabs a {
  padding: 10px 18px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.3s;
}
.tabs a:hover { background: var(--matcha-soft); }

/* Service detail blocks */
.detail {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 70px;
  padding: 80px 0;
  border-top: 1px solid var(--line);
  scroll-margin-top: 90px;
}
.detail .num { font-family: var(--serif); color: var(--matcha-deep); font-size: 20px; }
.detail h2 { margin: 10px 0 18px; }
.detail .time {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--bg-3);
  color: var(--matcha-deep);
  font-weight: 600;
}
.detail .box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; }
.detail .box h3 { margin-bottom: 4px; }

/* Numbered deliverables */
.deliver { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.deliver .card .n { font-family: var(--serif); font-size: 34px; color: var(--matcha-deep); display: block; margin-bottom: 18px; line-height: 1; }

/* Pricing note */
.price-note {
  background: var(--bg-3);
  border-radius: 24px;
  padding: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 50px;
  align-items: center;
}
.price-note p { font-size: 17px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus {
  flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  position: relative;
  transition: transform 0.45s var(--ease), background 0.3s;
}
.faq summary .plus::before, .faq summary .plus::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 1.5px;
  margin: -0.75px 0 0 -6px;
  background: var(--ink);
}
.faq summary .plus::after { transform: rotate(90deg); }
.faq details[open] .plus { transform: rotate(45deg); background: var(--matcha-soft); }
.faq .answer { padding: 0 0 28px; max-width: 760px; }
.faq .answer p { font-size: 17px; }
.faq details[open] .answer { animation: drop 0.5s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* Forms */
.form-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 70px; scroll-margin-top: 90px; }
form.form { display: grid; gap: 22px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--ink-2); }
.field input, .field textarea, .field select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--matcha-deep);
  box-shadow: 0 0 0 4px rgba(181, 211, 154, 0.3);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.chips label {
  margin: 0;
  padding: 9px 16px;
  border-radius: 99px;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s;
}
.chips input:checked + label { background: var(--matcha); color: var(--ink); border-color: var(--matcha); }
.chips input:focus-visible + label { box-shadow: 0 0 0 3px var(--matcha); }
.form-note { font-size: 13px; color: var(--muted); }
.form-done {
  display: none;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-3);
  color: var(--matcha-deep);
  font-weight: 600;
}
.form-done.show { display: block; animation: drop 0.5s var(--ease); }

/* Booking page */
.booker {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 80px -50px rgba(38, 42, 36, 0.45);
}
.booker .info { padding: 40px; border-right: 1px solid var(--line); background: var(--bg-2); }
.booker .info h3 { font-size: 26px; font-family: var(--serif); font-weight: 400; margin: 18px 0 14px; }
.booker .info ul { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; color: var(--ink-2); font-size: 15px; }
.booker .pick { padding: 40px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.cal-head b { font-size: 17px; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; }
.day, .slot {
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: all 0.25s var(--ease);
}
.day small { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.day b { font-size: 20px; font-family: var(--serif); font-weight: 400; }
.day:hover, .slot:hover { border-color: var(--matcha-deep); transform: translateY(-2px); }
.day.sel, .slot.sel { background: var(--matcha); color: var(--ink); border-color: var(--matcha); }
.day.sel small { color: var(--ink-2); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-top: 28px; }
.slots:empty { display: none; }
form.book-form { display: none; margin-top: 30px; padding-top: 28px; border-top: 1px solid var(--line); }
.book-form.show { display: grid; animation: drop 0.5s var(--ease); }

/* Coming soon note */
.soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--matcha-deep);
  font-weight: 700;
}
.soon::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--matcha); animation: rec 1.6s infinite; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .section-head, .statement, .price-note, .form-wrap, .detail, .demo-caption, .ex-grid { grid-template-columns: 1fr; }
  .section-head > p { justify-self: start; }
  .levers { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 16px; }
  .row .meta { flex-direction: row; align-items: center; text-align: left; }
  .cards { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 20px; }
  .orbit-wrap { position: relative; top: 0; height: auto; padding: 60px 0; }
  .step { min-height: 0; padding-bottom: 60px; opacity: 1; }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .footer .grid > :first-child { grid-column: 1 / -1; }
  .booker { grid-template-columns: 1fr; }
  .booker .info { border-right: 0; border-bottom: 1px solid var(--line); }
  .cta .big-r { opacity: 0.3; width: 70%; }
  .orbit { width: min(400px, 80%); }
  .orbit-wrap { overflow: hidden; }
}

@media (max-width: 760px) {
  .levers { grid-template-columns: 1fr; }
  .lever { padding: 26px 20px; }
  .ex-math li > span { font-size: 18px; }
  .wf span { font-size: 10.5px; }
  .wf em { font-size: 10.5px; }
  .film-step { font-size: 11px; left: 8px; bottom: 8px; padding: 4px 12px 4px 4px; }
  .film-step span { width: 18px; height: 18px; font-size: 10px; }
  .demo-tag { top: 8px; right: 8px; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 28px var(--gutter) 34px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-130%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.5s var(--ease);
  }
  .nav.open { transform: none; visibility: visible; pointer-events: auto; }
  .nav a.link { font-size: 15px; }
  .menu-btn { display: block; }
  .cards { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .orbit .stop span { display: none; }
  .talk span.txt { display: none; }
  .talk { padding: 8px; }
  .cta { margin: 0 12px; border-radius: 22px; }
  .booker .info, .booker .pick { padding: 26px 20px; }
}

/* Respect people who turn off motion in their system settings */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
}

/* ---------- Privacy / Terms pages ---------- */
.legal-hero { padding-bottom: 40px; }
.legal-hero h1 { font-size: clamp(40px, 6vw, 76px); }
.legal { max-width: 780px; padding-bottom: 60px; }
.legal p, .legal li { font-size: 17px; color: var(--ink-2); }
.legal > p { margin-bottom: 16px; }
.legal h2 {
  font-size: clamp(24px, 2.4vw, 30px);
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal ul { padding-left: 20px; margin: 0 0 16px; display: grid; gap: 10px; }
.legal li::marker { color: var(--matcha-deep); }
.legal a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--matcha); text-underline-offset: 3px; }
.legal b { color: var(--ink); }
.legal-links { display: flex; gap: 22px; flex-wrap: wrap; }
.legal-links a:hover { color: var(--matcha-deep); }

/* ---------- Performance: pause looping animations off screen ----------
   JS adds .is-off to a section when it scrolls out of view. */
.is-off, .is-off *, .is-off::before, .is-off::after, .is-off *::before, .is-off *::after {
  animation-play-state: paused !important;
}


/* Email draft fallback: no form delivery or calendar account required. */
.draft-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.form-done label { display: grid; gap: 8px; color: var(--ink); font-size: 14px; }
.form-done textarea { width: 100%; min-width: 0; padding: 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: inherit; font-size: 14px; resize: vertical; }
.form-done .form-note { margin-top: 12px; color: var(--ink-2); }
.form-done:focus { outline: 2px solid var(--matcha-deep); outline-offset: 4px; }
.booker .form-note a { text-decoration: underline; text-underline-offset: 3px; }


/* Live Google appointment scheduling and a direct-link fallback. */
.booking-summary { display: grid; gap: 8px; margin-bottom: 22px; }
.booking-summary strong { color: var(--ink); }
.booking-calendar { min-width: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #fff; }
.booking-calendar iframe { display: block; width: 100%; min-width: 0; height: 760px; }
.booking-fallback { display: grid; justify-items: start; gap: 16px; margin-top: 24px; }
.booking-fallback .btn { white-space: normal; }
.booking-fallback .form-note a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .booking-calendar iframe { height: 960px; } }
