/* Ethereal 3D — closed-studio archive */

:root {
  --ink: #0e1418;
  --ink-soft: #1c262c;
  --paper: #e8eef1;
  --muted: #8a9aa3;
  --cyan: #289dcc;
  --cyan-deep: #1a7a9e;
  --glow: rgba(40, 157, 204, 0.35);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--paper);
  background:
    radial-gradient(ellipse 80% 50% at 10% 0%, rgba(40, 157, 204, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 20%, rgba(40, 157, 204, 0.06), transparent 50%),
    linear-gradient(180deg, #0a1014 0%, var(--ink) 40%, #121a1f 100%);
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--cyan);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  animation: hero-drift 28s var(--ease) infinite alternate;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 16, 20, 0.35) 0%, rgba(10, 16, 20, 0.55) 45%, rgba(10, 16, 20, 0.92) 100%),
    linear-gradient(90deg, rgba(10, 16, 20, 0.55) 0%, transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: clamp(2rem, 6vw, 5rem);
  max-width: 42rem;
  animation: rise 1s var(--ease) both;
}

.hero__tag {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 600;
  animation: rise 0.9s var(--ease) 0.1s both;
}

.hero__brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.35rem, 9vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  white-space: nowrap;
  animation: rise 1s var(--ease) 0.18s both;
}

.hero__lede {
  margin: 0 0 1.75rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: rgba(232, 238, 241, 0.88);
  max-width: 34rem;
  animation: rise 1s var(--ease) 0.28s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  animation: rise 1s var(--ease) 0.38s both;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, color 0.25s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--cyan);
  color: #061018;
  border: 1px solid var(--cyan);
}

.btn--primary:hover {
  background: #3bb0de;
  border-color: #3bb0de;
}

.btn--ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(232, 238, 241, 0.35);
}

.btn--ghost:hover {
  border-color: var(--cyan);
  color: #fff;
}

/* —— About —— */
.about {
  padding: clamp(3.5rem, 10vw, 6.5rem) clamp(1.5rem, 5vw, 4rem);
}

.about__inner {
  max-width: 40rem;
  margin: 0 auto;
}

.about h2,
.archive__intro h2,
.contact h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: #fff;
}

.about p {
  margin: 0 0 1rem;
  color: rgba(232, 238, 241, 0.82);
}

.about__note {
  margin-top: 1.5rem !important;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(40, 157, 204, 0.25);
  color: var(--muted) !important;
  font-size: 0.95rem;
}

/* —— Archive gallery —— */
.archive {
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(3.5rem, 10vw, 6rem);
}

.archive__intro {
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.archive__intro p {
  margin: 0;
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 72rem;
  margin: 0 auto;
}

@media (min-width: 700px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .gallery__item--wide {
    grid-column: 1 / -1;
  }
}

.gallery__item {
  margin: 0;
  overflow: hidden;
  background: var(--ink-soft);
}

.gallery__item img {
  width: 100%;
  height: clamp(14rem, 38vw, 22rem);
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.gallery__item--wide img {
  height: clamp(16rem, 42vw, 28rem);
}

.gallery__item:hover img {
  transform: scale(1.03);
}

.gallery__item figcaption {
  padding: 0.85rem 1rem 1.1rem;
  font-size: 0.875rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

/* —— Contact —— */
.contact {
  padding: 0 clamp(1.5rem, 5vw, 4rem) clamp(4rem, 10vw, 6rem);
}

.contact__card {
  max-width: 40rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 2.75rem);
  background:
    linear-gradient(145deg, rgba(40, 157, 204, 0.12), transparent 60%),
    var(--ink-soft);
  border: 1px solid rgba(40, 157, 204, 0.28);
  box-shadow: 0 0 60px var(--glow);
}

.contact__card p {
  margin: 0 0 1.5rem;
  color: rgba(232, 238, 241, 0.85);
}

/* —— Footer —— */
.footer {
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 2.5rem;
  border-top: 1px solid rgba(232, 238, 241, 0.08);
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer p {
  margin: 0.35rem 0;
}

.footer strong {
  color: rgba(232, 238, 241, 0.75);
  font-weight: 600;
}

/* —— Motion —— */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.05) translate(0, 0);
  }
  to {
    transform: scale(1.12) translate(-1.5%, 1%);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__media img,
  .hero__content,
  .hero__tag,
  .hero__brand,
  .hero__lede,
  .hero__actions,
  .gallery__item img {
    animation: none !important;
    transition: none !important;
  }
}
