/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  overflow-y: scroll;
  scroll-behavior: smooth;
  background: #1c1d20;
}

body {
  font-family: 'Hanken Grotesk', sans-serif;
  background: #ffffff;
  color: #1a1a1a;
  overflow-x: hidden;
  cursor: none;
}

/* ═══════════════════════════════════════
   PRELOADER
═══════════════════════════════════════ */
#preloader {
  position: fixed;
  inset: 0;
  background: #1a1a1a;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 28px;
}

.pre-word {
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 600;
  color: #fff;
  letter-spacing: -.04em;
  overflow: hidden;
}

.pre-word span {
  display: block;
  transform: translateY(110%);
}

.pre-line-wrap {
  width: 160px;
  height: 1px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
}

.pre-line {
  height: 100%;
  width: 0%;
  background: #fff;
}

.pre-pct {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.25);
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════
   CURSOR
═══════════════════════════════════════ */
#cur {
  position: fixed;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 8999;
  transform: translate(-50%, -50%);
  transition: width .18s, height .18s, opacity .18s;
  mix-blend-mode: difference;
}

#curR {
  position: fixed;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(255,255,255,.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 8998;
  transform: translate(-50%, -50%);
  transition: width .25s, height .25s;
  mix-blend-mode: difference;
}

body.c-hover #curR { width: 50px; height: 50px; }
body.c-proj  #cur,
body.c-proj  #curR { opacity: 0; }

/* ═══════════════════════════════════════
   FLOATING UI — Dennis style
═══════════════════════════════════════ */
#aboutBubble {
  position: fixed;
  top: 50px;
  right: 108px;
  width: 112px;
  height: 112px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 400;
  color: #fff;
  letter-spacing: .01em;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s;
  z-index: 700;
  will-change: transform;
}

#aboutBubble.vis { pointer-events: auto; }

#hamBtn {
  position: fixed;
  top: 26px;
  right: 40px;
  width: 52px;
  height: 52px;
  background: #1a1a1a;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s;
  z-index: 700;
  will-change: transform;
}

#hamBtn.vis { pointer-events: auto; }

#hamBtn span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  border-radius: 2px;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  background: #999D9E;
  overflow: hidden;
}

/* Top nav */
#heroNav {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 32px 44px;
  z-index: 30;
}

/* Logo — Dennis Snellenberg style */
.logo {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  text-decoration: none;
}

.logo-copy {
  font-size: 14px;
  color: #fff;
  letter-spacing: .02em;
  margin: 0;
  line-height: 20px;
}

.logo-name {
  position: relative;
  overflow: hidden;
  height: 20px; /* shows exactly 1 line */
}

.logo-name-inner {
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}

.logo:hover .logo-name-inner {
  transform: translateY(-20px);
}

.logo-name p {
  margin: 0;
  font-size: 14px;
  color: #fff;
  letter-spacing: .02em;
  line-height: 20px;
  height: 20px;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: #fff;
  text-decoration: none;
  letter-spacing: .01em;
  transition: opacity .2s;
}

.nav-links a:hover { opacity: .45; }

/* Photo — large, fills hero like Dennis Snellenberg original */
.hero-photo {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72vw;
  max-width: 1050px;
  min-width: 520px;
  height: 100%;
  z-index: 10;
  pointer-events: none;
  will-change: transform;
  overflow: hidden;
}

.photo-inner {
  width: 100%;
  height: 130%;
  position: relative;
  will-change: transform;
}

.photo-inner img {
  position: absolute;
  top: -3%;
  left: 50%;
  transform: translateX(-50%);
  width: 110%;
  height: auto;
  max-width: none;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: drop-shadow(0 4px 20px rgba(0,0,0,.12));
  image-rendering: -webkit-optimize-contrast;
}

/* Smooth bottom fade so legs blend into bg */
.hero-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 18%;
  background: linear-gradient(to bottom, transparent, #999D9E);
  z-index: 11;
  pointer-events: none;
}

.photo-hint { display: none; }
.photo-icon  { display: none; }

/* Arrow */
#heroArrow {
  position: absolute;
  right: 44px;
  top: 38%;
  font-size: 22px;
  color: rgba(255,255,255,.5);
  z-index: 20;
  will-change: transform, opacity;
}

