/* ============================================================
   SECTIONS — everything below the hero, plus the Reviews and
   legal pages. White page, built from rounded boxes (see .box
   and .bento in base.css).
   ============================================================ */

.sec { position: relative; padding-top: clamp(40px, 6vw, 84px); scroll-margin-top: 10px; }
.sechead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(20px, 3vw, 36px); }

/* Brand background element for white areas: faint orbit rings in a corner */
.rings::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  pointer-events: none;
  background: repeating-radial-gradient(circle at var(--rx) var(--ry), transparent 0 58px, rgba(184,156,122,.38) 58px 59px);
  -webkit-mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 0, transparent 68%);
          mask-image: radial-gradient(circle at var(--rx) var(--ry), #000 0, transparent 68%);
}
.rings--tr::before { --rx: 100%; --ry: 0%; top: -60px; right: calc(var(--pad) * -1); }
.rings--bl::before { --rx: 0%; --ry: 100%; bottom: -80px; left: calc(var(--pad) * -1); }

/* small pulsing "live" dot */
.live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(226,163,36,.6); animation: live 1.8s ease-out infinite; }
@keyframes live { to { box-shadow: 0 0 0 9px rgba(226,163,36,0); } }

.chip { display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--tint); border: 1px solid rgba(184,156,122,.55); font-size: 13px; font-weight: 500; color: var(--brown); }

/* ---------- 2. Proof ---------- */
.proof { display: grid; align-content: center; gap: clamp(14px, 2vw, 22px); min-height: clamp(260px, 30vw, 380px); --gx: 100%; --gy: 0%; }
.proof__line { font-family: var(--f-display); font-size: clamp(30px, 4.5vw, 60px); line-height: 1.06; text-wrap: balance; }
.proof__same { font-size: clamp(17px, 1.9vw, 24px); font-weight: 300; }
.proof__same b { font-weight: 600; color: var(--gold); }
.proof__live { justify-self: start; font-size: 14px; color: var(--tan); }

.stat { display: grid; align-content: end; gap: 6px; min-height: clamp(130px, 14vw, 180px); }
.stat__num { font-family: var(--f-display); font-size: clamp(34px, 3.8vw, 52px); line-height: 1; }
.stat__num small { font-size: .5em; }
.stat__label { font-size: 14.5px; line-height: 1.4; color: var(--brown); max-width: 22em; }
.stat--hero { align-content: space-between; justify-items: start; gap: 12px; }
.stat--hero .stars { fill: var(--maroon); width: 120px; }
.stat--hero .stat__num { font-size: clamp(72px, 9vw, 128px); line-height: .85; }
.stat--hero .stat__label { color: var(--maroon); font-weight: 500; font-size: 16px; }
@media (max-width: 900px) {
  .stat { min-height: 0; padding-block: 22px; }
  .stat--hero { grid-template-columns: 1fr auto; align-items: end; }
  .stat--hero .stars { grid-column: 1 / -1; }
  .stat--hero .stat__label { grid-column: 1; }
  .stat--hero .pill { grid-column: 2; grid-row: 2 / 4; align-self: end; }
}

.next { margin-top: clamp(36px, 5vw, 64px); text-align: center; font-size: 15px; font-weight: 500; }
.next span { display: inline-block; color: var(--gold-deep); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(4px); } }
#work.sec { padding-top: clamp(20px, 3vw, 32px); }

/* ---------- 3. Video grid ---------- */
.vgrid {
  --cols: 4;
  --vgap: 14px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--vgap);
}
@media (max-width: 900px) { .vgrid { --cols: 3; --vgap: 8px; } }
.vcard {
  position: relative;
  width: calc((100% - (var(--cols) - 1) * var(--vgap)) / var(--cols));
  aspect-ratio: 4 / 5;
  border-radius: clamp(10px, 1.6vw, 20px);
  overflow: hidden;
  /* shows if the thumbnail has not loaded */
  background: radial-gradient(90% 70% at 80% 0%, var(--maroon-2), var(--maroon));
  color: var(--white);
  text-align: left;
  transition: transform .25s ease, box-shadow .25s ease;
}
.vcard:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -14px rgba(60,15,15,.6); }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vcard::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(180deg, rgba(20,3,3,0), rgba(20,3,3,.85)); }
.vcard__play {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  width: clamp(30px, 4vw, 50px);
  aspect-ratio: 1;
  translate: -50% -50%;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.45);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  transition: background-color .2s ease, color .2s ease, scale .2s ease;
}
.vcard__play svg { width: 44%; height: 44%; }
.vcard:hover .vcard__play { background: var(--gold); color: var(--maroon); border-color: var(--gold); scale: 1.1; }
.vcard__label { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; padding: clamp(6px, 1.2vw, 14px); font-size: clamp(10.5px, 1.25vw, 14px); font-weight: 500; line-height: 1.2; }

