/* OXCART - Core Style System */

:root {
  --bg: #f1ece6;
  --surface: #ddd5cd;
  --text: #2e2e2e;
  --muted: rgba(46, 46, 46, 0.62);
  --line: rgba(46, 46, 46, 0.18);
  --strong-line: rgba(46, 46, 46, 0.35);

  --color-background: var(--bg);
  --color-secondary: var(--surface);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --color-border-strong: var(--strong-line);
  
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-serif: var(--font-display);
  --font-sans: var(--font-ui);
  
  --ease-editorial: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  --container-width: 1360px;
  --header-height: 80px;
}

html[data-theme="dark"] {
  --bg: #242424;
  --surface: #363636;
  --text: #f1ece6;
  --muted: rgba(241, 236, 230, 0.62);
  --line: rgba(241, 236, 230, 0.18);
  --strong-line: rgba(241, 236, 230, 0.35);

  --color-background: var(--bg);
  --color-secondary: var(--surface);
  --color-text: var(--text);
  --color-text-muted: var(--muted);
  --color-border: var(--line);
  --color-border-strong: var(--strong-line);
}

html[data-lang="ru"] {
  --font-display: 'PT Serif', Georgia, serif;
  --font-ui: 'PT Sans', Arial, sans-serif;
}

html[data-lang="ja"] {
  --font-display: 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
  --font-ui: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

html[data-lang="uz"],
html[data-lang="en"] {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

html[data-lang="ru"] .logo,
html[data-lang="ru"] .auth-btn,
html[data-lang="ru"] .menu-link,
html[data-lang="ru"] .section-title,
html[data-lang="ru"] .section-heading,
html[data-lang="ru"] .field-label,
html[data-lang="ru"] .editorial-btn {
  letter-spacing: 0.08em;
}

html[data-lang="ja"] body {
  line-height: 1.75;
}

html[data-lang="ja"] .hero-subtitle {
  letter-spacing: 0;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-sans);
  overflow-x: hidden;
  line-height: 1.6;
}

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

button, input {
  font-family: inherit;
  color: inherit;
  background: none;
  border: none;
}

button {
  cursor: pointer;
}

.impersonation-banner {
  position: fixed;
  z-index: 990;
  top: var(--header-height);
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 9px 5%;
  border-bottom: 1px solid var(--color-border-strong);
  background: var(--color-secondary);
}

.impersonation-banner-inner {
  width: min(100%, var(--container-width));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--color-text);
  font: 700 0.68rem/1.4 var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.impersonation-exit-button {
  flex: 0 0 auto;
  padding: 3px 0;
  border-bottom: 1px solid var(--color-text);
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}

@media (max-width: 560px) {
  .impersonation-banner-inner { align-items: flex-start; font-size: 0.6rem; }
}

/* Accessibility: Focus Outlines */
*:focus-visible {
  outline: 1.5px solid var(--color-text);
  outline-offset: 3px;
}

/* Container Constraint */
.section-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 120px 0;
}

/* ---------------------------------------------------- */
/* HEADER & NAVIGATION */
/* ---------------------------------------------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--color-background);
  border-bottom: 1px solid var(--color-border);
  z-index: 1000;
}

.header-container {
  width: 90%;
  max-width: var(--container-width);
  height: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.auth-btn {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 12px;
  transition: opacity 0.3s, transform 0.2s;
}

.auth-btn:hover {
  opacity: 0.7;
  transform: translateY(-1px);
}

.auth-btn:active {
  transform: translateY(0);
}

/* Protected pages wait for the cookie-session check before rendering. */
body.auth-loading {
  visibility: hidden;
}

.user-avatar-wrapper {
  display: flex;
  align-items: center;
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--color-text);
  color: var(--color-background);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-editorial);
}

.avatar-circle:hover {
  transform: scale(1.05);
}

/* Burger Trigger Button */
.burger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 24px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.burger-line {
  display: block;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transition: transform 0.3s var(--ease-editorial), background-color 0.3s;
}

/* Burger Button Active state */
.burger-btn.active .burger-line:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.burger-btn.active .burger-line:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

