/* ============================================
   GRÉGORY BLEUZE — CSS Reset & Variables
   ============================================ */

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

:root {
  --color-black: #000;
  --color-off-white: #fafafa;
  --color-dark: #222;
  --gap: 5px;
  --header-h: 80px;
  --border-rad: 20px;
  --border-w: 5px;
  --gradient: linear-gradient(90deg, #9081fa, #1afffe, #eddd1b, #fd8f50, #fa3335);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.4s var(--ease);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
}

html, body {
  width: 100%;
  background: var(--color-black);
}

body {
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.2;
  color: var(--color-off-white);
}

/* Hide scrollbar */
::-webkit-scrollbar { display: none; }
* { -ms-overflow-style: none; scrollbar-width: none; }

/* Selection */
::selection {
  background: var(--color-off-white);
  color: var(--color-black);
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { background: none; border: none; cursor: pointer; color: inherit; }

/* ============================================
   BACKGROUND FIXED LAYER
   ============================================ */

.bg-fixed {
  position: fixed;
  inset: var(--border-w);
  border-radius: var(--border-rad);
  background: var(--color-black);
  z-index: -1;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 300;
  transition: z-index 0s 0.5s;
}

body.menu-open .header {
  z-index: 500;
  transition: z-index 0s 0s;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 30px;
  position: relative;
}

/* Spacer to balance the hamburger on the right */
.logo-spacer {
  width: 32px;
}

/* ============================================
   LOGO
   ============================================ */

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 14px;
}

.logo-img {
  height: 76px;
  width: auto;
  display: block;
  transition: opacity 0.4s ease;
}

/* Canvas overlay for logo gradient hover (opacity controlled by JS) */
.logo-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

/* Animated blue → violet color flow */
@keyframes colorFlow {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ============================================
   HAMBURGER
   ============================================ */

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 36px;
  height: 36px;
  padding: 4px;
  z-index: 500;
  position: relative;
  margin-top: 12px;
}

.ham-line {
  display: block;
  width: 100%;
  height: 2.5px;
  background: var(--color-off-white);
  border-radius: 2px;
  transform-origin: center;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
}

@media (hover: hover) {
  .hamburger:not(.is-open):hover .ham-line {
    background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
    background-size: 200% 100%;
    animation: colorFlow 5s ease-in-out infinite;
  }

  .hamburger.is-open:hover .ham-line {
    background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
    background-size: 200% 100%;
    animation: colorFlow 5s ease-in-out infinite;
  }
}

.hamburger.is-open {
  z-index: 500;
}

.hamburger.is-open .ham-line:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.hamburger.is-open .ham-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-open .ham-line:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* ============================================
   MENU SCRIM
   ============================================ */

.menu-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  z-index: 390;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.menu-scrim.is-visible {
  opacity: 1;
  pointer-events: all;
}

body.menu-open .bg-fixed,
body.menu-open main {
  filter: blur(12px);
  transition: filter var(--transition);
}

body.menu-open .header .logo,
body.menu-open .header .logo-spacer {
  filter: blur(12px);
  transition: filter var(--transition);
}

/* ============================================
   MENU PANEL
   ============================================ */

.menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 85vw);
  background: transparent;
  z-index: 400;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 50px 50px;
  gap: 40px;
}

.menu-panel.is-open {
  transform: translateX(0);
}

.menu-close {
  display: none;
}

.close-line {
  position: absolute;
  width: 28px;
  height: 2.5px;
  background: var(--color-off-white);
  display: block;
  border-radius: 2px;
}

.close-line:nth-child(1) { transform: rotate(45deg); }
.close-line:nth-child(2) { transform: rotate(-45deg); }

.menu-close:hover .close-line {
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  animation: colorFlow 5s ease-in-out infinite;
}

.menu-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.menu-link {
  display: inline-block;
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
  color: #fff;
  opacity: 1;
  transition: opacity var(--transition);
  position: relative;
  z-index: 10;
  cursor: pointer;
}

.menu-link:hover {
  opacity: 1;
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 5s ease-in-out infinite;
}

.menu-social {
  margin-top: 40px;
  padding-bottom: 20px;
}

.menu-social-link {
  display: inline-block;
  opacity: 1;
  transition: opacity var(--transition);
}

