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

@font-face {
  font-family: "Switzer";
  src:
    url("../fonts/Switzer-Variable.woff2") format("woff2"),
    url("../fonts/Switzer-Variable.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Switzer";
  src:
    url("../fonts/Switzer-VariableItalic.woff2") format("woff2"),
    url("../fonts/Switzer-VariableItalic.woff") format("woff");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

html {
  height: 100%;
}

body {
  min-height: 100%;
  margin: 0;
  overscroll-behavior: none;
  background-color: #161d2b;
  font-family: "Switzer", sans-serif;
}

.vs-hero {
  background-color: #161d2b;
}

.vs-loader .vs-letter {
  color: #ffefb3;
}

.vs-h1 {
  font-family: "Roseblue", cursive;
  font-size: clamp(3rem, 12vw, 11rem);
  line-height: 1.15;
  letter-spacing: 0.01em;
}

/* Full "VINCENTSTOIT" wordmark (unlike the split loader letters, this
   is one continuous 12-character string) — scaled so its rendered
   width never exceeds ~50% of the viewport, shrinking on smaller
   screens instead of running toward the right edge. */
.vs-content .vs-h1 {
  font-size: clamp(1.75rem, 8vw, 8rem);
}

.vs-h1-start,
.vs-h1-end {
  overflow: hidden;
}

.vs-letter {
  display: block;
  position: relative;
  transform: translateY(100%);
}

.vs-box {
  width: 0;
  position: relative;
}

.vs-box-inner {
  min-width: 2.2em;
  height: 95%;
  position: relative;
}

.vs-image {
  width: 0%;
  height: 100%;
  position: absolute;
  overflow: hidden;
  border-radius: 9999px;
}

.vs-image-wrap {
  width: 100%;
  min-width: 2.2em;
  height: 100%;
  position: absolute;
}

.vs-image-layer {
  pointer-events: none;
  user-select: none;
}

.vs-content .vs-letter-white {
  transform: translateY(110%);
  will-change: transform;
  display: block;
}

.vs-content .vs-icon {
  opacity: 0;
  transform: translateY(110%);
  will-change: transform, opacity;
  display: block;
}

.vs-content .vs-nav-item {
  opacity: 0;
  transform: translateY(10px);
  will-change: transform, opacity;
  /* Not hoverable/clickable until the intro reveals them — Tailwind's
     hover:opacity-70 would otherwise override the opacity: 0 above and
     make items flash into view mid-animation. */
  pointer-events: none;
}

.vs-content .vs-intro-item {
  opacity: 0;
  transform: translateY(14px);
  will-change: transform, opacity;
  pointer-events: none;
}

/* ===== Journey row preview (shows the hover state until first hovered) ===== */
/* ===== Journey row touch state (tap-to-reveal on devices without real hover) ===== */
.vs-journey-row.is-previewing p,
.vs-journey-row.is-active p {
  opacity: 1;
  transform: translateY(0);
}

.vs-journey-row.is-previewing .vs-journey-meta,
.vs-journey-row.is-active .vs-journey-meta {
  opacity: 0;
}

.vs-journey-row.is-previewing .vs-journey-hover-image,
.vs-journey-row.is-active .vs-journey-hover-image {
  --tw-rotate: -3deg;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  opacity: 1;
}

/* ===== Expertises marquee ===== */
.vs-marquee-track {
  animation: vs-marquee-scroll 28s linear infinite;
}

.vs-marquee:hover .vs-marquee-track {
  animation-play-state: paused;
}

.vs-marquee-item {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  letter-spacing: 0.01em;
  color: #ffefb3;
  padding: 0 1.5rem;
}

.vs-marquee-dot {
  font-size: clamp(1.25rem, 3vw, 2.25rem);
  color: #ffefb3;
}

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

@media (prefers-reduced-motion: reduce) {
  .vs-marquee-track {
    animation: none;
  }
}

/* ===== Asset gallery (masonry) ===== */
.vs-gallery-grid {
  column-count: 1;
  column-gap: 1rem;
}

/* Phones get a shorter feed: the heaviest cards stay desktop/tablet-only,
   and because they're display:none the browser never fetches their media. */
@media (max-width: 639.98px) {
  .vs-gallery-item.vs-m-hide {
    display: none;
  }
}

@media (min-width: 640px) {
  .vs-gallery-grid {
    column-count: 2;
  }
}

@media (min-width: 1024px) {
  .vs-gallery-grid {
    column-count: 3;
    column-gap: 1.25rem;
  }
}

@media (min-width: 1536px) {
  .vs-gallery-grid {
    column-count: 4;
  }
}

.vs-gallery-item {
  position: relative;
  display: block;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
  margin: 0 0 1rem;
  overflow: hidden;
  border-radius: 0.75rem;
  background-color: #f5f4f0;
}

@media (min-width: 1024px) {
  .vs-gallery-item {
    margin-bottom: 1.25rem;
  }
}

/* width/height attributes on the media supply the intrinsic ratio, so
   the column layout settles before anything has finished loading. */
.vs-gallery-media {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.vs-gallery-item:hover .vs-gallery-media {
  transform: scale(1.04);
}

.vs-gallery-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 4rem 1.25rem 1.25rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.35) 45%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.vs-gallery-overlay h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}

.vs-gallery-overlay p {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.72);
}