/* Burger Menu Dropdown (Popup) */
.burger-menu {
  position: fixed;
  top: 90px;
  right: 5%;
  width: 320px;
  background-color: var(--color-secondary);
  border: 1px solid var(--color-border);
  padding: 32px;
  z-index: 999;
  
  /* Hidden by default */
  opacity: 0;
  transform: translateY(-10px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s var(--ease-editorial), transform 0.3s var(--ease-editorial), visibility 0.3s;
}

.burger-menu.active {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.menu-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: block;
  padding: 4px 0;
  position: relative;
  transition: color 0.3s;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--color-text);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease-editorial);
}

.menu-link {
  padding: 8px 12px;
}
.menu-link:hover {
  background-color: var(--color-text);
  color: var(--color-background);
}

.menu-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-footer {
  margin-top: 32px;
}

.menu-divider {
  height: 1px;
  background-color: var(--color-border);
  margin-bottom: 20px;
}

.menu-toggle-state-btn {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  padding: 8px 16px;
  border-radius: 20px;
  width: 100%;
  transition: color 0.3s, border-color 0.3s, background-color 0.3s;
}

.menu-toggle-state-btn:hover {
  color: var(--color-text);
  border-color: var(--color-text);
  background-color: var(--color-secondary);
}


/* ---------------------------------------------------- */
/* HERO SECTION */
/* ---------------------------------------------------- */

.hero-section {
  min-height: 100svh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-content {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3.5rem, 9vw, 7.5rem);
  line-height: 1;
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--color-text);
  margin-bottom: 12px;
}

.hero-subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 400;
  font-style: italic;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.hero-description {
  font-family: var(--font-sans);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  max-width: 580px;
  color: var(--color-text-muted);
  margin: 0 auto;
  margin-bottom: 8px;
}

.hero-support {
  font-family: var(--font-sans);
  font-size: clamp(0.82rem, 1.2vw, 0.95rem);
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin: 0 auto;
  max-width: 580px;
}

/* Hero Lines System */
.hero-actions-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-lines {
  position: relative;
  width: 100%;
  height: 90px;
  margin-top: 10px;
}

.line-vertical-main {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 45px;
  background-color: var(--color-text);
  opacity: 0.22;
  transform: scaleY(0);
  transform-origin: top;
}

.line-horizontal-split {
  position: absolute;
  left: 50%;
  top: 45px;
  width: 50%; /* spans from center 50% to left 25% and right 75% */
  height: 1px;
  background-color: var(--color-text);
  opacity: 0.22;
  transform: translateX(-50%) scaleX(0);
  transform-origin: center;
}

.line-vertical-branch {
  position: absolute;
  top: 45px;
  width: 1px;
  height: 45px;
  background-color: var(--color-text);
  opacity: 0.22;
  transform: scaleY(0);
  transform-origin: top;
}

.line-vertical-left {
  left: 25%;
}

.line-vertical-right {
  left: 75%;
}

.hero-actions {
  display: flex;
  width: 100%;
  margin-top: 0;
}

.hero-action-col {
  width: 50%;
  display: flex;
  justify-content: center;
}

/* Button style */
.hero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--color-text);
  border-radius: 30px;
  padding: 14px 36px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text);
  background-color: transparent;
  transition: background-color 0.4s var(--ease-editorial), color 0.4s var(--ease-editorial), opacity 0.5s;
  opacity: 0; /* Animated on load */
}

.hero-btn:hover {
  background-color: var(--color-text);
  color: var(--color-background);
}

.btn-arrow {
  transition: transform 0.3s var(--ease-editorial);
}

.hero-btn:hover .btn-arrow {
  transform: translate(2px, -2px);
}


/* ---------------------------------------------------- */
/* ANNOUNCEMENTS SECTION */
/* ---------------------------------------------------- */

.announcements-section {
  min-height: 100svh;
  background-color: var(--color-background);
  border-top: 1px solid var(--color-border);
  display: flex;
  align-items: center;
}

.announcements-section .section-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: 60px;
}

.announcements-list {
  display: flex;
  flex-direction: column;
}

.announcement-item {
  display: grid;
  grid-template-columns: 200px 1fr 40px;
  align-items: start;
  padding: 40px 0;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.4s var(--ease-editorial), padding-left 0.4s var(--ease-editorial);
  cursor: pointer;
}