/* Role */
#heroRole {
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  text-align: right;
  will-change: transform, opacity;
}

#heroRole p {
  font-size: clamp(24px, 2.6vw, 38px);
  font-weight: 300;
  color: rgba(255,255,255,.85);
  line-height: 1.35;
  letter-spacing: -.015em;
}

/* Location badge */
#locBadge {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #1a1a1a;
  border-radius: 100px;
  padding: 14px 14px 14px 22px;
  z-index: 25;
  will-change: transform, opacity;
}

.loc-text {
  font-size: 12px;
  line-height: 1.4;
  color: #fff;
  letter-spacing: .01em;
}

.loc-globe {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin-globe 8s linear infinite;
}

.loc-globe svg {
  width: 20px;
  height: 20px;
}

@keyframes spin-globe {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Giant name — infinite scroll like Dennis Snellenberg */
.name-clip {
  position: absolute;
  bottom: 30px;
  left: 0;
  right: 0;
  overflow: hidden;
  z-index: 20;
  pointer-events: none;
}

.name-slider {
  position: relative;
  white-space: nowrap;
  will-change: transform;
}

.name-slider p {
  display: inline-block;
  font-size: clamp(100px, 17vw, 300px);
  font-weight: 600;
  color: rgba(255,255,255,1);
  letter-spacing: -.038em;
  line-height: 1;
  margin: 0;
  padding-right: 40px;
  user-select: none;
}

#secondName {
  position: absolute;
  left: 100%;
  top: 0;
}

/* ═══════════════════════════════════════
   MARQUEE
═══════════════════════════════════════ */
.marquee-strip {
  border-top: 1px solid #e4e4e4;
  border-bottom: 1px solid #e4e4e4;
  overflow: hidden;
  background: #fff;
  padding: 13px 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: mq 24s linear infinite;
}

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

.marquee-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 26px;
}

.marquee-item span {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a;
  white-space: nowrap;
}

.marquee-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #d4d4d4;
  flex-shrink: 0;
}

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

/* ═══════════════════════════════════════
   WORK
═══════════════════════════════════════ */
.work-section { background: #fff; }

.work-label {
  padding: 72px 44px 0;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  color: #8a8a8a;
  text-transform: uppercase;
}

.projects-list {
  list-style: none;
  margin-top: 36px;
}

.project-item {
  position: relative;
  border-top: 1px solid #e4e4e4;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: none;
  overflow: hidden;
}

.project-item:last-child { border-bottom: 1px solid #e4e4e4; }

.project-name {
  font-size: clamp(48px, 8.5vw, 128px);
  font-weight: 500;
  color: #d4d4d0;
  letter-spacing: -.032em;
  line-height: 1;
  transition: color .4s ease;
  user-select: none;
  will-change: transform;
}

.project-item:hover .project-name { color: #1a1a1a; }

.project-cat {
  font-size: 13px;
  color: #8a8a8a;
  flex-shrink: 0;
  margin-left: 40px;
  opacity: 0;
  transform: translateX(14px);
  transition: opacity .35s, transform .35s;
}

.project-item:hover .project-cat {
  opacity: 1;
  transform: translateX(0);
}

/* Underline on hover */
.project-item::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0;
  height: 1px;
  background: #1a1a1a;
  transition: width .55s cubic-bezier(.16,1,.3,1);
}

.project-item:hover::after { width: 100%; }

/* ═══════════════════════════════════════
   PREVIEW CARD
═══════════════════════════════════════ */
#previewCard {
  position: fixed;
  top: 0; left: 0;
  width: 480px;
  height: 360px;
  overflow: hidden;
  pointer-events: none;
  z-index: 600;
  opacity: 0;
  transition: opacity .3s ease;
}

#previewCard.show {
  opacity: 1;
}

.preview-bg {
  width: 100%;
  height: 100%;
  position: relative;
  background: #e8e5de;
  padding: 32px;
  overflow: hidden;
}

.preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.preview-view {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #3d5af1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
  z-index: 2;
  box-shadow: 0 10px 30px rgba(61,90,241,.5);
}

.preview-lbl {
  display: none;
}

