/* ROLOom.ai — the "în curând" page.
   Colours, type and ROLO's finish are copied from the app
   (artifacts/roloom/src/index.css, fonts.css, rolo-figure.tsx). */

/* ── Fonts, served from this site ── */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-ext-wght-italic.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/fraunces-latin-wght-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ── Tokens ── */
:root {
  --navy: #2c3e50;
  --navy-rgb: 44, 62, 80;
  --purple: #60338f;
  --coral: #e76158;
  --golden: #f7aa2b;
  --sage: #7a9a6d;
  --canvas: #fdf9f3;
  --zori: #fbf0dd;
  --warm-border: #e6d7c0;

  --font-sans: "Inter", system-ui, Arial, sans-serif;
  --font-display: "Fraunces", Georgia, serif;

  --gutter: clamp(20px, 5vw, 72px);
  --hair: rgba(var(--navy-rgb), 0.09);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, p, ol, figure, blockquote { margin: 0; }
ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
a { color: inherit; }
em { font-style: italic; }

::selection { background: rgba(96, 51, 143, 0.16); }

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--purple);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* The name, in its three colours: ROLO navy, om coral (you), .ai purple (the AI) */
.brand { font-family: var(--font-sans); font-weight: 700; white-space: nowrap; color: var(--navy); }
.brand i { font-style: normal; font-weight: 800; color: var(--coral); }
.brand b { font-weight: 800; color: var(--purple); }

.page { position: relative; overflow: hidden; }

.wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: 880px; }

.kicker {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(var(--navy-rgb), 0.55);
}
.kicker-purple { color: var(--purple); }

/* ── The thread through the page ── */
.weave {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}
.weave path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.no-js .weave { display: none; }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding-bottom: 12px;
}
.hero .wrap { max-width: 1280px; }

.strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.strings-front { z-index: 3; }
.no-js .strings { display: none; }
.js .thread-fallback { display: none; }

.hero-top {
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: clamp(16px, 2.4vw, 28px);
}
.logo { height: 44px; width: auto; margin-left: -4px; }
.logo-small { height: 36px; }

.hero-body {
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  padding-block: clamp(20px, 4vh, 48px);
}
.hero-text { width: 100%; }

.hero h1 {
  margin-top: 0.14em;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(4.4rem, 10.6vw, 10.2rem);
  line-height: 0.94;
  letter-spacing: -0.025em;
  color: var(--navy);
}
.hero h1 em { color: var(--purple); padding-right: 0.04em; }

.thread-anchor {
  position: relative;
  height: clamp(60px, 7.4vw, 96px);
}
.thread-fallback { position: absolute; left: -10vw; top: 50%; width: 120vw; height: 40px; margin-top: -20px; }

.scissors {
  position: absolute;
  left: 0;
  top: 50%;
  width: clamp(46px, 5vw, 66px);
  height: auto;
  overflow: visible;
  fill: none;
  stroke: var(--navy);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translate(-8%, -36%) rotate(-76deg);
}
.blade { transform-origin: 12px 12px; }

.tagline {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  line-height: 1.2;
  text-wrap: balance;
}
.lead {
  margin-top: 0.9rem;
  max-width: 35rem;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
  color: rgba(var(--navy-rgb), 0.64);
  text-wrap: pretty;
}

/* ROLO — finish copied from the app's RoloFigure */
.rolo {
  --rolo-size: clamp(230px, 31vw, 430px);
  position: absolute;
  z-index: 2;
  top: 30%;
  right: max(var(--gutter), calc((100vw - 1280px) / 2 + var(--gutter)));
  width: var(--rolo-size);
  height: var(--rolo-size);
  pointer-events: none;
}
.rolo-glow {
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--golden), var(--coral) 45%, var(--purple) 80%);
  filter: blur(64px);
  opacity: 0.2;
}
.rolo-tilt,
.rolo-breathe,
.rolo-figure { width: 100%; height: 100%; }
.rolo-tilt { position: relative; will-change: transform; }
.rolo-figure { position: relative; isolation: isolate; }
.rolo-figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(0.9) contrast(0.95) brightness(1.04) drop-shadow(0 24px 28px rgba(44, 62, 80, 0.18));
  user-select: none;
}
.rolo-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.5) 6%, rgba(255, 255, 255, 0.14) 28%, transparent 48%, rgba(96, 51, 143, 0.16) 82%);
  -webkit-mask: url("assets/rolo-cutout.webp") center / contain no-repeat;
  mask: url("assets/rolo-cutout.webp") center / contain no-repeat;
  mix-blend-mode: soft-light;
}

