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

/* ── Tokens ────────────────────────────────────────────── */
:root {
  --bg:        #EDEAE3;
  --ink:       #111111;
  --white:     #FFFFFF;
  --muted:     rgba(17, 17, 17, 0.42);
  --border:    rgba(17, 17, 17, 0.1);
  --ff-display: 'Syne', sans-serif;
  --ff-body:    'Inter', sans-serif;
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  cursor: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Cursor ────────────────────────────────────────────── */
.cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--ink);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  will-change: left, top;
  transition: width .18s var(--ease-out), height .18s var(--ease-out);
}
.cursor-ring {
  position: fixed;
  width: 34px; height: 34px;
  border: 1.5px solid rgba(17,17,17,0.28);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  will-change: left, top;
  transition: width .32s var(--ease-out), height .32s var(--ease-out), border-color .25s;
}
body.cursor-hover .cursor      { width: 13px; height: 13px; }
body.cursor-hover .cursor-ring { width: 50px; height: 50px; border-color: rgba(17,17,17,.45); }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 1.375rem 2.5rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-left {
  display: flex;
  flex-direction: column;
  gap: .18rem;
}

.nav-link {
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .09em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
  line-height: 1.55;
}
.nav-link:hover { color: var(--ink); }

.nav-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.nav-name {
  font-family: var(--ff-display);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .09em;
  color: var(--ink);
  line-height: 1.55;
}

.nav-title {
  font-size: .6875rem;
  letter-spacing: .07em;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #FAF7F2;
  border-bottom: 1px solid var(--border);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 65% 45%, transparent 30%, rgba(200, 195, 186, 0.18) 100%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 2.5rem;
  animation: heroFadeIn 1s var(--ease-out) both;
}

.hero-headline {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #8B1538;
  margin: 0 0 2rem 0;
  transform: none;
}

.hero-headline span { display: block; }

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 2rem;
  background: rgba(245, 241, 237, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #8B1538;
  border: 2px solid #8B1538;
  font-family: var(--ff-body);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-decoration: none;
  border-radius: 50px;
  transition: transform .2s var(--ease-out), background .2s, color .2s, box-shadow .2s;
  cursor: none;
}
.hero-btn:hover {
  transform: translateY(-2px);
  background: #8B1538;
  color: #fff;
  box-shadow: 0 10px 28px rgba(139,21,56,.25);
}

/* Collage */
.hero-collage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.hero-collage-img {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  will-change: opacity;
  transition: opacity .15s ease;
  pointer-events: none;
  border-radius: 2px;
}

/* Mobile marquee */
.hero-marquee {
  display: none;
  position: absolute;
  inset: 0;
  flex-direction: column;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  opacity: 0.72;
}

.marquee-row {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.marquee-track {
  display: flex;
  gap: 8px;
  animation: marqueeScroll linear infinite;
  width: max-content;
}

.marquee-track.reverse {
  animation-direction: reverse;
}

.marquee-img {
  height: calc(33.3vh - 6px);
  width: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.333%); }
}

.hero-headline {
  font-family: 'Syne', sans-serif;
}

@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Section tag ───────────────────────────────────────── */
.section-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Section connector ─────────────────────────────────── */
.section-connector {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 2.5rem;
  margin: 0;
}

.section-connector-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.section-connector-num {
  font-size: .625rem;
  letter-spacing: .12em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* ── About ─────────────────────────────────────────────── */
.about {
  padding: 6rem 2.5rem 4rem;
}

.about-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 5rem;
  max-width: 1200px;
}

.about-label { padding-top: .35rem; }

.about-intro {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -.02em;
  margin-bottom: 2rem;
}

.about-body {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
  max-width: 680px;
}

.about-body p {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink);
}

/* ── Tools ─────────────────────────────────────────────── */
.tools {
  padding: 0 2.5rem 5rem;
}

.tools-inner {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 0 5rem;
  max-width: 1200px;
  align-items: start;
}

.tools-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  padding-top: .1rem;
}

.tools-list li {
  font-size: .8125rem;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: .02em;
  padding: .375rem .875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
}

/* ── Work ──────────────────────────────────────────────── */
.work {
  padding: 0 2.5rem 2rem;
}

.work-label {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

/* project rows */
.project-row {
  display: grid;
  grid-template-columns: 1fr 80px 200px 120px;
  align-items: center;
  gap: 1.5rem;
  padding: 1.25rem 0;
  text-decoration: none;
  color: inherit;
  cursor: none;
  position: relative;
  transition: padding-left .3s var(--ease-out);
}

.project-row:hover { padding-left: .875rem; }

.project-row-indicator {
  position: absolute;
  left: -1rem;
  font-size: 1rem;
  opacity: 0;
  transition: opacity .2s, left .3s var(--ease-out);
}
.project-row:hover .project-row-indicator { opacity: 1; left: .2rem; }

.project-row-title {
  font-family: var(--ff-display);
  font-size: clamp(1.125rem, 2.2vw, 1.875rem);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  transition: opacity .2s;
}
.project-row:hover .project-row-title { opacity: .5; }

.project-row-year {
  font-size: .8125rem;
  color: var(--muted);
  text-align: center;
}

.project-row-cat {
  font-size: .8125rem;
  color: var(--muted);
  text-align: right;
}

.project-row-thumb {
  width: 110px;
  height: 78px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}

.project-row-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .55s var(--ease-out);
}
.project-row:hover .project-row-thumb img { transform: scale(1.1); }

