:root{--bg:#05070a;--panel:#0b1016;--panel-soft:#101720;--text:#f1f5f9;--muted:#94a3b8;--line:rgba(148,163,184,.18);--accent:#57e3ff;--accent-2:#7c5cff;--max-width:1180px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(circle at 20% 10%,rgba(87,227,255,.08),transparent 28%),radial-gradient(circle at 85% 20%,rgba(124,92,255,.08),transparent 30%),var(--bg);color:var(--text);font-family:Inter,sans-serif;min-height:100vh}body.intro-running{overflow:hidden}a{color:inherit;text-decoration:none}button{font:inherit}
.intro{position:fixed;inset:0;z-index:1000;overflow:hidden;display:grid;place-items:center;background:radial-gradient(circle at 50% 46%,#07131d 0,#020609 38%,#010203 72%);transition:opacity .8s ease,visibility .8s ease}.intro.hidden{opacity:0;visibility:hidden;pointer-events:none}.scanlines{position:absolute;inset:0;pointer-events:none;opacity:.15;background:repeating-linear-gradient(to bottom,transparent 0,transparent 3px,rgba(255,255,255,.055) 4px)}.intro-vignette{position:absolute;inset:0;box-shadow:inset 0 0 180px #000;pointer-events:none}.skip-intro{position:absolute;top:24px;right:24px;z-index:10;border:1px solid var(--line);color:var(--muted);background:rgba(5,7,10,.72);padding:10px 14px;cursor:pointer;letter-spacing:.08em;text-transform:uppercase;font:700 .68rem Space Mono,monospace}.skip-intro:hover{color:#fff;border-color:rgba(87,227,255,.45)}.boot-copy{position:absolute;top:14%;left:50%;transform:translateX(-50%);color:var(--accent);font:.78rem/1.4 Space Mono,monospace;letter-spacing:.16em;opacity:.72}.cursor{animation:blink .8s steps(1) infinite}@keyframes blink{50%{opacity:0}}
.loader-unit{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);text-align:center;will-change:transform,opacity,filter}.spinner-core{position:relative;width:88px;height:88px;margin:0 auto 19px}.spinner-ring{position:absolute;inset:0;border-radius:50%;border:4px solid rgba(87,227,255,.13);border-top-color:var(--accent);border-right-color:rgba(87,227,255,.55);animation:spin .82s linear infinite;box-shadow:0 0 32px rgba(87,227,255,.18),inset 0 0 24px rgba(87,227,255,.09)}.spinner-dot{position:absolute;left:50%;top:50%;width:10px;height:10px;border-radius:50%;background:#fff;transform:translate(-50%,-50%);box-shadow:0 0 18px var(--accent)}.loading-text{color:var(--muted);font:.78rem Space Mono,monospace;letter-spacing:.2em}.loader-unit.teased{animation:loaderTease .38s cubic-bezier(.2,.9,.35,1) forwards}.loader-unit.tapped{animation:loaderTap .55s cubic-bezier(.2,.95,.3,1) forwards}.loader-unit.rapid{animation:loaderRapid .18s linear infinite;filter:saturate(1.8) brightness(1.25)}.loader-unit.doomed{animation:loaderDoom .52s cubic-bezier(.3,0,.8,.15) forwards}@keyframes spin{to{transform:rotate(360deg)}}@keyframes loaderTease{to{transform:translate(calc(-50% + 66px),calc(-50% - 7px)) scale(.95)}}@keyframes loaderTap{0%{transform:translate(calc(-50% + 66px),calc(-50% - 7px)) scale(.95)}50%{transform:translate(calc(-50% + 142px),calc(-50% - 18px)) scale(.9)}100%{transform:translate(calc(-50% + 124px),calc(-50% - 5px)) scale(.92)}}@keyframes loaderRapid{0%,100%{transform:translate(calc(-50% + 124px),calc(-50% - 5px)) rotate(-2deg) scale(.92)}50%{transform:translate(calc(-50% + 130px),calc(-50% - 9px)) rotate(3deg) scale(.96)}}@keyframes loaderDoom{to{transform:translate(calc(-50% + 70px),calc(-50% + 36px)) scale(.42);filter:brightness(2.4) blur(1px);opacity:.35}}
.paw-trail{position:absolute;inset:0;pointer-events:none}.paw-print{position:absolute;width:23px;height:19px;opacity:0;filter:drop-shadow(0 0 8px rgba(87,227,255,.9));transform:rotate(var(--r)) scale(.65);animation:pawAppear 1.5s ease forwards}.paw-print::before{content:"";position:absolute;left:7px;top:8px;width:10px;height:9px;border-radius:55% 55% 45% 45%;background:var(--accent)}.paw-print::after{content:"•••";position:absolute;left:1px;top:-8px;color:var(--accent);font:bold 15px/1 Arial;letter-spacing:0}.paw-print.fade{animation:pawFade .8s ease forwards}@keyframes pawAppear{20%{opacity:.95;transform:rotate(var(--r)) scale(1)}75%{opacity:.82}100%{opacity:.26;transform:rotate(var(--r)) scale(.92)}}@keyframes pawFade{to{opacity:0;filter:blur(3px)}}
.tato{position:absolute;left:-210px;bottom:18%;width:178px;height:128px;transform-origin:50% 100%;will-change:left,transform}.tato-shadow{position:absolute;left:25px;bottom:3px;width:132px;height:18px;border-radius:50%;background:rgba(0,0,0,.58);filter:blur(6px)}.dog-body{position:absolute;left:54px;top:45px;width:93px;height:57px;border-radius:52% 48% 43% 48%;background:linear-gradient(155deg,#fff 0,#eee 64%,#cfd4d7 100%);box-shadow:inset -8px -9px 12px rgba(0,0,0,.14)}.dog-chest{position:absolute;left:-17px;top:11px;width:37px;height:54px;border-radius:60% 20% 50% 45%;background:linear-gradient(120deg,#111,#050505 58%,#242424)}.body-patch{position:absolute;background:#0b0c0d}.patch-one{width:34px;height:28px;left:28px;top:4px;border-radius:50% 42% 56% 44%;transform:rotate(14deg)}.patch-two{width:24px;height:35px;right:6px;bottom:2px;border-radius:55% 35% 52% 45%;transform:rotate(-17deg)}.dog-neck{position:absolute;left:43px;top:43px;width:39px;height:55px;background:linear-gradient(90deg,#111,#050505 68%,#252525);border-radius:60% 30% 52% 44%;transform:rotate(7deg)}.dog-head{position:absolute;left:15px;top:24px;width:59px;height:57px;border-radius:48% 52% 45% 48%;background:radial-gradient(circle at 60% 42%,#202020,#090909 62%,#020202);transform-origin:70% 80%;transition:transform .28s ease}.dog-ear{position:absolute;top:-25px;width:32px;height:47px;background:linear-gradient(135deg,#050505,#1b1b1b 70%,#3b2b24);clip-path:polygon(48% 0,100% 100%,0 82%);filter:drop-shadow(0 0 1px rgba(255,255,255,.25))}.dog-ear span{position:absolute;inset:10px 7px 4px;background:#34201d;clip-path:inherit;opacity:.6}.ear-left{left:0;transform:rotate(-15deg)}.ear-right{right:-1px;transform:rotate(13deg)}.face-blaze{position:absolute;left:28px;top:7px;width:18px;height:43px;background:#f5f5f2;clip-path:polygon(42% 0,70% 35%,100% 100%,32% 82%,0 32%);opacity:.95}.dog-eye{position:absolute;top:22px;width:9px;height:10px;border-radius:50%;background:#0a0604;border:1px solid #5d4639;box-shadow:0 0 0 2px rgba(255,255,255,.06)}.dog-eye i{position:absolute;width:3px;height:3px;left:2px;top:1px;border-radius:50%;background:#fff}.eye-left{left:14px}.eye-right{left:39px}.dog-muzzle{position:absolute;left:7px;top:37px;width:36px;height:22px;border-radius:56% 44% 50% 48%;background:#eceae4;transform:rotate(-4deg)}.dog-nose{position:absolute;left:1px;top:40px;width:12px;height:9px;border-radius:50% 45% 52% 45%;background:#050505;box-shadow:0 1px 2px #000}.dog-tail{position:absolute;right:-1px;top:10px;width:61px;height:83px;border-radius:70% 35% 70% 30%;border:17px solid #f1f0eb;border-left-color:#111;border-bottom-color:#111;transform:rotate(26deg);transform-origin:20% 75%;filter:drop-shadow(0 2px 2px rgba(0,0,0,.4));z-index:-1}.dog-tail span{position:absolute;right:-10px;top:-11px;width:30px;height:58px;border-radius:70%;border-right:9px solid #fff;transform:rotate(8deg)}.dog-leg{position:absolute;top:88px;width:14px;height:35px;border-radius:7px;background:linear-gradient(#eee,#d8dcde);transform-origin:top center}.dog-leg span{position:absolute;left:-2px;bottom:-2px;width:18px;height:8px;border-radius:60% 55% 40% 40%;background:#e8e8e5}.leg-back-left{left:116px}.leg-back-right{left:139px;background:#151515;z-index:-1}.leg-front-left{left:56px;background:#151515}.leg-front-right{left:76px}.tato.walking{animation:tatoWalk 2.5s cubic-bezier(.18,.75,.34,1) forwards}.tato.walking .dog-leg:nth-of-type(odd){animation:legWalk .3s ease-in-out infinite alternate}.tato.walking .dog-leg:nth-of-type(even){animation:legWalk .3s ease-in-out infinite alternate-reverse}.tato.focused .dog-head{transform:rotate(-7deg) translate(-3px,3px)}.tato.sniffing .dog-head{transform:rotate(-18deg) translate(-9px,13px)}.tato.pawing .leg-front-left{animation:pawTap .46s ease-in-out 2}.tato.crouching{transform:translateY(14px) scaleX(1.05)}.tato.crouching .dog-body{transform:rotate(4deg)}.tato.crouching .dog-head{transform:translate(12px,12px) rotate(-10deg)}.tato.crouching .dog-tail{animation:tailFocus .22s ease-in-out infinite alternate}.tato.pouncing{animation:pounce .72s cubic-bezier(.25,.85,.4,1) forwards}.tato.exit{animation:tatoExit 1.8s ease-in forwards}.tato.sit{transform:translateY(5px) scale(.94)}@keyframes tatoWalk{0%{left:-210px;transform:translateY(0)}20%,60%{transform:translateY(-4px)}40%,80%{transform:translateY(0)}100%{left:calc(50% - 225px);transform:translateY(0)}}@keyframes legWalk{to{transform:rotate(18deg) translateY(-2px)}}@keyframes pawTap{0%,100%{transform:rotate(0)}50%{transform:rotate(-52deg) translate(-4px,-7px)}}@keyframes tailFocus{to{transform:rotate(35deg)}}@keyframes pounce{0%{left:calc(50% - 225px);transform:translateY(14px) scaleX(1.05) rotate(0)}45%{left:calc(50% - 125px);transform:translateY(-74px) rotate(-5deg) scale(1.04)}100%{left:calc(50% - 72px);transform:translateY(2px) rotate(1deg) scale(.98)}}@keyframes tatoExit{0%{left:calc(50% - 72px);opacity:1}100%{left:calc(100% + 210px);opacity:.9}}
.spark-field{position:absolute;inset:0;pointer-events:none}.spark{position:absolute;left:50%;top:50%;width:var(--s);height:var(--s);border-radius:28%;background:linear-gradient(135deg,#fff,var(--accent));box-shadow:0 0 18px var(--accent);animation:burst var(--d) cubic-bezier(.13,.73,.3,1) forwards;transform:rotate(var(--rot))}.spark.line{height:2px;border-radius:3px}.spark.star{clip-path:polygon(50% 0,61% 38%,100% 50%,61% 62%,50% 100%,39% 62%,0 50%,39% 38%)}@keyframes burst{0%{opacity:1;transform:translate(0,0) scale(.3) rotate(var(--rot))}70%{opacity:1}100%{opacity:0;transform:translate(var(--x),var(--y)) scale(1.1) rotate(calc(var(--rot) + 160deg))}}.intro-message{position:absolute;bottom:10%;opacity:0;color:var(--muted);font:700 .68rem Space Mono,monospace;letter-spacing:.22em}.intro-message.show{animation:message 1.25s ease forwards}@keyframes message{0%{opacity:0;transform:translateY(8px)}25%,75%{opacity:1;transform:none}100%{opacity:0}}.reveal-mark{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%) scale(.6);opacity:0;font:700 clamp(5rem,15vw,12rem) Space Mono,monospace;letter-spacing:-.11em;color:#fff;text-shadow:0 0 35px rgba(87,227,255,.35)}.reveal-mark span{color:var(--accent)}.reveal-mark.show{animation:markReveal 1.2s cubic-bezier(.16,.9,.25,1) forwards}@keyframes markReveal{0%{opacity:0;transform:translate(-50%,-50%) scale(.55);filter:blur(12px)}45%{opacity:1;filter:blur(0)}100%{opacity:0;transform:translate(-50%,-50%) scale(1.08)}}
.site-header{position:sticky;top:0;z-index:50;display:flex;align-items:center;justify-content:space-between;max-width:var(--max-width);margin:0 auto;padding:24px;backdrop-filter:blur(18px)}.brand{font:700 1.2rem Space Mono,monospace;letter-spacing:.04em}.brand-dot{color:var(--accent)}nav{display:flex;gap:28px}nav a{color:var(--muted);font-size:.86rem}nav a:hover{color:var(--text)}main{overflow:hidden}.section-grid,.content-section,.contact-section,footer{max-width:var(--max-width);margin:0 auto;padding-left:24px;padding-right:24px}.hero{min-height:86vh;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:42px}.eyebrow{color:var(--accent);font:.75rem Space Mono,monospace;letter-spacing:.18em}h1{margin:16px 0 22px;font-size:clamp(4.5rem,11vw,9rem);line-height:.82;letter-spacing:-.07em}.hero-text{max-width:620px;color:var(--muted);font-size:1.08rem;line-height:1.7}.hero-actions{display:flex;flex-wrap:wrap;gap:14px;margin-top:30px}.button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);padding:14px 18px;cursor:pointer;text-transform:uppercase;letter-spacing:.1em;font:.72rem Space Mono,monospace;transition:transform .2s ease}.button-primary{background:var(--text);color:var(--bg)}.button-ghost{background:transparent;color:var(--text)}.button:hover{transform:translateY(-2px)}.hero-panel{position:relative;min-height:520px;border:1px solid var(--line);background:linear-gradient(145deg,rgba(16,23,32,.92),rgba(5,7,10,.6));overflow:hidden}.orb{position:absolute;border-radius:50%;filter:blur(2px)}.orb-one{width:260px;height:260px;top:90px;left:80px;background:radial-gradient(circle at 32% 30%,#dffaff,var(--accent) 18%,#064a5c 48%,transparent 70%);opacity:.8}.orb-two{width:180px;height:180px;right:35px;bottom:55px;background:radial-gradient(circle at 35% 35%,#eeeaff,var(--accent-2) 20%,#25135d 55%,transparent 72%);opacity:.7}.grid-plane{position:absolute;inset:52% -20% -30%;background-image:linear-gradient(rgba(87,227,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(87,227,255,.12) 1px,transparent 1px);background-size:42px 42px;transform:perspective(600px) rotateX(65deg);transform-origin:top}.hero-tag{position:absolute;left:24px;bottom:22px;color:var(--muted);font:.68rem Space Mono,monospace;letter-spacing:.15em}.content-section{display:grid;grid-template-columns:180px 1fr;gap:56px;padding-top:120px;padding-bottom:120px;border-top:1px solid var(--line)}.section-label{color:var(--muted);font:.72rem Space Mono,monospace;letter-spacing:.14em}.section-content h2,.contact-section h2{margin:0 0 28px;font-size:clamp(2.4rem,5vw,4.8rem);line-height:1;letter-spacing:-.04em}.section-content>p{max-width:800px;color:var(--muted);font-size:1.08rem;line-height:1.75}.project-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:48px}.project-card{min-height:310px;padding:26px;border:1px solid var(--line);background:linear-gradient(145deg,rgba(16,23,32,.8),rgba(8,12,17,.85));transition:transform .28s ease,border-color .28s ease}.project-card:hover{transform:translateY(-7px);border-color:rgba(87,227,255,.45)}.project-number{color:var(--accent);font:.72rem Space Mono,monospace}.project-type{margin-top:54px;color:var(--muted);font:.68rem Space Mono,monospace;letter-spacing:.12em}.project-card h3{margin:12px 0;font-size:1.5rem}.project-card p:not(.project-type){color:var(--muted);line-height:1.65}.project-link{display:inline-block;margin-top:18px;font-size:.83rem;color:var(--text)}.skills-grid{display:grid;grid-template-columns:repeat(2,1fr);border-top:1px solid var(--line)}.skills-grid div{padding:22px 0;border-bottom:1px solid var(--line);color:var(--muted)}.skills-grid span{color:var(--accent);margin-right:18px;font:.7rem Space Mono,monospace}.contact-section{padding-top:140px;padding-bottom:140px;text-align:center;border-top:1px solid var(--line)}.contact-section h2{max-width:900px;margin-left:auto;margin-right:auto}.contact-note{margin-top:16px;color:var(--muted);font-size:.8rem}footer{display:flex;justify-content:space-between;gap:20px;padding-top:30px;padding-bottom:40px;border-top:1px solid var(--line);color:var(--muted);font-size:.8rem}
@media(max-width:820px){nav{display:none}.hero{grid-template-columns:1fr;padding-top:60px;padding-bottom:80px}.hero-panel{min-height:360px}.content-section{grid-template-columns:1fr;gap:28px;padding-top:90px;padding-bottom:90px}.project-grid,.skills-grid{grid-template-columns:1fr}footer{flex-direction:column}.tato{bottom:16%;transform:scale(.8)}@keyframes tatoWalk{0%{left:-210px}100%{left:calc(50% - 180px)}}@keyframes pounce{0%{left:calc(50% - 180px);transform:translateY(14px) scale(.82)}45%{left:calc(50% - 95px);transform:translateY(-58px) rotate(-5deg) scale(.84)}100%{left:calc(50% - 52px);transform:translateY(2px) scale(.8)}}.boot-copy{top:12%;font-size:.64rem}.loader-unit{top:45%}.spinner-core{width:70px;height:70px}}
@media(prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}.intro{display:none}body{overflow:auto}}

/* Phase 1.1 continuity fixes */
.tato{
  transform:scaleX(-1);
}
.tato.walking{
  animation:tatoWalkFixed 2.5s cubic-bezier(.18,.75,.34,1) forwards;
}
.tato.focused,
.tato.sniffing,
.tato.pawing,
.tato.crouching{
  left:calc(50% - 225px);
}
.tato.focused{transform:scaleX(-1)}
.tato.sniffing{transform:scaleX(-1) translateX(-10px)}
.tato.pawing{left:calc(50% - 205px);transform:scaleX(-1)}
.tato.crouching{left:calc(50% - 185px);transform:scaleX(-1) translateY(14px) scaleX(-1.05)}
.tato.pouncing{animation:pounceFixed .72s cubic-bezier(.25,.85,.4,1) forwards}
.tato.sit{left:calc(50% - 72px);transform:scaleX(-1) translateY(5px) scale(.94)}
.tato.exit{animation:tatoExitFixed 1.8s ease-in forwards}

@keyframes tatoWalkFixed{
  0%{left:-210px;transform:scaleX(-1) translateY(0)}
  20%,60%{transform:scaleX(-1) translateY(-4px)}
  40%,80%{transform:scaleX(-1) translateY(0)}
  100%{left:calc(50% - 225px);transform:scaleX(-1) translateY(0)}
}
@keyframes pounceFixed{
  0%{left:calc(50% - 185px);transform:scaleX(-1) translateY(14px) scale(.98)}
  45%{left:calc(50% - 112px);transform:scaleX(-1) translateY(-74px) rotate(5deg) scale(1.04)}
  100%{left:calc(50% - 72px);transform:scaleX(-1) translateY(2px) rotate(-1deg) scale(.98)}
}
@keyframes tatoExitFixed{
  0%{left:calc(50% - 72px);transform:scaleX(-1);opacity:1}
  100%{left:calc(100% + 210px);transform:scaleX(-1);opacity:.9}
}

/* Make the loader behave like a toy Tato is actively chasing. */
.loader-unit{transition:filter .2s ease}
.loader-unit.teased{animation:loaderTeaseFixed .52s cubic-bezier(.2,.9,.35,1) forwards}
.loader-unit.tapped{animation:loaderTapFixed .78s cubic-bezier(.2,.95,.3,1) forwards}
.loader-unit.rapid{animation:loaderRapidFixed .3s ease-in-out infinite alternate;filter:saturate(1.8) brightness(1.25)}
.loader-unit.doomed{animation:loaderDoomFixed .52s cubic-bezier(.3,0,.8,.15) forwards}
@keyframes loaderTeaseFixed{
  0%{transform:translate(-50%,-50%)}
  55%{transform:translate(calc(-50% + 48px),calc(-50% - 18px)) rotate(12deg) scale(.96)}
  100%{transform:translate(calc(-50% + 72px),calc(-50% - 5px)) rotate(0) scale(.95)}
}
@keyframes loaderTapFixed{
  0%{transform:translate(calc(-50% + 72px),calc(-50% - 5px)) scale(.95)}
  35%{transform:translate(calc(-50% + 142px),calc(-50% - 34px)) rotate(22deg) scale(.9)}
  68%{transform:translate(calc(-50% + 178px),calc(-50% + 10px)) rotate(55deg) scale(.88)}
  100%{transform:translate(calc(-50% + 148px),calc(-50% - 2px)) rotate(80deg) scale(.92)}
}
@keyframes loaderRapidFixed{
  0%{transform:translate(calc(-50% + 145px),calc(-50% - 4px)) rotate(75deg) scale(.92)}
  100%{transform:translate(calc(-50% + 110px),calc(-50% + 20px)) rotate(135deg) scale(.98)}
}
@keyframes loaderDoomFixed{
  0%{transform:translate(calc(-50% + 112px),calc(-50% + 18px)) scale(.95)}
  100%{transform:translate(calc(-50% + 72px),calc(-50% + 38px)) scale(.38);filter:brightness(2.6) blur(1px);opacity:.15}
}

/* The particle burst is the reveal; no initials/logo overlay. */
.reveal-mark{display:none!important}

@media(max-width:820px){
  .tato{transform:scaleX(-1) scale(.8)}
  .tato.focused,.tato.sniffing,.tato.pawing,.tato.crouching{left:calc(50% - 180px)}
  .tato.pawing{left:calc(50% - 160px)}
  .tato.crouching{left:calc(50% - 145px);transform:scaleX(-1) scale(.8) translateY(14px)}
  .tato.sit{left:calc(50% - 52px);transform:scaleX(-1) scale(.8) translateY(5px)}
  @keyframes tatoWalkFixed{0%{left:-210px;transform:scaleX(-1) scale(.8)}100%{left:calc(50% - 180px);transform:scaleX(-1) scale(.8)}}
  @keyframes pounceFixed{0%{left:calc(50% - 145px);transform:scaleX(-1) scale(.8) translateY(14px)}45%{left:calc(50% - 88px);transform:scaleX(-1) scale(.84) translateY(-58px)}100%{left:calc(50% - 52px);transform:scaleX(-1) scale(.8) translateY(2px)}}
  @keyframes tatoExitFixed{0%{left:calc(50% - 52px);transform:scaleX(-1) scale(.8)}100%{left:calc(100% + 210px);transform:scaleX(-1) scale(.8)}}
}

/* =========================================================
   TATO ILLUSTRATED MASCOT — CLEAN V1
   ========================================================= */

#intro #tato {
  position: absolute;
  left: -240px;
  bottom: 9%;
  width: 220px;
  height: 180px;
  transform-origin: 50% 100%;
  z-index: 5;
  will-change: left, transform, opacity;
}

#intro #tato .tato-pose {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  opacity: 0;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.16s ease;
  filter:
    drop-shadow(0 9px 8px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 10px rgba(87, 227, 255, 0.1));
}

/* Default side pose */
#intro #tato .tato-side {
  opacity: 1;
}

/* Code-driven floor shadow */
#intro #tato .tato-shadow {
  position: absolute;
  left: 18%;
  bottom: 2%;
  width: 66%;
  height: 8%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.62);
  filter: blur(8px);
  opacity: 0.7;
  z-index: -1;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ---------- Walk in ---------- */

#intro #tato.walking {
  animation: tatoImageWalk 2.5s cubic-bezier(.18, .75, .34, 1) forwards;
}

@keyframes tatoImageWalk {
  0% {
    left: -240px;
    transform: translateY(0);
  }

  18% {
    transform: translateY(-4px);
  }

  36% {
    transform: translateY(0);
  }

  54% {
    transform: translateY(-4px);
  }

  72% {
    transform: translateY(0);
  }

  88% {
    transform: translateY(-3px);
  }

  100% {
    left: calc(50% - 300px);
    transform: translateY(0);
  }
}

/* ---------- Investigation ---------- */

#intro #tato.focused,
#intro #tato.sniffing,
#intro #tato.pawing,
#intro #tato.crouching {
  left: calc(50% - 300px);
  bottom: 9%;
}

