/* ============================================
   WILLIT DESIGN — Will Reis Portfolio v2
   styles.css
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
  --green:       #5ebb47;
  --bg:          #0f0f0f;
  --bg-warm:     #f5f5f3;
  --text:        #eaeae6;
  --text-dim:    rgba(234,234,230,0.45);
  --text-faint:  rgba(234,234,230,0.06);
  --border:      rgba(234,234,230,0.08);
  --green-glow:  rgba(94,187,71,0.16);

  --font-display: 'Syne', sans-serif;
  --font-serif:   'DM Serif Display', serif;
  --font-mono:    'DM Mono', monospace;

  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h: 60px;
  --pad-x: clamp(1.5rem, 5vw, 5rem);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  font-family: var(--font-display);
    background:
    radial-gradient(circle at 20% 30%, rgba(94,187,71,0.06), transparent 60%),
    radial-gradient(circle at 80% 70%, rgba(94,187,71,0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: auto;
}

a { color: inherit; text-decoration: none; }
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ---------- CURSOR ---------- */
.cursor {
  position: fixed;
  width: 36px; height: 36px;
  border: 1px solid rgba(94,187,71,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%,-50%);
  transition: width .3s var(--ease-expo), height .3s var(--ease-expo),
              background .3s ease, border-color .3s ease;
}
.cursor-dot {
  position: fixed;
  width: 4px; height: 4px;
  background: var(--green);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%,-50%);
}
body.cursor-hover .cursor {
  width: 56px; height: 56px;
  background: var(--green-glow);
  border-color: var(--green);
}
input,
textarea {
  cursor: text !important;  /* Forms work naturally */
}

/* ---------- BACK TO TOP ---------- */
.back-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 200;
  width: 40px; height: 40px;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text-dim);
  display: flex; align-items: center; justify-content: center;
  cursor: auto;
  transition: opacity .4s ease, transform .4s ease,
              color .3s ease, border-color .3s ease;
  opacity: 0;
  pointer-events: none;
  /* square */
  border-radius: 0;
}
.back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  color: var(--green);
  border-color: var(--green);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  background: rgba(15,15,15,0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}


.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--green);
  transition: width .3s var(--ease-smooth);
}
.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 80vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

/* 🔥 watermark layer */
.hero-watermark {
  
  position: absolute;
  inset: 0;

  background-image: url("images/watermark.png"); /* your vector logo */
  background-repeat: repeat;
  

  background-size: 60px; /* 👈 controls size */
  opacity: 0.03;

  pointer-events: none;
  z-index: 0;
  animation: drift 67s linear infinite;
   mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(circle at center, black 40%, transparent 100%);
  will-change: transform;
}


@keyframes drift {
  from { background-position: 0 0; }
  to { background-position: 200px 200px; }
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-x);
}

/* Logo mark in hero */
.hero-logo-mark {
  margin-bottom: 1.8rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-expo) 0.2s forwards;
}
.hero-logo-mark svg {
  display: block;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-expo) 0.35s forwards;
}
.dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.hero-eyebrow span:last-child {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.hero-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 2rem;
}
.hero-name-line {
  display: block;
  opacity: 0;
  transform: translateY(36px);
}
.hero-name-line:nth-child(1) { animation: fadeUp 0.9s var(--ease-expo) 0.5s forwards; }
.hero-name-line:nth-child(2) { animation: fadeUp 0.9s var(--ease-expo) 0.62s forwards; }
.hero-name .italic {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
}

.hero-statement {
  font-family: var(--font-mono);
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-expo) 0.8s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease-expo) 0.95s forwards;
}

/* ---------- BUTTONS — SQUARE ---------- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding: 0.85rem 2rem;
  border: 1px solid var(--green);
  border-radius: 0;           /* boxy / square */
  overflow: hidden;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color .3s ease, box-shadow .3s ease;
  cursor: auto;
}
.btn-cta:hover {
  color: #0f0f0f;
  box-shadow: 0 0 24px var(--green-glow);
}
.btn-text { position: relative; z-index: 1; }
.btn-sweep {
  position: absolute;
  inset: 0;
  background: var(--green);
  transform: translateX(-105%);
  transition: transform 0.4s var(--ease-expo);
}
.btn-cta:hover .btn-sweep { transform: translateX(0); }