.project-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── Contact ───────────────────────────────────────────── */
.contact {
  padding: 6rem 2.5rem;
  border-top: 1px solid var(--border);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 3rem;
  max-width: 1200px;
}

.contact-heading {
  font-family: var(--ff-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -.02em;
  margin-bottom: 1.5rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  padding: .7rem 1.5rem;
  border: 1.5px solid var(--ink);
  font-family: var(--ff-body);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--ink);
  text-decoration: none;
  border-radius: 100px;
  transition: background .22s, color .22s;
}
.contact-btn:hover {
  background: var(--ink);
  color: var(--bg);
}

.contact-dot {
  font-size: 1.5rem;
  color: var(--muted);
  text-align: center;
  align-self: center;
}

.contact-right {
  display: flex;
  flex-direction: column;
}

.contact-social {
  display: flex;
  align-items: center;
  gap: .875rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
  font-size: .9375rem;
  color: var(--ink);
  text-decoration: none;
  transition: opacity .2s, padding-left .25s var(--ease-out);
}
.contact-social:first-child { border-top: 1px solid var(--border); }
.contact-social:hover { opacity: .55; padding-left: .5rem; }

.social-num {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  min-width: 2.5rem;
}

/* ── Footer CTA ────────────────────────────────────────── */
.footer-cta {
  padding: 2.5rem 2.5rem 0;
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.footer-cta span {
  display: block;
  font-family: var(--ff-display);
  /* responsive: fills width, wraps to 2 lines on smaller screens */
  font-size: clamp(2.75rem, 7.5vw, 9rem);
  font-weight: 800;
  color: var(--ink);
  line-height: .9;
  letter-spacing: -.03em;
}

.footer-bottom {
  padding: 2rem 2.5rem 3rem;
  display: flex;
  justify-content: flex-end;
}

.footer-bottom span {
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .04em;
}

/* ── Scroll Reveal ─────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease-out), transform .65s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Project Page ──────────────────────────────────────── */
.project-page {
  padding: 4rem 2.5rem 6rem;
  max-width: 1200px;
  margin: 0 auto;
}

.project-page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--muted);
  text-decoration: none;
  transition: color .2s;
}
.back-btn:hover { color: var(--ink); }

.project-page-meta-top {
  display: flex;
  gap: 1.5rem;
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.project-page-title {
  font-family: var(--ff-display);
  font-size: clamp(2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: .95;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

.project-page-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0 5rem;
  margin-bottom: 3rem;
}

.project-page-stats {
  display: flex;
  flex-direction: column;
}

.project-stat {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: .875rem 0;
  border-bottom: 1px solid var(--border);
}

.stat-label {
  font-size: .6875rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-val {
  font-size: .9375rem;
  color: var(--ink);
  font-weight: 400;
}

.project-page-overview h2 {
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: .875rem;
  letter-spacing: -.01em;
}

.project-page-overview p {
  font-size: .9375rem;
  font-weight: 300;
  line-height: 1.78;
  color: var(--ink);
  margin-bottom: 1.75rem;
  max-width: 640px;
}

.deliverables { margin-top: 1.5rem; }

.deliverables h3 {
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .75rem;
}

.deliverables-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
}

.deliverables-list li {
  font-size: .8125rem;
  padding: .35rem .875rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--ink);
}

/* project image gallery */
.project-gallery {
  margin-top: 3.5rem;
}

.project-gallery h3 {
  font-size: .6875rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.25rem;
  padding-bottom: .875rem;
  border-bottom: 1px solid var(--border);
}

.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}


.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
  background: #dedad2;
}

.project-behance-cta {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.project-behance-cta a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--ff-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -.01em;
  transition: opacity .2s;
}
.project-behance-cta a:hover { opacity: .5; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-inner,
  .tools-inner  { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-label  { display: none; }

  .project-page-body { grid-template-columns: 1fr; gap: 2.5rem; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-dot { display: none; }

}

@media (max-width: 680px) {
  .nav { padding: 1.125rem 1.25rem; }
  .hero-collage { display: none; }
  .hero-marquee { display: flex; }

  .about,
  .tools,
  .work,
  .contact,
  .footer-cta,
  .footer-bottom,
  .project-page { padding-left: 1.25rem; padding-right: 1.25rem; }

  .hero { padding: 2rem 1.25rem 0; }

  .project-row {
    grid-template-columns: 1fr 90px;
  }
  .project-row-year,
  .project-row-cat { display: none; }

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