/* ============================================
   DESIGN TOKENS
   ============================================ */
:root {
  color-scheme: dark;
  --sun: #f5d874;
  --coal: #383838;
  --sand: #fef4cf;
  --carbon: #1d1c1a;
  --muted: rgba(255, 255, 255, 0.65);
  --font-sans: "Gotham", "Arial", sans-serif;
  font-size: 16px;
  scroll-behavior: smooth;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham_normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("../fonts/Gotham_bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================
   RESET & GLOBAL
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--coal);
  color: var(--sand);
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.site-main {
  padding-top: 5rem;
}

::selection {
  background: rgba(245, 216, 116, 0.35);
  color: #1b1b1b;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(56, 56, 56, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: var(--sand);
  font-family: var(--font-sans);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.brand strong {
  display: block;
  font-size: 1.25rem;
  line-height: 1;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

nav {
  display: flex;
  gap: 1.25rem;
  font-weight: 600;
}

nav a {
  padding-bottom: 0.25rem;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.8);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

nav a.active,
nav a:hover {
  color: var(--sun);
  border-color: var(--sun);
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  overflow: hidden;
}

.lang-toggle a {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.35rem 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-toggle a:last-child {
  border-right: none;
}

.lang-toggle a.active {
  background: var(--sun);
  color: #2d2d2d;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 6rem;
  padding: 2.5rem 0 3rem;
  background: #2d2d2d;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ============================================
   HERO (Home)
   ============================================ */
.hero {
  position: relative;
  padding: 6rem 0 0;
  background: #3a3a3a;
  overflow: hidden;
}

.hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  pointer-events: none;
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  position: relative;
  padding-bottom: 3rem;
}

.hero__text h1 {
  font-family: "Gotham", sans-serif;
  font-size: clamp(2.4rem, 3vw, 3.4rem);
  margin-bottom: 1rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.4em;
  font-size: 0.8rem;
  color: rgba(245, 216, 116, 0.9);
  margin-bottom: 0.8rem;
}

.lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn--primary {
  background: var(--sun);
  color: #1e1c18;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--sand);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero__visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.hero__orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__logo {
  height: 280px;
  width: auto;
}

.hero__wave {
  margin-top: 3rem;
}

/* ============================================
   SECTION HEADINGS
   ============================================ */
.section-heading {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-heading--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2.8vw, 2.6rem);
}

/* ============================================
   PARTNERS
   ============================================ */
.partners-section {
  padding: 4rem 0 2rem;
  background: #2d2d2d;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.partner-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.partner-card-link:hover .partner-card {
  transform: translateY(-4px);
  border-color: rgba(245, 216, 116, 0.4);
}

.partner-card {
  height: 100%;
  border-radius: 28px;
  padding: 1.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.partner-card__logo {
  width: 100%;
  height: clamp(90px, 12vw, 140px);
  border-radius: 20px;
  background: rgba(245, 216, 116, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 216, 116, 0.25);
  padding: 0.9rem 1.1rem;
  position: relative;
  overflow: hidden;
}

.partner-card__logo img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
}

.partner-card__logo span {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--sun);
}

.partner-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.partner-card__body h3 {
  margin: 0;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.partner-card__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
}

/* ============================================
   PROJECTS (Home)
   ============================================ */
.projects-section {
  padding: 4rem 0 2rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.projects-section__cta {
  text-align: center;
  margin-top: 3rem;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
  background: #2d2d2d;
  padding: 4rem 0;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.contact-info {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 32px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4);
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.contact-list {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  justify-items: stretch;
}

.contact-info .section-heading {
  text-align: center;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.05rem;
  flex-wrap: wrap;
  min-width: 0;
}

.contact-item__icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(245, 216, 116, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(245, 216, 116, 0.3);
  flex-shrink: 0;
}

.contact-item__icon svg {
  width: 32px;
  height: 32px;
}

.contact-list a {
  color: var(--sand);
  font-weight: 600;
  display: inline-block;
}

.contact-item a,
.contact-item span {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============================================
   PROJECT CARD
   ============================================ */
.project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--sun);
  border-radius: 22px;
  padding: 1.5rem;
  min-height: 260px;
  overflow: hidden;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.45);
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.project-card__media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: rgba(0, 0, 0, 0.4);
  border: none;
  padding: 0;
  width: 100%;
  cursor: zoom-in;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.project-card__media:focus-visible {
  box-shadow: 0 0 0 2px var(--sun);
}

.project-card__body {
  position: relative;
}

.project-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  color: #fff5d2;
}

.project-card__subtitle {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.22em;
  color: rgba(245, 216, 116, 0.7);
}

.project-card__description {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
}

.project-card__link {
  margin: 10px 0 0;
  font-weight: bold;
  color: rgba(245, 216, 116, 0.7);
  line-height: 1.5;
}

.project-card__tags {
  margin-top: 1.25rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.project-card__tags span {
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.3);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.85);
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: var(--sun);
  filter: brightness(1.2);
}

.project-card--compact {
  padding: 1.25rem;
  min-height: 220px;
}

.project-card--compact h3 {
  font-size: 1.2rem;
}

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

/* ============================================
   WAVE SEPARATOR
   ============================================ */
.wave {
  line-height: 0;
}

.wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.25s ease,
    visibility 0.25s ease;
  z-index: 999;
}