/* Light variant for contact section */
.btn-cta--light {
  border-color: var(--text-dim);
}
.btn-cta--light .btn-sweep {
  background: var(--text);
}
.btn-cta--light:hover {
  color: #0f0f0f;
  box-shadow: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 2rem;
  border: 1px solid var(--border);
  border-radius: 0;           /* boxy */
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  transition: color .3s ease, border-color .3s ease;
  cursor: auto;
}
.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-dim);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem; left: var(--pad-x);
  z-index: 2;
  opacity: 0;
  animation: fadeUp 0.6s var(--ease-expo) 1.3s forwards;
}

@keyframes scrollPulse {
  0%,100% { opacity: 1; transform: scaleY(1); transform-origin: top; }
  50%      { opacity: 0.3; transform: scaleY(0.4); transform-origin: top; }
}

/* ---------- MARQUEE ---------- */
.marquee-strip {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0;
}
.marquee-track {
  display: flex;
  gap: 1.8rem;
  width: max-content;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}
.marquee-track .accent { color: var(--green); font-size: 0.55rem; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- SECTION SHARED ---------- */
.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.5rem;
}

/* ---------- WORK ---------- */
.work {
  padding: 5rem var(--pad-x) 3rem;
}
.section-header {
  margin-bottom: 2.5rem;
}

/* 2-column grid, first item tall */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.work-item--wide {
  grid-column: span 2;
}

.work-item { background: #141414; overflow: hidden;
transition: transform 0.5s var(--ease-expo);}
.work-link { display: block; }

.work-image-wrap {
  position: relative;
  aspect-ratio: 4/4;
  overflow: hidden;
}
.work-item--tall .work-image-wrap {
  aspect-ratio: set;
  height: 100%;
  min-height: 440px;
}
.work-item--wide .work-image-wrap {
  aspect-ratio: 16/7;
}

.work-image {
  transform: scale(1.04);
  transition: transform 0.85s var(--ease-expo);
}
.work-item:hover .work-image { transform: scale(1.03) translateY(-6px); 
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,15,15,0.35);
backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .45s ease;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 1.2rem 1.4rem;
}
.work-item:hover .work-overlay { opacity: 1; }
.work-num {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  transform: translateY(8px);
  transition: transform .45s var(--ease-expo);
}
.work-cta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--green);
  transform: translateY(8px);
  transition: transform .45s var(--ease-expo);
}
.work-item:hover .work-num,
.work-item:hover .work-cta { transform: translateY(0); }

.work-info {
  padding: 1rem 1.2rem 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
}
.work-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: 0.01em;

}
.work-tags {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ---------- LOWER (About + Contact) ---------- */
.lower {
  padding: 7rem var(--pad-x);
  border-top: 1px solid var(--border);
}

.lower-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 3rem 4rem;
  align-items: start;
}

/* Divider column */
.lower-divider {
   gap: 0.6rem;
  width: 80px;
  opacity: 0.5;
  display: flex;
  flex-direction: column;
  align-items: center;

  padding-top: 2.4rem;
  line-height: 0; /* 🔥 prevents hidden spacing from inline elements */
}
.lower-star {
  width: 100px;
  height: auto;
opacity: 0.5;
  display: block;        /* removes inline spacing issues */
 
  flex-shrink: 0;
}
.lower-rule {
  width: 1px;
  height: 160px;
  background: var(--border);
}

/* About block */
.about-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.about-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
}
.about-text {
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
  max-width: 400px;
}
.about-stats {
  display: flex;
  gap: 2.5rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.2rem; }
.stat-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--green);
  letter-spacing: -0.04em;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Contact block */
.contact-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.8rem;
}
.contact-heading em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-dim);
}
.contact-email {
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.95rem, 1.8vw, 1.25rem);
  color: var(--green);
  margin-bottom: 0.75rem;
  display: block;
  transition: color .3s ease;
}
.contact-email:hover { color: var(--text); }
.email-arrow {
  display: inline-block;
  transition: transform .3s var(--ease-expo);
}
.contact-email:hover .email-arrow { transform: translateX(5px); }
.contact-phone {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: 2rem;
}