.claim { margin-top: var(--gap); display: flex; flex-wrap: wrap; align-items: center; gap: 22px clamp(22px, 3.4vw, 48px); --gx: 0%; --gy: 100%; }
.claim .pill { margin-left: auto; }
@media (max-width: 700px) { .claim .pill { margin-left: 0; } }
.claim__line { flex: 1 1 14em; font-family: var(--f-display); font-size: clamp(24px, 3.1vw, 42px); line-height: 1.1; max-width: 19em; text-wrap: balance; }

/* ---------- Lightbox ---------- */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 56px 10px 20px; background: rgba(20,3,3,.95); color: var(--white); }
.lb[hidden] { display: none; }
.lb__stage { display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lb video { max-width: 100%; max-height: calc(100svh - 150px); border-radius: 14px; background: #000; }
.lb__label { font-size: 14px; color: var(--tan); }
.lb__x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: var(--maroon); font-size: 16px; font-weight: 600; }
.lb__nav { width: clamp(36px, 5vw, 52px); aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1); font-size: 26px; line-height: 1; padding-bottom: 4px; }
.lb__nav:hover { background: rgba(255,255,255,.2); }
.lb--single .lb__nav { visibility: hidden; }

/* ---------- 4. Get started + Robin ---------- */
.start { display: grid; align-content: space-between; gap: clamp(22px, 3vw, 40px); }
.start .lead { color: var(--brown); }
.start__line { font-family: var(--f-display); font-size: clamp(28px, 3.8vw, 52px); line-height: 1.06; text-wrap: balance; }
.start__go { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.start__fast { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; }
.start__fast b { font-weight: 600; }
@media (max-width: 480px) { .start__go .pill { font-size: 13.5px; } }
.ask { display: grid; justify-items: center; align-content: center; text-align: center; padding-block: clamp(28px, 4vw, 48px); }
.ask .lead { font-weight: 500; }

/* ---------- 5. Automation & apps ---------- */
.auto { margin-top: clamp(40px, 6vw, 84px); --gx: 90%; --gy: 0%; }
.auto__in {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px) clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 8vw, 104px) clamp(28px, 4vw, 48px);
}
@media (max-width: 900px) { .auto__in { grid-template-columns: 1fr; } }
.auto__big { font-family: var(--f-display); font-weight: 400; font-size: clamp(44px, 7.4vw, 104px); line-height: .95; }
.auto__mid { margin-top: clamp(18px, 2.4vw, 30px); font-size: clamp(19px, 2.3vw, 30px); line-height: 1.25; font-weight: 300; max-width: 21em; }
.auto__mid .em { font-weight: 600; }
.auto__say .pill { margin-top: clamp(26px, 3.4vw, 44px); }