#intro #tato.focused .tato-side,
#intro #tato.sniffing .tato-side,
#intro #tato.pawing .tato-side,
#intro #tato.crouching .tato-side {
  opacity: 0;
}

#intro #tato.focused .tato-focus,
#intro #tato.sniffing .tato-focus,
#intro #tato.pawing .tato-focus,
#intro #tato.crouching .tato-focus {
  opacity: 1;
}

#intro #tato.focused {
  transform: translateX(0) scale(0.96);
}

#intro #tato.sniffing {
  transform: translate(12px, 7px) scale(0.98) rotate(-1deg);
}

#intro #tato.pawing {
  transform: translate(28px, 2px) scale(1);
}

#intro #tato.crouching {
  transform: translate(40px, 10px) scale(1.04, 0.95);
}

#intro #tato.focused .tato-shadow,
#intro #tato.sniffing .tato-shadow,
#intro #tato.pawing .tato-shadow,
#intro #tato.crouching .tato-shadow {
  width: 48%;
  left: 26%;
}

/* ---------- Pounce ---------- */

#intro #tato.pouncing {
  left: calc(50% - 300px);
  bottom: 9%;
  animation: tatoImagePounce 0.9s cubic-bezier(.2, .82, .32, 1) forwards;
}

#intro #tato.pouncing .tato-side,
#intro #tato.pouncing .tato-focus {
  opacity: 0;
}

