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

/* ─── Fonts ──────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;900&family=Roboto+Mono:wght@400;500&display=swap');

/* ─── Base ───────────────────────────────────────────────── */
body {

  font-family: 'Inter', sans-serif;
  letter-spacing: -0.25px;
 /* background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 40%, #f0f9ff 70%, #e0f2fe 100%);*/
 background-color: #fafafa;
  background-attachment: fixed;
  min-height: 100vh;
  color: #0a0a0a;
  -webkit-font-smoothing: antialiased;
}

.site-loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #e2e5e2;
  opacity: 1;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.site-loader img {
  width: min(42vw, 240px);
  height: auto;
}

.site-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.skip-site-loader .site-loader {
  display: none;
}

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

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

.initial-site-visit .home-page .main {
  animation: pageContentReveal 0.7s 1.9s ease-out both;
}

.initial-site-visit .home-page .main > * {
  animation: contentItemReveal 0.55s 2.05s ease-out both;
}

.initial-site-visit .home-page .hero > * {
  animation: contentItemReveal 0.45s ease-out both;
}

.initial-site-visit .home-page .hero > :nth-child(1) { animation-delay: 2.05s; }
.initial-site-visit .home-page .hero > :nth-child(2) { animation-delay: 2.13s; }
.initial-site-visit .home-page .hero > :nth-child(3) { animation-delay: 2.21s; }

.initial-site-visit .home-page .work-item { animation: contentItemReveal 0.45s ease-out both; }
.initial-site-visit .home-page .work-item:nth-child(1) { animation-delay: 2.18s; }
.initial-site-visit .home-page .work-item:nth-child(2) { animation-delay: 2.24s; }
.initial-site-visit .home-page .work-item:nth-child(3) { animation-delay: 2.30s; }
.initial-site-visit .home-page .work-item:nth-child(4) { animation-delay: 2.36s; }
.initial-site-visit .home-page .work-item:nth-child(5) { animation-delay: 2.42s; }
.initial-site-visit .home-page .work-item:nth-child(6) { animation-delay: 2.48s; }
.initial-site-visit .home-page .work-item:nth-child(7) { animation-delay: 2.54s; }
.initial-site-visit .home-page .work-item:nth-child(8) { animation-delay: 2.60s; }
.initial-site-visit .home-page .work-item:nth-child(9) { animation-delay: 2.66s; }

