/* ============================================
   suarezl.net — Editorial Minimal
   Playfair Display + DM Sans · Deep Blue accent
   ============================================ */

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

:root {
  --bg: #FAFAF8;
  --text: #1A1A1A;
  --muted: #6B6B6B;
  --accent: #1B3A6B;
  --accent-light: #2a5090;
  --line: #E0E0E0;
  --line-light: #F0EFED;

  --font-title: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 32px;
  --space-lg: 64px;
  --space-xl: 100px;
  --space-2xl: 140px;

  --max-w: 1440px;
  --transition: 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  background: var(--accent);
  color: #fff;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

/* --- Typography --- */
.t-display {
  font-family: var(--font-title);
  font-size: clamp(48px, 7vw, 80px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.t-h1 {
  font-family: var(--font-title);
  font-size: clamp(36px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.15;
}

.t-h2 {
  font-family: var(--font-title);
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.2;
}

.t-h3 {
  font-family: var(--font-title);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.3;
}

.t-body { font-size: 1rem; line-height: 1.7; }
.t-body-lg { font-size: 1.125rem; line-height: 1.8; }

.t-small {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--muted);
}

.t-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.t-accent { color: var(--accent); }
.t-muted { color: var(--muted); }
.t-italic { font-style: italic; }

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.screen {
  display: none;
  min-height: 100vh;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.screen.active {
  display: block;
  opacity: 1;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: transform var(--transition);
}

.nav.hidden { transform: translateY(-100%); }

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  cursor: pointer;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  position: relative;
  cursor: pointer;
  transition: color var(--transition);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent);
}

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

.nav-lang {
  display: flex;
  gap: 8px;
  margin-left: 24px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.nav-lang button {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 8px;
  border-radius: 3px;
  transition: all var(--transition);
}

.nav-lang button.active {
  color: var(--accent);
  background: rgba(27, 58, 107, 0.08);
}

.nav-lang button:hover:not(.active) {
  color: var(--text);
}

/* Mobile menu */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: all var(--transition);
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.nav-mobile.open { display: flex; }

.nav-mobile .nav-link {
  font-size: 18px;
  letter-spacing: 0.08em;
}

.nav-mobile .nav-lang {
  margin-left: 0;
  padding-left: 0;
  border-left: none;
  margin-top: 24px;
}

/* --- HOME --- */
.home-hero {
  padding-top: calc(64px + var(--space-2xl));
  padding-bottom: var(--space-xl);
}

.home-hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: end;
}

.home-name { margin-bottom: var(--space-sm); }

.home-role {
  font-size: 1.0625rem;
  color: var(--muted);
  margin-bottom: var(--space-md);
}

.home-intro {
  font-size: 1.125rem;
  line-height: 1.8;
  max-width: 480px;
}

.home-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: gap var(--transition);
}

.home-cta:hover { gap: 14px; }

.home-cta svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition);
}

.home-divider {
  width: 100%;
  height: 1px;
  background: var(--line);
}

/* Featured projects */
.home-featured {
  padding: var(--space-xl) 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: var(--space-lg);
}

.section-header .view-all {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  cursor: pointer;
  transition: opacity var(--transition);
}

.section-header .view-all:hover { opacity: 0.7; }

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.project-card {
  cursor: pointer;
  transition: opacity var(--transition);
}

.project-card:hover { opacity: 0.85; }

.project-card-img {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
  position: relative;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card-meta {
  margin-bottom: 6px;
}

.project-card-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 8px;
}

.project-card-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Home news */
.home-news {
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--line);
}

.news-list-home {
  display: flex;
  flex-direction: column;
}

.news-item-home {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--transition);
}

.news-item-home:hover { opacity: 0.7; }

.news-item-date {
  font-size: 13px;
  color: var(--muted);
  padding-top: 4px;
}

.news-item-title {
  font-family: var(--font-title);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.news-item-excerpt {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}

/* --- ABOUT --- */
.about-hero {
  padding-top: calc(64px + var(--space-xl));
  padding-bottom: var(--space-xl);
}

.about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: var(--space-lg);
  align-items: start;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  position: sticky;
  top: calc(64px + var(--space-md));
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.about-content { padding-top: var(--space-sm); }

.about-content .t-h1 { margin-bottom: var(--space-md); }

.about-bio {
  font-size: 1.125rem;
  line-height: 1.85;
  margin-bottom: var(--space-lg);
}

.about-bio p + p { margin-top: var(--space-sm); }

.about-section {
  margin-bottom: var(--space-lg);
}

.about-section-title {
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-xs);
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--line-light);
}

