/* Palette taken from the owner's portrait: deep navy + lavender. */
:root {
  --bg: #0e1120;
  --bg-2: #151a2e;
  --line: rgba(201, 184, 230, .14);
  --text: #eeeaf6;
  --muted: #9a97b0;
  --accent: #c9b8e6;
  --accent-2: #9f86d4;
  --radius: 28px;
  --display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }

/* Background: cursor-following glow + film grain */
.glow {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(600px circle at var(--mx, 70%) var(--my, 30%), rgba(159, 134, 212, .22), transparent 60%),
    radial-gradient(900px circle at 10% 110%, rgba(201, 184, 230, .10), transparent 60%);
  transition: background .2s;
}
.grain {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); }
}

/* Top bar */
.bar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding-block: 28px;
}
.logo { font: 800 20px/1 var(--display); letter-spacing: -.02em; }
.logo span { color: var(--accent); }
.meta { display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.clock b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.status { display: inline-flex; align-items: center; gap: 8px; }
.status i {
  width: 8px; height: 8px; border-radius: 50%; background: #7ee2a8;
  box-shadow: 0 0 0 0 rgba(126, 226, 168, .6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(126, 226, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(126, 226, 168, 0); } }

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.25fr .9fr; align-items: center; gap: 56px;
  min-height: calc(100vh - 100px); padding-block: 40px 80px;
}
.kicker {
  margin: 0 0 20px; color: var(--accent); font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; font-size: 14px;
}
/* Particle name (canvas, see particle-text.js). Negative margins give scattered particles room. */
.name {
  height: clamp(150px, 16vw, 250px); margin: -24px 0 -8px;
  font-family: var(--display); font-weight: 800;
}
.particle-text { position: relative; display: block; width: 100%; overflow: hidden; touch-action: pan-y; isolation: isolate; }
.particle-text__canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.particle-text__sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.tagline {
  margin: 0; font: 600 clamp(24px, 2.8vw, 38px)/1.15 var(--display);
  letter-spacing: -.03em; text-wrap: balance; max-width: 620px;
}
.tagline em {
  font-style: normal;
  background: linear-gradient(100deg, var(--accent) 0%, #fff 45%, var(--accent-2) 90%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.lead { max-width: 520px; margin: 28px 0 40px; color: var(--muted); font-size: 18px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
  transition: transform .25s, background .25s, color .25s, border-color .25s;
}
.btn-main { background: var(--accent); color: var(--bg); }
.btn-main span { transition: transform .25s; }
.btn-main:hover { background: #fff; transform: translateY(-2px); }
.btn-main:hover span { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Portrait */
.portrait { position: relative; margin: 0; justify-self: center; width: min(420px, 100%); }
.frame {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 220px 220px var(--radius) var(--radius);
  overflow: hidden; background: linear-gradient(160deg, #d6c9ea, #b7a5d6);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: 1; }
.mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 180px/1 var(--display); color: rgba(14, 17, 32, .85);
}
.badge {
  position: absolute; left: -28px; bottom: 36px; z-index: 2;
  padding: 16px 20px; border-radius: 20px;
  background: rgba(21, 26, 46, .75); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  font: 600 20px/1.2 var(--display);
  animation: float 5s ease-in-out infinite;
}
.badge small { font: 500 13px/1.4 var(--body); color: var(--muted); }
@keyframes float { 50% { transform: translateY(-10px); } }
.ring {
  position: absolute; right: -44px; top: -44px; width: 150px; height: 150px; z-index: 2;
  animation: spin 18s linear infinite;
}
.ring text { font: 600 14.2px var(--body); letter-spacing: .12em; fill: var(--accent); text-transform: uppercase; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Services */
.services { padding-block: 40px 100px; }
.label {
  margin: 0 0 32px; font: 500 14px/1 var(--body); color: var(--muted);
  text-transform: uppercase; letter-spacing: .12em;
  display: flex; align-items: center; gap: 16px;
}
.label::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), rgba(21, 26, 46, .4));
  border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .35s;
}
.card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
  background: radial-gradient(400px circle at var(--cx, 50%) var(--cy, 0%), rgba(201, 184, 230, .14), transparent 60%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(201, 184, 230, .35); }
.card:hover::before { opacity: 1; }
.num { font: 600 14px/1 var(--display); color: var(--accent); }
.card h3 { margin: 48px 0 12px; font: 600 22px/1.2 var(--display); letter-spacing: -.02em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

.cta {
  display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
  padding: 44px 40px; border-radius: var(--radius);
  background: var(--accent); color: var(--bg);
  transition: background .3s;
}
.cta:hover { background: #fff; }
.cta-small { font-weight: 600; opacity: .7; }
.cta-big { font: 800 clamp(30px, 5vw, 64px)/1.05 var(--display); letter-spacing: -.035em; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
/* Rolling (slot-machine) letters, see rolling-text.js. --lh = one reel step. */
.rolling { --lh: 1.12em; line-height: var(--lh); }
.rolling-word { display: inline-block; white-space: nowrap; }
.rolling-cell { position: relative; display: inline-block; vertical-align: top; }
.rolling-ghost { display: block; visibility: hidden; }
.rolling-window { position: absolute; inset: 0; overflow: hidden; }
.rolling-reel {
  display: block; will-change: transform;
  transform: translate3d(0, calc(-1 * var(--lh) * var(--k, 0)), 0);
}
.rolling-reel > span { display: block; height: var(--lh); text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.arrow { display: inline-block; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.cta:hover .arrow { transform: translate(8px, -8px) rotate(8deg); }

.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 28px 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}

/* Load-in animation */
.reveal { opacity: 0; transform: translateY(24px); animation: rise .9s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--d) * .12s + .1s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; gap: 56px; padding-block: 24px 64px; }
  .portrait { order: -1; width: min(340px, 78%); }
  .cards { grid-template-columns: 1fr; }
  .card h3 { margin-top: 28px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .meta .status { display: none; }
  .ring { width: 110px; height: 110px; right: -30px; top: -30px; }
  .badge { left: -12px; font-size: 17px; }
  .cta { padding: 32px 24px; }
  .btn { flex: 1 1 auto; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* Easter-egg speech bubble over the photo */
.frame { cursor: pointer; }
.bubble {
  position: absolute; left: 50%; top: 14%; z-index: 3; width: max-content; max-width: 80%;
  padding: 10px 16px; border-radius: 18px 18px 18px 4px;
  background: #fff; color: var(--bg); font: 600 15px/1.3 var(--body); text-align: center;
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translate(-50%, 10px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .35s cubic-bezier(.2, 1.4, .4, 1);
}
.bubble.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* "Stay" modal (bear.js) */
.stay {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  background: rgba(8, 10, 20, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .3s;
}
.stay.open { opacity: 1; }
.stay-card {
  width: min(440px, 100%); padding: 36px 28px 32px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); text-align: center;
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8);
  transform: translateY(20px) scale(.95); transition: transform .45s cubic-bezier(.2, 1.4, .4, 1);
}
.stay.open .stay-card { transform: none; }
.stay-bear { font-size: 84px; line-height: 1; display: inline-block; animation: beg 1.4s ease-in-out infinite; }
.stay-bear.sad { animation: shake .4s ease-in-out 2; filter: saturate(.6); }
.stay-bear.happy { animation: hop .5s ease-in-out 3; }
@keyframes beg { 50% { transform: rotate(-8deg) scale(1.05); } }
@keyframes shake { 25% { transform: translateX(-8px) rotate(-6deg); } 75% { transform: translateX(8px) rotate(6deg); } }
@keyframes hop { 50% { transform: translateY(-18px) scale(1.1); } }
.stay-title { margin: 16px 0 8px; font: 800 28px/1.1 var(--display); letter-spacing: -.03em; }
.stay-text { margin: 0 0 28px; color: var(--muted); min-height: 3.2em; }
.stay-actions { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.stay-actions .btn { font: inherit; font-weight: 600; cursor: pointer; }
.btn-ghost.stay-no { background: none; color: var(--muted); border: 1px solid var(--line); transition: transform .3s cubic-bezier(.2, 1.4, .4, 1), color .25s, border-color .25s; }
#stay-yes { border: 0; font-size: 17px; padding: 18px 34px; }
.heart {
  position: fixed; z-index: 60; font-size: 24px; pointer-events: none;
  transform: translate(-50%, -50%); animation: heart 1.4s cubic-bezier(.2, .8, .3, 1) forwards;
}
@keyframes heart {
  to { transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r)) scale(1.3); opacity: 0; }
}

/* Contacts row under the CTA */
.contacts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.contact {
  display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 24px 28px;
  border-radius: var(--radius); border: 1px solid var(--line); background: rgba(21, 26, 46, .5);
  transition: border-color .3s, transform .3s cubic-bezier(.2, .8, .2, 1);
}
.contact:hover { border-color: var(--accent); transform: translateY(-4px); }
.c-label { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.c-value { font: 600 clamp(17px, 1.7vw, 21px)/1.3 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.contact:hover .c-value { color: var(--accent); }
.c-note { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .contacts { grid-template-columns: 1fr; } }

/* Background music toggle (music.js) */
.sound {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px; max-width: calc(100% - 40px);
  padding: 12px 18px; border-radius: 999px; cursor: pointer;
  font: 600 14px/1.2 var(--body); color: var(--text);
  background: rgba(21, 26, 46, .8); border: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: border-color .25s, color .25s;
}
.sound:hover { border-color: var(--accent); color: var(--accent); }
.sound.waiting { border-color: var(--accent); animation: nudge 2.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 8% { transform: translateY(-4px); } 16% { transform: none; } }
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; opacity: .6; }
.sound.playing .eq i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; }
.sound.playing .eq i:nth-child(2) { animation-delay: -.3s; }
.sound.playing .eq i:nth-child(3) { animation-delay: -.6s; }
.sound.playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { from { height: 20%; } to { height: 100%; } }
@media (max-width: 560px) { .sound { right: 12px; bottom: 12px; padding: 10px 14px; font-size: 13px; } }
