/* ============================================================
   USAALIA — Main Stylesheet
   Aesthetic: Luxury/Refined Industrial
   Fonts: Cormorant Garamond (display) + DM Sans (body)
   ============================================================ */

/* --- VARIABLES --- */
:root {
  --bg:          #0d0d0d;
  --bg-2:        #141414;
  --bg-3:        #1a1a1a;
  --surface:     #1e1e1e;
  --border:      rgba(255,255,255,0.08);

  /* Brand accent — USAALIA orange #ffb602.
     Variable names kept as --gold-* for backwards compatibility across files. */
  --gold:        #ffb602;
  --gold-light:  #ffc945;
  --gold-dim:    rgba(255,182,2,0.15);
  --gold-deep:   #e09e00;

  --text:        #f0ece4;
  --text-muted:  #8a8680;
  --text-dim:    #5a5652;
  --white:       #ffffff;
  --radius:      4px;
  --radius-lg:   12px;
  --nav-h:       72px;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --transition:   0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* --- CONTAINER --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- TYPOGRAPHY --- */
.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
}

.section-title em {
  font-style: italic;
  color: var(--gold-light);
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.btn--primary {
  background: var(--gold);
  color: #0d0d0d;
}
.btn--primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,182,2,0.3);
}

.btn--ghost {
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.btn--ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  z-index: 100;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(13,13,13,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.nav__logo {
  display: flex;
  align-items: center;
  transition: opacity var(--transition);
}
.nav__logo img {
  height: 38px;
  width: auto;
  display: block;
}
.nav__logo:hover { opacity: 0.85; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav__link:hover, .nav__link.active {
  color: var(--text);
}
.nav__link:hover::after, .nav__link.active::after {
  width: 100%;
}

.nav__cta {
  background: var(--gold-dim);
  border: 1px solid rgba(255,182,2,0.25);
  color: var(--gold) !important;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  transition: var(--transition);
}
.nav__cta:hover {
  background: var(--gold);
  color: #0d0d0d !important;
}
.nav__cta::after { display: none; }

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav__toggle span {
  display: block;
  width: 24px; height: 1px;
  background: var(--text);
  transition: var(--transition);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(255,182,2,0.07) 0%, transparent 60%),
              radial-gradient(ellipse at 20% 80%, rgba(255,182,2,0.04) 0%, transparent 50%);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
  opacity: 0.5;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
  max-width: 700px;
  margin-left: max(2rem, calc(50vw - 600px));
}

.hero__eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero__eyebrow::before {
  content: '';
  display: block;
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 1.75rem;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-light);
}

.hero__sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
  padding: 8rem 0;
  background: var(--bg);
}

.section-header {
  margin-bottom: 4rem;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
  background: var(--bg-2);
  position: relative;
  transition: background var(--transition);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gold-dim);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover { background: var(--bg-3); }
.service-card:hover::before { opacity: 1; }

.service-card__number {
  font-family: var(--font-display);
  font-size: 0.85rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.service-card__icon {
  width: 40px; height: 40px;
  color: var(--gold);
  margin-bottom: 1.5rem;
  transition: transform var(--transition);
}
.service-card:hover .service-card__icon { transform: scale(1.1); }

.service-card__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.85rem;
  line-height: 1.25;
}

.service-card__text {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
}

.service-card__arrow {
  margin-top: 2rem;
  font-size: 1.2rem;
  color: var(--gold);
  transform: translateX(0);
  transition: transform var(--transition);
}
.service-card:hover .service-card__arrow { transform: translateX(6px); }

/* ============================================================
   WHY US
   ============================================================ */
.why {
  padding: 8rem 0;
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.why__left {
  padding: 4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-3);
  border-right: 1px solid var(--border);
}

.why__image-wrap {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.why__image-accent {
  width: 100%;
  aspect-ratio: 4/5;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--bg) 0%, var(--surface) 100%);
  position: relative;
  overflow: hidden;
}

