/* zip flats — brand: #5c5c5c / #7acab5 · All Round Gothic */

@font-face {
  font-family: "All Round Gothic";
  src: local("All Round Gothic"),
       local("AllRoundGothic"),
       url("../fonts/Quicksand-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "All Round Gothic";
  src: local("All Round Gothic Medium"),
       url("../fonts/Quicksand-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "All Round Gothic";
  src: local("All Round Gothic Semi"),
       url("../fonts/Quicksand-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "All Round Gothic";
  src: local("All Round Gothic Bold"),
       url("../fonts/Quicksand-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #5c5c5c;
  --mint: #7acab5;
  --mint-deep: #5fb39c;
  --paper: #f7f7f7;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(92, 92, 92, 0.12);
  --header-h: 4.5rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "All Round Gothic", Quicksand, "Trebuchet MS", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}

.wrap {
  width: min(1100px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand__icon {
  width: 2.6rem;
  height: auto;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand__name span {
  font-weight: 500;
}

.brand__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mint);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a {
  position: relative;
  padding: 0.25rem 0;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--ink) 15%, transparent);
  border-radius: 0.4rem;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s var(--ease) infinite alternate;
}

.hero__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(92, 92, 92, 0.15) 0%, rgba(92, 92, 92, 0.72) 100%),
    linear-gradient(90deg, rgba(122, 202, 181, 0.22), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 1;
  padding: 4.5rem 0 5rem;
}

.hero__eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mint);
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.15s forwards;
}

.hero h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.3s forwards;
}

.hero__lead {
  margin: 1.1rem 0 0;
  max-width: 34ch;
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 400;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.45s forwards;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.75rem;
  padding: 0.9rem 1.35rem;
  background: var(--mint);
  color: var(--ink);
  font-weight: 600;
  border-radius: 0.35rem;
  opacity: 0;
  animation: riseIn 0.9s var(--ease) 0.6s forwards;
  transition: background 0.25s ease, transform 0.25s ease;
}

.hero__cta:hover {
  background: var(--mint-deep);
  transform: translateY(-2px);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--white);
}

.section__label {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mint);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section__text {
  margin: 1rem 0 0;
  max-width: 62ch;
  font-size: 1.05rem;
  color: color-mix(in srgb, var(--ink) 88%, white);
}

.intro-grid {
  display: grid;
  gap: 2rem;
  margin-top: 2.5rem;
  grid-template-columns: repeat(3, 1fr);
}

.intro-grid article {
  padding-top: 1.1rem;
  border-top: 2px solid var(--mint);
}

.intro-grid h3 {
  margin: 0 0 0.55rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.intro-grid p {
  margin: 0;
  font-size: 0.98rem;
  color: color-mix(in srgb, var(--ink) 80%, white);
}

/* Carousels */
.flats {
  display: grid;
  gap: 4rem;
  margin-top: 3rem;
}

.flat {
  display: grid;
  gap: 1.25rem;
}

.flat__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.flat__head h3 {
  margin: 0;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  font-weight: 700;
}

.flat__meta {
  margin: 0.35rem 0 0;
  color: color-mix(in srgb, var(--ink) 70%, white);
  font-size: 0.95rem;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 0.35rem;
  background: color-mix(in srgb, var(--ink) 6%, white);
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
}

.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 0.55s var(--ease);
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__nav {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  pointer-events: none;
}

.carousel__btn {
  pointer-events: auto;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 88%, transparent);
  color: var(--ink);
  display: grid;
  place-items: center;
  backdrop-filter: blur(6px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__btn:hover {
  background: var(--mint);
  transform: scale(1.05);
}

.carousel__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.85rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  pointer-events: none;
}

.carousel__dots .carousel__dot {
  pointer-events: auto;
}

.carousel__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--white) 55%, transparent);
  box-shadow: 0 0 0 1px rgba(92, 92, 92, 0.2);
  transition: width 0.3s var(--ease), background 0.3s ease;
}

.carousel__dot.is-active {
  width: 1.4rem;
  background: var(--mint);
}

/* Economics */
.economics {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: start;
  margin-top: 2.25rem;
}

.economics--solo {
  grid-template-columns: 1fr;
}

.econ-card {
  padding: 1.75rem;
  background: var(--ink);
  color: var(--white);
  border-radius: 0.35rem;
}

.econ-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.econ-card__copy {
  min-width: 0;
  flex: 1;
}

.econ-card__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  flex: 0 0 12rem;
}

.econ-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
}

.econ-card p {
  margin: 0;
  color: color-mix(in srgb, var(--white) 78%, var(--mint));
  font-size: 0.98rem;
}

.year-select {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
}

.year-select select {
  appearance: none;
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 0.9rem;
  border: 1px solid color-mix(in srgb, var(--white) 22%, transparent);
  border-radius: 0.35rem;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237acab5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
      right 0.85rem center / 1rem no-repeat,
    color-mix(in srgb, var(--white) 8%, transparent);
  color: var(--white);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.year-select select:focus {
  outline: 2px solid var(--mint);
  outline-offset: 2px;
}

.year-select select option {
  color: var(--ink);
  background: var(--white);
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.95rem 1.2rem;
  background: var(--mint);
  color: var(--ink);
  font-weight: 700;
  border-radius: 0.35rem;
  transition: background 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
  background: var(--mint-deep);
  transform: translateY(-2px);
}

.download-btn svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Footer */
.site-footer {
  padding: 2.5rem 0;
  background: var(--ink);
  color: color-mix(in srgb, var(--white) 82%, var(--mint));
}

.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer strong {
  color: var(--mint);
  font-weight: 600;
}

/* Motion */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to { transform: scale(1.1) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__media img,
  .hero__eyebrow,
  .hero h1,
  .hero__lead,
  .hero__cta,
  .carousel__track {
    animation: none !important;
    transition: none !important;
    opacity: 1;
    transform: none;
  }
}

/* Responsive */
@media (max-width: 860px) {
  .intro-grid,
  .economics {
    grid-template-columns: 1fr;
  }

  .econ-card__top {
    flex-wrap: wrap;
  }

  .econ-card__actions {
    flex: 1 1 12rem;
    max-width: 14rem;
    margin-left: auto;
  }

  .nav-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
    padding: 0.5rem 1.25rem 1rem;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--ink) 8%, transparent);
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(1100px, calc(100% - 1.5rem));
  }

  .section {
    padding: 3.5rem 0;
  }

  .hero__content {
    padding: 3rem 0 3.5rem;
  }
}