/* ---------- FOOTER ---------- */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem var(--pad-x);
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.footer-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- SCROLL ANIMATIONS ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}
.fade-up.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-up[data-delay="80"]  { transition-delay: 0.08s; }
.fade-up[data-delay="100"] { transition-delay: 0.10s; }
.fade-up[data-delay="120"] { transition-delay: 0.12s; }
.fade-up[data-delay="160"] { transition-delay: 0.16s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===========================================
   RESPONSIVE
   =========================================== */

/* --- Landscape iPad (1024×768 and nearby) --- */
@media (min-width: 768px) and (max-width: 1100px) {
  :root { --pad-x: 2.5rem; }

  .hero-name {
    font-size: clamp(4rem, 10vw, 8rem);
  }

  .work-grid {
    grid-template-columns: 1fr 1fr;
  }
  .work-item--tall .work-image-wrap {
    min-height: 340px;
  }
  .work-item--wide .work-image-wrap {
    aspect-ratio: 16/6;
  }

  .lower-inner {
    gap: 2rem 3rem;
  }
  .about-heading,
  .contact-heading {
    font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  }
  .about-stats {
    gap: 1.8rem;
  }
}

/* --- Portrait tablet / large phone --- */
@media (max-width: 767px) {
  :root { --pad-x: 1.4rem; }

  body { cursor: auto; }
  .cursor, .cursor-dot { display: none; }

  .nav-wordmark { display: none; }

  .hero { min-height: 40svh; }
  .hero-name { font-size: clamp(4rem, 16vw, 6rem); }

  .work-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .work-item--tall { grid-row: auto; }
  .work-item--tall .work-image-wrap {
    min-height: auto;
    aspect-ratio: 4/3;
  }
  .work-item--wide { grid-column: auto; }
  .work-item--wide .work-image-wrap { aspect-ratio: 4/3; }

  /* Stack about/contact vertically on phone */
  .lower-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .lower-divider {
    display: none;
  }
  .about-stats { gap: 1.5rem; }

  .hero-actions { flex-direction: column; gap: 0.75rem; }
  .btn-cta, .btn-ghost { width: 100%; justify-content: center; }

  .back-top { bottom: 1.2rem; right: 1.2rem; }
}

/* --- Very small phones --- */
@media (max-width: 400px) {
  .hero-name { font-size: clamp(3.2rem, 18vw, 5rem); }
  .about-stats { flex-wrap: wrap; gap: 1rem; }
}

/* --- iPad Air Retina (A1475 + similar 2x iPads) --- */
@media only screen
  and (min-device-width: 768px)
  and (max-device-width: 1024px)
  and (-webkit-min-device-pixel-ratio: 2) {

  :root { --pad-x: 2.8rem; }

  /* Hero — give the giant name a bit more room */
  .hero-name {
    font-size: clamp(4.5rem, 11vw, 9rem);
  }

  /* Work grid — comfortable 2-col with less cramping */
  .work-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .work-item--tall .work-image-wrap { min-height: 360px; }
  .work-item--wide .work-image-wrap { aspect-ratio: 16/6; }

  /* Lower section — keep side-by-side but breathe */
  .lower { padding: 5rem var(--pad-x); }
  .lower-inner { gap: 2rem 3rem; }
  .about-heading,
  .contact-heading { font-size: clamp(1.5rem, 3vw, 2.2rem); }
  .about-stats { gap: 2rem; }

  /* Nav */
  .nav-links { gap: 1.5rem; }

  /* Marquee — slightly larger text on a bigger screen */
  .marquee-track span { font-size: 0.72rem; }

  /* Buttons — full-width stacking looks odd on iPad, keep inline */
  .hero-actions { flex-direction: row; }
  .btn-cta, .btn-ghost { width: auto; }

  /* Fix cursor:none blocking taps on WebKit iPad */
  .cursor, .cursor-dot { display: none; }
  body { cursor: auto; }
}
/* --- Parallax --- */
.hero-content,
.hero-watermark {
  will-change: transform;
}

/* -- my css lol -- */
.hero-logo-mark img {
  width: 56px;
  height: auto;
  display: block;
}

.nav-logo-img {
  opacity: 0.8;
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  transition: transform 0.5s var(--ease-expo), opacity 0.3s ease;
}

.nav-logo:hover .nav-logo-img {
  transform: rotate(12deg) scale(1.05);
  opacity: 1;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at 30% 40%,
    rgba(94,187,71,0.08),
    transparent 60%
  );
  z-index: 1;
}



.work-item--small {
  grid-column: span 1;
}

.work-item--wide {
  grid-column: 1 / -1;
}

.footer-logo {
   width: 50px;
  height: auto;
opacity: 0.5;
    /* removes inline spacing issues */
}