.announcement-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.announcement-item:hover {
  background-color: var(--color-secondary);
  padding-left: 20px;
}

.announcement-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.announcement-number {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-muted);
}

.announcement-date {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.announcement-body {
  padding-right: 40px;
}

.announcement-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 12px;
  line-height: 1.3;
}

.announcement-text {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-muted);
  max-width: 720px;
}

.announcement-arrow {
  color: var(--color-text-muted);
  align-self: center;
  transition: transform 0.4s var(--ease-editorial), color 0.4s var(--ease-editorial);
}

.announcement-item:hover .announcement-arrow {
  transform: translateX(6px);
  color: var(--color-text);
}

/* Partners Logo Marquee Ticker */
.partners-container {
  margin-top: 100px;
  border-top: 1px solid var(--color-border);
  padding-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.partners-label {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
}

.partners-ticker {
  overflow: hidden;
  width: 100%;
  position: relative;
  /* subtle mask to fade edges */
  mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, white 10%, white 90%, transparent);
}

.partners-ticker-track {
  display: flex;
  width: max-content;
  gap: 80px;
  animation: marquee 25s linear infinite;
}

.partner-logo {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--color-text-muted);
  white-space: nowrap;
}


/* ---------------------------------------------------- */
/* CATEGORIES SECTION */
/* ---------------------------------------------------- */

.categories-section {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
}

.categories-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 12px;
}

.categories-section .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 60px;
}

.categories-list {
  display: flex;
  flex-direction: column;
}

.category-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0;
  border-top: 1px solid var(--color-border);
  transition: background-color 0.4s var(--ease-editorial), padding-left 0.4s var(--ease-editorial);
  cursor: pointer;
}

.category-item:last-child {
  border-bottom: 1px solid var(--color-border);
}

.category-item:hover {
  background-color: var(--color-secondary);
  padding-left: 24px;
}

.category-info {
  display: flex;
  align-items: center;
  gap: 40px;
}

.category-number {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.category-name {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--color-text);
}

.category-arrow {
  font-family: var(--font-sans);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  transition: transform 0.4s var(--ease-editorial), color 0.4s var(--ease-editorial);
}

.category-item:hover .category-arrow {
  transform: translateX(8px);
  color: var(--color-text);
}


/* ---------------------------------------------------- */
/* PROJECTS SECTION */
/* ---------------------------------------------------- */

.projects-section {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-background);
}

.projects-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  display: block;
  margin-bottom: 12px;
}

.projects-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
}

.projects-count {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

.projects-section .section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 400;
  margin-bottom: 0;
}

.projects-section .section-description {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 60px;
  max-width: 600px;
}

/* Controls: Search and Tabs */
.projects-controls {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 60px;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 32px;
}

.search-wrapper {
  position: relative;
  max-width: 480px;
  width: 100%;
}

#project-search {
  width: 100%;
  padding: 12px 40px 12px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 1rem;
  transition: border-color 0.3s;
}

#project-search:focus {
  outline: none;
  border-color: var(--color-border-strong);
}

.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

.filter-tabs-container {
  width: 100%;
  overflow-x: auto;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.filter-tabs-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.filter-tabs {
  display: flex;
  gap: 12px;
  width: max-content;
}

.filter-tab {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 8px 18px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  transition: border-color 0.3s, background-color 0.3s, color 0.3s;
}

.filter-tab:hover {
  border-color: var(--color-text);
}

.filter-tab.active {
  background-color: var(--color-text);
  color: var(--color-background);
  border-color: var(--color-text);
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  min-height: 400px;
}

/* Project Card */
.project-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  background-color: var(--color-background);
  transition: border-color 0.4s var(--ease-editorial);
  opacity: 0; /* Driven by ScrollTrigger reveal */
  transform: translateY(30px);
}

.project-card:hover {
  border-color: var(--color-text-muted);
}

.project-card-image-wrapper {
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--color-secondary);
  position: relative;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-editorial);
}

.project-card:hover .project-card-image {
  transform: scale(1.03);
}

