/* ============================================================
   freethebikes — personal site
   Dark, clean, animated. Plain CSS, no frameworks.
   ============================================================ */

:root {
  --bg: #0a0e14;
  --bg-alt: #0e131c;
  --surface: #131a26;
  --surface-2: #1a2333;
  --border: #232e42;
  --text: #e6ecf5;
  --text-dim: #93a1b8;
  --accent: #f97316;
  --accent-2: #94a3b8;
  --gradient: linear-gradient(135deg, #f97316, #fb923c);
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", monospace;
  --nav-h: 64px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: rgba(249, 115, 22, 0.3); }

/* subtle background grid over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(147, 161, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(147, 161, 184, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

main, .hero, .footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }

.mono { font-family: var(--font-mono); font-size: 0.9em; }

.gradient-text {
  color: var(--accent);
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 5vw, 56px);
  z-index: 100;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(10, 14, 20, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
}

.nav__logo {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav__prompt { color: var(--accent); }

.nav__cursor {
  color: var(--accent);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.nav__links { display: flex; gap: 6px; }

.nav__links a {
  position: relative;
  color: var(--text-dim);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav__links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__links a.active { color: var(--accent); }

.nav__beer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 6px;
  padding: 7px 14px !important;
  border-radius: 8px;
  border: 1px solid #16a34a;
  color: #4ade80 !important;
  font-size: 0.88rem !important;
  background: rgba(22, 163, 74, 0.08);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.nav__beer:hover {
  background: rgba(22, 163, 74, 0.18) !important;
  border-color: #4ade80;
  transform: translateY(-1px);
}

.nav__beer .beer-icon { animation: beer-sway 2s ease-in-out infinite; }

.nav__links a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}

.nav__links a.active::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav__toggle span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--nav-h) + 40px) clamp(20px, 5vw, 56px) 96px;
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  /* fade the network toward the edges so it stays ambient */
  -webkit-mask-image: radial-gradient(120% 90% at 40% 45%, #000 55%, transparent 100%);
  mask-image: radial-gradient(120% 90% at 40% 45%, #000 55%, transparent 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__intro { max-width: 560px; }

.hero__kicker {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: clamp(0.8rem, 1.6vw, 0.95rem);
  margin-bottom: 18px;
  letter-spacing: 0.04em;
}

.hero__title {
  font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  margin-bottom: 34px;
}

.hero__rotate {
  display: inline-block;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero__rotate.is-swapping {
  opacity: 0;
  transform: translateY(8px);
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, border-color 0.25s;
}

.btn--primary {
  background: var(--accent);
  color: #0a0e14;
  box-shadow: 0 4px 20px rgba(249, 115, 22, 0.2);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249, 115, 22, 0.35);
}

.btn--ghost {
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: rgba(34, 211, 238, 0.06);
}

.btn--big {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  padding: 16px 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 2px solid var(--text-dim);
  border-radius: 14px;
  opacity: 0.6;
  transition: opacity 0.25s, border-color 0.25s;
}

.hero__scroll:hover { opacity: 1; border-color: var(--accent); }

.hero__scroll-dot {
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-dot 1.8s ease-in-out infinite;
}

@keyframes scroll-dot {
  0%   { transform: translateY(0); opacity: 1; }
  70%  { transform: translateY(14px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============ HERO CAROUSEL ============ */
.carousel {
  position: relative;
  width: 100%;
  outline: none;
}

.carousel__viewport {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.cslide {
  position: absolute;
  inset: 0;
  display: block;
  color: var(--text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease-out);
}

.cslide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.cslide__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

/* slow ken-burns drift while the slide is showing */
.cslide.is-active .cslide__img { animation: ken-burns 8s ease-out forwards; }

/* banner slide: a self-contained designed graphic, shown whole */
.cslide--banner { background: #081222; }
.cslide--banner .cslide__img { object-fit: contain; transform: none; animation: none; }

@keyframes ken-burns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.14); }
}

.cslide__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 8, 12, 0) 28%,
    rgba(5, 8, 12, 0.5) 60%,
    rgba(5, 8, 12, 0.93) 100%
  );
}

.cslide__badge {
  position: absolute;
  top: 16px; right: 16px;
  z-index: 2;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
  min-width: 46px; height: 46px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent);
}

.cslide__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: block;
  padding: clamp(18px, 3.2vw, 30px);
}

.cslide__kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.cslide__title {
  display: block;
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.cslide__desc {
  display: block;
  color: var(--text-dim);
  font-size: 0.92rem;
  margin-top: 6px;
}

.cslide__cta {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  transition: transform 0.25s var(--ease-out);
}

.cslide:hover .cslide__cta { transform: translateX(4px); }

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 3px;
  font-size: 1.6rem;
  color: var(--text);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 20, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s, background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
}

