@font-face {
  font-family: 'Geist Pixel Circle';
  src: url('geist-font/GeistPixel/webfonts/GeistPixel-Circle.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg-color: #F3E5AB;
  --text-color: #000000;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Geist Pixel Circle', monospace;
  color: var(--text-color);
  border-radius: 0;
  transition: color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
  font-family: 'Geist Pixel Circle', monospace;
}

h1.name {
  font-family: 'Geist Pixel Circle', monospace;
  font-weight: 400;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  white-space: nowrap;
}

html {
  overflow: hidden;
  height: 100%;
}

body {
  background-color: var(--bg-color);
  line-height: 1.5;
  height: 100%;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  font-size: 1rem;
  font-weight: 400;
  transition: background-color 0.3s ease;
}

::selection {
  background-color: var(--text-color);
  color: var(--bg-color);
}

header, li, .section-label, footer {
  transition: font-weight 0.1s ease-out, color 0.3s ease;
  will-change: font-weight;
}

#announcement-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  letter-spacing: 0.05em;
  z-index: 1000;
}

#status-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 1rem;
  padding-top: max(0.5rem, env(safe-area-inset-top));
  display: flex;
  justify-content: center;
  align-items: center;
  letter-spacing: 0.05em;
  z-index: 1000;
}

.availability-wrapper {
  display: inline-flex;
  align-items: center;
}

#back-button {
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.85rem;
  text-decoration: none;
  border-bottom: 1px dashed var(--text-color);
}

.text-page-container {
  width: 60%;
  max-width: none;
  align-items: flex-start;
  text-align: left;
}
@media (max-width: 768px) {
  .text-page-container { width: 100%; padding: 0 1rem; }
}

.container {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  height: 100vh;
  justify-content: center;
  margin: 0 auto;
  position: relative;
  z-index: 5;
}

main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

header {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.name {
  display: inline-block;
  margin-bottom: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.1;
}

.bio {
  font-style: normal;
  opacity: 0.8;
}

.role-subtitle {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  opacity: 0.55;
  text-transform: lowercase;
  margin-bottom: 0.5rem;
}

#live-clock {
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  opacity: 0.6;
}

.section-label {
  font-family: 'Geist Pixel Circle', monospace;
  text-transform: capitalize;
  letter-spacing: normal;
  margin-bottom: 0.75rem;
  display: inline-block;
  font-size: 1.6rem;
  font-weight: 400;
}

ul {
  list-style-type: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  text-align: center;
  gap: 0.5rem;
}

a {
  color: var(--text-color);
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px dashed var(--text-color);
  padding: 0;
  padding-bottom: 1px;
  font-family: inherit;
  font-size: inherit;
  display: inline-block;
  opacity: 1;
  transition: all 0.2s ease;
}

a:hover, a.active {
  background-color: var(--text-color);
  color: var(--bg-color);
  border-bottom-style: solid;
  opacity: 0.8;
}

.contact-list {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

.contact-list li {
  margin-bottom: 0;
  font-size: 1.1rem;
}

footer {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  font-size: 0.875rem;
  opacity: 0.8;
}

footer a, h1 {
  text-transform: capitalize;
}

footer a:hover,
footer a.active {
  background-color: transparent;
  color: var(--text-color);
  border-bottom-style: solid;
}

:focus-visible {
  outline: 2px dashed var(--text-color);
  outline-offset: 4px;
}

@media (max-width: 480px) {
  .container { gap: 1.5rem; }
  main { gap: 1.5rem; }
  .contact-list li { margin-bottom: 0; }
  .section-label { margin-bottom: 0.5rem; }
}

/* SPA Animations */
@keyframes slide-out-left {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-30vw); opacity: 0; }
}
@keyframes slide-in-right {
  from { transform: translateX(30vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes slide-out-right {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(30vw); opacity: 0; }
}
@keyframes slide-in-left {
  from { transform: translateX(-30vw); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes unblur-in {
  0% { filter: blur(15px); opacity: 0; }
  100% { filter: blur(0); opacity: 1; }
}
@keyframes blur-out {
  0% { filter: blur(0); opacity: 1; }
  100% { filter: blur(15px); opacity: 0; }
}

html.is-juggling .container {
  opacity: 0;
}
html.is-juggling, html.is-juggling * {
  cursor: wait !important;
}

/* Hide text and UI elements initially on first load */
html.initial-load .container header > *,
html.initial-load .container main .section-label,
html.initial-load .container main li,
html.initial-load .container main > *:not(section) {
  opacity: 0;
  filter: blur(16px) brightness(1.2);
  transform: scale(0.98);
}

html.initial-load #status-bar,
html.initial-load footer a,
html.initial-load .marquee-container {
  opacity: 0;
  filter: blur(14px);
}

html.initial-load #status-bar,
html.initial-load footer a {
  transform: translateY(28px);
}

/* Home page reveal */
html.initial-load.reveal-text .container header > *:nth-child(1) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.15s;
}

html.initial-load.reveal-text .container header > *:nth-child(2) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}

html.initial-load.reveal-text .container header > *:nth-child(3),
html.initial-load.reveal-text .container header > *:nth-child(n+4) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.50s;
}

html.initial-load.reveal-text .container main section:nth-child(1) .section-label {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.65s;
}

html.initial-load.reveal-text .container main section:nth-child(1) li:nth-child(1) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.85s;
}