.instagram-icon {
  width: 32px;
  height: 32px;
  transition: var(--transition);
}

.instagram-icon rect,
.instagram-icon circle {
  stroke: #fff;
  transition: stroke var(--transition);
}

.instagram-icon circle:last-child {
  fill: #fff;
  stroke: none;
  transition: fill var(--transition);
}

.menu-social-link:hover .instagram-icon rect,
.menu-social-link:hover .instagram-icon circle {
  stroke: url(#ig-gradient);
}

.menu-social-link:hover .instagram-icon circle:last-child {
  fill: url(#ig-gradient);
  stroke: none;
}

/* ============================================
   HERO VIDEO (fixed, full viewport)
   ============================================ */

.hero {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  overflow: hidden;
  z-index: 50;
  background: var(--color-black);
}

/* Fixed gradient — fades bottom of hero to black, always visible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, var(--color-black) 100%);
  pointer-events: none;
  z-index: 2;
}

/* Local video — covers full viewport */
#heroYtPlayer iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.hero video, .hero iframe, #heroYtPlayer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100%, 177.8vh);
  height: max(100%, 56.25vw);
  transform: translate(-50%, -50%);
  border: none;
  object-fit: cover;
  pointer-events: none;
}

/* ============================================
   SCROLL HINT
   ============================================ */

.scroll-hint {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 150;
  opacity: 1;
  pointer-events: none;
}

.scroll-track {
  width: 3px;
  height: 55px;
  background: rgba(255, 255, 255, 0.15);
  position: relative;
  border-radius: 3px;
  overflow: hidden;
}

@keyframes cursorDrift {
  0% {
    top: 0;
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 16px);
    opacity: 0;
  }
}

.scroll-cursor {
  position: absolute;
  top: 0;
  left: 50%;
  width: 6px;
  height: 16px;
  background: #fff;
  border-radius: 3px;
  transform: translateX(-50%);
  animation: cursorDrift 2.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Scroll hint opacity is controlled by JS (gradual fade on scroll) */

/* ============================================
   PAGE
   ============================================ */

.page {
  position: relative;
  z-index: 100;
  /* Pushes content below the full-height hero */
  padding-top: 100vh;
  /* Smooth fade from hero to grid — no hard line */
  background: transparent;
}

/* Scroll-following gradient: fades hero to black above the grid */
.page::before {
  content: '';
  position: absolute;
  top: 72vh;
  left: 0;
  right: 0;
  height: 28vh;
  background: linear-gradient(to bottom, transparent 0%, var(--color-black) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ============================================
   INTRO
   ============================================ */

.intro {
  padding: 60px 40px 50px;
  max-width: 900px;
}

.intro-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: rgba(250, 250, 250, 0.65);
  font-style: italic;
}

/* ============================================
   GRID FEATURED
   ============================================ */

.grid-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  background: var(--color-black);
  padding: 0 var(--gap) var(--gap);
}

.block-work.col-1 { grid-column: span 1; }
.block-work.col-2 { grid-column: span 2; }

/* ============================================
   WORK BLOCK CARD
   ============================================ */

.block-work {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.block-work::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 3px solid #fff;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.block-work:hover::before {
  opacity: 1;
}

.work-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 8;
  background: var(--bg, #111);
  overflow: hidden;
}

/* Overlay darkens on hover */
.work-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  z-index: 10;
  transition: background var(--transition);
}

.block-work:hover .work-overlay {
  background: rgba(0, 0, 0, 0);
}

/* ============================================
   WORK THUMBNAIL & VIDEO
   ============================================ */

.work-thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}

.block-work:hover .work-thumb {
  transform: scale(1.05);
}

.work-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  pointer-events: none;
}

.work-video.is-playing {
  opacity: 1 !important;
}

/* ============================================
   WORK META (bottom-left)
   ============================================ */

.work-meta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 40px 20px 20px 30px;
  background: none;
}

.work-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.work-line2 {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-off-white);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.work-line1 {
  font-size: 17px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.5);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* ============================================
   AWARDS BADGE (top-right)
   ============================================ */

.work-awards {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 30;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity var(--transition), transform var(--transition);
}