.flow { border-radius: 24px; padding: clamp(18px, 2.6vw, 30px); background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.2); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 30px 60px -30px rgba(226,163,36,.35); }
.flow__tag { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--tan); }
.flow__row { margin-top: 18px; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; }
.flow__node { display: grid; justify-items: center; align-content: center; gap: 10px; padding: 18px 8px; border-radius: 16px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); text-align: center; font-size: clamp(11.5px, 1.1vw, 13.5px); line-height: 1.3; min-height: 118px; }
.flow__node svg { width: 26px; height: 26px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.flow__node--core { background: var(--gold); color: var(--maroon); border-color: var(--gold); font-weight: 600; box-shadow: 0 0 34px rgba(226,163,36,.45); }
.flow__node--core svg { stroke: var(--maroon); animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow__node span, #flow-name { transition: opacity .3s ease; }
.flow.is-swapping .flow__node span, .flow.is-swapping #flow-name { opacity: 0; }
/* the wire between nodes, with a pulse running along it */
.flow__wire { position: relative; width: clamp(18px, 3.4vw, 44px); height: 2px; background: rgba(255,255,255,.22); }
.flow__wire i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: pulse 1.6s linear infinite; }
.flow__wire + .flow__node + .flow__wire i { animation-delay: .8s; }
@keyframes pulse { from { left: -8px; opacity: 0; } 20%, 80% { opacity: 1; } to { left: 100%; opacity: 0; } }
.flow__list { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.flow__list li { padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); font-size: 12.5px; color: rgba(255,255,255,.85); }
@media (max-width: 520px) {
  .flow__row { grid-template-columns: 1fr; justify-items: stretch; }
  .flow__node { min-height: 0; grid-template-columns: auto 1fr; justify-items: start; text-align: left; padding: 14px 16px; font-size: 13.5px; }
  .flow__wire { width: 2px; height: 22px; margin-left: 28px; }
  .flow__wire i { left: -3px; top: 0; animation-name: pulse-v; }
  @keyframes pulse-v { from { top: -8px; opacity: 0; } 20%, 80% { opacity: 1; } to { top: 100%; opacity: 0; } }
}

/* Outreach app card (inside the automation panel) */
.outreach {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 24px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
}
@media (max-width: 760px) { .outreach { grid-template-columns: 1fr; } }
.outreach__tag { font-size: 14px; color: var(--tan); }
.outreach__tag b { color: var(--gold); font-weight: 600; }
.outreach__big { margin-top: 6px; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 5.4vw, 72px); line-height: 1; }
.outreach__line { margin-top: 12px; font-size: clamp(17px, 1.9vw, 23px); font-weight: 300; line-height: 1.3; max-width: 24em; }
.outreach__line .em { font-weight: 600; }
.outreach__go { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 14.5px; }
.sender { border-radius: 18px; padding: 18px; background: rgba(20,3,3,.45); border: 1px solid rgba(255,255,255,.14); display: grid; gap: 14px; }
.sender__url { font-size: 12px; color: var(--tan); padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.08); justify-self: start; }
.sender__boxes { display: flex; gap: 8px; }
.sender__boxes li { flex: 1; aspect-ratio: 1; max-width: 46px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255,255,255,.22); font-size: 13px; font-weight: 500; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .3s ease; }
.sender__boxes li.is-on { background: var(--gold); border-color: var(--gold); color: var(--maroon); transform: translateY(-3px); }
.sender__count { font-family: var(--f-display); font-size: clamp(26px, 3vw, 38px); line-height: 1; }
.sender__count b { font-weight: 400; color: var(--gold); font-variant-numeric: tabular-nums; }
.sender__last { font-size: 12.5px; color: rgba(255,255,255,.7); }

/* ---------- 6. Client dashboard (coming soon) ---------- */
.dash { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-top: clamp(56px, 8vw, 110px); }
@media (max-width: 900px) { .dash { grid-template-columns: 1fr; } }
.dash__big { margin-top: 18px; font-size: clamp(40px, 6vw, 84px); line-height: .98; }
.dash__points { margin-top: clamp(20px, 3vw, 32px); display: grid; gap: 12px; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.4; max-width: 25em; }
.dash__points li { padding-left: 26px; position: relative; }
.dash__points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--gold); }

