/* =========================================================
   VURO STUDIO | service.css
   Styles for the service pages (services/*.html). Load AFTER styles.css.
   ========================================================= */

/* ---------- Shared section head ---------- */
.svc-head {
  display: grid;
  gap: 20px 48px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
@media (min-width: 900px) {
  .svc-head { grid-template-columns: 1.4fr 1fr; align-items: end; }
}
.svc-head__title { max-width: 13em; font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.045em; }
.svc-head__intro { max-width: 34ch; margin: 0; color: var(--muted); }

/* =========================================================
   1: hero
   ========================================================= */
.svc-hero {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: calc(var(--header-h) + clamp(36px, 6vw, 80px));
  padding-bottom: clamp(56px, 8vw, 110px);
  background: var(--bg);
  color: var(--fg);
}
.svc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(45% 45% at 88% 30%, rgba(185, 245, 26, 0.14), transparent 70%),
    radial-gradient(40% 40% at 0% 100%, rgba(214, 180, 140, 0.12), transparent 70%);
}
.svc-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--cream) 1px, transparent 1.7px);
  background-size: 12px 12px;
  opacity: 0.07;
  -webkit-mask-image: linear-gradient(to bottom left, #000, transparent 60%);
  mask-image: linear-gradient(to bottom left, #000, transparent 60%);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 48px);
  font-size: 0.85rem;
  color: var(--muted);
}
.crumbs a { text-decoration: none; transition: color 0.25s; }
.crumbs a:hover { color: var(--lime); }
.crumbs [aria-current] { color: var(--fg); }

.svc-hero__grid { display: grid; gap: clamp(40px, 6vw, 80px); align-items: center; }
@media (min-width: 980px) { .svc-hero__grid { grid-template-columns: 1.2fr 1fr; } }

.svc-hero__title {
  max-width: 9em;
  font-size: var(--fs-hero);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.055em;
  color: #fff;
}
.svc-hero__title em { font-style: normal; color: var(--lime); }
.svc-hero__lead { max-width: 44ch; margin: 1.4em 0 0; color: rgba(247, 243, 233, 0.82); font-size: clamp(1rem, 1.3vw, 1.15rem); }
.svc-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(28px, 4vw, 40px); }

