/* =============================================
   ORATIAS CREATIVE — Portfolio CSS
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --text: #ffffff;
  --text-muted: #666666;
  --accent: #ffffff;
  --gap: 3px;
  --transition: 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: none;
}

/* =============================================
   CUSTOM CURSOR
   ============================================= */
.cursor {
  position: fixed;
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-follower {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: transform 0.12s ease, width 0.3s, height 0.3s, opacity 0.3s;
  mix-blend-mode: difference;
}

.cursor.hover {
  width: 6px;
  height: 6px;
}

.cursor-follower.hover {
  width: 60px;
  height: 60px;
  opacity: 0.6;
}

/* =============================================
   LOADER
   ============================================= */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.loader-logo {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: 0.3em;
  opacity: 0;
  transform: translateY(30px);
  text-transform: uppercase;
}

.loader-bar {
  margin-top: 40px;
  width: 200px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  overflow: hidden;
}

.loader-bar-fill {
  height: 100%;
  background: #fff;
  width: 0%;
  transition: width 0.05s linear;
}

/* =============================================
   NAVIGATION
   ============================================= */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  mix-blend-mode: difference;
}

.nav-logo {
  text-decoration: none;
  color: inherit;
  display: block;
}

.nav-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
}

.nav-logo-text {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #fff;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
}

.nav-links {
  display: flex;
  gap: 40px;
  list-style: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.5;
  transition: opacity 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: #fff;
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* =============================================
   HERO (Home Page)
   ============================================= */
.hero {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-title {
  font-size: clamp(60px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  line-height: 1;
  overflow: visible;  /* must be visible so displacement isn't clipped */
  will-change: filter;
  cursor: default;
}

.hero-title .line {
  display: block;
  transform: translateY(100%);
}

/* ─── Hero Letter — Magnetic Pull ─── */
.hero-letter {
  display: inline-block;
  will-change: transform;
  cursor: default;
}


.hero-subtitle {
  margin-top: 24px;
  font-size: 11px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  opacity: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 48px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
}

.hero-scroll span {
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,0.2);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.7);
  animation: scrollDown 1.8s ease-in-out infinite;
}

@keyframes scrollDown {
  0% { top: -100%; }
  100% { top: 100%; }
}

/* =============================================
   WORK GRID
   ============================================= */
.work-section {
  padding: 0;
}

/* ─── Section Header — Accordion ─── */
.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 100px 48px 48px;
  cursor: pointer;
  user-select: none;
}

.section-title {
  font-size: clamp(38px, 6.3vw, 86px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
  transition: opacity 0.3s ease;
}

.section-header:hover .section-title {
  opacity: 0.6;
}

.section-arrow {
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.3s ease,
              background 0.3s ease;
  flex-shrink: 0;
}

.section-header:hover .section-arrow {
  border-color: rgba(255,255,255,0.5);
  background: rgba(255,255,255,0.05);
}

.section-header.open .section-arrow {
  transform: rotate(180deg);
}

/* ─── Section Content — Collapse ─── */
.section-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section-content.open {
  max-height: 9999px;
  transition: max-height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* legacy label (unused now) */
.section-label {
  display: none;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: var(--gap);
}

.work-item {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-2);
  cursor: none;
  min-height: 0;
}

.work-item > img:not(.award-badge),
.work-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition);
  display: block;
}

/* ─── Key Arts — section label flush ─── */
#key-arts .section-label {
  padding-bottom: 0;
}

/* ─── Key Arts — Featured Row (enlarged) ─── */
.key-arts-featured {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  align-items: flex-start;
}

.key-arts-featured .work-item {
  flex: 1;
  height: clamp(380px, 48vw, 720px);
  aspect-ratio: unset;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.key-arts-featured .work-item > img:not(.award-badge) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  margin: 0;
  padding: 0;
}

/* ─── Key Arts — Masonry (natural sizes, no gaps) ─── */
#key-arts .work-grid {
  display: block;
  column-count: 3;
  column-gap: 0;
  gap: 0;
  margin: 0;
  padding: 0;
  font-size: 0; /* kill inline-block whitespace gaps */
  line-height: 0;
}

