/* Self-hosted fonts */
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/uploads/fonts/inter-tight-latin-ext.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 Tight';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/uploads/fonts/inter-tight-latin.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/uploads/fonts/jetbrains-mono-latin-ext.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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/uploads/fonts/jetbrains-mono-latin.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;
}

/* ============================================================
   Modern minimalism — soft off-white, generous space, subtle detail
   ============================================================ */
:root {
  --bg: #fafaf7;
  --bg-alt: #f2f1ec;
  --bg-card: #ffffff;
  --ink: #18181b;
  --ink-soft: #71717a;
  --ink-subtle: #a1a1aa;
  --line: rgba(24,24,27,0.08);
  --line-strong: rgba(24,24,27,0.16);
  --accent: #f4621d;
  --accent-soft: rgba(242,113,7,0.12);

  --radius-sm: 6px;
  --radius: 14px;
  --radius-lg: 24px;

  --display: 'Inter Tight', 'Inter', system-ui, sans-serif;
  --text:    'Inter Tight', 'Inter', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, monospace;

  --pad: 56px;
  --gutter: 24px;
}

/* Theme variants */
body.theme-paper {
  --bg: #f5f3f0;
  --bg-alt: #ebe7e1;
  --bg-card: #fefdfb;
  --ink: #2c2520;
  --line: rgba(44,37,32,0.08);
  --line-strong: rgba(44,37,32,0.16);
}

body.theme-mono {
  --bg: #f8f8f8;
  --bg-alt: #efefef;
  --bg-card: #ffffff;
  --ink: #1a1a1a;
  --accent: #222;
  --accent-soft: rgba(34,34,34,0.12);
}

/* Font variants */
body.font-bebas { --display: 'Bebas Neue', system-ui, sans-serif; }
body.font-archivo { --display: 'Space Mono', monospace; }

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; }
::selection { background: var(--ink); color: var(--bg); }

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--pad);
}
@media (max-width: 720px) { :root { --pad: 24px; } }

.mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

/* ============================================================
   NAV — floating pill
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: calc(100% - 32px);
  max-width: 1120px;
  background: rgba(250,250,247,0.78);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.02), 0 8px 24px rgba(0,0,0,0.04);
}
.nav-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 10px 14px 10px 22px;
}
.nav-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.015em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo .dot {
  width: 8px; height: 8px;
  background: var(--accent);
  display: inline-block;
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.nav-links {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 14px;
}
.nav-links a {
  position: relative;
  padding: 8px 14px;
  color: var(--ink-soft);
  border-radius: 999px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: rgba(24,24,27,0.04); }
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  transition: background .2s, transform .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover { background: var(--accent); color: var(--ink); }
@media (max-width: 880px) {
  .nav-inner { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
}

/* ============================================================
   HERO — soft, vast, single focal moment
   ============================================================ */
.hero {
  padding: 180px 0 100px;
  position: relative;
  overflow: hidden;
}
.hero .container {
  position: relative;
  z-index: 1;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 48px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}
