:root {
  color-scheme: light;
  --ink: #111310;
  --muted: #68706a;
  --paper: #f4f6f0;
  --surface: #fbfcf8;
  --line: rgba(17, 19, 16, 0.14);
  --accent: #b8492e;
  --accent-dark: #83311f;
  --night: #0e100e;
  --night-soft: #191c18;
  --white: #f8faf4;
  --radius: 22px;
  --max: 1220px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  content: "";
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(17, 19, 16, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 19, 16, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent, black 12%, black 82%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  height: 72px;
  margin: 0 auto;
  transition:
    background 240ms ease,
    border-color 240ms ease,
    transform 240ms ease;
}

.site-header.scrolled {
  margin-top: 10px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: rgba(244, 246, 240, 0.78);
  backdrop-filter: blur(18px);
}

.scroll-sentinel {
  width: 1px;
  height: 1px;
}

.brand {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.88rem;
  color: #30362f;
}

.nav-links a,
.header-action {
  transition:
    color 180ms ease,
    transform 180ms ease;
}

.nav-links a:hover,
.header-action:hover {
  color: var(--accent);
  transform: translateY(-1px);
}

.header-action {
  justify-self: end;
  min-width: 96px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.25fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: min(calc(100% - 32px), var(--max));
  min-height: calc(100dvh - 72px);
  margin: 0 auto;
  padding: 44px 0 70px;
}

.kicker {
  margin: 0 0 18px;
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent-dark);
}

.kicker.light {
  color: #ffb39c;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(4rem, 11vw, 9.5rem);
  line-height: 0.84;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 6vw, 6rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
}

.hero-text,
.section-copy p,
.logo-section p,
.resources p,
.service-panel p,
.process p,
.footer label {
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.7;
}

.hero-text {
  max-width: 540px;
  margin-bottom: 30px;
}

.hero-actions,
.input-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.input-row button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

.button:active,
.input-row button:active,
.service-item:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary,
.input-row button {
  background: var(--ink);
  color: var(--white);
}

.button.primary:hover,
.input-row button:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.button.secondary:hover {
  border-color: rgba(184, 73, 46, 0.55);
}

.button.inverted {
  background: var(--white);
  color: var(--night);
}

.hero-visual {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  border-radius: var(--radius);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 220ms ease;
  box-shadow: 0 30px 80px rgba(51, 67, 78, 0.22);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 620px;
  object-fit: cover;
}

.listing-chip {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  min-width: 180px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 18px;
  background: rgba(248, 250, 244, 0.68);
  backdrop-filter: blur(18px);
}

.listing-chip span {
  color: #4b534b;
  font-size: 0.82rem;
}

.listing-chip strong {
  font-size: 1.55rem;
  letter-spacing: -0.04em;
}

.logo-section {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 58px 0 96px;
}

.giant-logo {
  margin-left: -0.08em;
  font-size: clamp(6rem, 29vw, 25rem);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.14em;
}

.logo-section p {
  max-width: 620px;
  margin: 28px 0 0 auto;
}

.featured,
.process,
.resources {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.section-copy {
  max-width: 760px;
  margin-bottom: 44px;
}

.section-copy.compact {
  max-width: 680px;
  margin-bottom: 34px;
}

.property-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 300px 300px;
  gap: 18px;
}

.property-card,
.property-note {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
}

.property-card {
  position: relative;
}

.property-card.large {
  grid-row: span 2;
}

.property-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.property-card:hover img {
  transform: scale(1.045);
}

.property-card div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(248, 250, 244, 0.76);
  backdrop-filter: blur(18px);
}

.property-card span,
.property-note span,
.process span,
.resource-feature span {
  font-weight: 900;
  letter-spacing: -0.02em;
}

.property-card strong {
  text-align: right;
  font-size: 0.95rem;
}

.property-note {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px;
  border: 1px solid var(--line);
}

.property-note p {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.55;
}

.dark-stage {
  display: grid;
  grid-template-columns: 1fr minmax(320px, 0.8fr);
  min-height: 100dvh;
  margin: 52px 0;
  padding: clamp(28px, 6vw, 74px);
  background:
    radial-gradient(circle at 72% 18%, rgba(184, 73, 46, 0.32), transparent 28%),
    linear-gradient(135deg, var(--night), var(--night-soft));
  color: var(--white);
}

