/*
  Yuzuctus - Desert Vivant Layout
  Continuous Canvas: smooth gradient, no section breaks.
  Asymmetric hero. Semantic class names.
*/

.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--space-lg); }
.container--narrow { max-width: var(--max-width-narrow); }
.container--wide { max-width: var(--max-width-wide); }

.section { padding-block: var(--space-section); position: relative; }

.hero {
  min-height: 112dvh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: calc(var(--space-2xl) + var(--nav-height)) var(--space-lg) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    min-height: auto;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-portrait {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-portrait img {
  width: clamp(22rem, 38vw, 42rem);
  max-width: 100%;
  border-radius: var(--radius-egg);
  border: 2px solid var(--border-soft);
  filter: drop-shadow(0 8px 24px var(--shadow-color));
  animation: float 6s var(--ease-swish) infinite alternate;
}

@media (max-width: 820px) {
  .hero-portrait img {
    width: min(72vw, 22rem);
    max-width: 22rem;
  }
  .hero-portrait { order: -1; }
}

.hero-title {
  font-size: var(--text-hero);
  font-weight: var(--weight-black);
  line-height: var(--leading-tight);
}

.hero-title em {
  font-style: normal;
  color: var(--accent-strong);
}

[data-theme="night"] .hero-title em { color: var(--accent); }

.hero-subtitle {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--fg-muted);
  max-width: 34rem;
  line-height: var(--leading-relaxed);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

@media (max-width: 820px) {
  .hero-actions { justify-content: center; }
}

.projects-heading,
.gallery-heading,
.section-heading {
  text-align: center;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  align-items: center;
}

.projects-heading h2,
.gallery-heading h2,
.section-heading h2 { font-size: var(--text-2xl); }

.projects-heading p,
.gallery-heading p,
.section-heading p { color: var(--fg-muted); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-lg);
}

.links-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-md);
}

@media (max-width: 820px) {
  .links-grid {
    grid-template-columns: 1fr;
  }
}

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

@media (max-width: 920px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

.gallery-grid > :first-child { grid-column: 1 / -1; }

.footer {
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  color: var(--fg-muted);
  font-size: var(--text-sm);
}

.footer-inner {
  max-width: var(--max-width);
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--fg-muted);
  font-size: var(--text-sm);
  transition: color var(--dur-fast) var(--ease-swish);
}

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

.centered-section {
  text-align: center;
  max-width: 40rem;
  margin-inline: auto;
}

.tag-row {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.text-center { text-align: center; }
.text-muted { color: var(--fg-muted); }
.text-quiet { color: var(--fg-quiet); }
.text-accent { color: var(--accent-strong); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg);
  font-weight: var(--weight-semibold);
}

[data-theme="night"] .kicker { color: var(--accent); }

.mt-space-sm { margin-top: var(--space-sm); }
.mt-space-lg { margin-top: var(--space-lg); }
.mt-space-xl { margin-top: var(--space-xl); }

.mb-space-sm { margin-bottom: var(--space-sm); }
.mb-space-lg { margin-bottom: var(--space-lg); }
.mb-space-xl { margin-bottom: var(--space-xl); }

.pt-nav-xl { padding-top: calc(var(--nav-height) + var(--space-xl)); }
.pb-section { padding-bottom: var(--space-section); }

.max-width-28rem { max-width: 28rem; }
.mx-auto { margin-inline: auto; }

.overflow-x-auto { overflow-x: auto; }
.pad-md { padding: var(--space-md); }
.pad-lg { padding: var(--space-lg); }
.pad-none { padding: 0; }

.width-full { width: 100%; }
.display-block { display: block; }
.overflow-hidden { overflow: hidden; }

.flex-center-gap-md {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.sticker-sm { max-width: 5rem; }
.sticker-md { max-width: 6rem; }
.sticker-lg { max-width: 8rem; }

.fs-sm { font-size: var(--text-sm); }

.w-100 { width: 100%; }