.pill.muted { color: var(--ink-soft); }
.led {
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--accent-soft);
}
.pill:first-child .led {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
}
.hero-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 64px;
}
@media (max-width: 880px) {
  .hero-block { grid-template-columns: 1fr; gap: 32px; }
}
.h-headline h1 {
  font-family: var(--display);
  font-size: 64px;
  line-height: 1.1;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
}
@media (max-width: 720px) {
  .h-headline h1 { font-size: 42px; }
}
.h-headline .quiet {
  color: var(--ink-subtle);
}
.h-headline .accent {
  color: var(--accent);
}
.h-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 16px;
}
.hero-aside-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}
.h-aside p {
  margin: 0;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-photo-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid var(--line);
  flex-shrink: 0;
}
.hero-photo-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.hero-photo-role {
  font-size: 13px;
  color: var(--ink-subtle);
  margin-top: 3px;
}
.hero-cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 80px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .hero-cta-row { flex-direction: column; }
}
.btn-primary, .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  transition: all .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--accent);
  color: var(--ink);
}
.btn-secondary {
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.btn-secondary:hover {
  background: var(--bg-alt);
  border-color: var(--ink-soft);
}
.arrow {
  display: inline-block;
  opacity: 0.6;
}
.hero-tickers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
}
.hero-ticker {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: center;
}
.hero-ticker .num {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  line-height: 1;
}
.hero-ticker .lab {
  font-size: 13px;
  color: var(--ink-soft);
}
@media (max-width: 720px) {
  .hero-tickers { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* Reveal on scroll animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal[style*="--delay"] {
  transition-delay: var(--delay);
}

/* ============================================================
   SECTION — generic block
   ============================================================ */
.section {
  padding: 120px 0;
  border-top: 1px solid var(--line);
}
.section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  margin-bottom: 80px;
}
@media (max-width: 880px) {
  .section-head { grid-template-columns: 1fr; gap: 32px; }
}
.section-num {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.section-eyebrow {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: 52px;
  line-height: 1.15;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  background: var(--ink);
  color: var(--bg);
  display: inline;
  padding: 0.05em 0.18em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.section-head h2 .quiet {
  color: rgba(255,255,255,0.45);
}
.section-head h2 .accent {
  color: var(--accent);
}
@media (max-width: 720px) {
  .section-head h2 { font-size: 36px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.service {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: all .3s;
}
.service:hover {
  border-color: var(--accent);
  box-shadow: 0 12px 40px rgba(0,0,0,0.06);
}
.service-num {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
}
.service-num .eta {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
}
.service-arrow {
  font-size: 24px;
  opacity: 0.5;
  transition: opacity .2s;
}
.service:hover .service-arrow {
  opacity: 1;
}
.service-title {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}
.service-desc {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  flex-grow: 1;
}
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.service-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

/* ============================================================
   PORTFOLIO
   ============================================================ */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
/* Card flip */
.card-flip {
  perspective: 1200px;
  cursor: pointer;
}

.card-inner {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@media (hover: hover) {
  .card-flip:hover .card-inner {
    transform: rotateY(180deg);
  }
}

.card-flip.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.card-front {
  background: var(--bg-card);
  transition: border-color .3s, box-shadow .3s;
}

@media (hover: hover) {
  .card-flip:hover .card-front {
    border-color: var(--accent);
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  }
}

.card-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  background: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  padding: 28px;
}

.card-back-cat {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.card-back-name {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.2;
}

.card-back-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.card-back-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.card-back-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.card-back-value {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-align: right;
}

.card-back-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
  margin: 0;
}
.card-back-btn {
  display: inline-block;
  margin-top: auto;
  padding: 9px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.card-back-btn:hover {
  background: #d4620a;
  transform: translateY(-2px);
}
.portfolio-thumb {
  width: 100%;
  padding-bottom: 66.667%;
  position: relative;
  overflow: hidden;
}
.portfolio-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.portfolio-content {
  padding: 24px;
}
.portfolio-cat {
  font-size: 12px;
  color: var(--ink-subtle);
  font-weight: 500;
}
.portfolio-name {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin: 8px 0;
  line-height: 1.2;
}
.portfolio-meta {
  font-size: 13px;
  color: var(--ink-soft);
  display: flex;
  gap: 16px;
}

/* ============================================================
   ABOUT
   ============================================================ */
.process-steps {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
@media (max-width: 720px) {
  .process-steps { grid-template-columns: 1fr; }
}
.process-step {
  display: flex;
  gap: 24px;
  padding: 40px;
  border: 1px solid var(--line);
  margin: -1px 0 0 -1px;
}
.process-step-num {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 3px;
}
.process-step-title {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.2;
}
.process-step-body p {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
}
.process-step:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
@media (max-width: 880px) {
  .contact-content { grid-template-columns: 1fr; gap: 40px; }
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.form-optional {
  font-weight: 400;
  color: var(--ink-soft);
}
.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-card);
  color: var(--ink);
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.contact-item h4 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 12px 0;
}
.contact-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}
.contact-item a {
  color: var(--accent);
  transition: color .2s;
}
.contact-item a:hover {
  color: var(--ink);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
}
.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}
@media (max-width: 720px) {
  .footer-content { grid-template-columns: 1fr; gap: 32px; }
}
.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-subtle);
}
.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col a {
  font-size: 15px;
  color: var(--ink-soft);
  transition: color .2s;
}
.footer-col a:hover {
  color: var(--ink);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--ink-subtle);
}
@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ============================================================
   PROJECT MODAL
   ============================================================ */

/* Fixed availability badge — bottom right */
.availability-badge {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  animation: badge-float 3s ease-in-out infinite;
}
.availability-badge:hover {
  animation-play-state: paused;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
@keyframes badge-float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}
.availability-badge .led {
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3);
  animation: led-pulse 2s ease-in-out infinite;
}
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.3); }
  50%       { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}