.bead { position: absolute; border-radius: 50%; }
.b1 { left: 10%; top: 16%; width: 8px; height: 8px; background: rgba(247, 170, 43, 0.75); }
.b2 { left: 2%; top: 60%; width: 5px; height: 5px; background: rgba(96, 51, 143, 0.4); }
.b3 { left: 88%; top: 12%; width: 5px; height: 5px; background: rgba(96, 51, 143, 0.38); }
.b4 { left: 96%; top: 50%; width: 8px; height: 8px; background: rgba(247, 170, 43, 0.65); }
.b5 { left: 84%; top: 86%; width: 5px; height: 5px; background: rgba(231, 97, 88, 0.5); }

.cue {
  z-index: 4;
  align-self: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(var(--navy-rgb), 0.55);
  text-decoration: none;
  transition: color 0.2s;
}
.cue:hover { color: var(--purple); }
.cue svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ───────── Sections ───────── */
main, .footer { position: relative; z-index: 1; }

.section { position: relative; padding-block: clamp(96px, 12vw, 152px); }

.section h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.1rem, 4.5vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.section h2 em { color: var(--purple); }

/* Despre ROLOom.ai: one card. The statement on the Violet theme, the three principles under it. */
.about {
  overflow: hidden;
  border-radius: clamp(24px, 3vw, 36px);
  border: 1px solid var(--hair);
  background: #fff;
}
.about { --about-pad: clamp(26px, 6vw, 84px); }
.about-body { padding: clamp(30px, 5vw, 60px) var(--about-pad) clamp(34px, 5.5vw, 72px); }
.panel {
  position: relative;
  overflow: hidden;
  padding: clamp(30px, 6vw, 84px);
  padding-bottom: clamp(84px, 11vw, 150px);
  background: var(--purple);
  color: #fff;
}
.panel::after {
  /* threads along the bottom of the panel, clear of the text */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: clamp(18px, 3vw, 44px);
  height: 60px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none' fill='none' stroke-linecap='round'%3E%3Cpath d='M-20 30 C 130 6 290 54 450 30 S 760 6 920 30 S 1130 52 1220 26' stroke='%23e76158' stroke-width='3'/%3E%3Cpath d='M-20 38 C 160 56 320 14 490 34 S 790 54 950 26 S 1140 14 1220 38' stroke='%23f7aa2b' stroke-width='1.6'/%3E%3Cpath d='M-20 22 C 150 40 340 4 510 24 S 770 44 960 18 S 1150 36 1220 18' stroke='%23ffffff' stroke-opacity='.55' stroke-width='1.6'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  pointer-events: none;
}
.panel .kicker { color: rgba(255, 255, 255, 0.72); }
.panel .brand,
.panel .brand i,
.panel .brand b { color: inherit; }
.panel h2 { margin-top: 0.5em; max-width: 17ch; color: #fff; }
.panel h2 em { color: var(--golden); }
.panel-text {
  margin-top: 1.5rem;
  max-width: 44rem;
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  text-wrap: pretty;
}

.sub {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(var(--navy-rgb), 0.58);
}
/* The three principles: three stretches of one thread, which runs through the card from edge
   to edge. Above the thread, the principle; under it, what it means. */
.principles {
  display: grid;
  margin: clamp(22px, 3vw, 34px) calc(-1 * var(--about-pad)) 0;
  padding: 0;
  list-style: none;
}
.principles li {
  --side: var(--about-pad);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0 var(--side) 30px;
}
.principles li:last-child { padding-bottom: 0; }
.principles h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.55rem, 2.25vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -0.012em;
  text-wrap: balance;
}
.principles h4 em { color: var(--purple); }
.p-line {
  position: relative;
  height: 28px;
  margin: 12px calc(-1 * var(--side)) 16px;
}
.p-thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.p-thread path { fill: none; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.p-thread .t1 { stroke: var(--coral); stroke-width: 2.6px; }
.p-thread .t2 { stroke: var(--purple); stroke-width: 1.4px; opacity: 0.7; }
.p-thread .t3 { stroke: var(--golden); stroke-width: 1.4px; }
.p-knot {
  position: absolute;
  left: calc(var(--side) + 3px);
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -6.5px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 3.5px #fff;
}
.principles li:nth-child(2) .p-knot { background: var(--golden); }
.principles li:nth-child(3) .p-knot { background: var(--coral); }
.principles p {
  font-size: 0.97rem;
  line-height: 1.64;
  color: rgba(var(--navy-rgb), 0.68);
  text-wrap: pretty;
}

/* Filmul */
.section-film { text-align: center; }
.film {
  position: relative;
  width: min(100%, 540px);
  margin-inline: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: clamp(22px, 3vw, 32px);
  border: 1px solid var(--hair);
  background: var(--canvas);
}
.film video { width: 100%; height: 100%; object-fit: cover; }
.film-toggle {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--hair);
  background: rgba(253, 249, 243, 0.92);
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.js .film-toggle { display: flex; }
.film-toggle:hover { border-color: rgba(96, 51, 143, 0.35); color: var(--purple); }
.film-toggle svg { width: 18px; height: 18px; fill: currentColor; stroke: none; }
.film-toggle .icon-play { display: none; margin-left: 2px; }
.film.paused .icon-play { display: block; }
.film.paused .icon-pause { display: none; }

/* Oana */
.h2-small { font-size: clamp(1.7rem, 3.1vw, 2.35rem) !important; }
.h2-small .brand { font-family: var(--font-sans); letter-spacing: -0.02em; }
.body-text {
  margin-top: 1.1rem;
  font-size: 1.03rem;
  line-height: 1.7;
  color: rgba(var(--navy-rgb), 0.72);
  text-wrap: pretty;
}
.quote {
  margin-top: 32px;
  border-radius: 24px;
  border: 1px solid var(--hair);
  background: #fff;
}
.quote blockquote { padding: clamp(24px, 4vw, 36px); }
.quote blockquote p { font-size: 1rem; line-height: 1.68; color: rgba(var(--navy-rgb), 0.78); text-wrap: pretty; }
.quote blockquote p + p { margin-top: 1rem; }
.quote figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(24px, 4vw, 36px);
  border-top: 1px solid rgba(var(--navy-rgb), 0.07);
}
.quote-name { font-size: 0.95rem; font-weight: 600; }
.quote-role { font-size: 0.82rem; color: rgba(var(--navy-rgb), 0.55); }
.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 1px solid var(--hair);
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(var(--navy-rgb), 0.74);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-quiet:hover { border-color: rgba(96, 51, 143, 0.3); color: var(--navy); }
.btn-quiet svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Încheierea */
.section-closing { text-align: center; padding-bottom: clamp(88px, 10vw, 136px); }
.knot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  margin: -7.5px 0 0 -7.5px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px var(--canvas);
  z-index: 2;
}
.js .knot { transform: scale(0); transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.js .knot.tied { transform: scale(1); }

.closing-big {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}
.closing-big em { color: var(--purple); }
.closing-line {
  max-width: 30rem;
  margin: 1.1rem auto 0;
  font-size: 1.125rem;
  line-height: 1.6;
  color: rgba(var(--navy-rgb), 0.66);
  text-wrap: balance;
}

/* Footer */
.footer { border-top: 1px solid var(--hair); padding: 28px 0 36px; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.footer-mail { font-size: 0.92rem; font-weight: 600; color: var(--purple); text-decoration: none; }
.footer-mail:hover { text-decoration: underline; text-underline-offset: 3px; }
.social { display: flex; gap: 20px; font-size: 0.92rem; font-weight: 600; }
.social a { color: rgba(var(--navy-rgb), 0.72); text-decoration: none; }
.social a:hover { color: var(--purple); }
.footer-year { font-size: 0.8rem; color: rgba(var(--navy-rgb), 0.52); }

/* ───────── Wider screens ───────── */
@media (min-width: 760px) {
  :root { --gutter: clamp(52px, 6.4vw, 84px); }
}
@media (min-width: 880px) {
  /* the outer columns carry the card's own padding, so they are wider by that much: the three texts are equal */
  .principles {
    --edge: calc(var(--about-pad) - 22px);
    --col: calc((100% - 2 * var(--edge)) / 3);
    grid-template-columns: calc(var(--col) + var(--edge)) var(--col) calc(var(--col) + var(--edge));
  }
  .principles li { --side: 22px; padding-bottom: 0; }
  .principles li:first-child { padding-left: var(--about-pad); }
  .principles li:last-child { padding-right: var(--about-pad); }
  .principles li:first-child .p-line { margin-left: calc(-1 * var(--about-pad)); }
  .principles li:last-child .p-line { margin-right: calc(-1 * var(--about-pad)); }
  .principles li:first-child .p-knot { left: calc(var(--about-pad) + 3px); }
  /* the principle sits on the thread: titles of one or two lines end at the same height */
  .principles h4 { display: flex; align-items: flex-end; min-height: 2.3em; }
}
/* ───────── Phones ───────── */
@media (max-width: 759px) {
  /* the thread runs down the left edge: the content steps aside for it */
  main .wrap { padding-left: 42px; padding-right: 20px; }
  .section-closing .wrap { padding-left: 30px; padding-right: 30px; }
  .knot { top: 0; }
}
@media (max-width: 620px) {
  .hero h1 { font-size: clamp(4.6rem, 25vw, 7.4rem); }
  .hero h1 .h1-in { display: block; }
  /* the thread gets a band of its own, tall enough for ROLO to sit on it */
  .rolo { --rolo-size: clamp(132px, 40vw, 168px); right: 10px; }
  .logo { height: 40px; }
  .hero-body { align-items: flex-start; padding-top: clamp(24px, 7vh, 80px); }
  .thread-anchor { height: clamp(150px, 44vw, 184px); }
  .panel::after { height: 38px; }
}

/* ───────── Motion ───────── */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js [data-reveal].in { opacity: 1; transform: none; }

.js .p-thread { clip-path: inset(-10px 100% -10px 0); transition: clip-path 1s var(--ease); transition-delay: calc(var(--d, 0ms) + 250ms); }
.js li.in .p-thread { clip-path: inset(-10px 0 -10px 0); }
.js .p-knot { transform: scale(0); transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); transition-delay: calc(var(--d, 0ms) + 500ms); }
.js li.in .p-knot { transform: scale(1); }

.js .hero-top, .js .hero .kicker, .js .hero h1 > span, .js .hero h1 > em,
.js .tagline, .js .lead, .js .cue, .js .scissors, .js .rolo {
  opacity: 0;
  animation: rise 0.9s var(--ease) forwards;
}
.js .hero-top { animation-delay: 0.05s; }
.js .hero .kicker { animation-delay: 0.15s; }
.js .hero h1 > span, .js .hero h1 > em { display: inline-block; }
.js .hero h1 > .sr-only { display: block; animation: none; opacity: 1; }
.js .hero h1 > .h1-in { animation-delay: 0.25s; }
.js .hero h1 > em { animation-delay: 0.45s; }
.js .tagline { animation-delay: 1.15s; }
.js .lead { animation-delay: 1.3s; }
.js .cue { animation-delay: 2s; }
.js .scissors { animation: appear 0.6s var(--ease) 1.5s forwards; }
.js .rolo { animation: rolo-in 1.1s cubic-bezier(0.3, 1.3, 0.5, 1) 0.9s forwards; }
@media (max-width: 620px) {
  .js .hero h1 > .h1-in { display: block; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
@keyframes appear { to { opacity: 1; } }
@keyframes rolo-in {
  from { opacity: 0; transform: scale(0.82) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

.rolo-breathe { animation: breathe 8s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.015) rotate(-1.4deg); }
  50% { transform: scale(1.03) rotate(0deg); }
  75% { transform: scale(1.015) rotate(1.4deg); }
}
.bead { animation: drift 9s ease-in-out infinite; }
.b2 { animation-duration: 11s; animation-delay: -2s; }
.b3 { animation-duration: 8s; animation-delay: -4s; }
.b4 { animation-duration: 12s; animation-delay: -1s; }
.b5 { animation-duration: 10s; animation-delay: -6s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(5px, -13px) scale(1.2); }
  50% { transform: translate(0, 0) scale(1); }
  75% { transform: translate(-6px, 9px) scale(0.9); }
}

/* the scissors try the thread now and then */
.blade-a { animation: snip-a 5.5s ease-in-out 3s infinite; }
.blade-b { animation: snip-b 5.5s ease-in-out 3s infinite; }
@keyframes snip-a {
  0%, 78%, 100% { transform: rotate(0deg); }
  83% { transform: rotate(-15deg); }
  88% { transform: rotate(0deg); }
  93% { transform: rotate(-15deg); }
}
@keyframes snip-b {
  0%, 78%, 100% { transform: rotate(0deg); }
  83% { transform: rotate(15deg); }
  88% { transform: rotate(0deg); }
  93% { transform: rotate(15deg); }
}

.cue svg { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js [data-reveal],
  .js .hero-top, .js .hero .kicker, .js .hero h1 > span, .js .hero h1 > em,
  .js .tagline, .js .lead, .js .cue, .js .scissors, .js .rolo {
    opacity: 1;
    transform: none;
  }
  .js .scissors { transform: translate(-8%, -36%) rotate(-76deg); }
  .js .knot, .js .p-knot { transform: scale(1); }
  .js .p-thread { clip-path: none; }
}