#intro #tato.pouncing .tato-pounce {
  opacity: 1;
}

#intro #tato.pouncing .tato-shadow {
  opacity: 0.24;
  transform: translateX(165px) scaleX(0.48);
}

@keyframes tatoImagePounce {
  0% {
    transform: translate(40px, 10px) scale(0.98);
  }

  35% {
    transform: translate(115px, -90px) scale(1.03) rotate(-2deg);
  }

  70% {
    transform: translate(205px, -190px) scale(1.08) rotate(-4deg);
  }

  100% {
    transform: translate(238px, -220px) scale(1.03) rotate(-2deg);
  }
}

/* ---------- Landing / pause ---------- */

#intro #tato.sit {
  left: calc(50% - 70px);
  bottom: 9%;
  transform: none;
}

#intro #tato.sit .tato-side {
  opacity: 1;
}

#intro #tato.sit .tato-focus,
#intro #tato.sit .tato-pounce {
  opacity: 0;
}

/* ---------- Walk away ---------- */

#intro #tato.exit {
  left: calc(50% - 70px);
  bottom: 9%;
  animation: tatoImageExit 1.8s ease-in forwards;
}

#intro #tato.exit .tato-side {
  opacity: 1;
}

#intro #tato.exit .tato-focus,
#intro #tato.exit .tato-pounce {
  opacity: 0;
}