html.initial-load.reveal-text .container main section:nth-child(1) li:nth-child(2) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.05s;
}

html.initial-load.reveal-text .container main section:nth-child(1) li:nth-child(3),
html.initial-load.reveal-text .container main section:nth-child(1) li:nth-child(n+4) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.25s;
}

html.initial-load.reveal-text .container main section:nth-child(2) .section-label {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.45s;
}

html.initial-load.reveal-text .container main section:nth-child(2) li:nth-child(1) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.65s;
}

html.initial-load.reveal-text .container main section:nth-child(2) li:nth-child(n+2) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.80s;
}

html.initial-load.reveal-text .container main > *:not(section) {
  animation: bloom-reveal 1.1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.55s;
}

html.initial-load.reveal-text .marquee-container {
  animation: text-reveal 1.3s cubic-bezier(0.16, 1, 0.3, 1) forwards 1.95s;
}

html.initial-load.reveal-text footer a:nth-child(1) {
  animation: slide-up-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.15s;
}

html.initial-load.reveal-text footer a:nth-child(2) {
  animation: slide-up-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.30s;
}

html.initial-load.reveal-text footer a:nth-child(3) {
  animation: slide-up-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.45s;
}

html.initial-load.reveal-text footer a:nth-child(4),
html.initial-load.reveal-text footer a:nth-child(n+5) {
  animation: slide-up-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.60s;
}

html.initial-load.reveal-text #status-bar {
  animation: slide-up-reveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards 2.75s;
}

@keyframes bloom-reveal {
  0%   { opacity: 0; filter: blur(16px) brightness(1.2); transform: scale(0.98); }
  100% { opacity: 1; filter: blur(0px) brightness(1); transform: scale(1); }
}

@keyframes slide-up-reveal {
  0% { opacity: 0; filter: blur(14px); transform: translateY(28px); }
  100% { opacity: 1; filter: blur(0px); transform: translateY(0); }
}

@keyframes text-reveal {
  0% { opacity: 0; filter: blur(14px); }
  100% { opacity: 1; filter: blur(0px); }
}

.enter-fish-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 34vh;
  width: auto;
  aspect-ratio: 965 / 1273;
  background-color: #F3E5AB;
  mask-image: url('fish.svg');
  -webkit-mask-image: url('fish.svg');
  mask-size: contain;
  -webkit-mask-size: contain;
  mask-position: center;
  -webkit-mask-position: center;
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 768px) {
  .enter-fish-bg {
    width: 85vw;
    height: auto;
    aspect-ratio: 965 / 1273;
  }
}

/* Mouse Trail Squares */
.mouse-trail-square {
    position: fixed;
    width: 8px;
    height: 8px;
    background-color: var(--text-color);
    pointer-events: none;
    z-index: 2147483647;
    transform: translate(-50%, -50%);
    animation: trail-fade 0.3s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}

@keyframes trail-fade {
    0% { opacity: 1; transform: translate(-50%, -50%); }
    100% { opacity: 0; transform: translate(-50%, -50%); }
}

/* Hide default cursor everywhere */
* {
    cursor: none !important;
}

/* Marquee Styles */
.marquee-container {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 550px;
  padding: 0.75rem 0;
  overflow: hidden;
  display: flex;
  color: var(--text-color);
  font-family: 'Geist Pixel Circle', monospace;
  font-size: 0.9rem;
  letter-spacing: -0.02em;
  mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
  z-index: 1001;
}

@media (max-width: 768px) {
  .marquee-container {
    max-width: 100%;
  }
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 35s linear infinite;
}

.marquee-content span {
  display: flex;
  align-items: center;
  font-family: 'Geist Pixel Circle', monospace;
}

.marquee-content span b {
  margin: 0 1rem;
  font-size: 1.2rem;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