/* ═══════════════════════════════════════
   STATS
═══════════════════════════════════════ */
.stats-section {
  border-top: 1px solid #e4e4e4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
}

.stat-col {
  padding: 60px 44px;
  border-right: 1px solid #e4e4e4;
}

.stat-col:last-child { border-right: none; }

.stat-num {
  font-size: clamp(52px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -.04em;
  line-height: 1;
  display: block;
  font-variant-numeric: tabular-nums;
}

.stat-sup {
  font-size: .4em;
  vertical-align: super;
  font-weight: 500;
  letter-spacing: 0;
}

.stat-lbl {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-top: 10px;
  display: block;
}

/* ═══════════════════════════════════════
   ABOUT
═══════════════════════════════════════ */
.about-section {
  border-top: 1px solid #e4e4e4;
  padding: 110px 44px;
  background: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.about-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a;
  display: block;
  margin-bottom: 32px;
}

.about-title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: #1a1a1a;
}

.clip-wrap {
  overflow: hidden;
  display: block;
}

.clip-line {
  display: block;
  /* initial translateY set by GSAP fromTo */
}

.about-body {
  font-size: 16px;
  color: #8a8a8a;
  line-height: 1.78;
  margin-bottom: 44px;
  max-width: 480px;
}

/* Skills list */
.skills-list {
  list-style: none;
  margin-bottom: 0;
}