@media (max-width: 600px) {
  .availability-badge {
    bottom: 16px;
    right: 16px;
    font-size: 12px;
    padding: 8px 13px;
  }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  z-index: 1000;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px 18px 20px;
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
  max-width: 360px;
  width: calc(100% - 48px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.toast-icon {
  width: 28px;
  height: 28px;
  background: #22c55e;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-body {
  flex: 1;
}
.toast-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 3px;
}
.toast-text {
  font-size: 13px;
  opacity: 0.75;
  line-height: 1.5;
}
.toast-close {
  background: none;
  border: none;
  color: var(--bg);
  opacity: 0.5;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: opacity 0.15s;
}

/* ── Hero dots CSS animation ─────────────────────────────── */
.hero-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  font-size: 52px;
}

.hero-dots::before,
.hero-dots::after,
.hero-dot-a::before,
.hero-dot-b::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 3em;
  height: 3em;
  content: '.';
  color: transparent;
  will-change: transform;
  animation: hero-dots-move 44s -27s infinite ease-in-out alternate;
}

.hero-dots::before {
  animation-duration: 44s;
  animation-delay: -27s;
  text-shadow:
    0.21em -0.21em 7px hsla(46,17%,71%,0.55),
    -0.03em -0.67em 7px hsla(33,18%,81%,0.56),
    -1.27em 1.36em 7px hsla(39,18%,78%,0.68),
    0.31em -0.36em 7px hsla(37,25%,79%,0.46),
    -0.59em -0.41em 7px hsla(42,24%,79%,0.6),
    -1.37em -1.49em 7px hsla(32,23%,74%,0.57),
    0.82em -0.78em 7px hsla(49,34%,79%,0.54),
    -1.31em 0.25em 7px hsla(44,22%,72%,0.71),
    -0.78em -1.4em 7px hsla(37,36%,67%,0.57),
    1.07em -1.05em 7px hsla(46,28%,69%,0.44),
    0.83em -1.21em 7px hsla(33,23%,76%,0.54),
    -0.26em -0.76em 7px hsla(36,21%,81%,0.46),
    -1.14em -0.13em 7px hsla(33,37%,70%,0.65),
    -0.06em -0.46em 7px hsla(41,24%,65%,0.57),
    -1.37em 1.19em 7px hsla(35,19%,73%,0.54),
    0.25em -0.33em 7px hsla(43,24%,81%,0.72),
    -0.68em -0.05em 7px hsla(43,19%,70%,0.56),
    -0.12em -0.3em 7px hsla(41,34%,76%,0.57),
    -0.03em -1.0em 7px hsla(42,20%,78%,0.67),
    1.12em -0.18em 7px hsla(30,18%,76%,0.43),
    -1.17em -0.14em 7px hsla(43,21%,79%,0.68),
    0.82em 1.27em 7px hsla(38,25%,79%,0.54),
    0.45em 1.23em 7px hsla(32,24%,75%,0.6),
    0.56em 0.43em 7px hsla(46,35%,80%,0.41),
    -1.15em -0.61em 7px hsla(35,26%,67%,0.41),
    1.24em 0.8em 7px hsla(31,26%,70%,0.61),
    -1.08em 0.29em 7px hsla(34,28%,70%,0.43),
    -0.92em -0.88em 7px hsla(31,26%,79%,0.68),
    0.75em 0.98em 7px hsla(41,31%,82%,0.47),
    0.29em -1.15em 7px hsla(48,17%,71%,0.54),
    -0.27em -0.35em 7px hsla(48,23%,67%,0.65),
    0.89em 0.97em 7px hsla(39,25%,76%,0.55),
    0.78em 0.39em 7px hsla(37,31%,74%,0.56),
    0.02em -0.71em 7px hsla(42,37%,75%,0.51),
    -0.67em 1.22em 7px hsla(43,35%,80%,0.43),
    0.12em -0.4em 7px hsla(40,22%,78%,0.63),
    -1.3em 1.04em 7px hsla(37,17%,75%,0.61),
    -1.28em -0.31em 7px hsla(39,26%,70%,0.48),
    -0.58em 0.17em 7px hsla(29,24%,67%,0.7),
    -0.92em 0.22em 7px hsla(42,35%,65%,0.53);
}