@keyframes tatoImageExit {
  0% {
    transform: translateX(0) translateY(0);
    opacity: 1;
  }

  16% {
    transform: translateX(70px) translateY(-3px);
  }

  32% {
    transform: translateX(150px) translateY(0);
  }

  48% {
    transform: translateX(250px) translateY(-3px);
  }

  64% {
    transform: translateX(370px) translateY(0);
  }

  80% {
    transform: translateX(510px) translateY(-3px);
  }

  100% {
    transform: translateX(calc(55vw + 320px)) translateY(0);
    opacity: 0.88;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 820px) {
  #intro #tato {
    width: 165px;
    height: 140px;
    bottom: 10%;
  }

  #intro #tato.focused,
  #intro #tato.sniffing,
  #intro #tato.pawing,
  #intro #tato.crouching {
    left: calc(50% - 190px);
  }

  @keyframes tatoImageWalk {
    0% {
      left: -190px;
      transform: translateY(0);
    }

    50% {
      transform: translateY(-3px);
    }

    100% {
      left: calc(50% - 190px);
      transform: translateY(0);
    }
  }

  #intro #tato.pouncing {
    left: calc(50% - 190px);
  }

  @keyframes tatoImagePounce {
    0% {
      transform: translate(25px, 8px) scale(0.96);
    }

    55% {
      transform: translate(105px, -125px) scale(1.03) rotate(-3deg);
    }

    100% {
      transform: translate(145px, -160px) scale(1) rotate(-2deg);
    }
  }

  #intro #tato.sit,
  #intro #tato.exit {
    left: calc(50% - 45px);
  }
}