.block-work.has-awards:hover .work-awards {
  opacity: 1;
  transform: scale(1);
}

.award-badge {
  display: flex;
  align-items: center;
  justify-content: center;
}

.award-svg {
  height: 48px;
  width: 48px;
  filter: drop-shadow(0 0 6px rgba(250,250,250,0.3));
  transition: transform var(--transition);
}

.award-badge:hover .award-svg {
  transform: scale(1.15);
}

/* ============================================
   HOVER GRAIN TEXTURE (subtle)
   ============================================ */

.work-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition);
}

.block-work:hover .work-inner::after {
  opacity: 1;
}


/* ============================================
   VIDEO PLAYER MODAL
   ============================================ */

/* Blur site content when modal is open */
.hero.is-blurred,
.header.is-blurred,
.page.is-blurred,
.scroll-hint.is-blurred {
  filter: blur(20px);
  -webkit-filter: blur(20px);
  transition: filter 0.8s cubic-bezier(0.25, 0, 0.15, 1);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 600;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.8s cubic-bezier(0.25, 0, 0.15, 1);
}

.modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: all;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 610;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 8vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.25, 0, 0.15, 1);
}

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

/* Close button */
.modal-close {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 620;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.modal-close-line {
  position: absolute;
  width: 24px;
  height: 2.5px;
  background: #fff;
  display: block;
  border-radius: 2px;
  transition: background var(--transition);
}

.modal-close-line:nth-child(1) { transform: rotate(45deg); }
.modal-close-line:nth-child(2) { transform: rotate(-45deg); }

.modal-close:hover .modal-close-line {
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  animation: colorFlow 5s ease-in-out infinite;
}

/* Player wrapper (arrows + player) */
.modal-player-wrap {
  position: relative;
  width: 60vw;
  max-width: 1100px;
}

/* Navigation arrows */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-off-white);
  opacity: 1;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
  z-index: 620;
  background: none;
  border: none;
  padding: 0;
}

.modal-nav svg {
  width: 36px;
  height: 36px;
}

.modal-nav .nav-arrow {
  transition: stroke 0.3s var(--ease);
}

.modal-nav:hover { opacity: 1; }

@keyframes nav-press {
  0%   { transform: translateY(-50%) scale(1); }
  40%  { transform: translateY(-50%) scale(0.75); }
  100% { transform: translateY(-50%) scale(1); }
}

.modal-nav.is-pressed {
  animation: nav-press 0.3s ease;
}

.modal-nav--prev:hover .nav-arrow {
  stroke: url(#nav-grad-prev);
}

.modal-nav--next:hover .nav-arrow {
  stroke: url(#nav-grad-next);
}

.modal-nav--prev { left: calc(-7vw - 30px); }
.modal-nav--next { right: calc(-7vw - 30px); }

.modal-nav--prev:hover { transform: translateY(-50%); }
.modal-nav--next:hover { transform: translateY(-50%); }

/* Player container */
.modal-player {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal.is-open .modal-player {
  transform: scale(1);
}

.modal-video {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s var(--ease);
}

.modal-video iframe,
.modal-video > div {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.modal-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 48px;
  z-index: 5;
  cursor: pointer;
}

.modal-video.is-fading {
  opacity: 0;
}

@keyframes slideOutLeft {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(-12%); opacity: 0; }
}

@keyframes slideOutRight {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(12%); opacity: 0; }
}

@keyframes slideInFromRight {
  from { transform: translateX(12%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromLeft {
  from { transform: translateX(-12%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}

/* Fade transition for meta on navigation */
.modal-meta.is-switching {
  opacity: 0;
}

/* Controls bar */
.modal-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}

.modal-player:hover .modal-controls,
.modal-controls.is-visible {
  opacity: 1;
}

/* Control buttons */
.modal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--color-off-white);
  cursor: pointer;
  flex-shrink: 0;
  opacity: 0.85;
  transition: opacity var(--transition);
  background: none;
  border: none;
  padding: 0;
}

.modal-btn:hover { opacity: 1; }

/* Progress bar */
.modal-progress {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  cursor: pointer;
  position: relative;
  transition: height 0.2s var(--ease);
}

.modal-progress:hover { height: 6px; }

.modal-progress-bar {
  height: 100%;
  background: var(--color-off-white);
  border-radius: 2px;
  width: 0%;
  pointer-events: none;
}

/* Time display */
.modal-time {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-weight: 400;
  font-size: 12px;
  color: rgba(250, 250, 250, 0.55);
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 95px;
  text-align: right;
}

/* Volume slider */
.modal-vol-slider {
  width: 70px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

.modal-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-off-white);
  cursor: pointer;
}

.modal-vol-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-off-white);
  cursor: pointer;
  border: none;
}