.hero-dots::after {
  animation-duration: 43s;
  animation-delay: -32s;
  text-shadow:
    1.22em 0.56em 7px hsla(32,25%,68%,0.68),
    0.22em -0.99em 7px hsla(41,30%,67%,0.43),
    -0.54em 1.35em 7px hsla(42,30%,71%,0.46),
    0.38em 0.54em 7px hsla(38,30%,67%,0.6),
    0.92em -0.02em 7px hsla(30,23%,72%,0.41),
    -1.22em -0.93em 7px hsla(50,26%,74%,0.62),
    -1.01em -1.15em 7px hsla(28,25%,72%,0.67),
    -0.84em -0.79em 7px hsla(28,37%,74%,0.49),
    0.58em -0.49em 7px hsla(42,21%,73%,0.58),
    -0.2em -1.01em 7px hsla(50,20%,69%,0.72),
    0.24em -0.47em 7px hsla(31,36%,66%,0.57),
    -0.19em 1.48em 7px hsla(30,20%,74%,0.4),
    0.45em -0.55em 7px hsla(40,31%,81%,0.64),
    0.68em 1.01em 7px hsla(33,20%,79%,0.58),
    -1.46em 0.22em 7px hsla(31,19%,75%,0.48),
    -1.24em 0.49em 7px hsla(37,18%,65%,0.46),
    0.04em 0.6em 7px hsla(33,17%,81%,0.69),
    1.18em 1.12em 7px hsla(41,25%,68%,0.52),
    -0.85em -0.91em 7px hsla(35,20%,74%,0.44),
    -0.33em -1.08em 7px hsla(30,31%,80%,0.4),
    -0.93em 0.4em 7px hsla(40,20%,74%,0.47),
    0.37em -1.07em 7px hsla(31,17%,73%,0.42),
    -0.34em 0.71em 7px hsla(37,29%,79%,0.66),
    -1.3em -0.09em 7px hsla(28,33%,67%,0.7),
    0.14em 1.4em 7px hsla(50,17%,70%,0.49),
    0.33em 1.4em 7px hsla(28,18%,71%,0.64),
    0.35em -0.28em 7px hsla(47,19%,76%,0.65),
    -0.17em 0.93em 7px hsla(32,36%,77%,0.69),
    0.19em -0.32em 7px hsla(28,31%,67%,0.59),
    -0.02em -0.81em 7px hsla(34,26%,79%,0.72),
    -0.49em -0.88em 7px hsla(29,28%,69%,0.71),
    0.75em -0.4em 7px hsla(31,32%,72%,0.57),
    -0.61em 0.69em 7px hsla(32,28%,76%,0.57),
    -1.44em -0.2em 7px hsla(42,24%,77%,0.71),
    0.57em 1.02em 7px hsla(37,33%,74%,0.6),
    0.81em 0.46em 7px hsla(36,28%,69%,0.55),
    0.71em -0.79em 7px hsla(32,28%,75%,0.72),
    0.39em 0.18em 7px hsla(48,34%,68%,0.64),
    0.44em 0.09em 7px hsla(39,29%,71%,0.57),
    0.61em 0.94em 7px hsla(48,22%,69%,0.44);
}

.hero-dot-a::before {
  animation-duration: 42s;
  animation-delay: -23s;
  text-shadow:
    0.12em -0.63em 7px hsla(28,36%,71%,0.71),
    -1.35em -0.37em 7px hsla(32,19%,79%,0.4),
    0.07em 1.3em 7px hsla(28,19%,70%,0.69),
    0.95em 0.09em 7px hsla(40,37%,76%,0.57),
    -1.3em -1.43em 7px hsla(46,25%,78%,0.58),
    0.52em 0.42em 7px hsla(31,36%,80%,0.7),
    -1.11em -0.57em 7px hsla(37,25%,81%,0.43),
    -0.77em -0.56em 7px hsla(28,30%,81%,0.5),
    0.07em -0.94em 7px hsla(48,27%,81%,0.54),
    0.47em -0.5em 7px hsla(38,19%,65%,0.7),
    1.33em -0.08em 7px hsla(43,25%,80%,0.48),
    -0.73em 0.59em 7px hsla(49,22%,70%,0.66),
    0.04em -0.24em 7px hsla(35,23%,80%,0.52),
    -0.2em 0.72em 7px hsla(47,26%,81%,0.71),
    0.48em 1.26em 7px hsla(37,37%,80%,0.52),
    0.05em 0.66em 7px hsla(37,33%,75%,0.41),
    -0.93em 0.82em 7px hsla(45,18%,82%,0.69),
    1.04em 0.68em 7px hsla(48,34%,66%,0.63),
    0.47em -1.07em 7px hsla(47,32%,76%,0.48),
    0.97em -1.08em 7px hsla(40,33%,67%,0.64),
    -0.5em -1.42em 7px hsla(41,35%,80%,0.4),
    1.42em 1.39em 7px hsla(30,29%,72%,0.64),
    0.78em 0.81em 7px hsla(47,17%,75%,0.51),
    -0.06em -0.16em 7px hsla(31,28%,80%,0.7),
    -0.07em 0.68em 7px hsla(31,24%,75%,0.55),
    -1.18em -0.9em 7px hsla(31,20%,77%,0.44),
    -1.02em 0.05em 7px hsla(28,35%,70%,0.64),
    0.83em 0.67em 7px hsla(44,34%,74%,0.46),
    -0.45em 0.23em 7px hsla(34,36%,69%,0.45),
    -1.13em 1.27em 7px hsla(38,37%,81%,0.45),
    -1.01em -0.25em 7px hsla(37,17%,78%,0.64),
    -1.49em -0.3em 7px hsla(36,20%,80%,0.49),
    -1.21em 0.73em 7px hsla(42,34%,67%,0.55),
    1.19em -0.78em 7px hsla(45,37%,79%,0.6),
    -0.88em -1.5em 7px hsla(31,32%,73%,0.41),
    0.83em -0.45em 7px hsla(44,31%,75%,0.63),
    0.81em 0.38em 7px hsla(41,19%,71%,0.63),
    -0.98em 0.31em 7px hsla(28,19%,68%,0.5),
    -0.98em -1.41em 7px hsla(42,28%,82%,0.7),
    -0.93em 0.14em 7px hsla(44,17%,68%,0.7);
}