.carousel:hover .carousel__arrow,
.carousel:focus-within .carousel__arrow { opacity: 1; }

.carousel__arrow:hover {
  background: rgba(249, 115, 22, 0.16);
  border-color: var(--accent);
}

.carousel__arrow--prev { left: 12px; }
.carousel__arrow--next { right: 12px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.carousel__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--border);
  cursor: pointer;
  transition: background 0.25s, width 0.3s var(--ease-out);
}

.carousel__dot:hover { background: var(--accent-2); }

.carousel__dot.is-active {
  width: 24px;
  background: var(--accent);
}

/* touch devices have no hover — keep the controls reachable */
@media (hover: none) {
  .carousel__arrow { opacity: 0.85; }
}

/* ============ SECTIONS ============ */
.section { padding: clamp(80px, 12vw, 140px) clamp(20px, 5vw, 56px); }

.section--alt { background: var(--bg-alt); }

.section__inner { max-width: 1100px; margin: 0 auto; }

.section__inner--narrow { max-width: 700px; text-align: center; }

.section__title {
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.section__inner--narrow .section__title { justify-content: center; }

.section__num {
  font-family: var(--font-mono);
  font-size: 0.55em;
  font-weight: 500;
  color: var(--accent);
}

.section__lead {
  color: var(--text-dim);
  font-size: 1.08rem;
  margin-bottom: 48px;
  max-width: 640px;
}

.mono-hint {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  opacity: 0.65;
  margin-top: 6px;
}

/* ============ ABOUT ============ */
.about__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  margin-top: 32px;
}

.about__text p { color: var(--text-dim); font-size: 1.08rem; }
.about__text p + p { margin-top: 18px; }

.about__principles { display: flex; flex-direction: column; gap: 14px; }

.principle {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 18px;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.principle:hover { transform: translateX(6px); border-color: var(--accent); }

.principle__mark { color: var(--accent); margin-right: 10px; font-family: var(--font-mono); }

.stats {
  display: flex;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 64px;
  flex-wrap: wrap;
}

.stat { display: flex; flex-direction: column; }

.stat__value {
  font-family: var(--font-mono);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: var(--accent);
}

.stat__label { color: var(--text-dim); font-size: 0.9rem; }

/* ============ CARDS ============ */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), border-color 0.35s, box-shadow 0.35s;
  transform-style: preserve-3d;
  will-change: transform;
}

.card:hover {
  border-color: var(--card-accent);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.card__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%),
    color-mix(in srgb, var(--card-accent) 12%, transparent), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}

.card:hover .card__glow { opacity: 1; }

.card__icon {
  font-size: 1.7rem;
  color: var(--card-accent);
  width: 52px; height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
  margin-bottom: 18px;
}

.card__title { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }

.card__desc { color: var(--text-dim); font-size: 0.95rem; margin-bottom: 18px; }

.card__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.card__tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 99px;
  transition: color 0.25s, border-color 0.25s;
}

.card:hover .card__tags span { border-color: color-mix(in srgb, var(--card-accent) 40%, var(--border)); }

/* ============ PROJECTS ============ */
.project {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  overflow: hidden;
}

/* accent hairline across the top of each project card */
.project::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0.7;
}

.project__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.project__kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.project__title {
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.project__title-link { color: inherit; }
.project__title-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.project__title-ext {
  font-size: 0.6em;
  color: var(--accent);
  vertical-align: super;
}

.project__subtitle { color: var(--text-dim); font-size: 0.95rem; margin-top: 6px; }

.project__badge {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.3rem;
  width: 68px; height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  background-clip: padding-box;
  color: var(--accent);
  transform: rotate(6deg);
  transition: transform 0.35s var(--ease-out);
}

.project:hover .project__badge { transform: rotate(-4deg) scale(1.06); }

.project__intro {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 720px;
  margin-bottom: 32px;
}

.project__systems {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.sys-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  transition: transform 0.3s var(--ease-out), border-color 0.3s;
}

.sys-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--card-accent) 55%, var(--border));
}

.sys-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
}

.sys-card__icon {
  font-size: 1rem;
  color: var(--card-accent);
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: color-mix(in srgb, var(--card-accent) 12%, transparent);
}

.sys-card ul { list-style: none; }

.sys-card li {
  position: relative;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding-left: 18px;
  margin-bottom: 10px;
}

.sys-card li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--card-accent);
  font-size: 0.8em;
  top: 2px;
}

.project__approach { margin-bottom: 28px; }

.project__approach-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 14px;
}

.project__approach-chips { display: flex; flex-wrap: wrap; gap: 10px; }