@media (prefers-reduced-motion: reduce) {
  .initial-site-visit .home-page .main,
  .initial-site-visit .home-page .main > *,
  .initial-site-visit .home-page .hero > *,
  .initial-site-visit .home-page .work-item {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

/* ─── Layout ─────────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.layout-home {
  grid-template-columns:1fr;
}


.rv-logo{
  width: 30%;
  opacity: 0.25;
}

}

.logo-mark {
  font-family: 'Inter', sans-serif;
  font-weight: 900;
  font-size: 26px;
  letter-spacing: -0.05em;
  color: #0a0a0a;
  line-height: 1;
  text-decoration: none;
  display: block;
}

.nav-section { display: flex; flex-direction: column; gap: 0.4rem; }

.nav-label {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: rgba(0,0,0,0.3);
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

.nav-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 12.5px;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 3px 0;
  transition: color 0.15s;
}
.nav-link::before { content: '>'; opacity: 0.35; font-size: 10px; }
.nav-link:hover, .nav-link.active { color: rgba(0,0,0,0.9); }

.resume-entry { margin-bottom: 0.65rem; }
.resume-title {
  font-family: 'Space Mono', monospace;
  font-size: 11.5px;
  color: rgba(0,0,0,0.7);
  font-weight: 500;
  line-height: 1.5;
}
.resume-co {
  font-family: 'Space Mono', monospace;
  font-size: 10.5px;
  color: rgba(0,0,0,0.35);
}

.tagline {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  color: rgba(0,0,0,0.18);
  letter-spacing: 0.05em;
  margin-top: auto;
}

/* ─── Main ───────────────────────────────────────────────── */
.main {
  padding: 3rem;;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  width: clamp(320px, 90%, 750px);
  margin: 0 auto;
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero { display: flex; flex-direction: column; gap: 1rem; }

.hero h1 {
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.hero h2 {
  font-size: clamp(1.25rem, 1.75rem, 2rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.3;
  max-width: 500px;
}

.about-name {
  position: relative;
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.about-name-label {
  border-bottom: 1.75px dotted currentColor;
}

.about-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.55rem);
  z-index: 2;
  width: max-content;
  max-width: 70vw;
  padding: 0.35rem 0.55rem;
  border: 0.5px solid rgba(0,0,0,0.14);
  border-radius: 2px;
  background: #fff;
  color: rgba(0,0,0,0.62);
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 0.3rem);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.about-tooltip::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 100%;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 0.5px solid rgba(0,0,0,0.14);
  border-bottom: 0.5px solid rgba(0,0,0,0.14);
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.about-name:hover .about-tooltip,
.about-name:focus-visible .about-tooltip {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.about-name:focus-visible {
  outline: 1px solid rgba(0,0,0,0.45);
  outline-offset: 3px;
}

.hero p {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(0,0,0,0.5);
  max-width: 600px;
}

.hero-intro {
  font-size: 16px;
  line-height: 1.7;
  color: #9f9c9c;
  font-weight: 100;
}

.hero-email {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  border: 0.5px solid rgba(0,0,0,0.16);
  padding: 0.4rem 1rem;
  border-radius: 2px;
  margin-top: 0.5rem;
  width: fit-content;
  transition: background 0.15s;
  background:transparent;
  cursor: pointer;
}
.hero-email:hover { background: rgba(0,0,0,0.04); }



/* ─── Work List ──────────────────────────────────────────── */
.work-header {
  font-family: 'Roboto Mono', monospace;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(0,0,0,0.28);
  text-transform: uppercase;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
}

.work-list { display: flex; flex-direction: column; }

.work-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  border-bottom: 0.5px solid rgba(0,0,0,0.06);
  gap: 1.5rem;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.work-item:hover { background: #f5f5f5; transition:0.25s}
.work-item:hover .work-title { color: #000; }
.work-item:hover .arrow { color: rgba(0,0,0,0.5); }

.work-left { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }

.work-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(0,0,0,0.72);
  transition: color 0.15s;
}

.work-client {
  font-family: 'Roboto Mono', monospace;
  font-size: 12px;
  color: rgba(0,0,0,0.32);
}

.work-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.tag-row { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }

/* ─── Tags ───────────────────────────────────────────────── */
.tag {
  font-family: 'Roboto Mono', monospace;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.07em;
  padding: 0.18rem 0.5rem;
  border-radius: 2px;
  border: 0.5px solid;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag-brand    { color: #534AB7; border-color: #AFA9EC; background: #EEEDFE; }
.tag-ui       { color: #185FA5; border-color: #85B7EB; background: #E6F1FB; }
.tag-print    { color: #3B6D11; border-color: #97C459; background: #EAF3DE; }
.tag-frontend { color: #854F0B; border-color: #EF9F27; background: #FAEEDA; }
.tag-campaign { color: #993C1D; border-color: #F0997B; background: #FAECE7; }
.tag-web      { color: #0F6E56; border-color: #5DCAA5; background: #E1F5EE; }

.arrow {
   width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(0,0,0,0.16);
  transition: color 0.15s;
}

/* ─── Project Page ───────────────────────────────────────── */
.project-header { display: flex; flex-direction: column; gap: 1.25rem; }

.back-link {
  font-family: 'Roboto Mono', monospace;
  font-size: 14px;
  color: rgba(0,0,0,0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.15s;
}
.back-link:hover { color: rgba(0,0,0,0.8); }

.project-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.project-client {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  color: rgba(0,0,0,0.4);
}

.project-divider {
  width: 0.5px;
  height: 12px;
  background: rgba(0,0,0,0.15);
}

.project-body { display: flex; flex-direction: column; gap: 3rem; }

.project-section-label {
  font-family: Inter, sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: 000000;
  padding-bottom: 0.6rem;
  border-bottom: 0.5px solid rgba(0,0,0,0.07);
  margin-bottom: 1.25rem;
}

.project-text {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(0,0,0,0.6);
  max-width: 560px;
}

/* ─── Image placeholders ─────────────────────────────────── */
.img-placeholder {
  width: 100%;
  background: rgba(255,255,255,0.45);
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: rgba(0,0,0,0.25);
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.05em;
}
.img-placeholder.tall  { aspect-ratio: 16/9; }
.img-placeholder.wide  { aspect-ratio: 21/9; }
.img-placeholder.sq    { aspect-ratio: 1/1; }
.img-placeholder.port  { aspect-ratio: 3/4; }

.img-placeholder svg {
  width: 24px;
  height: 24px;
  opacity: 0.3;
}

/* ─── Project Images and Videos ─────────────────────────────────────── */

.project-img {
      width: 100%;
      border-radius: 4px;
      border: 0.5px solid rgba(0,0,0,0.08);
      display: block;
    }
    .project-video {
      width: 100%;
      display: block;
      border-radius: 4px;
      border: 0.5px solid rgba(0,0,0,0.08);
    }

.project-img.tall  { aspect-ratio: 16/9; }
.project-img.wide  { aspect-ratio: 21/9; }
.project-img.sq    { aspect-ratio: 1/1; }
.project-img.port  { aspect-ratio: 3/4; }

.project-img.cover {
  object-fit: cover;
  border: none;
}

.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.img-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
}

/* ─── Collateral description ───────────────────────────────── */
.collateral-caption {
  font-family: 'Roboto Mono', monospace;
  font-size: 10.5px;
  color: rgba(0,0,0,0.35);
  margin-top: 0.5rem;
}

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 0.5px solid rgba(0,0,0,0.08);
    padding: 1.5rem;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
  }
  .tagline { display: none; }
  .nav-section:not(:first-of-type) { display: none; }
  .main { padding: 2rem 1.5rem; margin: 0; width: 100%; }
  .img-grid-2, .img-grid-3 { grid-template-columns: 1fr; }
}
