/* ============================================================
   ZOEY — Personal Site Mock
   Design notes: karocrafts-modeled. Full-bleed scroll, ALL-CAPS
   display + clean sans body, custom cursor, marquee, 24-tile grid.
   Palette: warm off-white, deep ink, champagne accent, electric
   blue hover. Built to feel young + creative + a little luxe.
   ============================================================ */

:root {
  --bg:        #F7F4EE;
  --bg-warm:   #EFE9DD;
  --ink:       #0E0E0E;
  --ink-soft:  #2A2A2A;
  --mute:      #7A736A;
  --line:      #DCD3C2;
  --gold:      #C9A24A;
  --blue:      #1A2BFF;
  --space:     clamp(80px, 10vw, 160px);
  --gutter:    clamp(20px, 4vw, 60px);
  --max:       1440px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  cursor: none;
}

/* fallback for touch devices — bring cursor back */
@media (hover: none) {
  body { cursor: auto; }
  .cursor-dot, .cursor-ring { display: none; }
}

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

/* ===== custom cursor ===== */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: #fff; border-radius: 50%;
  transition: transform 0.12s ease;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid #fff; border-radius: 50%;
  transition: transform 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.cursor-ring.hover {
  width: 70px; height: 70px;
  border-color: #fff;
  background: rgba(255,255,255,0.04);
}

/* ===== nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px var(--gutter);
  z-index: 100;
  mix-blend-mode: difference;
  color: #fff;
}
.nav .logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px; letter-spacing: 0.12em;
}
.nav-links {
  list-style: none;
  display: flex; gap: 36px;
  font-family: "Inter", sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em;
}
.nav-links a {
  position: relative; padding: 4px 0;
}
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px; background: currentColor;
  transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }
.nav-toggle { display: none; background: none; border: 0; }

@media (max-width: 800px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px; cursor: none;
  }
  .nav-toggle span {
    display: block; width: 24px; height: 1.5px; background: currentColor;
  }
}

/* ===== hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.05);
  filter: saturate(0.85) contrast(1.05);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.55) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 var(--gutter);
  max-width: 1100px;
}
.eyebrow {
  font-size: 11px; letter-spacing: 0.32em; font-weight: 500;
  margin-bottom: 28px; opacity: 0.9;
}
.hero-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(72px, 14vw, 220px);
  line-height: 0.92;
  letter-spacing: 0.005em;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title .italic {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  font-size: 0.78em;
  margin-top: -0.05em;
  color: var(--gold);
}
.hero-sub {
  margin-top: 32px;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.04em;
  max-width: 620px;
  margin-left: auto; margin-right: auto;
  opacity: 0.92;
}
.hero-cta {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 56px;
  font-size: 12px; letter-spacing: 0.28em; font-weight: 500;
  padding: 14px 28px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 100px;
  transition: background 0.3s, border-color 0.3s;
}
.hero-cta:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.hero-cta .arrow { display: inline-block; transform: translateY(0); animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* hero marquee */
.marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.25);
  padding: 14px 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 14px; letter-spacing: 0.22em;
  color: rgba(255,255,255,0.85);
  z-index: 2;
}
.marquee-track {
  display: inline-flex; gap: 36px; white-space: nowrap;
  animation: scroll 32s linear infinite;
  padding-right: 36px;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ===== section atoms ===== */
.section-eyebrow {
  font-size: 11px; letter-spacing: 0.32em; font-weight: 500;
  color: var(--mute);
  margin-bottom: 18px;
}
h2 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(48px, 7.5vw, 110px);
  line-height: 0.95;
  letter-spacing: 0.005em;
}
h2 em {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 400;
  color: var(--gold);
}
.lead {
  font-size: clamp(17px, 1.4vw, 22px);
  line-height: 1.5;
  max-width: 620px;
  margin-top: 24px;
  color: var(--ink-soft);
}
.section-head {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  margin-bottom: 64px;
}
.section-lead {
  margin-top: 18px;
  max-width: 540px;
  color: var(--mute);
}
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 32px;
  font-size: 12px; letter-spacing: 0.28em; font-weight: 500;
  border-bottom: 1px solid currentColor;
  padding-bottom: 4px;
}
.link-arrow span { transition: transform 0.3s; }
.link-arrow:hover span { transform: translateX(6px); }
.link-arrow:hover { color: var(--blue); }
.big-cta {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 64px auto 0; padding: 18px 40px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 18px; letter-spacing: 0.18em;
  background: var(--ink); color: var(--bg);
  border-radius: 100px;
  transition: background 0.3s;
}
.big-cta:hover { background: var(--blue); }
.journal { text-align: center; }
.journal .section-head { text-align: left; }

/* reveal-on-scroll */
.reveal {
  opacity: 0; transform: translateY(40px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ===== ABOUT ===== */
.about {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--gutter);
  max-width: var(--max); margin: 0 auto;
  padding: var(--space) var(--gutter);
  align-items: center;
}
.about-image img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: 4px;
}
.about-text p { margin-top: 18px; }
@media (max-width: 800px) {
  .about { grid-template-columns: 1fr; }
}