/* =========================================================
   TATO SYSTEM HERO PANEL
   ========================================================= */

.hero-panel.tato-system-panel {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(53, 131, 255, 0.34);
  border-radius: 6px;
  background:
    radial-gradient(
      circle at 50% 53%,
      rgba(0, 119, 255, 0.16),
      transparent 36%
    ),
    linear-gradient(
      145deg,
      rgba(6, 16, 29, 0.97),
      rgba(2, 7, 14, 0.98)
    );
  box-shadow:
    inset 0 0 60px rgba(0, 93, 255, 0.08),
    0 22px 70px rgba(0, 0, 0, 0.42);
}

.hero-panel.tato-system-panel::before,
.hero-panel.tato-system-panel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 8;
}

.hero-panel.tato-system-panel::before {
  inset: 12px;
  border: 1px solid rgba(41, 115, 227, 0.2);
  clip-path: polygon(
    0 5%,
    5% 0,
    42% 0,
    45% 3%,
    73% 3%,
    76% 0,
    95% 0,
    100% 5%,
    100% 88%,
    96% 94%,
    72% 94%,
    68% 100%,
    31% 100%,
    27% 94%,
    4% 94%,
    0 88%
  );
}

.hero-panel.tato-system-panel::after {
  inset: 0;
  opacity: 0.11;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    rgba(87, 227, 255, 0.14) 4px
  );
  mix-blend-mode: screen;
}

.tato-system-grid {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: -18%;
  height: 68%;
  opacity: 0.32;
  transform: perspective(460px) rotateX(63deg);
  transform-origin: center bottom;
  background-image:
    linear-gradient(rgba(30, 119, 255, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 119, 255, 0.32) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to top, #000, transparent 92%);
}

.tato-system-scan {
  position: absolute;
  top: -25%;
  left: 8%;
  right: 8%;
  height: 18%;
  z-index: 4;
  opacity: 0;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(87, 227, 255, 0.16),
    transparent
  );
  animation: tatoSystemScan 5.5s linear infinite;
}

@keyframes tatoSystemScan {
  0% {
    top: -25%;
    opacity: 0;
  }

  10% {
    opacity: 0.9;
  }

  80% {
    opacity: 0.32;
  }

  100% {
    top: 110%;
    opacity: 0;
  }
}

.tato-system-header {
  position: absolute;
  top: 28px;
  left: 30px;
  right: 30px;
  z-index: 10;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  color: #2b8dff;
  font-family: "Space Mono", monospace;
}

.system-title {
  display: flex;
  align-items: center;
  gap: 11px;
}

.system-title strong,
.system-version,
.system-status strong {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
}

.system-title small,
.system-status small {
  display: block;
  margin-top: 3px;
  color: rgba(87, 227, 255, 0.76);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}

.system-paw {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(43, 141, 255, 0.4);
  border-radius: 5px;
  background: rgba(4, 15, 30, 0.88);
  filter: drop-shadow(0 0 8px rgba(43, 141, 255, 0.45));
}

.system-version {
  padding-top: 8px;
  white-space: nowrap;
}

.tato-target-ring {
  position: absolute;
  left: 50%;
  top: 49%;
  z-index: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(28, 118, 255, 0.32);
}

.ring-outer {
  width: 70%;
  aspect-ratio: 1;
  max-width: 410px;
}

.ring-inner {
  width: 48%;
  aspect-ratio: 1;
  max-width: 285px;
  border-color: rgba(87, 227, 255, 0.18);
  animation: targetPulse 3.2s ease-in-out infinite;
}

@keyframes targetPulse {
  0%,
  100% {
    opacity: 0.48;
    transform: translate(-50%, -50%) scale(0.98);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.035);
  }
}