.lightbox.is-active {
  opacity: 1;
  visibility: visible;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
}

.lightbox__content {
  position: relative;
  max-width: min(900px, 90vw);
  max-height: min(90vh, 900px);
  width: 100%;
  margin: 0;
  background: #1f1f1f;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--sand);
  font-size: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
}

.lightbox__content img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.4);
}

.lightbox__content figcaption {
  padding: 1.5rem 2rem 2rem;
  overflow-y: auto;
  max-height: 35vh;
}

.lightbox__content h3 {
  margin: 0;
  font-size: 1.6rem;
}

.lightbox__subtitle {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
}

/* ============================================
   PORTFOLIO HERO
   ============================================ */
.portfolio-hero {
  background: #2d2d2d;
  padding-top: 4rem;
  padding-bottom: 0;
  position: relative;
}

.portfolio-hero h1 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin-top: 0.5rem;
}

.intro {
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 700px;
  color: rgba(255, 255, 255, 0.75);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-links a {
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
  color: var(--sand);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.hero-links a:hover {
  background: var(--sun);
  color: #2a250f;
}

/* ============================================
   PORTFOLIO LIST
   ============================================ */
.portfolio-list {
  padding: 3rem 0 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.category {
  padding: 3rem 0;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 30px 80px rgba(0, 0, 0, 0.3);
  position: relative;
}

.category::before {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  opacity: 0.4;
  pointer-events: none;
}

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

.category__header h2 {
  margin: 0.3rem 0;
  font-size: clamp(1.8rem, 2.6vw, 2.4rem);
}

.category__header p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.75);
}

.category__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .category__grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 720px) {
  nav {
    gap: 0.5rem;
    font-size: 0.9rem;
  }

  .site-header__actions {
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    flex-wrap: nowrap;
  }

  .site-header__actions nav {
    flex: 1 1 auto;
    min-width: 0;
  }

  .lang-toggle {
    flex-shrink: 0;
  }

  .lang-toggle a {
    padding: 0.25rem 0.6rem;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
  }

  .site-header__inner {
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-main {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 4rem;
  }

  .hero__orb {
    padding: 2rem;
  }

  .hero__logo {
    height: 180px;
  }

  .section-heading--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-info {
    padding: 2rem;
  }

  .contact-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .contact-item a,
  .contact-item span {
    width: 100%;
  }

  .category__header {
    flex-direction: column;
  }

  .lightbox {
    padding: 1rem;
  }

  .lightbox__content figcaption {
    padding: 1.25rem;
  }
}

/* ============================================
   ERROR PAGE
   ============================================ */
.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
}

.error-page__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 700;
  color: var(--sun);
  line-height: 1;
}

.error-page h1 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

.error-page__message {
  color: var(--muted);
  max-width: 28rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}