.project-card-content {
  padding: 30px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-card-tags {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.project-card-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.25;
  transition: transform 0.4s var(--ease-editorial);
  transform-origin: left;
}

.project-card:hover .project-card-title {
  transform: translateX(4px);
}

.project-card-desc {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 24px;
  flex-grow: 1;
}

.project-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  border-top: 1px solid var(--color-border);
  padding-top: 16px;
  margin-bottom: 12px;
}

.project-card-creator {
  font-weight: 500;
  color: var(--color-text);
}

.project-card-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.project-card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--color-text);
  font-weight: 500;
}

.star-icon {
  color: var(--color-text);
  font-size: 0.9rem;
}

.project-card-views {
  color: var(--color-text-muted);
}

/* Card lines system for actions */
.project-card-actions {
  display: flex;
  border-top: 1px solid var(--color-border);
  margin-top: 16px;
}

.card-action-btn {
  width: 50%;
  padding: 16px 0;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.3s, color 0.3s;
}

.card-action-btn:first-child {
  border-right: 1px solid var(--color-border);
}

.card-action-btn:hover {
  background-color: var(--color-text);
  color: var(--color-background);
}

.card-action-btn svg {
  transition: transform 0.3s var(--ease-editorial);
}

.card-action-btn:hover svg {
  transform: translateX(4px);
}


/* ---------------------------------------------------- */
/* VIEW MORE                                            */
/* ---------------------------------------------------- */

.view-more-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 0 20px 0;
  transition: opacity 0.4s var(--ease-editorial);
}

.view-more-line {
  width: 1px;
  height: 55px;
  background-color: var(--color-text);
  opacity: 0.15;
  margin-bottom: 16px;
  transition: transform 0.4s var(--ease-editorial);
  transform: scaleY(0.73);
  transform-origin: top center;
}

.project-save-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: rgba(241, 236, 230, 0.9);
  border: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] .project-save-btn {
  background: rgba(46, 46, 46, 0.65);
  border-color: rgba(241, 236, 230, 0.18);
  color: var(--text);
}

.project-save-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.project-save-btn.is-saved {
  background: var(--text);
  color: var(--bg);
}
.project-save-btn.is-saved svg { fill: currentColor; }
.project-save-btn:hover { background: var(--text); color: var(--bg); }

.view-more-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  cursor: pointer;
}

.view-more-text {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  transition: color 0.3s var(--ease-editorial);
}

.view-more-arrow {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  transition: transform 0.4s var(--ease-editorial), color 0.3s var(--ease-editorial);
}

.view-more-btn:hover .view-more-text {
  color: var(--color-text);
}

.view-more-btn:hover .view-more-arrow {
  transform: translateY(4px);
  color: var(--color-text);
}

.view-more-btn:hover ~ .view-more-line,
.view-more-container:hover .view-more-line {
  transform: scaleY(1);
}

/* No Results */
.no-results {
  text-align: center;
  padding: 80px 0;
}

.no-results-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.no-results-hint {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
/* ---------------------------------------------------- */
/* FOOTER */
/* ---------------------------------------------------- */

.site-footer {
  background-color: #2e2e2e;
  border-top: 1px solid var(--line);
  padding: 100px 0 60px 0;
  color: #f1ece6;
}

/* Keep translated navigation and controls inside the viewport. */
.burger-menu {
  width: max-content;
  min-width: 320px;
  max-width: calc(100vw - 32px);
}

.card-action-btn {
  width: auto;
  flex: 1 1 0;
  min-width: 0;
}

[data-theme="dark"] .site-footer {
  background-color: #252525;
  border-top: 1px solid var(--line);
  color: #f1ece6;
}

.footer-container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-hero-brand {
  font-family: var(--font-serif);
  font-size: clamp(4rem, 15vw, 12rem);
  font-weight: 300;
  letter-spacing: 0.08em;
  color: #f1ece6;
  opacity: 0.08;
  line-height: 1;
  user-select: none;
  margin-bottom: 40px;
}

.footer-divider {
  width: 100%;
  height: 1px;
  background-color: rgba(241, 236, 230, 0.15);
  margin-bottom: 24px;
}

.footer-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: rgba(241, 236, 230, 0.7);
}

.credits {
  font-weight: 400;
  letter-spacing: 0.02em;
}