.target-cross {
  position: absolute;
  z-index: 7;
  color: #168cff;
  font: 400 1.35rem/1 "Space Mono", monospace;
  text-shadow: 0 0 10px rgba(22, 140, 255, 0.85);
}

.target-cross-top {
  left: 50%;
  top: 19%;
  transform: translateX(-50%);
}

.target-cross-left {
  left: 20%;
  top: 50%;
}

.target-cross-right {
  right: 20%;
  top: 50%;
}

.tato-emblem {
  position: absolute;
  left: 50%;
  top: 51%;
  z-index: 5;
  width: min(72%, 390px);
  height: 70%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.tato-emblem-glow {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 56%;
  height: 15%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(0, 124, 255, 0.42);
  filter: blur(28px);
  animation: emblemGlow 2.7s ease-in-out infinite;
}

@keyframes emblemGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(-50%) scale(0.9);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scale(1.08);
  }
}

.tato-hero-image {
  position: relative;
  z-index: 4;
  width: 82%;
  height: 82%;
  object-fit: contain;
  object-position: center;
  filter:
    grayscale(1)
    sepia(1)
    saturate(7)
    hue-rotate(164deg)
    brightness(1.15)
    contrast(1.34)
    drop-shadow(0 0 5px rgba(30, 133, 255, 0.92))
    drop-shadow(0 0 18px rgba(0, 105, 255, 0.58));
  animation: tatoHeroFloat 4.2s ease-in-out infinite;
}

@keyframes tatoHeroFloat {
  0%,
  100% {
    transform: translateY(2px) scale(0.99);
  }

  50% {
    transform: translateY(-6px) scale(1.01);
  }
}

.signal-origin {
  position: absolute;
  left: 50%;
  bottom: 16%;
  z-index: 6;
  width: 8px;
  height: 8px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 8px #fff,
    0 0 18px #42a5ff,
    0 0 36px #087dff;
}

.signal-origin::before,
.signal-origin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  background: linear-gradient(to top, #087dff, transparent);
}

.signal-origin::before {
  width: 1px;
  height: 150px;
}

.signal-origin::after {
  width: 160px;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    #087dff,
    transparent
  );
}

.system-status {
  position: absolute;
  bottom: 28px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #258cff;
  font-family: "Space Mono", monospace;
}

.status-left {
  left: 30px;
}

.status-right {
  right: 30px;
  text-align: right;
}

.status-light {
  width: 9px;
  height: 9px;
  border: 1px solid #00ff88;
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(0, 255, 136, 0.75);
  animation: signalBlink 1.8s ease-in-out infinite;
}

@keyframes signalBlink {
  50% {
    background: #00ff88;
  }
}

.system-motto {
  position: absolute;
  left: 50%;
  bottom: 23px;
  z-index: 10;
  transform: translateX(-50%);
  width: 250px;
  text-align: center;
  color: rgba(148, 163, 184, 0.82);
  font-family: "Space Mono", monospace;
  font-size: 0.57rem;
  letter-spacing: 0.12em;
}

.system-motto span,
.system-motto strong,
.system-motto small {
  display: block;
}

.system-motto strong {
  margin-top: 4px;
  color: #257fff;
  font-size: 0.56rem;
}

.system-motto small {
  margin-top: 8px;
  color: #168cff;
  font-size: 0.78rem;
}

/* Keep the old sphere elements from ever showing */
.tato-system-panel .orb,
.tato-system-panel .grid-plane,
.tato-system-panel .hero-tag {
  display: none;
}

@media (max-width: 1050px) {
  .hero-panel.tato-system-panel {
    min-height: 460px;
  }

  .system-motto {
    display: none;
  }

  .ring-outer {
    width: 76%;
  }
}

@media (max-width: 820px) {
  .hero-panel.tato-system-panel {
    min-height: 410px;
  }

  .tato-system-header {
    top: 20px;
    left: 20px;
    right: 20px;
  }

  .system-version {
    font-size: 0.52rem;
  }

  .system-status {
    bottom: 20px;
  }

  .status-left {
    left: 20px;
  }

  .status-right {
    right: 20px;
  }

  .system-status strong {
    font-size: 0.59rem;
  }

  .system-status small {
    font-size: 0.48rem;
  }

  .tato-emblem {
    width: 82%;
  }
}

@media (max-width: 520px) {
  .system-version,
  .status-right {
    display: none;
  }

  .hero-panel.tato-system-panel {
    min-height: 370px;
  }

  .tato-emblem {
    top: 53%;
    width: 92%;
  }

  .ring-outer {
    width: 88%;
  }
}


/* =========================================================
   FOOTER TATO
   ========================================================= */

.site-footer {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-right: 130px;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
}

.footer-tato {
  position: absolute;
  right: 22px;
  bottom: 10px;
  width: 72px;
  height: 72px;
  pointer-events: none;
  user-select: none;
}

.footer-tato-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(87, 227, 255, 0.08));
  animation: footerTatoJiggle 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.footer-tato-shadow {
  position: absolute;
  left: 18%;
  bottom: 2px;
  width: 64%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  filter: blur(6px);
  z-index: 1;
  animation: footerTatoShadowJiggle 3.2s ease-in-out infinite;
}

@keyframes footerTatoJiggle {
  0%,
  100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }

  12% {
    transform: translateY(-1px) rotate(-1deg) scale(1.01);
  }

  24% {
    transform: translateY(0) rotate(1deg) scale(1);
  }

  36% {
    transform: translateY(-2px) rotate(-1.4deg) scale(1.015);
  }

  48% {
    transform: translateY(0) rotate(1.2deg) scale(1);
  }

  60% {
    transform: translateY(-1px) rotate(-0.8deg) scale(1.01);
  }

  72% {
    transform: translateY(0) rotate(0.6deg) scale(1);
  }
}

@keyframes footerTatoShadowJiggle {
  0%,
  100% {
    transform: scaleX(1);
    opacity: 0.42;
  }

  36% {
    transform: scaleX(0.95);
    opacity: 0.34;
  }

  48% {
    transform: scaleX(1.03);
    opacity: 0.4;
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding-right: 92px;
  }

  .footer-tato {
    width: 56px;
    height: 56px;
    right: 16px;
    bottom: 10px;
  }

  .footer-copy {
    gap: 10px;
  }
}


/* =========================================================
   FOOTER TATO — CENTERED VERSION
   ========================================================= */

.site-footer {
  position: relative;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 24px;
  padding-top: 34px;
  padding-bottom: 34px;
  padding-right: 0;
}

.footer-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Center Tato in the footer */
.footer-tato {
  position: absolute;
  left: 50%;
  bottom: 10px;
  width: 78px;
  height: 78px;
  transform: translateX(-50%);
  pointer-events: none;
  user-select: none;
  z-index: 3;
}