/* Meta below video */
.modal-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
  text-align: center;
  transition: opacity 0.3s var(--ease);
}

.modal-brand {
  font-size: 20px;
  font-weight: 500;
  color: var(--color-off-white);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.modal-title {
  font-size: 15px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.5);
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

/* Mobile bar: hidden on desktop */
.modal-mobile-bar {
  display: none;
}

.modal-nav-mobile {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #fff;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.modal-nav-mobile:hover,
.modal-nav-mobile:active {
  opacity: 1;
}

.modal-nav-mobile svg {
  width: 28px;
  height: 28px;
}

.modal-meta-mobile {
  flex: 1;
  text-align: center;
  min-width: 0;
}

.modal-brand-mobile {
  display: block;
  font-size: 16px;
  font-weight: 500;
  color: var(--color-off-white);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.modal-title-mobile {
  display: block;
  font-size: 14.5px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.5);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


/* ============================================
   ABOUT PAGE
   ============================================ */

.about-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 60px;
}

.about-layout {
  display: flex;
  align-items: center;
  gap: 80px;
}

.about-photo {
  flex-shrink: 0;
  width: 280px;
}

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

.about-portrait {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0, 0.15, 1) both;
}

.about-content {
  animation: fadeInUp 1.2s cubic-bezier(0.25, 0, 0.15, 1) 0.3s both;
}

.about-title {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 32px;
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 5s ease-in-out infinite;
}

.about-body {
  max-width: 520px;
}

.about-body p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(250, 250, 250, 0.75);
  margin-bottom: 20px;
}

.about-body p:last-child {
  margin-bottom: 0;
}

/* ============================================
   CONTACT PAGE
   ============================================ */

.contact-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 60px 60px;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.contact-content {
  text-align: center;
  animation: fadeIn 1.2s cubic-bezier(0.25, 0, 0.15, 1) both;
}

.contact-title {
  font-size: 42px;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 40px;
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 5s ease-in-out infinite;
}

.contact-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.contact-link {
  font-size: 20px;
  font-weight: 400;
  color: rgba(250, 250, 250, 0.7);
  transition: color var(--transition), background var(--transition), -webkit-text-fill-color var(--transition);
  display: inline-block;
}

.contact-link:hover {
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 5s ease-in-out infinite;
}

.contact-social-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.contact-separator {
  width: 1px;
  height: 18px;
  background: rgba(250, 250, 250, 0.25);
}

/* ============================================
   RESPONSIVE — Tablet (≤1024px)
   ============================================ */

@media (max-width: 1024px) {
  :root {
    --header-h: 64px;
  }

  .grid-featured {
    grid-template-columns: repeat(2, 1fr);
  }

  .block-work.col-2 {
    grid-column: span 2;
  }

  .block-work.col-1 {
    grid-column: span 1;
  }

  .menu-link {
    font-size: 32px;
  }

  .work-line2 {
    font-size: 15px;
  }

  .work-line1 {
    font-size: 11px;
  }

  .intro {
    padding: 40px 30px 30px;
  }

  .about-layout {
    gap: 50px;
  }

  .about-photo {
    width: 240px;
  }

  .about-title {
    font-size: 36px;
  }

  .about-body p {
    font-size: 16px;
  }
}

/* ============================================
   RESPONSIVE — Phone (≤850px)
   ============================================ */

