
@font-face {
  font-family: "Rauschen";
  src: url("fonts/font-rauschen-b-medium.woff2") format("woff2"),;
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Planar";
  src: url("fonts/GT-Planar-Regular.woff2") format("woff2"),;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* =========================================================
   DESIGN TOKENS
   ========================================================= */
:root {
  --bg: #f3f1ec;
  --ink: #0a0a0a;
  --blue: #1f2bff;
  --blue-soft: #e6e7ff;

  --font-display: "Rauschen", system-ui, sans-serif;
  --font-body: "Planar", system-ui, sans-serif;

  --pad-x: clamp(20px, 4vw, 56px);
}

/* =========================================================
   RESET
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
img { display: block; max-width: 100%; height: auto; }

/* =========================================================
   CUSTOM CURSOR DOT
   ========================================================= */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: var(--blue);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
  z-index: 9999;
  mix-blend-mode: difference;
}

.cursor-dot.cursor-grow {
  width: 60px;
  height: 60px;
}

@media (hover: none) {
  .cursor-dot { display: none; }
}

/* =========================================================
   TOPBAR
   ========================================================= */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  padding: 18px var(--pad-x);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink);
  z-index: 50;
  pointer-events: none;
}

.topbar-item { font-weight: 500; }

@media (max-width: 760px) {
  .topbar-item:nth-child(2),
  .topbar-item:nth-child(3) { display: none; }
}

/* =========================================================
   NAV PILLS
   ========================================================= */
.nav {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  z-index: 60;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 26px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 500;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s;
  cursor: pointer;
}

.pill:hover {
  transform: scale(1.08) rotate(-2deg);
  background: var(--ink);
}

.pill-active {
  background: var(--ink);
}

/* =========================================================
   MARQUEE
   ========================================================= */
.marquee {
  position: fixed;
  left: 0; right: 0;
  background: var(--blue);
  color: #fff;
  padding: 10px 0;
  overflow: hidden;
  font-size: 12px;
  z-index: 40;
  white-space: nowrap;
}

.marquee:not(.marquee-top) { bottom: 0; }
.marquee.marquee-top { top: 0; }

.marquee-track {
  display: inline-flex;
  gap: 2rem;
  animation: marquee 30s linear infinite;
  white-space: nowrap;
}

.marquee-track span { padding-right: 2rem; }

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

@media (max-width: 880px) {
  .marquee.marquee-top {
    top: auto;
    bottom: 0;
  }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20vh var(--pad-x) 200px;
  text-align: center;
  position: relative;
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(60px, 16vw, 180px);
  line-height: 0.9;
  margin: 0;
  color: var(--blue);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 30px
}

.hero-word {
  display: inline-flex;
  white-space: nowrap;
}

/* Stack the two words on tablet & mobile */
@media (max-width: 900px) {
  .hero-name {
    flex-direction: column;
    gap: 0.15em 0;
  }
}

.hero-name .wiggle {
  display: inline-block;
  animation: wiggle 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.08s);
  transition: transform 0.3s, color 0.3s;
}

.hero-name .wiggle:hover {
  color: var(--ink);
  transform: scale(1.2) rotate(-6deg) translateY(-8px);
}

.hero-space { width: 0.4em; }

@keyframes wiggle {
  0%, 100% { transform: translateY(0) rotate(0); }
  25%      { transform: translateY(-6px) rotate(-2deg); }
  75%      { transform: translateY(4px)  rotate(2deg);  }
}


.amp {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 1.2em;
  vertical-align: -0.05em;
}

.blink {
  display: inline-block;
  color: var(--blue);
  animation: blink 1s steps(2) infinite;
  font-weight: 700;
}

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

.hero-scroll {
  position: absolute;
  bottom: 130px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink);
  animation: bob 2s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* =========================================================
   ABOUT PAGE
   ========================================================= */
.about-wrap {
  padding: 0;
  max-width: none;
  margin: 0;
  height: 100vh;
}

.about-grid {
  display: grid;
  grid-template-columns: 55% 45%;
  height: 100vh;
  gap: 0;
  align-items: stretch;
}

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-photo {
  width: 100%;
  height: 100vh;
  background-color: var(--blue-soft);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: 20px var(--pad-x) 80px;
  overflow-y: auto;
}

.about-text p {
  color: var(--blue);
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.15;
  margin: 0 0 1.2em;
  max-width: 520px;
  text-wrap: balance;
}

.about-signature {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  margin: 0 0 30px;
  text-align: left;
}

@media (max-width: 880px) {
  .project-name,
  .about-signature {
    font-size: clamp(28px, 7vw, 40px);
    margin: 0 0 12px;
  }
}