/* Tiny glowing paw print */
.footer-tato::after {
  content: "🐾";
  position: absolute;
  left: 50%;
  top: -10px;
  transform: translateX(22px);
  font-size: 0.8rem;
  color: #57e3ff;
  text-shadow:
    0 0 6px rgba(87, 227, 255, 0.95),
    0 0 14px rgba(0, 145, 255, 0.7);
  opacity: 0.95;
  animation: footerPawPulse 2.6s ease-in-out infinite;
}

.footer-tato-image {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  filter:
    drop-shadow(0 6px 8px rgba(0, 0, 0, 0.42))
    drop-shadow(0 0 8px rgba(87, 227, 255, 0.08));
  animation: footerTatoJiggle 3.2s ease-in-out infinite;
  transform-origin: center bottom;
}

.footer-tato-shadow {
  position: absolute;
  left: 18%;
  bottom: 2px;
  width: 64%;
  height: 12%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  filter: blur(6px);
  z-index: 1;
  animation: footerTatoShadowJiggle 3.2s ease-in-out infinite;
}

@keyframes footerPawPulse {
  0%,
  100% {
    opacity: 0.7;
    transform: translateX(22px) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: translateX(22px) scale(1.08);
  }
}

@media (max-width: 700px) {
  .site-footer {
    padding-top: 28px;
    padding-bottom: 78px;
  }

  .footer-copy {
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-tato {
    width: 60px;
    height: 60px;
    bottom: 10px;
  }

  .footer-tato::after {
    top: -8px;
    transform: translateX(18px);
    font-size: 0.7rem;
  }
}


/* =========================================================
   TATO FOOTER SPEECH BUBBLE
   ========================================================= */

.footer-tato {
  pointer-events: auto;
  cursor: default;
}

.tato-speech-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 14px);
  width: 190px;
  padding: 11px 13px;
  transform: translateX(-50%) translateY(8px) scale(0.96);
  border: 1px solid rgba(87, 227, 255, 0.55);
  border-radius: 14px;
  background:
    linear-gradient(
      145deg,
      rgba(8, 18, 30, 0.98),
      rgba(3, 8, 15, 0.98)
    );
  color: #f1f5f9;
  font: 600 0.72rem/1.45 "Space Mono", monospace;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(87, 227, 255, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
  z-index: 10;
}

.tato-speech-bubble::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 14px;
  height: 14px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 1px solid rgba(87, 227, 255, 0.55);
  border-bottom: 1px solid rgba(87, 227, 255, 0.55);
  background: rgba(4, 10, 18, 0.98);
}

.footer-tato:hover .tato-speech-bubble,
.footer-tato:focus-within .tato-speech-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}

.footer-tato:hover .footer-tato-image {
  animation:
    footerTatoJiggle 3.2s ease-in-out infinite,
    footerTatoHello 0.45s ease both;
}

@keyframes footerTatoHello {
  0% {
    transform: translateY(0) rotate(0);
  }

  45% {
    transform: translateY(-4px) rotate(-2deg);
  }

  100% {
    transform: translateY(0) rotate(0);
  }
}

@media (max-width: 700px) {
  .tato-speech-bubble {
    width: 165px;
    font-size: 0.64rem;
  }
}


/* FOOTER PAW — CLEAN NEON VERSION */

.footer-tato::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -16px;
  width: 16px;
  height: 13px;
  transform: translateX(24px);
  border-radius: 55% 55% 48% 48%;
  background: #57e3ff;
  box-shadow:
    -7px -7px 0 -3px #57e3ff,
    0 -10px 0 -3px #57e3ff,
    7px -7px 0 -3px #57e3ff,
    0 0 7px rgba(87, 227, 255, 0.95),
    0 0 15px rgba(0, 145, 255, 0.65);
  opacity: 0.95;
  animation: footerPawPulse 2.6s ease-in-out infinite;
}

@keyframes footerPawPulse {
  0%,
  100% {
    opacity: 0.68;
    transform: translateX(24px) scale(0.92);
  }

  50% {
    opacity: 1;
    transform: translateX(24px) scale(1.08);
  }
}

/* FOOTER PAW — REFINED SHAPE */

.footer-tato::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -18px;
  width: 15px;
  height: 12px;
  transform: translateX(24px);
  border-radius: 48% 48% 58% 58%;
  background: #57e3ff;
  box-shadow:
    -8px -7px 0 -4px #57e3ff,
    -3px -11px 0 -4px #57e3ff,
    3px -11px 0 -4px #57e3ff,
    8px -7px 0 -4px #57e3ff,
    0 0 7px rgba(87, 227, 255, 0.95),
    0 0 15px rgba(0, 145, 255, 0.65);
  opacity: 0.95;
  animation: footerPawPulse 2.6s ease-in-out infinite;
}

@keyframes footerPawPulse {
  0%,
  100% {
    opacity: 0.72;
    transform: translateX(24px) scale(0.94);
  }

  50% {
    opacity: 1;
    transform: translateX(24px) scale(1.06);
  }
}

/* Remove footer paw accent */
.footer-tato::after {
  content: none;
  display: none;
}


/* =========================================================
   FOOTER TATO — SMALLER SCREEN OVERLAP FIX
   ========================================================= */

@media (max-width: 980px) {
  .site-footer {
    justify-content: center;
    padding-top: 24px;
    padding-bottom: 92px;
    min-height: 120px;
  }

  .footer-copy {
    width: 100%;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 0 14px;
  }

  .footer-tato {
    left: 50%;
    bottom: 10px;
    width: 58px;
    height: 58px;
    transform: translateX(-50%);
  }

  .tato-speech-bubble {
    width: 165px;
    bottom: calc(100% + 10px);
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding-bottom: 84px;
  }

  .footer-copy {
    flex-direction: column;
    gap: 6px;
  }

  .footer-tato {
    width: 52px;
    height: 52px;
    bottom: 8px;
  }
}


/* Hide intro paw-print trail */
#pawTrail {
  display: none !important;
}

/* TATO INTRO — SIMPLE MOTION POLISH */

/* Slightly slower, smoother entrance walk */
#intro #tato.walking {
  animation-duration: 3.1s !important;
  animation-timing-function: ease-in-out !important;
}

/* Make the loading target react to Tato */
#intro #loaderUnit.rapid {
  animation: tatoTargetWobble 0.34s ease-in-out infinite alternate;
}

#intro #loaderUnit.doomed {
  animation: tatoTargetImpact 0.18s ease-in-out infinite alternate;
}

@keyframes tatoTargetWobble {
  from {
    transform: translateX(-3px) rotate(-2deg) scale(1);
  }
  to {
    transform: translateX(3px) rotate(2deg) scale(1.04);
  }
}