.mock { border-radius: 22px; background: var(--maroon); color: var(--white); box-shadow: 0 40px 70px -30px rgba(60,15,15,.7); overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(255,255,255,.06); font-size: 12px; }
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); }
.mock__bar b { margin-left: 8px; font-weight: 500; color: var(--tan); }
.mock__body { padding: clamp(16px, 2.4vw, 26px); }
.mock__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.mock__title { font-family: var(--f-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.mock__sub, .mock__count { font-size: 12.5px; color: var(--tan); }
.mock__count b { color: var(--gold); font-weight: 600; }
.mock__track { margin-top: 14px; height: 6px; border-radius: 6px; background: rgba(255,255,255,.14); overflow: hidden; }
.mock__track i { display: block; height: 100%; width: 0; background: var(--gold); border-radius: 6px; transition: width .5s ease; }
.mock__list { margin-top: 16px; display: grid; gap: 8px; }
.mock__list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: 14px; transition: background-color .4s ease; }
.mock__list em { font-style: normal; font-size: 12px; color: var(--tan); }
/* the tick box */
.mock__list i { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid rgba(255,255,255,.4); display: grid; place-items: center; transition: background-color .25s ease, border-color .25s ease, transform .25s ease; }
.mock__list i::after { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--maroon); border-bottom: 2px solid var(--maroon); transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s ease .05s; }
.mock__list li.is-done { background: rgba(226,163,36,.12); }
.mock__list li.is-done i { background: var(--gold); border-color: var(--gold); transform: scale(1.08); }
.mock__list li.is-done i::after { transform: rotate(-45deg) scale(1); }
.mock__list li.is-done span { opacity: .75; }
.mock__pay { margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; border: 1px dashed rgba(255,255,255,.3); transition: background-color .4s ease, border-color .4s ease, color .4s ease; }
.mock__lock { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); flex: none; }
.mock__lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.mock__pay p { display: grid; font-size: 13.5px; line-height: 1.3; }
.mock__pay b { font-weight: 600; }
.mock__pay p span { font-size: 12px; opacity: .7; }
.mock__pay.is-paid { background: var(--gold); border: 1px solid var(--gold); color: var(--maroon); }
.mock__pay.is-paid .mock__lock { background: rgba(60,15,15,.14); }

/* ---------- 7. Review quotes ---------- */
#reviews.sec { padding-top: clamp(64px, 9vw, 120px); }
.quote { margin: 0; display: grid; gap: 16px; align-content: start; }
.quote blockquote { margin: 0; font-size: clamp(17px, 1.9vw, 22px); line-height: 1.4; }
.quote figcaption { font-size: 13.5px; font-weight: 500; }
.quote figcaption span { display: block; font-weight: 400; color: var(--brown); }

