:root {
  --bg: #0c0c0e;
  --bg-2: #141418;
  --line: #26262d;
  --text: #ededf0;
  --muted: #8b8b96;
  --accent: #d4ff3a;
  --accent-ink: #0c0c0e;
  --pink: #ff5fa2;
  --radius: 14px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
/* ---------- creative background ---------- */
/* 1. drifting aurora blobs */
.aurora { position: fixed; inset: 0; z-index: -3; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 55vmax; height: 55vmax; border-radius: 50%;
  filter: blur(90px); opacity: .22; mix-blend-mode: screen;
  animation: drift 26s ease-in-out infinite alternate;
}
.aurora i:nth-child(1) { background: #d4ff3a; top: -20vmax; left: -15vmax; }
.aurora i:nth-child(2) { background: #ff5fa2; bottom: -25vmax; right: -15vmax; animation-duration: 32s; animation-delay: -8s; }
.aurora i:nth-child(3) { background: #5fd4ff; top: 30%; left: 40%; width: 40vmax; height: 40vmax; opacity: .14; animation-duration: 38s; animation-delay: -15s; }
.aurora i:nth-child(4) { background: #9b5fff; top: 60%; left: -10vmax; width: 35vmax; height: 35vmax; opacity: .16; animation-duration: 29s; animation-delay: -4s; }
@keyframes drift {
  0%   { transform: translate(0, 0) scale(1) rotate(0deg); }
  33%  { transform: translate(12vw, 8vh) scale(1.15) rotate(40deg); }
  66%  { transform: translate(-8vw, 14vh) scale(.9) rotate(-30deg); }
  100% { transform: translate(6vw, -10vh) scale(1.08) rotate(20deg); }
}
/* 2. particle constellation canvas */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }
/* 3. grid that only appears around the cursor */
.spotlight-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(#ffffff14 1px, transparent 1px),
    linear-gradient(90deg, #ffffff14 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 30%), #000 0%, transparent 100%);
          mask-image: radial-gradient(circle 260px at var(--mx, 50%) var(--my, 30%), #000 0%, transparent 100%);
}
/* floating "hi" words spawned on click */
.hi-word {
  position: fixed; z-index: 5; pointer-events: none; font-weight: 700;
  transform: translate(-50%, -50%); white-space: nowrap;
  animation: hiFloat 1.8s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes hiFloat {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.4); }
  15%  { opacity: 1; transform: translate(calc(-50% + var(--dx) * .2), calc(-50% - 20px)) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% - 140px)) scale(.9) rotate(var(--rot)); }
}
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

.mono { font-family: var(--mono); }
.small { font-size: .82rem; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }

/* progress */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1rem clamp(1rem, 5vw, 4rem);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--mono); font-weight: 600; text-decoration: none; letter-spacing: .05em; }
.blink { animation: blink 1s steps(1) infinite; color: var(--accent); }
@keyframes blink { 50% { opacity: 0; } }
.nav nav { display: flex; gap: clamp(.6rem, 2vw, 1.6rem); align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a { text-decoration: none; color: var(--muted); font-size: .95rem; transition: color .2s; }
.nav nav a:hover { color: var(--text); }
.nav nav a.nav-cta { color: var(--accent-ink); background: var(--accent); padding: .35rem .9rem; border-radius: 999px; font-weight: 700; animation: nudge 4s ease-in-out infinite; }
@keyframes nudge { 0%, 90%, 100% { transform: rotate(0); } 93% { transform: rotate(-6deg); } 96% { transform: rotate(6deg); } }

/* layout */
main, .footer { padding-inline: clamp(1rem, 5vw, 4rem); max-width: 1200px; margin: 0 auto; }
.section { padding-block: clamp(4rem, 10vw, 7rem); border-top: 1px solid var(--line); }
.section-title { font-size: clamp(1.8rem, 4vw, 2.8rem); margin: 0 0 2rem; line-height: 1.1; }
.num { color: var(--accent); font-size: .5em; vertical-align: middle; margin-right: .5rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin-top: -1rem; }

/* hero */
.hero { min-height: calc(100vh - 70px); display: flex; flex-direction: column; justify-content: center; padding-block: 3rem; }
.status {
  display: inline-flex; align-items: center; gap: .6rem; align-self: flex-start;
  border: 1px solid var(--line); background: var(--bg-2); border-radius: 999px;
  padding: .35rem .9rem; font-size: .85rem; color: var(--muted); margin: 0 0 2rem;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 #3ddc8488; animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px #3ddc8400; } 100% { box-shadow: 0 0 0 0 #3ddc8400; } }
.hello { color: var(--accent); margin: 0 0 .5rem; }
.name {
  font-size: clamp(2.6rem, 9vw, 7.5rem);
  line-height: .95; letter-spacing: -.03em; margin: 0; font-weight: 700;
  display: flex; flex-wrap: wrap; column-gap: .25em;
}
.name span { display: inline-block; opacity: 0; transform: translateY(40px); animation: rise .8s cubic-bezier(.2,.8,.2,1) forwards; }
.name span:nth-child(2) { animation-delay: .1s; }
.name span:nth-child(3) { animation-delay: .2s; }
.name span:nth-child(4) { animation-delay: .3s; }
.name span:hover { color: var(--accent); transition: color .2s; }
.name .accent:hover { color: var(--pink); }
.period { display: inline !important; opacity: 1 !important; transform: none !important; animation: none !important; color: var(--pink); }
@keyframes rise { to { opacity: 1; transform: none; } }
.tagline { font-size: clamp(1.2rem, 2.6vw, 1.8rem); color: var(--muted); margin: 1.5rem 0 2.2rem; min-height: 1.6em; }
.rotator { color: var(--text); border-right: 2px solid var(--accent); padding-right: 4px; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hint { color: var(--muted); font-size: .8rem; margin-top: 3rem; }

/* buttons */
.btn {
  font: inherit; font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .85rem 1.5rem; border-radius: 999px; cursor: pointer;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.96); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 -2px var(--pink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* about */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.about-text p:first-child { margin-top: 0; }
.terminal { background: #07070a; border: 1px solid var(--line); border-radius: var(--radius); font-family: var(--mono); font-size: .85rem; overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: .4rem; padding: .6rem .9rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .75rem; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: .6rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.term-body { padding: 1rem; height: 220px; overflow-y: auto; }
.term-body p { margin: 0 0 .35rem; white-space: pre-wrap; word-break: break-word; }
.term-body .cmd { color: var(--accent); }
.term-input { display: flex; gap: .6rem; padding: .7rem 1rem; border-top: 1px solid var(--line); }
.prompt { color: var(--accent); }
.term-input input { flex: 1; min-width: 0; background: none; border: 0; color: var(--text); font: inherit; outline: none; }

/* projects */
.projects { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem; }
.project {
  position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; display: flex; flex-direction: column; gap: .8rem; min-height: 240px;
  transition: transform .25s, border-color .25s;
  transform-style: preserve-3d;
}
.project:hover { border-color: var(--accent); }
.project h3 { margin: 0; font-size: 1.35rem; }
.project p { margin: 0; color: var(--muted); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags span { font-family: var(--mono); font-size: .72rem; border: 1px solid var(--line); border-radius: 999px; padding: .15rem .6rem; color: var(--muted); }
.project-links { display: flex; gap: 1rem; flex-wrap: wrap; font-size: .9rem; }
.project-links a { text-decoration: none; border-bottom: 1px solid var(--line); }
.project-links a:hover { border-color: var(--accent); color: var(--accent); }
.project .ask { color: var(--pink); }
.project.placeholder { border-style: dashed; }

/* reasons */
.reasons { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; margin-top: 2.5rem; }
.reason {
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem; transition: transform .2s, border-color .2s, background .2s;
}
.reason:hover { transform: translateY(-4px) rotate(-.6deg); border-color: var(--accent); }
.reason.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.reason .emoji { font-size: 1.8rem; display: block; margin-bottom: .4rem; }
.reason strong { display: block; font-size: 1.05rem; }
.reason small { color: var(--muted); }
.reason.active small { color: #0c0c0eaa; }

/* contact */
.dilemma { text-align: center; margin-bottom: 3rem; }
.big-q { font-size: clamp(1.4rem, 3.5vw, 2.2rem); font-weight: 700; margin: 0 0 1.5rem; }
.dilemma-arena {
  position: relative; height: 200px; max-width: 620px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; gap: 1.2rem;
  border: 1.5px dashed var(--line); border-radius: 20px;
  background: radial-gradient(circle at center, #d4ff3a0d, transparent 70%);
}
#yesBtn { position: relative; z-index: 1; transition: transform .3s cubic-bezier(.2,1.6,.4,1); }
#noBtn { transition: left .25s cubic-bezier(.3,1.4,.5,1), top .25s cubic-bezier(.3,1.4,.5,1); white-space: nowrap; }
#noBtn.loose { position: absolute; }
#noBtn.fall { animation: fall .7s cubic-bezier(.5,0,.9,.4) forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(180px) rotate(70deg); opacity: 0; } }
.stamina { max-width: 260px; margin: 1rem auto 0; display: flex; flex-direction: column; gap: .35rem; }
.stamina-bar { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.stamina-bar i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--pink), var(--accent)); transition: width .4s ease; }
#noCounter { min-height: 1.4em; margin: .6rem 0 0; }
.dilemma-win {
  max-width: 620px; margin: 0 auto; padding: 2rem 1.5rem; border-radius: 20px;
  border: 1.5px solid var(--accent); background: radial-gradient(circle at 50% 0%, #d4ff3a1f, var(--bg-2) 70%);
  animation: pop .45s cubic-bezier(.2,1.6,.4,1);
}
.win-flag { font-size: 3rem; display: inline-block; animation: wave 1.6s ease-in-out infinite; transform-origin: bottom left; }
@keyframes wave { 50% { transform: rotate(-12deg); } }
.win-title { font-size: clamp(1.2rem, 3vw, 1.6rem); font-weight: 700; margin: .5rem 0 .2rem; }
.dilemma-win .muted { margin: 0 0 1.4rem; }
.btn-big { font-size: 1.15rem; padding: 1rem 2rem; }
.phones-wrap {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.2rem, 4vw, 2.5rem); scroll-margin-top: 100px;
}
.phones-wrap .phone { background: var(--bg); }
.phones-wrap.flash { animation: flash 1s; }
.wa-preview { margin-top: 1.5rem; padding-top: 1.2rem; border-top: 1px dashed var(--line); }
.wa-preview p { margin: .4rem 0; font-size: 1.05rem; white-space: pre-wrap; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--accent); }
.phones-wrap > p { margin: 0 0 1rem; }
.phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.phone {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.3rem; transition: border-color .2s, transform .2s;
}
.phone:hover { border-color: var(--accent); transform: translateY(-3px); }
.phone .flag { font-size: 2rem; line-height: 1; }
.phone .info { flex: 1; min-width: 150px; }
.phone .info small { display: block; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.phone .info strong { font-size: 1.15rem; letter-spacing: .02em; }
.phone .actions { display: flex; gap: .5rem; }
.phone .btn { padding: .5rem .9rem; font-size: .85rem; }
.btn-wa { background: #25d366; color: #06230f; }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 6px 0 -2px #ffffff55; }
@keyframes flash { 30% { border-color: var(--accent); box-shadow: 0 0 0 6px #d4ff3a33; } }

/* footer */
.footer { text-align: center; padding-block: 6rem 3rem; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.footer-big { font-size: clamp(1.5rem, 4vw, 2.6rem); font-weight: 700; line-height: 1.2; margin: 0; }
.socials { display: flex; gap: 1.2rem; flex-wrap: wrap; justify-content: center; }
.socials a { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: .9rem; }
.socials a:hover { color: var(--accent); }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 1rem; background: #000a; backdrop-filter: blur(4px); animation: fade .2s; }
.modal-card { position: relative; width: min(440px, 100%); background: var(--bg-2); border: 1px solid var(--line); border-radius: 20px; padding: 2rem; text-align: center; animation: pop .35s cubic-bezier(.2,1.6,.4,1); }
.modal-card h3 { margin: .5rem 0; font-size: 1.5rem; }
.modal-card p { color: var(--muted); margin: 0 0 1.5rem; }
.modal-emoji { font-size: 3rem; }
.modal-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.modal-x { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; color: var(--muted); font-size: 1.6rem; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: scale(.85); opacity: 0; } }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 6rem; transform: translateX(-50%); z-index: 90;
  background: var(--text); color: var(--bg); padding: .8rem 1.2rem; border-radius: 12px;
  font-weight: 500; max-width: calc(100% - 2rem); box-shadow: 0 10px 30px #0008; cursor: pointer;
  animation: toastIn .4s cubic-bezier(.2,1.4,.4,1);
}
@keyframes toastIn { from { transform: translate(-50%, 120%); } }

#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; width: 100%; height: 100%; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- image slider ---------- */
.slider {
  --slide-time: 6s;
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(480px, 78vh, 720px); margin-block: 1rem 0;
  border-radius: 24px; border: 1px solid var(--line); background: var(--bg-2);
  touch-action: pan-y; user-select: none;
}
.slider:focus-visible { outline-offset: 4px; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility 0s linear .9s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .9s ease; z-index: 1; }
.slide img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--pos, center);
  transform: scale(1.12); transition: transform 7s ease-out;
}
.slide.is-active img { transform: scale(1); } /* slow "Ken Burns" zoom-out */
.slide::after { /* dark fade on the left so the text is always readable */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgba(12,12,14,.94) 0%, rgba(12,12,14,.78) 32%, rgba(12,12,14,.25) 62%, transparent 85%),
    linear-gradient(0deg, rgba(12,12,14,.6) 0%, transparent 35%);
}
.slide-text {
  position: absolute; z-index: 2; left: 0; top: 50%; transform: translateY(-50%);
  width: min(560px, 100%); padding: 0 clamp(1.4rem, 5vw, 4rem);
}
.slide-kicker { display: inline-block; color: var(--accent); font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.slide-text h2 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); line-height: 1.05; letter-spacing: -.02em; margin: 0 0 1rem; }
.slide-text h2 em { font-style: normal; color: var(--accent); }
.slide-text p { color: #cfcfd6; font-size: clamp(1rem, 1.6vw, 1.15rem); margin: 0 0 1.6rem; max-width: 44ch; }
/* text slides up, one line after another, when its slide becomes active */
.slide-text > * { opacity: 0; transform: translateY(24px); }
.slide.is-active .slide-text > * { animation: slideUp .7s cubic-bezier(.2,.8,.2,1) forwards; }
.slide.is-active .slide-text > :nth-child(2) { animation-delay: .12s; }
.slide.is-active .slide-text > :nth-child(3) { animation-delay: .24s; }
.slide.is-active .slide-text > :nth-child(4) { animation-delay: .36s; }
@keyframes slideUp { to { opacity: 1; transform: none; } }

.slider-arrow {
  position: absolute; z-index: 3; bottom: 1.5rem; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem; line-height: 1; padding-bottom: 3px; cursor: pointer;
  color: var(--text); background: #0c0c0e99; border: 1px solid #ffffff33; backdrop-filter: blur(6px);
  transition: background .2s, color .2s, border-color .2s;
}
.slider-arrow:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.slider-arrow.prev { right: calc(1.5rem + 56px); }
.slider-arrow.next { right: 1.5rem; }
.slider-dots { position: absolute; z-index: 3; left: clamp(1.4rem, 5vw, 4rem); bottom: 2.1rem; display: flex; gap: .5rem; }
.slider-dots button { width: 44px; height: 24px; padding: 0; background: none; border: 0; cursor: pointer; display: flex; align-items: center; }
.slider-dots i { position: relative; display: block; width: 100%; height: 4px; border-radius: 99px; background: #ffffff40; overflow: hidden; }
.slider-dots i::after { content: ""; position: absolute; inset: 0; width: 0; background: var(--accent); }
.slider-dots [aria-selected="true"] i::after { animation: dotFill var(--slide-time) linear forwards; }
.slider.paused .slider-dots i::after { animation-play-state: paused; }
@keyframes dotFill { to { width: 100%; } }

@media (max-width: 760px) {
  .slider { height: clamp(520px, 82vh, 640px); border-radius: 18px; }
  /* on phones the text sits at the bottom with a stronger fade behind it */
  .slide::after { background: linear-gradient(0deg, rgba(12,12,14,.96) 0%, rgba(12,12,14,.85) 45%, rgba(12,12,14,.2) 75%, transparent 100%); }
  .slide-text { top: auto; bottom: 4.5rem; transform: none; }
  .slide-text p { margin-bottom: 1.2rem; }
  .slider-arrow { display: none; }
  .slider-dots { left: 50%; transform: translateX(-50%); bottom: 1.4rem; }
}

/* ---------- image banners (section headers with a photo behind them) ---------- */
.banner {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; min-height: clamp(260px, 36vw, 380px);
  border-radius: 24px; border: 1px solid var(--line); margin-bottom: 2.5rem; background: var(--bg-2);
}
.banner img {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--pos, center); transition: transform 1.2s ease;
}
.banner:hover img { transform: scale(1.04); }
.banner::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,12,14,.92) 0%, rgba(12,12,14,.72) 40%, rgba(12,12,14,.1) 75%, transparent 100%);
}
.banner-text { padding: clamp(1.4rem, 5vw, 3.5rem); max-width: 640px; }
.banner .section-title { margin-bottom: 1rem; }
.banner .lead { margin: 0; color: #cfcfd6; }
.banner + .reasons { margin-top: 0; }

/* ---------- beyond the code: collage as a taped-on instant photo ---------- */
.beyond { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.beyond .section-title em { font-style: normal; color: var(--accent); }
.beyond-text p { color: var(--muted); max-width: 46ch; }
.beyond-text .btn { margin-top: .8rem; }
.beyond-photo {
  position: relative; margin: 1rem 0 0; padding: .8rem .8rem 2.8rem;
  background: #f4f1ea; border-radius: 6px; box-shadow: 0 30px 60px #000a;
  transform: rotate(2.5deg); transition: transform .5s cubic-bezier(.2,1.4,.4,1);
}
.beyond-photo:hover { transform: rotate(0deg) scale(1.02); }
.beyond-photo::before { /* a strip of lime tape holding the photo */
  content: ""; position: absolute; z-index: 1; top: -14px; left: 50%; width: 120px; height: 30px;
  background: #d4ff3acc; transform: translateX(-50%) rotate(-4deg); box-shadow: 0 2px 6px #0004;
}
.beyond-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.beyond-photo figcaption { position: absolute; left: 0; right: 0; bottom: .8rem; text-align: center; color: #3a3a3a; font-size: .9rem; }

/* ---------- project card photos ---------- */
.project { overflow: hidden; }
.project-img { margin: -1.5rem -1.5rem .3rem; height: 170px; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.project:hover .project-img img { transform: scale(1.06); }

/* ---------- footer: hiker on the summit ---------- */
.footer {
  max-width: none; position: relative; min-height: clamp(520px, 85vh, 760px); justify-content: center; border-top: 0;
  background:
    linear-gradient(180deg, var(--bg) 0%, rgba(12,12,14,.3) 28%, rgba(12,12,14,.5) 70%, rgba(12,12,14,.92) 100%),
    url("../images/web/lone-hiker-above-golden-mountain-valleys-4.jpg") 70% 40% / cover no-repeat;
}
.footer-big { text-shadow: 0 2px 24px #000c; }
.footer .muted, .socials a { color: #c9c9d1; }

@media (max-width: 760px) {
  .banner { align-items: flex-end; min-height: 340px; }
  .banner::after { background: linear-gradient(0deg, rgba(12,12,14,.95) 0%, rgba(12,12,14,.75) 50%, rgba(12,12,14,.15) 100%); }
  .beyond { grid-template-columns: 1fr; }
  .beyond-photo { transform: rotate(1.5deg); margin-top: 2rem; }
  .footer {
    background:
      linear-gradient(180deg, var(--bg) 0%, rgba(12,12,14,.4) 30%, rgba(12,12,14,.6) 70%, rgba(12,12,14,.92) 100%),
      url("../images/web/lone-hiker-above-golden-mountain-valleys-4-sm.jpg") 72% 40% / cover no-repeat;
  }
}

/* ---------- crossed tapes ---------- */
.tapes { position: relative; height: 170px; width: 100vw; margin-left: calc(50% - 50vw); overflow: hidden; display: grid; place-items: center; }
.tape { position: absolute; width: 120%; left: -10%; padding: .8rem 0; overflow: hidden; white-space: nowrap; font-weight: 700; font-size: clamp(1rem, 2.4vw, 1.5rem); text-transform: uppercase; letter-spacing: .04em; }
.tape-a { background: var(--accent); color: var(--accent-ink); transform: rotate(-4deg); z-index: 1; }
.tape-b { background: var(--pink); color: #1a0010; transform: rotate(3deg); }
.tape-track { display: inline-flex; animation: tape 28s linear infinite; }
.tape-b .tape-track { animation-direction: reverse; animation-duration: 34s; }
.tape-track span { padding-inline: 1.2rem; }
.tape:hover .tape-track { animation-play-state: paused; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------- clocks + scratch card ---------- */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.clock-card, .scratch-card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; }
.clock-card > p { margin: 0 0 .8rem; }
.clocks { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.clock small { display: block; color: var(--muted); font-family: var(--mono); font-size: .75rem; }
.clock strong { font-family: var(--mono); font-size: clamp(1.6rem, 4vw, 2.2rem); letter-spacing: -.02em; }
.clock .colon { animation: blink 1s steps(1) infinite; }
.clock-verdict { margin: 1rem 0 0; font-weight: 500; }
.scratch-card { position: relative; min-height: 220px; overflow: hidden; padding: 0; }
.scratch-prize { position: absolute; inset: 0; padding: 1.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .4rem;
  background: radial-gradient(circle at 30% 20%, #d4ff3a22, transparent 60%), radial-gradient(circle at 80% 90%, #ff5fa222, transparent 60%); }
.scratch-prize p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }
.prize-emoji { font-size: 2.2rem; }
#scratchCanvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; transition: opacity .6s; }
#scratchCanvas.done { opacity: 0; pointer-events: none; }

/* ---------- chat buddy ---------- */
.chat { position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); z-index: 80; display: flex; flex-direction: column; align-items: flex-end; gap: .8rem; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: linear-gradient(135deg, var(--accent), var(--pink)); color: var(--accent-ink); flex: none; }
.chat-bubble { position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; background: var(--bg-2); box-shadow: 0 10px 30px #0009, 0 0 0 2px var(--accent); display: grid; place-items: center; transition: transform .2s; }
.chat-bubble:hover { transform: scale(1.08) rotate(-6deg); }
.chat-bubble .avatar { width: 48px; height: 48px; font-size: 1.2rem; }
.chat-bubble.wiggle { animation: wiggle .8s; }
@keyframes wiggle { 20% { transform: rotate(-14deg); } 40% { transform: rotate(12deg); } 60% { transform: rotate(-8deg); } 80% { transform: rotate(4deg); } }
.chat-launcher { display: flex; align-items: center; gap: .7rem; }
.chat-callout {
  position: relative; font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap;
  background: var(--text); color: var(--bg); border: 0; border-radius: 14px; padding: .6rem .9rem;
  box-shadow: 0 10px 25px #0008; transform-origin: right center;
  animation: calloutIn .45s cubic-bezier(.2,1.6,.4,1), calloutBob 2.4s ease-in-out .45s infinite;
}
.chat-callout::after { /* little tail pointing at the bubble */
  content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px;
  background: var(--text); transform: translateY(-50%) rotate(45deg); border-radius: 2px;
}
@keyframes calloutIn { from { opacity: 0; transform: scale(.5) translateX(20px); } }
@keyframes calloutBob { 50% { transform: translateX(-5px); } }
.badge { position: absolute; top: -2px; right: -2px; background: var(--pink); color: #fff; font-size: .72rem; font-weight: 700; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; }
.chat-panel { width: min(330px, calc(100vw - 2rem)); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 20px 50px #000b; overflow: hidden; animation: pop .3s cubic-bezier(.2,1.6,.4,1); transform-origin: bottom right; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); }
.chat-head strong { display: block; line-height: 1.2; }
.chat-head small { color: var(--muted); font-size: .75rem; display: flex; align-items: center; gap: .35rem; }
.chat-head .dot { width: 7px; height: 7px; }
.chat-x { margin-left: auto; background: none; border: 0; color: var(--muted); font-size: 1.4rem; cursor: pointer; line-height: 1; }
.chat-body { padding: 1rem; display: flex; flex-direction: column; gap: .5rem; max-height: 260px; overflow-y: auto; }
.msg { align-self: flex-start; max-width: 85%; background: var(--bg); border: 1px solid var(--line); padding: .55rem .85rem; border-radius: 14px 14px 14px 4px; font-size: .92rem; animation: msgIn .3s ease-out; }
.msg.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-color: var(--accent); border-radius: 14px 14px 4px 14px; }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.typing { display: inline-flex; gap: 4px; padding: .7rem .9rem; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 30% { transform: translateY(-5px); background: var(--accent); } }
.chat-replies { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem 1rem; }
.chip { font: inherit; font-size: .82rem; cursor: pointer; background: transparent; color: var(--text); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--accent); background: #d4ff3a14; }

/* ---------- right-click menu ---------- */
.ctx { position: fixed; z-index: 150; min-width: 230px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: .4rem; box-shadow: 0 20px 40px #000c; animation: pop .15s ease-out; transform-origin: top left; }
.ctx .ctx-title { font-family: var(--mono); font-size: .7rem; color: var(--muted); padding: .4rem .7rem .3rem; }
.ctx button { display: block; width: 100%; text-align: left; font: inherit; font-size: .9rem; color: var(--text); background: none; border: 0; padding: .5rem .7rem; border-radius: 8px; cursor: pointer; }
.ctx button:hover, .ctx button:focus-visible { background: var(--accent); color: var(--accent-ink); outline: none; }
.ctx hr { border: 0; border-top: 1px solid var(--line); margin: .3rem 0; }

/* ---------- custom cursor (fine pointers only, enabled by JS) ---------- */
.cursor-dot, .cursor-ring { position: fixed; top: 0; left: 0; pointer-events: none; z-index: 200; display: none; }
.has-cursor .cursor-dot { display: block; }
.has-cursor .cursor-ring { display: grid; }
.has-cursor, .has-cursor a, .has-cursor button, .has-cursor .reason { cursor: none; }
.has-cursor input, .has-cursor textarea { cursor: text; }
.has-cursor #scratchCanvas { cursor: none; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--accent); }
.cursor-ring {
  width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%;
  border: 1.5px solid #d4ff3a99; display: grid; place-items: center;
  transition: width .25s, height .25s, margin .25s, background .25s, border-color .25s;
}
.cursor-ring span { font-size: .7rem; font-weight: 700; line-height: 1; text-align: center; color: var(--accent-ink); opacity: 0; transition: opacity .2s; white-space: nowrap; }
.cursor-ring.hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #d4ff3a22; border-color: var(--accent); }
.cursor-ring.label { width: 68px; height: 68px; margin: -34px 0 0 -34px; background: var(--accent); box-shadow: 0 0 0 4px #d4ff3a33; }
.cursor-ring.label span { opacity: 1; }

/* keep each name word on one line while it scrambles */
.name > span { white-space: nowrap; }

@media (max-width: 760px) {
  .extras { grid-template-columns: 1fr; }
  .tapes { height: 130px; }
  .about-grid { grid-template-columns: 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
