/* -------------------------
   Base Reset
-------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
  color: #1c1c1c;
  background: #ffffff;
}

/* -------------------------
   Typography
-------------------------- */
h1,
h2,
h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
}

h1 {
  font-size: 48px;
  margin-bottom: 32px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
  margin-bottom: 24px;
  line-height: 1.3;
}

p {
  max-width: 720px;
  margin-bottom: 20px;
}

blockquote {
  max-width: 640px;
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  margin: 40px 0;
  padding-left: 24px;
  border-left: 2px solid #ddd;
}
cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  font-style: normal;
  color: #666;
}

/* -------------------------
   Sections
-------------------------- */
section {
  padding: 80px 20px;
}

@media (max-width: 768px) {
  section {
    padding: 56px 20px;
  }
}

/* -------------------------
   HEADER (KEY PART)
-------------------------- */
.site-header {
  top: 1px;
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1400px;
  background: transparent;
  z-index: 100;
  transition: all 0.6s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px;
  transition: all 0.6s ease;
}

/* Logo container */
.logo {
  position: relative;
  display: flex;
  align-items: center;
}

/* Logo image */
.logo img {
  height: 160px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Logo text (hidden initially) */
.logo-text {
  position: absolute;
  left: 0;
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  letter-spacing: 0.04em;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Navigation */
.main-nav a {
  margin-left: 24px;
  text-decoration: none;
  color: #1c1c1c;
  font-size: 14px;
}

/* -------------------------
   SCROLLED STATE
-------------------------- */
body.scrolled .site-header {
  max-width: 760px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(1px);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

body.scrolled .nav-container {
  padding: 10px 20px;
}

/* Logo morph */
body.scrolled .logo img {
  opacity: 0;
  transform: scale(0.1);
  position: absolute;
}

body.scrolled .logo-text {
  opacity: 1;
}
body.scrolled .main-nav a {
  line-height: 1;
}

/* -------------------------
   HERO
-------------------------- */
.home-hero {
  height: 100vh;
  background-image: url("../assets/images/hero.jpg");
  background-size: cover;
  background-position: center;
}

@media (max-width: 768px) {
  .home-hero {
    background-position: 23% 35%;
  }
}

/* -------------------------
   Studio Grid (unchanged)
-------------------------- */
.studio-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.studio-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  /*background: #f0f0f0; /* placeholder */*/
}

.studio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.studio-center {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;     /* horizontal */
  justify-content: center; /* vertical */
  text-align: center;
}
.studio-center img {
  width: 240px;
  margin-bottom: 16px;
  text-align: center;
}

.studio-quote {
  font-size: 14px;
  font-style: italic;
}
.studio-text,
.studio-philosophy,
.studio-about {
  max-width: 960px;
  margin: 0 auto;
}


/* -------------------------
   Mobile
-------------------------- */
@media (max-width: 768px) {
  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 26px;
  }

  blockquote {
    font-size: 20px;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #1c1c1c;
  margin: 6px 0;
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .logo img {
    height: 120px;
  }

  .logo-text {
    font-size: 16px;
  }

  body.scrolled .site-header {
    max-width: 92%;
  }
}

/* -------------------------
   Mobile Overlay (unchanged)
-------------------------- */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 1000;
}

.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.nav-overlay-content a {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  margin: 20px 0;
  text-decoration: none;
  color: #1c1c1c;
}
@media (max-width: 768px) {
  .nav-overlay-content a {
    font-size: 28px;
  }
}

@media (max-width: 768px) {
  .studio-grid {
    grid-template-columns: 1fr;
  }
}


/*--WORKS--*/
/* -------------------------
   Works – Hero
-------------------------- */
.works-hero {
  padding-top: 140px;
  padding-bottom: 40px;
  text-align: center;
}

.works-hero h1 {
  font-size: 48px;
}

/* -------------------------
   Works – Categories Grid
-------------------------- */
.works-categories {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-category {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

.work-category img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Overlay label */
.work-category span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.35);
  transition: background 0.3s ease;
}

/* Optional hover – desktop only */
@media (hover: hover) {
  .work-category:hover span {
    background: rgba(0, 0, 0, 0.5);
  }
}

/* -------------------------
   Mobile
-------------------------- */
@media (max-width: 768px) {

  .works-hero h1 {
    font-size: 34px;
  }

  .works-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-category span {
    font-size: 20px;
  }
}

/*--category--*/
/* -------------------------
   Category Hero
-------------------------- */
.category-hero {
  padding-top: 160px;
  padding-bottom: 40px;
  text-align: center;
}

.category-hero h1 {
  font-size: 48px;
}

/* -------------------------
   Project List (Mobile First)
-------------------------- */
.project-list {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 100px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-preview {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

/* Image */
.project-image {
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Text */
.project-content h2 {
  font-size: 28px;
  margin-bottom: 8px;
}

.project-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.project-excerpt {
  max-width: 520px;
  margin-bottom: 16px;
}

.read-more {
  font-size: 14px;
  text-decoration: none;
  color: #1c1c1c;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
}

/* -------------------------
   Desktop Layout
-------------------------- */
@media (min-width: 768px) {

  .project-preview {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }

  .project-preview.reverse {
    direction: rtl;
  }

  .project-preview.reverse > * {
    direction: ltr;
  }
}

/* -------------------------
   Project Article
-------------------------- */
.project-article {
  padding-top: 160px;
}

/* Header */
.project-header {
  max-width: 720px;
  margin: 0 auto 80px;
  padding: 0 20px;
}

.project-header h1 {
  font-size: 48px;
  margin-bottom: 16px;
}

.project-meta {
  font-size: 14px;
  color: #666;
  margin-bottom: 24px;
}

.project-description {
  font-size: 16px;
  line-height: 1.8;
}

/* Images */
.project-images {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.project-images figure {
  width: 100%;
}

.project-images img {
  width: 100%;
  height: auto;
  display: block;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .project-header h1 {
    font-size: 34px;
  }

  .project-images {
    gap: 48px;
  }
}

/* -------------------------
   Contact Page
-------------------------- */
.contact-page {
  padding-top: 160px;
}

/* Header */
.contact-header {
  text-align: center;
  padding-bottom: 40px;
}

.contact-header h1 {
  font-size: 48px;
}

/* Content */
.contact-content {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px 100px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
}

/* Details */
.contact-details h2 {
  font-size: 24px;
  margin-bottom: 16px;
}

.contact-details p {
  font-size: 15px;
  line-height: 1.8;
}

.contact-links a {
  text-decoration: none;
  color: #1c1c1c;
  border-bottom: 1px solid #ddd;
}

/* Form */
.contact-form form {
  max-width: 420px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ccc;
  padding: 8px 4px;
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 24px;
  background: none;
  border: none;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid #1c1c1c;
  padding-bottom: 4px;
}

/* Desktop */
@media (min-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr 1fr;
    gap: 120px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .contact-header h1 {
    font-size: 34px;
  }
}
/* -------------------------
   Social Band
-------------------------- */
.social-band {
  background: #111;
  padding: 40px 20px;
}

.social-icons {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 32px;
}

.social-icons a {
  font-size: 14px;
  text-decoration: none;
  color: #aaa;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #fff;
}

/* -------------------------
   Footer
-------------------------- */
.site-footer {
  background: #0a0a0a;
  text-align: center;
  padding: 20px;
}

.site-footer p {
  font-size: 12px;
  color: #777;
  margin: 0;
}

/* Mobile refinement */
@media (max-width: 768px) {
  .social-icons {
    gap: 20px;
    flex-wrap: wrap;
  }
}

/* ---------------------------------
   Contact – Light & Shadow Background
---------------------------------- */

.contact-bg {
  position: relative;
  background: #2D68C4;
  overflow: hidden;
}

/* Light layer */
.contact-bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255, 255, 255, 0.9),
      rgba(255, 255, 255, 0) 60%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(240, 240, 240, 0.8),
      rgba(240, 240, 240, 0) 65%
    );
  animation: lightShift 28s ease-in-out infinite;
  z-index: 0;
}

/* Keep content above background */
.contact-bg > * {
  position: relative;
  z-index: 1;
}

/* Motion – very slow, architectural */
@keyframes lightShift {
  0% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(4%, -3%);
  }
  100% {
    transform: translate(0, 0);
  }
}