@media (prefers-reduced-motion: reduce) {
  .vs-gallery-media,
  .vs-gallery-item:hover .vs-gallery-media {
    transition: none;
    transform: none;
  }
}

/* ===== Footer ===== */
.vs-footer-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: 0 1.5rem;
  border: 1px solid rgba(255, 239, 179, 0.35);
  border-radius: 80px;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

a.vs-footer-pill:hover {
  background-color: #ffefb3;
  border-color: #ffefb3;
  color: #161d2b;
}

.vs-footer-social {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid #ffefb3;
  border-radius: 80px;
  background-color: #ffefb3;
  color: #161d2b;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.vs-footer-social:hover {
  background-color: transparent;
  color: #ffefb3;
}

/* Decorative arrow: hidden until the footer scrolls into view, then drawn
   in with a dash offset (see initFooterLine). The head is a separate path
   so it can land after the stroke has reached the tip. */
.vs-footer-line-stroke {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.vs-footer-line-head {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.35s ease-out 1.15s;
}

/* Hide the round-linecap "dot" some browsers paint at offset == dasharray */
.vs-footer-line:not(.is-drawn) .vs-footer-line-stroke,
.vs-footer-line:not(.is-drawn) .vs-footer-line-head {
  opacity: 0;
}

.vs-footer-line.is-drawn .vs-footer-line-stroke,
.vs-footer-line.is-drawn .vs-footer-line-head {
  stroke-dashoffset: 0;
}

.vs-footer-wordmark {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4em;
  font-family: "Roseblue", cursive;
  font-size: clamp(2.5rem, 15vw, 13rem);
  line-height: 1;
  white-space: nowrap;
}

/* Sized in em so the photo keeps its proportion to the wordmark at
   every breakpoint instead of drifting on its own vw curve. */
.vs-footer-wordmark img {
  height: 0.72em;
  width: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  border-radius: 0.375rem;
}

@media (prefers-reduced-motion: reduce) {
  .vs-footer-line-stroke,
  .vs-footer-line-head {
    transition: none;
    stroke-dashoffset: 0;
  }
}

/* ===== Statement section (What I do) ===== */
.vs-serif {
  font-family: "Roseblue", cursive;
  font-style: normal;
  font-weight: 400;
}

.vs-skill-list li {
  position: relative;
  padding-left: 1.1em;
}

.vs-skill-list li::before {
  content: "\2022";
  position: absolute;
  left: 0;
  opacity: 0.35;
}

.vs-review-quote.is-fading,
.vs-review-person.is-fading {
  opacity: 0;
}

/* The white sheet floats over the pinned hero: a soft shadow above its
   top edge, and a matching one under the hero photo itself. */
.vs-journey {
  box-shadow: 0 -28px 64px rgba(0, 0, 0, 0.4);
}

.vs-image {
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}