/* Decorative editing timeline */
.tl {
  padding: 14px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--ink-2);
  box-shadow: 0 40px 90px -40px rgba(185, 245, 26, 0.35);
}
.tl__screen {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  background:
    radial-gradient(60% 70% at 50% 40%, rgba(185, 245, 26, 0.22), transparent 70%),
    linear-gradient(160deg, #22221d, #0e0e0c);
  overflow: hidden;
}
.tl__screen svg { width: 22%; color: var(--lime); animation: tl-spin 9s linear infinite; }
.tl__rec, .tl__tc {
  position: absolute;
  top: 12px;
  font: 600 0.68rem / 1 var(--font-body);
  letter-spacing: 0.14em;
}
.tl__rec { left: 14px; display: flex; align-items: center; gap: 6px; color: var(--cream); }
.tl__rec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ff4d3d; animation: tl-blink 1.2s steps(2) infinite; }
.tl__tc { right: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

.tl__tracks { position: relative; display: grid; gap: 8px; margin-top: 14px; padding: 4px 0; }
.tl__row { position: relative; height: 22px; border-radius: 6px; background: rgba(247, 243, 233, 0.05); }
.tl__row b {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--x);
  width: var(--w);
  border-radius: 6px;
  background: var(--lime);
  opacity: 0.9;
}
.tl__row--alt b { background: var(--cream-2); opacity: 0.55; }
.tl__row--wave i {
  position: absolute;
  inset: 4px 0;
  background: repeating-linear-gradient(90deg, rgba(185, 245, 26, 0.6) 0 2px, transparent 2px 5px);
  -webkit-mask: linear-gradient(90deg, #000 0 20%, rgba(0,0,0,.4) 30%, #000 45% 60%, rgba(0,0,0,.3) 70%, #000 85%);
  mask: linear-gradient(90deg, #000 0 20%, rgba(0,0,0,.4) 30%, #000 45% 60%, rgba(0,0,0,.3) 70%, #000 85%);
}
.tl__head {
  position: absolute;
  top: -6px;
  bottom: -6px;
  left: 0;
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  animation: tl-play 7s linear infinite;
}
.tl__head::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -5px;
  width: 12px;
  height: 8px;
  border-radius: 2px;
  background: #fff;
}
@keyframes tl-play { from { left: 0; } to { left: 100%; } }
@keyframes tl-spin { to { transform: rotate(360deg); } }
@keyframes tl-blink { 50% { opacity: 0; } }

/* Quick facts */
.svc-facts {
  display: grid;
  gap: 1px;
  margin: clamp(48px, 7vw, 88px) 0 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  overflow: hidden;
}
@media (min-width: 760px) { .svc-facts { grid-template-columns: repeat(3, 1fr); } }
.svc-facts li { display: grid; gap: 6px; padding: clamp(18px, 2.4vw, 28px); background: var(--bg); }
.svc-facts__k { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.svc-facts strong { font-family: var(--font-display); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.svc-facts small { font-family: var(--font-body); font-size: 0.6em; font-weight: 500; letter-spacing: 0; color: var(--muted); }

/* =========================================================
   2: what we edit
   ========================================================= */
.types__grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 640px) { .types__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .types__grid { grid-template-columns: repeat(3, 1fr); } }

.type {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 2.6vw, 34px);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.type:hover { border-color: var(--fg); transform: translateY(-4px); }
.type__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--lime);
  transition: transform 0.5s var(--ease);
}
.type:hover .type__icon { transform: rotate(-8deg) scale(1.06); }
.type__icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.type h3 { font-size: var(--fs-h3); font-weight: 800; }
.type p { margin: 0.7em 0 1.4em; color: var(--muted); }
.type__tag {
  align-self: flex-start;
  margin-top: auto;
  padding: 0.45em 0.9em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* =========================================================
   3: the edits (portfolio)
   ========================================================= */
.edits__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: clamp(28px, 4vw, 44px); }

/* Masonry columns, so vertical and wide videos sit together without cropping */
.edits__grid { columns: 3 280px; column-gap: clamp(14px, 2vw, 22px); }

.edit {
  display: block;
  width: 100%;
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  break-inside: avoid;
}
button.edit { cursor: pointer; }
.edit.is-pop { animation: edit-pop 0.6s var(--ease) backwards; }
@keyframes edit-pop { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

.edit__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: var(--ink-2);
  isolation: isolate;
}
.edit[data-format="vertical"] .edit__media { aspect-ratio: 9 / 16; }
.edit[data-format="portrait"] .edit__media { aspect-ratio: 4 / 5; }
.edit[data-format="square"]   .edit__media { aspect-ratio: 1 / 1; }

.edit__media > img,
.edit__media > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}
button.edit:hover .edit__media > img,
button.edit:hover .edit__media > video { transform: scale(1.04); }

/* Play badge on real edits */
.edit__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  transform: translate(-50%, -50%) scale(0.85);
  opacity: 0.92;
  transition: transform 0.4s var(--ease), opacity 0.3s;
}
.edit__play svg { width: 40%; height: 40%; margin-left: 8%; }
button.edit:hover .edit__play,
button.edit:focus-visible .edit__play { transform: translate(-50%, -50%) scale(1); opacity: 1; }
button.edit.is-previewing .edit__play { opacity: 0; transform: translate(-50%, -50%) scale(0.6); }

.edit__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1.5px var(--line);
  pointer-events: none;
}