/* ===== RACING ===== */
.racing {
  background: var(--bg-warm);
  padding: var(--space) 0;
}
.racing .section-head { text-align: left; }
.video-wrap {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
}
.video-frame {
  position: relative; aspect-ratio: 16 / 9;
  border-radius: 6px; overflow: hidden;
  cursor: none;
  background: #000;
}
.video-frame img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s;
}
.video-frame:hover img { transform: scale(1.02); opacity: 0.85; }
.play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 92px; height: 92px;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  border: 0; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: none;
  transition: transform 0.3s, background 0.3s;
}
.play-btn:hover { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.video-caption {
  margin-top: 14px;
  font-size: 11px; letter-spacing: 0.28em; color: var(--mute);
}

.race-grid {
  max-width: var(--max); margin: 64px auto 0;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.race-card {
  display: flex; flex-direction: column;
}
.race-card img {
  width: 100%; aspect-ratio: 5 / 6; object-fit: cover;
  border-radius: 4px;
  transition: transform 0.6s ease;
}
.race-card:hover img { transform: scale(1.02); }
.race-meta { padding: 18px 0; }
.race-meta .date {
  font-size: 11px; letter-spacing: 0.28em; color: var(--mute);
  margin-bottom: 10px;
}
.race-meta h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 28px; letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.race-meta p { color: var(--ink-soft); font-size: 15px; }
@media (max-width: 800px) {
  .race-grid { grid-template-columns: 1fr; }
}

/* ===== GALLERY ===== */
.gallery {
  padding: var(--space) 0;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 0 var(--gutter);
  max-width: var(--max); margin: 0 auto;
}
.tile {
  display: block;
  aspect-ratio: 1 / 1;
  background-size: cover; background-position: center;
  position: relative; overflow: hidden;
  transition: transform 0.5s ease;
}
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(14,14,14,0); transition: background 0.3s;
}
.tile:hover { transform: scale(1.02); }
.tile:hover::after { background: rgba(14,14,14,0.18); }

@media (max-width: 1100px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 700px)  { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }

/* ===== JOURNAL ===== */
.journal {
  background: var(--ink); color: var(--bg);
  padding: var(--space) 0;
}
.journal .section-eyebrow { color: rgba(247,244,238,0.55); }
.journal .section-lead { color: rgba(247,244,238,0.65); }
.journal-grid {
  max-width: var(--max); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  text-align: left;
}
.post-card {
  display: flex; flex-direction: column;
}
.post-cover {
  display: block; aspect-ratio: 4 / 5;
  background-size: cover; background-position: center;
  border-radius: 4px;
  transition: transform 0.6s ease;
}
.post-card:hover .post-cover { transform: scale(1.015); }
.post-body { padding: 22px 0; }
.post-meta {
  font-size: 11px; letter-spacing: 0.28em;
  color: rgba(247,244,238,0.55);
  margin-bottom: 14px;
}
.post-body h3 {
  font-family: "Bebas Neue", sans-serif;
  font-size: 32px; line-height: 1.05; letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.post-body p { color: rgba(247,244,238,0.75); font-size: 15px; }
.journal .link-arrow { color: var(--gold); border-color: var(--gold); margin-top: 18px; }
.journal .link-arrow:hover { color: #fff; border-color: #fff; }
.journal .big-cta { background: var(--gold); color: var(--ink); }
.journal .big-cta:hover { background: var(--bg); }

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

/* ===== CONTACT ===== */
.contact {
  padding: var(--space) var(--gutter);
}
.contact-grid {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-list {
  list-style: none;
  margin-top: 36px;
  border-top: 1px solid var(--line);
}
.contact-list li {
  display: flex; justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px; letter-spacing: 0.04em;
}
.contact-list li span:first-child {
  font-size: 11px; letter-spacing: 0.28em; color: var(--mute);
}
.contact-list a:hover { color: var(--blue); }

.contact-form {
  display: flex; flex-direction: column; gap: 22px;
}
.contact-form label {
  display: flex; flex-direction: column; gap: 8px;
  font-size: 11px; letter-spacing: 0.28em; color: var(--mute);
}
.contact-form input, .contact-form textarea {
  border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 0;
  font-family: inherit; font-size: 17px; color: var(--ink);
  resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-bottom-color: var(--ink);
}
.contact-form button {
  align-self: flex-start;
  margin-top: 12px;
  padding: 16px 36px;
  background: var(--ink); color: var(--bg);
  border: 0; border-radius: 100px;
  font-family: "Bebas Neue", sans-serif;
  font-size: 16px; letter-spacing: 0.2em;
  cursor: none;
  transition: background 0.3s;
}
.contact-form button:hover { background: var(--blue); }

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-warm);
  padding: 60px var(--gutter) 32px;
}
.footer-row {
  max-width: var(--max); margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 36px; letter-spacing: 0.12em;
}
.footer-links, .footer-social {
  list-style: none; display: flex; gap: 24px;
  font-size: 12px; letter-spacing: 0.22em;
}
.footer-links a:hover, .footer-social a:hover { color: var(--blue); }
.footer-base {
  max-width: var(--max); margin: 0 auto;
  padding-top: 24px;
  display: flex; justify-content: space-between;
  font-size: 11px; letter-spacing: 0.22em; color: var(--mute);
}
@media (max-width: 800px) {
  .footer-row { flex-direction: column; align-items: flex-start; }
  .footer-base { flex-direction: column; gap: 8px; }
}