.skill-row {
  border-top: 1px solid #e4e4e4;
  padding: 14px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-row:last-child { border-bottom: 1px solid #e4e4e4; }

.skill-name {
  font-size: 14px;
  color: #1a1a1a;
  letter-spacing: .01em;
}

.skill-lvl {
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #8a8a8a;
}

/* ═══════════════════════════════════════
   CONTACT
═══════════════════════════════════════ */
.contact-section {
  border-top: 1px solid #e4e4e4;
  padding: 110px 44px 80px;
  background: #fff;
}

.contact-label {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #8a8a8a;
  display: block;
  margin-bottom: 36px;
}

.contact-email {
  font-size: clamp(36px, 6.5vw, 96px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1;
  margin-bottom: 80px;
}

.contact-email a {
  color: #1a1a1a;
  text-decoration: none;
  transition: opacity .2s;
  display: inline-block;
}

.contact-email a:hover { opacity: .45; }

.contact-bottom {
  border-top: 1px solid #e4e4e4;
  padding-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.contact-links a {
  font-size: 13px;
  color: #8a8a8a;
  text-decoration: none;
  transition: color .2s;
}

.contact-links a:hover { color: #1a1a1a; }

.contact-copy {
  font-size: 12px;
  color: #c8c8c8;
}

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
/* Old footer removed — using .ds-footer now */

/* ═══════════════════════════════════════
   ABOUT STRIP — index page teaser
═══════════════════════════════════════ */
.about-strip {
  border-top: 1px solid #e4e4e4;
  padding: 100px 44px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  background: #fff;
}

.about-strip-inner { max-width: 640px; }

.about-title {
  font-size: clamp(36px, 4.5vw, 60px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.08;
  color: #1a1a1a;
  margin-top: 24px;
}

.cta-circle {
  width: 130px; height: 130px;
  border-radius: 50%;
  background: #1a1a1a;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; flex-shrink: 0;
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s;
  will-change: transform;
}
.cta-circle:hover { background: #4338ca; }
.cta-circle span {
  font-size: 13px; font-weight: 400; color: #fff;
  text-align: center; line-height: 1.4;
}

/* ═══════════════════════════════════════
   DENNIS-STYLE CONTACT SECTION
═══════════════════════════════════════ */
.ds-contact-wrap {
  background: #1c1d20;
  position: relative;
}

.ds-curve {
  position: relative;
  height: 0;
  background: #fff;
  overflow: hidden;
}
.ds-curve::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: -10%;
  right: -10%;
  height: 100%;
  background: #1c1d20;
  border-radius: 50% 50% 0 0;
}

.ds-contact-inner {
  padding: 80px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
}

/* "Let's work together" */
.ds-letswork { margin-bottom: 0; }
.ds-line1 {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ds-line2 { padding-left: 0; }
.ds-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #333;
  opacity: 0;
  transform: scale(.8);
}
.ds-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.ds-reveal-line {
  display: inline-block;
  overflow: hidden;
}
.ds-reveal-line span {
  display: block;
  font-size: clamp(52px, 7.5vw, 100px);
  font-weight: 400;
  letter-spacing: -.035em;
  line-height: 1.1;
  color: #fff;
  transform: translateY(110%);
}

/* Action row: ↙ arrow ... line ... button */
.ds-action-row {
  position: relative;
  display: flex;
  align-items: center;
  margin-top: 60px;
}
.ds-arrow {
  font-size: 22px;
  color: rgba(255,255,255,.3);
  flex-shrink: 0;
  margin: 0 32px 0 24px;
}
.ds-action-line {
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,.1);
}
.ds-touch-btn {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: #4338ca;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 16px 60px rgba(67,56,202,.5);
  transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s;
  will-change: transform;
  cursor: pointer;
  opacity: 0;
  transform: scale(.7);
  flex-shrink: 0;
  margin-left: -60px;
}
.ds-touch-btn:hover { background: #5b50e6; }

/* Contact pills */
.ds-contact-pills {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 56px;
}
.ds-pill {
  padding: 18px 36px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 100px;
  color: rgba(255,255,255,.55);
  font-size: 15px;
  text-decoration: none;
  transition: transform .4s cubic-bezier(.16,1,.3,1), border-color .3s, color .3s;
  will-change: transform;
  opacity: 0;
  transform: translateY(20px);
}
.ds-pill:hover {
  border-color: rgba(255,255,255,.35);
  color: #fff;
}

/* Footer */
.ds-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding: 44px 48px;
  border-top: 1px solid rgba(255,255,255,.06);
  background: #1c1d20;
  margin-top: 80px;
}
.ds-footer-label {
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.2);
  display: block;
  margin-bottom: 10px;
}
.ds-footer-value {
  font-size: 14px;
  color: rgba(255,255,255,.45);
}
.ds-footer-right { text-align: right; }
.ds-footer-socials {
  display: flex;
  gap: 28px;
  justify-content: flex-end;
}
.ds-footer-socials a {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  text-decoration: none;
  transition: color .3s, transform .4s cubic-bezier(.16,1,.3,1);
  will-change: transform;
}
.ds-footer-socials a:hover { color: #fff; }

@media (max-width: 768px) {
  .ds-contact-inner { padding: 60px 24px 40px; }
  .ds-line1 { gap: 12px; }
  .ds-avatar { width: 48px; height: 48px; }
  .ds-reveal-line span { font-size: clamp(36px, 10vw, 52px); }
  .ds-action-row { flex-wrap: wrap; gap: 24px; justify-content: flex-end; }
  .ds-arrow, .ds-action-line { display: none; }
  .ds-touch-btn { width: 140px; height: 140px; font-size: 14px; margin-left: 0; }
  .ds-contact-pills { flex-direction: column; }
  .ds-pill { text-align: center; }
  .ds-footer { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .ds-footer-right { text-align: left; }
  .ds-footer-socials { justify-content: flex-start; }
}

/* Old footer removed */

/* g-init — hero elements start hidden, revealed by animations.js */
#heroNav, #nameSlider, #heroPhoto, #heroRole, #locBadge, #heroArrow {
  opacity: 0;
}

/* Magnetic hover for floating UI */
#aboutBubble { transition: transform .4s cubic-bezier(.16,1,.3,1), background .3s; will-change: transform; }
#aboutBubble:hover { background: #4338ca; }
#hamBtn { transition: transform .35s cubic-bezier(.16,1,.3,1), background .3s; will-change: transform; }
#hamBtn:hover { background: #4338ca; }

/* ═══ PAGE TRANSITION OVERLAY ═══ */
#pageOverlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  overflow: hidden;
}
#pageOverlay.active {
  pointer-events: all;
}
.po-bg {
  position: absolute;
  left: 0;
  right: 0;
  top: -15%;
  height: 130%;
  background: #1c1d20;
  will-change: transform, border-radius;
  /* CSS default: covers screen */
  transform: translateY(0%);
}
.po-text-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}
.po-text {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: clamp(28px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -.04em;
  color: #fff;
  white-space: nowrap;
  will-change: transform;
}