/* Placeholder (removed when you add real edits) */
.edit__ph {
  --ph-bg: var(--ink-2);
  --ph-fg: var(--lime);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  background: var(--ph-bg);
  color: var(--ph-fg);
}
.edit__ph[data-tone="ink"]   { --ph-bg: #1c1c19;       --ph-fg: var(--lime); }
.edit__ph[data-tone="lime"]  { --ph-bg: var(--lime);    --ph-fg: var(--ink); }
.edit__ph[data-tone="cream"] { --ph-bg: var(--cream-2); --ph-fg: var(--ink); }
.edit__ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, currentColor 1px, transparent 1.6px);
  background-size: 10px 10px;
  opacity: 0.12;
}
.edit__ph svg { position: relative; width: clamp(44px, 6vw, 72px); height: auto; transition: transform 1.2s var(--ease); }
.edit:hover .edit__ph svg { transform: rotate(180deg) scale(1.1); }
.edit__ph span { position: relative; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }

.edit__meta { display: grid; gap: 2px; padding-top: 14px; }
.edit__meta strong { font-family: var(--font-display); font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 800; letter-spacing: -0.02em; }
.edit__meta span { font-size: 0.88rem; color: var(--muted); }

.edits__more { margin: clamp(16px, 3vw, 32px) 0 0; color: var(--muted); }
.edits__more a { color: var(--fg); text-underline-offset: 4px; }
.edits__more a:hover { color: var(--lime); }

/* Player */
.vbox {
  width: min(1100px, 94vw);
  max-width: none;
  max-height: 92vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cream);
  overflow: visible;
}
.vbox::backdrop { background: rgba(10, 10, 9, 0.88); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.vbox[open] { animation: vbox-in 0.4s var(--ease); }
@keyframes vbox-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } }
.vbox__inner { position: relative; display: grid; justify-items: center; }
.vbox__video {
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  background: #000;
}
.vbox__cap { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted-dark); text-align: center; }
.vbox__close {
  position: absolute;
  top: -52px;
  right: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--line-dark);
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  cursor: pointer;
  transition: border-color 0.25s, color 0.25s;
}
.vbox__close:hover { border-color: var(--lime); color: var(--lime); }
.vbox__close svg { width: 18px; height: 18px; }

/* =========================================================
   4: in every edit
   ========================================================= */
.included__grid { display: grid; gap: clamp(32px, 5vw, 64px) clamp(40px, 7vw, 110px); }
@media (min-width: 960px) {
  .included__grid { grid-template-columns: 1fr 1.4fr; align-items: start; }
  .included__side { position: sticky; top: calc(var(--header-h) + 40px); }
}
.included__lead { max-width: 34ch; margin: 1.2em 0 0; color: var(--muted); }

.included__list {
  display: grid;
  gap: 0 clamp(24px, 4vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: inc;
}
@media (min-width: 640px) { .included__list { grid-template-columns: 1fr 1fr; } }
.included__list li {
  position: relative;
  padding: 22px 0 22px 40px;
  border-top: 1px solid var(--line);
}
.included__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 20px;
  height: 20px;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.2 5.8 11.2 12 12-6.2.8-11.2 5.8-12 12-.8-6.2-5.8-11.2-12-12C6.2 11.2 11.2 6.2 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 0c.8 6.2 5.8 11.2 12 12-6.2.8-11.2 5.8-12 12-.8-6.2-5.8-11.2-12-12C6.2 11.2 11.2 6.2 12 0z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.6s var(--ease);
}
.included__list li:hover::before { transform: rotate(90deg) scale(1.15); }
.included__list h3 { font-size: clamp(1.15rem, 1.7vw, 1.35rem); font-weight: 800; }
.included__list p { margin: 0.4em 0 0; color: var(--muted); }

/* =========================================================
   5: pricing (uses the .plan cards from styles.css)
   ========================================================= */
.vprice__grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
@media (min-width: 1000px) { .vprice__grid { grid-template-columns: repeat(3, 1fr); } }
.vprice__grid .plan__name { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

.vprice__retainer {
  display: grid;
  gap: 24px clamp(32px, 5vw, 72px);
  margin-top: clamp(16px, 2.4vw, 24px);
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 28px;
  background: var(--bg);
  color: var(--fg);
}
@media (min-width: 900px) { .vprice__retainer { grid-template-columns: 1.4fr auto; align-items: center; } }
.vprice__retainer h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.04em; }
.vprice__retainer p:not(.plan__label):not(.plan__price) { max-width: 52ch; margin: 0.8em 0 0; color: var(--muted); }
.vprice__retainer-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }

/* =========================================================
   Graphic design page
   ========================================================= */

/* ---------- Hero: decorative design canvas ---------- */
.ab {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0px;
  --py: 0px;
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--ink-2);
  box-shadow: 0 40px 90px -40px rgba(185, 245, 26, 0.35);
  overflow: hidden;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.6s var(--ease);
}
.ab__bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font: 500 0.72rem / 1 var(--font-body);
  letter-spacing: 0.06em;
  color: var(--muted);
}
.ab__dots { display: flex; gap: 6px; }
.ab__dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(247, 243, 233, 0.18); }
.ab__dots i:first-child { background: #ff5f57; }
.ab__file { flex: 1; color: var(--cream); }
.ab__zoom { font-variant-numeric: tabular-nums; }

.ab__body { display: grid; grid-template-columns: 44px 1fr 110px; min-height: 0; }
.ab__tools {
  display: grid;
  align-content: start;
  gap: 6px;
  margin: 0;
  padding: 10px 6px;
  list-style: none;
  border-right: 1px solid var(--line);
}
.ab__tools li { display: grid; place-items: center; height: 32px; border-radius: 8px; color: var(--muted); }
.ab__tools li.is-on { background: var(--lime); color: var(--ink); }
.ab__tools svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.ab__canvas {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background:
    radial-gradient(55% 55% at 50% 50%, rgba(185, 245, 26, 0.14), transparent 70%),
    linear-gradient(rgba(247, 243, 233, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgba(247, 243, 233, 0.05) 1px, transparent 1px) 0 0 / 24px 24px,
    #0e0e0c;
}
.ab__guide { position: absolute; background: rgba(255, 77, 166, 0.55); }
.ab__guide--x { left: 0; right: 0; top: 50%; height: 1px; }
.ab__guide--y { top: 0; bottom: 0; left: 50%; width: 1px; }

.ab__art {
  position: absolute;
  inset: 16%;
  transform: translate(var(--px), var(--py));
  transition: transform 0.6s var(--ease);
}
.ab__svg { width: 100%; height: 100%; overflow: visible; }
.ab__orbit { fill: none; stroke: rgba(247, 243, 233, 0.22); stroke-width: 1; stroke-dasharray: 4 6; transform-origin: 100px 100px; animation: tl-spin 30s linear infinite; }
.ab__path {
  fill: none;
  stroke: var(--lime);
  stroke-width: 2;
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  animation: ab-draw 7s var(--ease) infinite;
}
.ab__fill { fill: var(--lime); opacity: 0; animation: ab-fill 7s var(--ease) infinite; }
.ab__nodes rect { fill: var(--ink); stroke: var(--lime); stroke-width: 1.5; }

.ab__sel {
  position: absolute;
  inset: 4%;
  border: 1.5px solid #4d9fff;
  animation: ab-sel 7s var(--ease) infinite;
}
.ab__sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid #4d9fff; }
.ab__sel i:nth-child(1) { left: -5px; top: -5px; }
.ab__sel i:nth-child(2) { right: -5px; top: -5px; }
.ab__sel i:nth-child(3) { left: -5px; bottom: -5px; }
.ab__sel i:nth-child(4) { right: -5px; bottom: -5px; }
.ab__sel b {
  position: absolute;
  left: 50%;
  bottom: -30px;
  padding: 3px 8px;
  border-radius: 6px;
  background: #4d9fff;
  color: #fff;
  font: 600 0.65rem / 1.2 var(--font-body);
  white-space: nowrap;
  transform: translateX(-50%);
}

.ab__chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(21, 21, 19, 0.85);
  color: var(--cream);
  font: 500 0.66rem / 1 var(--font-body);
  letter-spacing: 0.04em;
  white-space: nowrap;
  animation: ab-float 6s ease-in-out infinite;
}
.ab__chip--type { left: 6%; top: 7%; }
.ab__chip--hex { right: 6%; bottom: 7%; animation-delay: -3s; }
.ab__chip--hex i { width: 10px; height: 10px; border-radius: 3px; background: var(--lime); }

.ab__cursor {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  animation: ab-cursor 7s var(--ease) infinite;
}
.ab__cursor svg { width: 18px; height: 18px; fill: #ff4da6; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; }
.ab__cursor em {
  margin: 14px 0 0 -2px;
  padding: 3px 8px;
  border-radius: 0 8px 8px 8px;
  background: #ff4da6;
  color: #fff;
  font: 600 0.62rem / 1.2 var(--font-body);
  font-style: normal;
}

.ab__panel { padding: 12px; border-left: 1px solid var(--line); font-size: 0.68rem; }
.ab__label { margin: 0 0 8px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-size: 0.6rem; }
.ab__label:not(:first-child) { margin-top: 16px; }
.ab__swatches { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 0; padding: 0; list-style: none; }
.ab__swatches li { aspect-ratio: 1; border-radius: 8px; background: var(--c); box-shadow: inset 0 0 0 1px rgba(247, 243, 233, 0.16); }
.ab__swatches li:first-child { outline: 2px solid #4d9fff; outline-offset: 2px; animation: ab-pulse 2.4s ease-in-out infinite; }
.ab__aa { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; letter-spacing: -0.04em; color: #fff; }
.ab__layers { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.ab__layers li { padding: 4px 6px; border-radius: 5px; }
.ab__layers li.is-on { background: rgba(77, 159, 255, 0.2); color: var(--cream); }

@keyframes ab-draw {
  0% { stroke-dashoffset: 520; }
  40%, 100% { stroke-dashoffset: 0; }
}
@keyframes ab-fill {
  0%, 42% { opacity: 0; transform: scale(0.96); }
  55%, 88% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes ab-sel {
  0%, 45% { opacity: 0; transform: scale(1.08); }
  55%, 90% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}
@keyframes ab-cursor {
  0%   { transform: translate(48%, 16%); }
  20%  { transform: translate(82%, 48%); }
  40%  { transform: translate(48%, 80%); }
  55%  { transform: translate(76%, 76%); }
  75%  { transform: translate(20%, 40%); }
  100% { transform: translate(48%, 16%); }
}
@keyframes ab-float { 50% { transform: translateY(-6px); } }
@keyframes ab-pulse { 50% { outline-color: rgba(77, 159, 255, 0.3); } }
.ab .ab__fill, .ab .ab__sel { transform-origin: center; transform-box: fill-box; }

/* the cursor uses % of its own box, so give it the canvas size */
.ab__cursor { width: 100%; height: 100%; pointer-events: none; }
.ab__cursor > * { flex: none; }

@media (max-width: 560px) {
  .ab__body { grid-template-columns: 38px 1fr; }
  .ab__panel { display: none; }
}

/* ---------- Gallery: zoom badge + image viewer ---------- */
.edit__play--zoom svg { width: 36%; height: 36%; margin: 0; }
.vbox__img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
  background: var(--ink-2);
}

/* ---------- Before / after ---------- */
.ba {
  --pos: 50%;
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 28px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -50px rgba(10, 10, 9, 0.6);
  user-select: none;
  -webkit-user-select: none;
}
.ba__layer { position: absolute; inset: 0; overflow: hidden; }

/* the DIY flyer: everything a designer loses sleep over */
.ba__before {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 2%;
  padding: 5%;
  text-align: center;
  background: linear-gradient(135deg, #fff35c, #ff9a3c 60%, #ff5ec4);
  color: #c4001d;
  font-family: 'Comic Sans MS', 'Comic Neue', 'Chalkboard SE', 'Marker Felt', cursive;
}
.ba__before p { margin: 0; }
.bf__top { font-size: clamp(0.7rem, 1.6vw, 1.2rem); color: #1b3cff; letter-spacing: 0.2em; transform: rotate(-2deg); }
.bf__title {
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(1.8rem, 6.6vw, 5.4rem);
  line-height: 0.95;
  color: #ff1f1f;
  text-shadow: 3px 3px 0 #1b3cff, 6px 6px 0 #00c853;
  transform: rotate(-3deg) scaleX(1.12);
}
.bf__sub { font-size: clamp(0.85rem, 2vw, 1.6rem); color: #6a00b8; font-weight: 700; text-decoration: underline wavy #00c853; }
.bf__date { max-width: 28ch; font-family: 'Times New Roman', serif; font-size: clamp(0.7rem, 1.4vw, 1.05rem); color: #222; font-style: italic; }
.bf__list { font-size: clamp(0.65rem, 1.3vw, 1rem); color: #007a3d; transform: rotate(1.5deg); }
.bf__btn {
  margin-top: 1%;
  padding: 0.7em 1.2em;
  border: 3px outset #a8ff60;
  background: linear-gradient(#5cff5c, #00a000);
  color: #fff;
  font-family: Arial, sans-serif;
  font-weight: 700;
  font-size: clamp(0.6rem, 1.3vw, 1rem);
  text-shadow: 1px 1px 0 #000;
  box-shadow: 4px 4px 0 #000;
  animation: bf-blink 1s steps(2) infinite;
}
.bf__burst {
  position: absolute;
  top: 6%;
  right: 6%;
  display: grid;
  place-items: center;
  width: clamp(56px, 11vw, 120px);
  aspect-ratio: 1;
  background: #ff1f1f;
  color: #fff35c;
  font-family: Impact, 'Arial Black', sans-serif;
  font-size: clamp(0.8rem, 2vw, 1.6rem);
  clip-path: polygon(50% 0, 61% 18%, 82% 9%, 80% 31%, 100% 38%, 86% 55%, 98% 75%, 76% 77%, 72% 100%, 54% 86%, 36% 100%, 30% 79%, 8% 82%, 15% 61%, 0 45%, 18% 34%, 12% 12%, 34% 18%);
  transform: rotate(14deg);
}
.bf__logo {
  position: absolute;
  left: 4%;
  bottom: 5%;
  padding: 0.5em 0.8em;
  border: 2px dashed #888;
  background: repeating-conic-gradient(#ddd 0 25%, #fff 0 50%) 0 0 / 10px 10px;
  color: #555;
  font-family: Arial, sans-serif;
  font-size: clamp(0.5rem, 1vw, 0.75rem);
  filter: blur(0.4px);
}
@keyframes bf-blink { 50% { filter: hue-rotate(90deg) brightness(1.2); } }

/* the Vuro version */
.ba__after {
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(18px, 4.5%, 56px);
  background: var(--ink);
  color: var(--cream);
  clip-path: inset(0 0 0 var(--pos));
}
.af__grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(247, 243, 233, 0.05) 1px, transparent 1px);
  background-size: calc(100% / 12) 100%;
  pointer-events: none;
}
.af__head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.af__brand { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-display); font-weight: 800; font-size: clamp(0.85rem, 1.8vw, 1.35rem); letter-spacing: -0.02em; }
.af__brand svg { width: 1.1em; height: 1.1em; color: var(--lime); }
.af__tag { padding: 0.45em 0.9em; border: 1px solid var(--line-dark); border-radius: var(--radius-pill); font-size: clamp(0.6rem, 1.1vw, 0.8rem); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-dark); }
.af__title {
  position: relative;
  align-self: center;
  max-width: 11em;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5.6vw, 4.6rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.05em;
  color: #fff;
}
.af__title em { font-style: normal; color: var(--lime); }
.af__foot { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.af__foot p { display: flex; gap: clamp(12px, 3vw, 36px); margin: 0; font-size: clamp(0.7rem, 1.4vw, 1rem); color: var(--muted-dark); }
.af__foot p span:first-child { color: var(--cream); font-weight: 700; }
.af__btn { padding: 0.8em 1.3em; border-radius: var(--radius-pill); background: var(--lime); color: var(--ink); font-weight: 700; font-size: clamp(0.7rem, 1.3vw, 0.95rem); }
.af__star {
  position: absolute;
  right: -6%;
  top: 50%;
  width: 46%;
  color: var(--lime);
  opacity: 0.1;
  transform: translateY(-50%);
  animation: tl-spin 40s linear infinite;
}

.ba__tag {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 0.5em 0.9em;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba__tag--l { left: 16px; background: rgba(10, 10, 9, 0.75); color: var(--cream); }
.ba__tag--r { right: 16px; background: var(--lime); color: var(--ink); }

.ba__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 2;
  width: 2px;
  margin-left: -1px;
  background: var(--lime);
  box-shadow: 0 0 20px rgba(185, 245, 26, 0.7);
  pointer-events: none;
  transition: left 0.5s var(--ease);
}
.ba.is-touched .ba__handle { transition: none; }
.ba__after { transition: clip-path 0.5s var(--ease); }
.ba.is-touched .ba__after { transition: none; }
.ba__handle i {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 10px 30px -8px rgba(10, 10, 9, 0.6);
  transform: translate(-50%, -50%);
  transition: transform 0.3s var(--ease);
}
.ba__handle i::before,
.ba__handle i::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border: 6px solid transparent;
  margin-top: -6px;
}
.ba__handle i::before { left: 11px; border-right-color: var(--ink); }
.ba__handle i::after { right: 11px; border-left-color: var(--ink); }
.ba:hover .ba__handle i { transform: translate(-50%, -50%) scale(1.08); }

.ba__range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 60px; height: 100vh; }
.ba__range::-moz-range-thumb { width: 60px; height: 100vh; border: 0; }
.ba:has(.ba__range:focus-visible) .ba__handle i { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ---------- Brand kit playground ---------- */
.kit__grid { display: grid; gap: clamp(28px, 4vw, 56px); }
@media (min-width: 980px) { .kit__grid { grid-template-columns: minmax(300px, 0.8fr) 1.4fr; align-items: start; } }

.kit__controls {
  display: grid;
  gap: 26px;
  padding: clamp(22px, 2.6vw, 32px);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
}
.kit__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.kit__label { display: block; margin-bottom: 10px; padding: 0; font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.kit__input {
  width: 100%;
  padding: 0.8em 1em;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--fg);
  font: 800 1.3rem / 1.2 var(--font-display);
  letter-spacing: -0.02em;
  transition: border-color 0.25s;
}
.kit__input:focus { outline: none; border-color: var(--lime); }

.kit__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.kit__opt { position: relative; display: grid; justify-items: center; gap: 6px; cursor: pointer; }
.kit__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kit__opt > span {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.25s, transform 0.35s var(--ease), box-shadow 0.25s;
}
.kit__opt:hover > span { transform: translateY(-3px); border-color: var(--fg); }
.kit__opt input:checked + span { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(185, 245, 26, 0.25); }
.kit__opt input:focus-visible + span { outline: 2px solid var(--lime); outline-offset: 3px; }
.kit__opt em { font-style: normal; font-size: 0.75rem; color: var(--muted); }
.kit__opt input:checked ~ em { color: var(--fg); }
.kit__opt--sw > span { background: conic-gradient(var(--a) 0 50%, var(--b) 0 75%, var(--c) 0); }
.kit__aa { font-size: 1.5rem; line-height: 1; }
.kit__mk svg { width: 24px; height: 24px; fill: currentColor; }
.kit__shuffle { justify-self: start; gap: 10px; }
.kit__shuffle svg { width: 18px; height: 18px; transition: transform 0.5s var(--ease); }
.kit__shuffle:hover svg { transform: rotate(180deg); }

/* the stage: every mockup reads the same few variables */
.kit__stage {
  --k-a: #0A0A09;
  --k-b: #B9F51A;
  --k-c: #F7F3E9;
  --k-font: var(--font-display);
  --k-weight: 800;
  --k-style: normal;
  --k-track: -0.04em;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
}
.mk {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--k-a);
  color: var(--k-c);
  box-shadow: inset 0 0 0 1.5px rgba(247, 243, 233, 0.08), 0 30px 60px -40px rgba(0, 0, 0, 0.8);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease);
}
.mk [data-kit-name], .mk__head, .mk__initial {
  font-family: var(--k-font);
  font-weight: var(--k-weight);
  font-style: var(--k-style);
  letter-spacing: var(--k-track);
}
.mk__mark { display: inline-grid; place-items: center; width: 42px; height: 42px; color: var(--k-b); transition: color 0.5s; }
.mk__mark svg { width: 100%; height: 100%; }
.mk__mark--sm { width: 20px; height: 20px; }

.mk--card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  aspect-ratio: 1.75 / 1;
  padding: clamp(18px, 2.6vw, 30px);
}
.mk__name { margin: 0; font-size: clamp(1.4rem, 3vw, 2.4rem); line-height: 1; overflow-wrap: anywhere; }
.mk__line { margin: 0.5em 0 0; font-size: 0.8rem; opacity: 0.7; }
.mk__dot { position: absolute; right: -14%; bottom: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: var(--k-b); opacity: 0.9; transition: background-color 0.5s; }

.mk--icon {
  grid-column: span 2;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 18px;
  background: color-mix(in srgb, var(--k-a) 80%, var(--k-c));
}
.mk__app {
  display: grid;
  place-items: center;
  width: clamp(64px, 8vw, 92px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: var(--k-b);
  color: var(--k-a);
  box-shadow: 0 16px 30px -14px rgba(0, 0, 0, 0.7);
  transition: background-color 0.5s, color 0.5s;
}
.mk__initial { font-size: clamp(2rem, 4vw, 3rem); line-height: 1; }
.mk__word { margin: 0; font-size: 0.95rem; text-align: center; overflow-wrap: anywhere; }

.mk--post {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1;
  padding: clamp(16px, 2.2vw, 26px);
  background: var(--k-b);
  color: var(--k-a);
}
.mk--post .mk__mark { color: var(--k-a); }
.mk__top { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.mk__head { margin: auto 0 0; font-size: clamp(1.6rem, 3.6vw, 2.8rem); line-height: 0.95; }
.mk__head em { font-style: inherit; color: var(--k-c); -webkit-text-stroke: 1.5px var(--k-a); }
.mk__cta { margin: 0.8em 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }

.mk--pal { grid-column: span 3; display: grid; grid-template-rows: 2fr 1fr 1fr; aspect-ratio: 1; padding: 0; }
.mk__sw { display: flex; align-items: flex-end; padding: 12px 16px; transition: background-color 0.5s; }
.mk__sw b { font: 600 0.75rem / 1 var(--font-body); letter-spacing: 0.08em; }
.mk__sw--a { background: var(--k-a); color: var(--k-c); }
.mk__sw--b { background: var(--k-b); color: var(--k-a); }
.mk__sw--c { background: var(--k-c); color: var(--k-a); }

.kit__stage.is-pop .mk { animation: mk-pop 0.55s var(--ease) backwards; }
.kit__stage.is-pop .mk:nth-child(2) { animation-delay: 0.05s; }
.kit__stage.is-pop .mk:nth-child(3) { animation-delay: 0.1s; }
.kit__stage.is-pop .mk:nth-child(4) { animation-delay: 0.15s; }
@keyframes mk-pop { from { transform: scale(0.96) translateY(6px); } }

@media (max-width: 560px) {
  .mk--card, .mk--icon { grid-column: span 6; }
  .mk--icon { grid-template-columns: auto 1fr; place-content: center start; }
  .mk__word { text-align: left; font-size: 1.2rem; }
  .ba { aspect-ratio: 4 / 5; }
}

/* =========================================================
   Phones and reduced motion
   ========================================================= */
@media (max-width: 560px) {
  .edits__grid { columns: 2 140px; }
  .edit__play { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .tl__head, .tl__screen svg, .tl__rec::before { animation: none; }
  .ab__orbit, .ab__chip, .ab__cursor, .ab__swatches li, .af__star, .bf__btn, .kit__stage.is-pop .mk { animation: none; }
  .ab__path { animation: none; stroke-dashoffset: 0; }
  .ab__fill, .ab__sel { animation: none; opacity: 1; }
  .ab, .ab__art, .ba__handle, .ba__after { transition: none; }
}