.hero-dot-b::before {
  animation-duration: 41s;
  animation-delay: -19s;
  text-shadow:
    -0.12em 1.13em 7px hsla(29,24%,74%,0.61),
    0.41em -0.88em 7px hsla(39,25%,79%,0.66),
    0.08em 0.71em 7px hsla(29,37%,71%,0.6),
    -0.12em 1.39em 7px hsla(33,36%,75%,0.44),
    1.4em -1.07em 7px hsla(44,33%,68%,0.53),
    -1.35em 0.97em 7px hsla(38,24%,69%,0.5),
    0.06em 0.59em 7px hsla(37,31%,70%,0.69),
    -0.87em -0.2em 7px hsla(30,22%,71%,0.59),
    0.26em -1.23em 7px hsla(47,26%,68%,0.46),
    -0.78em -0.14em 7px hsla(43,37%,75%,0.6),
    -0.14em 1.04em 7px hsla(46,24%,67%,0.71),
    0.92em 0.32em 7px hsla(33,31%,68%,0.67),
    -0.25em 0.26em 7px hsla(41,32%,81%,0.69),
    1.22em -0.18em 7px hsla(34,22%,70%,0.5),
    -0.74em -1.22em 7px hsla(38,22%,72%,0.42),
    -0.94em 0.91em 7px hsla(35,23%,78%,0.62),
    1.49em -0.57em 7px hsla(44,24%,66%,0.66),
    0.78em 1.34em 7px hsla(29,22%,70%,0.5),
    0.88em -0.59em 7px hsla(40,37%,78%,0.5),
    0.67em 0.1em 7px hsla(47,33%,73%,0.59),
    -0.73em 0.62em 7px hsla(45,17%,81%,0.7),
    0.27em -1.38em 7px hsla(39,26%,68%,0.41),
    0.05em 1.28em 7px hsla(28,26%,65%,0.48),
    -1.14em 0.81em 7px hsla(46,35%,65%,0.41),
    0.7em 0.79em 7px hsla(38,36%,78%,0.55),
    0.56em -0.97em 7px hsla(28,32%,68%,0.48),
    -0.16em -0.06em 7px hsla(43,24%,79%,0.59),
    -0.33em 0.18em 7px hsla(42,32%,65%,0.46),
    0.99em 0.44em 7px hsla(32,29%,78%,0.42),
    0.83em 1.31em 7px hsla(28,17%,70%,0.69),
    1.18em 0.69em 7px hsla(31,23%,82%,0.72),
    -0.19em 0.92em 7px hsla(28,23%,68%,0.64),
    -1.01em -0.32em 7px hsla(46,20%,67%,0.47),
    -0.04em -1.47em 7px hsla(30,26%,74%,0.4),
    -0.05em 0.12em 7px hsla(41,24%,67%,0.52),
    -1.26em 1.08em 7px hsla(47,31%,82%,0.48),
    0.77em 0.07em 7px hsla(47,20%,74%,0.6),
    0.33em -0.79em 7px hsla(32,36%,74%,0.56),
    0.77em -0.25em 7px hsla(35,35%,66%,0.44),
    0.12em -1.15em 7px hsla(34,37%,80%,0.5);
}

@keyframes hero-dots-move {
  from { transform: rotate(0deg)   scale(12) translateX(-20px); }
  to   { transform: rotate(360deg) scale(18) translateX(20px); }
}
.toast-close:hover { opacity: 1; }
