/* ============================================================
   styles-mobile.css  —  max-width: 767px
   Standalone stylesheet (no cascade from styles.css)
   ============================================================ */

/* ---- Custom properties ---- */
:root {
  --theme-red: #E32424;
  --theme-alt: #F7F7F7;
  --theme-black: #222;
  --font-inter: 'Inter', Arial, sans-serif;
}

/* ---- No custom cursor on mobile ---- */
html, body {
  cursor: auto;
}

/* ---- Base reset ---- */
body {
  margin: 0;
  font-family: var(--font-inter);
  background: var(--theme-alt);
  color: var(--theme-red);
}

/* ---- Shared container: column layout ---- */
.container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--theme-alt);
}

/* ---- Top bar replaces sidebar ---- */
.sidebar {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--theme-alt);
  width: 100%;
  box-sizing: border-box;
  display: flex;
}
.sidebar nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.sidebar nav a {
  font-size: 18px;
  color: var(--theme-red);
  text-decoration: none;
  font-weight: 400;
}

/* ---- Title: no wipe animation, direct color ---- */
.title {
  font-size: 32px;
  font-weight: 400;
  color: var(--theme-red);
  text-decoration: none;
  margin-bottom: 0;
  display: block;
  position: static;
  animation: none;
  clip-path: none;
}
.title::after {
  display: none;
}

/* ---- Nav ---- */
.nav {
  display: flex;
  flex-direction: row;
  gap: 20px;
}
.nav-item {
  position: relative;
  font-size: 18px;
  color: var(--theme-red);
  text-decoration: none;
  font-weight: 300;
  font-family: var(--font-inter);
  transition: color 0.2s;
}
.nav-item::after {
  content: "";
  position: absolute;
  left: 0%;
  bottom: 0em;
  width: 0;
  height: 2px;
  background: var(--theme-red);
  transition: width 0.2s, left 0.2s;
}
.nav-item:hover::after,
.nav-item.active::after {
  width: 75%;
}

/* ---- Project content area ---- */
.project-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* ---- Project video (full / medium / small) ---- */
.project-video {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}
.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
}

.project-video-medium {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}
.project-meta-medium {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
}

.project-video-small {
  width: 100%;
  max-width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}
.project-meta-small {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-top: 18px;
}

/* ---- Triple player: stacked vertically ---- */
.triple-player-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}
.triple-player-wrap video {
  width: 100%;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* ---- Project nav: full width, override inline styles ---- */
.project-nav {
  display: flex;
  justify-content: space-between;
  width: 100% !important;
  max-width: 100% !important;
  margin-top: 16px;
}
.project-nav a {
  font-size: 1.1rem;
  color: var(--theme-black);
  text-decoration: none;
  font-family: var(--font-inter);
  font-weight: 300;
  opacity: 0.7;
  transition: opacity 0.2s;
}
.project-nav a:hover {
  opacity: 1;
}

/* ---- Homepage staggered boxes ---- */
.staggered-container {
  margin-left: 0;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 100vh;
  box-sizing: border-box;
}
.staggered-box {
  width: 100%;
  aspect-ratio: 480 / 284;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  transition: filter 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  margin-bottom: 0;
}
.staggered-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.staggered-box:hover img {
  transform: scale(1.05);
}
.staggered-box:hover {
  filter: brightness(0.7);
}
.staggered-caption {
  width: 100%;
  margin: 5px 0 32px 0;
  color: #111;
}
.staggered-caption-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

/* No stagger offset on mobile */
.staggered-box.staggered,
.staggered-caption.staggered {
  margin-left: 0;
}

/* ---- Video caption text ---- */
.video-title {
  font-size: 1rem;
  font-family: var(--font-inter);
  font-weight: 400;
  letter-spacing: 0.01em;
  margin-bottom: 0.2em;
  text-align: left;
  color: var(--theme-red);
}
.video-subtitle {
  font-size: 0.9rem;
  font-family: var(--font-inter);
  font-weight: 300;
  color: var(--theme-black);
  font-style: italic;
  text-align: left;
}
.video-subtitle-right {
  display: block;
  font-size: 1rem;
  font-family: var(--font-inter);
  font-weight: 300;
  color: var(--theme-black);
  font-style: normal;
  text-align: right;
}

/* ---- About / Contact layout ---- */
.about-layout {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 20px;
  background: var(--theme-alt);
}
/* Hide vertical divider on mobile */
.about-divider {
  display: none;
}
.about-content {
  max-width: 100%;
  flex: 1;
  padding: 20px 0 0 0;
  color: var(--theme-red);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-header {
  font-size: 1.2rem;
  margin-bottom: 16px;
  color: var(--theme-red);
  font-weight: 500;
  line-height: 1.5;
}
.contact-header-line {
  width: 100%;
  height: 1.5px;
  background: var(--theme-red);
  margin-bottom: 24px;
  transform-origin: left;
  animation: line-grow 0.6s cubic-bezier(0.65, 0, 0.35, 1) 0.4s both;
}
.about-emails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0rem 0rem 2rem 0rem;
}
.contact-email {
  font-weight: 400;
}
/* Contact columns: stacked */
.contact-split {
  flex-direction: column;
}
.contact-left,
.contact-right {
  display: flex;
  flex-direction: column;
}
.about-columns {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.about-col {
  flex: 1;
  white-space: normal;
}
.about-section {
  font-size: 14px;
  margin: 0px 0 8px 0;
  color: var(--theme-red);
  font-weight: bold;
}
.about-section.post-services {
  margin-top: 24px;
}
.about-col strong {
  font-weight: bold;
}
.contact-role {
  text-decoration: underline;
  margin: 0px 0px 10px 0px;
  white-space: normal;
}
.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 2px;
}

/* ---- Catalog placeholder ---- */
.catalog-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.catalog-box {
  width: 100%;
  max-width: 340px;
  aspect-ratio: 480 / 284;
  background: var(--theme-alt);
  border-radius: 4px;
  border: solid 2px var(--theme-black);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}
.catalog-message {
  font-size: 1rem;
  color: var(--theme-red);
  font-family: var(--font-inter);
  text-align: center;
  letter-spacing: 0.02em;
}
.catalog-message span {
  font-size: 0.8rem;
  color: var(--theme-black);
}

/* ---- Fade-in on scroll ---- */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(.4,0,.2,1), transform 0.7s cubic-bezier(.4,0,.2,1);
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */

/* Project page video entrance */
.project-video,
.project-video-small,
.triple-player-wrap {
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.3s both;
}
.project-meta,
.project-meta-small {
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.45s both;
}
.project-nav {
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.58s both;
}
@keyframes project-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contact horizontal line grow */
@keyframes line-grow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Page transition overlay */
.pte {
  position: fixed;
  inset: 0;
  background: var(--theme-red);
  z-index: 9999;
  pointer-events: none;
  will-change: transform;
}
.pte-out {
  animation: pte-reveal 0.6s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}
.pte-cover {
  animation: pte-cover 0.5s cubic-bezier(0.77, 0, 0.18, 1) forwards;
  pointer-events: all;
}
@keyframes pte-reveal {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}
@keyframes pte-cover {
  from { transform: translateY(-100%); }
  to   { transform: translateY(0); }
}
