:root {
  --ink: #0d0d0d;
  --ink-2: #1a1a1a;
  --paper: #fafafa;
  --cream: #f5f2ec;
  --coral: #ff5a3c;
  --coral-hover: #e63c1e;
  --coral-soft: #ffe5df;
  --lime: #d7f78a;
  --muted: #6b6b6b;
  --line: #e5e5e5;
  --white: #ffffff;
  --gray-50: #fafafa;
  --gray-100: #f5f5f5;
  --gray-200: #e5e5e5;
  --gray-400: #a3a3a3;
  --gray-600: #525252;
  --gray-900: #171717;
  --sans: "Inter", sans-serif;
  --display: "Inter", sans-serif;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-button: 0 4px 12px rgba(255, 90, 60, 0.25);
  --header-height: 84px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--display);
  letter-spacing: -0.02em;
}

h1 { font-weight: 700; line-height: 1.1; }
h2 { font-weight: 600; line-height: 1.2; }
h3 { font-weight: 600; line-height: 1.25; }

.site-header {
  height: var(--header-height);
  background: var(--ink);
}

.brand {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.header-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}

.menu-button {
  min-width: 44px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.menu-button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.button {
  border-radius: var(--radius-sm);
  padding: 14px 28px;
  font-weight: 600;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}

.button-primary {
  background: var(--coral);
  color: var(--white);
}

.button-primary:hover {
  background: var(--coral-hover);
  box-shadow: var(--shadow-button);
}

.button-ghost {
  border: 2px solid var(--coral);
  color: var(--coral);
}

.button-ghost:hover {
  background: var(--coral-soft);
  border-color: var(--coral-hover);
}

.button:active,
.hero-search button:active,
.header-cta:active,
.price-search-button:active {
  transform: scale(0.98);
}

.hero-search button,
.big-search button,
.price-search-button,
.contact-submit {
  border-radius: var(--radius-sm);
  background: var(--coral);
  color: var(--white);
  font-weight: 600;
  min-height: 44px;
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.hero-search button:hover,
.big-search button:hover,
.price-search-button:hover,
.contact-submit:hover {
  background: var(--coral-hover);
  box-shadow: var(--shadow-button);
  filter: none;
}

/* Homepage first slice */
.home-page .map-hero {
  background: var(--ink);
  padding: var(--space-3xl) clamp(24px, 5vw, 76px);
}

.home-page .map-hero h1 {
  font-size: clamp(48px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: var(--space-lg) 0 var(--space-lg);
}

.home-page .map-hero-copy > p {
  font-size: 18px;
  line-height: 1.6;
  max-width: 590px;
  color: rgba(255, 255, 255, 0.72);
}

.home-page .hero-search {
  margin-top: var(--space-xl);
}

.home-page .hero-search button {
  padding: 0 28px;
  margin: 6px 0;
}

.home-page .hero-search button span {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.home-page .hero-search button:hover span {
  transform: translateX(4px);
}

.home-page .map-workspace {
  background: #141414;
  border-radius: var(--radius-md);
}

.home-page .map-switch {
  border-radius: var(--radius-sm);
  padding: 4px;
}

.home-page .map-switch button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.home-page .map-switch button.active {
  background: var(--coral);
  color: var(--white);
}

.home-page .signal-strip {
  padding: var(--space-2xl) clamp(24px, 5vw, 76px);
  background: linear-gradient(90deg, #ff5a3c 0%, #ff7a5c 100%);
  gap: 0;
}

.home-page .signal-strip div {
  padding-left: var(--space-lg);
  border-left: 1px solid rgba(0, 0, 0, 0.1);
}

.home-page .signal-strip div:first-child {
  padding-left: 0;
  border-left: 0;
}

.home-page .signal-strip strong {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.home-page .signal-strip span {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  margin-top: var(--space-sm);
}

.home-page .section-pad {
  padding: var(--space-4xl) clamp(24px, 8vw, 124px);
}

.home-page .intro-grid h2 {
  font-size: clamp(40px, 5vw, 72px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.home-page .intro-grid > div {
  font-size: 18px;
  line-height: 1.6;
}

.home-page .portal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-3xl);
  border: 0;
}

.home-page .portal-grid > a {
  min-height: 280px;
  padding: var(--space-xl);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.home-page .portal-grid > a:hover {
  background: var(--white);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--coral);
}

.home-page .portal-grid span {
  color: var(--gray-400);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.home-page .portal-grid h3 {
  font-size: 25px;
  margin: var(--space-xl) 0 var(--space-sm);
}

.home-page .portal-grid b {
  color: var(--coral);
  font-weight: 600;
}

.home-page .portal-grid > a:hover b {
  transform: none;
}

.home-page .portal-grid > a b {
  display: inline-flex;
  align-items: center;
  transition: transform 0.2s var(--ease);
}

.home-page .portal-grid > a:hover b {
  transform: translateX(4px);
}

.home-page .collection-progress-heading h2 {
  font-weight: 600;
  letter-spacing: -0.02em;
}

@media (max-width: 1250px) {
  .home-page .portal-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .home-page .portal-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .home-page .section-pad {
    padding: var(--space-3xl) var(--space-lg);
  }
}

@media (max-width: 760px) {
  .home-page .portal-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .home-page .portal-grid > a {
    min-height: 230px;
  }

  .home-page .map-hero {
    padding: var(--space-2xl) var(--space-lg);
  }

  .home-page .map-hero h1 {
    font-size: 36px;
    line-height: 1.1;
  }

  .home-page .signal-strip {
    padding: var(--space-xl) var(--space-lg);
    gap: var(--space-lg) 0;
  }

  .home-page .signal-strip div:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .home-page .signal-strip div:nth-child(even) {
    padding-left: var(--space-md);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
}

@media (max-width: 600px) {
  .home-page .section-pad {
    padding: var(--space-2xl) var(--space-lg);
  }

  :root {
    --header-height: 70px;
  }
}

footer {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid #262626;
  padding: var(--space-3xl) clamp(24px, 8vw, 124px) var(--space-xl);
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(280px, 1.45fr);
  grid-template-areas:
    "brand links"
    "tagline links";
  align-items: start;
  column-gap: var(--space-3xl);
  row-gap: var(--space-sm);
}

footer > .brand,
footer .footer-brand {
  grid-area: brand;
  font-size: 18px;
  align-self: end;
}

footer > p {
  grid-area: tagline;
  margin: 0;
  max-width: 280px;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--gray-400);
}

footer > div {
  grid-area: links;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-content: start;
  gap: 4px 24px;
  font-size: 15px;
  font-weight: 500;
  line-height: 2;
}

footer > div a {
  color: var(--gray-400);
  text-underline-offset: 4px;
  transition: color 0.2s var(--ease);
}

footer > div a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 900px) {
  footer {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "tagline"
      "links";
    justify-items: center;
    text-align: center;
    gap: var(--space-sm);
  }

  footer > p {
    text-align: center;
    max-width: 360px;
  }

  footer > div {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  footer > div {
    flex-direction: row;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .button,
  .header-cta,
  .hero-search button,
  .home-page .portal-grid > a,
  .home-page .map-switch button,
  .site-header nav a {
    transition: none;
  }

  .button:active,
  .hero-search button:active,
  .home-page .portal-grid > a:hover {
    transform: none;
  }
}
