/* ========================================
   George Nicholas - Responsive Website
   ======================================== */

/* CSS Variables */
:root {
  --color-bg: #e9eaec;
  --color-primary: rgba(0, 89, 255, 1);
  --color-text-light: rgba(233, 234, 236, 1);
  
  --font-display: 'Pinyon Script', cursive;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  
  --page-padding: 27px;
  
  /* Shared font size for header nav, section labels, and footer */
  --nav-font-size: 12px;
}

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

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

body {
  font-family: var(--font-body);
  font-weight: 572;
  background-color: var(--color-bg);
  color: var(--color-primary);
  line-height: 1.28;
  overflow-x: hidden;
}

/* Links - no underline, 50% opacity on hover */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

a:hover {
  opacity: 0.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* ========================================
   Header - Liquid Glass Style
   ======================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px var(--page-padding);
  display: flex;
  justify-content: center;
  align-items: center;
  
  /* Liquid glass effect - no border */
  background: rgba(233, 234, 236, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.main-nav {
  display: flex;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
}

.main-nav a {
  font-size: var(--nav-font-size);
  text-transform: uppercase;
  font-weight: 572;
  white-space: nowrap;
  letter-spacing: 0.08em;
}

/* ========================================
   Hero - Full viewport with scrolling text
   ======================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 60px;
  padding-bottom: 0;
  margin-bottom: -150px; /* Remove 150px empty space below scrolling text */
  overflow: hidden;
  position: relative;
}

/* Name marquee - Blue background with 0px padding, 10px removed from bottom */
.hero-marquee-name {
  background: var(--color-primary);
  padding: 0;
  margin-bottom: -10px;
  overflow: hidden;
}

/* Title marquee - Gray background, moved up 15px */
.hero-marquee-title {
  background: var(--color-bg);
  padding: 25px 0 40px 0; /* 40-15=25px top padding */
  overflow: hidden;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 25s linear infinite;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-content {
  display: flex;
  white-space: nowrap;
}

/* Pinyon Script name - CAPITALIZED, shifted down 3px, 20% BIGGER */
.hero-name {
  font-family: var(--font-display);
  font-size: clamp(144px, 24vw, 264px);
  line-height: 1.03;
  color: var(--color-text-light);
  padding: 0 120px;
  text-transform: uppercase;
  transform: translateY(3px);
}

/* Inter title - 20% BIGGER */
.hero-title {
  font-family: var(--font-body);
  font-size: clamp(96px, 21.6vw, 240px);
  font-weight: 572;
  line-height: 0.84;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: -0.047em;
  padding: 0 120px;
}

/* Scroll indicator - moved up 100px */
.scroll-indicator {
  position: absolute;
  bottom: 140px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-primary);
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

.scroll-indicator:hover {
  opacity: 1;
}

.scroll-indicator svg {
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* ========================================
   Sections
   ======================================== */
.section {
  padding: 100px var(--page-padding);
  position: relative;
}

/* Section labels - same size as header nav */
.section-label {
  position: absolute;
  top: 100px;
  right: var(--page-padding);
  font-size: var(--nav-font-size);
  text-transform: uppercase;
  font-weight: 572;
  letter-spacing: 0.08em;
}

/* ========================================
   Fade-in animation for About/Studio
   ======================================== */
.fade-section {
  overflow: visible;
}

.fade-element {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

/* ========================================
   About Section
   - LARGER image
   - LARGER text with more line spacing
   ======================================== */
.about-section {
  padding-top: 0; /* Removed 100px - content is closer to hero */
  padding-bottom: 40px;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 80px; /* 80px below [ABOUT] label */
}

.about-image-wrapper {
  position: relative;
}

/* LARGER image - hover opacity 80% to 50% */
.about-image {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 484 / 568;
  object-fit: cover;
  opacity: 0.8;
  filter: drop-shadow(0 0 40px var(--color-primary));
  transition: opacity 0.3s ease;
}

.about-image:hover {
  opacity: 0.5;
}

.about-content {
  padding-top: 0;
}

/* LARGER body text with more line spacing */
.about-text {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.35;
  letter-spacing: -1px;
  font-style: normal;
  font-weight: 572;
}

/* ========================================
   Work Grid - Images on top, text behind
   Text MORE VISIBLE (not faint)
   ======================================== */
.work-section {
  padding-top: 60px;
  padding-bottom: 20px; /* Even less space before studio */
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 80px; /* More space from [SELECTED WORK] label */
}

.work-item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  position: relative;
}

/* Image on top by default */
.work-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Text overlay behind - FULL opacity, not faint */
.work-overlay {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 1;
  text-align: center;
  color: rgba(0, 89, 255, 1); /* Full opacity blue */
  opacity: 1;
}

/* On hover, fade out image to show text */
.work-item:hover .work-image {
  opacity: 0;
}

/* Work info - centered */
.work-info {
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.work-artist {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 572;
  text-transform: uppercase;
  line-height: 1.2;
  margin-bottom: 8px;
  color: rgba(0, 89, 255, 1); /* Full opacity */
  opacity: 1;
}

.work-album {
  display: block;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 572;
  text-transform: uppercase;
  line-height: 1.2;
  color: rgba(0, 89, 255, 1); /* Full opacity */
  opacity: 1;
}

/* Work meta - larger text, full color */
.work-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  margin-top: auto;
}

.work-role {
  font-size: 11px;
  font-weight: 572;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  max-width: 70%;
  line-height: 1.4;
  text-align: left;
  color: rgba(0, 89, 255, 1); /* Full opacity */
  opacity: 1;
}

.work-type {
  font-size: 11px;
  font-weight: 572;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-align: right;
  color: rgba(0, 89, 255, 1); /* Full opacity */
  opacity: 1;
}

/* Playlist item in grid - spans 2 columns, centered with adjacent images */
.work-item--playlist {
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  grid-column: span 2;
  aspect-ratio: 2 / 1; /* Match height of single album image */
}

.playlist-text {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px); /* Same as about text */
  line-height: 1.35;
  letter-spacing: -1px;
  font-weight: 572;
}

/* Dashed link style */
.dashed-link {
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 4px;
}

/* ========================================
   Studio Section
   - Same LARGER font size as about
   - More line spacing
   ======================================== */
.studio-section {
  padding-top: 40px; /* Even less space after selected work */
  padding-bottom: 150px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 80px; /* 80px below [STUDIO] label */
}

/* Same LARGER font size as about section */
.studio-text {
  font-family: var(--font-body);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.35;
  letter-spacing: -1px;
  font-style: normal;
  font-weight: 572;
}

.studio-image {
  width: 100%;
  aspect-ratio: 487 / 328;
  object-fit: cover;
  opacity: 0.8;
  filter: drop-shadow(30px -30px 100px var(--color-primary));
  transition: opacity 0.3s ease;
}

.studio-image:hover {
  opacity: 0.5;
}

/* ========================================
   Footer - Match header font size/style
   No caps except names/company names
   ======================================== */
.site-footer {
  padding: 0 var(--page-padding) 50px;
}

.footer-divider {
  height: 1px;
  background: rgba(0, 89, 255, 0.3);
  margin-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 40px;
  font-size: var(--nav-font-size); /* Match header */
  font-weight: 572;
  letter-spacing: 0.02em; /* Reduced */
}

/* Section headers stay uppercase */
.footer-col h4 {
  font-weight: 572;
  margin-bottom: 12px;
  text-transform: uppercase;
}

/* Regular text - NOT capitalized, tighter line spacing */
.footer-col p {
  line-height: 1.3;
  margin-bottom: 2px;
  text-transform: none;
}

/* Company name - capitalize */
.footer-company {
  margin-bottom: 10px !important;
  text-transform: none;
}

/* Acknowledgement - normal case, tighter line spacing */
.footer-acknowledgement p {
  line-height: 1.3;
  text-transform: none;
}

/* ========================================
   Responsive Breakpoints
   ======================================== */

@media (max-width: 1200px) {
  .main-nav {
    gap: 40px;
  }
}

@media (max-width: 1024px) {
  :root {
    --nav-font-size: 10px;
  }
  
  .hero-name {
    padding: 0 60px;
  }
  
  .hero-title {
    padding: 0 60px;
  }
}

@media (max-width: 900px) {
  .work-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  
  .footer-acknowledgement {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-font-size: 9px;
    --page-padding: 20px; /* Less padding on tablet */
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .section-label {
    position: relative;
    top: auto;
    right: auto;
    text-align: right;
    margin-bottom: 0;
    display: block;
  }
  
  /* Reduce section label to content spacing on mobile */
  .about-grid,
  .work-grid,
  .studio-grid {
    margin-top: 40px;
  }
  
  .studio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  /* Don't shrink as much on tablet - 20% bigger */
  .hero-name {
    font-size: 144px;
    padding: 0 50px;
  }
  
  .hero-title {
    font-size: 120px;
    padding: 0 50px;
  }
  
  .hero-marquee-name {
    padding: 0;
  }
  
  .hero-marquee-title {
    padding: 20px 0;
  }
  
  /* Shrink body text on tablet */
  .about-text,
  .studio-text {
    font-size: 28px;
  }
}

@media (max-width: 600px) {
  :root {
    --page-padding: 15px; /* Less padding on mobile */
  }
  
  .work-grid {
    grid-template-columns: 1fr; /* One image per row */
    gap: 10px;
  }
  
  .work-item--playlist {
    grid-column: span 1; /* Reset to single column on mobile */
  }
  
  .about-section {
    padding-top: 60px; /* Move about up on mobile */
  }
  
  .studio-section {
    padding-top: 20px; /* Less space after selected work */
  }
  
  .work-item--playlist {
    aspect-ratio: 1; /* Square on mobile like other items */
  }
  
  /* Don't shrink scrolling text as much - 20% bigger */
  .hero-name {
    font-size: 108px;
    padding: 0 35px;
  }
  
  .hero-title {
    font-size: 90px;
    padding: 0 35px;
  }
  
  /* Shrink body text more */
  .about-text,
  .studio-text {
    font-size: 22px;
  }
  
  .playlist-text {
    font-size: 20px;
  }
  
  .work-artist,
  .work-album {
    font-size: 14px;
  }
  
  .work-role,
  .work-type {
    font-size: 9px;
  }
}

@media (max-width: 400px) {
  :root {
    --page-padding: 10px; /* Even less padding on small mobile */
  }
  
  .work-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  
  .about-section {
    padding-top: 50px; /* Move about up even more */
  }
  
  .studio-section {
    padding-top: 15px; /* Even less space */
  }
  
  .main-nav {
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  /* Don't shrink scrolling text as much - 20% bigger */
  .hero-name {
    font-size: 84px;
    padding: 0 20px;
  }
  
  .hero-title {
    font-size: 66px;
    padding: 0 20px;
  }
  
  /* Shrink body text more */
  .about-text,
  .studio-text {
    font-size: 20px;
  }
  
  .playlist-text {
    font-size: 18px;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   Accessibility & Motion
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .marquee-track {
    animation: none;
  }
  
  .scroll-indicator svg {
    animation: none;
  }
  
  .fade-element {
    opacity: 1 !important;
  }
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Print */
@media print {
  .site-header {
    position: static;
    background: var(--color-bg);
    backdrop-filter: none;
  }
  
  .hero {
    min-height: auto;
  }
  
  .marquee-track {
    animation: none;
  }
  
  .scroll-indicator {
    display: none;
  }
  
  .fade-element {
    opacity: 1 !important;
  }
}