/* ---------- Email CTA (gold panel) ---------- */
.mailme { margin-top: clamp(40px, 6vw, 84px); background: var(--gold); color: var(--maroon); }
.mailme::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-radial-gradient(circle at 100% 100%, transparent 0 58px, rgba(60,15,15,.13) 58px 59px);
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000, transparent 62%);
          mask-image: radial-gradient(circle at 100% 100%, #000, transparent 62%);
}
.mailme__in { padding-block: clamp(48px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: clamp(24px, 4vw, 64px); justify-items: start; row-gap: clamp(16px, 2vw, 24px); }
.mailme__in > * { grid-column: 1; }
.mailme__in > .env { grid-column: 2; grid-row: 1 / span 4; align-self: center; }
@media (max-width: 820px) {
  .mailme__in { grid-template-columns: 1fr; }
  .mailme__in > .env { grid-column: 1; grid-row: 1; font-size: 150px; margin-bottom: -6px; }
}
.mailme__big { font-family: var(--f-display); font-weight: 400; font-size: clamp(30px, 6.4vw, 92px); line-height: .98; }
.mailme .lead { max-width: 32em; font-weight: 500; }
.mailme__go { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.mailme__copy { padding: .8em 1.2em; border-radius: 999px; border: 1.5px solid var(--maroon); font-size: 14.5px; font-weight: 500; }
.mailme__copy:hover { background: var(--maroon); color: var(--white); }
.mailme__alt { font-size: 14.5px; }
.mailme .tlink:hover { color: var(--white); }
@media (max-width: 420px) { .mailme__go .pill { font-size: 13.5px; } }

/* ============================================================
   REVIEWS PAGE
   ============================================================ */
.pagehead { --gx: 50%; --gy: 0%; }
.pagehead__in { padding: clamp(36px, 6vw, 80px) 0 clamp(44px, 7vw, 96px); text-align: center; display: grid; justify-items: center; gap: 14px; }
.pagehead__big { font-family: var(--f-display); font-weight: 400; font-size: clamp(52px, 10vw, 140px); line-height: .9; }
.pagehead__line { font-size: clamp(15px, 1.7vw, 19px); font-style: italic; font-weight: 300; }
.pagehead__line b { font-weight: 600; }
.pagehead--slim .pagehead__big { font-size: clamp(40px, 6.4vw, 84px); }

.rsec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: var(--gap); align-items: start; }
.rsec .h2 { margin-bottom: clamp(20px, 3vw, 36px); font-size: clamp(30px, 4vw, 52px); }

/* Upwork screenshots: dark frame so the dark screenshots sit cleanly */
.shot { margin: 0; padding: clamp(10px, 1.6vw, 18px); border-radius: 20px; background: #101010; }
.shot img { width: 100%; height: auto; border-radius: 10px; }
.shot figcaption { padding: 12px 6px 4px; font-size: 12.5px; color: rgba(255,255,255,.6); }

/* Video testimonial */
.vtest { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); align-items: center; }
@media (max-width: 700px) { .vtest { grid-template-columns: 1fr; } .vtest .vcard { max-width: 260px; margin-inline: auto; } }
.vtest .vcard { width: 100%; border: 1px solid rgba(255,255,255,.2); }
.vtest__quote { font-family: var(--f-display); font-size: clamp(22px, 2.8vw, 38px); line-height: 1.15; }
.vtest__who { margin-top: 16px; font-size: 14px; color: var(--tan); }
.vtest__who b { display: block; color: var(--white); font-weight: 500; }

/* ============================================================
   LEGAL PAGES (terms, privacy)
   ============================================================ */
.legal { max-width: 46rem; padding-block: clamp(36px, 6vw, 72px) clamp(48px, 7vw, 96px); }
.legal__date { font-size: 14px; color: var(--brown); }
.legal h2 { margin-top: 2.2em; font-family: var(--f-display); font-weight: 400; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.15; }
.legal p, .legal ul { margin-top: .9em; font-size: 16px; line-height: 1.65; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li + li { margin-top: .4em; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }



/* ---------- Review screenshot zoom ---------- */
.shot img { cursor: zoom-in; transition: opacity .2s ease; }
.shot img:hover { opacity: .85; }
.zoom { position: fixed; inset: 0; z-index: 210; display: grid; place-items: center; padding: 60px 10px 16px; background: rgba(20,3,3,.95); cursor: zoom-out; }
.zoom[hidden] { display: none; }
.zoom__scroll { max-width: 100%; max-height: 100%; overflow: auto; border-radius: 12px; }
/* on phones the picture stays wide enough to read, and you swipe sideways */
.zoom img { width: min(1100px, max(96vw, 760px)); max-width: none; height: auto; border-radius: 12px; }

/* ---------- Scroll animation (classes are added by site.js) ---------- */
.reveal {
  opacity: 0;
  translate: 0 34px;
  transition: opacity .6s ease, translate .7s cubic-bezier(.2,.8,.2,1);
}
.reveal[data-exit="top"] { translate: 0 -34px; }
.reveal.is-in { opacity: 1; translate: 0 0; transition-delay: var(--d, 0ms); }

/* ============================================================
   3D OBJECTS — stopwatch, gears, envelope
   All drawn with CSS/SVG in the same glossy maroon-and-gold
   style as Robin. Sized in em: change font-size to scale one.
   ============================================================ */

/* ---------- Stopwatch (fast delivery) ---------- */
.sw { position: relative; flex: none; width: 1em; height: 1.16em; font-size: clamp(96px, 10.5vw, 148px); animation: sw-bob 3.2s ease-in-out infinite; }
.sw__body {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 1em;
  height: 1em;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 34% 24%, #b06a52 0%, #7a3024 34%, #3c0f0f 70%, #1f0606 100%);
  box-shadow: inset 0 0 .1em rgba(255,226,190,.55), inset 0 -.08em .16em rgba(226,163,36,.4), 0 0 0 .03em rgba(214,188,150,.85), 0 .1em .25em rgba(0,0,0,.45);
}
.sw__face {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 30%, #fffaf0, #ecd9bd 75%, #cdb590);
  box-shadow: inset 0 .03em .08em rgba(60,15,15,.55), 0 0 0 .012em rgba(226,163,36,.9);
}
/* tick marks */
.sw__face::before {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -1.6deg, var(--maroon) 0 3.2deg, transparent 3.2deg 30deg);
  -webkit-mask-image: radial-gradient(closest-side, transparent 80%, #000 81%);
          mask-image: radial-gradient(closest-side, transparent 80%, #000 81%);
}
.sw__hand { position: absolute; left: 50%; bottom: 50%; width: .03em; height: 40%; margin-left: -.015em; border-radius: .02em; background: linear-gradient(var(--gold-deep), var(--maroon)); transform-origin: 50% 100%; animation: spin 1.3s linear infinite; }
.sw__hand--slow { height: 25%; width: .045em; margin-left: -.0225em; background: var(--maroon); animation-duration: 15.6s; }
.sw__pin { position: absolute; left: 50%; top: 50%; width: .09em; height: .09em; margin: -.045em; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffe08a, var(--gold) 60%, #8f5f06); }
/* glass over the dial, like Robin's visor */
.sw__glass { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(140deg, rgba(255,255,255,.38) 0%, rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(184,140,96,.28), rgba(184,140,96,0) 45%); pointer-events: none; }
.sw__crown { position: absolute; left: 50%; top: 0; width: .2em; height: .22em; margin-left: -.1em; border-radius: .05em .05em .02em .02em; background: linear-gradient(90deg, #8f5f06, #ffe08a 45%, var(--gold) 70%, #8f5f06); box-shadow: 0 0 0 .012em rgba(60,15,15,.5); animation: sw-press 1.3s ease-in-out infinite; }
.sw__btn { position: absolute; right: .1em; top: .14em; width: .13em; height: .17em; border-radius: .035em; background: linear-gradient(90deg, #5a1c17, #b06a52 50%, #5a1c17); rotate: 42deg; }
.sw__shadow { position: absolute; left: 12%; right: 12%; bottom: -.1em; height: .09em; border-radius: 50%; background: radial-gradient(closest-side, rgba(0,0,0,.45), rgba(0,0,0,0)); animation: sw-shadow 3.2s ease-in-out infinite; }
@keyframes sw-bob { 50% { transform: translateY(-.05em) rotate(-4deg); } }
@keyframes sw-shadow { 50% { transform: scale(.85); opacity: .7; } }
@keyframes sw-press { 0%, 12%, 100% { transform: translateY(0); } 6% { transform: translateY(.03em); } }

/* ---------- Gears with smoke (automation) ---------- */
.auto__show { min-width: 0; }
.gears { position: relative; height: 13.5em; font-size: clamp(10px, 1.25vw, 16px); margin-bottom: .6em; }
.gears__tilt { position: absolute; left: 50%; top: 52%; width: 0; height: 0; transform: perspective(48em) rotateX(46deg) rotateZ(-10deg); transform-style: preserve-3d; }
/* the stacked shadow gives each gear its thickness */
.gear { position: absolute; filter: drop-shadow(0 .22em 0 var(--side)) drop-shadow(0 .44em 0 var(--side)) drop-shadow(0 1.3em .9em rgba(0,0,0,.5)); }
.gear svg { width: 100%; height: 100%; }
.gear--a { --side: #7a5206; width: 13.6em; height: 13.6em; left: -10.8em; top: -6.8em; }
.gear--b { --side: #5a452f; width: 9.6em; height: 9.6em; left: 1.2em; top: -4.8em; }
.gear--a svg { animation: gear-a 12s linear infinite; }
.gear--b svg { animation: gear-b 8s linear infinite; }   /* 8 teeth vs 12 → turns 1.5x faster, the other way */
@keyframes gear-a { to { transform: rotate(360deg); } }
@keyframes gear-b { from { transform: rotate(22.5deg); } to { transform: rotate(-337.5deg); } }
.puff {
  position: absolute;
  left: calc(50% + .2em);
  top: 34%;
  width: 3em;
  height: 3em;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,238,214,.6), rgba(255,238,214,0));
  filter: blur(.28em);
  opacity: 0;
  animation: puff 3.4s ease-out infinite;
}
.puff:nth-of-type(2) { --dx: -2.4em; animation-delay: .7s; }
.puff:nth-of-type(3) { --dx: 2em; animation-delay: 1.4s; }
.puff:nth-of-type(4) { --dx: -.8em; animation-delay: 2.1s; }
.puff:nth-of-type(5) { --dx: 3.2em; animation-delay: 2.8s; }
@keyframes puff {
  0% { opacity: 0; transform: translate(0, 0) scale(.35); }
  18% { opacity: .9; }
  100% { opacity: 0; transform: translate(var(--dx, 1em), -7em) scale(2.3); }
}

/* ---------- Envelope (email CTA): letter slides in, flap folds, badge pops ---------- */
.env { position: relative; width: 1em; height: .92em; font-size: clamp(170px, 21vw, 280px); perspective: 4em; }
.env__tilt { position: absolute; left: 0; right: 0; bottom: .1em; height: .62em; transform: rotateX(10deg) rotateY(-22deg) rotateZ(-3deg); animation: env-hop 6s ease-in-out infinite; }
.env__back, .env__front, .env__flap, .env__letter { position: absolute; }
.env__back { inset: 0; border-radius: .04em; background: linear-gradient(180deg, #2a0909, #4a1614); box-shadow: 0 0 0 .012em rgba(214,188,150,.9); }
.env__letter {
  left: 8%;
  right: 8%;
  bottom: 6%;
  height: 86%;
  border-radius: .02em;
  background: linear-gradient(180deg, #fff, #f3e9db);
  box-shadow: 0 .01em .04em rgba(0,0,0,.3);
  padding: 12% 12% 0;
  display: grid;
  align-content: start;
  gap: .035em;
  z-index: 2;
  animation: env-letter 6s cubic-bezier(.5,0,.2,1) infinite;
}
.env__letter i { height: .022em; border-radius: .02em; background: rgba(60,15,15,.28); }
.env__letter i:first-child { width: 45%; background: var(--gold); }
.env__letter i:last-child { width: 70%; }
.env__front {
  inset: 0;
  border-radius: .04em;
  -webkit-clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
          clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(150deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,0) 30%), radial-gradient(circle at 30% 20%, #a05a46 0%, #6e2a21 40%, #3c0f0f 100%);
  z-index: 3;
}
.env__flap {
  left: 0;
  right: 0;
  top: 0;
  height: 58%;
  -webkit-clip-path: polygon(0 0, 100% 0, 50% 100%);
          clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: linear-gradient(180deg, #b06a52, #7a3024 70%, #5a1c17);
  transform-origin: 50% 0;
  z-index: 1;
  /* the fold: the flap flips from pointing up (open) to pointing down (closed) */
  animation: env-flap 6s ease-in-out infinite;
}
.env__badge {
  position: absolute;
  right: -.06em;
  top: -.2em;
  padding: .5em .9em;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--gold);
  font: 600 13px/1 var(--f-body);
  white-space: nowrap;
  box-shadow: 0 8px 18px -6px rgba(60,15,15,.6);
  z-index: 5;
  transform: scale(0);
  animation: env-badge 6s cubic-bezier(.3,1.5,.5,1) infinite;
}
.env__shadow { position: absolute; left: 8%; right: 8%; bottom: 0; height: .09em; border-radius: 50%; background: radial-gradient(closest-side, rgba(60,15,15,.4), rgba(60,15,15,0)); }
@keyframes env-letter {
  0% { transform: translateY(-112%); opacity: 0; }
  8% { transform: translateY(-112%); opacity: 1; }
  38%, 100% { transform: translateY(0); opacity: 1; }
}
@keyframes env-flap {
  0%, 40% { transform: scaleY(-1); z-index: 1; filter: brightness(.7); }
  48% { transform: scaleY(0); z-index: 1; filter: brightness(1.25); }
  48.1% { z-index: 4; }
  56%, 100% { transform: scaleY(1); z-index: 4; filter: brightness(1); }
}
@keyframes env-hop {
  0% { opacity: 0; }
  6%, 56% { opacity: 1; transform: rotateX(10deg) rotateY(-22deg) rotateZ(-3deg); }
  61% { transform: rotateX(10deg) rotateY(-22deg) rotateZ(-3deg) translateY(.03em) scale(1.04, .94); }
  68% { transform: rotateX(10deg) rotateY(-14deg) rotateZ(2deg) translateY(-.09em); }
  76%, 93% { opacity: 1; transform: rotateX(10deg) rotateY(-22deg) rotateZ(-3deg); }
  100% { opacity: 0; transform: rotateX(10deg) rotateY(-22deg) rotateZ(-3deg); }
}
@keyframes env-badge {
  0%, 64% { transform: scale(0); }
  72%, 92% { transform: scale(1); }
  97%, 100% { transform: scale(0); }
}

@media (prefers-reduced-motion: reduce) {
  .next span, .live, .flow__wire i, .flow__node--core svg,
  .sw, .sw__hand, .sw__crown, .sw__shadow, .gear svg, .puff,
  .env__tilt, .env__letter, .env__flap, .env__badge { animation: none; }
  .env__flap { z-index: 4; }
  .env__badge { transform: scale(1); }
}