#key-arts .work-grid .work-item {
  break-inside: avoid;
  display: inline-block;
  width: 100%;
  aspect-ratio: unset;
  margin: 0;
  padding: 0;
  vertical-align: top;
}

#key-arts .work-grid .work-item > img:not(.award-badge) {
  width: 100%;
  height: auto;
  object-fit: unset;
  background: none;
  display: block;
  margin: 0;
  padding: 0;
}

.work-item video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform var(--transition);
}

.work-item:hover video {
  opacity: 1;
}

.work-item:hover > img:not(.award-badge),
.work-item:hover video {
  transform: scale(1.04);
}

.work-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.85) 0%,
    rgba(0,0,0,0.2) 50%,
    rgba(0,0,0,0) 100%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 28px;
}

.work-item:hover .work-overlay {
  opacity: 1;
}

/* ── Award badge (e.g. Promax Gold) ───────────── */
/* PNG is now trimmed tight to the laurel (495x624, aspect ~0.79).
   Widths chosen to render ~110px visual width on featured cards
   (≈10% larger than the original 100px laurel area). */
.work-item .award-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
  top: auto;
  left: auto;
  width: 90px;
  height: auto;
  z-index: 4;
  pointer-events: none;
  background: transparent;
  filter: none;            /* no shadow / halo — clean logo on artwork */
  transition: transform 0.5s cubic-bezier(0.16,1,0.3,1);
  object-fit: contain;
}
.work-item:hover .award-badge {
  transform: scale(1.06) rotate(-2deg);
}
/* Smaller on tight grid */
#key-arts .work-grid .work-item .award-badge {
  width: 70px;
  bottom: 12px;
  right: 12px;
}
/* Larger on the big featured cards */
.key-arts-featured .work-item .award-badge {
  width: 110px;
  bottom: 22px;
  right: 22px;
}
@media (max-width: 768px) {
  .work-item .award-badge { width: 58px; bottom: 12px; right: 12px; }
  .key-arts-featured .work-item .award-badge { width: 72px; bottom: 14px; right: 14px; }
}

.work-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: normal;       /* reset masonry's line-height:0 */
}

.work-info h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.25;
  margin: 0;
  transform: translateY(12px);
  transition: transform 0.4s ease;
}

.work-info span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  line-height: 1.4;
  margin: 0;
  transform: translateY(12px);
  transition: transform 0.4s ease 0.05s;
}

.work-item:hover .work-info h3,
.work-item:hover .work-info span {
  transform: translateY(0);
}

/* Reveal animation */
.work-item {
  opacity: 0;
  transform: translateY(40px);
  transition-property: opacity, transform;
  transition-duration: 0.8s;
  transition-timing-function: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.work-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* =============================================
   KEY ARTS PAGE
   ============================================= */
.page-hero {
  padding: 180px 48px 80px;
}

.page-title {
  font-size: clamp(40px, 8vw, 100px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  overflow: hidden;
}

.page-title .line {
  display: block;
  transform: translateY(100%);
}

.key-arts-grid {
  padding: 0 var(--gap);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
}

.key-art-item {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.key-art-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

.key-art-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--transition);
}

.key-art-item:hover img {
  transform: scale(1.03);
}

.key-art-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    transparent 50%
  );
  opacity: 0;
  transition: opacity 0.4s;
  display: flex;
  align-items: flex-end;
  padding: 32px;
}

.key-art-item:hover .key-art-overlay {
  opacity: 1;
}

.key-art-info {
  font-size: 13px;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
}

.key-art-info strong {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 4px;
}

/* Award badge */
.award-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255,215,0,0.15);
  border: 1px solid rgba(255,215,0,0.4);
  color: #ffd700;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 6px 12px;
  backdrop-filter: blur(10px);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.94);
  transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox.open .lightbox-inner {
  transform: scale(1);
}

.lightbox-inner img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox-inner video {
  max-width: 92vw;
  max-height: 88vh;
  display: block;
  outline: none;
}

.lightbox-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.55);
  font-size: 11px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3001;
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
  line-height: 1;
}
.lightbox-arrow:hover {
  color: #fff;
  border-color: rgba(255,255,255,0.7);
  transform: translateY(-50%) scale(1.1);
}
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-arrow.hidden { opacity: 0; pointer-events: none; }