.timeline-year {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  padding-top: 2px;
}

.timeline-content h4 {
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 14px;
  color: var(--muted);
}

/* --- WORK --- */
.work-hero {
  padding-top: calc(64px + var(--space-xl));
  padding-bottom: var(--space-lg);
}

.work-hero .t-h1 { margin-bottom: var(--space-sm); }

.work-intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
  margin-bottom: var(--space-lg);
}

.work-filters {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}

.work-filter {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 2px;
  cursor: pointer;
  transition: all var(--transition);
}

.work-filter:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.work-filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  padding-bottom: var(--space-xl);
}

.work-card {
  cursor: pointer;
  transition: opacity var(--transition);
}

.work-card:hover { opacity: 0.85; }

.work-card-img {
  width: 100%;
  aspect-ratio: 16/10;
  background: var(--line-light);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.work-card-img .placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-card-meta { margin-bottom: 6px; }

.work-card-title {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}

.work-card-desc {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Work detail overlay */
.work-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
}

.work-detail.open { display: block; }

.work-detail-close {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 201;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
}

.work-detail-close:hover { color: var(--text); }

.work-detail-hero {
  width: 100%;
  aspect-ratio: 21/6;
  background: var(--line-light);
  margin-bottom: var(--space-lg);
}

.work-detail-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 40px var(--space-xl);
}

.work-detail-content .t-label { margin-bottom: var(--space-sm); }
.work-detail-content .t-h1 { margin-bottom: var(--space-md); }

.work-detail-excerpt {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--muted);
  font-style: italic;
  margin-bottom: var(--space-md);
}

.work-detail-body .work-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-sm) var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--line);
}

.work-detail-meta-item .t-label { margin-bottom: 4px; }
.work-detail-meta-item p { font-size: 15px; }

.work-detail-body {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.work-detail-body p + p { margin-top: var(--space-sm); }

/* Legacy meta grid below body (keep for compat) */
#detail-meta.work-detail-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

/* --- Detail media sections (shared by projects & news) --- */
.detail-section {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--line);
}

.detail-section-title {
  margin-bottom: var(--space-md);
}

/* Gallery */
.detail-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.detail-gallery-thumb {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
  background: var(--line-light);
  transition: opacity var(--transition);
}

.detail-gallery-thumb:hover { opacity: 0.8; }

.detail-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video embeds */
.detail-videos {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  border-radius: 2px;
  overflow: hidden;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Spotify embeds */
.detail-spotify {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spotify-embed {
  border-radius: 12px;
  overflow: hidden;
}

.spotify-embed iframe {
  width: 100%;
  border: none;
  border-radius: 12px;
}

/* External links */
.detail-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-light);
  color: var(--text);
  transition: color var(--transition);
}

.detail-link:first-child { border-top: 1px solid var(--line-light); }
.detail-link:hover { color: var(--accent); }

.detail-link-title {
  font-size: 15px;
  font-weight: 500;
}

.detail-link svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.5;
}

.detail-link:hover svg { opacity: 1; }

/* Reviews / Critiques */
.detail-reviews {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.review-item {
  padding-left: 20px;
  border-left: 3px solid var(--accent);
}

.review-text {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 10px;
}

.review-source {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.review-source a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}

.review-source a:hover {
  border-color: var(--accent);
}

/* --- Lightbox --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 2px;
  user-select: none;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
  z-index: 501;
  font-family: var(--font-body);
  background: none;
  border: none;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 501;
  background: none;
  border: none;
  padding: 16px;
  line-height: 1;
  font-family: var(--font-body);
  user-select: none;
}

.lightbox-nav:hover { opacity: 1; }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-family: var(--font-body);
}

/* --- News detail overlay (same pattern as work-detail) --- */
.news-detail {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--bg);
  overflow-y: auto;
}

.news-detail.open { display: block; }