.cv-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cv-list li {
  color: var(--blue);
  font-size: clamp(14px, 1.2vw, 18px);
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.star {
  color: var(--blue);
  font-size: 0.9em;
  display: inline-block;
  animation: spin 6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 26px;
  background: var(--blue);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  width: fit-content;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), background 0.2s;
}

.about-text .contact-btn {
  align-self: flex-start;
  margin-top: 24px;
}

.contact-btn:hover {
  transform: scale(1.05);
  background: var(--ink);
}

.contact-btn .arrow {
  transition: transform 0.25s;
}

.contact-btn:hover .arrow {
  transform: translateX(6px);
}

@media (max-width: 880px) {
  .about-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .about-photo {
    height: 60vh;
  }

  .about-text {
    height: auto;
    padding: 60px var(--pad-x) 140px;
  }

  .about-wrap {
    height: auto;
  }
}

/* =========================================================
   PROJECTS PAGE
   ========================================================= */
.projects-scroll {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.project-slide {
  height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: grid;
  grid-template-columns: 65% 35%;
}

.project-slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  background-color: var(--blue-soft);
  overflow: hidden;
}

.project-slide-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

video.project-slide-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-slide-img.is-active {
  opacity: 1;
}

.project-slide-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding: 80px var(--pad-x) 120px;
  position: relative;
}

.project-num {
  font-size: 12px;
  color: var(--ink);
  text-transform: uppercase;
  display: block;
  margin-bottom: 20px;
}

.project-name {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: clamp(40px, 6vw,60px);
  margin: 0 0 24px;
  line-height: 1;
  text-wrap: balance;
}

.project-desc {
  margin: 0 0 24px;
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.25;
  color: var(--ink);
  max-width: 460px;
  text-wrap: pretty;
}

.project-tags {
  font-size: 12px;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 32px;
}

.scroll-hint {
  position: absolute;
  bottom: 60px;
  right: var(--pad-x);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--ink);
  animation: bob 2s ease-in-out infinite;
}

@media (max-width: 880px) {
  .project-slide {
    grid-template-columns: 1fr;
    grid-template-rows: 45vh auto;
  }

  .project-slideshow {
    order: 1;
    height: 45vh;
  }

  .project-info {
    order: 2;
    height: auto;
    justify-content: flex-start;
    padding: 24px var(--pad-x) 16px;
  }

  .project-name {
    font-size: clamp(28px, 7vw, 40px);
    margin: 0 0 12px;
  }

  .project-desc {
    font-size: 14px;
    margin: 0 0 12px;
  }

  /* scroll hint sits at the bottom of the text */
  .scroll-hint {
    display: block;
    position: static;
    margin-top: 8px;
    animation: bob 2s ease-in-out infinite;
  }

  /* arrows on top of the image, one on each side */
  .slide-arrow {
    top: 12px;
    bottom: auto;
  }

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

.slide-arrow {
  position: absolute;
  bottom: 40px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  transition: transform 0.2s, background 0.2s;
  font-family: var(--font-body);
}

.slide-arrow:hover {
  transform: scale(1.1);
  background: var(--ink);
}

.slide-prev { left: 24px; }
.slide-next { left: 72px; }

.project-desc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.project-desc a:hover {
  opacity: 0.6;
}
/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1);
}

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

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

/* =========================================================
   FULLSCREEN BACKGROUND SLIDESHOW (home page)
   ========================================================= */
.bg-slideshow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.bg-slide.is-active {
  opacity: 1;
}

/* Make sure foreground content sits above the slideshow */
.hero {
  position: relative;
  z-index: 2;
}

.nav {
  z-index: 60;
}

.marquee {
  z-index: 40;
}

.hero-name,
.about-signature,
.project-name {
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .bg-slide {
    background-position: center center;
    background-size: cover;
  }
}

@media (max-width: 880px) {
  .about-text p,
  .cv-list li {
    font-size: 15px;
  }

  .about-signature {
    margin: 0 0 16px;
  }

  .about-photo {
    height: 45vh;
  }

  .about-text {
    padding: 24px var(--pad-x) 120px;
  }
}

/* =========================================================
   BURGER MENU (mobile only)
   ========================================================= */
.burger {
  display: none;
  position: fixed;
  top: 14px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  z-index: 200;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: background 0.2s;
}

.burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 190;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--blue);
  text-transform: uppercase;
}

@media (max-width: 880px) {
  .nav { display: none; }       /* hide the 3 pills */
  .burger { display: flex; }    /* show the burger */
  .mobile-menu { display: flex; }
}