:root {
  --fog: #e8eef4;
  --fog-2: #f5f8fb;
  --ink: #101a2b;
  --muted: #5a667a;
  --line: rgba(16, 26, 43, 0.12);
  --cobalt: #2f5bff;
  --cobalt-soft: #dbe4ff;
  --white: #ffffff;
  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --pad: clamp(1.1rem, 4vw, 3.25rem);
  --max: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    linear-gradient(180deg, #dfe8f1 0%, var(--fog-2) 28%, var(--fog-2) 100%);
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.back-to-portfolio {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 60;
  font-size: 0.75rem;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  background: rgba(245, 248, 251, 0.92);
  border: 1px solid var(--line);
  opacity: 0.75;
}

.back-to-portfolio:hover {
  opacity: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem var(--pad);
  background: rgba(245, 248, 251, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.topbar__nav {
  display: none;
  gap: 1.4rem;
}

.topbar__nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--muted);
}

.topbar__nav a:hover {
  color: var(--ink);
}

.topbar__cta {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.85rem;
  background: var(--ink);
  color: #fff;
  transition: background 0.2s ease;
}

.topbar__cta:hover {
  background: var(--cobalt);
}

.hero {
  position: relative;
  min-height: min(90svh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: zoom-soft 1.1s ease both;
}

.hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(16, 26, 43, 0.78) 0%, rgba(16, 26, 43, 0.45) 48%, rgba(16, 26, 43, 0.15) 100%),
    linear-gradient(0deg, rgba(16, 26, 43, 0.55), transparent 42%);
}

.hero__copy {
  position: relative;
  z-index: 1;
  width: min(100%, 640px);
  padding: 3rem var(--pad) 3.5rem;
  color: #f4f7fb;
  animation: rise 0.8s ease both;
}

.hero__brand {
  margin: 0 0 0.7rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  color: #9db4ff;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0 0 1.6rem;
  max-width: 36ch;
  color: rgba(244, 247, 251, 0.78);
  font-size: 1.05rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 0;
  background: var(--cobalt);
  color: #fff;
  font-weight: 700;
  padding: 0.95rem 1.3rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.btn-primary:hover {
  background: #1f46d8;
  transform: translateY(-2px);
}

.btn-primary--wide {
  width: 100%;
}

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.catalog {
  padding: 3.75rem var(--pad) 2rem;
}

.catalog__head {
  max-width: var(--max);
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.catalog h2,
.viewing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  letter-spacing: -0.02em;
}

.catalog__count {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

.filters {
  max-width: var(--max);
  margin: 0 auto 1.75rem;
  display: grid;
  gap: 1rem;
  padding: 1.1rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.filter__label {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--fog-2);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover {
  border-color: var(--cobalt);
}

.chip.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 1.1rem;
  grid-template-columns: 1fr;
}

.listing {
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.listing:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 91, 255, 0.35);
}

.listing.is-hidden {
  display: none;
}

.listing__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #d7dee8;
}

.listing__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.listing:hover .listing__media img {
  transform: scale(1.04);
}

.listing__tag {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.55rem;
}

.listing__body {
  padding: 1.05rem 1.05rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.listing__price {
  margin: 0;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.listing h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.35rem;
  line-height: 1.2;
}

.listing__meta {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.listing__btn {
  margin-top: auto;
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  padding: 0.75rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.listing__btn:hover {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #fff;
}

.empty {
  max-width: var(--max);
  margin: 1.5rem auto 0;
  padding: 1.25rem;
  text-align: center;
  background: var(--cobalt-soft);
  font-weight: 600;
}

.viewing {
  margin-top: 2.5rem;
  padding: 3.5rem var(--pad) 4.5rem;
  background: var(--ink);
  color: #eef3f9;
}

.viewing__layout {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

.viewing__intro p {
  color: rgba(238, 243, 249, 0.72);
  max-width: 40ch;
}

.viewing .eyebrow {
  color: #9db4ff;
}

.viewing__list {
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.viewing__list li {
  position: relative;
  padding-left: 1.15rem;
  font-weight: 600;
}

.viewing__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--cobalt);
}

.form {
  background: var(--fog-2);
  color: var(--ink);
  padding: 1.25rem;
  display: grid;
  gap: 0.85rem;
  border-top: 3px solid var(--cobalt);
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: 2px solid var(--cobalt);
  outline-offset: 1px;
}

.form__note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}

.form__success {
  margin: 0;
  font-weight: 700;
  color: #0f6b4c;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding: 1.25rem var(--pad);
  border-top: 1px solid var(--line);
  background: var(--fog-2);
  color: var(--muted);
  font-weight: 600;
}

.footer a {
  text-decoration: none;
  color: var(--cobalt);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes zoom-soft {
  from { opacity: 0; transform: scale(1.05); }
  to { opacity: 1; transform: scale(1); }
}

@media (min-width: 720px) {
  .topbar__nav {
    display: flex;
  }

  .hero {
    align-items: center;
  }

  .hero__copy {
    padding: 4.5rem var(--pad);
  }

  .filters {
    grid-template-columns: 1fr 1.4fr;
    gap: 1.5rem;
    padding: 1.25rem 1.4rem;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .viewing__layout {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
    gap: 2.5rem;
  }

  .form {
    padding: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