.news-detail-close {
  position: fixed;
  top: 20px;
  right: 40px;
  z-index: 201;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition);
  background: none;
  border: none;
  font-family: var(--font-body);
}

.news-detail-close:hover { color: var(--text); }

.news-detail-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 100px 40px var(--space-xl);
}

.news-detail-date {
  margin-bottom: var(--space-sm);
}

.news-detail-content .t-h1 { margin-bottom: var(--space-md); }

.news-detail-body {
  font-size: 1.0625rem;
  line-height: 1.85;
}

.news-detail-body p + p { margin-top: var(--space-sm); }

/* --- NEWS --- */
.news-hero {
  padding-top: calc(64px + var(--space-xl));
  padding-bottom: var(--space-lg);
}

.news-hero .t-h1 { margin-bottom: var(--space-sm); }

.news-intro {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 600px;
}

.news-list {
  padding-bottom: var(--space-xl);
}

.news-article {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: var(--space-lg);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity var(--transition);
}

.news-article:first-child { border-top: 1px solid var(--line); }
.news-article:hover { opacity: 0.75; }

.news-article-date {
  font-size: 14px;
  color: var(--muted);
  padding-top: 6px;
}

.news-article-title {
  font-family: var(--font-title);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 10px;
}

.news-article-excerpt {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 560px;
}

.news-article-read {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* --- CONTACT --- */
.contact-hero {
  padding-top: calc(64px + var(--space-xl));
  padding-bottom: var(--space-xl);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-left .t-h1 { margin-bottom: var(--space-md); }

.contact-text {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-info-item .t-label { margin-bottom: 6px; }

.contact-info-item a {
  font-size: 1rem;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: all var(--transition);
}

.contact-info-item a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* Social links */
.social-links {
  display: flex;
  gap: 20px;
  margin-top: var(--space-md);
}

.social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--transition);
}

.social-link:hover { color: var(--accent); }

.social-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-group input,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 0;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  align-self: flex-start;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  padding: 14px 36px;
  border-radius: 2px;
  cursor: pointer;
  transition: background var(--transition);
}

.form-submit:hover { background: var(--accent-light); }

/* --- Footer --- */
.footer {
  border-top: 1px solid var(--line);
  padding: 0;
}

.footer-newsletter {
  padding: 32px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.footer-nl-label {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.footer-nl-form {
  width: 100%;
  max-width: 380px;
}
.footer-nl-field {
  display: flex;
  border: 1px solid var(--line);
  transition: border-color 0.3s ease;
}
.footer-nl-field:focus-within {
  border-color: var(--accent);
}
.footer-nl-field input {
  flex: 1;
  padding: 11px 16px;
  font-family: var(--body-font);
  font-size: 13px;
  color: var(--text);
  border: none;
  background: transparent;
  outline: none;
  min-width: 0;
}
.footer-nl-field input::placeholder {
  color: var(--muted);
  opacity: 0.5;
}
.footer-nl-field button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 16px;
  background: var(--accent);
  border: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}
.footer-nl-field button:hover {
  background: var(--accent-light);
}
.footer-nl-msg {
  font-size: 12px;
  margin-top: 8px;
  min-height: 16px;
  color: var(--muted);
}
.footer-nl-msg.success { color: #2D5F3E; }
.footer-nl-msg.error { color: #D83B23; }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy {
  font-size: 13px;
  color: var(--muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--accent); }

@media (max-width: 600px) {
  .footer-newsletter { padding: 28px 16px; }
  .footer-inner { padding: 0 16px; }
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

  .home-hero .container {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .home-hero { padding-top: calc(64px + var(--space-lg)); }

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

  .news-item-home {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

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

  .about-photo {
    max-width: 300px;
    position: static;
  }

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

  .news-article {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .contact-hero { align-items: flex-start; padding-top: calc(64px + var(--space-lg)); }

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

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

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .news-detail-content { padding: 80px 24px var(--space-lg); }

  .footer-inner { flex-direction: column; gap: var(--space-sm); text-align: center; }
}

@media (max-width: 600px) {
  .t-display { font-size: 40px; }
  .home-role { font-size: 15px; }
  .section-header { flex-direction: column; gap: var(--space-sm); }
  .work-grid { grid-template-columns: 1fr; }
}