/* ============================================================
   styles-ipad.css  —  768px to 1024px
   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;
  --cursor-hover: url("images/cursor-hover.png"), auto;
}

/* ---- Custom cursor ---- */
html, body {
  cursor: url("images/cursor.png"), auto;
}

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

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

/* ---- Sidebar ---- */
.sidebar {
  width: 160px;
  background: var(--theme-alt);
  padding: 32px 0 0 24px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.sidebar nav a {
  font-size: 22px;
  color: var(--theme-red);
  text-decoration: none;
  font-weight: 400;
  transition: text-decoration 0.2s;
}

/* ---- Title ---- */
.title {
  font-size: 50px;
  font-weight: 400;
  color: var(--theme-alt);
  text-decoration: none;
  margin-bottom: 39px;
  display: block;
  position: sticky;
  top: 0;
  z-index: 10;
  clip-path: inset(0 0 -60px 0);
  animation: title-color-reveal 0s 0.52s forwards;
}
.title::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--theme-red);
  transform: translateY(-101%);
  animation: title-wipe 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
  pointer-events: none;
}
@keyframes title-wipe {
  0%   { transform: translateY(-101%); clip-path: inset(0 0 0 0); }
  40%  { transform: translateY(0);     clip-path: inset(0 0 0 0); }
  60%  { transform: translateY(0);     clip-path: inset(0 0 0 0); }
  100% { transform: translateY(0);     clip-path: inset(100% 0 0 0); }
}
@keyframes title-color-reveal {
  to { color: var(--theme-red); }
}

/* ---- Nav ---- */
.nav {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.nav-item {
  position: relative;
  font-size: 36px;
  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: 3px;
  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: 40px 40px 0 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

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

/* ---- Triple player ---- */
.triple-player-wrap {
  display: flex;
  gap: 12px;
  width: 560px;
  max-width: calc(100vw - 240px);
}
.triple-player-wrap video {
  flex: 1;
  min-width: 0;
  border-radius: 8px;
  background: #000;
  display: block;
}

/* ---- Project nav ---- */
.project-nav {
  display: flex;
  justify-content: space-between;
  width: 560px;
  max-width: calc(100vw - 240px);
  margin-top: 16px;
}
.project-nav a {
  font-size: 1.4rem;
  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: 130px;
  padding: 70px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100vh;
}
.staggered-box {
  width: 320px;
  height: 190px;
  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 {
  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);
  cursor: pointer;
}
.staggered-caption {
  width: 320px;
  margin: 5px 0 48px 0;
  color: #111;
}
.staggered-caption-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}
.staggered-box.staggered,
.staggered-caption.staggered {
  margin-left: 80px;
}

/* ---- 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: row;
  align-items: center;
  height: 100vh;
  padding: 0;
  background: var(--theme-alt);
}
.about-divider {
  width: 2px;
  height: 90vh;
  background: var(--theme-red);
  margin: 180px 10px 0 0px;
  border-radius: 1px;
  flex-shrink: 0;
  transform-origin: top;
  animation: divider-draw 0.9s cubic-bezier(0.65, 0, 0.35, 1) 0.7s both;
}
.about-content {
  max-width: 800px;
  flex: 1;
  padding: 70px 0 0 60px;
  color: var(--theme-red);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.about-header {
  font-size: 1.4rem;
  margin-bottom: 20px;
  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.85s both;
}
.about-emails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0rem 0rem 2.7rem 0rem;
}
.contact-email {
  font-weight: 400;
}
.about-columns {
  display: flex;
  gap: 60px;
}
.about-col {
  flex: 1;
  white-space: nowrap;
}
.about-section {
  font-size: 14px;
  margin: 0px 0 8px 0;
  color: var(--theme-red);
  font-weight: bold;
}
.about-section.post-services {
  margin-top: 32px;
}
.about-col strong {
  font-weight: bold;
}
.contact-split {
  display: flex;
  flex-direction: row;
  gap: 80px;
  align-items: flex-start;
}
.contact-left {
  display: flex;
  flex-direction: column;
}
.contact-right {
  display: flex;
  flex-direction: column;
}
.contact-role {
  text-decoration: underline;
  margin: 0px 0px 10px 0px;
  white-space: nowrap;
}
.contact-row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 2px;
}
.about-nav .title {
  font-size: 50px;
  font-weight: 400;
  color: var(--theme-red);
  margin-bottom: 60px;
  text-decoration: none;
}
.about-nav .nav {
  display: flex;
  flex-direction: column;
  gap: 0px;
}
.about-nav .nav-item {
  font-size: 36px;
  color: var(--theme-red);
  text-decoration: none;
  font-weight: 300;
  transition: text-decoration 0.2s;
}
.about-nav .nav-item.active,
.about-nav .nav-item:hover {
  text-decoration: underline;
}

/* ---- Catalog placeholder ---- */
.catalog-center {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 40vh;
  margin-top: 160px;
  margin-left: -100px;
}
.catalog-box {
  width: 320px;
  height: 190px;
  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.55s both;
}
.catalog-message {
  font-size: 1.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.5s both;
}
.project-meta,
.project-meta-small {
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.65s both;
}
.project-nav {
  animation: project-enter 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.78s both;
}
@keyframes project-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Contact vertical divider draw-in */
@keyframes divider-draw {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* 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); }
}