.service-list {
  display: flex;
  flex-direction: column;
  align-self: center;
}

.service-item {
  width: fit-content;
  border: 0;
  background: transparent;
  color: rgba(248, 250, 244, 0.42);
  font: inherit;
  font-size: clamp(4.7rem, 15vw, 14rem);
  font-weight: 900;
  line-height: 0.92;
  letter-spacing: -0.09em;
  cursor: pointer;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.service-item:hover,
.service-item.active {
  color: var(--white);
  transform: translateX(10px);
}

.service-panel {
  align-self: end;
  max-width: 430px;
  padding: 28px;
  border: 1px solid rgba(248, 250, 244, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.service-panel h2 {
  color: var(--white);
}

.service-panel p {
  margin-bottom: 26px;
  color: rgba(248, 250, 244, 0.7);
}

.process-rail {
  display: grid;
  grid-template-columns: 1fr 1.3fr 0.9fr;
  gap: 18px;
}

.process-rail article {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.46);
}

.process-rail article:nth-child(2) {
  transform: translateY(42px);
  background: var(--ink);
  color: var(--white);
}

.process-rail article:nth-child(2) p {
  color: rgba(248, 250, 244, 0.72);
}

.resources {
  display: grid;
  grid-template-columns: minmax(260px, 0.62fr) 1fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: end;
}

.resource-feature {
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(51, 67, 78, 0.15);
}

.resource-feature img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.resource-feature div {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.resource-feature p {
  margin-bottom: 4px;
}

.resource-feature a {
  width: fit-content;
  font-weight: 900;
  color: var(--accent-dark);
}

.footer {
  min-height: 70dvh;
  padding: 70px clamp(16px, 5vw, 74px) 32px;
  background: var(--night);
  color: var(--white);
}

.newsletter {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 6vw, 80px);
  width: min(100%, var(--max));
  margin: 0 auto 90px;
}

.newsletter h2 {
  max-width: 620px;
  color: var(--white);
}

form {
  align-self: end;
}

label {
  display: block;
  margin-bottom: 10px;
}

.input-row {
  flex-wrap: nowrap;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(248, 250, 244, 0.25);
}

input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--white);
  font: inherit;
}

input::placeholder {
  color: rgba(248, 250, 244, 0.56);
}

input:focus-visible {
  box-shadow: 0 2px 0 #ffb39c;
}

.footer-bottom {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: end;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.footer-bottom strong {
  margin-left: -0.08em;
  font-size: clamp(6rem, 20vw, 18rem);
  font-weight: 950;
  line-height: 0.72;
  letter-spacing: -0.14em;
}

.footer-bottom nav {
  display: grid;
  gap: 10px;
  justify-items: end;
  color: rgba(248, 250, 244, 0.7);
}

.footer-bottom a:hover {
  color: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero,
  .featured,
  .process,
  .resources {
    padding: 58px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual,
  .hero-visual img {
    min-height: 420px;
  }

  .property-grid,
  .dark-stage,
  .process-rail,
  .resources,
  .newsletter,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .property-grid {
    grid-template-rows: auto;
  }

  .property-card.large {
    grid-row: auto;
  }

  .property-card {
    min-height: 360px;
  }

  .property-card div {
    align-items: flex-start;
    flex-direction: column;
  }

  .property-card strong {
    text-align: left;
  }

  .dark-stage {
    gap: 44px;
    min-height: auto;
  }

  .service-item {
    font-size: clamp(4rem, 25vw, 8rem);
  }

  .service-panel {
    align-self: start;
  }

  .process-rail article:nth-child(2) {
    transform: none;
  }

  .footer-bottom nav {
    justify-items: start;
  }
}

@media (max-width: 520px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .header-action {
    min-width: 78px;
    padding-inline: 14px;
  }

  .hero,
  .featured,
  .process,
  .resources,
  .logo-section {
    width: calc(100% - 28px);
  }

  h1 {
    font-size: clamp(3.8rem, 19vw, 5.4rem);
  }

  h2 {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .input-row {
    flex-direction: column;
  }

  .button,
  .input-row button {
    width: 100%;
  }

  .footer {
    padding-top: 58px;
  }
}