.lightbox-close {
  position: fixed;
  top: 28px;
  right: 40px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: none;
  opacity: 0.35;
  transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  line-height: 1;
  z-index: 3001;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 300;
}

.lightbox-close:hover {
  opacity: 1;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-caption {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
}

.lightbox-caption h3 {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.75);
}

.lightbox-caption span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 5px;
}

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 160px 48px 80px;
}

.contact-intro {
  font-size: clamp(32px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.1;
  max-width: 800px;
  overflow: hidden;
}

.contact-intro .line {
  display: block;
  transform: translateY(100%);
}

.contact-intro em {
  font-style: normal;
  color: rgba(255,255,255,0.3);
}

.contact-links {
  margin-top: 80px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease, padding-left 0.3s ease;
}

.contact-link.revealed {
  opacity: 1;
  transform: translateY(0);
}

.contact-link:hover {
  padding-left: 20px;
}

.contact-link:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.contact-link-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.contact-link-value {
  font-size: clamp(18px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: 0.02em;
}

.contact-link-arrow {
  font-size: 24px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.3s, transform 0.3s;
}

.contact-link:hover .contact-link-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* =============================================
   CATEGORY FILTER
   ============================================= */
.filter-bar {
  padding: 0 48px 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: none;
  color: rgba(255,255,255,0.3);
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  cursor: none;
  padding: 0;
  transition: color 0.3s;
  font-family: 'Inter', sans-serif;
}

.filter-btn:hover,
.filter-btn.active {
  color: #fff;
}

/* =============================================
   FOOTER
   ============================================= */
footer {
  padding: 60px 48px 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 120px;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  margin-bottom: 40px;
  justify-content: center;
}
.footer-contact a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  text-align: center;
  align-items: center;
  transition: opacity 0.25s ease;
}
.footer-contact a:hover { opacity: 0.55; }
.footer-contact .footer-label {
  font-size: 9px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}
.footer-contact .footer-value {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.85);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.footer-bottom p {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.2);
  margin: 0;
}

.back-top {
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  transition: color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}
.back-top:hover { color: #fff; transform: translateY(-2px); }

/* Footer logo — same look as the nav logo */
.footer-logo {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: opacity 0.3s ease;
}
.footer-logo:hover { opacity: 0.6; }

@media (max-width: 600px) {
  footer { padding: 44px 24px 22px; margin-top: 80px; }
  .footer-contact { gap: 20px 28px; margin-bottom: 28px; }
  .footer-contact .footer-value { font-size: 13px; }
}

/* =============================================
   PAGE TRANSITIONS
   ============================================= */
.page-transition {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 500;
  transform: translateY(100%);
  pointer-events: none;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .work-item:nth-child(4n+1),
  .work-item:nth-child(7n+4) {
    grid-column: span 1;
  }

  #key-arts .work-grid {
    column-count: 2;
  }

  .key-arts-featured .work-item {
    height: clamp(220px, 28vw, 420px);
  }

  nav {
    padding: 24px 32px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 20px 24px;
  }

  .nav-links {
    gap: 24px;
  }

  .work-grid {
    grid-template-columns: 1fr;
  }

  .work-item:nth-child(n) {
    grid-column: span 1;
  }

  .key-arts-grid {
    grid-template-columns: 1fr;
  }

  #key-arts .work-grid {
    column-count: 1;
  }

  .key-arts-featured {
    flex-direction: column;
  }

  .key-arts-featured .work-item {
    height: 55vw;
  }

  .page-hero {
    padding: 140px 24px 60px;
  }

  .section-label,
  .filter-bar {
    padding-left: 24px;
    padding-right: 24px;
  }

  .contact-section {
    padding: 140px 24px 60px;
  }

  footer {
    padding: 40px 24px;
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

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

/* =============================================
   UTILITIES
   ============================================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.overflow-hidden { overflow: hidden; }

/* ─── Hero background montage ─── */
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
/* Darkening layer — tune the 0.55 (0 = none, 1 = black) */
.hero-bg-dim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  pointer-events: none;
}