@media (max-width: 850px) {
  :root {
    --header-h: 50px;
    --border-w: 3px;
    --border-rad: 12px;
  }

  .grid-featured {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 0 5px 5px;
  }

  .block-work.col-1,
  .block-work.col-2 {
    grid-column: span 1;
  }

  .menu-panel {
    width: 100%;
    padding: 70px 30px 40px;
  }

  .menu-link {
    font-size: 28px;
  }

  .work-line2 {
    font-size: 17px;
  }

  .work-line1 {
    font-size: 14.5px;
  }

  .award-svg {
    height: 34px;
    width: 34px;
  }

  .header-inner {
    padding: 0 20px;
  }

  .logo {
    top: 10px;
  }

  .logo-img {
    height: 50px;
  }

  .hamburger {
    width: 36px;
    height: 36px;
    gap: 6px;
  }

  .ham-line {
    height: 2px;
  }

  .intro {
    padding: 30px 20px 20px;
  }

  .intro-text {
    font-size: 14px;
  }

  /* About mobile */
  .about-page {
    padding: 90px 24px 100px;
  }

  .about-layout {
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }

  .about-photo {
    width: 60vw;
    max-width: 280px;
  }

  .about-content {
    text-align: center;
  }

  .about-title {
    font-size: 22px;
    text-align: center;
  }

  .about-body p {
    font-size: 15px;
  }

  /* Contact mobile */
  .contact-page {
    padding: 90px 24px 40px;
  }

  .contact-title {
    font-size: 30px;
    margin-bottom: 30px;
  }

  .contact-link {
    font-size: 17px;
  }

  .scroll-hint {
    bottom: 50px;
  }

  .scroll-track {
    height: 50px;
  }

  @keyframes cursorDrift {
    0% {
      top: 0;
      opacity: 0;
    }
    12% {
      opacity: 1;
    }
    85% {
      opacity: 1;
    }
    100% {
      top: calc(100% - 14px);
      opacity: 0;
    }
  }

  .scroll-cursor {
    width: 5px;
    height: 14px;
  }

  /* Modal mobile */
  .modal {
    justify-content: flex-start;
    padding-top: calc((100vh - 56.25vw) / 2 - 50px);
  }

  .modal-player-wrap {
    width: 100vw;
  }

  .modal-player {
    width: 100%;
    border-radius: 0;
  }

  .modal-nav {
    position: static;
    transform: none;
    width: 44px;
    height: 44px;
  }

  .modal-nav--prev { left: auto; }
  .modal-nav--next { right: auto; }

  .modal-nav--prev:hover { transform: none; }
  .modal-nav--next:hover { transform: none; }

  .modal-nav.is-pressed {
    animation: nav-press-mobile 0.3s ease;
  }

  @keyframes nav-press-mobile {
    0%   { transform: scale(1); }
    40%  { transform: scale(0.75); }
    100% { transform: scale(1); }
  }

  .modal-nav {
    display: none;
  }

  .modal-meta {
    display: none;
  }

  .modal-mobile-bar {
    display: flex;
    align-items: center;
    width: 100vw;
    margin-top: 14px;
    padding: 0 8px;
    gap: 4px;
  }

  .modal-close {
    top: 16px;
    right: 16px;
  }

  .modal-controls {
    gap: 8px;
    padding: 8px 12px;
  }

  .modal-vol-slider {
    display: none;
  }

  .modal-time {
    font-size: 11px;
    min-width: 75px;
  }

  .modal-brand {
    font-size: 16px;
  }

  .modal-title {
    font-size: 11px;
  }

  .modal-meta {
    margin-top: 12px;
  }
}

/* ============================================
   RESPONSIVE — Cinema (≥1800px)
   ============================================ */

@media (min-width: 1800px) {
  .grid-featured {
    grid-template-columns: repeat(3, 1fr);
  }

  .block-work.col-2 {
    grid-column: span 2;
  }

  .award-svg {
    height: 67px;
    width: 67px;
  }

  .work-line2 {
    font-size: 22px;
  }

  .work-line1 {
    font-size: 13px;
  }
}

/* ============================================
   CATEGORY PAGE
   ============================================ */

.category-page {
  padding-top: calc(var(--header-h) + 60px);
}

.category-page::before {
  display: none;
}

.category-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  padding: 0 var(--gap);
  margin-bottom: 40px;
  text-align: center;
  background: linear-gradient(90deg, #3000ff, #5a00ff, #7e00ff, #5a00ff, #3000ff);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: colorFlow 5s ease-in-out infinite;
}

@media (max-width: 850px) {
  .category-title {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
  }
}