.why__image-accent::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  aspect-ratio: 1;
  background-image: url('../img/usaalia-isotype.svg');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  opacity: 0.35;
}

.why__image-accent::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(255,182,2,0.12) 0%, transparent 60%);
}

.why__stats {
  position: absolute;
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat { text-align: center; }

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
}

.stat__label {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-top: 0.2rem;
}

.why__right {
  padding: 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why__text {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1.25rem;
}

.why__right .btn { margin-top: 1.5rem; align-self: flex-start; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 1px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.contact__sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 1rem;
  transition: border-color var(--transition), background var(--transition);
}
.contact__item:last-child { margin-bottom: 0; }
.contact__item:hover {
  border-color: rgba(255,182,2,0.3);
  background: var(--gold-dim);
}

.contact__icon {
  font-size: 1.1rem;
  color: var(--gold);
  width: 28px;
  text-align: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact__label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.3rem;
}

.contact__value {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.5;
  transition: color var(--transition);
}
a.contact__value:hover { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.footer__logo {
  display: block;
  margin-bottom: 0.75rem;
}
.footer__logo img {
  height: 32px;
  width: auto;
  display: block;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-dim);
}

.footer__nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.footer__nav a {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--gold); }

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
}
.footer__legal a {
  font-size: 0.75rem;
  color: var(--text-dim);
  transition: color var(--transition);
}
.footer__legal a:hover { color: var(--text-muted); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ============================================================
   INNER PAGES
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 5rem) 0 4rem;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(255,182,2,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.page-hero__back:hover { color: var(--gold); }

.page-hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 300;
  line-height: 1.1;
  color: var(--text);
  margin-top: 0.5rem;
}

.page-content {
  padding: 5rem 0;
}

.page-content .container {
  max-width: 800px;
}

.page-content h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 1rem;
}

.page-content h2:first-child { margin-top: 0; }

.page-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}

.page-content ul {
  list-style: none;
  margin: 1rem 0 1.5rem;
}

.page-content ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-content ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

.page-cta {
  margin-top: 3rem;
  padding: 2.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
}

.page-cta p {
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background: rgba(13,13,13,0.98);
    padding: 2rem;
    gap: 1.5rem;
    z-index: 99;
  }
  .nav__link { font-size: 1.1rem; }
  .nav__toggle { display: flex; }

  .services__grid { grid-template-columns: 1fr; }
  .why { grid-template-columns: 1fr; }
  .why__left { padding: 3rem 2rem; border-right: none; border-bottom: 1px solid var(--border); }
  .why__right { padding: 3rem 2rem; }
  .contact__inner { grid-template-columns: 1fr; gap: 3rem; }
  .footer__inner { flex-direction: column; }
  .footer__legal { align-items: flex-start; }
}

@media (max-width: 600px) {
  .hero__content { padding-top: calc(var(--nav-h) + 3rem); }
  .services, .contact { padding: 5rem 0; }
  .section-title { font-size: 1.75rem; }
  .hero__title { font-size: 2.8rem; }
  .why__stats { position: static; margin-top: 1.5rem; flex-direction: row; justify-content: space-around; }
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */
.projects-section {
  padding: 8rem 0;
  background: var(--bg-3);
  border-top: 1px solid var(--border);
}

.projects-grid, #allProjectsGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.proj-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition), transform var(--transition);
}
.proj-card:hover {
  border-color: rgba(255,182,2,0.3);
  transform: translateY(-3px);
}

.proj-card__cat {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.proj-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.proj-card__summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.proj-card__highlights {
  list-style: none;
  margin-bottom: 1.25rem;
}
.proj-card__highlights li {
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.35rem 0;
  padding-left: 1.25rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.proj-card__highlights li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.75rem;
}

.proj-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.proj-card__link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  transition: color var(--transition);
}
.proj-card__link:hover { color: var(--gold-light); }

