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

:root {
  --bg: #FAFAFA;
  --surface: #FFFFFF;
  --text: #2B2B2B;               /* Softened grey-black heading color */
  --text-body: #383838;          /* Soft grey body color */
  --text-muted: #6E6E6E;        /* Subtle secondary text */
  --border-color: #E2E2E2;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1320px;
}

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

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

body {
  background: var(--bg);
  color: var(--text-body);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Reduced <p> type size */
p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
}

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

/*  Header & Nav  */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--text);
  padding: 1.25rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.main-nav ul {
  display: flex;
  gap: 2.25rem;
  list-style: none;
}

.main-nav a {
  position: relative;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.9rem;
  color: var(--text);
  padding-bottom: 4px;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--text);
  transition: width 0.25s var(--ease-out);
}

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

/*  Hero (MoMA Contained Layout)  */
.hero {
  position: relative;
  width: min(92%, var(--max-width));
  margin: 2.5rem auto 0;
  overflow: hidden;
  border: 1px solid var(--text);
}

.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (min-width: 992px) {
  .hero-visual { aspect-ratio: 21 / 9; }
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.mobile-only { display: block; }
.desktop-only { display: none; }

@media (min-width: 768px) {
  .mobile-only { display: none; }
  .desktop-only { display: block; }
}

/*  Intro Section  */
.intro {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border-color);
}

.intro-text {
  max-width: 80ch;
  margin-inline: auto;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.65;
  color: var(--text-body);
}

.intro-text p {
  margin-bottom: 1.5rem;
}

/*  News Grid  */
.news { padding: 4.5rem 0; }

.section-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid var(--text);
  padding-bottom: 0.5rem;
  color: var(--text);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.news-item {
  background: var(--surface);
  padding: 2rem;
  border: 1px solid var(--text);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s var(--ease-out);
}

.news-item:hover { transform: translateY(-4px); }

.news-date {
  display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.news-item h3 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  color: var(--text);
}

.news-item p {
  font-size: 0.925rem;
  margin-bottom: 1.5rem;
}

.news-link {
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/*  Work Page (Vertical Scroll, Artsy Reveal & Hidden Scrollbar)  */
.work-container {
  /* Hide vertical scrollbar completely */
  scrollbar-width: none;               /* Firefox */
  -ms-overflow-style: none;            /* IE/Edge */
}
.work-container::-webkit-scrollbar {
  display: none;                        /* Chrome/Safari */
}

.work-stream {
  scroll-snap-type: y mandatory;
  height: calc(100vh - 75px);
  overflow-y: scroll;
  scrollbar-width: none;
}
.work-stream::-webkit-scrollbar { display: none; }

.work-slide {
  scroll-snap-align: start;
  min-height: calc(100vh - 75px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border-color);
}

.work-inner {
  width: min(92%, var(--max-width));
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 900px) {
  .work-inner {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

.work-media {
  border: 1px solid var(--text);
  background: #EFEFEF;
  overflow: hidden;
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.work-slide.is-revealed .work-media {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.work-media img {
  width: 100%;
  height: auto;
  max-height: 70vh;
  object-fit: contain;
  display: block;
}

.work-details {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.8s var(--ease-out) 0.2s, transform 0.8s var(--ease-out) 0.2s;
}

.work-slide.is-revealed .work-details {
  opacity: 1;
  transform: translateX(0);
}

.work-index {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: block;
  margin-bottom: 0.5rem;
}

.work-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.work-description {
  margin-bottom: 2rem;
}

.work-labels {
  list-style: none;
  border-top: 1px solid var(--border-color);
  padding-top: 1.25rem;
}

.work-labels li {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.work-labels li strong {
  color: var(--text);
  font-family: var(--font-heading);
  text-transform: uppercase;
}

/*  Footer  */
.site-footer {
  background: var(--text);
  color: #FFFFFF;
  padding: 3.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 2rem;
}

.footer-nav a {
  color: #FFFFFF;
  text-decoration: none;
}

/*  Motion Adjustments  */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