@keyframes tatoTargetImpact {
  from {
    transform: translate(-4px, 1px) rotate(-3deg) scale(1.04);
  }
  to {
    transform: translate(4px, -1px) rotate(3deg) scale(0.97);
  }
}

/* Keep the paw-print layer hidden */
#pawTrail {
  display: none !important;
}


/* =========================================================
   TATO SIDE PEEK
   ========================================================= */

.tato-side-peek {
  position: fixed;
  right: -190px;
  bottom: 28px;
  width: 180px;
  z-index: 9998;
  pointer-events: none;
  transition: right 0.65s cubic-bezier(.2, .8, .25, 1);
}

.tato-side-peek.show {
  right: -22px;
}

.tato-side-peek img {
  display: block;
  width: 150px;
  height: auto;
  margin-left: auto;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.38));
}

.tato-bark-bubble {
  position: absolute;
  right: 112px;
  top: 8px;
  min-width: 92px;
  padding: 10px 14px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 18px;
  background: rgba(12, 18, 30, 0.94);
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px) scale(0.9);
  transition:
    opacity 0.25s ease 0.45s,
    transform 0.25s ease 0.45s;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
}

.tato-bark-bubble::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: 15px;
  width: 16px;
  height: 16px;
  background: rgba(12, 18, 30, 0.94);
  border-top: 2px solid rgba(255, 255, 255, 0.85);
  border-right: 2px solid rgba(255, 255, 255, 0.85);
  transform: rotate(45deg);
}

.tato-side-peek.show .tato-bark-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
}

@media (max-width: 600px) {
  .tato-side-peek {
    bottom: 18px;
    width: 145px;
  }

  .tato-side-peek.show {
    right: -32px;
  }

  .tato-side-peek img {
    width: 120px;
  }

  .tato-bark-bubble {
    right: 91px;
    top: 2px;
    font-size: 12px;
    padding: 8px 11px;
  }
}


/* Move Tato's recurring peek to the left side */
.tato-side-peek {
  left: -190px;
  right: auto;
}

.tato-side-peek.show {
  left: -22px;
  right: auto;
}

.tato-side-peek img {
  margin-left: 0;
  margin-right: auto;
}

.tato-bark-bubble {
  left: 112px;
  right: auto;
}

.tato-bark-bubble::after {
  left: -10px;
  right: auto;
  border-top: none;
  border-right: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.85);
  border-left: 2px solid rgba(255, 255, 255, 0.85);
}

@media (max-width: 600px) {
  .tato-side-peek.show {
    left: -32px;
    right: auto;
  }

  .tato-bark-bubble {
    left: 91px;
    right: auto;
  }
}


/* Refine Tato side peek */
.tato-side-peek.show {
  left: 8px;
  right: auto;
}

.tato-bark-bubble {
  transition:
    opacity 0.25s ease 1.8s,
    transform 0.25s ease 1.8s;
}

@media (max-width: 600px) {
  .tato-side-peek.show {
    left: 0;
    right: auto;
  }
}


/* Final Tato speech-bubble fix */
.tato-bark-bubble {
  opacity: 0;
  transform: translateX(-8px) scale(0.92);
  transition:
    opacity 0.15s ease 0s,
    transform 0.15s ease 0s;
}

/* Delay applies only while appearing */
.tato-side-peek.show .tato-bark-bubble {
  opacity: 1;
  transform: translateX(0) scale(1);
  transition:
    opacity 0.25s ease 1.8s,
    transform 0.25s ease 1.8s;
}

/* Rebuild the bubble pointer cleanly */
.tato-bark-bubble::after {
  content: "";
  position: absolute;
  left: -11px;
  right: auto;
  bottom: 13px;
  width: 0;
  height: 0;
  background: transparent;
  border: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 11px solid rgba(12, 18, 30, 0.94);
  transform: none;
}


/* Clean final Tato speech bubble */
.tato-bark-bubble {
  top: 2px;
  left: 118px;
  right: auto;
  min-width: 0;
  padding: 9px 14px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  overflow: visible;
}

/* Remove the old broken pointer */
.tato-bark-bubble::after {
  display: none !important;
}

/* Add one clean pointer */
.tato-bark-bubble::before {
  content: "";
  position: absolute;
  left: -8px;
  bottom: 11px;
  width: 14px;
  height: 14px;
  background: rgba(12, 18, 30, 0.94);
  border-left: 2px solid rgba(255, 255, 255, 0.9);
  border-bottom: 2px solid rgba(255, 255, 255, 0.9);
  transform: rotate(45deg);
}


/* Hero alias beneath name */
.hero-alias {
  margin-top: 10px;
  margin-bottom: 18px;
  color: #5ee7f2;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

@media (max-width: 600px) {
  .hero-alias {
    font-size: 15px;
    margin-top: 8px;
    margin-bottom: 14px;
  }
}



/* Patreon section */
.patreon-section {
  width: min(1180px, calc(100% - 48px));
  margin: 80px auto;
  padding: 1px;
  border-radius: 24px;
  background: linear-gradient(
    135deg,
    rgba(55, 225, 255, 0.55),
    rgba(55, 225, 255, 0.08) 42%,
    rgba(255, 255, 255, 0.08)
  );
}

.patreon-inner {
  position: relative;
  overflow: hidden;
  padding: clamp(42px, 7vw, 84px);
  border-radius: 23px;
  background:
    radial-gradient(
      circle at 85% 15%,
      rgba(55, 225, 255, 0.14),
      transparent 32%
    ),
    #090d12;
}

.patreon-inner::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -120px;
  bottom: -150px;
  border: 1px solid rgba(55, 225, 255, 0.14);
  border-radius: 50%;
  box-shadow:
    0 0 0 36px rgba(55, 225, 255, 0.025),
    0 0 0 72px rgba(55, 225, 255, 0.018);
  pointer-events: none;
}

.patreon-section .section-kicker {
  display: block;
  margin-bottom: 18px;
  color: #37e1ff;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

.patreon-section h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.patreon-section p {
  max-width: 720px;
  margin: 24px 0 32px;
  color: rgba(238, 244, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.75;
}

.patreon-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(55, 225, 255, 0.45);
  border-radius: 999px;
  color: #f4f8ff;
  background: rgba(55, 225, 255, 0.08);
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.patreon-button:hover {
  transform: translateY(-2px);
  background: rgba(55, 225, 255, 0.16);
  border-color: #37e1ff;
  box-shadow: 0 12px 35px rgba(55, 225, 255, 0.14);
}

.patreon-button span {
  color: #37e1ff;
  transition: transform 180ms ease;
}

.patreon-button:hover span {
  transform: translate(2px, -2px);
}

@media (max-width: 700px) {
  .patreon-section {
    width: min(100% - 28px, 1180px);
    margin: 56px auto;
  }

  .patreon-inner {
    padding: 38px 26px;
  }
}