/* ============================================================
   ARTICLES SECTION
   ============================================================ */
.articles-section {
  padding: 8rem 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}

.articles-grid, #allArticlesGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.art-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition);
  color: inherit;
}
.art-card:hover {
  border-color: rgba(255,182,2,0.3);
  transform: translateY(-3px);
}

.art-card__meta {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.art-card__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.art-card__summary {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.25rem;
}

.art-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.art-card__link {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin-top: auto;
}

/* TAGS */
.tag {
  display: inline-block;
  padding: 0.18rem 0.55rem;
  background: var(--gold-dim);
  border: 1px solid rgba(255,182,2,0.2);
  border-radius: 3px;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

/* LOADING */
.loading-placeholder {
  grid-column: 1 / -1;
  color: var(--text-dim);
  font-size: 0.85rem;
  padding: 2rem 0;
}

/* ============================================================
   NEWSLETTER
   ============================================================ */
.newsletter {
  padding: 6rem 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.newsletter::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,182,2,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.newsletter__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
  position: relative;
}

.newsletter__sub {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-top: 1rem;
  line-height: 1.8;
}

.newsletter__field {
  margin-bottom: 0.85rem;
}

.newsletter__field input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 300;
  transition: border-color var(--transition);
}
.newsletter__field input:focus {
  outline: none;
  border-color: var(--gold);
}
.newsletter__field input::placeholder {
  color: var(--text-dim);
}

.newsletter__note {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.85rem;
  line-height: 1.5;
}

/* ============================================================
   ARTICLE DETAIL CONTENT
   ============================================================ */
#articleDetail h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
  margin: 2.5rem 0 0.85rem;
}
#articleDetail p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.85;
  margin-bottom: 1rem;
}
#articleDetail ul {
  list-style: none;
  margin: 0.5rem 0 1.5rem;
}
#articleDetail ul li {
  font-size: 0.92rem;
  color: var(--text-muted);
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
#articleDetail ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--gold);
}
.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   RESPONSIVE (new sections)
   ============================================================ */
@media (max-width: 900px) {
  .projects-grid, #allProjectsGrid,
  .articles-grid, #allArticlesGrid {
    grid-template-columns: 1fr 1fr;
  }
  .newsletter__inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  .projects-grid, #allProjectsGrid,
  .articles-grid, #allArticlesGrid {
    grid-template-columns: 1fr;
  }
  .projects-section, .articles-section, .newsletter { padding: 4rem 0; }
}

/* --- LANGUAGE SWITCHER --- */
.nav__lang { margin-left: 0.5rem; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  font-weight: 500;
}
.lang-switch li { margin: 0; }
.lang-switch__link {
  display: inline-block;
  padding: 0.35rem 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  transition: color var(--transition);
  border-bottom: 1px solid transparent;
}
.lang-switch__link:hover { color: var(--text); }
.lang-switch__link.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
@media (max-width: 900px) {
  .nav__lang { width: 100%; margin: 1rem 0 0; }
  .lang-switch { justify-content: center; flex-wrap: wrap; }
}

/* --- LEGAL PAGES --- */
.legal-page {
  padding: 5rem 0 6rem;
  background: var(--bg);
  min-height: 70vh;
}
.legal-page .container { max-width: 820px; }
.legal-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--text);
  margin: 0.5rem 0 1.25rem;
}
.legal-page .legal-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gold-light);
  margin: 2.5rem 0 1rem;
}
.legal-page h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
  letter-spacing: 0.02em;
}
.legal-page p, .legal-page li {
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-page ul, .legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--gold); border-bottom: 1px solid var(--gold-dim); }
.legal-page a:hover { border-bottom-color: var(--gold); }
.legal-page .legal-back {
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
  transition: color var(--transition);
}
.legal-page .legal-back:hover { color: var(--gold); border-bottom: none; }
.legal-page strong { color: var(--text); font-weight: 500; }