.project__approach-chips span {
  font-size: 0.85rem;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 99px;
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.project__approach-chips span:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project__outcome {
  color: var(--text-dim);
  font-size: 0.98rem;
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 20px;
  max-width: 760px;
}

.project__outcome-label {
  color: var(--text);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.9em;
  margin-right: 6px;
}

@media (max-width: 600px) {
  .project__header { flex-direction: column-reverse; }
}

/* ============ GALLERY ============ */
.project__gallery { margin-bottom: 28px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.gallery__item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: zoom-in;
  background: var(--bg);
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease-out), filter 0.45s;
}

.gallery__item:hover img,
.gallery__item:focus-visible img {
  transform: scale(1.06);
  filter: brightness(1.08);
}

.gallery__item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 12px 10px;
  font-size: 0.78rem;
  color: var(--text);
  background: linear-gradient(transparent, rgba(5, 8, 12, 0.85));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s, transform 0.3s var(--ease-out);
  pointer-events: none;
}

.gallery__item:hover figcaption,
.gallery__item:focus-visible figcaption {
  opacity: 1;
  transform: translateY(0);
}

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgba(5, 8, 12, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.lightbox.open { opacity: 1; visibility: visible; }

.lightbox__figure {
  max-width: min(1100px, 88vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  transform: scale(0.96);
  transition: transform 0.3s var(--ease-out);
}

.lightbox.open .lightbox__figure { transform: scale(1); }

.lightbox__figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}

.lightbox__figure figcaption {
  color: var(--text-dim);
  font-size: 0.92rem;
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease-out);
  flex-shrink: 0;
}

.lightbox__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 44px; height: 44px;
  font-size: 1.5rem;
}

.lightbox__nav {
  width: 48px; height: 48px;
  font-size: 1.8rem;
  padding-bottom: 4px;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(34, 211, 238, 0.12);
  border-color: var(--accent);
  transform: scale(1.08);
}

@media (max-width: 600px) {
  .lightbox { gap: 6px; padding: 12px; }
  .lightbox__nav { width: 40px; height: 40px; }
}

/* ============ CONTACT / FOOTER ============ */
.contact__pitch {
  color: var(--text-dim);
  font-size: 1.1rem;
  margin-bottom: 36px;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.btn--beer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #16a34a;
  color: #f0fdf4;
  box-shadow: 0 4px 20px rgba(22, 163, 74, 0.2);
}

.btn--beer:hover {
  transform: translateY(-2px);
  background: #15803d;
  box-shadow: 0 8px 28px rgba(22, 163, 74, 0.35);
  color: #f0fdf4;
}

@keyframes beer-sway {
  0%, 100% { transform: rotate(-9deg) translateY(0); }
  50%       { transform: rotate(9deg) translateY(-3px); }
}

.beer-icon {
  display: inline-block;
  font-style: normal;
  animation: beer-sway 2s ease-in-out infinite;
  transform-origin: bottom center;
}

.btn--beer:hover .beer-icon { animation-duration: 0.45s; }

.footer {
  padding: 36px 24px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid var(--border);
}

/* ============ REVEAL ANIMATIONS ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-h) + 36px);
    padding-bottom: 72px;
  }
  .hero__inner {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 620px;
  }
  .hero__intro {
    max-width: none;
    text-align: center;
    margin: 0 auto;
  }
  .hero__actions { justify-content: center; }
  .hero__scroll { display: none; }
  #particles { opacity: 0.4; }
}

@media (max-width: 768px) {
  .nav__toggle { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    background: rgba(10, 14, 20, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 20px;
    transform: translateY(-110%);
    transition: transform 0.35s var(--ease-out);
  }

  .nav__links.open { transform: translateY(0); }

  .nav__links a { padding: 14px; }

  .about__grid { grid-template-columns: 1fr; }

  .log { padding-left: 22px; }
}

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

/* ============ SURFING EASTER EGG ============ */
#about { position: relative; overflow: hidden; }
#about .section__inner { position: relative; z-index: 1; }

.egg-surf {
  cursor: pointer;
  color: inherit;
  border-bottom: 1px dotted rgba(147, 161, 184, 0.5);
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.egg-surf:hover,
.egg-surf:focus-visible {
  color: #22d3ee;
  border-bottom-color: #22d3ee;
  outline: none;
}

.surf-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #04070c;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.85s var(--ease-out);
}
.surf-bg.is-playing { opacity: 1; }

.surf-bg iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.12);
  transition: transform 9s ease-out;
}
.surf-bg.is-playing iframe { transform: translate(-50%, -50%) scale(1); }

/* darkening + cyan tint so the text stays readable over the clip */
.surf-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 14, 20, 0.78), rgba(10, 14, 20, 0.6) 45%, rgba(10, 14, 20, 0.9)),
    radial-gradient(135% 90% at 72% 16%, rgba(34, 211, 238, 0.16), transparent 62%);
}
